Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Nov 3, 2025

Note

Introduces value modifiers and switches boolean mods to data-* attributes, with parser support for :has(Element) → :has([data-element="..."]).

  • Core (tasty):
    • Add value mods support (mods={{ theme: 'danger' }}data-theme="danger"), with shorthand style selectors (theme=danger, size=large).
    • BREAKING: boolean mods now emit data-* (not data-is-*); is* props map to native attrs plus data-*.
    • Support :has(Element) transformation to :has([data-element="Element"]); require spaces around combinators and warn on invalid syntax.
    • Improve style rendering: mod selector parsing, conflict/prioritization between boolean/value selectors, not-selector optimization, caching, and responsive/state fan-out; extend Styles with $ affix docs.
  • Components:
    • Migrate style mappings to new selectors (size=small, type=link, etc.) and mod names (has-* replacing with-*).
    • Update attributes in runtime code to new data-* flags (e.g., data-loading, data-focused, data-disabled).
  • Tests:
    • Add comprehensive value mod and :has() tests; update snapshots and existing tests to assert data-* attrs.
  • Docs:
    • Update Tasty and component docs for value mods, boolean data-*, :has(Element) usage, and selector-affix spacing requirements.
  • Tooling:
    • Increase size-limit thresholds slightly; ignore *.spec.md.

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

@changeset-bot
Copy link

changeset-bot bot commented Nov 3, 2025

🦋 Changeset detected

Latest commit: e1f8144

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 Major

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-fde53a6.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

🏋️ Size limit report

Name Size Passed?
All 296.38 KB (+0.33% 🔺) Yes 🎉
Tree shaking (just a Button) 33.27 KB (+3.54% 🔺) Yes 🎉
Tree shaking (just an Icon) 20.59 KB (+5.97% 🔺) 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 3, 2025

🧪 Storybook is successfully deployed!

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

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.

3 participants