-
Notifications
You must be signed in to change notification settings - Fork 148
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
feat: Redesign all Input
components
#2030
Conversation
🦋 Changeset detectedLatest commit: f2e58b8 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 |
✅ PR title follows Conventional Commits specification. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit f2e58b8:
|
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.
Nice work 🥇 Looks pretty complex 🖖🏼
packages/blade/src/components/Input/BaseInput/AnimatedBaseInputWrapper.native.tsx
Outdated
Show resolved
Hide resolved
* trailingActionButton={<Link onClick={handleClick}>Apply</Link>} | ||
* ``` | ||
*/ | ||
trailingActionButton?: React.ReactElement<LinkProps>; |
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.
What if we just do trailingButton
or trailingAction
? Button implies Action no?
packages/blade/src/components/Input/BaseInput/StyledBaseInput.native.tsx
Show resolved
Hide resolved
packages/blade/src/components/Input/BaseInput/baseInputStyles.ts
Outdated
Show resolved
Hide resolved
packages/blade/src/components/Input/BaseInput/baseInputStyles.ts
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.
Nice 🔥
Input
components RedesignInput
components
## Changes ### TextInput - Redesigned UI - Add `leadingIcon` prop -⚠️ Deprecate `icon` prop in favour of `leadingIcon` which will be removed in the next major version - Add `trailingIcon` prop - Add `trailingLinkButton` prop - Add `size` prop ### TextArea - Redesigned UI - Add `size` prop ### PasswordInput - Redesigned UI - Adds `size` prop ### OTPInput - Redesigned UI - Add `size` prop ### SelectInput - Redesigned UI - Add `size` prop ### Autocomplete - Redesigned UI - Add `size` prop ### Radio - Add `size` prop ### Checkbox - Add `size` prop
Description
Redesign of
Input
family components.BaseInput
trailingIcon
proptrailingLinkButton
propsize
propTextInput
leadingIcon
propicon
prop in favour ofleadingIcon
trailingIcon
proptrailingLinkButton
propsize
propTextArea
size
propPasswordInput
size
propOTPInput
size
propSelectInput
size
propAutocomplete
size
propRadio
size
propCheckbox
size
propChanges
Additional Information
Component Checklist