-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ui): migrate NativeSelect, NativeSelectOption and NativeSelectOptionGroup components to TypeScript #599
Conversation
🦋 Changeset detectedLatest commit: 441ae7a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, this looks great to me! I’ve added just a few comments for consideration.
packages/ui-components/src/components/NativeSelectOption/NativeSelectOption.component.tsx
Outdated
Show resolved
Hide resolved
packages/ui-components/src/components/NativeSelect/NativeSelect.component.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great Job!
packages/ui-components/src/components/NativeSelect/NativeSelect.component.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I leave it as a comment, all good few little comments left do not wanna block 🥇
packages/ui-components/src/components/NativeSelect/NativeSelect.stories.tsx
Show resolved
Hide resolved
packages/ui-components/src/components/NativeSelectOption/NativeSelectOption.component.tsx
Show resolved
Hide resolved
...s/ui-components/src/components/NativeSelectOptionGroup/NativeSelectOptionGroup.component.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
sorry... i just have been pointed that it is already clarified. |
…lue and revert children type
Thanks for the review! We're not currently doing this. But I definitely think it's a good idea to introduce it, making sure it's always safely handled as a |
packages/ui-components/src/components/NativeSelect/NativeSelect.component.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
NativeSelect
,NativeSelectOption
andNativeSelectOptionGroup
components toTypeScript
, enhancing code quality, maintainability, and scalability.NativeSelect
andNativeSelectOption
components for use inJavascript
files.Changes Made
TypeScript Migration:
NativeSelect
,NativeSelectOption
andNativeSelectOptionGroup
components files toTypeScript
.NativeSelect
andNativeSelectOption
components to/deprecated_js
forJavascript
files.Refactoring:
Testing:
children
SelectOptionGroup
componentsvalue
orlabel
value
orlabel
providedNumber
type forvalue
andlabel
Empty
label propchildren
of differenttypes
Storybook
.vitest
.Documentation:
Storybook
documentation.Release:
changeset
file.Related Issues
Testing Instructions
Storybook
Checklist