v0.21.1
@tinybigui/react 0.21.1
Tooltip — MD3 slot-based styling refactor
- Rewrote
Tooltip.variants.tsto use documented slot CVA functions, matching the Button/Switch architecture - Replaced the binary
isVisiblevariant with a 3-stateanimationvariant (enter|exit|none) that supportsprefers-reduced-motion - Added rich tooltip slot variants:
richTooltipTitleVariants,richTooltipSupportingTextVariants,richTooltipActionsVariants - Fixed MD3 token: rich tooltip subhead (title) now uses
text-on-surface-variantper spec (wastext-on-surface) - Added action row layout slot with correct
-ml-2 mt-3alignment per MD3 spec - Added
prefers-reduced-motionguard inTooltipTrigger: overlay unmounts immediately on close under reduced motion, fixing a stuck-mount bug - Added
reducedMotionfield toTooltipAnimationContextValuefor consumer access - Extended test suite with 9 new tests covering token correctness and reduced-motion behaviour
Full changelog: packages/react/CHANGELOG.md