Skip to content

feat: used new component from gravity for number input#339

Merged
AshotHarutyunyan merged 4 commits intomainfrom
DATAUI-3271/number-input
Dec 11, 2025
Merged

feat: used new component from gravity for number input#339
AshotHarutyunyan merged 4 commits intomainfrom
DATAUI-3271/number-input

Conversation

@AshotHarutyunyan
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

NumberSpec<undefined, InputComponentProps, LayoutComponentProps>
>;

export type NumberInput<InputComponentProps extends Record<string, any> | undefined = undefined> =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put things back the way they were

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there was conflicted exports with same naming I've checked this type is not used if there is need I can rename the component and revert this one

> {}

export const NumberInput = <
T extends NumberInputProps<NumberProps> | StringInputProps<NumberProps>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are there StringInputProps here?
Now this is a separate component with a numeric input, let's leave it only NumberInputProps
and remove the text from the input NumberInputProps

Copy link
Contributor Author

@AshotHarutyunyan AshotHarutyunyan Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've thought about that, but used this for backward capability, is that ok for us to support new type for this input?

@AshotHarutyunyan AshotHarutyunyan merged commit 4455dc6 into main Dec 11, 2025
4 checks passed
@AshotHarutyunyan AshotHarutyunyan deleted the DATAUI-3271/number-input branch December 11, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants