Skip to content

Conversation

tenphi
Copy link
Member

@tenphi tenphi commented Oct 7, 2025

Note

Introduces a new Picker component (advanced Select) with single/multiple selection, sections, custom summary, clear/select-all options, and full docs/tests.

  • Components:
    • src/components/fields/Picker/Picker.tsx: New Picker combining trigger and popover ListBox; supports single/multiple selection, sections, items prop, custom renderSummary, 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.
    • Exports: Added Picker exports in src/components/fields/Picker/index.tsx and re-exported from src/components/fields/index.ts.
  • Storybook/Docs:
    • Picker.stories.tsx and Picker.docs.mdx: Examples for single/multiple, sections, clear, select-all, custom summary, sizes, controlled/controlled-multiple, validation, disabled; usage and best practices.
  • Tests:
    • 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.
  • Release:
    • .changeset/empty-beans-smell.md: Minor version bump for @cube-dev/ui-kit adding Picker.

Written by Cursor Bugbot for commit 858884d. This will update automatically on new commits. Configure here.

Copy link

changeset-bot bot commented Oct 7, 2025

🦋 Changeset detected

Latest commit: 858884d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit Minor

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

Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Oct 7, 2025 3:18pm
cube-ui-kit-cursor Ready Ready Preview Comment Oct 7, 2025 3:18pm

Copy link
Contributor

github-actions bot commented Oct 7, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-5141f6d.

export * from './ListBox';
export * from './FilterListBox';
export * from './FilterPicker';
export * from './Picker';
Copy link

Choose a reason for hiding this comment

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

Bug: Unordered Export in Fields Index

The new Picker component export in src/components/fields/index.ts is not in alphabetical order, deviating from the established pattern for exports in this file.

Fix in Cursor Fix in Web

Copy link
Contributor

github-actions bot commented Oct 7, 2025

🧪 Storybook is successfully deployed!

Copy link
Contributor

github-actions bot commented Oct 7, 2025

🏋️ Size limit report

Name Size Passed?
All 300.34 KB (+0.28% 🔺) Yes 🎉
Tree shaking (just a Button) 32.07 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 19.39 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

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.

1 participant