iryx-ui 0.11.0 → 0.13.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 +35 -1235
- package/dist/component-names.d.ts +1 -1
- package/dist/component-names.js +1 -1
- package/dist/components/Accordion.js +5 -0
- package/dist/components/Accordion.vue.d.ts +80 -0
- package/dist/components/Accordion.vue_vue_type_script_setup_true_lang.js +87 -0
- package/dist/components/Alert.vue.d.ts +1 -1
- package/dist/components/Alert.vue_vue_type_script_setup_true_lang.js +43 -43
- package/dist/components/App.vue.d.ts +1 -1
- package/dist/components/AppShell.js +5 -0
- package/dist/components/AppShell.vue.d.ts +46 -0
- package/dist/components/AppShell.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/AspectRatio.js +5 -0
- package/dist/components/AspectRatio.vue.d.ts +26 -0
- package/dist/components/AspectRatio.vue_vue_type_script_setup_true_lang.js +27 -0
- package/dist/components/Avatar.js +5 -0
- package/dist/components/Avatar.vue.d.ts +52 -0
- package/dist/components/Avatar.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/AvatarGroup.js +5 -0
- package/dist/components/AvatarGroup.vue.d.ts +39 -0
- package/dist/components/AvatarGroup.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/Badge.vue.d.ts +1 -1
- package/dist/components/Banner.vue.d.ts +2 -2
- package/dist/components/Banner.vue_vue_type_script_setup_true_lang.js +40 -40
- package/dist/components/BarChart.vue.d.ts +1 -1
- package/dist/components/BarChart.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/Breadcrumb.vue_vue_type_script_setup_true_lang.js +28 -28
- package/dist/components/Button.vue.d.ts +2 -2
- package/dist/components/Button.vue_vue_type_script_setup_true_lang.js +14 -14
- package/dist/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/Card.vue.d.ts +1 -1
- package/dist/components/Checkbox.vue_vue_type_script_setup_true_lang.js +37 -30
- package/dist/components/Collapsible.js +5 -0
- package/dist/components/Collapsible.vue.d.ts +58 -0
- package/dist/components/Collapsible.vue_vue_type_script_setup_true_lang.js +67 -0
- package/dist/components/ColorPicker.js +5 -0
- package/dist/components/ColorPicker.vue.d.ts +49 -0
- package/dist/components/ColorPicker.vue_vue_type_script_setup_true_lang.js +172 -0
- package/dist/components/Combobox.vue.d.ts +6 -6
- package/dist/components/Combobox.vue_vue_type_script_setup_true_lang.js +62 -60
- package/dist/components/CommandPalette.js +5 -0
- package/dist/components/CommandPalette.vue.d.ts +63 -0
- package/dist/components/CommandPalette.vue_vue_type_script_setup_true_lang.js +185 -0
- package/dist/components/Container.js +5 -0
- package/dist/components/Container.vue.d.ts +33 -0
- package/dist/components/Container.vue_vue_type_script_setup_true_lang.js +40 -0
- package/dist/components/ContextMenu.js +5 -0
- package/dist/components/ContextMenu.vue.d.ts +42 -0
- package/dist/components/ContextMenu.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/components/DatePicker.vue_vue_type_script_setup_true_lang.js +65 -65
- package/dist/components/DateRangePicker.vue.d.ts +1 -1
- package/dist/components/DateRangePicker.vue_vue_type_script_setup_true_lang.js +74 -74
- package/dist/components/Dialog.vue.d.ts +1 -1
- package/dist/components/Dialog.vue_vue_type_script_setup_true_lang.js +34 -34
- package/dist/components/Drawer.js +5 -0
- package/dist/components/Drawer.vue.d.ts +94 -0
- package/dist/components/Drawer.vue_vue_type_script_setup_true_lang.js +144 -0
- package/dist/components/DropdownMenuItems.vue_vue_type_script_setup_true_lang.js +42 -42
- package/dist/components/EmptyState.vue.d.ts +1 -1
- package/dist/components/FileUpload.vue_vue_type_script_setup_true_lang.js +77 -77
- package/dist/components/Icon.vue_vue_type_script_setup_true_lang.js +11 -11
- package/dist/components/Input.vue.d.ts +1 -1
- package/dist/components/Input.vue_vue_type_script_setup_true_lang.js +33 -33
- package/dist/components/Kbd.js +5 -0
- package/dist/components/Kbd.vue.d.ts +46 -0
- package/dist/components/Kbd.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/components/LineChart.vue_vue_type_script_setup_true_lang.js +19 -19
- package/dist/components/Menubar.js +5 -0
- package/dist/components/Menubar.vue.d.ts +62 -0
- package/dist/components/Menubar.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/components/NavigationMenu.js +5 -0
- package/dist/components/NavigationMenu.vue.d.ts +75 -0
- package/dist/components/NavigationMenu.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/NumberInput.vue_vue_type_script_setup_true_lang.js +68 -66
- package/dist/components/PageHeader.js +5 -0
- package/dist/components/PageHeader.vue.d.ts +52 -0
- package/dist/components/PageHeader.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/Pagination.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/components/PasswordInput.vue_vue_type_script_setup_true_lang.js +37 -37
- package/dist/components/PinInput.js +5 -0
- package/dist/components/PinInput.vue.d.ts +65 -0
- package/dist/components/PinInput.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/Popover.js +5 -0
- package/dist/components/Popover.vue.d.ts +75 -0
- package/dist/components/Popover.vue_vue_type_script_setup_true_lang.js +99 -0
- package/dist/components/Progress.vue.d.ts +20 -1
- package/dist/components/Progress.vue_vue_type_script_setup_true_lang.js +85 -42
- package/dist/components/RadioGroup.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/ScrollArea.js +5 -0
- package/dist/components/ScrollArea.vue.d.ts +41 -0
- package/dist/components/ScrollArea.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/components/ScrollFade.js +5 -0
- package/dist/components/ScrollFade.vue.d.ts +36 -0
- package/dist/components/ScrollFade.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/components/Select.vue.d.ts +2 -2
- package/dist/components/Select.vue_vue_type_script_setup_true_lang.js +47 -45
- package/dist/components/Sidebar.js +5 -0
- package/dist/components/Sidebar.vue.d.ts +72 -0
- package/dist/components/Sidebar.vue_vue_type_script_setup_true_lang.js +183 -0
- package/dist/components/SignaturePad.js +5 -0
- package/dist/components/SignaturePad.vue.d.ts +60 -0
- package/dist/components/SignaturePad.vue_vue_type_script_setup_true_lang.js +158 -0
- package/dist/components/Skeleton.vue.d.ts +1 -1
- package/dist/components/Skeleton.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/Slider.js +5 -0
- package/dist/components/Slider.vue.d.ts +80 -0
- package/dist/components/Slider.vue_vue_type_script_setup_true_lang.js +115 -0
- package/dist/components/Splitter.js +5 -0
- package/dist/components/Splitter.vue.d.ts +59 -0
- package/dist/components/Splitter.vue_vue_type_script_setup_true_lang.js +69 -0
- package/dist/components/Stat.vue.d.ts +1 -1
- package/dist/components/Stat.vue_vue_type_script_setup_true_lang.js +27 -27
- package/dist/components/Stepper.vue_vue_type_script_setup_true_lang.js +38 -38
- package/dist/components/Switch.vue.d.ts +1 -0
- package/dist/components/Switch.vue_vue_type_script_setup_true_lang.js +16 -5
- package/dist/components/Table.vue.d.ts +7 -1
- package/dist/components/Table.vue_vue_type_script_setup_true_lang.js +120 -105
- package/dist/components/TagsInput.js +5 -0
- package/dist/components/TagsInput.vue.d.ts +71 -0
- package/dist/components/TagsInput.vue_vue_type_script_setup_true_lang.js +119 -0
- package/dist/components/Textarea.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/TimeField.js +5 -0
- package/dist/components/TimeField.vue.d.ts +50 -0
- package/dist/components/TimeField.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/components/Timeline.js +5 -0
- package/dist/components/Timeline.vue.d.ts +61 -0
- package/dist/components/Timeline.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/Toaster.vue.d.ts +1 -1
- package/dist/components/Toaster.vue_vue_type_script_setup_true_lang.js +41 -41
- package/dist/components/Toggle.js +5 -0
- package/dist/components/Toggle.vue.d.ts +42 -0
- package/dist/components/Toggle.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/components/ToggleGroup.js +5 -0
- package/dist/components/ToggleGroup.vue.d.ts +64 -0
- package/dist/components/ToggleGroup.vue_vue_type_script_setup_true_lang.js +78 -0
- package/dist/components/Toolbar.js +5 -0
- package/dist/components/Toolbar.vue.d.ts +52 -0
- package/dist/components/Toolbar.vue_vue_type_script_setup_true_lang.js +94 -0
- package/dist/components/Tree.js +5 -0
- package/dist/components/Tree.vue.d.ts +70 -0
- package/dist/components/Tree.vue_vue_type_script_setup_true_lang.js +112 -0
- package/dist/components/index.d.ts +30 -0
- package/dist/components/index.js +144 -84
- package/dist/composables/appearance.js +5 -1
- package/dist/composables/cartesian.d.ts +11 -0
- package/dist/composables/cartesian.js +18 -19
- package/dist/composables/command-palette.d.ts +42 -0
- package/dist/composables/command-palette.js +32 -0
- package/dist/composables/date.d.ts +18 -2
- package/dist/composables/date.js +23 -15
- package/dist/composables/kbd.d.ts +26 -0
- package/dist/composables/kbd.js +161 -0
- package/dist/composables/navigation-menu.d.ts +29 -0
- package/dist/composables/navigation-menu.js +6 -0
- package/dist/composables/scroll-fade.d.ts +35 -0
- package/dist/composables/scroll-fade.js +36 -0
- package/dist/composables/sidebar.d.ts +35 -0
- package/dist/composables/sidebar.js +23 -0
- package/dist/composables/signature.d.ts +22 -0
- package/dist/composables/signature.js +13 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +153 -92
- package/dist/theme/accordion.d.ts +68 -0
- package/dist/theme/accordion.js +24 -0
- package/dist/theme/alert.d.ts +0 -3
- package/dist/theme/app-shell.d.ts +77 -0
- package/dist/theme/app-shell.js +35 -0
- package/dist/theme/avatar.d.ts +253 -0
- package/dist/theme/avatar.js +84 -0
- package/dist/theme/banner.d.ts +0 -9
- package/dist/theme/bar-chart.d.ts +0 -16
- package/dist/theme/breadcrumb.d.ts +3 -3
- package/dist/theme/button-group.d.ts +0 -3
- package/dist/theme/button.d.ts +0 -3
- package/dist/theme/card.js +2 -2
- package/dist/theme/chart-legend.d.ts +3 -11
- package/dist/theme/collapsible.d.ts +44 -0
- package/dist/theme/collapsible.js +17 -0
- package/dist/theme/color-picker.d.ts +98 -0
- package/dist/theme/color-picker.js +19 -0
- package/dist/theme/command-palette.d.ts +122 -0
- package/dist/theme/command-palette.js +22 -0
- package/dist/theme/container.d.ts +101 -0
- package/dist/theme/container.js +26 -0
- package/dist/theme/date-picker.d.ts +12 -0
- package/dist/theme/date-picker.js +1 -1
- package/dist/theme/drawer.d.ts +110 -0
- package/dist/theme/drawer.js +100 -0
- package/dist/theme/dropdown-menu.d.ts +0 -9
- package/dist/theme/file-upload.d.ts +0 -3
- package/dist/theme/form.d.ts +12 -12
- package/dist/theme/index.d.ts +26 -0
- package/dist/theme/kbd.d.ts +71 -0
- package/dist/theme/kbd.js +29 -0
- package/dist/theme/line-chart.d.ts +0 -9
- package/dist/theme/menubar.d.ts +29 -0
- package/dist/theme/menubar.js +11 -0
- package/dist/theme/navigation-menu.d.ts +161 -0
- package/dist/theme/navigation-menu.js +43 -0
- package/dist/theme/number-input.d.ts +0 -3
- package/dist/theme/page-header.d.ts +47 -0
- package/dist/theme/page-header.js +17 -0
- package/dist/theme/pagination.d.ts +0 -3
- package/dist/theme/pin-input.d.ts +86 -0
- package/dist/theme/pin-input.js +32 -0
- package/dist/theme/popover.d.ts +119 -0
- package/dist/theme/popover.js +31 -0
- package/dist/theme/presets.d.ts +0 -2
- package/dist/theme/progress.d.ts +93 -0
- package/dist/theme/progress.js +37 -7
- package/dist/theme/radio-group.d.ts +24 -0
- package/dist/theme/radio-group.js +23 -14
- package/dist/theme/scroll-area.d.ts +65 -0
- package/dist/theme/scroll-area.js +57 -0
- package/dist/theme/scroll-fade.d.ts +35 -0
- package/dist/theme/scroll-fade.js +12 -0
- package/dist/theme/sidebar.d.ts +167 -0
- package/dist/theme/sidebar.js +43 -0
- package/dist/theme/signature-pad.d.ts +50 -0
- package/dist/theme/signature-pad.js +17 -0
- package/dist/theme/slider.d.ts +128 -0
- package/dist/theme/slider.js +49 -0
- package/dist/theme/sparkline.d.ts +0 -6
- package/dist/theme/splitter.d.ts +59 -0
- package/dist/theme/splitter.js +25 -0
- package/dist/theme/stat.d.ts +0 -3
- package/dist/theme/stepper.js +2 -2
- package/dist/theme/switch.d.ts +53 -29
- package/dist/theme/switch.js +33 -8
- package/dist/theme/table.d.ts +51 -3
- package/dist/theme/table.js +8 -3
- package/dist/theme/tabs.d.ts +0 -3
- package/dist/theme/tags-input.d.ts +110 -0
- package/dist/theme/tags-input.js +42 -0
- package/dist/theme/time-field.d.ts +68 -0
- package/dist/theme/time-field.js +21 -0
- package/dist/theme/timeline.d.ts +182 -0
- package/dist/theme/timeline.js +83 -0
- package/dist/theme/toggle.d.ts +145 -0
- package/dist/theme/toggle.js +84 -0
- package/dist/theme/toolbar.d.ts +56 -0
- package/dist/theme/toolbar.js +21 -0
- package/dist/theme/tree.d.ts +68 -0
- package/dist/theme/tree.js +28 -0
- package/package.json +4 -3
- package/theme.css +335 -0
- package/dist/node_modules/.pnpm/@hugeicons_core-free-icons@4.2.3/node_modules/@hugeicons/core-free-icons/dist/esm/index.js +0 -377
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/_virtual/_plugin-vue_export-helper.js +0 -8
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue.js +0 -25
- package/dist/node_modules/.pnpm/@hugeicons_vue@1.0.7_vue@3.5.35_typescript@6.0.3_/node_modules/@hugeicons/vue/dist/esm/components/HugeiconsIcon.vue2.js +0 -63
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/conversion.js +0 -107
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/queries.js +0 -29
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/string.js +0 -37
- package/dist/node_modules/.pnpm/@internationalized_date@3.12.3/node_modules/@internationalized/date/dist/private/utils.js +0 -6
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/sidebar.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex h-full flex-col gap-2 border-border bg-background text-foreground transition-[width] duration-200 ease-out",
|
|
6
|
+
header: "flex shrink-0 items-center gap-2 px-3 py-3",
|
|
7
|
+
nav: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto px-2 py-1",
|
|
8
|
+
footer: "flex shrink-0 items-center gap-2 border-t border-border px-3 py-3",
|
|
9
|
+
section: "flex flex-col gap-1",
|
|
10
|
+
sectionLabel: "px-2 pt-1 pb-0.5 text-xs font-medium tracking-wide text-muted-foreground uppercase",
|
|
11
|
+
link: "group/link relative flex w-full cursor-pointer items-center gap-3 rounded-lg px-2 py-2 text-sm font-medium text-muted-foreground no-underline transition-colors outline-none select-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 data-[active]:bg-accent data-[active]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0",
|
|
12
|
+
linkLabel: "flex-1 truncate text-left",
|
|
13
|
+
linkBadge: "ml-auto shrink-0",
|
|
14
|
+
groupIcon: "ml-auto size-4 shrink-0 transition-[rotate] duration-200 ease-out group-data-[state=open]/link:rotate-90",
|
|
15
|
+
groupContent: "group/collapsible overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down",
|
|
16
|
+
groupInner: "iryx-sidebar-submenu mt-1 flex flex-col gap-1 border-l border-border group-data-[state=closed]/collapsible:animate-collapsible-content-out group-data-[state=open]/collapsible:animate-collapsible-content-in"
|
|
17
|
+
},
|
|
18
|
+
variants: {
|
|
19
|
+
side: {
|
|
20
|
+
left: { root: "border-r" },
|
|
21
|
+
right: { root: "border-l" }
|
|
22
|
+
},
|
|
23
|
+
collapsed: {
|
|
24
|
+
true: {
|
|
25
|
+
root: "w-16",
|
|
26
|
+
header: "justify-center px-0",
|
|
27
|
+
footer: "justify-center px-0",
|
|
28
|
+
link: "justify-center px-0",
|
|
29
|
+
linkLabel: "hidden",
|
|
30
|
+
linkBadge: "hidden",
|
|
31
|
+
sectionLabel: "hidden",
|
|
32
|
+
groupIcon: "hidden"
|
|
33
|
+
},
|
|
34
|
+
false: { root: "w-64" }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
side: "left",
|
|
39
|
+
collapsed: !1
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { t as sidebarTheme };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const signaturePadTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
invalid: {
|
|
3
|
+
true: {
|
|
4
|
+
root: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
disabled: {
|
|
8
|
+
true: {
|
|
9
|
+
root: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
root: string;
|
|
14
|
+
canvas: string;
|
|
15
|
+
actions: string;
|
|
16
|
+
action: string;
|
|
17
|
+
}, undefined, {
|
|
18
|
+
invalid: {
|
|
19
|
+
true: {
|
|
20
|
+
root: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
true: {
|
|
25
|
+
root: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}, {
|
|
29
|
+
root: string;
|
|
30
|
+
canvas: string;
|
|
31
|
+
actions: string;
|
|
32
|
+
action: string;
|
|
33
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
34
|
+
invalid: {
|
|
35
|
+
true: {
|
|
36
|
+
root: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
disabled: {
|
|
40
|
+
true: {
|
|
41
|
+
root: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
root: string;
|
|
46
|
+
canvas: string;
|
|
47
|
+
actions: string;
|
|
48
|
+
action: string;
|
|
49
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
50
|
+
export type SignaturePadSlots = keyof ReturnType<typeof signaturePadTheme>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { fieldBase as e } from "./input.js";
|
|
2
|
+
import { tv as t } from "tailwind-variants";
|
|
3
|
+
//#region src/theme/signature-pad.ts
|
|
4
|
+
var n = t({
|
|
5
|
+
slots: {
|
|
6
|
+
root: `relative flex flex-col ${e} h-auto overflow-hidden p-0 focus-within:ring-2 focus-within:ring-primary/50`,
|
|
7
|
+
canvas: "block w-full touch-none",
|
|
8
|
+
actions: "absolute top-2 right-2 flex items-center gap-1",
|
|
9
|
+
action: "inline-flex size-7 items-center justify-center rounded-lg text-muted-foreground transition-colors outline-none hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-40 [&_svg]:size-3.5"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
invalid: { true: { root: "border-red-500 focus-within:ring-red-500/40" } },
|
|
13
|
+
disabled: { true: { root: "cursor-not-allowed opacity-50" } }
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { n as signaturePadTheme };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export declare const sliderTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
root: string;
|
|
5
|
+
header: string;
|
|
6
|
+
};
|
|
7
|
+
vertical: {
|
|
8
|
+
root: string;
|
|
9
|
+
header: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
size: {
|
|
13
|
+
sm: {
|
|
14
|
+
track: string;
|
|
15
|
+
thumb: string;
|
|
16
|
+
};
|
|
17
|
+
md: {
|
|
18
|
+
track: string;
|
|
19
|
+
thumb: string;
|
|
20
|
+
};
|
|
21
|
+
lg: {
|
|
22
|
+
track: string;
|
|
23
|
+
thumb: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/** Without a grab hand the track reads as a progress bar, not a control. */
|
|
27
|
+
disabled: {
|
|
28
|
+
false: {
|
|
29
|
+
thumb: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
root: string;
|
|
34
|
+
/** Only rendered when a label or value text is shown. */
|
|
35
|
+
header: string;
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
slider: string;
|
|
39
|
+
track: string;
|
|
40
|
+
range: string;
|
|
41
|
+
thumb: string;
|
|
42
|
+
scale: string;
|
|
43
|
+
}, undefined, {
|
|
44
|
+
orientation: {
|
|
45
|
+
horizontal: {
|
|
46
|
+
root: string;
|
|
47
|
+
header: string;
|
|
48
|
+
};
|
|
49
|
+
vertical: {
|
|
50
|
+
root: string;
|
|
51
|
+
header: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
size: {
|
|
55
|
+
sm: {
|
|
56
|
+
track: string;
|
|
57
|
+
thumb: string;
|
|
58
|
+
};
|
|
59
|
+
md: {
|
|
60
|
+
track: string;
|
|
61
|
+
thumb: string;
|
|
62
|
+
};
|
|
63
|
+
lg: {
|
|
64
|
+
track: string;
|
|
65
|
+
thumb: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/** Without a grab hand the track reads as a progress bar, not a control. */
|
|
69
|
+
disabled: {
|
|
70
|
+
false: {
|
|
71
|
+
thumb: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
}, {
|
|
75
|
+
root: string;
|
|
76
|
+
/** Only rendered when a label or value text is shown. */
|
|
77
|
+
header: string;
|
|
78
|
+
label: string;
|
|
79
|
+
value: string;
|
|
80
|
+
slider: string;
|
|
81
|
+
track: string;
|
|
82
|
+
range: string;
|
|
83
|
+
thumb: string;
|
|
84
|
+
scale: string;
|
|
85
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
86
|
+
orientation: {
|
|
87
|
+
horizontal: {
|
|
88
|
+
root: string;
|
|
89
|
+
header: string;
|
|
90
|
+
};
|
|
91
|
+
vertical: {
|
|
92
|
+
root: string;
|
|
93
|
+
header: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
size: {
|
|
97
|
+
sm: {
|
|
98
|
+
track: string;
|
|
99
|
+
thumb: string;
|
|
100
|
+
};
|
|
101
|
+
md: {
|
|
102
|
+
track: string;
|
|
103
|
+
thumb: string;
|
|
104
|
+
};
|
|
105
|
+
lg: {
|
|
106
|
+
track: string;
|
|
107
|
+
thumb: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/** Without a grab hand the track reads as a progress bar, not a control. */
|
|
111
|
+
disabled: {
|
|
112
|
+
false: {
|
|
113
|
+
thumb: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
root: string;
|
|
118
|
+
/** Only rendered when a label or value text is shown. */
|
|
119
|
+
header: string;
|
|
120
|
+
label: string;
|
|
121
|
+
value: string;
|
|
122
|
+
slider: string;
|
|
123
|
+
track: string;
|
|
124
|
+
range: string;
|
|
125
|
+
thumb: string;
|
|
126
|
+
scale: string;
|
|
127
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
128
|
+
export type SliderSlots = keyof ReturnType<typeof sliderTheme>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/slider.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex flex-col gap-2",
|
|
6
|
+
header: "flex text-sm",
|
|
7
|
+
label: "font-medium text-foreground select-none",
|
|
8
|
+
value: "text-muted-foreground tabular-nums",
|
|
9
|
+
slider: "relative flex touch-none items-center select-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-44 data-[orientation=vertical]:flex-col",
|
|
10
|
+
track: "relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full",
|
|
11
|
+
range: "absolute rounded-full bg-linear-to-b from-primary-from to-primary-to data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full",
|
|
12
|
+
thumb: "block shrink-0 rounded-full border-2 border-primary bg-background shadow-sm transition-shadow outline-none focus-visible:ring-2 focus-visible:ring-primary/50 data-[disabled]:cursor-not-allowed",
|
|
13
|
+
scale: "flex justify-between text-xs text-muted-foreground tabular-nums"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
horizontal: {
|
|
18
|
+
root: "w-full",
|
|
19
|
+
header: "items-baseline justify-between gap-2"
|
|
20
|
+
},
|
|
21
|
+
vertical: {
|
|
22
|
+
root: "inline-flex w-auto items-center",
|
|
23
|
+
header: "flex-col items-center gap-0.5"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
sm: {
|
|
28
|
+
track: "data-[orientation=horizontal]:h-1 data-[orientation=vertical]:w-1",
|
|
29
|
+
thumb: "size-3.5"
|
|
30
|
+
},
|
|
31
|
+
md: {
|
|
32
|
+
track: "data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5",
|
|
33
|
+
thumb: "size-4"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
track: "data-[orientation=horizontal]:h-2 data-[orientation=vertical]:w-2",
|
|
37
|
+
thumb: "size-5"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
disabled: { false: { thumb: "cursor-grab active:cursor-grabbing" } }
|
|
41
|
+
},
|
|
42
|
+
defaultVariants: {
|
|
43
|
+
orientation: "horizontal",
|
|
44
|
+
size: "md",
|
|
45
|
+
disabled: !1
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { t as sliderTheme };
|
|
@@ -13,9 +13,7 @@ export declare const sparklineTheme: import("tailwind-variants").TVReturnType<{
|
|
|
13
13
|
/** Carries the inset that keeps every mark inside the component's box. */
|
|
14
14
|
root: string;
|
|
15
15
|
plot: string;
|
|
16
|
-
/** 2px, round join and cap, per the shared line-mark spec. */
|
|
17
16
|
line: string;
|
|
18
|
-
/** A wash at ~10%, never a saturated block competing with the line. */
|
|
19
17
|
area: string;
|
|
20
18
|
dot: string;
|
|
21
19
|
/** Keeps the end dot legible where it sits on top of the line. */
|
|
@@ -30,9 +28,7 @@ export declare const sparklineTheme: import("tailwind-variants").TVReturnType<{
|
|
|
30
28
|
/** Carries the inset that keeps every mark inside the component's box. */
|
|
31
29
|
root: string;
|
|
32
30
|
plot: string;
|
|
33
|
-
/** 2px, round join and cap, per the shared line-mark spec. */
|
|
34
31
|
line: string;
|
|
35
|
-
/** A wash at ~10%, never a saturated block competing with the line. */
|
|
36
32
|
area: string;
|
|
37
33
|
dot: string;
|
|
38
34
|
/** Keeps the end dot legible where it sits on top of the line. */
|
|
@@ -47,9 +43,7 @@ export declare const sparklineTheme: import("tailwind-variants").TVReturnType<{
|
|
|
47
43
|
/** Carries the inset that keeps every mark inside the component's box. */
|
|
48
44
|
root: string;
|
|
49
45
|
plot: string;
|
|
50
|
-
/** 2px, round join and cap, per the shared line-mark spec. */
|
|
51
46
|
line: string;
|
|
52
|
-
/** A wash at ~10%, never a saturated block competing with the line. */
|
|
53
47
|
area: string;
|
|
54
48
|
dot: string;
|
|
55
49
|
/** Keeps the end dot legible where it sits on top of the line. */
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare const splitterTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
direction: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
root: string;
|
|
5
|
+
handle: string;
|
|
6
|
+
rule: string;
|
|
7
|
+
};
|
|
8
|
+
vertical: {
|
|
9
|
+
root: string;
|
|
10
|
+
handle: string;
|
|
11
|
+
rule: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
root: string;
|
|
16
|
+
panel: string;
|
|
17
|
+
handle: string;
|
|
18
|
+
/** The visible rule inside the handle's hit area. */
|
|
19
|
+
rule: string;
|
|
20
|
+
}, undefined, {
|
|
21
|
+
direction: {
|
|
22
|
+
horizontal: {
|
|
23
|
+
root: string;
|
|
24
|
+
handle: string;
|
|
25
|
+
rule: string;
|
|
26
|
+
};
|
|
27
|
+
vertical: {
|
|
28
|
+
root: string;
|
|
29
|
+
handle: string;
|
|
30
|
+
rule: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
root: string;
|
|
35
|
+
panel: string;
|
|
36
|
+
handle: string;
|
|
37
|
+
/** The visible rule inside the handle's hit area. */
|
|
38
|
+
rule: string;
|
|
39
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
40
|
+
direction: {
|
|
41
|
+
horizontal: {
|
|
42
|
+
root: string;
|
|
43
|
+
handle: string;
|
|
44
|
+
rule: string;
|
|
45
|
+
};
|
|
46
|
+
vertical: {
|
|
47
|
+
root: string;
|
|
48
|
+
handle: string;
|
|
49
|
+
rule: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
root: string;
|
|
54
|
+
panel: string;
|
|
55
|
+
handle: string;
|
|
56
|
+
/** The visible rule inside the handle's hit area. */
|
|
57
|
+
rule: string;
|
|
58
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
59
|
+
export type SplitterSlots = keyof ReturnType<typeof splitterTheme>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { tv as e } from "tailwind-variants";
|
|
2
|
+
//#region src/theme/splitter.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "flex size-full",
|
|
6
|
+
panel: "overflow-hidden",
|
|
7
|
+
handle: "group relative flex shrink-0 items-center justify-center outline-none",
|
|
8
|
+
rule: "bg-border transition-colors group-hover:bg-primary group-focus-visible:bg-primary group-data-[state=drag]:bg-primary"
|
|
9
|
+
},
|
|
10
|
+
variants: { direction: {
|
|
11
|
+
horizontal: {
|
|
12
|
+
root: "flex-row",
|
|
13
|
+
handle: "cursor-col-resize px-1",
|
|
14
|
+
rule: "h-full w-px"
|
|
15
|
+
},
|
|
16
|
+
vertical: {
|
|
17
|
+
root: "flex-col",
|
|
18
|
+
handle: "cursor-row-resize py-1",
|
|
19
|
+
rule: "h-px w-full"
|
|
20
|
+
}
|
|
21
|
+
} },
|
|
22
|
+
defaultVariants: { direction: "horizontal" }
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { t as splitterTheme };
|
package/dist/theme/stat.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
29
29
|
root: string;
|
|
30
|
-
/** Small, uppercase and tracked out, so the value carries the weight. */
|
|
31
30
|
label: string;
|
|
32
31
|
value: string;
|
|
33
32
|
delta: string;
|
|
@@ -62,7 +61,6 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
62
61
|
};
|
|
63
62
|
}, {
|
|
64
63
|
root: string;
|
|
65
|
-
/** Small, uppercase and tracked out, so the value carries the weight. */
|
|
66
64
|
label: string;
|
|
67
65
|
value: string;
|
|
68
66
|
delta: string;
|
|
@@ -97,7 +95,6 @@ export declare const statTheme: import("tailwind-variants").TVReturnType<{
|
|
|
97
95
|
};
|
|
98
96
|
}, {
|
|
99
97
|
root: string;
|
|
100
|
-
/** Small, uppercase and tracked out, so the value carries the weight. */
|
|
101
98
|
label: string;
|
|
102
99
|
value: string;
|
|
103
100
|
delta: string;
|
package/dist/theme/stepper.js
CHANGED
|
@@ -3,7 +3,7 @@ import { tv as e } from "tailwind-variants";
|
|
|
3
3
|
var t = e({
|
|
4
4
|
slots: {
|
|
5
5
|
root: "flex w-full",
|
|
6
|
-
item: "group relative flex flex-1 items-center gap-3",
|
|
6
|
+
item: "group relative flex flex-1 items-center gap-3 last:flex-none",
|
|
7
7
|
trigger: "flex items-center gap-3 rounded-xl text-left outline-none focus-visible:ring-2 focus-visible:ring-primary/50 disabled:pointer-events-none disabled:opacity-50",
|
|
8
8
|
indicator: "flex size-8 shrink-0 items-center justify-center rounded-full border border-border bg-linear-to-b text-sm font-medium transition-[color,border-color] group-data-[state=active]:border-primary group-data-[state=active]:from-primary-from group-data-[state=active]:to-primary-to group-data-[state=active]:text-primary-foreground group-data-[state=completed]:border-primary group-data-[state=completed]:from-primary-from group-data-[state=completed]:to-primary-to group-data-[state=completed]:text-primary-foreground [&_svg]:size-4",
|
|
9
9
|
content: "flex flex-col gap-0.5",
|
|
@@ -15,7 +15,7 @@ var t = e({
|
|
|
15
15
|
horizontal: {},
|
|
16
16
|
vertical: {
|
|
17
17
|
root: "flex-col gap-2",
|
|
18
|
-
item: "flex-none items-
|
|
18
|
+
item: "flex-none flex-col items-stretch gap-2",
|
|
19
19
|
separator: "ml-4 h-6 w-px flex-none"
|
|
20
20
|
}
|
|
21
21
|
} },
|
package/dist/theme/switch.d.ts
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
export declare const switchTheme: import("tailwind-variants").TVReturnType<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
root
|
|
5
|
-
|
|
6
|
-
description?: import("tailwind-variants").ClassValue;
|
|
7
|
-
label?: import("tailwind-variants").ClassValue;
|
|
8
|
-
wrapper?: import("tailwind-variants").ClassValue;
|
|
9
|
-
thumb?: import("tailwind-variants").ClassValue;
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
root: string;
|
|
5
|
+
thumb: string;
|
|
10
6
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
label?: import("tailwind-variants").ClassValue;
|
|
19
|
-
wrapper?: import("tailwind-variants").ClassValue;
|
|
20
|
-
thumb?: import("tailwind-variants").ClassValue;
|
|
7
|
+
md: {
|
|
8
|
+
root: string;
|
|
9
|
+
thumb: string;
|
|
10
|
+
};
|
|
11
|
+
lg: {
|
|
12
|
+
root: string;
|
|
13
|
+
thumb: string;
|
|
21
14
|
};
|
|
22
15
|
};
|
|
23
|
-
|
|
16
|
+
/** Nudges the track down so it centres against the label's first line. */
|
|
17
|
+
withText: {
|
|
18
|
+
true: {};
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
24
21
|
/** Only rendered when a `label` or `description` is provided. */
|
|
25
22
|
wrapper: string;
|
|
26
23
|
root: string;
|
|
@@ -29,17 +26,25 @@ export declare const switchTheme: import("tailwind-variants").TVReturnType<{
|
|
|
29
26
|
label: string;
|
|
30
27
|
description: string;
|
|
31
28
|
}, undefined, {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
root
|
|
35
|
-
|
|
36
|
-
description?: import("tailwind-variants").ClassValue;
|
|
37
|
-
label?: import("tailwind-variants").ClassValue;
|
|
38
|
-
wrapper?: import("tailwind-variants").ClassValue;
|
|
39
|
-
thumb?: import("tailwind-variants").ClassValue;
|
|
29
|
+
size: {
|
|
30
|
+
sm: {
|
|
31
|
+
root: string;
|
|
32
|
+
thumb: string;
|
|
40
33
|
};
|
|
34
|
+
md: {
|
|
35
|
+
root: string;
|
|
36
|
+
thumb: string;
|
|
37
|
+
};
|
|
38
|
+
lg: {
|
|
39
|
+
root: string;
|
|
40
|
+
thumb: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
/** Nudges the track down so it centres against the label's first line. */
|
|
44
|
+
withText: {
|
|
45
|
+
true: {};
|
|
41
46
|
};
|
|
42
|
-
}
|
|
47
|
+
}, {
|
|
43
48
|
/** Only rendered when a `label` or `description` is provided. */
|
|
44
49
|
wrapper: string;
|
|
45
50
|
root: string;
|
|
@@ -47,7 +52,26 @@ export declare const switchTheme: import("tailwind-variants").TVReturnType<{
|
|
|
47
52
|
content: string;
|
|
48
53
|
label: string;
|
|
49
54
|
description: string;
|
|
50
|
-
}, import("tailwind-variants").TVReturnType<
|
|
55
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
56
|
+
size: {
|
|
57
|
+
sm: {
|
|
58
|
+
root: string;
|
|
59
|
+
thumb: string;
|
|
60
|
+
};
|
|
61
|
+
md: {
|
|
62
|
+
root: string;
|
|
63
|
+
thumb: string;
|
|
64
|
+
};
|
|
65
|
+
lg: {
|
|
66
|
+
root: string;
|
|
67
|
+
thumb: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/** Nudges the track down so it centres against the label's first line. */
|
|
71
|
+
withText: {
|
|
72
|
+
true: {};
|
|
73
|
+
};
|
|
74
|
+
}, {
|
|
51
75
|
/** Only rendered when a `label` or `description` is provided. */
|
|
52
76
|
wrapper: string;
|
|
53
77
|
root: string;
|
package/dist/theme/switch.js
CHANGED
|
@@ -1,12 +1,37 @@
|
|
|
1
1
|
import { tv as e } from "tailwind-variants";
|
|
2
2
|
//#region src/theme/switch.ts
|
|
3
|
-
var t = e({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
var t = e({
|
|
4
|
+
slots: {
|
|
5
|
+
wrapper: "flex items-start gap-2.5",
|
|
6
|
+
root: "inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors outline-none focus:ring-2 focus:ring-primary/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-muted",
|
|
7
|
+
thumb: "pointer-events-none block rounded-full bg-background shadow-sm transition-transform data-[state=unchecked]:translate-x-0.5",
|
|
8
|
+
content: "grid gap-1",
|
|
9
|
+
label: "text-sm leading-5 font-medium text-foreground select-none",
|
|
10
|
+
description: "text-sm leading-snug text-muted-foreground"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
sm: {
|
|
15
|
+
root: "h-4 w-7",
|
|
16
|
+
thumb: "size-3 data-[state=checked]:translate-x-3.5"
|
|
17
|
+
},
|
|
18
|
+
md: {
|
|
19
|
+
root: "h-5 w-9",
|
|
20
|
+
thumb: "size-4 data-[state=checked]:translate-x-4.5"
|
|
21
|
+
},
|
|
22
|
+
lg: {
|
|
23
|
+
root: "h-6 w-11",
|
|
24
|
+
thumb: "size-5 data-[state=checked]:translate-x-5.5"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
withText: { true: {} }
|
|
28
|
+
},
|
|
29
|
+
compoundVariants: [{
|
|
30
|
+
size: "sm",
|
|
31
|
+
withText: !0,
|
|
32
|
+
class: { root: "mt-0.5" }
|
|
33
|
+
}],
|
|
34
|
+
defaultVariants: { size: "md" }
|
|
35
|
+
});
|
|
11
36
|
//#endregion
|
|
12
37
|
export { t as switchTheme };
|