@bug-on/md3-react 3.0.1 → 3.0.2
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/.turbo/turbo-build.log +41 -42
- package/CHANGELOG.md +10 -0
- package/dist/index.d.mts +54 -3
- package/dist/index.d.ts +54 -3
- package/dist/index.js +764 -473
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +710 -421
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/ui/navigation-bar.test.tsx +111 -0
- package/src/ui/navigation-bar.tsx +448 -0
- package/src/ui/navigation-rail.test.tsx +5 -4
- package/src/ui/navigation-rail.tsx +20 -21
- package/src/ui/scroll-area.tsx +4 -0
- package/src/ui/shared/constants.ts +1 -1
- package/test_output.txt +0 -164
- package/test_output_v2.txt +0 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
✅ Copied
|
|
26
|
-
✅
|
|
27
|
-
✅ Bundled
|
|
28
|
-
✅
|
|
29
|
-
✅
|
|
30
|
-
✅ Copied material-symbols-
|
|
31
|
-
✅
|
|
32
|
-
✅ Generated
|
|
33
|
-
✅ Generated
|
|
34
|
-
✅ Generated material-symbols-
|
|
35
|
-
✅
|
|
36
|
-
✅ Prepended "use client" to index.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
DTS dist/index.d.mts 234.14 KB
|
|
1
|
+
|
|
2
|
+
> @bug-on/md3-react@3.0.2 build /home/runner/work/bug-on-md3-expressive/bug-on-md3-expressive/packages/react
|
|
3
|
+
> tsup
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts, src/plugin.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.5.1
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/bug-on-md3-expressive/bug-on-md3-expressive/packages/react/tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: es2017
|
|
10
|
+
[34mCJS[39m Build start
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[34mDTS[39m Build start
|
|
13
|
+
[32mCJS[39m [1mdist/plugin.js [22m[32m337.00 B[39m
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m511.81 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/plugin.js.map [22m[32m90.00 B[39m
|
|
16
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m1.13 MB[39m
|
|
17
|
+
[32mCJS[39m ⚡️ Build success in 1702ms
|
|
18
|
+
[32mESM[39m [1mdist/plugin.mjs [22m[32m119.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m492.39 KB[39m
|
|
20
|
+
[32mESM[39m [1mdist/plugin.mjs.map [22m[32m91.00 B[39m
|
|
21
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m1.13 MB[39m
|
|
22
|
+
[32mESM[39m ⚡️ Build success in 1703ms
|
|
23
|
+
Copying assets to dist...
|
|
24
|
+
✅ Copied src/assets to dist/assets
|
|
25
|
+
✅ Copied typography.css to dist/typography.css
|
|
26
|
+
✅ Bundled colors.css from md3-tokens into index.css
|
|
27
|
+
✅ Bundled shape.css from md3-tokens into index.css
|
|
28
|
+
✅ Built bundled index.css (tokens + component base) to dist/index.css
|
|
29
|
+
✅ Copied material-symbols-cdn.css to dist/material-symbols-cdn.css
|
|
30
|
+
✅ Copied material-symbols-self-hosted.css to dist/material-symbols-self-hosted.css
|
|
31
|
+
✅ Generated index.css.d.ts
|
|
32
|
+
✅ Generated typography.css.d.ts
|
|
33
|
+
✅ Generated material-symbols-cdn.css.d.ts
|
|
34
|
+
✅ Generated material-symbols-self-hosted.css.d.ts
|
|
35
|
+
✅ Prepended "use client" to index.js
|
|
36
|
+
✅ Prepended "use client" to index.mjs
|
|
37
|
+
[32mDTS[39m ⚡️ Build success in 5006ms
|
|
38
|
+
[32mDTS[39m [1mdist/plugin.d.ts [22m[32m48.00 B[39m
|
|
39
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m236.31 KB[39m
|
|
40
|
+
[32mDTS[39m [1mdist/plugin.d.mts [22m[32m48.00 B[39m
|
|
41
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m236.31 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @bug-on/md3-react
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **Motion**: Improved `SPRING_TRANSITION_EXPRESSIVE` with a stronger bounce (0.35 → 0.45) to match MD3 Expressive standards.
|
|
8
|
+
- **Navigation**: Added `activeIndicatorTransition` prop to `NavigationBar` and `NavigationRail` for custom spring configuration.
|
|
9
|
+
- **Navigation**: Enhanced active indicator pill with a stronger "pop" scale animation.
|
|
10
|
+
- **Documentation**: Added custom animation examples for Navigation components and updated API references.
|
|
11
|
+
- **AI Context**: Updated `llms.txt` and `llms-full.txt` with the latest motion specs and Navigation Bar reference.
|
|
12
|
+
|
|
3
13
|
## 3.0.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -3192,7 +3192,55 @@ declare const VerticalMenuContent: React$1.ForwardRefExoticComponent<VerticalMen
|
|
|
3192
3192
|
*/
|
|
3193
3193
|
declare const VerticalMenu: React$1.ForwardRefExoticComponent<VerticalMenuProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3194
3194
|
|
|
3195
|
-
|
|
3195
|
+
/**
|
|
3196
|
+
* Layout styling for navigation bar items.
|
|
3197
|
+
* - vertical: Icon above label (default for mobile)
|
|
3198
|
+
* - horizontal: Icon beside label (forced)
|
|
3199
|
+
*/
|
|
3200
|
+
type NavigationBarItemLayout = "vertical" | "horizontal";
|
|
3201
|
+
/**
|
|
3202
|
+
* Visual variant of the Navigation Bar.
|
|
3203
|
+
* - flexible: Default MD3 behavior (h-16), becomes horizontal on desktop.
|
|
3204
|
+
* - baseline: Taller MD3 behavior (h-20), always vertical.
|
|
3205
|
+
* - xr: Floating orbiter variant for spatial interfaces (detached from bottom).
|
|
3206
|
+
*/
|
|
3207
|
+
type NavigationBarVariant = "flexible" | "baseline" | "xr";
|
|
3208
|
+
interface NavigationBarItemProps {
|
|
3209
|
+
selected: boolean;
|
|
3210
|
+
icon: React$1.ReactNode;
|
|
3211
|
+
label: React$1.ReactNode;
|
|
3212
|
+
onClick?: () => void;
|
|
3213
|
+
disabled?: boolean;
|
|
3214
|
+
badge?: React$1.ReactNode;
|
|
3215
|
+
"aria-label"?: string;
|
|
3216
|
+
className?: string;
|
|
3217
|
+
}
|
|
3218
|
+
interface NavigationBarProps {
|
|
3219
|
+
/** Visual variant of the Navigation Bar */
|
|
3220
|
+
variant?: NavigationBarVariant;
|
|
3221
|
+
/** Forces a specific item layout (horizontal/vertical) */
|
|
3222
|
+
itemLayout?: NavigationBarItemLayout;
|
|
3223
|
+
/** Whether the bar should hide when scrolling down */
|
|
3224
|
+
hideOnScroll?: boolean;
|
|
3225
|
+
/** Whether the bar should have an elevation shadow */
|
|
3226
|
+
elevated?: boolean;
|
|
3227
|
+
/** Whether the bar is fixed to the viewport (default) or absolute */
|
|
3228
|
+
fixed?: boolean;
|
|
3229
|
+
/** Container ref to track scrolling for hideOnScroll */
|
|
3230
|
+
scrollContainerRef?: React$1.RefObject<HTMLElement | null>;
|
|
3231
|
+
/** Transition for the active indicator pill */
|
|
3232
|
+
activeIndicatorTransition?: Transition;
|
|
3233
|
+
/** Navigation items */
|
|
3234
|
+
children: React$1.ReactNode;
|
|
3235
|
+
/** Optional additional classes */
|
|
3236
|
+
className?: string;
|
|
3237
|
+
/** Optional inline styles */
|
|
3238
|
+
style?: React$1.CSSProperties;
|
|
3239
|
+
}
|
|
3240
|
+
declare const NavigationBarItem: React$1.NamedExoticComponent<NavigationBarItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3241
|
+
declare const NavigationBar: React$1.NamedExoticComponent<NavigationBarProps & React$1.RefAttributes<HTMLElement>>;
|
|
3242
|
+
|
|
3243
|
+
type NavigationRailVariant = "collapsed" | "expanded" | "modal" | "xr";
|
|
3196
3244
|
type NavigationRailLabelVisibility = "labeled" | "auto" | "unlabeled";
|
|
3197
3245
|
interface NavigationRailItemProps {
|
|
3198
3246
|
selected: boolean;
|
|
@@ -3209,11 +3257,12 @@ interface NavigationRailProps {
|
|
|
3209
3257
|
labelVisibility?: NavigationRailLabelVisibility;
|
|
3210
3258
|
header?: React$1.ReactNode;
|
|
3211
3259
|
fab?: React$1.ReactNode;
|
|
3260
|
+
fabPlacement?: "contained" | "spatialized";
|
|
3212
3261
|
footer?: React$1.ReactNode;
|
|
3213
3262
|
narrow?: boolean;
|
|
3214
3263
|
open?: boolean;
|
|
3215
|
-
xr?: boolean | "contained" | "spatialized";
|
|
3216
3264
|
onClose?: () => void;
|
|
3265
|
+
activeIndicatorTransition?: Transition;
|
|
3217
3266
|
children: React$1.ReactNode;
|
|
3218
3267
|
className?: string;
|
|
3219
3268
|
style?: React$1.CSSProperties;
|
|
@@ -3645,6 +3694,8 @@ interface ScrollAreaProps extends Omit<React$1.ComponentPropsWithoutRef<typeof R
|
|
|
3645
3694
|
scrollHideDelay?: number;
|
|
3646
3695
|
/** Extra classes applied to the inner viewport element. */
|
|
3647
3696
|
viewportClassName?: string;
|
|
3697
|
+
/** Ref to the scrolling viewport element. */
|
|
3698
|
+
viewportRef?: React$1.Ref<HTMLDivElement>;
|
|
3648
3699
|
}
|
|
3649
3700
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3650
3701
|
declare const ScrollAreaScrollbar: React$1.ForwardRefExoticComponent<Omit<RadixScrollArea.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -6132,4 +6183,4 @@ declare const TypeScaleTokens: {
|
|
|
6132
6183
|
};
|
|
6133
6184
|
type TypeScaleTokensType = typeof TypeScaleTokens;
|
|
6134
6185
|
|
|
6135
|
-
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, resolveMode, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|
|
6186
|
+
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationBar, NavigationBarItem, type NavigationBarItemLayout, type NavigationBarItemProps, type NavigationBarProps, type NavigationBarVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, resolveMode, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -3192,7 +3192,55 @@ declare const VerticalMenuContent: React$1.ForwardRefExoticComponent<VerticalMen
|
|
|
3192
3192
|
*/
|
|
3193
3193
|
declare const VerticalMenu: React$1.ForwardRefExoticComponent<VerticalMenuProps & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3194
3194
|
|
|
3195
|
-
|
|
3195
|
+
/**
|
|
3196
|
+
* Layout styling for navigation bar items.
|
|
3197
|
+
* - vertical: Icon above label (default for mobile)
|
|
3198
|
+
* - horizontal: Icon beside label (forced)
|
|
3199
|
+
*/
|
|
3200
|
+
type NavigationBarItemLayout = "vertical" | "horizontal";
|
|
3201
|
+
/**
|
|
3202
|
+
* Visual variant of the Navigation Bar.
|
|
3203
|
+
* - flexible: Default MD3 behavior (h-16), becomes horizontal on desktop.
|
|
3204
|
+
* - baseline: Taller MD3 behavior (h-20), always vertical.
|
|
3205
|
+
* - xr: Floating orbiter variant for spatial interfaces (detached from bottom).
|
|
3206
|
+
*/
|
|
3207
|
+
type NavigationBarVariant = "flexible" | "baseline" | "xr";
|
|
3208
|
+
interface NavigationBarItemProps {
|
|
3209
|
+
selected: boolean;
|
|
3210
|
+
icon: React$1.ReactNode;
|
|
3211
|
+
label: React$1.ReactNode;
|
|
3212
|
+
onClick?: () => void;
|
|
3213
|
+
disabled?: boolean;
|
|
3214
|
+
badge?: React$1.ReactNode;
|
|
3215
|
+
"aria-label"?: string;
|
|
3216
|
+
className?: string;
|
|
3217
|
+
}
|
|
3218
|
+
interface NavigationBarProps {
|
|
3219
|
+
/** Visual variant of the Navigation Bar */
|
|
3220
|
+
variant?: NavigationBarVariant;
|
|
3221
|
+
/** Forces a specific item layout (horizontal/vertical) */
|
|
3222
|
+
itemLayout?: NavigationBarItemLayout;
|
|
3223
|
+
/** Whether the bar should hide when scrolling down */
|
|
3224
|
+
hideOnScroll?: boolean;
|
|
3225
|
+
/** Whether the bar should have an elevation shadow */
|
|
3226
|
+
elevated?: boolean;
|
|
3227
|
+
/** Whether the bar is fixed to the viewport (default) or absolute */
|
|
3228
|
+
fixed?: boolean;
|
|
3229
|
+
/** Container ref to track scrolling for hideOnScroll */
|
|
3230
|
+
scrollContainerRef?: React$1.RefObject<HTMLElement | null>;
|
|
3231
|
+
/** Transition for the active indicator pill */
|
|
3232
|
+
activeIndicatorTransition?: Transition;
|
|
3233
|
+
/** Navigation items */
|
|
3234
|
+
children: React$1.ReactNode;
|
|
3235
|
+
/** Optional additional classes */
|
|
3236
|
+
className?: string;
|
|
3237
|
+
/** Optional inline styles */
|
|
3238
|
+
style?: React$1.CSSProperties;
|
|
3239
|
+
}
|
|
3240
|
+
declare const NavigationBarItem: React$1.NamedExoticComponent<NavigationBarItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3241
|
+
declare const NavigationBar: React$1.NamedExoticComponent<NavigationBarProps & React$1.RefAttributes<HTMLElement>>;
|
|
3242
|
+
|
|
3243
|
+
type NavigationRailVariant = "collapsed" | "expanded" | "modal" | "xr";
|
|
3196
3244
|
type NavigationRailLabelVisibility = "labeled" | "auto" | "unlabeled";
|
|
3197
3245
|
interface NavigationRailItemProps {
|
|
3198
3246
|
selected: boolean;
|
|
@@ -3209,11 +3257,12 @@ interface NavigationRailProps {
|
|
|
3209
3257
|
labelVisibility?: NavigationRailLabelVisibility;
|
|
3210
3258
|
header?: React$1.ReactNode;
|
|
3211
3259
|
fab?: React$1.ReactNode;
|
|
3260
|
+
fabPlacement?: "contained" | "spatialized";
|
|
3212
3261
|
footer?: React$1.ReactNode;
|
|
3213
3262
|
narrow?: boolean;
|
|
3214
3263
|
open?: boolean;
|
|
3215
|
-
xr?: boolean | "contained" | "spatialized";
|
|
3216
3264
|
onClose?: () => void;
|
|
3265
|
+
activeIndicatorTransition?: Transition;
|
|
3217
3266
|
children: React$1.ReactNode;
|
|
3218
3267
|
className?: string;
|
|
3219
3268
|
style?: React$1.CSSProperties;
|
|
@@ -3645,6 +3694,8 @@ interface ScrollAreaProps extends Omit<React$1.ComponentPropsWithoutRef<typeof R
|
|
|
3645
3694
|
scrollHideDelay?: number;
|
|
3646
3695
|
/** Extra classes applied to the inner viewport element. */
|
|
3647
3696
|
viewportClassName?: string;
|
|
3697
|
+
/** Ref to the scrolling viewport element. */
|
|
3698
|
+
viewportRef?: React$1.Ref<HTMLDivElement>;
|
|
3648
3699
|
}
|
|
3649
3700
|
declare const ScrollArea: React$1.ForwardRefExoticComponent<ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3650
3701
|
declare const ScrollAreaScrollbar: React$1.ForwardRefExoticComponent<Omit<RadixScrollArea.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -6132,4 +6183,4 @@ declare const TypeScaleTokens: {
|
|
|
6132
6183
|
};
|
|
6133
6184
|
type TypeScaleTokensType = typeof TypeScaleTokens;
|
|
6134
6185
|
|
|
6135
|
-
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, resolveMode, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|
|
6186
|
+
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLORS, APP_BAR_COLOR_TRANSITION, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, type AppBarColors, AppBarColumn, type AppBarColumnProps, type AppBarItem, type AppBarItemType, type AppBarMenuState, AppBarOverflowIndicator, type AppBarOverflowIndicatorProps, AppBarRow, type AppBarRowProps, type AppBarScrollBehavior, AppBarTokens, Badge, type BadgeProps, BadgedBox, type BadgedBoxProps, type BaseAppBarProps, type BaseButtonProps, type BaseIconButtonProps, BottomAppBar, type BottomAppBarProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, CHECK_ICON_VARIANTS, Card, type CardProps, type CaretConfig, Checkbox, type CheckboxProps, type CheckboxState, Chip, type ChipProps, type CircularProgressProps, CodeBlock, type CodeBlockProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuTrigger, type ContextMenuTriggerProps, DIVIDER_COLOR, DIVIDER_PADDING, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogFullScreenContent, type DialogFullScreenContentProps, DialogHeader, DialogIcon, DialogOverlay, DialogPortal, type DialogProps, DialogTitle, DialogTrigger, Divider, type DividerProps, DockedToolbar, type DockedToolbarProps, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, FAB, FABMenu, FABMenuItem, type FABMenuItemData, type FABMenuItemProps, type FABMenuProps, FABPosition, type FABPositionProps, type FABProps, FAST_EFFECTS_TRANSITION, FAST_SPATIAL_SPRING, type FlexibleAppBarProps, GROUP_SHAPES, ITEM_SHAPE_CLASSES, Icon, IconButton, type IconButtonProps, type IconProps, LargeFlexibleAppBar, type LinearProgressProps, LoadingIndicator, type LoadingIndicatorProps, type MD3ColorScheme, type MD3ColorStyle, type MD3Shape, type MD3Size, MD3ThemeProvider, type MD3ThemeProviderProps, MD3_EXPRESSIVE_FONT_VARIATION, MENU_CHECK_ICON_SIZE, MENU_CONTAINER_VARIANTS, MENU_GROUP_GAP, MENU_ICON_SIZE, MENU_ITEM_MIN_HEIGHT, MENU_MAX_WIDTH, MENU_MIN_WIDTH, MaterialSymbolsPreconnect, MediumFlexibleAppBar, Menu, type MenuColorVariant, MenuContent, type MenuContentProps, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupPosition, type MenuGroupProps, MenuItem, type MenuItemPosition, type MenuItemProps, type MenuPrimitive, type MenuProps, MenuProvider, MenuTrigger, type MenuTriggerProps, type MenuVariant, NavigationBar, NavigationBarItem, type NavigationBarItemLayout, type NavigationBarItemProps, type NavigationBarProps, type NavigationBarVariant, NavigationRail, NavigationRailItem, type NavigationRailItemProps, type NavigationRailLabelVisibility, type NavigationRailProps, type NavigationRailVariant, PlainTooltip, type PlainTooltipProps, type PolymorphicProps, type PolymorphicRef, ProgressIndicator, type ProgressIndicatorProps, RadioButton, type RadioButtonColors, type RadioButtonProps, RadioGroup, type RadioGroupProps, RangeSlider, type RangeSliderProps, RichTooltip, type RichTooltipProps, Ripple, type RippleOrigin, type RippleProps, SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, SEARCH_VIEW_SPRING, STANDARD_COLORS, SUBMENU_CONTAINER_VARIANTS, ScrollArea, type ScrollAreaOrientation, type ScrollAreaProps, ScrollAreaScrollbar, type ScrollAreaType, Search, SearchAppBar, type SearchAppBarProps, SearchBar, type SearchBarVariant, type SearchProps, type SearchStyleType, SearchTokens, type SearchVariant, SearchView, SearchViewContainer, SearchViewDocked, SearchViewFullScreen, type SearchViewProps, Slider, SliderColors, type SliderOrientation, type SliderProps, SliderTokens, type SliderTrackSize, type SliderVariant, SmallAppBar, type SmallAppBarProps, Snackbar, type SnackbarData, type SnackbarDuration, SnackbarHost, type SnackbarHostProps, type SnackbarProps, SnackbarProvider, type SnackbarResult, type SnackbarVisuals, SubMenu, type SubMenuProps, Switch, SwitchColors, type SwitchProps, SwitchTokens, Tab, type TabProps, TableOfContents, type TableOfContentsProps, Tabs, TabsColors, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTokens, type TabsVariant, Text, TextField, type TextFieldHandle, type TextFieldInputType, type TextFieldProps, type TextFieldTrailingIconMode, type TextFieldVariant, type TextProps, type TextStyle, type ThemeMode, type TitleAlignment, type ToCItem, ToggleFAB, type ToggleFABProps, TooltipBox, type TooltipBoxProps, TooltipCaretShape, type TooltipPlacement, type TooltipState, type TooltipStateConfig, TooltipTokens, type TooltipTrigger, TriStateCheckbox, type TriStateCheckboxProps, TypeScaleTokens, type TypeScaleTokensType, Typography, TypographyContext, TypographyKeyTokens, TypographyProvider, type TypographyProviderProps, TypographyTokens, type UseAppBarScrollReturn, type UseRippleStateOptions, type UseSnackbarStateReturn, VIBRANT_COLORS, VerticalMenu, VerticalMenuContent, type VerticalMenuContentProps, VerticalMenuDivider, type VerticalMenuDividerProps, VerticalMenuGroup, type VerticalMenuGroupProps, type VerticalMenuProps, type VerticalMenuSeparatorStyle, appBarTypography, applyTheme, buildWavePath, cn, generateM3Theme, resolveMode, useAppBarScroll, useRipple$1 as useDOMRipple, useMediaQuery, useMenuContext, useRipple, useRippleState, useSearchKeyboard, useSnackbar, useSnackbarState, useTheme, useThemeMode, useTooltipPosition, useTooltipState, useTypography };
|