@tinybigui/react 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/dist/index.cjs +970 -546
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +440 -106
- package/dist/index.d.ts +440 -106
- package/dist/index.js +955 -546
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -19
- package/dist/styles.css.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -756,12 +756,21 @@ declare const AppBarHeadless: React$1.ForwardRefExoticComponent<AppBarHeadlessPr
|
|
|
756
756
|
* - Content flags (data-with-icon, data-loading) are set explicitly by the component.
|
|
757
757
|
*
|
|
758
758
|
* Slot responsibilities:
|
|
759
|
-
* buttonVariants — root <button>; shape, color, elevation
|
|
759
|
+
* buttonVariants — root <button>; shape, text color, elevation (shadow)
|
|
760
|
+
* buttonContainerVariants — absolute inset child; background color + disabled bg override
|
|
760
761
|
* buttonStateLayerVariants — hover/focus/press opacity ring (absolute inset overlay)
|
|
761
762
|
* buttonFocusRingVariants — keyboard focus outline, MUST NOT be inside overflow-hidden
|
|
762
763
|
* buttonIconVariants — leading/trailing icon wrapper
|
|
763
764
|
* buttonLabelVariants — label text slot
|
|
764
765
|
*
|
|
766
|
+
* Why background lives on a child slot (buttonContainerVariants) rather than the root:
|
|
767
|
+
* Tailwind `group-data-[x]/button:` generates a descendant combinator selector —
|
|
768
|
+
* `.group\/button[data-x] .target`. The root <button> IS the group host and cannot
|
|
769
|
+
* be its own descendant, so group selectors cannot target it directly. Moving the
|
|
770
|
+
* background to an absolutely-positioned child span lets us use the proven
|
|
771
|
+
* `group-data-[disabled]/button:bg-on-surface/12` pattern (same as Switch track)
|
|
772
|
+
* to override the container background on disabled, guaranteeing correct specificity.
|
|
773
|
+
*
|
|
765
774
|
* MD3 Spec:
|
|
766
775
|
* Shape: rounded-full (corner-full)
|
|
767
776
|
* Height: 32dp small | 40dp medium | 56dp large
|
|
@@ -780,12 +789,19 @@ declare const AppBarHeadless: React$1.ForwardRefExoticComponent<AppBarHeadlessPr
|
|
|
780
789
|
/**
|
|
781
790
|
* Root <button> element.
|
|
782
791
|
*
|
|
792
|
+
* Owns: shape, text color, elevation (box-shadow), cursor, layout.
|
|
793
|
+
* Does NOT own background-color — that lives on buttonContainerVariants so
|
|
794
|
+
* the group-data disabled override can reach it via descendant selector.
|
|
795
|
+
*
|
|
783
796
|
* IMPORTANT — overflow is intentionally NOT on the root.
|
|
784
797
|
* Overflow clipping is delegated to the ripple container and state layer
|
|
785
798
|
* via `overflow-hidden rounded-[inherit]` on those children. This lets the
|
|
786
799
|
* focus ring span (`inset-[-3px]`) extend outside the button boundary and
|
|
787
800
|
* remain fully visible — if overflow-hidden were on the root it would be
|
|
788
801
|
* clipped to zero width.
|
|
802
|
+
*
|
|
803
|
+
* Elevation state classes use self-targeting `data-[x]:` (not group-data)
|
|
804
|
+
* because the root is the group host and cannot be its own descendant.
|
|
789
805
|
*/
|
|
790
806
|
declare const buttonVariants: (props?: ({
|
|
791
807
|
variant?: "text" | "filled" | "outlined" | "tonal" | "elevated" | null | undefined;
|
|
@@ -3664,6 +3680,22 @@ declare const HeadlessNavigationBar: React$1.ForwardRefExoticComponent<HeadlessN
|
|
|
3664
3680
|
*/
|
|
3665
3681
|
declare const HeadlessNavigationBarItem: React$1.ForwardRefExoticComponent<HeadlessNavigationBarItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3666
3682
|
|
|
3683
|
+
/**
|
|
3684
|
+
* Animation lifecycle states for the modal drawer.
|
|
3685
|
+
*
|
|
3686
|
+
* Used by the animation state machine in `HeadlessDrawer` to drive
|
|
3687
|
+
* enter/exit CSS animations without immediately unmounting the portal.
|
|
3688
|
+
*
|
|
3689
|
+
* ```
|
|
3690
|
+
* entering → visible → exiting → exited
|
|
3691
|
+
* ```
|
|
3692
|
+
*
|
|
3693
|
+
* - `entering` — panel is mounted but invisible (pre-animation frame)
|
|
3694
|
+
* - `visible` — entry animation fires (`animate-md-slide-in-left`)
|
|
3695
|
+
* - `exiting` — exit animation fires (`animate-md-slide-out-left`)
|
|
3696
|
+
* - `exited` — portal gate unmounts the element
|
|
3697
|
+
*/
|
|
3698
|
+
type DrawerAnimationState = "entering" | "visible" | "exiting" | "exited";
|
|
3667
3699
|
/**
|
|
3668
3700
|
* Structural variant of the Navigation Drawer.
|
|
3669
3701
|
*
|
|
@@ -3673,16 +3705,6 @@ declare const HeadlessNavigationBarItem: React$1.ForwardRefExoticComponent<Headl
|
|
|
3673
3705
|
* focus trap, and `Escape` to close.
|
|
3674
3706
|
*/
|
|
3675
3707
|
type DrawerVariant = "standard" | "modal";
|
|
3676
|
-
/**
|
|
3677
|
-
* Structured badge configuration for `DrawerItem`.
|
|
3678
|
-
*
|
|
3679
|
-
* When provided instead of a `ReactNode`, the `DrawerItem` renders a `Badge`
|
|
3680
|
-
* component automatically.
|
|
3681
|
-
*/
|
|
3682
|
-
interface DrawerItemBadgeConfig {
|
|
3683
|
-
/** Numeric count to display. Omit for a dot indicator. */
|
|
3684
|
-
count?: number;
|
|
3685
|
-
}
|
|
3686
3708
|
/**
|
|
3687
3709
|
* Material Design 3 Navigation Drawer props.
|
|
3688
3710
|
*
|
|
@@ -3693,6 +3715,7 @@ interface DrawerItemBadgeConfig {
|
|
|
3693
3715
|
* ```tsx
|
|
3694
3716
|
* // Standard variant
|
|
3695
3717
|
* <Drawer variant="standard" open={open} onOpenChange={setOpen} aria-label="App navigation">
|
|
3718
|
+
* <DrawerHeadline>Mail</DrawerHeadline>
|
|
3696
3719
|
* <DrawerItem label="Home" isActive />
|
|
3697
3720
|
* <DrawerItem label="Settings" />
|
|
3698
3721
|
* </Drawer>
|
|
@@ -3700,8 +3723,8 @@ interface DrawerItemBadgeConfig {
|
|
|
3700
3723
|
* // Modal variant with trigger
|
|
3701
3724
|
* <Drawer variant="modal" open={open} onOpenChange={setOpen} aria-label="App navigation">
|
|
3702
3725
|
* <DrawerItem label="Home" isActive />
|
|
3703
|
-
* <DrawerSection header="
|
|
3704
|
-
* <DrawerItem label="
|
|
3726
|
+
* <DrawerSection header="Labels">
|
|
3727
|
+
* <DrawerItem label="Promotions" />
|
|
3705
3728
|
* </DrawerSection>
|
|
3706
3729
|
* </Drawer>
|
|
3707
3730
|
* ```
|
|
@@ -3732,7 +3755,8 @@ interface DrawerProps extends AriaDialogProps {
|
|
|
3732
3755
|
*/
|
|
3733
3756
|
"aria-label": string;
|
|
3734
3757
|
/**
|
|
3735
|
-
* Drawer content — typically `DrawerItem
|
|
3758
|
+
* Drawer content — typically `DrawerHeadline`, `DrawerItem`, and
|
|
3759
|
+
* `DrawerSection` elements.
|
|
3736
3760
|
*/
|
|
3737
3761
|
children: ReactNode;
|
|
3738
3762
|
/**
|
|
@@ -3744,13 +3768,6 @@ interface DrawerProps extends AriaDialogProps {
|
|
|
3744
3768
|
* @default false
|
|
3745
3769
|
*/
|
|
3746
3770
|
disableRipple?: boolean;
|
|
3747
|
-
/**
|
|
3748
|
-
* When `true`, narrows the drawer to 80dp (`w-20`) and hides all
|
|
3749
|
-
* `DrawerItem` labels. Each item gains a native `title` tooltip.
|
|
3750
|
-
* Prep step for `NavigationRail`.
|
|
3751
|
-
* @default false
|
|
3752
|
-
*/
|
|
3753
|
-
iconOnly?: boolean;
|
|
3754
3771
|
}
|
|
3755
3772
|
/**
|
|
3756
3773
|
* Material Design 3 Navigation Drawer Item props.
|
|
@@ -3771,8 +3788,8 @@ interface DrawerProps extends AriaDialogProps {
|
|
|
3771
3788
|
* // Link-based item (with href)
|
|
3772
3789
|
* <DrawerItem href="/settings" icon={<SettingsIcon />} label="Settings" />
|
|
3773
3790
|
*
|
|
3774
|
-
* // With badge
|
|
3775
|
-
* <DrawerItem label="Inbox" badge={
|
|
3791
|
+
* // With badge count (MD3 "Badge label text" anatomy element)
|
|
3792
|
+
* <DrawerItem label="Inbox" badge={24} />
|
|
3776
3793
|
*
|
|
3777
3794
|
* // Disabled
|
|
3778
3795
|
* <DrawerItem label="Disabled" isDisabled />
|
|
@@ -3786,6 +3803,8 @@ interface DrawerItemProps extends AriaButtonProps, Pick<AriaLinkOptions, "href">
|
|
|
3786
3803
|
href?: string;
|
|
3787
3804
|
/**
|
|
3788
3805
|
* Optional leading icon (24dp).
|
|
3806
|
+
* Color inherits from item state: `on-surface-variant` inactive,
|
|
3807
|
+
* `on-secondary-container` active.
|
|
3789
3808
|
*/
|
|
3790
3809
|
icon?: ReactNode;
|
|
3791
3810
|
/**
|
|
@@ -3793,26 +3812,21 @@ interface DrawerItemProps extends AriaButtonProps, Pick<AriaLinkOptions, "href">
|
|
|
3793
3812
|
*/
|
|
3794
3813
|
label: string;
|
|
3795
3814
|
/**
|
|
3796
|
-
* Optional trailing badge.
|
|
3815
|
+
* Optional trailing badge label text (MD3 anatomy element 5).
|
|
3797
3816
|
*
|
|
3798
|
-
*
|
|
3799
|
-
*
|
|
3800
|
-
*
|
|
3817
|
+
* Rendered as plain inline text that adapts its color to the item's
|
|
3818
|
+
* active/inactive state — `on-surface-variant` when inactive,
|
|
3819
|
+
* `on-secondary-container` when active.
|
|
3820
|
+
*
|
|
3821
|
+
* Pass a `number` for notification counts or a `string` for arbitrary labels.
|
|
3801
3822
|
*
|
|
3802
3823
|
* @example
|
|
3803
3824
|
* ```tsx
|
|
3804
|
-
*
|
|
3805
|
-
* <DrawerItem label="
|
|
3806
|
-
*
|
|
3807
|
-
* // Config badge (renders Badge component using MD3 error color role)
|
|
3808
|
-
* <DrawerItem label="Inbox" badge={{ count: 3 }} />
|
|
3825
|
+
* <DrawerItem label="Inbox" badge={24} />
|
|
3826
|
+
* <DrawerItem label="Beta" badge="NEW" />
|
|
3809
3827
|
* ```
|
|
3810
3828
|
*/
|
|
3811
|
-
badge?:
|
|
3812
|
-
/**
|
|
3813
|
-
* Optional secondary descriptive text rendered below the label.
|
|
3814
|
-
*/
|
|
3815
|
-
secondaryText?: string;
|
|
3829
|
+
badge?: number | string;
|
|
3816
3830
|
/**
|
|
3817
3831
|
* When `true`, marks this item as the active destination.
|
|
3818
3832
|
* Applies `aria-current="page"`, active indicator background, and
|
|
@@ -3830,6 +3844,22 @@ interface DrawerItemProps extends AriaButtonProps, Pick<AriaLinkOptions, "href">
|
|
|
3830
3844
|
*/
|
|
3831
3845
|
className?: string;
|
|
3832
3846
|
}
|
|
3847
|
+
/**
|
|
3848
|
+
* Material Design 3 Navigation Drawer Headline props.
|
|
3849
|
+
*
|
|
3850
|
+
* Renders the header text for the drawer — MD3 anatomy element 2.
|
|
3851
|
+
*
|
|
3852
|
+
* @example
|
|
3853
|
+
* ```tsx
|
|
3854
|
+
* <DrawerHeadline>Mail</DrawerHeadline>
|
|
3855
|
+
* ```
|
|
3856
|
+
*/
|
|
3857
|
+
interface DrawerHeadlineProps {
|
|
3858
|
+
/** Headline text content. */
|
|
3859
|
+
children: ReactNode;
|
|
3860
|
+
/** Additional CSS classes merged via `cn()`. */
|
|
3861
|
+
className?: string;
|
|
3862
|
+
}
|
|
3833
3863
|
/**
|
|
3834
3864
|
* Material Design 3 Navigation Drawer Section props.
|
|
3835
3865
|
*
|
|
@@ -3838,9 +3868,9 @@ interface DrawerItemProps extends AriaButtonProps, Pick<AriaLinkOptions, "href">
|
|
|
3838
3868
|
*
|
|
3839
3869
|
* @example
|
|
3840
3870
|
* ```tsx
|
|
3841
|
-
* <DrawerSection header="
|
|
3842
|
-
* <DrawerItem label="
|
|
3843
|
-
* <DrawerItem label="
|
|
3871
|
+
* <DrawerSection header="Labels" showDivider>
|
|
3872
|
+
* <DrawerItem label="Promotions" />
|
|
3873
|
+
* <DrawerItem label="Social" />
|
|
3844
3874
|
* </DrawerSection>
|
|
3845
3875
|
* ```
|
|
3846
3876
|
*/
|
|
@@ -3903,15 +3933,35 @@ interface HeadlessDrawerProps {
|
|
|
3903
3933
|
*/
|
|
3904
3934
|
scrimClassName?: string;
|
|
3905
3935
|
/**
|
|
3906
|
-
*
|
|
3907
|
-
*
|
|
3936
|
+
* Returns the animation CSS class string for a given `DrawerAnimationState`.
|
|
3937
|
+
*
|
|
3938
|
+
* Applied to the modal **panel** element. Provided by the styled `Drawer` layer
|
|
3939
|
+
* via `drawerAnimationVariants`. Returns `""` when `useReducedMotion()` is true.
|
|
3940
|
+
*
|
|
3941
|
+
* @example
|
|
3942
|
+
* ```ts
|
|
3943
|
+
* getAnimationClassName={(state) => drawerAnimationVariants({ animationState: state })}
|
|
3944
|
+
* ```
|
|
3908
3945
|
*/
|
|
3909
|
-
|
|
3946
|
+
getAnimationClassName?: (state: DrawerAnimationState) => string;
|
|
3947
|
+
/**
|
|
3948
|
+
* Returns the animation CSS class string for the modal **scrim** element.
|
|
3949
|
+
*
|
|
3950
|
+
* Separate from `getAnimationClassName` so the scrim can fade while the panel
|
|
3951
|
+
* slides. Provided via `drawerScrimAnimationVariants`. Returns `""` under
|
|
3952
|
+
* reduced motion.
|
|
3953
|
+
*
|
|
3954
|
+
* @example
|
|
3955
|
+
* ```ts
|
|
3956
|
+
* getScrimAnimationClassName={(state) => drawerScrimAnimationVariants({ animationState: state })}
|
|
3957
|
+
* ```
|
|
3958
|
+
*/
|
|
3959
|
+
getScrimAnimationClassName?: (state: DrawerAnimationState) => string;
|
|
3910
3960
|
/**
|
|
3911
|
-
*
|
|
3961
|
+
* Disable ripple on all items.
|
|
3912
3962
|
* @default false
|
|
3913
3963
|
*/
|
|
3914
|
-
|
|
3964
|
+
disableRipple?: boolean;
|
|
3915
3965
|
}
|
|
3916
3966
|
/**
|
|
3917
3967
|
* Props for the headless DrawerItem primitive (Layer 2).
|
|
@@ -3939,7 +3989,7 @@ interface HeadlessDrawerItemProps extends AriaButtonProps, Pick<AriaLinkOptions,
|
|
|
3939
3989
|
*/
|
|
3940
3990
|
onMouseDown?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
3941
3991
|
/**
|
|
3942
|
-
* Native tooltip text
|
|
3992
|
+
* Native tooltip text.
|
|
3943
3993
|
*/
|
|
3944
3994
|
title?: string | undefined;
|
|
3945
3995
|
}
|
|
@@ -3954,8 +4004,6 @@ interface DrawerContextValue {
|
|
|
3954
4004
|
close: () => void;
|
|
3955
4005
|
/** Whether ripple is disabled for all items. */
|
|
3956
4006
|
disableRipple: boolean;
|
|
3957
|
-
/** Whether the drawer is in icon-only compact mode. */
|
|
3958
|
-
iconOnly: boolean;
|
|
3959
4007
|
}
|
|
3960
4008
|
|
|
3961
4009
|
/**
|
|
@@ -3965,24 +4013,24 @@ interface DrawerContextValue {
|
|
|
3965
4013
|
*
|
|
3966
4014
|
* - **`standard`** — Inline `<nav>` landmark. Permanently visible or
|
|
3967
4015
|
* collapsible via controlled `open` prop. No overlay or focus trap.
|
|
3968
|
-
* Surface: `bg-surface-container-low
|
|
4016
|
+
* Surface: `bg-surface-container-low`, no elevation, square trailing edge.
|
|
4017
|
+
* Slide motion: `transition-transform` + spring-standard-default-spatial
|
|
4018
|
+
* (500ms, no overshoot) driven by translate-x via `drawerVariants`.
|
|
3969
4019
|
*
|
|
3970
|
-
* - **`modal`** —
|
|
4020
|
+
* - **`modal`** — Portal overlay with animation state machine, scrim backdrop,
|
|
3971
4021
|
* focus trap, and `Escape` to close.
|
|
3972
|
-
* Surface: `bg-surface-container
|
|
4022
|
+
* Surface: `bg-surface-container-low` + `shadow-elevation-1`.
|
|
4023
|
+
* Shape: `rounded-r-lg` (16dp trailing corner per MD3).
|
|
4024
|
+
* Motion: `animate-md-slide-in-left` / `animate-md-slide-out-left` via
|
|
4025
|
+
* `drawerAnimationVariants` + `drawerScrimAnimationVariants`.
|
|
3973
4026
|
*
|
|
3974
4027
|
* Both variants:
|
|
3975
4028
|
* - `role="navigation"` on the outer wrapper
|
|
3976
|
-
* - `
|
|
3977
|
-
* - Slide-in animation: `translate-x` driven by MD3 motion tokens
|
|
3978
|
-
* - `w-drawer` (360dp) or `w-20` (80dp) in `iconOnly` mode
|
|
4029
|
+
* - `w-drawer` (360dp)
|
|
3979
4030
|
*
|
|
3980
|
-
*
|
|
3981
|
-
*
|
|
3982
|
-
*
|
|
3983
|
-
* - `usePreventScroll` to lock body scroll
|
|
3984
|
-
* - Scrim: `bg-scrim opacity-32` — click closes drawer
|
|
3985
|
-
* - `Escape` key closes drawer
|
|
4031
|
+
* Reduced motion: when `prefers-reduced-motion: reduce` is active, all
|
|
4032
|
+
* animation classes are suppressed (`getAnimationClassName` returns `""`
|
|
4033
|
+
* and `transition-none` is appended to the standard variant panel).
|
|
3986
4034
|
*
|
|
3987
4035
|
* @example
|
|
3988
4036
|
* ```tsx
|
|
@@ -3993,14 +4041,15 @@ interface DrawerContextValue {
|
|
|
3993
4041
|
* onOpenChange={setSidebarOpen}
|
|
3994
4042
|
* aria-label="App navigation"
|
|
3995
4043
|
* >
|
|
4044
|
+
* <DrawerHeadline>Mail</DrawerHeadline>
|
|
3996
4045
|
* <DrawerItem icon={<HomeIcon />} label="Home" isActive />
|
|
3997
4046
|
* <DrawerSection header="Settings" showDivider>
|
|
3998
4047
|
* <DrawerItem icon={<SettingsIcon />} label="Preferences" />
|
|
3999
4048
|
* </DrawerSection>
|
|
4000
4049
|
* </Drawer>
|
|
4001
4050
|
*
|
|
4002
|
-
* //
|
|
4003
|
-
* <Drawer variant="
|
|
4051
|
+
* // Modal variant
|
|
4052
|
+
* <Drawer variant="modal" open={open} onOpenChange={setOpen} aria-label="App navigation">
|
|
4004
4053
|
* <DrawerItem icon={<HomeIcon />} label="Home" isActive />
|
|
4005
4054
|
* </Drawer>
|
|
4006
4055
|
* ```
|
|
@@ -4012,28 +4061,31 @@ declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & Rea
|
|
|
4012
4061
|
/**
|
|
4013
4062
|
* Material Design 3 Navigation Drawer Item (Layer 3: Styled).
|
|
4014
4063
|
*
|
|
4015
|
-
*
|
|
4016
|
-
*
|
|
4064
|
+
* Architecture: Variants vs States (component-variants.mdc)
|
|
4065
|
+
* - Root is `group/draweritem` host; all slots read state via
|
|
4066
|
+
* `group-data-[x]/draweritem:` selectors.
|
|
4067
|
+
* - Interaction states tracked in this styled layer via React Aria hooks
|
|
4068
|
+
* and emitted as `data-*` attributes on the root via `getInteractionDataAttributes`.
|
|
4069
|
+
* - `data-active` is a content flag set explicitly (not via the shared helper).
|
|
4070
|
+
*
|
|
4071
|
+
* Slot z-order:
|
|
4072
|
+
* activeIndicator z-0 — `bg-secondary-container` pill
|
|
4073
|
+
* stateLayer z-[1] — hover (8%) / press (10%) opacity overlay
|
|
4074
|
+
* focusRing z-[2] — keyboard focus outline (inset, `-outline-offset-2`)
|
|
4075
|
+
* ripple z-[3] — press ripple feedback
|
|
4076
|
+
* icon z-10 — leading icon (24dp)
|
|
4077
|
+
* label z-10 — label text
|
|
4078
|
+
* badge z-10 — trailing badge text
|
|
4017
4079
|
*
|
|
4018
4080
|
* Renders as `<a>` when `href` is provided, `<button>` otherwise.
|
|
4019
4081
|
*
|
|
4020
|
-
* Features:
|
|
4021
|
-
* - Active indicator: 336dp pill, `bg-secondary-container` / `text-on-secondary-container`
|
|
4022
|
-
* - `aria-current="page"` on active item
|
|
4023
|
-
* - Ripple effect on interaction
|
|
4024
|
-
* - Hover/focus/pressed state layers (MD3 spec: 8% / 12%)
|
|
4025
|
-
* - Optional leading icon (24dp slot)
|
|
4026
|
-
* - Optional trailing badge — `ReactNode` or `{ count }` config
|
|
4027
|
-
* - Icon-only mode: label hidden, `title` tooltip via `DrawerIconOnlyContext`
|
|
4028
|
-
* - Disabled state: `opacity-38`, non-interactive
|
|
4029
|
-
*
|
|
4030
4082
|
* @example
|
|
4031
4083
|
* ```tsx
|
|
4032
4084
|
* // Active item with icon
|
|
4033
4085
|
* <DrawerItem icon={<HomeIcon />} label="Home" isActive onPress={() => navigate('/')} />
|
|
4034
4086
|
*
|
|
4035
|
-
* // Item with
|
|
4036
|
-
* <DrawerItem label="Inbox" badge={
|
|
4087
|
+
* // Item with badge count
|
|
4088
|
+
* <DrawerItem label="Inbox" badge={24} />
|
|
4037
4089
|
*
|
|
4038
4090
|
* // Disabled
|
|
4039
4091
|
* <DrawerItem label="Disabled Feature" isDisabled />
|
|
@@ -4041,7 +4093,7 @@ declare const Drawer: React__default.ForwardRefExoticComponent<DrawerProps & Rea
|
|
|
4041
4093
|
*
|
|
4042
4094
|
* @see https://m3.material.io/components/navigation-drawer/specs
|
|
4043
4095
|
*/
|
|
4044
|
-
declare const DrawerItem:
|
|
4096
|
+
declare const DrawerItem: React$1.ForwardRefExoticComponent<DrawerItemProps & React$1.RefAttributes<HTMLElement>>;
|
|
4045
4097
|
|
|
4046
4098
|
/**
|
|
4047
4099
|
* Internal props extending the public DrawerSectionProps.
|
|
@@ -4068,9 +4120,9 @@ interface DrawerSectionInternalProps extends DrawerSectionProps {
|
|
|
4068
4120
|
* @example
|
|
4069
4121
|
* ```tsx
|
|
4070
4122
|
* // Section with header and divider
|
|
4071
|
-
* <DrawerSection header="
|
|
4072
|
-
* <DrawerItem icon={<
|
|
4073
|
-
* <DrawerItem icon={<
|
|
4123
|
+
* <DrawerSection header="Labels" showDivider>
|
|
4124
|
+
* <DrawerItem icon={<LabelIcon />} label="Promotions" />
|
|
4125
|
+
* <DrawerItem icon={<LabelIcon />} label="Social" />
|
|
4074
4126
|
* </DrawerSection>
|
|
4075
4127
|
*
|
|
4076
4128
|
* // Section without header (just a visual group)
|
|
@@ -4084,31 +4136,56 @@ interface DrawerSectionInternalProps extends DrawerSectionProps {
|
|
|
4084
4136
|
declare const DrawerSection: React$1.ForwardRefExoticComponent<DrawerSectionInternalProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
4085
4137
|
|
|
4086
4138
|
/**
|
|
4087
|
-
*
|
|
4088
|
-
*
|
|
4139
|
+
* Material Design 3 Navigation Drawer Headline (Layer 3: Styled).
|
|
4140
|
+
*
|
|
4141
|
+
* MD3 anatomy element 2 — the header text displayed at the top of the drawer,
|
|
4142
|
+
* typically the app name or primary section label.
|
|
4143
|
+
*
|
|
4144
|
+
* Typography: `text-title-small`
|
|
4145
|
+
* Color: `text-on-surface-variant`
|
|
4146
|
+
*
|
|
4147
|
+
* @example
|
|
4148
|
+
* ```tsx
|
|
4149
|
+
* <Drawer aria-label="App navigation">
|
|
4150
|
+
* <DrawerHeadline>Mail</DrawerHeadline>
|
|
4151
|
+
* <DrawerItem label="Inbox" isActive />
|
|
4152
|
+
* </Drawer>
|
|
4153
|
+
* ```
|
|
4154
|
+
*
|
|
4155
|
+
* @see https://m3.material.io/components/navigation-drawer/specs#anatomy
|
|
4156
|
+
*/
|
|
4157
|
+
declare const DrawerHeadline: React$1.ForwardRefExoticComponent<DrawerHeadlineProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
4158
|
+
|
|
4159
|
+
/**
|
|
4160
|
+
* Context shared between HeadlessDrawer and its children.
|
|
4089
4161
|
* @internal
|
|
4090
4162
|
*/
|
|
4091
|
-
declare const
|
|
4163
|
+
declare const DrawerContext: React__default.Context<DrawerContextValue | null>;
|
|
4092
4164
|
/**
|
|
4093
4165
|
* Headless Navigation Drawer (Layer 2).
|
|
4094
4166
|
*
|
|
4095
4167
|
* Provides all behavior and ARIA semantics without any visual styling.
|
|
4096
4168
|
* Renders two distinct DOM structures based on the `variant` prop:
|
|
4097
4169
|
*
|
|
4098
|
-
* - **`standard`**: `<nav role="navigation">` — no overlay, no focus trap
|
|
4099
|
-
*
|
|
4100
|
-
* `<div role="dialog" aria-modal="true">` with scrim overlay
|
|
4170
|
+
* - **`standard`**: `<nav role="navigation">` — no overlay, no focus trap,
|
|
4171
|
+
* translate-x driven by the `open` prop (spring-standard-spatial via CVA).
|
|
4101
4172
|
*
|
|
4102
|
-
*
|
|
4103
|
-
*
|
|
4104
|
-
*
|
|
4105
|
-
*
|
|
4106
|
-
*
|
|
4173
|
+
* - **`modal`**: portal to `document.body` with animation state machine
|
|
4174
|
+
* (`entering → visible → exiting → exited`), `createPortal` + portal gate,
|
|
4175
|
+
* `FocusScope`, `useDialog`, `useOverlay`, `usePreventScroll`, scrim, and
|
|
4176
|
+
* `data-animation-state` on both the panel and scrim elements.
|
|
4177
|
+
*
|
|
4178
|
+
* React Aria hooks used (modal):
|
|
4179
|
+
* - `useDialog` — `role="dialog"`, `aria-modal`, `aria-label`
|
|
4180
|
+
* - `useOverlay` — Escape key + outside-click dismissal
|
|
4181
|
+
* - `usePreventScroll` — locks body scroll when panel is mounted
|
|
4182
|
+
* - `FocusScope` — focus trap + restoreFocus on close
|
|
4107
4183
|
* - `useOverlayTriggerState` — open/close state management
|
|
4108
4184
|
*
|
|
4109
4185
|
* @example
|
|
4110
4186
|
* ```tsx
|
|
4111
|
-
* <HeadlessDrawer variant="modal" open aria-label="Navigation"
|
|
4187
|
+
* <HeadlessDrawer variant="modal" open aria-label="Navigation"
|
|
4188
|
+
* getAnimationClassName={(s) => drawerAnimationVariants({ animationState: s })}>
|
|
4112
4189
|
* <HeadlessDrawerItem onPress={() => {}}>Home</HeadlessDrawerItem>
|
|
4113
4190
|
* </HeadlessDrawer>
|
|
4114
4191
|
* ```
|
|
@@ -4117,12 +4194,15 @@ declare const HeadlessDrawer: React__default.ForwardRefExoticComponent<HeadlessD
|
|
|
4117
4194
|
/**
|
|
4118
4195
|
* Headless Navigation Drawer Item (Layer 2).
|
|
4119
4196
|
*
|
|
4197
|
+
* Thin primitive — handles only behavior and ARIA semantics. All interaction
|
|
4198
|
+
* state tracking (hover, focus-visible, pressed) and data-* attributes live
|
|
4199
|
+
* in the styled layer (DrawerItem), mirroring the ButtonHeadless pattern.
|
|
4200
|
+
*
|
|
4120
4201
|
* Renders as:
|
|
4121
4202
|
* - `<a>` using `useLink` when `href` is provided
|
|
4122
4203
|
* - `<button>` using `useButton` when no `href`
|
|
4123
4204
|
*
|
|
4124
4205
|
* Applies `aria-current="page"` when `isActive` is true.
|
|
4125
|
-
* Uses `useFocusRing` for visible keyboard focus.
|
|
4126
4206
|
*
|
|
4127
4207
|
* @example
|
|
4128
4208
|
* ```tsx
|
|
@@ -4139,6 +4219,246 @@ declare const HeadlessDrawer: React__default.ForwardRefExoticComponent<HeadlessD
|
|
|
4139
4219
|
*/
|
|
4140
4220
|
declare const HeadlessDrawerItem: React__default.ForwardRefExoticComponent<HeadlessDrawerItemProps & React__default.RefAttributes<HTMLElement>>;
|
|
4141
4221
|
|
|
4222
|
+
/**
|
|
4223
|
+
* Material Design 3 Navigation Drawer container variants (CVA).
|
|
4224
|
+
*
|
|
4225
|
+
* Architecture: Variants vs States (component-variants.mdc)
|
|
4226
|
+
* - CVA holds design-time structure only (variant, open).
|
|
4227
|
+
* - No interaction states in CVA — they are driven by data-* on the root.
|
|
4228
|
+
*
|
|
4229
|
+
* Specification:
|
|
4230
|
+
* Width: 360dp (`w-drawer`)
|
|
4231
|
+
* Height: 100dvh (`h-full`)
|
|
4232
|
+
* Padding: 12dp sides/top/bottom (`px-3 py-3`)
|
|
4233
|
+
* Surface: `bg-surface-container-low` (both variants per MD3 color token)
|
|
4234
|
+
* Elevation: standard = none; modal = `shadow-elevation-1`
|
|
4235
|
+
* Shape:
|
|
4236
|
+
* standard = square trailing edge (`rounded-none`) — panel is flush with the
|
|
4237
|
+
* screen left edge and has no exposed trailing corner.
|
|
4238
|
+
* modal = 16dp trailing corner (`rounded-r-lg`, MD3 corner-large) — the
|
|
4239
|
+
* exposed right edge is rounded when the drawer overlays content.
|
|
4240
|
+
*
|
|
4241
|
+
* Standard slide motion (spatial, on-screen translate):
|
|
4242
|
+
* Spring-standard-default-spatial (500ms, no overshoot) per md3-motion.mdc.
|
|
4243
|
+
* "enter = translate-x-0, exit = -translate-x-full"
|
|
4244
|
+
* Applied with `transition-transform` + spring tokens.
|
|
4245
|
+
* Reduced motion: handled by caller appending `transition-none`.
|
|
4246
|
+
*
|
|
4247
|
+
* Modal motion (enters/exits the screen):
|
|
4248
|
+
* Uses the animate-md-slide-in-left / animate-md-slide-out-left composite
|
|
4249
|
+
* utilities applied via `drawerAnimationVariants` + the presence state machine
|
|
4250
|
+
* in HeadlessDrawer. Container itself stays fixed; panel is portalled.
|
|
4251
|
+
*
|
|
4252
|
+
* @see https://m3.material.io/components/navigation-drawer/specs
|
|
4253
|
+
*/
|
|
4254
|
+
declare const drawerVariants: (props?: ({
|
|
4255
|
+
variant?: "standard" | "modal" | null | undefined;
|
|
4256
|
+
open?: boolean | null | undefined;
|
|
4257
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4258
|
+
/**
|
|
4259
|
+
* Animation state CVA for the MODAL drawer panel.
|
|
4260
|
+
*
|
|
4261
|
+
* Mirrors the `bottomSheetAnimationVariants` pattern exactly.
|
|
4262
|
+
* Applied by `Drawer.tsx` via a `getAnimationClassName` callback that is
|
|
4263
|
+
* gated on `useReducedMotion()`.
|
|
4264
|
+
*
|
|
4265
|
+
* Motion tokens (drawer is a large screen-level element, left-edge):
|
|
4266
|
+
* Enter: `animate-md-slide-in-left` — standard-default-spatial (500ms)
|
|
4267
|
+
* Exit: `animate-md-slide-out-left` — emphasized-accelerate (200ms)
|
|
4268
|
+
*
|
|
4269
|
+
* State machine: entering → visible → exiting → exited
|
|
4270
|
+
* entering: mount frame, panel is transparent/off-screen (no animation yet)
|
|
4271
|
+
* visible: entry animation fires
|
|
4272
|
+
* exiting: exit animation fires; `onTransitionEnd` + fallback timer → exited
|
|
4273
|
+
* exited: portal gate removes the element
|
|
4274
|
+
*
|
|
4275
|
+
* @see packages/react/src/components/BottomSheet/BottomSheet.variants.ts
|
|
4276
|
+
* @see https://m3.material.io/components/navigation-drawer/specs — Motion
|
|
4277
|
+
*/
|
|
4278
|
+
declare const drawerAnimationVariants: (props?: ({
|
|
4279
|
+
animationState?: "visible" | "entering" | "exiting" | "exited" | null | undefined;
|
|
4280
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4281
|
+
/**
|
|
4282
|
+
* Scrim animation CVA — controls the modal backdrop fade via CSS transition.
|
|
4283
|
+
*
|
|
4284
|
+
* Uses `transition-opacity` (an effects property — no overshoot) rather than
|
|
4285
|
+
* `animate-md-fade-*` keyframes so that the opacity change is a plain
|
|
4286
|
+
* CSS transition from one state to another, avoiding a `tailwind-merge`
|
|
4287
|
+
* conflict between the base `opacity-32` and the keyframe `opacity-1`.
|
|
4288
|
+
*
|
|
4289
|
+
* Opacity sequence per state:
|
|
4290
|
+
* entering: opacity-0 (invisible mount frame — transition will start here)
|
|
4291
|
+
* visible: opacity-32 (MD3 scrim opacity; CSS transition from 0→32 fires)
|
|
4292
|
+
* exiting: opacity-0 (CSS transition from 32→0 fires)
|
|
4293
|
+
* exited: opacity-0 + pointer-events-none (portal gate removes element)
|
|
4294
|
+
*
|
|
4295
|
+
* NOTE: the base `drawerScrimVariants` must NOT include `opacity-32` so that
|
|
4296
|
+
* tailwind-merge does not collapse it with these per-state opacity classes.
|
|
4297
|
+
*
|
|
4298
|
+
* @see https://m3.material.io/components/navigation-drawer/specs — Scrim callout 9
|
|
4299
|
+
*/
|
|
4300
|
+
declare const drawerScrimAnimationVariants: (props?: ({
|
|
4301
|
+
animationState?: "visible" | "entering" | "exiting" | "exited" | null | undefined;
|
|
4302
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4303
|
+
/**
|
|
4304
|
+
* Material Design 3 Navigation Drawer item root variants (CVA).
|
|
4305
|
+
*
|
|
4306
|
+
* Architecture: root is the `group/draweritem` host. It owns layout, shape,
|
|
4307
|
+
* and cursor. Colors (content color) live here via self-targeting `data-[x]:`
|
|
4308
|
+
* selectors since the root IS the group host.
|
|
4309
|
+
*
|
|
4310
|
+
* Slot z-order:
|
|
4311
|
+
* activeIndicator z-0 — secondary-container pill background
|
|
4312
|
+
* stateLayer z-[1] — hover/press opacity overlay
|
|
4313
|
+
* focusRing z-[2] — keyboard focus outline
|
|
4314
|
+
* ripple z-[3] — press ripple feedback
|
|
4315
|
+
* content z-10 — icon, label, badge
|
|
4316
|
+
*
|
|
4317
|
+
* Specification:
|
|
4318
|
+
* Height: 56dp (`h-14`)
|
|
4319
|
+
* Shape: `rounded-full` (pill)
|
|
4320
|
+
* Padding: 16dp leading (`pl-4`), 24dp trailing (`pr-6`)
|
|
4321
|
+
* Gap: 12dp icon-to-label (`gap-3`)
|
|
4322
|
+
* Typography: Label Large — 14sp / 500 / 0.1px tracking
|
|
4323
|
+
*
|
|
4324
|
+
* @see https://m3.material.io/components/navigation-drawer/specs
|
|
4325
|
+
*/
|
|
4326
|
+
declare const drawerItemVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4327
|
+
/**
|
|
4328
|
+
* Active indicator — secondary-container pill background.
|
|
4329
|
+
*
|
|
4330
|
+
* Fills the item shape (`inset-0 rounded-[inherit]`) and uses opacity
|
|
4331
|
+
* to toggle visibility when the item becomes active. Separating this from
|
|
4332
|
+
* the root background lets the state layer sit above it at z-[1].
|
|
4333
|
+
*
|
|
4334
|
+
* Color: `bg-secondary-container` per MD3 color token (callout 5).
|
|
4335
|
+
*
|
|
4336
|
+
* @see https://m3.material.io/components/navigation-drawer/specs
|
|
4337
|
+
*/
|
|
4338
|
+
declare const drawerItemActiveIndicatorVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4339
|
+
/**
|
|
4340
|
+
* State layer — absolute inset overlay that transitions opacity on
|
|
4341
|
+
* hover / focus-visible / press interaction states.
|
|
4342
|
+
*
|
|
4343
|
+
* Color mapping per MD3 spec:
|
|
4344
|
+
* Inactive: `bg-on-surface-variant` (callout 2/8)
|
|
4345
|
+
* Active: `bg-on-secondary-container` (callout 3/6)
|
|
4346
|
+
*
|
|
4347
|
+
* State-layer opacities per MD3 spec:
|
|
4348
|
+
* Hover: 8% (opacity-8)
|
|
4349
|
+
* Focused: 10% (opacity-10)
|
|
4350
|
+
* Pressed: 10% (opacity-10 — doubled selector wins over hover)
|
|
4351
|
+
* Hidden when disabled.
|
|
4352
|
+
*
|
|
4353
|
+
* Focus-visible also activates the dedicated focus-ring slot
|
|
4354
|
+
* (drawerItemFocusRingVariants) per WCAG 2.4.7. Both layer + ring are shown
|
|
4355
|
+
* simultaneously, matching the BottomSheet handle and MD3 reference grid.
|
|
4356
|
+
*
|
|
4357
|
+
* @see https://m3.material.io/components/navigation-drawer/specs#states
|
|
4358
|
+
*/
|
|
4359
|
+
declare const drawerItemStateLayerVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4360
|
+
/**
|
|
4361
|
+
* Focus ring slot — keyboard-focus indicator rendered as an absolute overlay.
|
|
4362
|
+
*
|
|
4363
|
+
* Uses `-outline-offset-2` (inset 2dp) so the outline stays within the pill
|
|
4364
|
+
* shape and does not spill into adjacent items.
|
|
4365
|
+
*
|
|
4366
|
+
* Shown alongside the 10% state layer for full MD3 focus state compliance.
|
|
4367
|
+
* Color: `outline-secondary` per MD3 focus indicator token.
|
|
4368
|
+
* Opacity: 0 at rest → 100% on focus-visible.
|
|
4369
|
+
*
|
|
4370
|
+
* @see https://m3.material.io/components/navigation-drawer/specs#states
|
|
4371
|
+
*/
|
|
4372
|
+
declare const drawerItemFocusRingVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4373
|
+
/**
|
|
4374
|
+
* Leading icon slot.
|
|
4375
|
+
*
|
|
4376
|
+
* MD3 spec: 24dp × 24dp icon.
|
|
4377
|
+
* Color inherits from the root `text-*` via `currentColor`.
|
|
4378
|
+
* Inactive: `text-on-surface-variant` (via root).
|
|
4379
|
+
* Active: `text-on-secondary-container` (via root data-[active]).
|
|
4380
|
+
* Disabled: explicit `text-on-surface/38` override (matches Menu icon pattern).
|
|
4381
|
+
*
|
|
4382
|
+
* @see https://m3.material.io/components/navigation-drawer/specs#anatomy
|
|
4383
|
+
*/
|
|
4384
|
+
declare const drawerItemIconVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4385
|
+
/**
|
|
4386
|
+
* Label text slot.
|
|
4387
|
+
*
|
|
4388
|
+
* Typography (Label Large — size, weight, tracking) is set on the root via
|
|
4389
|
+
* `drawerItemVariants` and inherited here via cascade.
|
|
4390
|
+
* `z-10` keeps it above the state layer and active indicator overlays.
|
|
4391
|
+
*/
|
|
4392
|
+
declare const drawerItemLabelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4393
|
+
/**
|
|
4394
|
+
* Trailing badge label text slot.
|
|
4395
|
+
*
|
|
4396
|
+
* MD3 anatomy element 5 — "Badge label text".
|
|
4397
|
+
* Rendered as plain inline text, colored by the item's active/inactive state
|
|
4398
|
+
* via the root's inherited text color.
|
|
4399
|
+
*
|
|
4400
|
+
* Typography: Label Large — size via `text-label-large`, weight and tracking
|
|
4401
|
+
* set explicitly so they are not lost when the element is not a block-level
|
|
4402
|
+
* inheritor in all browsers.
|
|
4403
|
+
*
|
|
4404
|
+
* @see https://m3.material.io/components/navigation-drawer/specs#anatomy
|
|
4405
|
+
*/
|
|
4406
|
+
declare const drawerItemBadgeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4407
|
+
/**
|
|
4408
|
+
* Material Design 3 Navigation Drawer Headline variants (CVA).
|
|
4409
|
+
*
|
|
4410
|
+
* MD3 anatomy element 2 — the header text at the top of the drawer.
|
|
4411
|
+
* Typography: Title Small — 14sp / 500 / 0.1px tracking.
|
|
4412
|
+
* Color: `text-on-surface-variant`.
|
|
4413
|
+
* Padding: 16dp top (pt-4), 16dp horizontal (px-4), 4dp bottom (pb-1).
|
|
4414
|
+
*
|
|
4415
|
+
* @see https://m3.material.io/components/navigation-drawer/specs#anatomy
|
|
4416
|
+
*/
|
|
4417
|
+
declare const drawerHeadlineVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4418
|
+
/**
|
|
4419
|
+
* Modal scrim overlay base styles (CVA).
|
|
4420
|
+
*
|
|
4421
|
+
* Covers the full viewport behind the modal drawer.
|
|
4422
|
+
* Clicking the scrim closes the drawer.
|
|
4423
|
+
*
|
|
4424
|
+
* Color: `bg-scrim` at `opacity-32` per MD3 spec callout 9.
|
|
4425
|
+
*
|
|
4426
|
+
* Enter/exit fade is applied via `drawerScrimAnimationVariants` by the
|
|
4427
|
+
* animation-state machine in HeadlessDrawer.
|
|
4428
|
+
*
|
|
4429
|
+
* @see https://m3.material.io/components/navigation-drawer/specs
|
|
4430
|
+
*/
|
|
4431
|
+
declare const drawerScrimVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4432
|
+
/**
|
|
4433
|
+
* Drawer section container variants (CVA).
|
|
4434
|
+
*
|
|
4435
|
+
* Groups related items with an optional header label and divider.
|
|
4436
|
+
*/
|
|
4437
|
+
declare const drawerSectionVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4438
|
+
/**
|
|
4439
|
+
* Drawer section header variants (CVA).
|
|
4440
|
+
*
|
|
4441
|
+
* Typography: Title Small — 14sp / 500 / 0.1px tracking per MD3 spec.
|
|
4442
|
+
* Color: `text-on-surface-variant`.
|
|
4443
|
+
* Padding: 16dp horizontal (aligned with item icon), 16dp top, 8dp bottom.
|
|
4444
|
+
*
|
|
4445
|
+
* @see https://m3.material.io/components/navigation-drawer/specs
|
|
4446
|
+
*/
|
|
4447
|
+
declare const drawerSectionHeaderVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
4448
|
+
type DrawerVariants = VariantProps<typeof drawerVariants>;
|
|
4449
|
+
type DrawerAnimationVariants = VariantProps<typeof drawerAnimationVariants>;
|
|
4450
|
+
type DrawerScrimAnimationVariants = VariantProps<typeof drawerScrimAnimationVariants>;
|
|
4451
|
+
type DrawerItemVariants = VariantProps<typeof drawerItemVariants>;
|
|
4452
|
+
type DrawerItemActiveIndicatorVariants = VariantProps<typeof drawerItemActiveIndicatorVariants>;
|
|
4453
|
+
type DrawerItemStateLayerVariants = VariantProps<typeof drawerItemStateLayerVariants>;
|
|
4454
|
+
type DrawerItemFocusRingVariants = VariantProps<typeof drawerItemFocusRingVariants>;
|
|
4455
|
+
type DrawerItemIconVariants = VariantProps<typeof drawerItemIconVariants>;
|
|
4456
|
+
type DrawerItemLabelVariants = VariantProps<typeof drawerItemLabelVariants>;
|
|
4457
|
+
type DrawerItemBadgeVariants = VariantProps<typeof drawerItemBadgeVariants>;
|
|
4458
|
+
type DrawerHeadlineVariants = VariantProps<typeof drawerHeadlineVariants>;
|
|
4459
|
+
type DrawerScrimVariants = VariantProps<typeof drawerScrimVariants>;
|
|
4460
|
+
type DrawerSectionVariants = VariantProps<typeof drawerSectionVariants>;
|
|
4461
|
+
|
|
4142
4462
|
/**
|
|
4143
4463
|
* Material Design 3 Progress Indicator Component Props
|
|
4144
4464
|
*
|
|
@@ -5331,10 +5651,17 @@ declare namespace MenuTrigger {
|
|
|
5331
5651
|
/**
|
|
5332
5652
|
* MD3 styled MenuItem component (Layer 3).
|
|
5333
5653
|
*
|
|
5334
|
-
*
|
|
5335
|
-
*
|
|
5336
|
-
*
|
|
5337
|
-
*
|
|
5654
|
+
* Slot architecture (mirrors Button/Switch):
|
|
5655
|
+
* root (group/menuitem) — layout, cursor, color, density height
|
|
5656
|
+
* highlight (z-0) — selected/active background fill
|
|
5657
|
+
* stateLayer (z-[1]) — hover/press opacity overlay
|
|
5658
|
+
* focusRing (z-[2]) — keyboard focus outline (inset, not on state-layer)
|
|
5659
|
+
* ripple (z-[3]) — press ripple feedback
|
|
5660
|
+
* content (z-10) — icon, label, trailing text/icon, description
|
|
5661
|
+
*
|
|
5662
|
+
* All interaction/selection styles are driven by data-* attributes that RAC
|
|
5663
|
+
* MenuItem emits natively (data-hovered, data-pressed, data-focus-visible,
|
|
5664
|
+
* data-selected, data-disabled, data-open) consumed via group-data selectors.
|
|
5338
5665
|
*
|
|
5339
5666
|
* @example
|
|
5340
5667
|
* ```tsx
|
|
@@ -5351,6 +5678,10 @@ declare const MenuItem: React$1.ForwardRefExoticComponent<MenuItemProps & React$
|
|
|
5351
5678
|
* Groups related `MenuItem` elements with an optional section header and an
|
|
5352
5679
|
* optional top divider.
|
|
5353
5680
|
*
|
|
5681
|
+
* The section header color adapts to the `colorScheme` from `MenuContext`:
|
|
5682
|
+
* standard → text-on-surface-variant
|
|
5683
|
+
* vibrant → text-on-tertiary-container
|
|
5684
|
+
*
|
|
5354
5685
|
* **Implementation note**: The divider is rendered as a SIBLING BEFORE the
|
|
5355
5686
|
* `RACMenuSection`, NOT inside it. RAC's `Section`/`MenuSection` only accepts
|
|
5356
5687
|
* `Header` and `MenuItem` children — placing a `Separator` inside the section
|
|
@@ -5435,17 +5766,20 @@ declare function HeadlessMenuDivider({ className, ...props }: SeparatorProps & {
|
|
|
5435
5766
|
/**
|
|
5436
5767
|
* Material Design 3 Menu container variants (CVA).
|
|
5437
5768
|
*
|
|
5438
|
-
*
|
|
5439
|
-
*
|
|
5769
|
+
* Architecture: Variants vs States
|
|
5770
|
+
* - CVA holds design-time structure only (menuStyle, colorScheme).
|
|
5771
|
+
* - Animation (enter/exit motion) lives on `menuPopoverVariants` which is
|
|
5772
|
+
* applied to the RAC Popover element — the element where RAC actually emits
|
|
5773
|
+
* data-entering, data-exiting, and data-placement.
|
|
5440
5774
|
*
|
|
5441
5775
|
* Shape per menuStyle:
|
|
5442
|
-
*
|
|
5443
|
-
*
|
|
5776
|
+
* baseline: `rounded-xs` (4dp extra-small)
|
|
5777
|
+
* vertical: `rounded-lg` (16dp large, MD3 Expressive)
|
|
5444
5778
|
*
|
|
5445
|
-
* Background per
|
|
5446
|
-
*
|
|
5447
|
-
* -
|
|
5448
|
-
*
|
|
5779
|
+
* Background per menuStyle:
|
|
5780
|
+
* baseline: bg-surface-container (solid, houses all items)
|
|
5781
|
+
* vertical: bg-transparent (items paint their own segment cards; gap reveals
|
|
5782
|
+
* the page background between segments — acting as the divider)
|
|
5449
5783
|
*
|
|
5450
5784
|
* @see https://m3.material.io/components/menus/specs
|
|
5451
5785
|
*/
|
|
@@ -12369,4 +12703,4 @@ type DateFieldVariants = VariantProps<typeof dateFieldVariants>;
|
|
|
12369
12703
|
declare const dateSegmentPlaceholderVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
12370
12704
|
type DateSegmentPlaceholderVariants = VariantProps<typeof dateSegmentPlaceholderVariants>;
|
|
12371
12705
|
|
|
12372
|
-
export { type ActionButtonFocusRingVariants, type ActionButtonSlotProps, type ActionButtonStateLayerVariants, type ActionButtonVariants, type ActionRowVariants, AppBar, AppBarHeadless, type AppBarHeadlessProps, type AppBarProps, type AppBarVariant, Badge, BadgeContent, type BadgeContentProps, BadgeHeadless, type BadgeHeadlessProps, type BadgeProps, type BadgeVariants, BottomSheet, type BottomSheetAnimationState, type BottomSheetAnimationVariants, BottomSheetContext, type BottomSheetContextValue, BottomSheetHandle, type BottomSheetHandleProps, type BottomSheetHandleVariants, BottomSheetHeadless, type BottomSheetHeadlessProps, type BottomSheetProps, type BottomSheetScrimVariants, type BottomSheetVariant, type BottomSheetVariants, Button, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupFocusRingVariants, ButtonGroupHeadless, type ButtonGroupProps, type ButtonGroupRootVariants, type ButtonGroupSelectionMode, type ButtonGroupShape, type ButtonGroupSize, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, type CalendarCellComponentProps, type CalendarCellFocusRingVariants, type CalendarCellProps, type CalendarCellStateLayerVariants, type CalendarCellType, type CalendarCellVariants, CalendarCore, type CalendarCoreProps, type CalendarDividerVariants, type CalendarGridProps, type CalendarHeaderVariants, type CalendarSlots, type CalendarTitleIconVariants, type CalendarTitleStateLayerVariants, type CalendarTitleTextVariants, type CalendarTitleVariants, type CalendarView, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardHeadless, type CardHeadlessProps, CardMedia, type CardMediaProps, type CardProps, type CardVariant, type CardVariants, Checkbox, type CheckboxProps, Chip, ChipHeadless, type ChipHeadlessProps, type ChipProps, ChipSet, type ChipSetProps, type ChipSurface, type ChipType, type ChipVariants, type ClockDialContainerVariants, type ClockDialNumberVariants, type ClockDialProps, type ClockHandCenterVariants, type ClockHandHandleVariants, type ClockHandProps, type ClockHandTrackVariants, type ClockSelectionMode, DateField, type DateFieldProps, type DateFieldVariants, type DateInputErrorVariants, type DateInputFieldGroupVariants, type DateInputFieldProps, type DateInputFieldVariants, type DateInputLabelVariants, DatePicker, type DatePickerActionsProps, type DatePickerCalendarSlots, type DatePickerContainerVariants, DatePickerDocked, type DatePickerDockedProps, type DatePickerHeadlessProps, DatePickerModal, type DatePickerModalHeaderProps, DatePickerModalInput, type DatePickerModalInputProps, type DatePickerModalProps, type DatePickerProps, type DatePickerRenderState, type DatePickerVariant, type DateSegmentPlaceholderVariants, type DateSelectionMode, Dialog, DialogActions, type DialogActionsProps, type DialogAnimationState, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogHeadless, type DialogHeadlessProps, DialogHeadline, type DialogHeadlineProps, type DialogProps, type DialogVariant, Divider, DividerHeadless, type DividerHeadlessProps, type DividerInset, type DividerOrientation, type DividerProps, type DividerVariants, type DockedFieldGroupVariants, type DockedLabelVariants, type DockedTriggerStateLayerVariants, type DockedTriggerVariants, Drawer, type DrawerContextValue, DrawerIconOnlyContext, DrawerItem, type DrawerItemBadgeConfig, type DrawerItemProps, type DrawerProps, DrawerSection, type DrawerSectionProps, type DrawerVariant, FAB, type FABColor, FABHeadless, type FABHeadlessProps, FABMenu, FABMenuContext, type FABMenuContextValue, type FABMenuDirection, FABMenuHeadless, type FABMenuHeadlessProps, FABMenuItem, type FABMenuItemColor, type FABMenuItemFocusRingVariants, type FABMenuItemIconVariants, type FABMenuItemLabelVariants, type FABMenuItemProps, type FABMenuItemStateLayerVariants, type FABMenuItemVariants, type FABMenuListVariants, type FABMenuProps, type FABMenuVariants, type FABProps, type FABSize, HeadlessDrawer, HeadlessDrawerItem, type HeadlessDrawerItemProps, type HeadlessDrawerProps, HeadlessMenu, HeadlessMenuDivider, HeadlessMenuItem, type HeadlessMenuItemProps, type HeadlessMenuProps, HeadlessMenuSection, type HeadlessMenuSectionProps, HeadlessMenuTrigger, type HeadlessMenuTriggerProps, HeadlessNavigationBar, HeadlessNavigationBarItem, type HeadlessNavigationBarItemProps, type HeadlessNavigationBarProps, HeadlessTab, HeadlessTabList, HeadlessTabPanel, type HeadlessTabPanelProps, type HeadlessTabProps, type HeadlineVariants, IconButton, type IconButtonColor, IconButtonHeadless, type IconButtonHeadlessProps, type IconButtonProps, type IconButtonSize, type IconButtonVariant, List, type ListDensity, ListHeadless, type ListHeadlessProps, ListItem, ListItemHeadless, ListItemLeading, type ListItemLeadingProps, type ListItemProps, ListItemText, type ListItemTextProps, ListItemTrailing, type ListItemTrailingProps, type ListItemVariants, type ListLeadingType, type ListProps, type ListTrailingType, type ListVariants, type MD3ColorRole, type MD3TypographyScale, type MD3TypographySize, type MD3TypographyStyle, Menu, type MenuContainerVariants, MenuContext, type MenuContextValue, MenuDivider, type MenuDividerProps, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuTrigger, type MenuTriggerProps, type ModalDialogVariants, type ModalHeaderVariants, type ModeToggleStateLayerVariants, type ModeToggleVariants, type NavButtonComponentProps, type NavButtonFocusRingVariants, type NavButtonStateLayerVariants, type NavButtonVariants, NavigationBar, type NavigationBarBadge, NavigationBarItem, type NavigationBarItemConfig, type NavigationBarItemProps, type NavigationBarItemRenderProps, type NavigationBarProps, type PeriodSelectorContainerVariants, type PeriodSelectorItemVariants, type PeriodSelectorProps, type PopoverVariants, Progress, ProgressHeadless, type ProgressHeadlessProps, type ProgressProps, Radio, RadioGroup, RadioGroupHeadless, type RadioGroupHeadlessProps, type RadioGroupProps, RadioHeadless, type RadioHeadlessProps, type RadioProps, type RangeCalendarProps, RichTooltip, type RichTooltipProps, type RichTooltipVariants, STATE_LAYER_OPACITY, type ScrimVariants, Search, SearchBar, SearchBarHeadless, type SearchBarHeadlessProps, type SearchBarProps, type SearchLayout, type SearchProps, type SearchStyle, SearchView, SearchViewHeadless, type SearchViewHeadlessProps, type SearchViewProps, Slider, SliderHeadless, type SliderHeadlessProps, type SliderOrientation, type SliderProps, type SliderRangeThumbLabels, type SliderRenderState, type SliderSize, type SliderThumbProps, type SliderThumbState, type SliderVariant, Snackbar, type SnackbarAction, SnackbarContext, type SnackbarContextValue, SnackbarHeadless, type SnackbarHeadlessProps, type SnackbarItem, type SnackbarProps, SnackbarProvider, type SnackbarProviderProps, type SnackbarSeverity, SplitButton, type SplitButtonContainerVariants, type SplitButtonFocusRingVariants, SplitButtonHeadless, type SplitButtonHeadlessProps, type SplitButtonIconVariants, type SplitButtonLeadingVariants, type SplitButtonMenuItem, type SplitButtonMenuItemVariantProps, type SplitButtonProps, type SplitButtonSize, type SplitButtonStateLayerVariants, type SplitButtonTrailingVariants, type SplitButtonVariant, StyledActionButton, StyledCalendarCell, StyledCalendarTitle, StyledNavButton, StyledWeekday, StyledYearItem, type SupportingTextVariants, Switch, type SwitchProps, TYPOGRAPHY_ELEMENT_MAP, TYPOGRAPHY_USAGE, Tab, type TabItem, type TabLayout, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, type TabVariant, Tabs, type TabsProps, TextField, type TextFieldProps, type TextFieldVariant, type TimeFormat, type TimeInputFieldProps, type TimeInputFieldVariants, type TimePeriod, TimePicker, type TimePickerActionButtonVariants, type TimePickerActionRowVariants, type TimePickerContainerVariants, TimePickerDial, type TimePickerDialProps, type TimePickerHeadlessProps, type TimePickerHeadlineVariants, TimePickerInput, type TimePickerInputProps, type TimePickerModeToggleVariants, type TimePickerOrientation, type TimePickerProps, type TimePickerRenderState, type TimePickerVariant, type TimeSelectorContainerVariants, type TimeSelectorProps, type TimeSeparatorVariants, type TimeValue, type TitleComponentProps, Tooltip, type TooltipHeadlessProps, TooltipOverlayHeadless, type TooltipPlacement, type TooltipProps, TooltipTrigger, TooltipTriggerHeadless, type TooltipTriggerProps, type TooltipTriggerStyledProps, type TooltipVariant, type TooltipVariants, type TypographyProperty, type TypographyStyleObject, type UseBottomSheetDragOptions, type UseBottomSheetDragReturn, type WeekdayVariants, type YearGridVariants, type YearItemComponentProps, type YearItemFocusRingVariants, type YearItemStateLayerVariants, type YearItemVariants, actionButtonFocusRingVariants, actionButtonStateLayerVariants, actionButtonVariants, actionRowVariants, applyStateLayer, badgeVariants, bottomSheetAnimationVariants, bottomSheetHandlePillVariants, bottomSheetHandleWrapperVariants, bottomSheetScrimVariants, bottomSheetVariants, buttonGroupFocusRingVariants, buttonGroupRootVariants, buttonGroupVariants, calendarCellFocusRingVariants, calendarCellStateLayerVariants, calendarCellVariants, calendarDividerVariants, calendarHeaderVariants, calendarTitleIconVariants, calendarTitleStateLayerVariants, calendarTitleTextVariants, calendarTitleVariants, cardVariants, chipVariants, clockDialContainerVariants, clockDialNumberVariants, clockHandCenterVariants, clockHandHandleVariants, clockHandTrackVariants, cn, dateFieldVariants, dateInputErrorVariants, dateInputFieldGroupVariants, dateInputFieldVariants, dateInputLabelVariants, datePickerContainerVariants, dateSegmentPlaceholderVariants, dividerVariants, dockedFieldGroupVariants, dockedLabelVariants, dockedTriggerStateLayerVariants, dockedTriggerVariants, fabMenuItemFocusRingVariants, fabMenuItemIconVariants, fabMenuItemLabelVariants, fabMenuItemStateLayerVariants, fabMenuItemVariants, fabMenuListVariants, fabMenuVariants, generateMD3Theme, getColorValue, getConnectedRadiusClasses, getFontFamily, getMD3Color, getResponsiveTypography, getTypographyClassName, getTypographyForElement, getTypographyStyle, getTypographyToken, headlineVariants, hexToRgb, listItemVariants, listVariants, modalDialogVariants, modalHeaderVariants, modeToggleStateLayerVariants, modeToggleVariants, navButtonFocusRingVariants, navButtonStateLayerVariants, navButtonVariants, periodSelectorContainerVariants, periodSelectorItemVariants, popoverVariants, pxToRem, remToPx, rgbToHex, richTooltipVariants, scrimVariants, searchBarAvatarVariants, searchBarFocusRingVariants, searchBarInputVariants, searchBarLeadingIconVariants, searchBarRootVariants, searchBarStateLayerVariants, searchBarTrailingActionVariants, searchBarTrailingActionsVariants, searchViewBackButtonVariants, searchViewClearButtonVariants, searchViewContentVariants, searchViewDividerVariants, searchViewHeaderVariants, searchViewInputVariants, searchViewTrailingActionVariants, searchViewTrailingActionsVariants, searchViewVariants, sliderActiveTrackVariants, sliderContainerVariants, sliderHandleStateLayerVariants, sliderHandleVariants, sliderInactiveTrackVariants, sliderTrackLayoutVariants, splitButtonContainerVariants, splitButtonFocusRingVariants, splitButtonIconVariants, splitButtonLabelVariants, splitButtonLeadingVariants, splitButtonMenuItemVariants, splitButtonMenuVariants, splitButtonStateLayerVariants, splitButtonTrailingVariants, splitButtonVariants, supportingTextVariants, timeInputFieldVariants, timePickerActionButtonVariants, timePickerActionRowVariants, timePickerContainerVariants, timePickerHeadlineVariants, timePickerModeToggleVariants, timeSelectorContainerVariants, timeSeparatorVariants, tooltipVariants, truncateText, useBottomSheetContext, useBottomSheetDrag, useButtonGroup, useDialogContext, useFABMenuContext, useMenuContext, useOptionalButtonGroup, useSnackbar, weekdayVariants, withOpacity, yearGridVariants, yearItemFocusRingVariants, yearItemStateLayerVariants, yearItemVariants };
|
|
12706
|
+
export { type ActionButtonFocusRingVariants, type ActionButtonSlotProps, type ActionButtonStateLayerVariants, type ActionButtonVariants, type ActionRowVariants, AppBar, AppBarHeadless, type AppBarHeadlessProps, type AppBarProps, type AppBarVariant, Badge, BadgeContent, type BadgeContentProps, BadgeHeadless, type BadgeHeadlessProps, type BadgeProps, type BadgeVariants, BottomSheet, type BottomSheetAnimationState, type BottomSheetAnimationVariants, BottomSheetContext, type BottomSheetContextValue, BottomSheetHandle, type BottomSheetHandleProps, type BottomSheetHandleVariants, BottomSheetHeadless, type BottomSheetHeadlessProps, type BottomSheetProps, type BottomSheetScrimVariants, type BottomSheetVariant, type BottomSheetVariants, Button, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupFocusRingVariants, ButtonGroupHeadless, type ButtonGroupProps, type ButtonGroupRootVariants, type ButtonGroupSelectionMode, type ButtonGroupShape, type ButtonGroupSize, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, type CalendarCellComponentProps, type CalendarCellFocusRingVariants, type CalendarCellProps, type CalendarCellStateLayerVariants, type CalendarCellType, type CalendarCellVariants, CalendarCore, type CalendarCoreProps, type CalendarDividerVariants, type CalendarGridProps, type CalendarHeaderVariants, type CalendarSlots, type CalendarTitleIconVariants, type CalendarTitleStateLayerVariants, type CalendarTitleTextVariants, type CalendarTitleVariants, type CalendarView, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardHeader, type CardHeaderProps, CardHeadless, type CardHeadlessProps, CardMedia, type CardMediaProps, type CardProps, type CardVariant, type CardVariants, Checkbox, type CheckboxProps, Chip, ChipHeadless, type ChipHeadlessProps, type ChipProps, ChipSet, type ChipSetProps, type ChipSurface, type ChipType, type ChipVariants, type ClockDialContainerVariants, type ClockDialNumberVariants, type ClockDialProps, type ClockHandCenterVariants, type ClockHandHandleVariants, type ClockHandProps, type ClockHandTrackVariants, type ClockSelectionMode, DateField, type DateFieldProps, type DateFieldVariants, type DateInputErrorVariants, type DateInputFieldGroupVariants, type DateInputFieldProps, type DateInputFieldVariants, type DateInputLabelVariants, DatePicker, type DatePickerActionsProps, type DatePickerCalendarSlots, type DatePickerContainerVariants, DatePickerDocked, type DatePickerDockedProps, type DatePickerHeadlessProps, DatePickerModal, type DatePickerModalHeaderProps, DatePickerModalInput, type DatePickerModalInputProps, type DatePickerModalProps, type DatePickerProps, type DatePickerRenderState, type DatePickerVariant, type DateSegmentPlaceholderVariants, type DateSelectionMode, Dialog, DialogActions, type DialogActionsProps, type DialogAnimationState, DialogContent, type DialogContentProps, DialogContext, type DialogContextValue, DialogHeadless, type DialogHeadlessProps, DialogHeadline, type DialogHeadlineProps, type DialogProps, type DialogVariant, Divider, DividerHeadless, type DividerHeadlessProps, type DividerInset, type DividerOrientation, type DividerProps, type DividerVariants, type DockedFieldGroupVariants, type DockedLabelVariants, type DockedTriggerStateLayerVariants, type DockedTriggerVariants, Drawer, type DrawerAnimationState, type DrawerAnimationVariants, DrawerContext, type DrawerContextValue, DrawerHeadline, type DrawerHeadlineProps, type DrawerHeadlineVariants, DrawerItem, type DrawerItemActiveIndicatorVariants, type DrawerItemBadgeVariants, type DrawerItemFocusRingVariants, type DrawerItemIconVariants, type DrawerItemLabelVariants, type DrawerItemProps, type DrawerItemStateLayerVariants, type DrawerItemVariants, type DrawerProps, type DrawerScrimAnimationVariants, type DrawerScrimVariants, DrawerSection, type DrawerSectionProps, type DrawerSectionVariants, type DrawerVariant, type DrawerVariants, FAB, type FABColor, FABHeadless, type FABHeadlessProps, FABMenu, FABMenuContext, type FABMenuContextValue, type FABMenuDirection, FABMenuHeadless, type FABMenuHeadlessProps, FABMenuItem, type FABMenuItemColor, type FABMenuItemFocusRingVariants, type FABMenuItemIconVariants, type FABMenuItemLabelVariants, type FABMenuItemProps, type FABMenuItemStateLayerVariants, type FABMenuItemVariants, type FABMenuListVariants, type FABMenuProps, type FABMenuVariants, type FABProps, type FABSize, HeadlessDrawer, HeadlessDrawerItem, type HeadlessDrawerItemProps, type HeadlessDrawerProps, HeadlessMenu, HeadlessMenuDivider, HeadlessMenuItem, type HeadlessMenuItemProps, type HeadlessMenuProps, HeadlessMenuSection, type HeadlessMenuSectionProps, HeadlessMenuTrigger, type HeadlessMenuTriggerProps, HeadlessNavigationBar, HeadlessNavigationBarItem, type HeadlessNavigationBarItemProps, type HeadlessNavigationBarProps, HeadlessTab, HeadlessTabList, HeadlessTabPanel, type HeadlessTabPanelProps, type HeadlessTabProps, type HeadlineVariants, IconButton, type IconButtonColor, IconButtonHeadless, type IconButtonHeadlessProps, type IconButtonProps, type IconButtonSize, type IconButtonVariant, List, type ListDensity, ListHeadless, type ListHeadlessProps, ListItem, ListItemHeadless, ListItemLeading, type ListItemLeadingProps, type ListItemProps, ListItemText, type ListItemTextProps, ListItemTrailing, type ListItemTrailingProps, type ListItemVariants, type ListLeadingType, type ListProps, type ListTrailingType, type ListVariants, type MD3ColorRole, type MD3TypographyScale, type MD3TypographySize, type MD3TypographyStyle, Menu, type MenuContainerVariants, MenuContext, type MenuContextValue, MenuDivider, type MenuDividerProps, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuTrigger, type MenuTriggerProps, type ModalDialogVariants, type ModalHeaderVariants, type ModeToggleStateLayerVariants, type ModeToggleVariants, type NavButtonComponentProps, type NavButtonFocusRingVariants, type NavButtonStateLayerVariants, type NavButtonVariants, NavigationBar, type NavigationBarBadge, NavigationBarItem, type NavigationBarItemConfig, type NavigationBarItemProps, type NavigationBarItemRenderProps, type NavigationBarProps, type PeriodSelectorContainerVariants, type PeriodSelectorItemVariants, type PeriodSelectorProps, type PopoverVariants, Progress, ProgressHeadless, type ProgressHeadlessProps, type ProgressProps, Radio, RadioGroup, RadioGroupHeadless, type RadioGroupHeadlessProps, type RadioGroupProps, RadioHeadless, type RadioHeadlessProps, type RadioProps, type RangeCalendarProps, RichTooltip, type RichTooltipProps, type RichTooltipVariants, STATE_LAYER_OPACITY, type ScrimVariants, Search, SearchBar, SearchBarHeadless, type SearchBarHeadlessProps, type SearchBarProps, type SearchLayout, type SearchProps, type SearchStyle, SearchView, SearchViewHeadless, type SearchViewHeadlessProps, type SearchViewProps, Slider, SliderHeadless, type SliderHeadlessProps, type SliderOrientation, type SliderProps, type SliderRangeThumbLabels, type SliderRenderState, type SliderSize, type SliderThumbProps, type SliderThumbState, type SliderVariant, Snackbar, type SnackbarAction, SnackbarContext, type SnackbarContextValue, SnackbarHeadless, type SnackbarHeadlessProps, type SnackbarItem, type SnackbarProps, SnackbarProvider, type SnackbarProviderProps, type SnackbarSeverity, SplitButton, type SplitButtonContainerVariants, type SplitButtonFocusRingVariants, SplitButtonHeadless, type SplitButtonHeadlessProps, type SplitButtonIconVariants, type SplitButtonLeadingVariants, type SplitButtonMenuItem, type SplitButtonMenuItemVariantProps, type SplitButtonProps, type SplitButtonSize, type SplitButtonStateLayerVariants, type SplitButtonTrailingVariants, type SplitButtonVariant, StyledActionButton, StyledCalendarCell, StyledCalendarTitle, StyledNavButton, StyledWeekday, StyledYearItem, type SupportingTextVariants, Switch, type SwitchProps, TYPOGRAPHY_ELEMENT_MAP, TYPOGRAPHY_USAGE, Tab, type TabItem, type TabLayout, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, type TabVariant, Tabs, type TabsProps, TextField, type TextFieldProps, type TextFieldVariant, type TimeFormat, type TimeInputFieldProps, type TimeInputFieldVariants, type TimePeriod, TimePicker, type TimePickerActionButtonVariants, type TimePickerActionRowVariants, type TimePickerContainerVariants, TimePickerDial, type TimePickerDialProps, type TimePickerHeadlessProps, type TimePickerHeadlineVariants, TimePickerInput, type TimePickerInputProps, type TimePickerModeToggleVariants, type TimePickerOrientation, type TimePickerProps, type TimePickerRenderState, type TimePickerVariant, type TimeSelectorContainerVariants, type TimeSelectorProps, type TimeSeparatorVariants, type TimeValue, type TitleComponentProps, Tooltip, type TooltipHeadlessProps, TooltipOverlayHeadless, type TooltipPlacement, type TooltipProps, TooltipTrigger, TooltipTriggerHeadless, type TooltipTriggerProps, type TooltipTriggerStyledProps, type TooltipVariant, type TooltipVariants, type TypographyProperty, type TypographyStyleObject, type UseBottomSheetDragOptions, type UseBottomSheetDragReturn, type WeekdayVariants, type YearGridVariants, type YearItemComponentProps, type YearItemFocusRingVariants, type YearItemStateLayerVariants, type YearItemVariants, actionButtonFocusRingVariants, actionButtonStateLayerVariants, actionButtonVariants, actionRowVariants, applyStateLayer, badgeVariants, bottomSheetAnimationVariants, bottomSheetHandlePillVariants, bottomSheetHandleWrapperVariants, bottomSheetScrimVariants, bottomSheetVariants, buttonGroupFocusRingVariants, buttonGroupRootVariants, buttonGroupVariants, calendarCellFocusRingVariants, calendarCellStateLayerVariants, calendarCellVariants, calendarDividerVariants, calendarHeaderVariants, calendarTitleIconVariants, calendarTitleStateLayerVariants, calendarTitleTextVariants, calendarTitleVariants, cardVariants, chipVariants, clockDialContainerVariants, clockDialNumberVariants, clockHandCenterVariants, clockHandHandleVariants, clockHandTrackVariants, cn, dateFieldVariants, dateInputErrorVariants, dateInputFieldGroupVariants, dateInputFieldVariants, dateInputLabelVariants, datePickerContainerVariants, dateSegmentPlaceholderVariants, dividerVariants, dockedFieldGroupVariants, dockedLabelVariants, dockedTriggerStateLayerVariants, dockedTriggerVariants, drawerAnimationVariants, drawerHeadlineVariants, drawerItemActiveIndicatorVariants, drawerItemBadgeVariants, drawerItemFocusRingVariants, drawerItemIconVariants, drawerItemLabelVariants, drawerItemStateLayerVariants, drawerItemVariants, drawerScrimAnimationVariants, drawerScrimVariants, drawerSectionHeaderVariants, drawerSectionVariants, drawerVariants, fabMenuItemFocusRingVariants, fabMenuItemIconVariants, fabMenuItemLabelVariants, fabMenuItemStateLayerVariants, fabMenuItemVariants, fabMenuListVariants, fabMenuVariants, generateMD3Theme, getColorValue, getConnectedRadiusClasses, getFontFamily, getMD3Color, getResponsiveTypography, getTypographyClassName, getTypographyForElement, getTypographyStyle, getTypographyToken, headlineVariants, hexToRgb, listItemVariants, listVariants, modalDialogVariants, modalHeaderVariants, modeToggleStateLayerVariants, modeToggleVariants, navButtonFocusRingVariants, navButtonStateLayerVariants, navButtonVariants, periodSelectorContainerVariants, periodSelectorItemVariants, popoverVariants, pxToRem, remToPx, rgbToHex, richTooltipVariants, scrimVariants, searchBarAvatarVariants, searchBarFocusRingVariants, searchBarInputVariants, searchBarLeadingIconVariants, searchBarRootVariants, searchBarStateLayerVariants, searchBarTrailingActionVariants, searchBarTrailingActionsVariants, searchViewBackButtonVariants, searchViewClearButtonVariants, searchViewContentVariants, searchViewDividerVariants, searchViewHeaderVariants, searchViewInputVariants, searchViewTrailingActionVariants, searchViewTrailingActionsVariants, searchViewVariants, sliderActiveTrackVariants, sliderContainerVariants, sliderHandleStateLayerVariants, sliderHandleVariants, sliderInactiveTrackVariants, sliderTrackLayoutVariants, splitButtonContainerVariants, splitButtonFocusRingVariants, splitButtonIconVariants, splitButtonLabelVariants, splitButtonLeadingVariants, splitButtonMenuItemVariants, splitButtonMenuVariants, splitButtonStateLayerVariants, splitButtonTrailingVariants, splitButtonVariants, supportingTextVariants, timeInputFieldVariants, timePickerActionButtonVariants, timePickerActionRowVariants, timePickerContainerVariants, timePickerHeadlineVariants, timePickerModeToggleVariants, timeSelectorContainerVariants, timeSeparatorVariants, tooltipVariants, truncateText, useBottomSheetContext, useBottomSheetDrag, useButtonGroup, useDialogContext, useFABMenuContext, useMenuContext, useOptionalButtonGroup, useSnackbar, weekdayVariants, withOpacity, yearGridVariants, yearItemFocusRingVariants, yearItemStateLayerVariants, yearItemVariants };
|