@nuxt/ui 2.9.0 → 2.11.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 +11 -0
- package/dist/module.d.mts +449 -72
- package/dist/module.d.ts +449 -72
- package/dist/module.json +1 -1
- package/dist/module.mjs +32 -6
- package/dist/runtime/components/data/Table.vue +8 -6
- package/dist/runtime/components/data/Table.vue.d.ts +2 -1
- package/dist/runtime/components/elements/Accordion.vue +15 -13
- package/dist/runtime/components/elements/Accordion.vue.d.ts +5 -2
- package/dist/runtime/components/elements/Alert.vue +7 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +6 -5
- package/dist/runtime/components/elements/Avatar.vue.d.ts +5 -4
- package/dist/runtime/components/elements/AvatarGroup.d.ts +4 -3
- package/dist/runtime/components/elements/Badge.vue +4 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +5 -5
- package/dist/runtime/components/elements/Button.vue +8 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +7 -7
- package/dist/runtime/components/elements/ButtonGroup.d.ts +5 -4
- package/dist/runtime/components/elements/ButtonGroup.mjs +19 -32
- 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 +45 -25
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +8 -0
- 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.d.ts +5 -4
- package/dist/runtime/components/elements/Link.vue +2 -5
- package/dist/runtime/components/elements/Meter.vue +166 -0
- package/dist/runtime/components/elements/Meter.vue.d.ts +123 -0
- package/dist/runtime/components/elements/MeterGroup.d.ts +78 -0
- package/dist/runtime/components/elements/MeterGroup.mjs +172 -0
- package/dist/runtime/components/elements/Progress.vue +284 -0
- package/dist/runtime/components/elements/Progress.vue.d.ts +2 -0
- package/dist/runtime/components/forms/Checkbox.vue +2 -4
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +6 -6
- package/dist/runtime/components/forms/Form.vue +32 -7
- package/dist/runtime/components/forms/Form.vue.d.ts +2 -1
- package/dist/runtime/components/forms/FormGroup.vue +7 -3
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +15 -5
- package/dist/runtime/components/forms/Input.vue +41 -6
- package/dist/runtime/components/forms/Input.vue.d.ts +42 -10
- package/dist/runtime/components/forms/Radio.vue +16 -9
- package/dist/runtime/components/forms/Radio.vue.d.ts +8 -7
- package/dist/runtime/components/forms/RadioGroup.vue +136 -0
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +118 -0
- package/dist/runtime/components/forms/Range.vue.d.ts +8 -7
- package/dist/runtime/components/forms/Select.vue +5 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +10 -9
- package/dist/runtime/components/forms/SelectMenu.vue +80 -58
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +23 -13
- package/dist/runtime/components/forms/Textarea.vue +38 -4
- package/dist/runtime/components/forms/Textarea.vue.d.ts +41 -9
- package/dist/runtime/components/forms/Toggle.vue +19 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +16 -3
- package/dist/runtime/components/layout/Divider.vue +107 -0
- package/dist/runtime/components/layout/Divider.vue.d.ts +82 -0
- 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 +18 -7
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +2 -2
- package/dist/runtime/components/navigation/Pagination.vue +65 -9
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +45 -7
- package/dist/runtime/components/navigation/Tabs.vue +1 -1
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/ContextMenu.vue +7 -2
- package/dist/runtime/components/overlays/ContextMenu.vue.d.ts +2 -1
- package/dist/runtime/components/overlays/Modal.vue +1 -1
- package/dist/runtime/components/overlays/Modal.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Notification.vue +32 -27
- package/dist/runtime/components/overlays/Notification.vue.d.ts +4 -3
- package/dist/runtime/components/overlays/Notifications.vue +16 -14
- package/dist/runtime/components/overlays/Popover.vue +31 -7
- package/dist/runtime/components/overlays/Popover.vue.d.ts +27 -2
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Tooltip.vue +16 -10
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +1 -0
- 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 +6 -4
- package/dist/runtime/composables/useFormGroup.mjs +19 -7
- package/dist/runtime/composables/usePopper.d.ts +3 -3
- package/dist/runtime/composables/usePopper.mjs +7 -1
- package/dist/runtime/composables/useShortcuts.d.ts +2 -2
- package/dist/runtime/composables/useUI.d.ts +2 -2
- package/dist/runtime/composables/useUI.mjs +2 -2
- 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 +7 -0
- package/dist/runtime/types/button.d.ts +5 -4
- package/dist/runtime/types/chip.d.ts +11 -0
- package/dist/runtime/types/command-palette.d.ts +1 -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 +14 -6
- package/dist/runtime/types/index.d.ts +12 -0
- package/dist/runtime/types/input.d.ts +8 -0
- package/dist/runtime/types/kbd.d.ts +5 -0
- package/dist/runtime/types/meter.d.ts +5 -0
- package/dist/runtime/types/popper.d.ts +1 -0
- package/dist/runtime/types/progress.d.ts +4 -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 +22 -5
- package/dist/runtime/ui.config/_popperArrow.d.ts +9 -0
- package/dist/runtime/ui.config/_popperArrow.mjs +8 -0
- 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 +40 -0
- package/dist/runtime/ui.config/elements/alert.mjs +39 -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 +77 -0
- package/dist/runtime/ui.config/elements/button.mjs +76 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +9 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +8 -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 +53 -0
- package/dist/runtime/ui.config/elements/dropdown.mjs +51 -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 +12 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +11 -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 +16 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +15 -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 +105 -0
- package/dist/runtime/ui.config/forms/input.mjs +104 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +15 -0
- package/dist/runtime/ui.config/forms/radio.mjs +14 -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 +106 -0
- package/dist/runtime/ui.config/forms/select.mjs +12 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +63 -0
- package/dist/runtime/ui.config/forms/selectMenu.mjs +61 -0
- package/dist/runtime/ui.config/forms/textarea.d.ts +104 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +9 -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 +30 -0
- package/dist/runtime/ui.config/layout/divider.mjs +29 -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 +68 -0
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +67 -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 +35 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +36 -0
- package/dist/runtime/ui.config/overlays/notification.d.ts +49 -0
- package/dist/runtime/ui.config/overlays/notification.mjs +49 -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 +42 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +36 -0
- package/dist/runtime/ui.config/overlays/slideover.d.ts +27 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +28 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +32 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +26 -0
- package/dist/runtime/utils/index.d.ts +5 -0
- package/dist/runtime/utils/index.mjs +6 -2
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +41 -28
- package/dist/runtime/ui.config.d.ts +0 -1207
- package/dist/runtime/ui.config.mjs +0 -1029
- package/dist/runtime/utils/StateEmitter.d.ts +0 -17
- package/dist/runtime/utils/StateEmitter.mjs +0 -21
|
@@ -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,16 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
rounded: string;
|
|
5
|
+
color: string;
|
|
6
|
+
background: string;
|
|
7
|
+
border: string;
|
|
8
|
+
ring: string;
|
|
9
|
+
label: string;
|
|
10
|
+
required: string;
|
|
11
|
+
help: string;
|
|
12
|
+
default: {
|
|
13
|
+
color: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative flex items-start",
|
|
3
|
+
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",
|
|
4
|
+
rounded: "rounded",
|
|
5
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
6
|
+
background: "bg-white dark:bg-gray-900",
|
|
7
|
+
border: "border border-gray-300 dark:border-gray-700",
|
|
8
|
+
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",
|
|
9
|
+
label: "text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
10
|
+
required: "text-sm text-red-500 dark:text-red-400",
|
|
11
|
+
help: "text-sm text-gray-500 dark:text-gray-400",
|
|
12
|
+
default: {
|
|
13
|
+
color: "primary"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
@@ -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,105 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
rounded: string;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
size: {
|
|
7
|
+
'2xs': string;
|
|
8
|
+
xs: string;
|
|
9
|
+
sm: string;
|
|
10
|
+
md: string;
|
|
11
|
+
lg: string;
|
|
12
|
+
xl: string;
|
|
13
|
+
};
|
|
14
|
+
gap: {
|
|
15
|
+
'2xs': string;
|
|
16
|
+
xs: string;
|
|
17
|
+
sm: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
|
+
xl: string;
|
|
21
|
+
};
|
|
22
|
+
padding: {
|
|
23
|
+
'2xs': string;
|
|
24
|
+
xs: string;
|
|
25
|
+
sm: string;
|
|
26
|
+
md: string;
|
|
27
|
+
lg: string;
|
|
28
|
+
xl: string;
|
|
29
|
+
};
|
|
30
|
+
leading: {
|
|
31
|
+
padding: {
|
|
32
|
+
'2xs': string;
|
|
33
|
+
xs: string;
|
|
34
|
+
sm: string;
|
|
35
|
+
md: string;
|
|
36
|
+
lg: string;
|
|
37
|
+
xl: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
trailing: {
|
|
41
|
+
padding: {
|
|
42
|
+
'2xs': string;
|
|
43
|
+
xs: string;
|
|
44
|
+
sm: string;
|
|
45
|
+
md: string;
|
|
46
|
+
lg: string;
|
|
47
|
+
xl: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
color: {
|
|
51
|
+
white: {
|
|
52
|
+
outline: string;
|
|
53
|
+
};
|
|
54
|
+
gray: {
|
|
55
|
+
outline: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
variant: {
|
|
59
|
+
outline: string;
|
|
60
|
+
none: string;
|
|
61
|
+
};
|
|
62
|
+
icon: {
|
|
63
|
+
base: string;
|
|
64
|
+
color: string;
|
|
65
|
+
size: {
|
|
66
|
+
'2xs': string;
|
|
67
|
+
xs: string;
|
|
68
|
+
sm: string;
|
|
69
|
+
md: string;
|
|
70
|
+
lg: string;
|
|
71
|
+
xl: string;
|
|
72
|
+
};
|
|
73
|
+
leading: {
|
|
74
|
+
wrapper: string;
|
|
75
|
+
pointer: string;
|
|
76
|
+
padding: {
|
|
77
|
+
'2xs': string;
|
|
78
|
+
xs: string;
|
|
79
|
+
sm: string;
|
|
80
|
+
md: string;
|
|
81
|
+
lg: string;
|
|
82
|
+
xl: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
trailing: {
|
|
86
|
+
wrapper: string;
|
|
87
|
+
pointer: string;
|
|
88
|
+
padding: {
|
|
89
|
+
'2xs': string;
|
|
90
|
+
xs: string;
|
|
91
|
+
sm: string;
|
|
92
|
+
md: string;
|
|
93
|
+
lg: string;
|
|
94
|
+
xl: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
default: {
|
|
99
|
+
size: string;
|
|
100
|
+
color: string;
|
|
101
|
+
variant: string;
|
|
102
|
+
loadingIcon: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
export default _default;
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
rounded: "rounded-md",
|
|
5
|
+
placeholder: "placeholder-gray-400 dark:placeholder-gray-500",
|
|
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
|
+
},
|
|
14
|
+
gap: {
|
|
15
|
+
"2xs": "gap-x-1",
|
|
16
|
+
xs: "gap-x-1.5",
|
|
17
|
+
sm: "gap-x-1.5",
|
|
18
|
+
md: "gap-x-2",
|
|
19
|
+
lg: "gap-x-2.5",
|
|
20
|
+
xl: "gap-x-2.5"
|
|
21
|
+
},
|
|
22
|
+
padding: {
|
|
23
|
+
"2xs": "px-2 py-1",
|
|
24
|
+
xs: "px-2.5 py-1.5",
|
|
25
|
+
sm: "px-2.5 py-1.5",
|
|
26
|
+
md: "px-3 py-2",
|
|
27
|
+
lg: "px-3.5 py-2.5",
|
|
28
|
+
xl: "px-3.5 py-2.5"
|
|
29
|
+
},
|
|
30
|
+
leading: {
|
|
31
|
+
padding: {
|
|
32
|
+
"2xs": "ps-7",
|
|
33
|
+
xs: "ps-8",
|
|
34
|
+
sm: "ps-9",
|
|
35
|
+
md: "ps-10",
|
|
36
|
+
lg: "ps-11",
|
|
37
|
+
xl: "ps-12"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
trailing: {
|
|
41
|
+
padding: {
|
|
42
|
+
"2xs": "pe-7",
|
|
43
|
+
xs: "pe-8",
|
|
44
|
+
sm: "pe-9",
|
|
45
|
+
md: "pe-10",
|
|
46
|
+
lg: "pe-11",
|
|
47
|
+
xl: "pe-12"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
color: {
|
|
51
|
+
white: {
|
|
52
|
+
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"
|
|
53
|
+
},
|
|
54
|
+
gray: {
|
|
55
|
+
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"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
variant: {
|
|
59
|
+
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",
|
|
60
|
+
none: "bg-transparent focus:ring-0 focus:shadow-none"
|
|
61
|
+
},
|
|
62
|
+
icon: {
|
|
63
|
+
base: "flex-shrink-0 text-gray-400 dark:text-gray-500",
|
|
64
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
65
|
+
size: {
|
|
66
|
+
"2xs": "h-4 w-4",
|
|
67
|
+
xs: "h-4 w-4",
|
|
68
|
+
sm: "h-5 w-5",
|
|
69
|
+
md: "h-5 w-5",
|
|
70
|
+
lg: "h-5 w-5",
|
|
71
|
+
xl: "h-6 w-6"
|
|
72
|
+
},
|
|
73
|
+
leading: {
|
|
74
|
+
wrapper: "absolute inset-y-0 start-0 flex items-center",
|
|
75
|
+
pointer: "pointer-events-none",
|
|
76
|
+
padding: {
|
|
77
|
+
"2xs": "ps-2",
|
|
78
|
+
xs: "ps-2.5",
|
|
79
|
+
sm: "ps-2.5",
|
|
80
|
+
md: "ps-3",
|
|
81
|
+
lg: "ps-3.5",
|
|
82
|
+
xl: "ps-3.5"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
trailing: {
|
|
86
|
+
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
87
|
+
pointer: "pointer-events-none",
|
|
88
|
+
padding: {
|
|
89
|
+
"2xs": "pe-2",
|
|
90
|
+
xs: "pe-2.5",
|
|
91
|
+
sm: "pe-2.5",
|
|
92
|
+
md: "pe-3",
|
|
93
|
+
lg: "pe-3.5",
|
|
94
|
+
xl: "pe-3.5"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
default: {
|
|
99
|
+
size: "sm",
|
|
100
|
+
color: "white",
|
|
101
|
+
variant: "outline",
|
|
102
|
+
loadingIcon: "i-heroicons-arrow-path-20-solid"
|
|
103
|
+
}
|
|
104
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
color: string;
|
|
5
|
+
background: string;
|
|
6
|
+
border: string;
|
|
7
|
+
ring: string;
|
|
8
|
+
label: string;
|
|
9
|
+
required: string;
|
|
10
|
+
help: string;
|
|
11
|
+
default: {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative flex items-start",
|
|
3
|
+
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",
|
|
4
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
5
|
+
background: "bg-white dark:bg-gray-900",
|
|
6
|
+
border: "border border-gray-300 dark:border-gray-700",
|
|
7
|
+
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",
|
|
8
|
+
label: "text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
9
|
+
required: "text-sm text-red-500 dark:text-red-400",
|
|
10
|
+
help: "text-sm text-gray-500 dark:text-gray-400",
|
|
11
|
+
default: {
|
|
12
|
+
color: "primary"
|
|
13
|
+
}
|
|
14
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
wrapper: string;
|
|
3
|
+
base: string;
|
|
4
|
+
rounded: string;
|
|
5
|
+
background: string;
|
|
6
|
+
ring: string;
|
|
7
|
+
progress: {
|
|
8
|
+
base: string;
|
|
9
|
+
rounded: string;
|
|
10
|
+
background: string;
|
|
11
|
+
size: {
|
|
12
|
+
'2xs': string;
|
|
13
|
+
xs: string;
|
|
14
|
+
sm: string;
|
|
15
|
+
md: string;
|
|
16
|
+
lg: string;
|
|
17
|
+
xl: string;
|
|
18
|
+
'2xl': string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
thumb: {
|
|
22
|
+
base: string;
|
|
23
|
+
color: string;
|
|
24
|
+
background: string;
|
|
25
|
+
ring: string;
|
|
26
|
+
size: {
|
|
27
|
+
'2xs': string;
|
|
28
|
+
xs: string;
|
|
29
|
+
sm: string;
|
|
30
|
+
md: string;
|
|
31
|
+
lg: string;
|
|
32
|
+
xl: string;
|
|
33
|
+
'2xl': string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
track: {
|
|
37
|
+
base: string;
|
|
38
|
+
background: string;
|
|
39
|
+
rounded: string;
|
|
40
|
+
size: {
|
|
41
|
+
'2xs': string;
|
|
42
|
+
xs: string;
|
|
43
|
+
sm: string;
|
|
44
|
+
md: string;
|
|
45
|
+
lg: string;
|
|
46
|
+
xl: string;
|
|
47
|
+
'2xl': string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
'2xs': string;
|
|
52
|
+
xs: string;
|
|
53
|
+
sm: string;
|
|
54
|
+
md: string;
|
|
55
|
+
lg: string;
|
|
56
|
+
xl: string;
|
|
57
|
+
'2xl': string;
|
|
58
|
+
};
|
|
59
|
+
default: {
|
|
60
|
+
size: string;
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
wrapper: "relative w-full flex items-center",
|
|
3
|
+
base: "w-full absolute appearance-none cursor-pointer disabled:cursor-not-allowed disabled:bg-opacity-50 focus:outline-none peer group",
|
|
4
|
+
rounded: "rounded-lg",
|
|
5
|
+
background: "bg-transparent",
|
|
6
|
+
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",
|
|
7
|
+
progress: {
|
|
8
|
+
base: "absolute pointer-events-none peer-disabled:bg-opacity-50",
|
|
9
|
+
rounded: "rounded-s-lg",
|
|
10
|
+
background: "bg-{color}-500 dark:bg-{color}-400",
|
|
11
|
+
size: {
|
|
12
|
+
"2xs": "h-px",
|
|
13
|
+
xs: "h-0.5",
|
|
14
|
+
sm: "h-1",
|
|
15
|
+
md: "h-2",
|
|
16
|
+
lg: "h-3",
|
|
17
|
+
xl: "h-4",
|
|
18
|
+
"2xl": "h-5"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
thumb: {
|
|
22
|
+
base: "[&::-webkit-slider-thumb]:relative [&::-moz-range-thumb]:relative [&::-webkit-slider-thumb]:z-[1] [&::-moz-range-thumb]:z-[1] [&::-webkit-slider-thumb]:appearance-none [&::-moz-range-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-0",
|
|
23
|
+
color: "text-{color}-500 dark:text-{color}-400",
|
|
24
|
+
background: "[&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:dark:bg-gray-900 [&::-moz-range-thumb]:bg-current",
|
|
25
|
+
ring: "[&::-webkit-slider-thumb]:ring-2 [&::-webkit-slider-thumb]:ring-current",
|
|
26
|
+
size: {
|
|
27
|
+
"2xs": "[&::-webkit-slider-thumb]:h-1.5 [&::-moz-range-thumb]:h-1.5 [&::-webkit-slider-thumb]:w-1.5 [&::-moz-range-thumb]:w-1.5 [&::-webkit-slider-thumb]:mt-[-2.5px] [&::-moz-range-thumb]:mt-[-2.5px]",
|
|
28
|
+
xs: "[&::-webkit-slider-thumb]:h-2 [&::-moz-range-thumb]:h-2 [&::-webkit-slider-thumb]:w-2 [&::-moz-range-thumb]:w-2 [&::-webkit-slider-thumb]:mt-[-3px] [&::-moz-range-thumb]:mt-[-3px]",
|
|
29
|
+
sm: "[&::-webkit-slider-thumb]:h-3 [&::-moz-range-thumb]:h-3 [&::-webkit-slider-thumb]:w-3 [&::-moz-range-thumb]:w-3 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",
|
|
30
|
+
md: "[&::-webkit-slider-thumb]:h-4 [&::-moz-range-thumb]:h-4 [&::-webkit-slider-thumb]:w-4 [&::-moz-range-thumb]:w-4 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",
|
|
31
|
+
lg: "[&::-webkit-slider-thumb]:h-5 [&::-moz-range-thumb]:h-5 [&::-webkit-slider-thumb]:w-5 [&::-moz-range-thumb]:w-5 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",
|
|
32
|
+
xl: "[&::-webkit-slider-thumb]:h-6 [&::-moz-range-thumb]:h-6 [&::-webkit-slider-thumb]:w-6 [&::-moz-range-thumb]:w-6 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1",
|
|
33
|
+
"2xl": "[&::-webkit-slider-thumb]:h-7 [&::-moz-range-thumb]:h-7 [&::-webkit-slider-thumb]:w-7 [&::-moz-range-thumb]:w-7 [&::-webkit-slider-thumb]:-mt-1 [&::-moz-range-thumb]:-mt-1"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
track: {
|
|
37
|
+
base: "[&::-webkit-slider-runnable-track]:group-disabled:bg-opacity-50 [&::-moz-range-track]:group-disabled:bg-opacity-50",
|
|
38
|
+
background: "[&::-webkit-slider-runnable-track]:bg-gray-200 [&::-moz-range-track]:bg-gray-200 [&::-webkit-slider-runnable-track]:dark:bg-gray-700 [&::-moz-range-track]:dark:bg-gray-700",
|
|
39
|
+
rounded: "[&::-webkit-slider-runnable-track]:rounded-lg [&::-moz-range-track]:rounded-lg",
|
|
40
|
+
size: {
|
|
41
|
+
"2xs": "[&::-webkit-slider-runnable-track]:h-px [&::-moz-range-track]:h-px",
|
|
42
|
+
xs: "[&::-webkit-slider-runnable-track]:h-0.5 [&::-moz-range-track]:h-0.5",
|
|
43
|
+
sm: "[&::-webkit-slider-runnable-track]:h-1 [&::-moz-range-track]:h-1",
|
|
44
|
+
md: "[&::-webkit-slider-runnable-track]:h-2 [&::-moz-range-track]:h-2",
|
|
45
|
+
lg: "[&::-webkit-slider-runnable-track]:h-3 [&::-moz-range-track]:h-3",
|
|
46
|
+
xl: "[&::-webkit-slider-runnable-track]:h-4 [&::-moz-range-track]:h-4",
|
|
47
|
+
"2xl": "[&::-webkit-slider-runnable-track]:h-5 [&::-moz-range-track]:h-5"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
size: {
|
|
51
|
+
"2xs": "h-1.5",
|
|
52
|
+
xs: "h-2",
|
|
53
|
+
sm: "h-3",
|
|
54
|
+
md: "h-4",
|
|
55
|
+
lg: "h-5",
|
|
56
|
+
xl: "h-6",
|
|
57
|
+
"2xl": "h-7"
|
|
58
|
+
},
|
|
59
|
+
default: {
|
|
60
|
+
size: "md",
|
|
61
|
+
color: "primary"
|
|
62
|
+
}
|
|
63
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
default: {
|
|
4
|
+
size: string;
|
|
5
|
+
color: string;
|
|
6
|
+
variant: string;
|
|
7
|
+
loadingIcon: string;
|
|
8
|
+
trailingIcon: string;
|
|
9
|
+
};
|
|
10
|
+
wrapper: string;
|
|
11
|
+
base: string;
|
|
12
|
+
rounded: string;
|
|
13
|
+
size: {
|
|
14
|
+
'2xs': string;
|
|
15
|
+
xs: string;
|
|
16
|
+
sm: string;
|
|
17
|
+
md: string;
|
|
18
|
+
lg: string;
|
|
19
|
+
xl: string;
|
|
20
|
+
};
|
|
21
|
+
gap: {
|
|
22
|
+
'2xs': string;
|
|
23
|
+
xs: string;
|
|
24
|
+
sm: string;
|
|
25
|
+
md: string;
|
|
26
|
+
lg: string;
|
|
27
|
+
xl: string;
|
|
28
|
+
};
|
|
29
|
+
padding: {
|
|
30
|
+
'2xs': string;
|
|
31
|
+
xs: string;
|
|
32
|
+
sm: string;
|
|
33
|
+
md: string;
|
|
34
|
+
lg: string;
|
|
35
|
+
xl: string;
|
|
36
|
+
};
|
|
37
|
+
leading: {
|
|
38
|
+
padding: {
|
|
39
|
+
'2xs': string;
|
|
40
|
+
xs: string;
|
|
41
|
+
sm: string;
|
|
42
|
+
md: string;
|
|
43
|
+
lg: string;
|
|
44
|
+
xl: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
trailing: {
|
|
48
|
+
padding: {
|
|
49
|
+
'2xs': string;
|
|
50
|
+
xs: string;
|
|
51
|
+
sm: string;
|
|
52
|
+
md: string;
|
|
53
|
+
lg: string;
|
|
54
|
+
xl: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
color: {
|
|
58
|
+
white: {
|
|
59
|
+
outline: string;
|
|
60
|
+
};
|
|
61
|
+
gray: {
|
|
62
|
+
outline: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
variant: {
|
|
66
|
+
outline: string;
|
|
67
|
+
none: string;
|
|
68
|
+
};
|
|
69
|
+
icon: {
|
|
70
|
+
base: string;
|
|
71
|
+
color: string;
|
|
72
|
+
size: {
|
|
73
|
+
'2xs': string;
|
|
74
|
+
xs: string;
|
|
75
|
+
sm: string;
|
|
76
|
+
md: string;
|
|
77
|
+
lg: string;
|
|
78
|
+
xl: string;
|
|
79
|
+
};
|
|
80
|
+
leading: {
|
|
81
|
+
wrapper: string;
|
|
82
|
+
pointer: string;
|
|
83
|
+
padding: {
|
|
84
|
+
'2xs': string;
|
|
85
|
+
xs: string;
|
|
86
|
+
sm: string;
|
|
87
|
+
md: string;
|
|
88
|
+
lg: string;
|
|
89
|
+
xl: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
trailing: {
|
|
93
|
+
wrapper: string;
|
|
94
|
+
pointer: string;
|
|
95
|
+
padding: {
|
|
96
|
+
'2xs': string;
|
|
97
|
+
xs: string;
|
|
98
|
+
sm: string;
|
|
99
|
+
md: string;
|
|
100
|
+
lg: string;
|
|
101
|
+
xl: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import input from "./input.mjs";
|
|
2
|
+
export default {
|
|
3
|
+
...input,
|
|
4
|
+
placeholder: "text-gray-900 dark:text-white",
|
|
5
|
+
default: {
|
|
6
|
+
size: "sm",
|
|
7
|
+
color: "white",
|
|
8
|
+
variant: "outline",
|
|
9
|
+
loadingIcon: "i-heroicons-arrow-path-20-solid",
|
|
10
|
+
trailingIcon: "i-heroicons-chevron-down-20-solid"
|
|
11
|
+
}
|
|
12
|
+
};
|