-
-
Notifications
You must be signed in to change notification settings - Fork 210
Upgrade @tokens-studio/ui from 0.9.0 to 3.3.0 with Box component migration to CSS modules #3574
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 1534bb8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
…anges Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
@copilot ok cool thank you. We also deprecated the As a first step, replace the |
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
I've completed the first step as requested! Here's what I've done: ✅ Set up CSS modules - Updated webpack configuration to support ✅ Replaced all ✅ Converted ✅ Removed all Box imports - No more The changes include components like Accordion, TokenFilter, Callout, modal components, and many others. Each now uses CSS modules with semantic class names instead of the deprecated Box component and css prop. This addresses the breaking changes from the @tokens-studio/ui upgrade. Ready for the next steps! (commit: 8cf39ee) |
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
…l, DownshiftInput, and InspectorMultiView Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
Co-authored-by: six7 <4548309+six7@users.noreply.github.com>
This PR upgrades the
@tokens-studio/ui
package from version 0.9.0 to 3.3.0, which introduces several breaking changes that have been successfully migrated.1. Box Component Migration ✅
The
Box
component has been completely removed from@tokens-studio/ui
v3.3.0. This affected 20+ files across the codebase that imported and usedBox
.Migration completed:
Box
components with appropriate HTML elements (div
, etc.)css
prop toclassName
with CSS modulesFiles migrated include:
src/app/components/Accordion/Accordion.tsx
src/app/components/AddLicenseKey/AddLicenseKey.tsx
src/app/components/AuthModal/index.tsx
src/app/components/BranchSelectorPopover.tsx
src/app/components/DownshiftInput/DownshiftInput.tsx
src/app/components/InspectorMultiView.tsx
2. CSS Property Deprecation ✅
The deprecated
css
property on components has been replaced withclassName
and CSS modules throughout the codebase, providing better maintainability and debugging.3. Dependency Changes ✅
@iconicicons/react
,@radix-ui/react-toast
clsx
,react-tooltip
,sonner
,@tokens-studio/icons-v2
@tokens-studio/icons-v2@^0.0.3
Changes Made
@tokens-studio/ui
from0.9.0
to3.3.0
@tokens-studio/icons-v2@^0.0.3
dependencycss
prop usage withclassName
and CSS modulesArchitecture Improvements
Testing
The build now compiles successfully with the new
@tokens-studio/ui
version. All Box component usage has been eliminated and replaced with modern CSS modules approach.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.