@nuxt/ui 2.10.0 → 2.11.1
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 +11 -0
- package/dist/module.d.mts +387 -104
- package/dist/module.d.ts +387 -104
- package/dist/module.json +1 -1
- package/dist/module.mjs +16 -7
- package/dist/runtime/components/data/Table.vue +3 -3
- package/dist/runtime/components/data/Table.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Accordion.vue +2 -2
- package/dist/runtime/components/elements/Accordion.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Alert.vue +13 -12
- package/dist/runtime/components/elements/Alert.vue.d.ts +12 -11
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +11 -10
- package/dist/runtime/components/elements/AvatarGroup.d.ts +11 -10
- package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
- package/dist/runtime/components/elements/Badge.vue +6 -4
- package/dist/runtime/components/elements/Badge.vue.d.ts +11 -11
- package/dist/runtime/components/elements/Button.vue +16 -12
- package/dist/runtime/components/elements/Button.vue.d.ts +13 -12
- package/dist/runtime/components/elements/ButtonGroup.d.ts +12 -11
- package/dist/runtime/components/elements/ButtonGroup.mjs +8 -34
- package/dist/runtime/components/elements/Chip.vue +85 -0
- package/dist/runtime/components/elements/Chip.vue.d.ts +90 -0
- package/dist/runtime/components/elements/Dropdown.vue +35 -21
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +13 -7
- package/dist/runtime/components/elements/Icon.vue +16 -2
- package/dist/runtime/components/elements/Icon.vue.d.ts +14 -2
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +12 -11
- package/dist/runtime/components/elements/Link.vue +2 -5
- package/dist/runtime/components/elements/Meter.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +9 -9
- package/dist/runtime/components/elements/MeterGroup.d.ts +10 -10
- package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
- package/dist/runtime/components/elements/Progress.vue +6 -95
- package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
- package/dist/runtime/components/forms/Checkbox.vue +8 -10
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Form.vue +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +9 -5
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +21 -11
- package/dist/runtime/components/forms/Input.vue +43 -12
- package/dist/runtime/components/forms/Input.vue.d.ts +38 -15
- package/dist/runtime/components/forms/Radio.vue +18 -12
- package/dist/runtime/components/forms/Radio.vue.d.ts +11 -10
- package/dist/runtime/components/forms/RadioGroup.vue +3 -3
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +13 -13
- package/dist/runtime/components/forms/Range.vue +5 -5
- package/dist/runtime/components/forms/Range.vue.d.ts +11 -10
- package/dist/runtime/components/forms/Select.vue +12 -9
- package/dist/runtime/components/forms/Select.vue.d.ts +15 -14
- package/dist/runtime/components/forms/SelectMenu.vue +42 -25
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +28 -19
- package/dist/runtime/components/forms/Textarea.vue +36 -6
- package/dist/runtime/components/forms/Textarea.vue.d.ts +37 -14
- package/dist/runtime/components/forms/Toggle.vue +25 -7
- package/dist/runtime/components/forms/Toggle.vue.d.ts +20 -7
- package/dist/runtime/components/layout/Card.vue +2 -2
- package/dist/runtime/components/layout/Card.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Container.vue +2 -2
- package/dist/runtime/components/layout/Container.vue.d.ts +7 -7
- package/dist/runtime/components/layout/Divider.vue +3 -8
- package/dist/runtime/components/layout/Divider.vue.d.ts +9 -9
- package/dist/runtime/components/layout/Skeleton.vue +2 -2
- package/dist/runtime/components/layout/Skeleton.vue.d.ts +7 -7
- package/dist/runtime/components/navigation/Breadcrumb.vue +78 -0
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +50 -0
- package/dist/runtime/components/navigation/CommandPalette.vue +50 -37
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +15 -8
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +7 -7
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +11 -11
- package/dist/runtime/components/navigation/Tabs.vue +8 -5
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +10 -10
- package/dist/runtime/components/navigation/VerticalNavigation.vue +2 -2
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/ContextMenu.vue +4 -3
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Modal.vue +3 -6
- package/dist/runtime/components/overlays/Modal.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notification.vue +30 -31
- package/dist/runtime/components/overlays/Notification.vue.d.ts +10 -9
- package/dist/runtime/components/overlays/Notifications.vue +18 -16
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Popover.vue +14 -4
- package/dist/runtime/components/overlays/Popover.vue.d.ts +20 -9
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Tooltip.vue +6 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.mjs +8 -4
- package/dist/runtime/composables/useButtonGroup.d.ts +20 -0
- package/dist/runtime/composables/useButtonGroup.mjs +52 -0
- package/dist/runtime/composables/useFormGroup.d.ts +2 -0
- package/dist/runtime/composables/useFormGroup.mjs +3 -2
- package/dist/runtime/composables/useShortcuts.d.ts +2 -2
- package/dist/runtime/composables/useUI.d.ts +3 -3
- package/dist/runtime/types/alert.d.ts +7 -0
- package/dist/runtime/types/avatar.d.ts +3 -1
- package/dist/runtime/types/badge.d.ts +5 -4
- package/dist/runtime/types/breadcrumb.d.ts +9 -0
- package/dist/runtime/types/button.d.ts +5 -4
- package/dist/runtime/types/chip.d.ts +11 -0
- package/dist/runtime/types/dropdown.d.ts +2 -2
- package/dist/runtime/types/form-group.d.ts +5 -0
- package/dist/runtime/types/form.d.ts +3 -2
- package/dist/runtime/types/index.d.ts +10 -0
- package/dist/runtime/types/input.d.ts +8 -0
- package/dist/runtime/types/kbd.d.ts +5 -0
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/range.d.ts +5 -0
- package/dist/runtime/types/select.d.ts +8 -0
- package/dist/runtime/types/textarea.d.ts +8 -0
- package/dist/runtime/types/toggle.d.ts +5 -0
- package/dist/runtime/types/utils.d.ts +24 -7
- package/dist/runtime/ui.config/data/table.d.ts +60 -0
- package/dist/runtime/ui.config/data/table.mjs +59 -0
- package/dist/runtime/ui.config/elements/accordion.d.ts +21 -0
- package/dist/runtime/ui.config/elements/accordion.mjs +20 -0
- package/dist/runtime/ui.config/elements/alert.d.ts +41 -0
- package/dist/runtime/ui.config/elements/alert.mjs +40 -0
- package/dist/runtime/ui.config/elements/avatar.d.ts +60 -0
- package/dist/runtime/ui.config/elements/avatar.mjs +59 -0
- package/dist/runtime/ui.config/elements/avatarGroup.d.ts +6 -0
- package/dist/runtime/ui.config/elements/avatarGroup.mjs +5 -0
- package/dist/runtime/ui.config/elements/badge.d.ts +34 -0
- package/dist/runtime/ui.config/elements/badge.mjs +33 -0
- package/dist/runtime/ui.config/elements/button.d.ts +81 -0
- package/dist/runtime/ui.config/elements/button.mjs +80 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +101 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +19 -0
- package/dist/runtime/ui.config/elements/chip.d.ts +35 -0
- package/dist/runtime/ui.config/elements/chip.mjs +34 -0
- package/dist/runtime/ui.config/elements/dropdown.d.ts +55 -0
- package/dist/runtime/ui.config/elements/dropdown.mjs +53 -0
- package/dist/runtime/ui.config/elements/kbd.d.ts +17 -0
- package/dist/runtime/ui.config/elements/kbd.mjs +16 -0
- package/dist/runtime/ui.config/elements/meter.d.ts +77 -0
- package/dist/runtime/ui.config/elements/meter.mjs +76 -0
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +52 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +24 -0
- package/dist/runtime/ui.config/elements/progress.d.ts +75 -0
- package/dist/runtime/ui.config/elements/progress.mjs +74 -0
- package/dist/runtime/ui.config/forms/checkbox.d.ts +19 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +18 -0
- package/dist/runtime/ui.config/forms/formGroup.d.ts +25 -0
- package/dist/runtime/ui.config/forms/formGroup.mjs +25 -0
- package/dist/runtime/ui.config/forms/input.d.ts +107 -0
- package/dist/runtime/ui.config/forms/input.mjs +106 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +18 -0
- package/dist/runtime/ui.config/forms/radio.mjs +17 -0
- package/dist/runtime/ui.config/forms/radioGroup.d.ts +8 -0
- package/dist/runtime/ui.config/forms/radioGroup.mjs +7 -0
- package/dist/runtime/ui.config/forms/range.d.ts +64 -0
- package/dist/runtime/ui.config/forms/range.mjs +63 -0
- package/dist/runtime/ui.config/forms/select.d.ts +108 -0
- package/dist/runtime/ui.config/forms/select.mjs +13 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +68 -0
- package/dist/runtime/ui.config/forms/selectMenu.mjs +66 -0
- package/dist/runtime/ui.config/forms/textarea.d.ts +106 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +10 -0
- package/dist/runtime/ui.config/forms/toggle.d.ts +61 -0
- package/dist/runtime/ui.config/forms/toggle.mjs +60 -0
- package/dist/runtime/ui.config/index.d.ts +40 -0
- package/dist/runtime/ui.config/index.mjs +40 -0
- package/dist/runtime/ui.config/layout/card.d.ts +24 -0
- package/dist/runtime/ui.config/layout/card.mjs +23 -0
- package/dist/runtime/ui.config/layout/container.d.ts +6 -0
- package/dist/runtime/ui.config/layout/container.mjs +5 -0
- package/dist/runtime/ui.config/layout/divider.d.ts +35 -0
- package/dist/runtime/ui.config/layout/divider.mjs +34 -0
- package/dist/runtime/ui.config/layout/skeleton.d.ts +6 -0
- package/dist/runtime/ui.config/layout/skeleton.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +20 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +19 -0
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +72 -0
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +71 -0
- package/dist/runtime/ui.config/navigation/pagination.d.ts +35 -0
- package/dist/runtime/ui.config/navigation/pagination.mjs +34 -0
- package/dist/runtime/ui.config/navigation/tabs.d.ts +34 -0
- package/dist/runtime/ui.config/navigation/tabs.mjs +33 -0
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +28 -0
- package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +27 -0
- package/dist/runtime/ui.config/overlays/contextMenu.d.ts +31 -0
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +25 -0
- package/dist/runtime/ui.config/overlays/modal.d.ts +36 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +37 -0
- package/dist/runtime/ui.config/overlays/notification.d.ts +50 -0
- package/dist/runtime/ui.config/overlays/notification.mjs +50 -0
- package/dist/runtime/ui.config/overlays/notifications.d.ts +7 -0
- package/dist/runtime/ui.config/overlays/notifications.mjs +6 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +43 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +37 -0
- package/dist/runtime/ui.config/overlays/slideover.d.ts +32 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +33 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +33 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +27 -0
- package/dist/runtime/ui.config/popper.d.ts +8 -0
- package/dist/runtime/ui.config/popper.mjs +8 -0
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.d.ts +5 -0
- package/dist/runtime/utils/index.mjs +7 -3
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +32 -21
- package/dist/runtime/ui.config.d.ts +0 -1470
- package/dist/runtime/ui.config.mjs +0 -1273
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "w-full flex flex-col gap-2",
|
|
3
|
+
indicator: {
|
|
4
|
+
container: "min-w-fit transition-all",
|
|
5
|
+
text: "text-gray-400 dark:text-gray-500 text-end",
|
|
6
|
+
size: {
|
|
7
|
+
"2xs": "text-xs",
|
|
8
|
+
xs: "text-xs",
|
|
9
|
+
sm: "text-sm",
|
|
10
|
+
md: "text-sm",
|
|
11
|
+
lg: "text-sm",
|
|
12
|
+
xl: "text-base",
|
|
13
|
+
"2xl": "text-base"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
meter: {
|
|
17
|
+
base: "appearance-none block w-full bg-none overflow-y-hidden",
|
|
18
|
+
background: "bg-gray-200 dark:bg-gray-700",
|
|
19
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
20
|
+
ring: "",
|
|
21
|
+
rounded: "rounded-full",
|
|
22
|
+
shadow: "",
|
|
23
|
+
size: {
|
|
24
|
+
"2xs": "h-px",
|
|
25
|
+
xs: "h-0.5",
|
|
26
|
+
sm: "h-1",
|
|
27
|
+
md: "h-2",
|
|
28
|
+
lg: "h-3",
|
|
29
|
+
xl: "h-4",
|
|
30
|
+
"2xl": "h-5"
|
|
31
|
+
},
|
|
32
|
+
appearance: {
|
|
33
|
+
inner: "[&::-webkit-meter-inner-element]:block [&::-webkit-meter-inner-element]:relative [&::-webkit-meter-inner-element]:border-none [&::-webkit-meter-inner-element]:bg-none [&::-webkit-meter-inner-element]:bg-transparent",
|
|
34
|
+
meter: "[&::-webkit-meter-bar]:border-none [&::-webkit-meter-bar]:bg-none [&::-webkit-meter-bar]:bg-transparent",
|
|
35
|
+
bar: "[&::-webkit-meter-optimum-value]:border-none [&::-webkit-meter-optimum-value]:bg-none [&::-webkit-meter-optimum-value]:bg-current",
|
|
36
|
+
value: "[&::-moz-meter-bar]:border-none [&::-moz-meter-bar]:bg-none [&::-moz-meter-bar]:bg-current"
|
|
37
|
+
},
|
|
38
|
+
bar: {
|
|
39
|
+
transition: "[&::-webkit-meter-optimum-value]:transition-all [&::-moz-meter-bar]:transition-all",
|
|
40
|
+
ring: "",
|
|
41
|
+
rounded: "[&::-webkit-meter-optimum-value]:rounded-full [&::-moz-meter-bar]:rounded-full",
|
|
42
|
+
size: {
|
|
43
|
+
"2xs": "[&::-webkit-meter-optimum-value]:h-px [&::-moz-meter-bar]:h-px",
|
|
44
|
+
xs: "[&::-webkit-meter-optimum-value]:h-0.5 [&::-moz-meter-bar]:h-0.5",
|
|
45
|
+
sm: "[&::-webkit-meter-optimum-value]:h-1 [&::-moz-meter-bar]:h-1",
|
|
46
|
+
md: "[&::-webkit-meter-optimum-value]:h-2 [&::-moz-meter-bar]:h-2",
|
|
47
|
+
lg: "[&::-webkit-meter-optimum-value]:h-3 [&::-moz-meter-bar]:h-3",
|
|
48
|
+
xl: "[&::-webkit-meter-optimum-value]:h-4 [&::-moz-meter-bar]:h-4",
|
|
49
|
+
"2xl": "[&::-webkit-meter-optimum-value]:h-5 [&::-moz-meter-bar]:h-5"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
label: {
|
|
54
|
+
base: "flex gap-2 items-center",
|
|
55
|
+
text: "truncate",
|
|
56
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
57
|
+
size: {
|
|
58
|
+
"2xs": "text-xs",
|
|
59
|
+
xs: "text-xs",
|
|
60
|
+
sm: "text-sm",
|
|
61
|
+
md: "text-sm",
|
|
62
|
+
lg: "text-sm",
|
|
63
|
+
xl: "text-base",
|
|
64
|
+
"2xl": "text-base"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
color: {
|
|
68
|
+
white: "text-white dark:text-black",
|
|
69
|
+
black: "text-black dark:text-white",
|
|
70
|
+
gray: "text-gray-500 dark:text-gray-400"
|
|
71
|
+
},
|
|
72
|
+
default: {
|
|
73
|
+
size: "md",
|
|
74
|
+
color: "primary"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
background: string;
|
|
5
|
+
transition: string;
|
|
6
|
+
rounded: string;
|
|
7
|
+
shadow: string;
|
|
8
|
+
list: string;
|
|
9
|
+
orientation: {
|
|
10
|
+
'rounded-none': {
|
|
11
|
+
left: string;
|
|
12
|
+
right: string;
|
|
13
|
+
};
|
|
14
|
+
'rounded-sm': {
|
|
15
|
+
left: string;
|
|
16
|
+
right: string;
|
|
17
|
+
};
|
|
18
|
+
rounded: {
|
|
19
|
+
left: string;
|
|
20
|
+
right: string;
|
|
21
|
+
};
|
|
22
|
+
'rounded-md': {
|
|
23
|
+
left: string;
|
|
24
|
+
right: string;
|
|
25
|
+
};
|
|
26
|
+
'rounded-lg': {
|
|
27
|
+
left: string;
|
|
28
|
+
right: string;
|
|
29
|
+
};
|
|
30
|
+
'rounded-xl': {
|
|
31
|
+
left: string;
|
|
32
|
+
right: string;
|
|
33
|
+
};
|
|
34
|
+
'rounded-2xl': {
|
|
35
|
+
left: string;
|
|
36
|
+
right: string;
|
|
37
|
+
};
|
|
38
|
+
'rounded-3xl': {
|
|
39
|
+
left: string;
|
|
40
|
+
right: string;
|
|
41
|
+
};
|
|
42
|
+
'rounded-full': {
|
|
43
|
+
left: string;
|
|
44
|
+
right: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
default: {
|
|
48
|
+
size: string;
|
|
49
|
+
icon: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "flex flex-col gap-2 w-full",
|
|
3
|
+
base: "flex flex-row flex-nowrap flex-shrink overflow-hidden",
|
|
4
|
+
background: "bg-gray-200 dark:bg-gray-700",
|
|
5
|
+
transition: "transition-all",
|
|
6
|
+
rounded: "rounded-full",
|
|
7
|
+
shadow: "",
|
|
8
|
+
list: "list-disc list-inside",
|
|
9
|
+
orientation: {
|
|
10
|
+
"rounded-none": { left: "rounded-s-none", right: "rounded-e-none" },
|
|
11
|
+
"rounded-sm": { left: "rounded-s-sm", right: "rounded-e-sm" },
|
|
12
|
+
rounded: { left: "rounded-s", right: "rounded-e" },
|
|
13
|
+
"rounded-md": { left: "rounded-s-md", right: "rounded-e-md" },
|
|
14
|
+
"rounded-lg": { left: "rounded-s-lg", right: "rounded-e-lg" },
|
|
15
|
+
"rounded-xl": { left: "rounded-s-xl", right: "rounded-e-xl" },
|
|
16
|
+
"rounded-2xl": { left: "rounded-s-2xl", right: "rounded-e-2xl" },
|
|
17
|
+
"rounded-3xl": { left: "rounded-s-3xl", right: "rounded-e-3xl" },
|
|
18
|
+
"rounded-full": { left: "rounded-s-full", right: "rounded-e-full" }
|
|
19
|
+
},
|
|
20
|
+
default: {
|
|
21
|
+
size: "md",
|
|
22
|
+
icon: "i-heroicons-minus-20-solid"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
indicator: {
|
|
4
|
+
container: {
|
|
5
|
+
base: string;
|
|
6
|
+
width: string;
|
|
7
|
+
transition: string;
|
|
8
|
+
};
|
|
9
|
+
align: string;
|
|
10
|
+
width: string;
|
|
11
|
+
color: string;
|
|
12
|
+
size: {
|
|
13
|
+
'2xs': string;
|
|
14
|
+
xs: string;
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
xl: string;
|
|
19
|
+
'2xl': string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
progress: {
|
|
23
|
+
base: string;
|
|
24
|
+
width: string;
|
|
25
|
+
size: {
|
|
26
|
+
'2xs': string;
|
|
27
|
+
xs: string;
|
|
28
|
+
sm: string;
|
|
29
|
+
md: string;
|
|
30
|
+
lg: string;
|
|
31
|
+
xl: string;
|
|
32
|
+
'2xl': string;
|
|
33
|
+
};
|
|
34
|
+
rounded: string;
|
|
35
|
+
track: string;
|
|
36
|
+
bar: string;
|
|
37
|
+
color: string;
|
|
38
|
+
background: string;
|
|
39
|
+
indeterminate: {
|
|
40
|
+
base: string;
|
|
41
|
+
rounded: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
steps: {
|
|
45
|
+
base: string;
|
|
46
|
+
color: string;
|
|
47
|
+
size: {
|
|
48
|
+
'2xs': string;
|
|
49
|
+
xs: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
md: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
xl: string;
|
|
54
|
+
'2xl': string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
step: {
|
|
58
|
+
base: string;
|
|
59
|
+
align: string;
|
|
60
|
+
active: string;
|
|
61
|
+
first: string;
|
|
62
|
+
};
|
|
63
|
+
animation: {
|
|
64
|
+
carousel: string;
|
|
65
|
+
'carousel-inverse': string;
|
|
66
|
+
swing: string;
|
|
67
|
+
elastic: string;
|
|
68
|
+
};
|
|
69
|
+
default: {
|
|
70
|
+
color: string;
|
|
71
|
+
size: string;
|
|
72
|
+
animation: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "w-full flex flex-col gap-2",
|
|
3
|
+
indicator: {
|
|
4
|
+
container: {
|
|
5
|
+
base: "flex flex-row justify-end",
|
|
6
|
+
width: "min-w-fit",
|
|
7
|
+
transition: "transition-all"
|
|
8
|
+
},
|
|
9
|
+
align: "text-end",
|
|
10
|
+
width: "w-fit",
|
|
11
|
+
color: "text-gray-400 dark:text-gray-500",
|
|
12
|
+
size: {
|
|
13
|
+
"2xs": "text-xs",
|
|
14
|
+
xs: "text-xs",
|
|
15
|
+
sm: "text-sm",
|
|
16
|
+
md: "text-sm",
|
|
17
|
+
lg: "text-sm",
|
|
18
|
+
xl: "text-base",
|
|
19
|
+
"2xl": "text-base"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
progress: {
|
|
23
|
+
base: "block appearance-none border-none overflow-hidden",
|
|
24
|
+
width: "w-full [&::-webkit-progress-bar]:w-full",
|
|
25
|
+
size: {
|
|
26
|
+
"2xs": "h-px",
|
|
27
|
+
xs: "h-0.5",
|
|
28
|
+
sm: "h-1",
|
|
29
|
+
md: "h-2",
|
|
30
|
+
lg: "h-3",
|
|
31
|
+
xl: "h-4",
|
|
32
|
+
"2xl": "h-5"
|
|
33
|
+
},
|
|
34
|
+
rounded: "rounded-full [&::-webkit-progress-bar]:rounded-full",
|
|
35
|
+
track: "[&::-webkit-progress-bar]:bg-gray-200 [&::-webkit-progress-bar]:dark:bg-gray-700 [@supports(selector(&::-moz-progress-bar))]:bg-gray-200 [@supports(selector(&::-moz-progress-bar))]:dark:bg-gray-700",
|
|
36
|
+
bar: "[&::-webkit-progress-value]:rounded-full [&::-webkit-progress-value]:transition-all [&::-webkit-progress-value]:ease-in-out [&::-moz-progress-bar]:rounded-full",
|
|
37
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
38
|
+
background: "[&::-webkit-progress-value]:bg-current [&::-moz-progress-bar]:bg-current",
|
|
39
|
+
indeterminate: {
|
|
40
|
+
base: "indeterminate:relative",
|
|
41
|
+
rounded: "indeterminate:after:rounded-full [&:indeterminate::-webkit-progress-value]:rounded-full [&:indeterminate::-moz-progress-bar]:rounded-full"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
steps: {
|
|
45
|
+
base: "grid grid-cols-1",
|
|
46
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
47
|
+
size: {
|
|
48
|
+
"2xs": "text-xs",
|
|
49
|
+
xs: "text-xs",
|
|
50
|
+
sm: "text-sm",
|
|
51
|
+
md: "text-sm",
|
|
52
|
+
lg: "text-sm",
|
|
53
|
+
xl: "text-base",
|
|
54
|
+
"2xl": "text-base"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
step: {
|
|
58
|
+
base: "transition-all opacity-0 truncate row-start-1 col-start-1",
|
|
59
|
+
align: "text-end",
|
|
60
|
+
active: "opacity-100",
|
|
61
|
+
first: "text-gray-500 dark:text-gray-400"
|
|
62
|
+
},
|
|
63
|
+
animation: {
|
|
64
|
+
carousel: "bar-animation-carousel",
|
|
65
|
+
"carousel-inverse": "bar-animation-carousel-inverse",
|
|
66
|
+
swing: "bar-animation-swing",
|
|
67
|
+
elastic: "bar-animation-elastic"
|
|
68
|
+
},
|
|
69
|
+
default: {
|
|
70
|
+
color: "primary",
|
|
71
|
+
size: "md",
|
|
72
|
+
animation: "carousel"
|
|
73
|
+
}
|
|
74
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
container: string;
|
|
4
|
+
base: string;
|
|
5
|
+
form: string;
|
|
6
|
+
rounded: string;
|
|
7
|
+
color: string;
|
|
8
|
+
background: string;
|
|
9
|
+
border: string;
|
|
10
|
+
ring: string;
|
|
11
|
+
inner: string;
|
|
12
|
+
label: string;
|
|
13
|
+
required: string;
|
|
14
|
+
help: string;
|
|
15
|
+
default: {
|
|
16
|
+
color: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative flex items-start",
|
|
3
|
+
container: "flex items-center h-5",
|
|
4
|
+
base: "h-4 w-4 dark:checked:bg-current dark:checked:border-transparent dark:indeterminate:bg-current dark:indeterminate:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",
|
|
5
|
+
form: "form-checkbox",
|
|
6
|
+
rounded: "rounded",
|
|
7
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
8
|
+
background: "bg-white dark:bg-gray-900",
|
|
9
|
+
border: "border border-gray-300 dark:border-gray-700",
|
|
10
|
+
ring: "focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",
|
|
11
|
+
inner: "ms-3 flex flex-col",
|
|
12
|
+
label: "text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
13
|
+
required: "text-sm text-red-500 dark:text-red-400",
|
|
14
|
+
help: "text-sm text-gray-500 dark:text-gray-400",
|
|
15
|
+
default: {
|
|
16
|
+
color: "primary"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
label: {
|
|
4
|
+
wrapper: string;
|
|
5
|
+
base: string;
|
|
6
|
+
required: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
'2xs': string;
|
|
10
|
+
xs: string;
|
|
11
|
+
sm: string;
|
|
12
|
+
md: string;
|
|
13
|
+
lg: string;
|
|
14
|
+
xl: string;
|
|
15
|
+
};
|
|
16
|
+
container: string;
|
|
17
|
+
description: string;
|
|
18
|
+
hint: string;
|
|
19
|
+
help: string;
|
|
20
|
+
error: string;
|
|
21
|
+
default: {
|
|
22
|
+
size: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "",
|
|
3
|
+
label: {
|
|
4
|
+
wrapper: "flex content-center items-center justify-between",
|
|
5
|
+
base: "block font-medium text-gray-700 dark:text-gray-200",
|
|
6
|
+
// eslint-disable-next-line quotes
|
|
7
|
+
required: `after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-400`
|
|
8
|
+
},
|
|
9
|
+
size: {
|
|
10
|
+
"2xs": "text-xs",
|
|
11
|
+
xs: "text-xs",
|
|
12
|
+
sm: "text-sm",
|
|
13
|
+
md: "text-sm",
|
|
14
|
+
lg: "text-sm",
|
|
15
|
+
xl: "text-base"
|
|
16
|
+
},
|
|
17
|
+
container: "mt-1 relative",
|
|
18
|
+
description: "text-gray-500 dark:text-gray-400",
|
|
19
|
+
hint: "text-gray-500 dark:text-gray-400",
|
|
20
|
+
help: "mt-2 text-gray-500 dark:text-gray-400",
|
|
21
|
+
error: "mt-2 text-red-500 dark:text-red-400",
|
|
22
|
+
default: {
|
|
23
|
+
size: "sm"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
form: string;
|
|
5
|
+
rounded: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
size: {
|
|
8
|
+
'2xs': string;
|
|
9
|
+
xs: string;
|
|
10
|
+
sm: string;
|
|
11
|
+
md: string;
|
|
12
|
+
lg: string;
|
|
13
|
+
xl: string;
|
|
14
|
+
};
|
|
15
|
+
gap: {
|
|
16
|
+
'2xs': string;
|
|
17
|
+
xs: string;
|
|
18
|
+
sm: string;
|
|
19
|
+
md: string;
|
|
20
|
+
lg: string;
|
|
21
|
+
xl: string;
|
|
22
|
+
};
|
|
23
|
+
padding: {
|
|
24
|
+
'2xs': string;
|
|
25
|
+
xs: string;
|
|
26
|
+
sm: string;
|
|
27
|
+
md: string;
|
|
28
|
+
lg: string;
|
|
29
|
+
xl: string;
|
|
30
|
+
};
|
|
31
|
+
leading: {
|
|
32
|
+
padding: {
|
|
33
|
+
'2xs': string;
|
|
34
|
+
xs: string;
|
|
35
|
+
sm: string;
|
|
36
|
+
md: string;
|
|
37
|
+
lg: string;
|
|
38
|
+
xl: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
trailing: {
|
|
42
|
+
padding: {
|
|
43
|
+
'2xs': string;
|
|
44
|
+
xs: string;
|
|
45
|
+
sm: string;
|
|
46
|
+
md: string;
|
|
47
|
+
lg: string;
|
|
48
|
+
xl: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
color: {
|
|
52
|
+
white: {
|
|
53
|
+
outline: string;
|
|
54
|
+
};
|
|
55
|
+
gray: {
|
|
56
|
+
outline: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
variant: {
|
|
60
|
+
outline: string;
|
|
61
|
+
none: string;
|
|
62
|
+
};
|
|
63
|
+
icon: {
|
|
64
|
+
base: string;
|
|
65
|
+
color: string;
|
|
66
|
+
loading: string;
|
|
67
|
+
size: {
|
|
68
|
+
'2xs': string;
|
|
69
|
+
xs: string;
|
|
70
|
+
sm: string;
|
|
71
|
+
md: string;
|
|
72
|
+
lg: string;
|
|
73
|
+
xl: string;
|
|
74
|
+
};
|
|
75
|
+
leading: {
|
|
76
|
+
wrapper: string;
|
|
77
|
+
pointer: string;
|
|
78
|
+
padding: {
|
|
79
|
+
'2xs': string;
|
|
80
|
+
xs: string;
|
|
81
|
+
sm: string;
|
|
82
|
+
md: string;
|
|
83
|
+
lg: string;
|
|
84
|
+
xl: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
trailing: {
|
|
88
|
+
wrapper: string;
|
|
89
|
+
pointer: string;
|
|
90
|
+
padding: {
|
|
91
|
+
'2xs': string;
|
|
92
|
+
xs: string;
|
|
93
|
+
sm: string;
|
|
94
|
+
md: string;
|
|
95
|
+
lg: string;
|
|
96
|
+
xl: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
default: {
|
|
101
|
+
size: string;
|
|
102
|
+
color: string;
|
|
103
|
+
variant: string;
|
|
104
|
+
loadingIcon: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export default _default;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative",
|
|
3
|
+
base: "relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",
|
|
4
|
+
form: "form-input",
|
|
5
|
+
rounded: "rounded-md",
|
|
6
|
+
placeholder: "placeholder-gray-400 dark:placeholder-gray-500",
|
|
7
|
+
size: {
|
|
8
|
+
"2xs": "text-xs",
|
|
9
|
+
xs: "text-xs",
|
|
10
|
+
sm: "text-sm",
|
|
11
|
+
md: "text-sm",
|
|
12
|
+
lg: "text-sm",
|
|
13
|
+
xl: "text-base"
|
|
14
|
+
},
|
|
15
|
+
gap: {
|
|
16
|
+
"2xs": "gap-x-1",
|
|
17
|
+
xs: "gap-x-1.5",
|
|
18
|
+
sm: "gap-x-1.5",
|
|
19
|
+
md: "gap-x-2",
|
|
20
|
+
lg: "gap-x-2.5",
|
|
21
|
+
xl: "gap-x-2.5"
|
|
22
|
+
},
|
|
23
|
+
padding: {
|
|
24
|
+
"2xs": "px-2 py-1",
|
|
25
|
+
xs: "px-2.5 py-1.5",
|
|
26
|
+
sm: "px-2.5 py-1.5",
|
|
27
|
+
md: "px-3 py-2",
|
|
28
|
+
lg: "px-3.5 py-2.5",
|
|
29
|
+
xl: "px-3.5 py-2.5"
|
|
30
|
+
},
|
|
31
|
+
leading: {
|
|
32
|
+
padding: {
|
|
33
|
+
"2xs": "ps-7",
|
|
34
|
+
xs: "ps-8",
|
|
35
|
+
sm: "ps-9",
|
|
36
|
+
md: "ps-10",
|
|
37
|
+
lg: "ps-11",
|
|
38
|
+
xl: "ps-12"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
trailing: {
|
|
42
|
+
padding: {
|
|
43
|
+
"2xs": "pe-7",
|
|
44
|
+
xs: "pe-8",
|
|
45
|
+
sm: "pe-9",
|
|
46
|
+
md: "pe-10",
|
|
47
|
+
lg: "pe-11",
|
|
48
|
+
xl: "pe-12"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
color: {
|
|
52
|
+
white: {
|
|
53
|
+
outline: "shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"
|
|
54
|
+
},
|
|
55
|
+
gray: {
|
|
56
|
+
outline: "shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
variant: {
|
|
60
|
+
outline: "shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",
|
|
61
|
+
none: "bg-transparent focus:ring-0 focus:shadow-none"
|
|
62
|
+
},
|
|
63
|
+
icon: {
|
|
64
|
+
base: "flex-shrink-0 text-gray-400 dark:text-gray-500",
|
|
65
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
66
|
+
loading: "animate-spin",
|
|
67
|
+
size: {
|
|
68
|
+
"2xs": "h-4 w-4",
|
|
69
|
+
xs: "h-4 w-4",
|
|
70
|
+
sm: "h-5 w-5",
|
|
71
|
+
md: "h-5 w-5",
|
|
72
|
+
lg: "h-5 w-5",
|
|
73
|
+
xl: "h-6 w-6"
|
|
74
|
+
},
|
|
75
|
+
leading: {
|
|
76
|
+
wrapper: "absolute inset-y-0 start-0 flex items-center",
|
|
77
|
+
pointer: "pointer-events-none",
|
|
78
|
+
padding: {
|
|
79
|
+
"2xs": "ps-2",
|
|
80
|
+
xs: "ps-2.5",
|
|
81
|
+
sm: "ps-2.5",
|
|
82
|
+
md: "ps-3",
|
|
83
|
+
lg: "ps-3.5",
|
|
84
|
+
xl: "ps-3.5"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
trailing: {
|
|
88
|
+
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
89
|
+
pointer: "pointer-events-none",
|
|
90
|
+
padding: {
|
|
91
|
+
"2xs": "pe-2",
|
|
92
|
+
xs: "pe-2.5",
|
|
93
|
+
sm: "pe-2.5",
|
|
94
|
+
md: "pe-3",
|
|
95
|
+
lg: "pe-3.5",
|
|
96
|
+
xl: "pe-3.5"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
default: {
|
|
101
|
+
size: "sm",
|
|
102
|
+
color: "white",
|
|
103
|
+
variant: "outline",
|
|
104
|
+
loadingIcon: "i-heroicons-arrow-path-20-solid"
|
|
105
|
+
}
|
|
106
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
container: string;
|
|
4
|
+
base: string;
|
|
5
|
+
form: string;
|
|
6
|
+
color: string;
|
|
7
|
+
background: string;
|
|
8
|
+
border: string;
|
|
9
|
+
ring: string;
|
|
10
|
+
inner: string;
|
|
11
|
+
label: string;
|
|
12
|
+
required: string;
|
|
13
|
+
help: string;
|
|
14
|
+
default: {
|
|
15
|
+
color: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative flex items-start",
|
|
3
|
+
container: "flex items-center h-5",
|
|
4
|
+
base: "h-4 w-4 dark:checked:bg-current dark:checked:border-transparent disabled:opacity-50 disabled:cursor-not-allowed focus:ring-0 focus:ring-transparent focus:ring-offset-transparent",
|
|
5
|
+
form: "form-radio",
|
|
6
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
7
|
+
background: "bg-white dark:bg-gray-900",
|
|
8
|
+
border: "border border-gray-300 dark:border-gray-700",
|
|
9
|
+
ring: "focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400 focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-gray-900",
|
|
10
|
+
inner: "ms-3 flex flex-col",
|
|
11
|
+
label: "text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
12
|
+
required: "text-sm text-red-500 dark:text-red-400",
|
|
13
|
+
help: "text-sm text-gray-500 dark:text-gray-400",
|
|
14
|
+
default: {
|
|
15
|
+
color: "primary"
|
|
16
|
+
}
|
|
17
|
+
};
|