-
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(TextArea): Tagged Inputs #2119
Conversation
🦋 Changeset detectedLatest commit: 5cbd351 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. |
packages/blade/src/components/Dropdown/docs/DropdownWithSelect.stories.tsx
Outdated
Show resolved
Hide resolved
packages/blade/src/components/Input/BaseInput/BaseInputTagSlot.web.tsx
Outdated
Show resolved
Hide resolved
packages/blade/src/components/Input/BaseInput/BaseInputTagSlot.web.tsx
Outdated
Show resolved
Hide resolved
packages/blade/src/components/Input/BaseInput/StyledBaseInput.native.tsx
Outdated
Show resolved
Hide resolved
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 5cbd351:
|
Bundle Size ReportUpdated Components
|
packages/blade/src/components/Input/BaseInput/AnimatedBaseInputWrapper.native.tsx
Show resolved
Hide resolved
packages/blade/src/components/Input/BaseInput/useTaggedInput.ts
Outdated
Show resolved
Hide resolved
packages/blade/src/components/Input/BaseInput/useTaggedInput.ts
Outdated
Show resolved
Hide resolved
const currentTags = tags ?? tagsUncontrolled; | ||
const isControlledValue = value !== undefined; | ||
const inputValue = isControlledValue ? value?.trim() : inputValueUncontrolled.trim(); | ||
if (e.key === 'Enter' || e.key === ',') { |
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 about " " space? Do we not create tags on pressing SPACE?
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.
nope. the tag itself might have space at some places no 🤔
packages/blade/src/components/Input/TextArea/__tests__/TextArea.web.test.tsx
Outdated
Show resolved
Hide resolved
--- | ||
|
||
feat(TextArea): Tagged Inputs | ||
feat(Tag): max-width is removed from Tag component |
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.
Should we make this a minor bump since there are changes to tag as well as new prop additions?
.changeset/pink-rocks-bake.md
Outdated
"@razorpay/blade": patch | ||
--- | ||
|
||
feat(TextArea): Tagged Inputs |
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.
We have also added this to TextInput right?
Lets format the changelog a bit better
Description
Changes
Additional Information
Component Checklist