Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Nov 26, 2025

Note

Adds an accessible Disclosure component (single and grouped accordion) with docs/stories/tests, exports it, introduces a disclosure-transition token, and refines DisplayTransition phase/timing behavior.

  • Components:
    • Disclosure: New expandable/collapsible component with compound parts: Disclosure.Trigger, Disclosure.Content, Disclosure.Group, Disclosure.Item.
      • Supports controlled/uncontrolled state, group accordion/multi-expand, shape variants (default, card, sharp), disabled state, custom transitionDuration, and render-prop triggers.
  • Helpers:
    • DisplayTransition: Adjust phase model to include exit-pending, symmetric rAF scheduling for exit, refined onPhaseChange reporting, and isShown semantics; updates related tests.
  • Docs/Stories/Tests:
    • Adds Storybook docs (Disclosure.docs.mdx) and stories (Disclosure.stories.tsx); comprehensive tests for Disclosure and updated tests for DisplayTransition.
  • Exports:
    • Re-exports Disclosure and types in src/index.ts and components/content/Disclosure/index.ts.
  • Tokens:
    • Adds --disclosure-transition token in src/tokens.ts for animation timing.

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

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

🦋 Changeset detected

Latest commit: 8a7285e

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 Nov 26, 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 Nov 26, 2025 2:46pm
cube-ui-kit-cursor Ready Ready Preview Comment Nov 26, 2025 2:46pm

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-b557955.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

🏋️ Size limit report

Name Size Passed?
All 299.44 KB (+0.64% 🔺) Yes 🎉
Tree shaking (just a Button) 33.44 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 20.71 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.

2 participants