Repository navigation
v5.4.0
@repo/ui v5.4.0
Minor Changes
We've made significant changes to improve compatibility and flexibility with your existing projects.
- We've stopped shipping Tailwind's global preflight in
@repo/ui/style.css, which means you'll need to add your own preflight or set your ownbodycolors if you relied on this for a CSS reset. - We've updated the
@layer baseto only include color defaults forborder-colorandoutline-color, which should help restore design tokens for bareborderandoutlineutilities.
Patch Changes
We've fixed several issues to improve performance and user experience:
- We've replaced the imperative stack renderer in
ModalandToastwithuseSyncExternalStoreto prevent silently dropped updates and tearing under concurrent rendering. - We've replaced manual ref-merge in
MarqueeswithuseMergedRefto fix per-render new-function-identity churn and detach/reattach issues. - We've extracted duplicated pause-on-hover state/handlers into a shared
usePauseOnHoverhook, addingonFocusandonBlursupport for keyboard-focused users. - We've replaced the deprecated
useThrottlealias withuseThrottledValueinMarqueesfor internal cleanup. - We've fixed Switch label text contrast against its track background by making the label color conditional on checked state.
What's Changed
- fix(switch): correct label text contrast against track background by @pjb0811 in #245
- fix(imperative-stack): use useSyncExternalStore for stack updates by @pjb0811 in #247
- fix(marquees): use useThrottledValue instead of deprecated useThrottle by @pjb0811 in #248
- fix(marquees): use useMergedRef instead of manual ref merge by @pjb0811 in #249
- fix(marquees): extract usePauseOnHover, add keyboard focus pause by @pjb0811 in #250
- fix(ci): make changeset-draft dedup diff-based, exclude non-code files by @pjb0811 in #251
- 🔥 fix(ui): drop global preflight from shipped style.css by @pjb0811 in #252
- 🔖 chore: version packages by @github-actions[bot] in #246
Full Changelog: v5.3.0...v5.4.0