@noxlovette/material 0.5.0 → 0.6.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/bin/material-claude-skill.js +31 -0
- package/claude-skill/material-design/SKILL.md +68 -0
- package/claude-skill/material-design/references/accessibility-checklist.md +29 -0
- package/claude-skill/material-design/references/component-patterns.md +55 -0
- package/claude-skill/material-design/references/motion-guide.md +163 -0
- package/claude-skill/material-design/references/tokens-and-styles.md +68 -0
- package/dist/animation/Shapes.stories.svelte +60 -0
- package/dist/animation/Shapes.stories.svelte.d.ts +3 -0
- package/dist/animation/TransitionPatterns.stories.svelte +32 -20
- package/dist/animation/containerTransform.d.ts +11 -0
- package/dist/animation/containerTransform.js +11 -0
- package/dist/animation/enterExit.d.ts +9 -0
- package/dist/animation/enterExit.js +6 -3
- package/dist/animation/index.d.ts +1 -0
- package/dist/animation/index.js +1 -0
- package/dist/animation/shapeMorph.svelte.d.ts +52 -0
- package/dist/animation/shapeMorph.svelte.js +112 -0
- package/dist/animation/shapesAnimatableSmall.d.ts +28 -22
- package/dist/animation/shapesAnimatableSmall.js +32 -23
- package/dist/animation/sharedAxisTransition.d.ts +22 -0
- package/dist/animation/sharedAxisTransition.js +25 -1
- package/dist/animation/skeleton.d.ts +6 -1
- package/dist/animation/skeleton.js +6 -1
- package/dist/components/badge/Badge.mdx +70 -0
- package/dist/components/badge/Badge.stories.svelte +38 -20
- package/dist/components/badge/Badge.svelte +12 -5
- package/dist/components/badge/theme.d.ts +30 -7
- package/dist/components/badge/theme.js +24 -4
- package/dist/components/badge/types.d.ts +18 -4
- package/dist/components/buttons/Button.mdx +85 -0
- package/dist/components/buttons/Button.stories.svelte +62 -27
- package/dist/components/buttons/Button.svelte +29 -25
- package/dist/components/buttons/Button.svelte.d.ts +11 -9
- package/dist/components/buttons/ButtonIcon.mdx +52 -0
- package/dist/components/buttons/ButtonIcon.stories.svelte +72 -48
- package/dist/components/buttons/ButtonIcon.svelte +58 -36
- package/dist/components/buttons/ButtonIcon.svelte.d.ts +9 -7
- package/dist/components/buttons/FAB.mdx +84 -0
- package/dist/components/buttons/FAB.stories.svelte +103 -24
- package/dist/components/buttons/FAB.stories.svelte.d.ts +2 -17
- package/dist/components/buttons/FAB.svelte +353 -29
- package/dist/components/buttons/FAB.svelte.d.ts +11 -6
- package/dist/components/buttons/FABMenu.svelte +27 -8
- package/dist/components/buttons/FABMenu.svelte.d.ts +7 -3
- package/dist/components/buttons/FABMenuItem.svelte +20 -16
- package/dist/components/buttons/FABMenuItem.svelte.d.ts +3 -3
- package/dist/components/buttons/Toggle.stories.svelte +31 -23
- package/dist/components/buttons/Toggle.stories.svelte.d.ts +2 -17
- package/dist/components/buttons/Toggle.svelte +28 -25
- package/dist/components/buttons/Toggle.svelte.d.ts +5 -5
- package/dist/components/buttons/button-group/ButtonGroup.mdx +39 -0
- package/dist/components/buttons/button-group/ButtonGroup.stories.svelte +62 -43
- package/dist/components/buttons/button-group/ButtonGroup.stories.svelte.d.ts +2 -17
- package/dist/components/buttons/button-group/ButtonGroup.svelte +102 -8
- package/dist/components/buttons/button-group/ButtonGroup.svelte.d.ts +6 -7
- package/dist/components/buttons/button-group/theme.d.ts +45 -15
- package/dist/components/buttons/button-group/theme.js +13 -8
- package/dist/components/buttons/button-group/types.d.ts +13 -7
- package/dist/components/buttons/connected/ConnectedButtonGroup.mdx +43 -0
- package/dist/components/buttons/connected/ConnectedButtonGroup.stories.svelte +56 -74
- package/dist/components/buttons/connected/ConnectedButtonGroup.stories.svelte.d.ts +2 -17
- package/dist/components/buttons/connected/ConnectedButtonGroup.svelte +16 -4
- package/dist/components/buttons/connected/ConnectedButtonGroup.svelte.d.ts +4 -4
- package/dist/components/buttons/connected/ConnectedButtonGroupItem.svelte +35 -8
- package/dist/components/buttons/connected/ConnectedButtonGroupItem.svelte.d.ts +2 -3
- package/dist/components/buttons/connected/theme.d.ts +33 -18
- package/dist/components/buttons/connected/theme.js +32 -9
- package/dist/components/buttons/connected/types.d.ts +36 -9
- package/dist/components/buttons/shapeMorph.d.ts +26 -0
- package/dist/components/buttons/shapeMorph.js +142 -0
- package/dist/components/buttons/split-button/SplitButton.mdx +48 -0
- package/dist/components/buttons/split-button/SplitButton.stories.svelte +9 -14
- package/dist/components/buttons/split-button/SplitButton.svelte +65 -48
- package/dist/components/buttons/split-button/SplitButton.svelte.d.ts +6 -11
- package/dist/components/buttons/split-button/theme.d.ts +110 -17
- package/dist/components/buttons/split-button/theme.js +74 -16
- package/dist/components/buttons/split-button/types.d.ts +24 -18
- package/dist/components/buttons/theme.d.ts +422 -230
- package/dist/components/buttons/theme.js +286 -380
- package/dist/components/buttons/types.d.ts +130 -125
- package/dist/components/cards/Card.mdx +44 -0
- package/dist/components/cards/Card.stories.svelte +11 -11
- package/dist/components/cards/theme.js +5 -5
- package/dist/components/chips/Chip.mdx +68 -0
- package/dist/components/chips/Chip.stories.svelte +4 -4
- package/dist/components/chips/theme.js +3 -3
- package/dist/components/containers/action-rail/ActionRail.stories.svelte +1 -0
- package/dist/components/containers/action-rail/theme.js +1 -1
- package/dist/components/containers/bottom-sheet/BottomSheet.mdx +64 -0
- package/dist/components/containers/bottom-sheet/BottomSheet.stories.svelte +108 -12
- package/dist/components/containers/bottom-sheet/BottomSheet.svelte +179 -109
- package/dist/components/containers/bottom-sheet/BottomSheet.svelte.d.ts +10 -5
- package/dist/components/containers/bottom-sheet/index.d.ts +1 -0
- package/dist/components/containers/bottom-sheet/index.js +1 -0
- package/dist/components/containers/bottom-sheet/theme.d.ts +45 -0
- package/dist/components/containers/bottom-sheet/theme.js +42 -0
- package/dist/components/containers/bottom-sheet/types.d.ts +37 -5
- package/dist/components/containers/carousel/Carousel.mdx +80 -0
- package/dist/components/containers/carousel/Carousel.stories.svelte +131 -0
- package/dist/components/containers/carousel/Carousel.stories.svelte.d.ts +4 -0
- package/dist/components/containers/carousel/Carousel.svelte +194 -0
- package/dist/components/containers/carousel/Carousel.svelte.d.ts +25 -0
- package/dist/components/containers/carousel/index.d.ts +3 -0
- package/dist/components/containers/{stack → carousel}/index.js +1 -2
- package/dist/components/containers/carousel/keylines.d.ts +32 -0
- package/dist/components/containers/carousel/keylines.js +88 -0
- package/dist/components/containers/carousel/theme.d.ts +162 -0
- package/dist/components/containers/carousel/theme.js +67 -0
- package/dist/components/containers/carousel/types.d.ts +52 -0
- package/dist/components/containers/context-menu/ContextMenu.stories.svelte +1 -0
- package/dist/components/containers/context-menu/ContextMenu.svelte +2 -2
- package/dist/components/containers/context-menu/ContextMenu.svelte.d.ts +1 -1
- package/dist/components/containers/context-menu/theme.js +10 -10
- package/dist/components/containers/dialogue/Dialogue.mdx +65 -0
- package/dist/components/containers/dialogue/Dialogue.stories.svelte +4 -4
- package/dist/components/containers/dialogue/Dialogue.svelte +1 -1
- package/dist/components/containers/dialogue/theme.js +3 -3
- package/dist/components/containers/divider/Divider.stories.svelte +2 -1
- package/dist/components/containers/divider/Divider.svelte +2 -2
- package/dist/components/containers/divider/theme.d.ts +6 -6
- package/dist/components/containers/divider/theme.js +2 -2
- package/dist/components/containers/index.d.ts +1 -1
- package/dist/components/containers/index.js +1 -1
- package/dist/components/containers/link-preview/theme.js +2 -2
- package/dist/components/containers/list/List.svelte +18 -0
- package/dist/components/containers/list/List.svelte.d.ts +4 -0
- package/dist/components/containers/list/ListItem.mdx +100 -0
- package/dist/components/containers/list/ListItem.stories.svelte +177 -42
- package/dist/components/containers/list/ListItem.stories.svelte.d.ts +2 -17
- package/dist/components/containers/list/ListItem.svelte +92 -37
- package/dist/components/containers/list/ListItem.svelte.d.ts +1 -1
- package/dist/components/containers/list/context.d.ts +6 -0
- package/dist/components/containers/list/context.js +4 -0
- package/dist/components/containers/list/index.d.ts +1 -0
- package/dist/components/containers/list/index.js +1 -0
- package/dist/components/containers/list/theme.d.ts +487 -12
- package/dist/components/containers/list/theme.js +140 -13
- package/dist/components/containers/list/types.d.ts +39 -5
- package/dist/components/containers/menu/Menu.mdx +52 -0
- package/dist/components/containers/menu/Menu.stories.svelte +14 -14
- package/dist/components/containers/menu/Menu.svelte +1 -1
- package/dist/components/containers/menu/MenuGroup.svelte +1 -1
- package/dist/components/containers/menu/MenuGroup.svelte.d.ts +1 -1
- package/dist/components/containers/menu/menu-item/MenuItem.svelte +1 -1
- package/dist/components/containers/menu/theme.js +8 -8
- package/dist/components/containers/pane/DraggablePane.stories.svelte +4 -3
- package/dist/components/containers/pane/DraggablePane.svelte +2 -2
- package/dist/components/containers/pane/Pane.stories.svelte +11 -10
- package/dist/components/containers/pane/Pane.svelte +24 -2
- package/dist/components/containers/pane/PaneGrid.stories.svelte +19 -18
- package/dist/components/containers/pane/PaneGrid.svelte +3 -2
- package/dist/components/containers/pane/PaneGrid.svelte.d.ts +2 -1
- package/dist/components/containers/pane/PaneHandle.svelte +48 -2
- package/dist/components/containers/pane/PaneHandle.svelte.d.ts +4 -0
- package/dist/components/containers/pane/resizeStore.svelte.d.ts +10 -1
- package/dist/components/containers/pane/resizeStore.svelte.js +13 -2
- package/dist/components/containers/pane/theme.js +129 -45
- package/dist/components/containers/pane/types.d.ts +3 -2
- package/dist/components/containers/popover/Popover.mdx +45 -0
- package/dist/components/containers/popover/Popover.stories.svelte +1 -1
- package/dist/components/containers/popover/Popover.svelte +1 -1
- package/dist/components/containers/popover/theme.js +3 -3
- package/dist/components/containers/scroll-area/theme.js +2 -2
- package/dist/components/containers/side-sheet/SideSheet.mdx +71 -0
- package/dist/components/containers/side-sheet/SideSheet.stories.svelte +113 -17
- package/dist/components/containers/side-sheet/SideSheet.svelte +113 -66
- package/dist/components/containers/side-sheet/SideSheet.svelte.d.ts +8 -7
- package/dist/components/containers/side-sheet/index.d.ts +1 -0
- package/dist/components/containers/side-sheet/index.js +1 -0
- package/dist/components/containers/side-sheet/theme.d.ts +108 -0
- package/dist/components/containers/side-sheet/theme.js +72 -0
- package/dist/components/containers/side-sheet/types.d.ts +35 -7
- package/dist/components/date/DateField.stories.svelte +4 -3
- package/dist/components/date/DateField.svelte +49 -26
- package/dist/components/date/DateField.svelte.d.ts +2 -0
- package/dist/components/date/DateRangeField.stories.svelte +4 -3
- package/dist/components/date/DateRangeField.svelte +54 -31
- package/dist/components/date/DateRangeField.svelte.d.ts +2 -0
- package/dist/components/date/calendarMotion.d.ts +9 -0
- package/dist/components/date/calendarMotion.js +23 -0
- package/dist/components/date/theme.d.ts +7 -7
- package/dist/components/date/theme.js +34 -30
- package/dist/components/forms/checkbox/Checkbox.mdx +35 -0
- package/dist/components/forms/checkbox/Checkbox.stories.svelte +2 -2
- package/dist/components/forms/checkbox/Checkbox.svelte +1 -1
- package/dist/components/forms/checkbox/theme.js +3 -3
- package/dist/components/forms/command/Command.stories.svelte +1 -0
- package/dist/components/forms/command/theme.js +9 -9
- package/dist/components/forms/pin/theme.js +4 -4
- package/dist/components/forms/radio-group/RadioGroup.svelte +1 -1
- package/dist/components/forms/radio-group/theme.js +5 -5
- package/dist/components/forms/search/Search.mdx +38 -0
- package/dist/components/forms/search/Search.stories.svelte +19 -9
- package/dist/components/forms/search/Search.svelte +40 -17
- package/dist/components/forms/search/Search.svelte.d.ts +2 -2
- package/dist/components/forms/search/theme.d.ts +45 -12
- package/dist/components/forms/search/theme.js +13 -8
- package/dist/components/forms/search/types.d.ts +18 -12
- package/dist/components/forms/select/Select.mdx +53 -0
- package/dist/components/forms/select/Select.stories.svelte +4 -4
- package/dist/components/forms/select/Select.svelte +10 -2
- package/dist/components/forms/select/SelectItem.svelte +1 -1
- package/dist/components/forms/select/theme.js +12 -12
- package/dist/components/forms/slider/Slider.mdx +85 -0
- package/dist/components/forms/slider/Slider.stories.svelte +7 -7
- package/dist/components/forms/slider/Slider.svelte +46 -28
- package/dist/components/forms/slider/theme.d.ts +14 -0
- package/dist/components/forms/slider/theme.js +28 -17
- package/dist/components/forms/slider/types.d.ts +3 -2
- package/dist/components/forms/switch/Switch.mdx +38 -0
- package/dist/components/forms/switch/Switch.stories.svelte +3 -3
- package/dist/components/forms/switch/theme.js +6 -6
- package/dist/components/forms/textfield/Textfield.mdx +53 -0
- package/dist/components/forms/textfield/Textfield.stories.svelte +6 -6
- package/dist/components/forms/textfield/Textfield.svelte +1 -0
- package/dist/components/forms/textfield/theme.d.ts +3 -0
- package/dist/components/forms/textfield/theme.js +22 -19
- package/dist/components/forms/toggle-group/theme.js +2 -2
- package/dist/components/forms/tooltip/Tooltip.stories.svelte +1 -0
- package/dist/components/forms/tooltip/theme.js +3 -3
- package/dist/components/misc/Avatar.stories.svelte +5 -4
- package/dist/components/misc/ThemeSettings.svelte +9 -9
- package/dist/components/misc/ThemeSwitcher.svelte +3 -3
- package/dist/components/misc/theme.js +4 -4
- package/dist/components/nav/appbar/AppBar.mdx +71 -0
- package/dist/components/nav/appbar/AppBar.stories.svelte +93 -3
- package/dist/components/nav/appbar/AppBar.stories.svelte.d.ts +2 -17
- package/dist/components/nav/appbar/AppBar.svelte +90 -37
- package/dist/components/nav/appbar/AppBar.svelte.d.ts +9 -2
- package/dist/components/nav/appbar/theme.d.ts +85 -18
- package/dist/components/nav/appbar/theme.js +159 -23
- package/dist/components/nav/appbar/types.d.ts +46 -9
- package/dist/components/nav/breadcrumb/Breadcrumb.stories.svelte +1 -0
- package/dist/components/nav/breadcrumb/theme.js +5 -5
- package/dist/components/nav/navbar/Navbar.mdx +38 -0
- package/dist/components/nav/navbar/Navbar.svelte +1 -1
- package/dist/components/nav/navbar/NavbarItem.svelte +12 -9
- package/dist/components/nav/navbar/theme.js +6 -6
- package/dist/components/nav/rail/Rail.mdx +73 -0
- package/dist/components/nav/rail/Rail.stories.svelte +3 -7
- package/dist/components/nav/rail/Rail.svelte +1 -0
- package/dist/components/nav/rail/RailItem.svelte +12 -9
- package/dist/components/nav/rail/theme.js +13 -13
- package/dist/components/nav/rail/types.d.ts +4 -1
- package/dist/components/nav/tabs/TabHolder.svelte +29 -3
- package/dist/components/nav/tabs/TabHolder.svelte.d.ts +3 -1
- package/dist/components/nav/tabs/Tabs.mdx +62 -0
- package/dist/components/nav/tabs/Tabs.stories.svelte +1 -1
- package/dist/components/nav/tabs/theme.js +4 -4
- package/dist/components/pill/Pill.mdx +32 -0
- package/dist/components/pill/Pill.stories.svelte +1 -1
- package/dist/components/pill/theme.d.ts +1 -1
- package/dist/components/pill/theme.js +1 -1
- package/dist/components/progress/LinearProgress.svelte +1 -1
- package/dist/components/progress/Progress.mdx +50 -0
- package/dist/components/progress/Progress.stories.svelte +6 -6
- package/dist/components/snackbar/Snackbar.mdx +52 -0
- package/dist/components/snackbar/Snackbar.stories.svelte +5 -5
- package/dist/components/snackbar/Snackbar.svelte +1 -1
- package/dist/components/snackbar/theme.d.ts +3 -3
- package/dist/components/snackbar/theme.js +4 -4
- package/dist/components/table/Table.stories.svelte +1 -0
- package/dist/components/table/TableHeader.svelte +1 -1
- package/dist/components/table/theme.js +3 -3
- package/dist/components/time/TimeField.stories.svelte +3 -2
- package/dist/components/time/TimeField.svelte +14 -8
- package/dist/components/time/TimeField.svelte.d.ts +6 -0
- package/dist/components/time/TimepickerInput.svelte +9 -5
- package/dist/components/time/theme.js +5 -5
- package/dist/components/time/types.d.ts +11 -1
- package/dist/components/toolbar/Toolbar.stories.svelte +1 -0
- package/dist/components/toolbar/Toolbar.svelte +1 -1
- package/dist/components/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/components/toolbar/theme.js +14 -14
- package/dist/components/typography/Typography.mdx +67 -0
- package/dist/components/typography/body/Body.stories.svelte +2 -1
- package/dist/components/typography/body/theme.d.ts +15 -12
- package/dist/components/typography/body/theme.js +19 -4
- package/dist/components/typography/body/types.d.ts +2 -1
- package/dist/components/typography/display/Display.stories.svelte +2 -1
- package/dist/components/typography/display/theme.d.ts +15 -12
- package/dist/components/typography/display/theme.js +19 -4
- package/dist/components/typography/display/types.d.ts +2 -1
- package/dist/components/typography/headline/Headline.stories.svelte +2 -1
- package/dist/components/typography/headline/theme.d.ts +15 -12
- package/dist/components/typography/headline/theme.js +19 -4
- package/dist/components/typography/headline/types.d.ts +2 -1
- package/dist/components/typography/kbd/Kbd.stories.svelte +2 -1
- package/dist/components/typography/kbd/theme.d.ts +4 -4
- package/dist/components/typography/kbd/theme.js +2 -2
- package/dist/components/typography/label/Label.stories.svelte +2 -1
- package/dist/components/typography/label/theme.d.ts +15 -12
- package/dist/components/typography/label/theme.js +19 -4
- package/dist/components/typography/label/types.d.ts +2 -1
- package/dist/components/typography/title/Title.stories.svelte +2 -1
- package/dist/components/typography/title/theme.d.ts +15 -12
- package/dist/components/typography/title/theme.js +19 -4
- package/dist/components/typography/title/types.d.ts +2 -1
- package/dist/index.css +1 -0
- package/dist/styles/component.css +78 -175
- package/dist/styles/elevation.css +9 -0
- package/dist/styles/spacing.css +29 -0
- package/dist/styles/typescale.css +635 -20
- package/dist/utils/Layer.svelte +1 -1
- package/dist/utils/icon/Icon.svelte +8 -6
- package/dist/utils/icon/loadingShapes.js +11 -10
- package/package.json +19 -15
- package/dist/components/containers/stack/HStack.svelte +0 -23
- package/dist/components/containers/stack/HStack.svelte.d.ts +0 -5
- package/dist/components/containers/stack/VStack.svelte +0 -23
- package/dist/components/containers/stack/VStack.svelte.d.ts +0 -5
- package/dist/components/containers/stack/index.d.ts +0 -4
- package/dist/components/containers/stack/theme.d.ts +0 -66
- package/dist/components/containers/stack/theme.js +0 -26
- package/dist/components/containers/stack/types.d.ts +0 -12
- /package/dist/components/containers/{stack → carousel}/types.js +0 -0
|
@@ -1,185 +1,255 @@
|
|
|
1
1
|
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
import type { Breakpoint } from '../containers/pane/theme.js';
|
|
2
3
|
export type ButtonVariants = VariantProps<typeof button>;
|
|
3
|
-
export type FABVariants = VariantProps<typeof fab>;
|
|
4
|
-
export type FABMenuVariants = VariantProps<typeof fabMenu>;
|
|
5
|
-
export type ButtonMDVariants = VariantProps<typeof button>;
|
|
6
4
|
export type ButtonIconVariants = VariantProps<typeof buttonIcon>;
|
|
5
|
+
export type ButtonColorVariants = VariantProps<typeof buttonColor>;
|
|
6
|
+
export type FABVariants = VariantProps<typeof fab>;
|
|
7
7
|
export type FABMenuItemVariants = VariantProps<typeof fabMenuItem>;
|
|
8
|
-
|
|
8
|
+
/** @deprecated Use `ButtonVariants`. */
|
|
9
|
+
export type ButtonMDVariants = ButtonVariants;
|
|
10
|
+
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
/** Container, border and content colours for one button colour style in one state. */
|
|
12
|
+
export declare const buttonColor: import("tailwind-variants").TVReturnType<{
|
|
9
13
|
variant: {
|
|
10
14
|
elevated: "";
|
|
11
15
|
filled: "";
|
|
12
16
|
tonal: "";
|
|
13
|
-
outlined: "";
|
|
17
|
+
outlined: "[border-width:var(--btn-outline)] border-solid";
|
|
14
18
|
text: "";
|
|
15
|
-
|
|
19
|
+
standard: "";
|
|
16
20
|
};
|
|
17
|
-
|
|
21
|
+
/** `default` for plain buttons; `unselected`/`selected` for toggles. */
|
|
22
|
+
state: {
|
|
18
23
|
default: "";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
unselected: "";
|
|
25
|
+
selected: "";
|
|
26
|
+
};
|
|
27
|
+
}, undefined, "", {
|
|
28
|
+
variant: {
|
|
29
|
+
elevated: "";
|
|
30
|
+
filled: "";
|
|
31
|
+
tonal: "";
|
|
32
|
+
outlined: "[border-width:var(--btn-outline)] border-solid";
|
|
33
|
+
text: "";
|
|
34
|
+
standard: "";
|
|
35
|
+
};
|
|
36
|
+
/** `default` for plain buttons; `unselected`/`selected` for toggles. */
|
|
37
|
+
state: {
|
|
38
|
+
default: "";
|
|
39
|
+
unselected: "";
|
|
40
|
+
selected: "";
|
|
41
|
+
};
|
|
42
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
43
|
+
variant: {
|
|
44
|
+
elevated: "";
|
|
45
|
+
filled: "";
|
|
46
|
+
tonal: "";
|
|
47
|
+
outlined: "[border-width:var(--btn-outline)] border-solid";
|
|
48
|
+
text: "";
|
|
49
|
+
standard: "";
|
|
23
50
|
};
|
|
24
|
-
|
|
25
|
-
|
|
51
|
+
/** `default` for plain buttons; `unselected`/`selected` for toggles. */
|
|
52
|
+
state: {
|
|
26
53
|
default: "";
|
|
54
|
+
unselected: "";
|
|
55
|
+
selected: "";
|
|
56
|
+
};
|
|
57
|
+
}, undefined>>;
|
|
58
|
+
export declare const buttonBase = "md-btn md-sys-state-focus-indicator relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap select-none disabled:cursor-not-allowed disabled:bg-md-sys-color-on-surface/10 disabled:text-md-sys-color-on-surface/38 disabled:shadow-none aria-disabled:cursor-not-allowed aria-disabled:bg-md-sys-color-on-surface/10 aria-disabled:text-md-sys-color-on-surface/38 aria-disabled:shadow-none";
|
|
59
|
+
/** Button measurements per size: height, padding, icon-label gap, label type, shape and outline. */
|
|
60
|
+
export declare const buttonSizes: {
|
|
61
|
+
readonly xs: {
|
|
62
|
+
readonly base: "md-sys-typescale-label-large h-spacing-400 gap-spacing-50 px-spacing-150 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1rem] [--btn-square:0.75rem]";
|
|
63
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
64
|
+
};
|
|
65
|
+
readonly sm: {
|
|
66
|
+
readonly base: "md-sys-typescale-label-large h-spacing-500 gap-spacing-100 px-spacing-200 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1.25rem] [--btn-square:0.75rem]";
|
|
67
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
68
|
+
};
|
|
69
|
+
readonly md: {
|
|
70
|
+
readonly base: "md-sys-typescale-title-medium h-spacing-700 gap-spacing-100 px-spacing-300 [--btn-outline:1px] [--btn-pressed:0.75rem] [--btn-round:1.75rem] [--btn-square:1rem]";
|
|
71
|
+
readonly icon: "size-spacing-300 text-[24px]";
|
|
72
|
+
};
|
|
73
|
+
readonly lg: {
|
|
74
|
+
readonly base: "md-sys-typescale-headline-small h-24 gap-spacing-150 px-spacing-600 [--btn-outline:2px] [--btn-pressed:1rem] [--btn-round:3rem] [--btn-square:1.75rem]";
|
|
75
|
+
readonly icon: "size-spacing-400 text-[32px]";
|
|
76
|
+
};
|
|
77
|
+
readonly xl: {
|
|
78
|
+
readonly base: "md-sys-typescale-headline-large h-34 gap-spacing-200 px-spacing-800 [--btn-outline:3px] [--btn-pressed:1rem] [--btn-round:4.25rem] [--btn-square:1.75rem]";
|
|
79
|
+
readonly icon: "size-spacing-500 text-[40px]";
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/** Resting elevation and hover lift per colour style (the text and outlined styles have none). */
|
|
83
|
+
export declare const buttonElevation: {
|
|
84
|
+
readonly elevated: "shadow-elevation-1 not-disabled:hover:shadow-elevation-2";
|
|
85
|
+
readonly filled: "not-disabled:hover:shadow-elevation-1";
|
|
86
|
+
readonly tonal: "not-disabled:hover:shadow-elevation-1";
|
|
87
|
+
readonly outlined: "";
|
|
88
|
+
readonly text: "";
|
|
89
|
+
};
|
|
90
|
+
export declare const button: import("tailwind-variants").TVReturnType<{
|
|
91
|
+
variant: {
|
|
92
|
+
elevated: {
|
|
93
|
+
base: "shadow-elevation-1 not-disabled:hover:shadow-elevation-2";
|
|
94
|
+
};
|
|
95
|
+
filled: {
|
|
96
|
+
base: "not-disabled:hover:shadow-elevation-1";
|
|
97
|
+
};
|
|
98
|
+
tonal: {
|
|
99
|
+
base: "not-disabled:hover:shadow-elevation-1";
|
|
100
|
+
};
|
|
101
|
+
outlined: {};
|
|
102
|
+
text: {};
|
|
27
103
|
};
|
|
28
104
|
size: {
|
|
29
|
-
xs: {
|
|
30
|
-
base:
|
|
31
|
-
icon:
|
|
105
|
+
readonly xs: {
|
|
106
|
+
readonly base: "md-sys-typescale-label-large h-spacing-400 gap-spacing-50 px-spacing-150 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1rem] [--btn-square:0.75rem]";
|
|
107
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
32
108
|
};
|
|
33
|
-
sm: {
|
|
34
|
-
base:
|
|
35
|
-
icon:
|
|
109
|
+
readonly sm: {
|
|
110
|
+
readonly base: "md-sys-typescale-label-large h-spacing-500 gap-spacing-100 px-spacing-200 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1.25rem] [--btn-square:0.75rem]";
|
|
111
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
36
112
|
};
|
|
37
|
-
md: {
|
|
38
|
-
base:
|
|
39
|
-
icon:
|
|
113
|
+
readonly md: {
|
|
114
|
+
readonly base: "md-sys-typescale-title-medium h-spacing-700 gap-spacing-100 px-spacing-300 [--btn-outline:1px] [--btn-pressed:0.75rem] [--btn-round:1.75rem] [--btn-square:1rem]";
|
|
115
|
+
readonly icon: "size-spacing-300 text-[24px]";
|
|
40
116
|
};
|
|
41
|
-
lg: {
|
|
42
|
-
base:
|
|
43
|
-
icon:
|
|
117
|
+
readonly lg: {
|
|
118
|
+
readonly base: "md-sys-typescale-headline-small h-24 gap-spacing-150 px-spacing-600 [--btn-outline:2px] [--btn-pressed:1rem] [--btn-round:3rem] [--btn-square:1.75rem]";
|
|
119
|
+
readonly icon: "size-spacing-400 text-[32px]";
|
|
44
120
|
};
|
|
45
|
-
xl: {
|
|
46
|
-
base:
|
|
47
|
-
icon:
|
|
121
|
+
readonly xl: {
|
|
122
|
+
readonly base: "md-sys-typescale-headline-large h-34 gap-spacing-200 px-spacing-800 [--btn-outline:3px] [--btn-pressed:1rem] [--btn-round:4.25rem] [--btn-square:1.75rem]";
|
|
123
|
+
readonly icon: "size-spacing-500 text-[40px]";
|
|
48
124
|
};
|
|
49
125
|
};
|
|
50
126
|
shape: {
|
|
51
|
-
round:
|
|
52
|
-
|
|
127
|
+
round: {
|
|
128
|
+
base: string;
|
|
129
|
+
};
|
|
130
|
+
square: {
|
|
131
|
+
base: string;
|
|
132
|
+
};
|
|
53
133
|
};
|
|
134
|
+
/** Toggle buttons only: selected swaps the resting shape (round ↔ square). */
|
|
54
135
|
selected: {
|
|
55
|
-
true:
|
|
56
|
-
false:
|
|
136
|
+
true: {};
|
|
137
|
+
false: {};
|
|
57
138
|
};
|
|
58
139
|
}, {
|
|
59
|
-
base: string;
|
|
140
|
+
base: string[];
|
|
60
141
|
icon: string;
|
|
61
142
|
}, undefined, {
|
|
62
143
|
variant: {
|
|
63
|
-
elevated:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
tertiary: "";
|
|
75
|
-
error: "";
|
|
76
|
-
};
|
|
77
|
-
usage: {
|
|
78
|
-
selection: "";
|
|
79
|
-
default: "";
|
|
144
|
+
elevated: {
|
|
145
|
+
base: "shadow-elevation-1 not-disabled:hover:shadow-elevation-2";
|
|
146
|
+
};
|
|
147
|
+
filled: {
|
|
148
|
+
base: "not-disabled:hover:shadow-elevation-1";
|
|
149
|
+
};
|
|
150
|
+
tonal: {
|
|
151
|
+
base: "not-disabled:hover:shadow-elevation-1";
|
|
152
|
+
};
|
|
153
|
+
outlined: {};
|
|
154
|
+
text: {};
|
|
80
155
|
};
|
|
81
156
|
size: {
|
|
82
|
-
xs: {
|
|
83
|
-
base:
|
|
84
|
-
icon:
|
|
157
|
+
readonly xs: {
|
|
158
|
+
readonly base: "md-sys-typescale-label-large h-spacing-400 gap-spacing-50 px-spacing-150 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1rem] [--btn-square:0.75rem]";
|
|
159
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
85
160
|
};
|
|
86
|
-
sm: {
|
|
87
|
-
base:
|
|
88
|
-
icon:
|
|
161
|
+
readonly sm: {
|
|
162
|
+
readonly base: "md-sys-typescale-label-large h-spacing-500 gap-spacing-100 px-spacing-200 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1.25rem] [--btn-square:0.75rem]";
|
|
163
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
89
164
|
};
|
|
90
|
-
md: {
|
|
91
|
-
base:
|
|
92
|
-
icon:
|
|
165
|
+
readonly md: {
|
|
166
|
+
readonly base: "md-sys-typescale-title-medium h-spacing-700 gap-spacing-100 px-spacing-300 [--btn-outline:1px] [--btn-pressed:0.75rem] [--btn-round:1.75rem] [--btn-square:1rem]";
|
|
167
|
+
readonly icon: "size-spacing-300 text-[24px]";
|
|
93
168
|
};
|
|
94
|
-
lg: {
|
|
95
|
-
base:
|
|
96
|
-
icon:
|
|
169
|
+
readonly lg: {
|
|
170
|
+
readonly base: "md-sys-typescale-headline-small h-24 gap-spacing-150 px-spacing-600 [--btn-outline:2px] [--btn-pressed:1rem] [--btn-round:3rem] [--btn-square:1.75rem]";
|
|
171
|
+
readonly icon: "size-spacing-400 text-[32px]";
|
|
97
172
|
};
|
|
98
|
-
xl: {
|
|
99
|
-
base:
|
|
100
|
-
icon:
|
|
173
|
+
readonly xl: {
|
|
174
|
+
readonly base: "md-sys-typescale-headline-large h-34 gap-spacing-200 px-spacing-800 [--btn-outline:3px] [--btn-pressed:1rem] [--btn-round:4.25rem] [--btn-square:1.75rem]";
|
|
175
|
+
readonly icon: "size-spacing-500 text-[40px]";
|
|
101
176
|
};
|
|
102
177
|
};
|
|
103
178
|
shape: {
|
|
104
|
-
round:
|
|
105
|
-
|
|
179
|
+
round: {
|
|
180
|
+
base: string;
|
|
181
|
+
};
|
|
182
|
+
square: {
|
|
183
|
+
base: string;
|
|
184
|
+
};
|
|
106
185
|
};
|
|
186
|
+
/** Toggle buttons only: selected swaps the resting shape (round ↔ square). */
|
|
107
187
|
selected: {
|
|
108
|
-
true:
|
|
109
|
-
false:
|
|
188
|
+
true: {};
|
|
189
|
+
false: {};
|
|
110
190
|
};
|
|
111
191
|
}, {
|
|
112
|
-
base: string;
|
|
192
|
+
base: string[];
|
|
113
193
|
icon: string;
|
|
114
194
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
115
195
|
variant: {
|
|
116
|
-
elevated:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
tertiary: "";
|
|
128
|
-
error: "";
|
|
129
|
-
};
|
|
130
|
-
usage: {
|
|
131
|
-
selection: "";
|
|
132
|
-
default: "";
|
|
196
|
+
elevated: {
|
|
197
|
+
base: "shadow-elevation-1 not-disabled:hover:shadow-elevation-2";
|
|
198
|
+
};
|
|
199
|
+
filled: {
|
|
200
|
+
base: "not-disabled:hover:shadow-elevation-1";
|
|
201
|
+
};
|
|
202
|
+
tonal: {
|
|
203
|
+
base: "not-disabled:hover:shadow-elevation-1";
|
|
204
|
+
};
|
|
205
|
+
outlined: {};
|
|
206
|
+
text: {};
|
|
133
207
|
};
|
|
134
208
|
size: {
|
|
135
|
-
xs: {
|
|
136
|
-
base:
|
|
137
|
-
icon:
|
|
209
|
+
readonly xs: {
|
|
210
|
+
readonly base: "md-sys-typescale-label-large h-spacing-400 gap-spacing-50 px-spacing-150 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1rem] [--btn-square:0.75rem]";
|
|
211
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
138
212
|
};
|
|
139
|
-
sm: {
|
|
140
|
-
base:
|
|
141
|
-
icon:
|
|
213
|
+
readonly sm: {
|
|
214
|
+
readonly base: "md-sys-typescale-label-large h-spacing-500 gap-spacing-100 px-spacing-200 [--btn-outline:1px] [--btn-pressed:0.5rem] [--btn-round:1.25rem] [--btn-square:0.75rem]";
|
|
215
|
+
readonly icon: "size-spacing-250 text-[20px]";
|
|
142
216
|
};
|
|
143
|
-
md: {
|
|
144
|
-
base:
|
|
145
|
-
icon:
|
|
217
|
+
readonly md: {
|
|
218
|
+
readonly base: "md-sys-typescale-title-medium h-spacing-700 gap-spacing-100 px-spacing-300 [--btn-outline:1px] [--btn-pressed:0.75rem] [--btn-round:1.75rem] [--btn-square:1rem]";
|
|
219
|
+
readonly icon: "size-spacing-300 text-[24px]";
|
|
146
220
|
};
|
|
147
|
-
lg: {
|
|
148
|
-
base:
|
|
149
|
-
icon:
|
|
221
|
+
readonly lg: {
|
|
222
|
+
readonly base: "md-sys-typescale-headline-small h-24 gap-spacing-150 px-spacing-600 [--btn-outline:2px] [--btn-pressed:1rem] [--btn-round:3rem] [--btn-square:1.75rem]";
|
|
223
|
+
readonly icon: "size-spacing-400 text-[32px]";
|
|
150
224
|
};
|
|
151
|
-
xl: {
|
|
152
|
-
base:
|
|
153
|
-
icon:
|
|
225
|
+
readonly xl: {
|
|
226
|
+
readonly base: "md-sys-typescale-headline-large h-34 gap-spacing-200 px-spacing-800 [--btn-outline:3px] [--btn-pressed:1rem] [--btn-round:4.25rem] [--btn-square:1.75rem]";
|
|
227
|
+
readonly icon: "size-spacing-500 text-[40px]";
|
|
154
228
|
};
|
|
155
229
|
};
|
|
156
230
|
shape: {
|
|
157
|
-
round:
|
|
158
|
-
|
|
231
|
+
round: {
|
|
232
|
+
base: string;
|
|
233
|
+
};
|
|
234
|
+
square: {
|
|
235
|
+
base: string;
|
|
236
|
+
};
|
|
159
237
|
};
|
|
238
|
+
/** Toggle buttons only: selected swaps the resting shape (round ↔ square). */
|
|
160
239
|
selected: {
|
|
161
|
-
true:
|
|
162
|
-
false:
|
|
240
|
+
true: {};
|
|
241
|
+
false: {};
|
|
163
242
|
};
|
|
164
243
|
}, {
|
|
165
|
-
base: string;
|
|
244
|
+
base: string[];
|
|
166
245
|
icon: string;
|
|
167
246
|
}>>;
|
|
168
247
|
export declare const buttonIcon: import("tailwind-variants").TVReturnType<{
|
|
169
248
|
variant: {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
text: "";
|
|
175
|
-
bare: "";
|
|
176
|
-
};
|
|
177
|
-
color: {
|
|
178
|
-
default: "";
|
|
179
|
-
primary: "";
|
|
180
|
-
secondary: "";
|
|
181
|
-
tertiary: "";
|
|
182
|
-
error: "";
|
|
249
|
+
filled: {};
|
|
250
|
+
tonal: {};
|
|
251
|
+
outlined: {};
|
|
252
|
+
standard: {};
|
|
183
253
|
};
|
|
184
254
|
size: {
|
|
185
255
|
xs: {
|
|
@@ -203,41 +273,33 @@ export declare const buttonIcon: import("tailwind-variants").TVReturnType<{
|
|
|
203
273
|
icon: string;
|
|
204
274
|
};
|
|
205
275
|
};
|
|
276
|
+
/** Container width: the icon plus the size's narrow, default or wide leading/trailing space. */
|
|
206
277
|
width: {
|
|
207
|
-
narrow:
|
|
208
|
-
|
|
209
|
-
|
|
278
|
+
narrow: {};
|
|
279
|
+
default: {};
|
|
280
|
+
wide: {};
|
|
210
281
|
};
|
|
211
282
|
shape: {
|
|
212
|
-
round:
|
|
213
|
-
|
|
283
|
+
round: {
|
|
284
|
+
base: string;
|
|
285
|
+
};
|
|
286
|
+
square: {
|
|
287
|
+
base: string;
|
|
288
|
+
};
|
|
214
289
|
};
|
|
215
290
|
selected: {
|
|
216
|
-
true:
|
|
217
|
-
false:
|
|
218
|
-
};
|
|
219
|
-
variation: {
|
|
220
|
-
toggle: "";
|
|
221
|
-
default: "";
|
|
291
|
+
true: {};
|
|
292
|
+
false: {};
|
|
222
293
|
};
|
|
223
294
|
}, {
|
|
224
|
-
base: string;
|
|
295
|
+
base: string[];
|
|
225
296
|
icon: string;
|
|
226
297
|
}, undefined, {
|
|
227
298
|
variant: {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
text: "";
|
|
233
|
-
bare: "";
|
|
234
|
-
};
|
|
235
|
-
color: {
|
|
236
|
-
default: "";
|
|
237
|
-
primary: "";
|
|
238
|
-
secondary: "";
|
|
239
|
-
tertiary: "";
|
|
240
|
-
error: "";
|
|
299
|
+
filled: {};
|
|
300
|
+
tonal: {};
|
|
301
|
+
outlined: {};
|
|
302
|
+
standard: {};
|
|
241
303
|
};
|
|
242
304
|
size: {
|
|
243
305
|
xs: {
|
|
@@ -261,41 +323,33 @@ export declare const buttonIcon: import("tailwind-variants").TVReturnType<{
|
|
|
261
323
|
icon: string;
|
|
262
324
|
};
|
|
263
325
|
};
|
|
326
|
+
/** Container width: the icon plus the size's narrow, default or wide leading/trailing space. */
|
|
264
327
|
width: {
|
|
265
|
-
narrow:
|
|
266
|
-
|
|
267
|
-
|
|
328
|
+
narrow: {};
|
|
329
|
+
default: {};
|
|
330
|
+
wide: {};
|
|
268
331
|
};
|
|
269
332
|
shape: {
|
|
270
|
-
round:
|
|
271
|
-
|
|
333
|
+
round: {
|
|
334
|
+
base: string;
|
|
335
|
+
};
|
|
336
|
+
square: {
|
|
337
|
+
base: string;
|
|
338
|
+
};
|
|
272
339
|
};
|
|
273
340
|
selected: {
|
|
274
|
-
true:
|
|
275
|
-
false:
|
|
276
|
-
};
|
|
277
|
-
variation: {
|
|
278
|
-
toggle: "";
|
|
279
|
-
default: "";
|
|
341
|
+
true: {};
|
|
342
|
+
false: {};
|
|
280
343
|
};
|
|
281
344
|
}, {
|
|
282
|
-
base: string;
|
|
345
|
+
base: string[];
|
|
283
346
|
icon: string;
|
|
284
347
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
285
348
|
variant: {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
text: "";
|
|
291
|
-
bare: "";
|
|
292
|
-
};
|
|
293
|
-
color: {
|
|
294
|
-
default: "";
|
|
295
|
-
primary: "";
|
|
296
|
-
secondary: "";
|
|
297
|
-
tertiary: "";
|
|
298
|
-
error: "";
|
|
349
|
+
filled: {};
|
|
350
|
+
tonal: {};
|
|
351
|
+
outlined: {};
|
|
352
|
+
standard: {};
|
|
299
353
|
};
|
|
300
354
|
size: {
|
|
301
355
|
xs: {
|
|
@@ -319,157 +373,276 @@ export declare const buttonIcon: import("tailwind-variants").TVReturnType<{
|
|
|
319
373
|
icon: string;
|
|
320
374
|
};
|
|
321
375
|
};
|
|
376
|
+
/** Container width: the icon plus the size's narrow, default or wide leading/trailing space. */
|
|
322
377
|
width: {
|
|
323
|
-
narrow:
|
|
324
|
-
|
|
325
|
-
|
|
378
|
+
narrow: {};
|
|
379
|
+
default: {};
|
|
380
|
+
wide: {};
|
|
326
381
|
};
|
|
327
382
|
shape: {
|
|
328
|
-
round:
|
|
329
|
-
|
|
383
|
+
round: {
|
|
384
|
+
base: string;
|
|
385
|
+
};
|
|
386
|
+
square: {
|
|
387
|
+
base: string;
|
|
388
|
+
};
|
|
330
389
|
};
|
|
331
390
|
selected: {
|
|
332
|
-
true:
|
|
333
|
-
false:
|
|
334
|
-
};
|
|
335
|
-
variation: {
|
|
336
|
-
toggle: "";
|
|
337
|
-
default: "";
|
|
391
|
+
true: {};
|
|
392
|
+
false: {};
|
|
338
393
|
};
|
|
339
394
|
}, {
|
|
340
|
-
base: string;
|
|
395
|
+
base: string[];
|
|
341
396
|
icon: string;
|
|
342
397
|
}>>;
|
|
398
|
+
export type FABColor = 'primary-container' | 'secondary-container' | 'tertiary-container' | 'primary' | 'secondary' | 'tertiary';
|
|
399
|
+
/** The FAB menu's colour set follows the FAB's colour family. */
|
|
400
|
+
export declare const fabMenuSet: (color: FABColor) => "primary" | "secondary" | "tertiary";
|
|
343
401
|
export declare const fab: import("tailwind-variants").TVReturnType<{
|
|
344
|
-
|
|
402
|
+
color: {
|
|
403
|
+
'primary-container': {
|
|
404
|
+
base: string;
|
|
405
|
+
};
|
|
406
|
+
'secondary-container': {
|
|
407
|
+
base: string;
|
|
408
|
+
};
|
|
409
|
+
'tertiary-container': {
|
|
410
|
+
base: string;
|
|
411
|
+
};
|
|
345
412
|
primary: {
|
|
346
413
|
base: string;
|
|
347
|
-
icon: string;
|
|
348
|
-
label: string;
|
|
349
414
|
};
|
|
350
415
|
secondary: {
|
|
351
416
|
base: string;
|
|
352
|
-
icon: string;
|
|
353
|
-
label: string;
|
|
354
417
|
};
|
|
355
418
|
tertiary: {
|
|
356
419
|
base: string;
|
|
357
|
-
icon: string;
|
|
358
|
-
label: string;
|
|
359
420
|
};
|
|
360
421
|
};
|
|
361
|
-
expanded: {
|
|
362
|
-
true: "gap-3 px-4";
|
|
363
|
-
false: "aspect-square";
|
|
364
|
-
};
|
|
365
422
|
size: {
|
|
423
|
+
/** Baseline small FAB. No longer recommended by M3; kept for dense layouts. */
|
|
366
424
|
small: {
|
|
367
425
|
base: string;
|
|
368
426
|
icon: string;
|
|
369
|
-
label: string;
|
|
370
427
|
};
|
|
371
428
|
regular: {
|
|
372
429
|
base: string;
|
|
373
430
|
icon: string;
|
|
374
431
|
label: string;
|
|
375
432
|
};
|
|
433
|
+
medium: {
|
|
434
|
+
base: string;
|
|
435
|
+
icon: string;
|
|
436
|
+
label: string;
|
|
437
|
+
};
|
|
376
438
|
large: {
|
|
377
439
|
base: string;
|
|
378
440
|
icon: string;
|
|
379
441
|
label: string;
|
|
380
442
|
};
|
|
381
443
|
};
|
|
444
|
+
/**
|
|
445
|
+
* The FAB menu's open state: the FAB becomes the round close button, label shut. Its size and
|
|
446
|
+
* corners spring to 56dp round in FAB.svelte.
|
|
447
|
+
*/
|
|
448
|
+
menuOpen: {
|
|
449
|
+
true: {
|
|
450
|
+
base: string;
|
|
451
|
+
icon: string;
|
|
452
|
+
labelTrack: string;
|
|
453
|
+
};
|
|
454
|
+
false: {};
|
|
455
|
+
};
|
|
456
|
+
menuSet: {
|
|
457
|
+
primary: {};
|
|
458
|
+
secondary: {};
|
|
459
|
+
tertiary: {};
|
|
460
|
+
};
|
|
382
461
|
}, {
|
|
383
462
|
base: string;
|
|
384
463
|
icon: string;
|
|
464
|
+
labelTrack: string;
|
|
465
|
+
labelClip: string;
|
|
385
466
|
label: string;
|
|
386
467
|
}, undefined, {
|
|
387
|
-
|
|
468
|
+
color: {
|
|
469
|
+
'primary-container': {
|
|
470
|
+
base: string;
|
|
471
|
+
};
|
|
472
|
+
'secondary-container': {
|
|
473
|
+
base: string;
|
|
474
|
+
};
|
|
475
|
+
'tertiary-container': {
|
|
476
|
+
base: string;
|
|
477
|
+
};
|
|
388
478
|
primary: {
|
|
389
479
|
base: string;
|
|
390
|
-
icon: string;
|
|
391
|
-
label: string;
|
|
392
480
|
};
|
|
393
481
|
secondary: {
|
|
394
482
|
base: string;
|
|
395
|
-
icon: string;
|
|
396
|
-
label: string;
|
|
397
483
|
};
|
|
398
484
|
tertiary: {
|
|
399
485
|
base: string;
|
|
400
|
-
icon: string;
|
|
401
|
-
label: string;
|
|
402
486
|
};
|
|
403
487
|
};
|
|
404
|
-
expanded: {
|
|
405
|
-
true: "gap-3 px-4";
|
|
406
|
-
false: "aspect-square";
|
|
407
|
-
};
|
|
408
488
|
size: {
|
|
489
|
+
/** Baseline small FAB. No longer recommended by M3; kept for dense layouts. */
|
|
409
490
|
small: {
|
|
410
491
|
base: string;
|
|
411
492
|
icon: string;
|
|
412
|
-
label: string;
|
|
413
493
|
};
|
|
414
494
|
regular: {
|
|
415
495
|
base: string;
|
|
416
496
|
icon: string;
|
|
417
497
|
label: string;
|
|
418
498
|
};
|
|
499
|
+
medium: {
|
|
500
|
+
base: string;
|
|
501
|
+
icon: string;
|
|
502
|
+
label: string;
|
|
503
|
+
};
|
|
419
504
|
large: {
|
|
420
505
|
base: string;
|
|
421
506
|
icon: string;
|
|
422
507
|
label: string;
|
|
423
508
|
};
|
|
424
509
|
};
|
|
510
|
+
/**
|
|
511
|
+
* The FAB menu's open state: the FAB becomes the round close button, label shut. Its size and
|
|
512
|
+
* corners spring to 56dp round in FAB.svelte.
|
|
513
|
+
*/
|
|
514
|
+
menuOpen: {
|
|
515
|
+
true: {
|
|
516
|
+
base: string;
|
|
517
|
+
icon: string;
|
|
518
|
+
labelTrack: string;
|
|
519
|
+
};
|
|
520
|
+
false: {};
|
|
521
|
+
};
|
|
522
|
+
menuSet: {
|
|
523
|
+
primary: {};
|
|
524
|
+
secondary: {};
|
|
525
|
+
tertiary: {};
|
|
526
|
+
};
|
|
425
527
|
}, {
|
|
426
528
|
base: string;
|
|
427
529
|
icon: string;
|
|
530
|
+
labelTrack: string;
|
|
531
|
+
labelClip: string;
|
|
428
532
|
label: string;
|
|
429
533
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
430
|
-
|
|
534
|
+
color: {
|
|
535
|
+
'primary-container': {
|
|
536
|
+
base: string;
|
|
537
|
+
};
|
|
538
|
+
'secondary-container': {
|
|
539
|
+
base: string;
|
|
540
|
+
};
|
|
541
|
+
'tertiary-container': {
|
|
542
|
+
base: string;
|
|
543
|
+
};
|
|
431
544
|
primary: {
|
|
432
545
|
base: string;
|
|
433
|
-
icon: string;
|
|
434
|
-
label: string;
|
|
435
546
|
};
|
|
436
547
|
secondary: {
|
|
437
548
|
base: string;
|
|
438
|
-
icon: string;
|
|
439
|
-
label: string;
|
|
440
549
|
};
|
|
441
550
|
tertiary: {
|
|
442
551
|
base: string;
|
|
443
|
-
icon: string;
|
|
444
|
-
label: string;
|
|
445
552
|
};
|
|
446
553
|
};
|
|
447
|
-
expanded: {
|
|
448
|
-
true: "gap-3 px-4";
|
|
449
|
-
false: "aspect-square";
|
|
450
|
-
};
|
|
451
554
|
size: {
|
|
555
|
+
/** Baseline small FAB. No longer recommended by M3; kept for dense layouts. */
|
|
452
556
|
small: {
|
|
453
557
|
base: string;
|
|
454
558
|
icon: string;
|
|
455
|
-
label: string;
|
|
456
559
|
};
|
|
457
560
|
regular: {
|
|
458
561
|
base: string;
|
|
459
562
|
icon: string;
|
|
460
563
|
label: string;
|
|
461
564
|
};
|
|
565
|
+
medium: {
|
|
566
|
+
base: string;
|
|
567
|
+
icon: string;
|
|
568
|
+
label: string;
|
|
569
|
+
};
|
|
462
570
|
large: {
|
|
463
571
|
base: string;
|
|
464
572
|
icon: string;
|
|
465
573
|
label: string;
|
|
466
574
|
};
|
|
467
575
|
};
|
|
576
|
+
/**
|
|
577
|
+
* The FAB menu's open state: the FAB becomes the round close button, label shut. Its size and
|
|
578
|
+
* corners spring to 56dp round in FAB.svelte.
|
|
579
|
+
*/
|
|
580
|
+
menuOpen: {
|
|
581
|
+
true: {
|
|
582
|
+
base: string;
|
|
583
|
+
icon: string;
|
|
584
|
+
labelTrack: string;
|
|
585
|
+
};
|
|
586
|
+
false: {};
|
|
587
|
+
};
|
|
588
|
+
menuSet: {
|
|
589
|
+
primary: {};
|
|
590
|
+
secondary: {};
|
|
591
|
+
tertiary: {};
|
|
592
|
+
};
|
|
468
593
|
}, {
|
|
469
594
|
base: string;
|
|
470
595
|
icon: string;
|
|
596
|
+
labelTrack: string;
|
|
597
|
+
labelClip: string;
|
|
471
598
|
label: string;
|
|
472
599
|
}>>;
|
|
600
|
+
export declare const fabExpandedClasses: Record<Breakpoint, Record<'true' | 'false', {
|
|
601
|
+
track: string;
|
|
602
|
+
large: string;
|
|
603
|
+
}>>;
|
|
604
|
+
/**
|
|
605
|
+
* The surface a FAB opens into with a container transform, anchored at the FAB's corner. It is
|
|
606
|
+
* `surface`, the colour lists and most content paint, so padding doesn't show as bands. The
|
|
607
|
+
* shadow is a filter on the wrapper, because the surface's shape is a clip-path while it morphs.
|
|
608
|
+
*/
|
|
609
|
+
export declare const fabSurface: import("tailwind-variants").TVReturnType<{
|
|
610
|
+
[key: string]: {
|
|
611
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
612
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
613
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
614
|
+
surface?: import("tailwind-variants").ClassValue;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
} | {
|
|
618
|
+
[x: string]: {
|
|
619
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
620
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
621
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
622
|
+
surface?: import("tailwind-variants").ClassValue;
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
} | {}, {
|
|
626
|
+
anchor: string;
|
|
627
|
+
wrapper: string;
|
|
628
|
+
surface: string;
|
|
629
|
+
}, undefined, {
|
|
630
|
+
[key: string]: {
|
|
631
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
632
|
+
anchor?: import("tailwind-variants").ClassValue;
|
|
633
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
634
|
+
surface?: import("tailwind-variants").ClassValue;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
} | {}, {
|
|
638
|
+
anchor: string;
|
|
639
|
+
wrapper: string;
|
|
640
|
+
surface: string;
|
|
641
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
642
|
+
anchor: string;
|
|
643
|
+
wrapper: string;
|
|
644
|
+
surface: string;
|
|
645
|
+
}>>;
|
|
473
646
|
export declare const fabMenu: import("tailwind-variants").TVReturnType<{
|
|
474
647
|
[key: string]: {
|
|
475
648
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -495,29 +668,48 @@ export declare const fabMenu: import("tailwind-variants").TVReturnType<{
|
|
|
495
668
|
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
496
669
|
base: string;
|
|
497
670
|
}>>;
|
|
671
|
+
/** FAB menu items share the medium button's measurements, fully round, without elevation. */
|
|
498
672
|
export declare const fabMenuItem: import("tailwind-variants").TVReturnType<{
|
|
499
|
-
|
|
500
|
-
primary:
|
|
501
|
-
|
|
502
|
-
|
|
673
|
+
set: {
|
|
674
|
+
primary: {
|
|
675
|
+
base: string;
|
|
676
|
+
};
|
|
677
|
+
secondary: {
|
|
678
|
+
base: string;
|
|
679
|
+
};
|
|
680
|
+
tertiary: {
|
|
681
|
+
base: string;
|
|
682
|
+
};
|
|
503
683
|
};
|
|
504
684
|
}, {
|
|
505
685
|
base: string;
|
|
506
686
|
icon: string;
|
|
507
687
|
}, undefined, {
|
|
508
|
-
|
|
509
|
-
primary:
|
|
510
|
-
|
|
511
|
-
|
|
688
|
+
set: {
|
|
689
|
+
primary: {
|
|
690
|
+
base: string;
|
|
691
|
+
};
|
|
692
|
+
secondary: {
|
|
693
|
+
base: string;
|
|
694
|
+
};
|
|
695
|
+
tertiary: {
|
|
696
|
+
base: string;
|
|
697
|
+
};
|
|
512
698
|
};
|
|
513
699
|
}, {
|
|
514
700
|
base: string;
|
|
515
701
|
icon: string;
|
|
516
702
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
517
|
-
|
|
518
|
-
primary:
|
|
519
|
-
|
|
520
|
-
|
|
703
|
+
set: {
|
|
704
|
+
primary: {
|
|
705
|
+
base: string;
|
|
706
|
+
};
|
|
707
|
+
secondary: {
|
|
708
|
+
base: string;
|
|
709
|
+
};
|
|
710
|
+
tertiary: {
|
|
711
|
+
base: string;
|
|
712
|
+
};
|
|
521
713
|
};
|
|
522
714
|
}, {
|
|
523
715
|
base: string;
|