@noxlovette/material 0.3.3 → 0.4.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 +1 -0
- package/dist/actions/index.d.ts +1 -0
- package/dist/actions/index.js +1 -0
- package/dist/actions/rovingFocusGroup.d.ts +20 -0
- package/dist/actions/rovingFocusGroup.js +82 -0
- package/dist/components/badge/theme.d.ts +8 -8
- package/dist/components/buttons/button-group/ButtonGroup.stories.svelte +83 -0
- package/dist/components/buttons/button-group/ButtonGroup.stories.svelte.d.ts +19 -0
- package/dist/components/buttons/button-group/ButtonGroup.svelte +10 -29
- package/dist/components/buttons/button-group/ButtonGroup.svelte.d.ts +7 -3
- package/dist/components/buttons/button-group/index.d.ts +0 -1
- package/dist/components/buttons/button-group/index.js +3 -1
- package/dist/components/buttons/button-group/theme.d.ts +17 -103
- package/dist/components/buttons/button-group/theme.js +7 -35
- package/dist/components/buttons/button-group/types.d.ts +9 -20
- package/dist/components/buttons/connected/ConnectedButtonGroup.stories.svelte +118 -0
- package/dist/components/buttons/connected/ConnectedButtonGroup.stories.svelte.d.ts +19 -0
- package/dist/components/buttons/connected/ConnectedButtonGroup.svelte +52 -0
- package/dist/components/buttons/connected/ConnectedButtonGroup.svelte.d.ts +12 -0
- package/dist/components/buttons/connected/ConnectedButtonGroupItem.svelte +37 -0
- package/dist/components/buttons/connected/ConnectedButtonGroupItem.svelte.d.ts +9 -0
- package/dist/components/buttons/connected/index.d.ts +3 -1
- package/dist/components/buttons/connected/index.js +3 -1
- package/dist/components/buttons/connected/theme.d.ts +125 -0
- package/dist/components/buttons/connected/theme.js +38 -0
- package/dist/components/buttons/connected/types.d.ts +32 -13
- package/dist/components/buttons/index.d.ts +1 -0
- package/dist/components/buttons/index.js +1 -0
- package/dist/components/buttons/split-button/SplitButton.stories.svelte +103 -0
- package/dist/components/buttons/split-button/SplitButton.stories.svelte.d.ts +19 -0
- package/dist/components/buttons/split-button/SplitButton.svelte +104 -0
- package/dist/components/buttons/split-button/SplitButton.svelte.d.ts +19 -0
- package/dist/components/buttons/split-button/index.d.ts +3 -0
- package/dist/components/{containers/panes → buttons/split-button}/index.js +1 -3
- package/dist/components/buttons/split-button/theme.d.ts +35 -0
- package/dist/components/buttons/split-button/theme.js +26 -0
- package/dist/components/buttons/split-button/types.d.ts +33 -0
- package/dist/components/buttons/theme.d.ts +142 -142
- package/dist/components/buttons/theme.js +2 -2
- package/dist/components/cards/Card.stories.svelte +58 -0
- package/dist/components/cards/Card.stories.svelte.d.ts +2 -17
- package/dist/components/cards/Card.svelte +76 -8
- package/dist/components/cards/theme.d.ts +26 -14
- package/dist/components/cards/theme.js +5 -1
- package/dist/components/cards/types.d.ts +39 -1
- package/dist/components/chips/Chip.stories.svelte +64 -0
- package/dist/components/chips/Chip.stories.svelte.d.ts +19 -0
- package/dist/components/chips/Chip.svelte +115 -0
- package/dist/components/chips/Chip.svelte.d.ts +14 -0
- package/dist/components/chips/index.d.ts +3 -0
- package/dist/components/{containers/merger → chips}/index.js +2 -1
- package/dist/components/chips/theme.d.ts +78 -0
- package/dist/components/chips/theme.js +72 -0
- package/dist/components/chips/types.d.ts +43 -0
- package/dist/components/containers/action-rail/ActionRail.stories.svelte +36 -0
- package/dist/components/containers/{panes/SinglePane.stories.svelte.d.ts → action-rail/ActionRail.stories.svelte.d.ts} +4 -4
- package/dist/components/containers/action-rail/ActionRail.svelte +35 -0
- package/dist/components/containers/action-rail/ActionRail.svelte.d.ts +17 -0
- package/dist/components/containers/action-rail/index.d.ts +3 -0
- package/dist/components/containers/action-rail/index.js +6 -0
- package/dist/components/containers/action-rail/theme.d.ts +45 -0
- package/dist/components/containers/action-rail/theme.js +26 -0
- package/dist/components/containers/action-rail/types.d.ts +20 -0
- package/dist/components/containers/action-rail/types.js +1 -0
- package/dist/components/containers/app/App.svelte +6 -6
- package/dist/components/containers/app/App.svelte.d.ts +4 -2
- package/dist/components/containers/app/theme.d.ts +1 -1
- package/dist/components/containers/app/types.d.ts +9 -4
- package/dist/components/containers/bottom-sheet/BottomSheet.stories.svelte +1 -1
- package/dist/components/containers/bottom-sheet/BottomSheet.svelte +1 -1
- package/dist/components/containers/context-menu/ContextMenu.stories.svelte +44 -0
- package/dist/components/containers/context-menu/ContextMenu.svelte +21 -5
- package/dist/components/containers/context-menu/ContextMenu.svelte.d.ts +11 -0
- package/dist/components/containers/context-menu/theme.d.ts +20 -2
- package/dist/components/containers/context-menu/theme.js +31 -8
- package/dist/components/containers/context-menu/types.d.ts +14 -2
- package/dist/components/containers/dialogue/theme.d.ts +20 -20
- package/dist/components/containers/divider/theme.d.ts +17 -17
- package/dist/components/containers/index.d.ts +2 -3
- package/dist/components/containers/index.js +2 -3
- package/dist/components/containers/link-preview/theme.d.ts +11 -11
- package/dist/components/containers/list/theme.d.ts +14 -14
- package/dist/components/containers/list/theme.js +1 -1
- package/dist/components/containers/menu/Menu.stories.svelte +105 -3
- package/dist/components/containers/menu/Menu.stories.svelte.d.ts +2 -17
- package/dist/components/containers/menu/Menu.svelte +9 -7
- package/dist/components/containers/menu/MenuCheckboxItem.svelte +55 -0
- package/dist/components/containers/menu/MenuCheckboxItem.svelte.d.ts +25 -0
- package/dist/components/containers/menu/MenuGroup.svelte +43 -0
- package/dist/components/containers/menu/MenuGroup.svelte.d.ts +28 -0
- package/dist/components/containers/menu/MenuRadioGroup.svelte +39 -0
- package/dist/components/containers/menu/MenuRadioGroup.svelte.d.ts +27 -0
- package/dist/components/containers/menu/MenuRadioItem.svelte +49 -0
- package/dist/components/containers/menu/MenuRadioItem.svelte.d.ts +17 -0
- package/dist/components/containers/menu/MenuSub.svelte +91 -0
- package/dist/components/containers/menu/MenuSub.svelte.d.ts +29 -0
- package/dist/components/containers/menu/index.d.ts +7 -0
- package/dist/components/containers/menu/index.js +8 -0
- package/dist/components/containers/menu/menu-item/MenuItem.svelte +71 -0
- package/dist/components/containers/{menu-item → menu/menu-item}/MenuItem.svelte.d.ts +2 -1
- package/dist/components/containers/{menu-item → menu/menu-item}/types.d.ts +5 -1
- package/dist/components/containers/menu/menu-item/types.js +1 -0
- package/dist/components/containers/menu/theme.d.ts +68 -0
- package/dist/components/containers/menu/theme.js +36 -0
- package/dist/components/containers/menu/types.d.ts +113 -2
- package/dist/components/containers/pane/DraggablePane.stories.svelte +199 -0
- package/dist/components/containers/pane/DraggablePane.stories.svelte.d.ts +4 -0
- package/dist/components/containers/pane/DraggablePane.svelte +533 -0
- package/dist/components/containers/pane/DraggablePane.svelte.d.ts +29 -0
- package/dist/components/containers/pane/Pane.stories.svelte +104 -0
- package/dist/components/containers/pane/Pane.stories.svelte.d.ts +19 -0
- package/dist/components/containers/pane/Pane.svelte +78 -0
- package/dist/components/containers/pane/Pane.svelte.d.ts +18 -0
- package/dist/components/containers/pane/PaneGrid.stories.svelte +134 -0
- package/dist/components/containers/pane/PaneGrid.stories.svelte.d.ts +19 -0
- package/dist/components/containers/pane/PaneGrid.svelte +43 -0
- package/dist/components/containers/pane/PaneGrid.svelte.d.ts +13 -0
- package/dist/components/containers/pane/PaneHandle.svelte +90 -0
- package/dist/components/containers/pane/PaneHandle.svelte.d.ts +12 -0
- package/dist/components/containers/pane/dragStore.svelte.d.ts +16 -0
- package/dist/components/containers/pane/dragStore.svelte.js +38 -0
- package/dist/components/containers/pane/index.d.ts +8 -0
- package/dist/components/containers/pane/index.js +11 -0
- package/dist/components/containers/pane/resizeStore.svelte.d.ts +10 -0
- package/dist/components/containers/pane/resizeStore.svelte.js +30 -0
- package/dist/components/containers/pane/theme.d.ts +571 -0
- package/dist/components/containers/pane/theme.js +211 -0
- package/dist/components/containers/pane/types.d.ts +249 -0
- package/dist/components/containers/pane/types.js +1 -0
- package/dist/components/containers/popover/Popover.stories.svelte +4 -4
- package/dist/components/containers/popover/Popover.svelte +3 -1
- package/dist/components/containers/popover/theme.d.ts +20 -20
- package/dist/components/containers/popover/types.d.ts +6 -2
- package/dist/components/containers/scroll-area/theme.d.ts +2 -2
- package/dist/components/containers/side-sheet/SideSheet.stories.svelte +16 -24
- package/dist/components/containers/side-sheet/SideSheet.svelte +73 -7
- package/dist/components/containers/side-sheet/SideSheet.svelte.d.ts +5 -0
- package/dist/components/containers/stack/theme.d.ts +44 -44
- package/dist/components/date/DateField.stories.svelte +57 -0
- package/dist/components/{containers/panes/SplitPane.stories.svelte.d.ts → date/DateField.stories.svelte.d.ts} +4 -4
- package/dist/components/date/DateField.svelte +11 -2
- package/dist/components/date/DateRangeField.stories.svelte +53 -0
- package/dist/components/{containers/panes/SupportingPane.stories.svelte.d.ts → date/DateRangeField.stories.svelte.d.ts} +4 -4
- package/dist/components/date/DateRangeField.svelte +2 -1
- package/dist/components/date/theme.d.ts +73 -4
- package/dist/components/date/theme.js +95 -26
- package/dist/components/date/types.d.ts +5 -0
- package/dist/components/forms/checkbox/Checkbox.svelte +7 -9
- package/dist/components/forms/checkbox/theme.d.ts +8 -8
- package/dist/components/forms/checkbox/theme.js +31 -9
- package/dist/components/forms/command/theme.d.ts +35 -35
- package/dist/components/forms/pin/theme.d.ts +2 -2
- package/dist/components/forms/radio-group/theme.d.ts +2 -2
- package/dist/components/forms/search/theme.d.ts +8 -8
- package/dist/components/forms/select/Select.svelte +3 -2
- package/dist/components/forms/select/theme.d.ts +26 -2
- package/dist/components/forms/select/theme.js +56 -22
- package/dist/components/forms/slider/theme.d.ts +20 -20
- package/dist/components/forms/switch/theme.d.ts +2 -2
- package/dist/components/forms/textfield/Textfield.stories.svelte +22 -0
- package/dist/components/forms/textfield/Textfield.svelte +10 -1
- package/dist/components/forms/textfield/theme.d.ts +44 -2
- package/dist/components/forms/textfield/theme.js +56 -16
- package/dist/components/forms/toggle-group/ToggleGroup.svelte +2 -2
- package/dist/components/forms/toggle-group/ToggleGroup.svelte.d.ts +2 -2
- package/dist/components/forms/toggle-group/ToggleGroupItem.svelte +1 -1
- package/dist/components/forms/toggle-group/ToggleGroupItem.svelte.d.ts +1 -1
- package/dist/components/forms/toggle-group/theme.d.ts +16 -16
- package/dist/components/forms/toggle-group/types.d.ts +2 -2
- package/dist/components/forms/tooltip/Tooltip.svelte +1 -1
- package/dist/components/forms/tooltip/theme.d.ts +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/misc/Avatar.stories.svelte +8 -0
- package/dist/components/misc/Avatar.svelte +35 -10
- package/dist/components/misc/DicebearAvatarBuilder.d.ts +59 -0
- package/dist/components/misc/DicebearAvatarBuilder.js +115 -0
- package/dist/components/misc/ThemeSettings.svelte +1 -1
- package/dist/components/misc/ThemeSwitcher.svelte +2 -2
- package/dist/components/misc/dicebearStyles.d.ts +21 -0
- package/dist/components/misc/dicebearStyles.js +169 -0
- package/dist/components/misc/index.d.ts +3 -0
- package/dist/components/misc/index.js +3 -0
- package/dist/components/misc/materialAvatarPalette.d.ts +6 -0
- package/dist/components/misc/materialAvatarPalette.js +44 -0
- package/dist/components/misc/theme.d.ts +20 -2
- package/dist/components/misc/theme.js +7 -1
- package/dist/components/misc/types.d.ts +20 -2
- package/dist/components/nav/appbar/AppBar.stories.svelte +1 -1
- package/dist/components/nav/appbar/AppBar.svelte +46 -15
- package/dist/components/nav/appbar/AppBar.svelte.d.ts +5 -0
- package/dist/components/nav/appbar/theme.d.ts +20 -14
- package/dist/components/nav/appbar/theme.js +11 -7
- package/dist/components/nav/appbar/types.d.ts +3 -1
- package/dist/components/nav/breadcrumb/Breadcrumb.stories.svelte +50 -0
- package/dist/components/nav/breadcrumb/Breadcrumb.stories.svelte.d.ts +19 -0
- package/dist/components/nav/breadcrumb/Breadcrumb.svelte +46 -0
- package/dist/components/nav/breadcrumb/Breadcrumb.svelte.d.ts +13 -0
- package/dist/components/nav/breadcrumb/index.d.ts +3 -0
- package/dist/components/nav/breadcrumb/index.js +6 -0
- package/dist/components/nav/breadcrumb/theme.d.ts +84 -0
- package/dist/components/nav/breadcrumb/theme.js +35 -0
- package/dist/components/nav/breadcrumb/types.d.ts +14 -0
- package/dist/components/nav/breadcrumb/types.js +1 -0
- package/dist/components/nav/index.d.ts +1 -0
- package/dist/components/nav/index.js +1 -0
- package/dist/components/nav/navbar/theme.d.ts +19 -19
- package/dist/components/nav/rail/Rail.stories.svelte +1 -5
- package/dist/components/nav/rail/Rail.svelte +3 -25
- package/dist/components/nav/rail/theme.d.ts +4 -4
- package/dist/components/nav/rail/types.d.ts +0 -5
- package/dist/components/nav/tabs/TabHolder.svelte +2 -1
- package/dist/components/nav/tabs/theme.d.ts +21 -21
- package/dist/components/nav/tabs/theme.js +6 -0
- package/dist/components/nav/tabs/types.d.ts +2 -2
- package/dist/components/pill/theme.d.ts +35 -35
- package/dist/components/snackbar/theme.d.ts +8 -8
- package/dist/components/table/Table.stories.svelte +267 -0
- package/dist/components/table/Table.stories.svelte.d.ts +19 -0
- package/dist/components/table/Table.svelte +1 -1
- package/dist/components/table/TableBody.svelte +16 -3
- package/dist/components/table/TableBody.svelte.d.ts +5 -1
- package/dist/components/table/TableRow.svelte +1 -1
- package/dist/components/table/theme.d.ts +2 -2
- package/dist/components/table/theme.js +2 -2
- package/dist/components/table/types.d.ts +7 -0
- package/dist/components/time/theme.d.ts +29 -29
- package/dist/components/toolbar/Toolbar.stories.svelte +71 -0
- package/dist/components/toolbar/Toolbar.stories.svelte.d.ts +19 -0
- package/dist/components/toolbar/Toolbar.svelte +19 -3
- package/dist/components/toolbar/Toolbar.svelte.d.ts +8 -2
- package/dist/components/toolbar/ToolbarButton.svelte +28 -4
- package/dist/components/toolbar/ToolbarDivider.svelte +4 -3
- package/dist/components/toolbar/ToolbarGroup.svelte +7 -2
- package/dist/components/toolbar/ToolbarGroupItem.svelte +29 -4
- package/dist/components/toolbar/ToolbarSection.svelte +35 -0
- package/dist/components/toolbar/ToolbarSection.svelte.d.ts +9 -0
- package/dist/components/toolbar/ToolbarSpacer.svelte +18 -0
- package/dist/components/toolbar/ToolbarSpacer.svelte.d.ts +9 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar/index.js +2 -0
- package/dist/components/toolbar/theme.d.ts +36 -21
- package/dist/components/toolbar/theme.js +27 -11
- package/dist/components/toolbar/types.d.ts +37 -4
- package/dist/components/typography/body/theme.d.ts +14 -14
- package/dist/components/typography/display/theme.d.ts +14 -14
- package/dist/components/typography/headline/theme.d.ts +14 -14
- package/dist/components/typography/kbd/Kbd.stories.svelte +1 -1
- package/dist/components/typography/kbd/theme.d.ts +8 -8
- package/dist/components/typography/label/theme.d.ts +14 -14
- package/dist/components/typography/title/theme.d.ts +14 -14
- package/dist/styles/component.css +126 -4
- package/dist/styles/motion.css +6 -3
- package/dist/utils/Layer.svelte +7 -3
- package/dist/utils/Theme.svelte +20 -20
- package/dist/utils/ThemeScript.svelte +1 -1
- package/dist/utils/icon/theme.d.ts +14 -14
- package/package.json +38 -37
- package/bin/install-skill.js +0 -29
- package/dist/components/buttons/button-group/ButtonGroupItem.svelte +0 -41
- package/dist/components/buttons/button-group/ButtonGroupItem.svelte.d.ts +0 -8
- package/dist/components/buttons/connected/ConnectedButtons.svelte +0 -14
- package/dist/components/buttons/connected/ConnectedButtons.svelte.d.ts +0 -8
- package/dist/components/containers/menu-item/MenuItem.svelte +0 -74
- package/dist/components/containers/merger/InputMerger.svelte +0 -24
- package/dist/components/containers/merger/InputMerger.svelte.d.ts +0 -14
- package/dist/components/containers/merger/index.d.ts +0 -2
- package/dist/components/containers/merger/theme.d.ts +0 -1
- package/dist/components/containers/merger/theme.js +0 -4
- package/dist/components/containers/panes/SinglePane.stories.svelte +0 -67
- package/dist/components/containers/panes/SinglePane.svelte +0 -32
- package/dist/components/containers/panes/SinglePane.svelte.d.ts +0 -5
- package/dist/components/containers/panes/SplitPane.stories.svelte +0 -124
- package/dist/components/containers/panes/SplitPane.svelte +0 -144
- package/dist/components/containers/panes/SplitPane.svelte.d.ts +0 -8
- package/dist/components/containers/panes/SupportingPane.stories.svelte +0 -113
- package/dist/components/containers/panes/SupportingPane.svelte +0 -175
- package/dist/components/containers/panes/SupportingPane.svelte.d.ts +0 -9
- package/dist/components/containers/panes/index.d.ts +0 -5
- package/dist/components/containers/panes/theme.d.ts +0 -490
- package/dist/components/containers/panes/theme.js +0 -185
- package/dist/components/containers/panes/types.d.ts +0 -108
- package/dist/components/nav/rail/RailNavContext.svelte +0 -14
- package/dist/components/nav/rail/RailNavContext.svelte.d.ts +0 -8
- /package/dist/components/{containers/menu-item → buttons/split-button}/types.js +0 -0
- /package/dist/components/{containers/panes → chips}/types.js +0 -0
- /package/dist/components/containers/{menu-item → menu/menu-item}/index.d.ts +0 -0
- /package/dist/components/containers/{menu-item → menu/menu-item}/index.js +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ActionRailProps } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Material 3 Action Rail.
|
|
4
|
+
*
|
|
5
|
+
* A rightmost, sticky container for hosting a vertical `Toolbar` (or other grouped
|
|
6
|
+
* actions) alongside page content. This is the M3 spec's newer "rail as a toolbar
|
|
7
|
+
* host" role — distinct from `Rail` (the navigation-rail component under `nav/`).
|
|
8
|
+
* Because it holds actions rather than destinations, it renders a plain container
|
|
9
|
+
* and is intentionally NOT wrapped in bits-ui's `NavigationMenu` — `Toolbar.svelte`
|
|
10
|
+
* (bits-ui `Toolbar.Root`) already supplies the correct `role="toolbar"` semantics
|
|
11
|
+
* for whatever is placed inside.
|
|
12
|
+
*
|
|
13
|
+
* @see https://m3.material.io/components/toolbars
|
|
14
|
+
*/
|
|
15
|
+
declare const ActionRail: import("svelte").Component<ActionRailProps, {}, "">;
|
|
16
|
+
type ActionRail = ReturnType<typeof ActionRail>;
|
|
17
|
+
export default ActionRail;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// THIS FILE IS AUTO-GENERATED BY scripts/generate-components-index.ts - DO NOT EDIT MANUALLY
|
|
2
|
+
// re-export TS/JS modules from this folder
|
|
3
|
+
export * from './theme.js';
|
|
4
|
+
export * from './types.js';
|
|
5
|
+
// default exports for components in this folder
|
|
6
|
+
export { default as ActionRail } from './ActionRail.svelte';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
2
|
+
export type ActionRailVariants = VariantProps<typeof actionRail>;
|
|
3
|
+
export declare const actionRail: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
anchor: {
|
|
5
|
+
viewport: {
|
|
6
|
+
base: string;
|
|
7
|
+
};
|
|
8
|
+
parent: {
|
|
9
|
+
base: string;
|
|
10
|
+
};
|
|
11
|
+
sticky: {
|
|
12
|
+
base: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
base: string;
|
|
17
|
+
}, undefined, {
|
|
18
|
+
anchor: {
|
|
19
|
+
viewport: {
|
|
20
|
+
base: string;
|
|
21
|
+
};
|
|
22
|
+
parent: {
|
|
23
|
+
base: string;
|
|
24
|
+
};
|
|
25
|
+
sticky: {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
base: string;
|
|
31
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
32
|
+
anchor: {
|
|
33
|
+
viewport: {
|
|
34
|
+
base: string;
|
|
35
|
+
};
|
|
36
|
+
parent: {
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
sticky: {
|
|
40
|
+
base: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}, {
|
|
44
|
+
base: string;
|
|
45
|
+
}>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
export const actionRail = tv({
|
|
3
|
+
slots: {
|
|
4
|
+
base: 'z-30 flex flex-col items-center justify-center right-0'
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
anchor: {
|
|
8
|
+
// Fixes to the true viewport edge — for an outermost, full-page rail.
|
|
9
|
+
viewport: {
|
|
10
|
+
base: 'fixed top-[var(--action-rail-top,0px)] bottom-[var(--action-rail-bottom,0px)]'
|
|
11
|
+
},
|
|
12
|
+
// Absolutely positioned within a relative ancestor — for embedded/contained demos.
|
|
13
|
+
parent: {
|
|
14
|
+
base: 'absolute top-[var(--action-rail-top,0px)] bottom-[var(--action-rail-bottom,0px)]'
|
|
15
|
+
},
|
|
16
|
+
// In-flow and sticks to the top as the page scrolls — for a rail nested inside
|
|
17
|
+
// other already-offset content (the default: this is the M3 "sticky toolbar host" role).
|
|
18
|
+
sticky: {
|
|
19
|
+
base: 'sticky top-[var(--action-rail-top,0px)] self-start max-h-dvh'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
anchor: 'sticky'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DivAttrs } from '../../../utils/index.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import type { ActionRailVariants } from './theme.js';
|
|
4
|
+
/**
|
|
5
|
+
* Props for the ActionRail component.
|
|
6
|
+
*/
|
|
7
|
+
export type ActionRailProps = ActionRailVariants & DivAttrs & {
|
|
8
|
+
/** Rail content — typically a vertical `Toolbar`. */
|
|
9
|
+
children: Snippet;
|
|
10
|
+
/**
|
|
11
|
+
* Top offset in px, e.g. the height of a top app bar.
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
top?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Bottom offset in px (`viewport`/`parent` anchor only).
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
bottom?: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
@component
|
|
3
3
|
The core App wrapper that gives default backgrounds and sets up tooltips and icons.
|
|
4
|
-
By default it also manages the Material 3 Dynamic Theme
|
|
5
|
-
|
|
4
|
+
By default it also manages the Material 3 Dynamic Theme; pass `dynamicTheme={false}`
|
|
5
|
+
to opt out and rely on static theme CSS instead. Either way, App always keeps the
|
|
6
|
+
`dark` class on `<html>` in sync with the user's/system's color scheme, so static
|
|
7
|
+
theme CSS still responds to dark mode.
|
|
6
8
|
-->
|
|
7
9
|
<script lang="ts">
|
|
8
10
|
import { MaterialSymbolsProvider, Theme } from '../../../utils/index.js';
|
|
@@ -22,10 +24,8 @@ By default it also manages the Material 3 Dynamic Theme and dark mode; pass
|
|
|
22
24
|
const baseCls = $derived(app({ class: className }));
|
|
23
25
|
</script>
|
|
24
26
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<Theme />
|
|
28
|
-
{/if}
|
|
27
|
+
<ThemeScript />
|
|
28
|
+
<Theme generateCSS={dynamicTheme} />
|
|
29
29
|
<MaterialSymbolsProvider {...iconProviderProps} />
|
|
30
30
|
<Tooltip.Provider>
|
|
31
31
|
<div class={baseCls} {...restProps}>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { AppProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* The core App wrapper that gives default backgrounds and sets up tooltips and icons.
|
|
4
|
-
* By default it also manages the Material 3 Dynamic Theme
|
|
5
|
-
*
|
|
4
|
+
* By default it also manages the Material 3 Dynamic Theme; pass `dynamicTheme={false}`
|
|
5
|
+
* to opt out and rely on static theme CSS instead. Either way, App always keeps the
|
|
6
|
+
* `dark` class on `<html>` in sync with the user's/system's color scheme, so static
|
|
7
|
+
* theme CSS still responds to dark mode.
|
|
6
8
|
*/
|
|
7
9
|
declare const App: import("svelte").Component<AppProps, {}, "">;
|
|
8
10
|
type App = ReturnType<typeof App>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type VariantProps } from 'tailwind-variants';
|
|
2
2
|
export type AppVariants = VariantProps<typeof app>;
|
|
3
|
-
export declare const app: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-md-sys-color-surface-container text-md-sys-color-on-background min-h-dvh caret-md-sys-color-primary selection:bg-md-sys-color-primary-container selection:text-md-sys-color-on-primary-container relative min-h-dvh pt-[env(safe-area-inset-top)] pr-[env(safe-area-inset-right)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] antialiased", {} | {}, undefined, import("tailwind-variants").
|
|
3
|
+
export declare const app: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-md-sys-color-surface-container text-md-sys-color-on-background min-h-dvh caret-md-sys-color-primary selection:bg-md-sys-color-primary-container selection:text-md-sys-color-on-primary-container relative min-h-dvh pt-[env(safe-area-inset-top)] pr-[env(safe-area-inset-right)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] antialiased", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
@@ -9,10 +9,15 @@ export type AppProps = DivAttrs & {
|
|
|
9
9
|
/** Props to pass to the material symbols provider */
|
|
10
10
|
iconProviderProps?: Partial<MaterialSymbolsProviderProps>;
|
|
11
11
|
/**
|
|
12
|
-
* Whether App
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* Whether App generates and injects M3 dynamic-color CSS (source-color
|
|
13
|
+
* extraction into per-scheme custom properties). Set to `false` if you
|
|
14
|
+
* supply your own static `@noxlovette/material/theme/*` CSS instead.
|
|
15
|
+
*
|
|
16
|
+
* Either way, App always mounts `<ThemeScript>`/`<Theme>` to keep the
|
|
17
|
+
* `dark` class on `<html>` in sync with `themeState.scheme` (including
|
|
18
|
+
* system `prefers-color-scheme` changes) — turning this off does not
|
|
19
|
+
* disable dark-mode tracking, since static theme CSS depends on the same
|
|
20
|
+
* `dark` class to apply.
|
|
16
21
|
* @default true
|
|
17
22
|
*/
|
|
18
23
|
dynamicTheme?: boolean;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
10
10
|
import BottomSheet from './BottomSheet.svelte';
|
|
11
11
|
import Button from '../../buttons/Button.svelte';
|
|
12
|
-
import MenuItem from '../menu-item/MenuItem.svelte';
|
|
12
|
+
import MenuItem from '../menu/menu-item/MenuItem.svelte';
|
|
13
13
|
|
|
14
14
|
const { Story } = defineMeta({
|
|
15
15
|
title: 'Containers/Bottom Sheet',
|
|
@@ -61,7 +61,7 @@ while keeping the main screen content visible.
|
|
|
61
61
|
/>
|
|
62
62
|
|
|
63
63
|
<dialog
|
|
64
|
-
class="bg-md-sys-color-surface-container-low
|
|
64
|
+
class="bg-md-sys-color-surface-container-low mx-auto mt-auto w-full max-w-2xl overflow-hidden rounded-t-md"
|
|
65
65
|
style:max-height="{height}px"
|
|
66
66
|
use:open
|
|
67
67
|
use:outroClass
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
<script module lang="ts">
|
|
2
2
|
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
3
|
import ContextMenu from './ContextMenu.svelte';
|
|
4
|
+
import Table from '../../table/Table.svelte';
|
|
5
|
+
import TableHead from '../../table/TableHead.svelte';
|
|
6
|
+
import TableBody from '../../table/TableBody.svelte';
|
|
7
|
+
import TableRow from '../../table/TableRow.svelte';
|
|
8
|
+
import TableHeader from '../../table/TableHeader.svelte';
|
|
9
|
+
import TableCell from '../../table/TableCell.svelte';
|
|
4
10
|
|
|
5
11
|
const { Story } = defineMeta({
|
|
6
12
|
title: 'Containers/Context Menu',
|
|
7
13
|
component: ContextMenu
|
|
8
14
|
});
|
|
15
|
+
|
|
16
|
+
const rows = [
|
|
17
|
+
{ name: 'Frozen yogurt', calories: 159 },
|
|
18
|
+
{ name: 'Ice cream sandwich', calories: 237 },
|
|
19
|
+
{ name: 'Eclair', calories: 262 }
|
|
20
|
+
];
|
|
9
21
|
</script>
|
|
10
22
|
|
|
11
23
|
<Story name="Playground" asChild>
|
|
@@ -69,3 +81,35 @@
|
|
|
69
81
|
</div>
|
|
70
82
|
</ContextMenu>
|
|
71
83
|
</Story>
|
|
84
|
+
|
|
85
|
+
<Story name="In Table Row">
|
|
86
|
+
{#snippet template()}
|
|
87
|
+
<Table rounded>
|
|
88
|
+
<TableHead>
|
|
89
|
+
<TableRow>
|
|
90
|
+
<TableHeader>Dessert</TableHeader>
|
|
91
|
+
<TableHeader numeric>Calories</TableHeader>
|
|
92
|
+
</TableRow>
|
|
93
|
+
</TableHead>
|
|
94
|
+
<TableBody>
|
|
95
|
+
{#each rows as row (row.name)}
|
|
96
|
+
<ContextMenu
|
|
97
|
+
items={[
|
|
98
|
+
{ label: 'Edit', value: 'edit', iconProps: { name: 'edit' } },
|
|
99
|
+
{ separator: true },
|
|
100
|
+
{ label: 'Delete', value: 'delete', iconProps: { name: 'delete' } }
|
|
101
|
+
]}
|
|
102
|
+
onselect={(value) => console.log('selected', value, 'for', row.name)}
|
|
103
|
+
>
|
|
104
|
+
{#snippet trigger(props)}
|
|
105
|
+
<TableRow {...props} hoverable>
|
|
106
|
+
<TableCell>{row.name}</TableCell>
|
|
107
|
+
<TableCell numeric>{row.calories}</TableCell>
|
|
108
|
+
</TableRow>
|
|
109
|
+
{/snippet}
|
|
110
|
+
</ContextMenu>
|
|
111
|
+
{/each}
|
|
112
|
+
</TableBody>
|
|
113
|
+
</Table>
|
|
114
|
+
{/snippet}
|
|
115
|
+
</Story>
|
|
@@ -16,6 +16,17 @@ Context menus appear on right-click and provide actions related to the clicked e
|
|
|
16
16
|
</ContextMenu>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
Pass `trigger` instead of `children` when the wrapping `<div>` isn't valid where
|
|
20
|
+
you need it (e.g. a table row):
|
|
21
|
+
|
|
22
|
+
```svelte
|
|
23
|
+
<ContextMenu items={rowItems} onselect={handleSelect}>
|
|
24
|
+
{#snippet trigger(props)}
|
|
25
|
+
<TableRow {...props} hoverable>...</TableRow>
|
|
26
|
+
{/snippet}
|
|
27
|
+
</ContextMenu>
|
|
28
|
+
```
|
|
29
|
+
|
|
19
30
|
@see https://m3.material.io/components/menus/guidelines
|
|
20
31
|
-->
|
|
21
32
|
<script lang="ts">
|
|
@@ -31,6 +42,7 @@ Context menus appear on right-click and provide actions related to the clicked e
|
|
|
31
42
|
items = [],
|
|
32
43
|
selected,
|
|
33
44
|
children,
|
|
45
|
+
trigger,
|
|
34
46
|
onselect,
|
|
35
47
|
itemDataCyPrefix = 'context-menu-item',
|
|
36
48
|
disabled = false
|
|
@@ -89,7 +101,7 @@ Context menus appear on right-click and provide actions related to the clicked e
|
|
|
89
101
|
{:else}
|
|
90
102
|
{@const isSelected = item.selected || (selected !== undefined && item.value === selected)}
|
|
91
103
|
<BitsContextMenu.Item
|
|
92
|
-
class={theme.item({ selected: isSelected })}
|
|
104
|
+
class={theme.item({ selected: isSelected, color: item.color })}
|
|
93
105
|
disabled={item.disabled}
|
|
94
106
|
onSelect={() => {
|
|
95
107
|
if (item.value !== undefined) {
|
|
@@ -100,7 +112,7 @@ Context menus appear on right-click and provide actions related to the clicked e
|
|
|
100
112
|
data-cy={`${itemDataCyPrefix}-${toDataCy(item.value)}`}
|
|
101
113
|
>
|
|
102
114
|
{#if item.iconProps}
|
|
103
|
-
<Icon class={theme.icon()} {...item.iconProps} />
|
|
115
|
+
<Icon class={theme.icon({ color: item.color })} {...item.iconProps} />
|
|
104
116
|
{/if}
|
|
105
117
|
<div class={theme.itemContent()}>
|
|
106
118
|
<span class={theme.label()}>{item.label}</span>
|
|
@@ -119,9 +131,13 @@ Context menus appear on right-click and provide actions related to the clicked e
|
|
|
119
131
|
<BitsContextMenu.Root>
|
|
120
132
|
<BitsContextMenu.Trigger {disabled}>
|
|
121
133
|
{#snippet child({ props })}
|
|
122
|
-
|
|
123
|
-
{@render
|
|
124
|
-
|
|
134
|
+
{#if trigger}
|
|
135
|
+
{@render trigger(props)}
|
|
136
|
+
{:else}
|
|
137
|
+
<div {...props}>
|
|
138
|
+
{@render children?.()}
|
|
139
|
+
</div>
|
|
140
|
+
{/if}
|
|
125
141
|
{/snippet}
|
|
126
142
|
</BitsContextMenu.Trigger>
|
|
127
143
|
|
|
@@ -16,6 +16,17 @@ import type { ContextMenuProps } from './types.js';
|
|
|
16
16
|
* </ContextMenu>
|
|
17
17
|
* ```
|
|
18
18
|
*
|
|
19
|
+
* Pass `trigger` instead of `children` when the wrapping `<div>` isn't valid where
|
|
20
|
+
* you need it (e.g. a table row):
|
|
21
|
+
*
|
|
22
|
+
* ```svelte
|
|
23
|
+
* <ContextMenu items={rowItems} onselect={handleSelect}>
|
|
24
|
+
* {#snippet trigger(props)}
|
|
25
|
+
* <TableRow {...props} hoverable>...</TableRow>
|
|
26
|
+
* {/snippet}
|
|
27
|
+
* </ContextMenu>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
19
30
|
* @see https://m3.material.io/components/menus/guidelines
|
|
20
31
|
*/
|
|
21
32
|
declare const ContextMenu: import("svelte").Component<ContextMenuProps, {}, "">;
|
|
@@ -6,6 +6,12 @@ export declare const contextMenu: import("tailwind-variants").TVReturnType<{
|
|
|
6
6
|
item: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
|
+
color: {
|
|
10
|
+
error: {
|
|
11
|
+
item: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
9
15
|
}, {
|
|
10
16
|
content: string;
|
|
11
17
|
item: string;
|
|
@@ -22,6 +28,12 @@ export declare const contextMenu: import("tailwind-variants").TVReturnType<{
|
|
|
22
28
|
item: string;
|
|
23
29
|
};
|
|
24
30
|
};
|
|
31
|
+
color: {
|
|
32
|
+
error: {
|
|
33
|
+
item: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
25
37
|
}, {
|
|
26
38
|
content: string;
|
|
27
39
|
item: string;
|
|
@@ -32,12 +44,18 @@ export declare const contextMenu: import("tailwind-variants").TVReturnType<{
|
|
|
32
44
|
icon: string;
|
|
33
45
|
separator: string;
|
|
34
46
|
rightSlot: string;
|
|
35
|
-
}, import("tailwind-variants").
|
|
47
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
36
48
|
selected: {
|
|
37
49
|
true: {
|
|
38
50
|
item: string;
|
|
39
51
|
};
|
|
40
52
|
};
|
|
53
|
+
color: {
|
|
54
|
+
error: {
|
|
55
|
+
item: string;
|
|
56
|
+
icon: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
41
59
|
}, {
|
|
42
60
|
content: string;
|
|
43
61
|
item: string;
|
|
@@ -48,4 +66,4 @@ export declare const contextMenu: import("tailwind-variants").TVReturnType<{
|
|
|
48
66
|
icon: string;
|
|
49
67
|
separator: string;
|
|
50
68
|
rightSlot: string;
|
|
51
|
-
}
|
|
69
|
+
}>>;
|
|
@@ -1,20 +1,43 @@
|
|
|
1
1
|
import { tv } from 'tailwind-variants';
|
|
2
2
|
export const contextMenu = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
content:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
content: `
|
|
5
|
+
z-[100] min-w-48 max-w-sm gap-1 overflow-y-auto rounded-lg
|
|
6
|
+
bg-md-sys-color-surface-container-high px-2 py-1
|
|
7
|
+
shadow-elevation-3 ring-md-sys-color-outline/10
|
|
8
|
+
`,
|
|
9
|
+
item: `
|
|
10
|
+
rounded-sm relative flex w-full cursor-pointer select-none items-center gap-2
|
|
11
|
+
px-3 py-2 text-left md-sys-typescale-body-large text-md-sys-color-on-surface
|
|
12
|
+
outline-none transition-colors duration-150
|
|
13
|
+
hover:bg-md-sys-color-on-surface/8 data-[highlighted]:bg-md-sys-color-on-surface/8
|
|
14
|
+
data-[disabled]:cursor-not-allowed data-[disabled]:opacity-38
|
|
15
|
+
`,
|
|
16
|
+
subTrigger: `
|
|
17
|
+
rounded-sm relative flex w-full cursor-pointer select-none items-center gap-2
|
|
18
|
+
px-3 py-2 text-left md-sys-typescale-body-large text-md-sys-color-on-surface
|
|
19
|
+
outline-none transition-colors duration-150
|
|
20
|
+
hover:bg-md-sys-color-on-surface/8 data-[state=open]:bg-md-sys-color-on-surface/8
|
|
21
|
+
data-[highlighted]:bg-md-sys-color-on-surface/8
|
|
22
|
+
data-[disabled]:cursor-not-allowed data-[disabled]:opacity-38
|
|
23
|
+
`,
|
|
24
|
+
itemContent: 'flex flex-1 flex-col gap-0.5 min-w-0',
|
|
8
25
|
label: 'md-sys-typescale-body-large text-md-sys-color-on-surface',
|
|
9
26
|
helper: 'md-sys-typescale-body-medium text-md-sys-color-on-surface-variant',
|
|
10
|
-
icon: 'size-
|
|
11
|
-
separator: 'my-
|
|
12
|
-
rightSlot: 'ml-auto text-md-sys-color-on-surface-variant'
|
|
27
|
+
icon: 'size-5 text-[20px] text-md-sys-color-on-surface-variant shrink-0',
|
|
28
|
+
separator: 'my-1 h-px bg-md-sys-color-outline-variant',
|
|
29
|
+
rightSlot: 'ml-auto size-5 text-[20px] shrink-0 text-md-sys-color-on-surface-variant'
|
|
13
30
|
},
|
|
14
31
|
variants: {
|
|
15
32
|
selected: {
|
|
16
33
|
true: {
|
|
17
|
-
item: 'bg-md-sys-color-secondary-container text-md-sys-color-on-secondary-container'
|
|
34
|
+
item: 'rounded-lg bg-md-sys-color-secondary-container text-md-sys-color-on-secondary-container'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
color: {
|
|
38
|
+
error: {
|
|
39
|
+
item: 'text-md-sys-color-error hover:bg-md-sys-color-error/8 data-[highlighted]:bg-md-sys-color-error/8',
|
|
40
|
+
icon: 'text-md-sys-color-error'
|
|
18
41
|
}
|
|
19
42
|
}
|
|
20
43
|
}
|
|
@@ -18,6 +18,8 @@ export type ContextMenuDataItem = {
|
|
|
18
18
|
separator?: boolean;
|
|
19
19
|
/** Whether the item is selected. */
|
|
20
20
|
selected?: boolean;
|
|
21
|
+
/** Tint the item (and its icon) with the error color, for destructive actions. */
|
|
22
|
+
color?: 'error';
|
|
21
23
|
/** Callback function when the item is selected. */
|
|
22
24
|
onselect?: (value: string) => void;
|
|
23
25
|
/** Optional sub-items for nested menus. */
|
|
@@ -31,8 +33,18 @@ export type ContextMenuProps = {
|
|
|
31
33
|
items: ContextMenuDataItem[];
|
|
32
34
|
/** The value of the currently selected item. */
|
|
33
35
|
selected?: string;
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
+
/**
|
|
37
|
+
* The element(s) that will trigger the context menu on right-click,
|
|
38
|
+
* rendered inside a plain wrapping `<div>`. Ignored when `trigger` is given.
|
|
39
|
+
*/
|
|
40
|
+
children?: Snippet;
|
|
41
|
+
/**
|
|
42
|
+
* Escape hatch for when the wrapping `<div>` from `children` isn't valid in
|
|
43
|
+
* context (e.g. a table row, which can't have a `<div>` as its parent's
|
|
44
|
+
* direct child). Receives the trigger props to spread onto your own
|
|
45
|
+
* element instead.
|
|
46
|
+
*/
|
|
47
|
+
trigger?: Snippet<[Record<string, unknown>]>;
|
|
36
48
|
/** Callback function when an item is selected. */
|
|
37
49
|
onselect?: (value: string) => void;
|
|
38
50
|
/**
|
|
@@ -2,22 +2,22 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
2
2
|
export type DialogueVariants = VariantProps<typeof dialogue>;
|
|
3
3
|
export declare const dialogue: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
|
-
[key: string]: import("tailwind-
|
|
6
|
-
base?: import("tailwind-
|
|
7
|
-
inner?: import("tailwind-
|
|
8
|
-
headlineContainer?: import("tailwind-
|
|
9
|
-
supportingTextContainer?: import("tailwind-
|
|
10
|
-
buttonContainer?: import("tailwind-
|
|
5
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
6
|
+
base?: import("tailwind-variants").ClassValue;
|
|
7
|
+
inner?: import("tailwind-variants").ClassValue;
|
|
8
|
+
headlineContainer?: import("tailwind-variants").ClassValue;
|
|
9
|
+
supportingTextContainer?: import("tailwind-variants").ClassValue;
|
|
10
|
+
buttonContainer?: import("tailwind-variants").ClassValue;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
} | {
|
|
14
14
|
[x: string]: {
|
|
15
|
-
[x: string]: import("tailwind-
|
|
16
|
-
base?: import("tailwind-
|
|
17
|
-
inner?: import("tailwind-
|
|
18
|
-
headlineContainer?: import("tailwind-
|
|
19
|
-
supportingTextContainer?: import("tailwind-
|
|
20
|
-
buttonContainer?: import("tailwind-
|
|
15
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
16
|
+
base?: import("tailwind-variants").ClassValue;
|
|
17
|
+
inner?: import("tailwind-variants").ClassValue;
|
|
18
|
+
headlineContainer?: import("tailwind-variants").ClassValue;
|
|
19
|
+
supportingTextContainer?: import("tailwind-variants").ClassValue;
|
|
20
|
+
buttonContainer?: import("tailwind-variants").ClassValue;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
} | {}, {
|
|
@@ -28,12 +28,12 @@ export declare const dialogue: import("tailwind-variants").TVReturnType<{
|
|
|
28
28
|
buttonContainer: string;
|
|
29
29
|
}, undefined, {
|
|
30
30
|
[key: string]: {
|
|
31
|
-
[key: string]: import("tailwind-
|
|
32
|
-
base?: import("tailwind-
|
|
33
|
-
inner?: import("tailwind-
|
|
34
|
-
headlineContainer?: import("tailwind-
|
|
35
|
-
supportingTextContainer?: import("tailwind-
|
|
36
|
-
buttonContainer?: import("tailwind-
|
|
31
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
32
|
+
base?: import("tailwind-variants").ClassValue;
|
|
33
|
+
inner?: import("tailwind-variants").ClassValue;
|
|
34
|
+
headlineContainer?: import("tailwind-variants").ClassValue;
|
|
35
|
+
supportingTextContainer?: import("tailwind-variants").ClassValue;
|
|
36
|
+
buttonContainer?: import("tailwind-variants").ClassValue;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
39
|
} | {}, {
|
|
@@ -42,10 +42,10 @@ export declare const dialogue: import("tailwind-variants").TVReturnType<{
|
|
|
42
42
|
headlineContainer: string;
|
|
43
43
|
supportingTextContainer: string;
|
|
44
44
|
buttonContainer: string;
|
|
45
|
-
}, import("tailwind-variants").
|
|
45
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
46
46
|
base: string;
|
|
47
47
|
inner: string;
|
|
48
48
|
headlineContainer: string;
|
|
49
49
|
supportingTextContainer: string;
|
|
50
50
|
buttonContainer: string;
|
|
51
|
-
}
|
|
51
|
+
}>>;
|
|
@@ -2,32 +2,32 @@ import { type VariantProps } from 'tailwind-variants';
|
|
|
2
2
|
export type HrVariants = VariantProps<typeof hr>;
|
|
3
3
|
export declare const hr: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
orientation: {
|
|
5
|
-
horizontal:
|
|
6
|
-
vertical:
|
|
5
|
+
horizontal: "h-[1px] mt-1 mb-2 w-full";
|
|
6
|
+
vertical: "w-[1px] self-stretch min-h-[1em]";
|
|
7
7
|
};
|
|
8
8
|
variant: {
|
|
9
|
-
inset:
|
|
10
|
-
full:
|
|
11
|
-
wavy:
|
|
9
|
+
inset: "mr-2 ml-4";
|
|
10
|
+
full: "";
|
|
11
|
+
wavy: "";
|
|
12
12
|
};
|
|
13
13
|
}, undefined, "bg-md-sys-color-outline-variant", {
|
|
14
14
|
orientation: {
|
|
15
|
-
horizontal:
|
|
16
|
-
vertical:
|
|
15
|
+
horizontal: "h-[1px] mt-1 mb-2 w-full";
|
|
16
|
+
vertical: "w-[1px] self-stretch min-h-[1em]";
|
|
17
17
|
};
|
|
18
18
|
variant: {
|
|
19
|
-
inset:
|
|
20
|
-
full:
|
|
21
|
-
wavy:
|
|
19
|
+
inset: "mr-2 ml-4";
|
|
20
|
+
full: "";
|
|
21
|
+
wavy: "";
|
|
22
22
|
};
|
|
23
|
-
}, undefined, import("tailwind-variants").
|
|
23
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
24
24
|
orientation: {
|
|
25
|
-
horizontal:
|
|
26
|
-
vertical:
|
|
25
|
+
horizontal: "h-[1px] mt-1 mb-2 w-full";
|
|
26
|
+
vertical: "w-[1px] self-stretch min-h-[1em]";
|
|
27
27
|
};
|
|
28
28
|
variant: {
|
|
29
|
-
inset:
|
|
30
|
-
full:
|
|
31
|
-
wavy:
|
|
29
|
+
inset: "mr-2 ml-4";
|
|
30
|
+
full: "";
|
|
31
|
+
wavy: "";
|
|
32
32
|
};
|
|
33
|
-
}, undefined
|
|
33
|
+
}, undefined>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './action-rail/index.js';
|
|
1
2
|
export * from './app/index.js';
|
|
2
3
|
export * from './bottom-sheet/index.js';
|
|
3
4
|
export * from './context-menu/index.js';
|
|
@@ -5,10 +6,8 @@ export * from './dialogue/index.js';
|
|
|
5
6
|
export * from './divider/index.js';
|
|
6
7
|
export * from './link-preview/index.js';
|
|
7
8
|
export * from './list/index.js';
|
|
8
|
-
export * from './menu-item/index.js';
|
|
9
9
|
export * from './menu/index.js';
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './panes/index.js';
|
|
10
|
+
export * from './pane/index.js';
|
|
12
11
|
export * from './popover/index.js';
|
|
13
12
|
export * from './scroll-area/index.js';
|
|
14
13
|
export * from './side-sheet/index.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// THIS FILE IS AUTO-GENERATED BY scripts/generate-components-index.ts - DO NOT EDIT MANUALLY
|
|
2
2
|
// folder re-exports (export everything from these folders)
|
|
3
|
+
export * from './action-rail/index.js';
|
|
3
4
|
export * from './app/index.js';
|
|
4
5
|
export * from './bottom-sheet/index.js';
|
|
5
6
|
export * from './context-menu/index.js';
|
|
@@ -7,10 +8,8 @@ export * from './dialogue/index.js';
|
|
|
7
8
|
export * from './divider/index.js';
|
|
8
9
|
export * from './link-preview/index.js';
|
|
9
10
|
export * from './list/index.js';
|
|
10
|
-
export * from './menu-item/index.js';
|
|
11
11
|
export * from './menu/index.js';
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './panes/index.js';
|
|
12
|
+
export * from './pane/index.js';
|
|
14
13
|
export * from './popover/index.js';
|
|
15
14
|
export * from './scroll-area/index.js';
|
|
16
15
|
export * from './side-sheet/index.js';
|