Skip to content

Conversation

tenphi
Copy link
Member

@tenphi tenphi commented Oct 22, 2025

Note

Adds inline actions to ItemBase, ItemButton, and collection items with new actions prop and *.Action compounds, plus context-aware styling via ItemActionContext and minor ComboBox typing tweak.

  • Core:
    • ItemBase: add actions prop (inline actions column), event handling to avoid propagation, support numeric size/--size, and expose ItemBase.Action.
    • ItemButton: support actions with measured right-side container; expose ItemButton.Action; refactor to wrap ItemBase and preserve sizing.
    • Item: expose Item.Action.
    • ItemAction: style adjustments, border reset, context-aware type via new ItemActionContext.
    • Exports: re-export ItemActionContext from actions/index.
  • Menus:
    • MenuItem: forward actions to ItemBase so menu items can render inline actions.
    • CommandMenu/Menu stories: examples of items with inline actions.
  • Docs/Stories:
    • Update ItemBase and ItemButton docs; add stories demonstrating actions across sizes/types.
  • Types:
    • ComboBox: change triggerRef to FocusableRef<HTMLButtonElement>.

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 22, 2025

🦋 Changeset detected

Latest commit: b21639e

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

@vercel
Copy link

vercel bot commented Oct 22, 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 22, 2025 1:42pm
cube-ui-kit-cursor Ready Ready Preview Comment Oct 22, 2025 1:42pm

@github-actions
Copy link
Contributor

📦 NPM canary release

Deployed canary version 0.0.0-canary-012248f.

@github-actions
Copy link
Contributor

🏋️ Size limit report

Name Size Passed?
All 306.59 KB (+0.3% 🔺) Yes 🎉
Tree shaking (just a Button) 32.06 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 19.38 KB (0% 🟰) Yes 🎉

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

@github-actions
Copy link
Contributor

🧪 Storybook is successfully deployed!

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