Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Nov 28, 2025

Note

Introduces TextItem for single-line text with overflow auto-tooltips and search highlighting, extracts reusable useAutoTooltip hook, and replaces Text.Selection with Text.Highlight (breaking).

  • Content:
    • TextItem (src/components/content/TextItem/*): new single-line text component with ellipsis, auto-tooltip on overflow (configurable), and in-text highlighting via highlight, highlightCaseSensitive, highlightStyles.
    • Hook: extracted use-auto-tooltip (src/components/content/use-auto-tooltip.tsx) and integrated into Item (removes in-file implementation in Item.tsx).
  • Typography API:
    • Added Text.Highlight (semantic <mark> styling).
    • Breaking: removed Text.Selection and updated usages in stories.
  • Exports (src/index.ts): export TextItem and CubeTextItemProps; updated Typography bundle.
  • Docs/Stories: added TextItem docs and Storybook stories; updated references to Text.Highlight.

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

@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2025

🦋 Changeset detected

Latest commit: 9118afb

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 28, 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 Dec 1, 2025 11:06am
cube-ui-kit-cursor Ready Ready Preview Comment Dec 1, 2025 11:06am

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-0127833.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

🏋️ Size limit report

Name Size Passed?
All 299.84 KB (+0.12% 🔺) Yes 🎉
Tree shaking (just a Button) 33.46 KB (+0.03% 🔺) 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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2025

🧪 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.

2 participants