Skip to content

[core] Refactor: "style hooks" to "state attributes" #1940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

romgrk
Copy link
Contributor

@romgrk romgrk commented May 19, 2025

Get rid of the "style hooks" terminology which is unclear.

Now that I read the PR, I feel like it could be simply stateMapping instead of stateAttributesMapping. The "attributes" token would be missing, but it would be less verbose and "state mapping" is clear enough as a concept, imo. Opinions welcome, I could go with either.

romgrk added 2 commits May 19, 2025 07:12
@romgrk romgrk added core DO NOT USE. This label has been deprecated and replaced by `all components` and `internal`. enhancement This is not a bug, nor a new feature labels May 19, 2025
@romgrk romgrk marked this pull request as draft May 19, 2025 11:21
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 20, 2025
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label May 20, 2025
Copy link

netlify bot commented May 20, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 551a671
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/68653602327ce300089ce147
😎 Deploy Preview https://deploy-preview-1940--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

romgrk added 3 commits May 20, 2025 16:43
Copy link

pkg-pr-new bot commented May 20, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@base-ui-components/react@1940

commit: 551a671

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label May 21, 2025
@michaldudak
Copy link
Member

@colmtuite, are you OK with changing this term?

@colmtuite
Copy link
Contributor

@michaldudak @romgrk Sure

@michaldudak
Copy link
Member

@romgrk are you going to update this PR? I can take it over if you'd like.

@romgrk
Copy link
Contributor Author

romgrk commented Jun 21, 2025

I'm working on the new virtualization engine for the time being, so you can take over this PR if you want it merged.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jul 2, 2025
@mui-bot
Copy link

mui-bot commented Jul 2, 2025

Bundle size report

Bundle Parsed Size Gzip Size
@base-ui-components/react 🔺+22B(+0.01%) ▼-21B(-0.02%)

Details of bundle changes

Generated by 🚫 dangerJS against 551a671

Verified

This commit was signed with the committer’s verified signature.
michaldudak Michał Dudak
@michaldudak michaldudak force-pushed the refactor-style-hooks branch from 39c881c to ed23ec3 Compare July 2, 2025 13:13

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@michaldudak michaldudak marked this pull request as ready for review July 2, 2025 13:37
@michaldudak michaldudak added internal and removed core DO NOT USE. This label has been deprecated and replaced by `all components` and `internal`. labels Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is not a bug, nor a new feature internal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants