feat: add Picker component #817
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Introduces a new Picker component (advanced Select) with single/multiple selection, sections, custom summary, clear/select-all options, and full docs/tests.
src/components/fields/Picker/Picker.tsx
: NewPicker
combining trigger and popoverListBox
; supportssingle/multiple
selection, sections,items
prop, customrenderSummary
, clear button (isClearable
), checkboxes (isCheckable
), Select All, header/footer slots, sizes/types, disabled/validation/loading states, keyboard nav, event-bus sync across pickers, and sorting selected items to top on reopen.Picker
exports insrc/components/fields/Picker/index.tsx
and re-exported fromsrc/components/fields/index.ts
.Picker.stories.tsx
andPicker.docs.mdx
: Examples for single/multiple, sections, clear, select-all, custom summary, sizes, controlled/controlled-multiple, validation, disabled; usage and best practices.Picker.test.tsx
: Covers opening/closing, selection behaviors, sorting on reopen (with/without sections), clear button, checkable behavior, Select All, event-bus synchronization, refs, items prop labels, and form integration..changeset/empty-beans-smell.md
: Minor version bump for@cube-dev/ui-kit
addingPicker
.Written by Cursor Bugbot for commit 858884d. This will update automatically on new commits. Configure here.