v0.11.0
@tinybigui/react
BottomSheet — MD3 expressive handle refactor
Refactors the BottomSheet drag handle to match the Button/Switch component pattern:
- Handle state layer: new
bottomSheetHandleStateLayerVariantsslot — semi-transparent ring driven bydata-*attributes. Opacities follow MD3 spec: hover 8%, focus/pressed 10%, dragged 16%. - Handle focus ring: new
bottomSheetHandleFocusRingVariantsslot — opacity-drivenoutline-secondaryoverlay replacing the previous rawfocus-visible:ring-*utility classes. Avoids clipping by the container'soverflow-hidden. - Handle pill: removed non-token
opacity-40;on-surface-variantis already a low-emphasis color role and requires no opacity override per MD3 spec. - React Aria wiring:
useHoveranduseFocusRingnow drivedata-hoveredanddata-focus-visibleon the handle wrapper viagetInteractionDataAttributes. The wrapper carriesgroup/handleso all child slots consume state viagroup-data-[x]/handle:selectors. - Presence-based encoding: all
data-draggingattributes (panel + handle) now use ternary encoding (isDragging ? "" : undefined) per component-variants architecture rule. - Exports two new variant functions (
bottomSheetHandleStateLayerVariants,bottomSheetHandleFocusRingVariants) and their corresponding types.
Full changelog: packages/react/CHANGELOG.md