@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,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,108 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
default: {
|
|
5
|
+
size: string;
|
|
6
|
+
color: string;
|
|
7
|
+
variant: string;
|
|
8
|
+
loadingIcon: string;
|
|
9
|
+
trailingIcon: string;
|
|
10
|
+
};
|
|
11
|
+
wrapper: string;
|
|
12
|
+
base: string;
|
|
13
|
+
rounded: string;
|
|
14
|
+
size: {
|
|
15
|
+
'2xs': string;
|
|
16
|
+
xs: string;
|
|
17
|
+
sm: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
|
+
xl: string;
|
|
21
|
+
};
|
|
22
|
+
gap: {
|
|
23
|
+
'2xs': string;
|
|
24
|
+
xs: string;
|
|
25
|
+
sm: string;
|
|
26
|
+
md: string;
|
|
27
|
+
lg: string;
|
|
28
|
+
xl: string;
|
|
29
|
+
};
|
|
30
|
+
padding: {
|
|
31
|
+
'2xs': string;
|
|
32
|
+
xs: string;
|
|
33
|
+
sm: string;
|
|
34
|
+
md: string;
|
|
35
|
+
lg: string;
|
|
36
|
+
xl: string;
|
|
37
|
+
};
|
|
38
|
+
leading: {
|
|
39
|
+
padding: {
|
|
40
|
+
'2xs': string;
|
|
41
|
+
xs: string;
|
|
42
|
+
sm: string;
|
|
43
|
+
md: string;
|
|
44
|
+
lg: string;
|
|
45
|
+
xl: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
trailing: {
|
|
49
|
+
padding: {
|
|
50
|
+
'2xs': string;
|
|
51
|
+
xs: string;
|
|
52
|
+
sm: string;
|
|
53
|
+
md: string;
|
|
54
|
+
lg: string;
|
|
55
|
+
xl: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
color: {
|
|
59
|
+
white: {
|
|
60
|
+
outline: string;
|
|
61
|
+
};
|
|
62
|
+
gray: {
|
|
63
|
+
outline: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
variant: {
|
|
67
|
+
outline: string;
|
|
68
|
+
none: string;
|
|
69
|
+
};
|
|
70
|
+
icon: {
|
|
71
|
+
base: string;
|
|
72
|
+
color: string;
|
|
73
|
+
loading: string;
|
|
74
|
+
size: {
|
|
75
|
+
'2xs': string;
|
|
76
|
+
xs: string;
|
|
77
|
+
sm: string;
|
|
78
|
+
md: string;
|
|
79
|
+
lg: string;
|
|
80
|
+
xl: string;
|
|
81
|
+
};
|
|
82
|
+
leading: {
|
|
83
|
+
wrapper: string;
|
|
84
|
+
pointer: string;
|
|
85
|
+
padding: {
|
|
86
|
+
'2xs': string;
|
|
87
|
+
xs: string;
|
|
88
|
+
sm: string;
|
|
89
|
+
md: string;
|
|
90
|
+
lg: string;
|
|
91
|
+
xl: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
trailing: {
|
|
95
|
+
wrapper: string;
|
|
96
|
+
pointer: string;
|
|
97
|
+
padding: {
|
|
98
|
+
'2xs': string;
|
|
99
|
+
xs: string;
|
|
100
|
+
sm: string;
|
|
101
|
+
md: string;
|
|
102
|
+
lg: string;
|
|
103
|
+
xl: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import input from "./input.mjs";
|
|
2
|
+
export default {
|
|
3
|
+
...input,
|
|
4
|
+
form: "form-select",
|
|
5
|
+
placeholder: "text-gray-900 dark:text-white",
|
|
6
|
+
default: {
|
|
7
|
+
size: "sm",
|
|
8
|
+
color: "white",
|
|
9
|
+
variant: "outline",
|
|
10
|
+
loadingIcon: "i-heroicons-arrow-path-20-solid",
|
|
11
|
+
trailingIcon: "i-heroicons-chevron-down-20-solid"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
container: string;
|
|
3
|
+
trigger: string;
|
|
4
|
+
select: string;
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
base: string;
|
|
8
|
+
background: string;
|
|
9
|
+
shadow: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
padding: string;
|
|
12
|
+
ring: string;
|
|
13
|
+
input: string;
|
|
14
|
+
required: string;
|
|
15
|
+
label: string;
|
|
16
|
+
option: {
|
|
17
|
+
base: string;
|
|
18
|
+
rounded: string;
|
|
19
|
+
padding: string;
|
|
20
|
+
size: string;
|
|
21
|
+
color: string;
|
|
22
|
+
container: string;
|
|
23
|
+
active: string;
|
|
24
|
+
inactive: string;
|
|
25
|
+
selected: string;
|
|
26
|
+
disabled: string;
|
|
27
|
+
empty: string;
|
|
28
|
+
create: string;
|
|
29
|
+
icon: {
|
|
30
|
+
base: string;
|
|
31
|
+
active: string;
|
|
32
|
+
inactive: string;
|
|
33
|
+
};
|
|
34
|
+
selectedIcon: {
|
|
35
|
+
wrapper: string;
|
|
36
|
+
padding: string;
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
avatar: {
|
|
40
|
+
base: string;
|
|
41
|
+
size: "3xs";
|
|
42
|
+
};
|
|
43
|
+
chip: {
|
|
44
|
+
base: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
transition: {
|
|
48
|
+
leaveActiveClass: string;
|
|
49
|
+
leaveFromClass: string;
|
|
50
|
+
leaveToClass: string;
|
|
51
|
+
};
|
|
52
|
+
popper: {
|
|
53
|
+
placement: string;
|
|
54
|
+
};
|
|
55
|
+
default: {
|
|
56
|
+
selectedIcon: string;
|
|
57
|
+
clearOnClose: boolean;
|
|
58
|
+
};
|
|
59
|
+
arrow: {
|
|
60
|
+
ring: string;
|
|
61
|
+
background: string;
|
|
62
|
+
base: string;
|
|
63
|
+
rounded: string;
|
|
64
|
+
shadow: string;
|
|
65
|
+
placement: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export default _default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { arrow } from "../popper.mjs";
|
|
2
|
+
export default {
|
|
3
|
+
container: "z-20 group",
|
|
4
|
+
trigger: "inline-flex w-full",
|
|
5
|
+
select: "inline-flex items-center text-left cursor-default",
|
|
6
|
+
width: "w-full",
|
|
7
|
+
height: "max-h-60",
|
|
8
|
+
base: "relative focus:outline-none overflow-y-auto scroll-py-1",
|
|
9
|
+
background: "bg-white dark:bg-gray-800",
|
|
10
|
+
shadow: "shadow-lg",
|
|
11
|
+
rounded: "rounded-md",
|
|
12
|
+
padding: "p-1",
|
|
13
|
+
ring: "ring-1 ring-gray-200 dark:ring-gray-700",
|
|
14
|
+
input: "block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 focus:border-inherit sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",
|
|
15
|
+
required: "absolute inset-0 w-px opacity-0 cursor-default",
|
|
16
|
+
label: "block truncate",
|
|
17
|
+
option: {
|
|
18
|
+
base: "cursor-default select-none relative flex items-center justify-between gap-1",
|
|
19
|
+
rounded: "rounded-md",
|
|
20
|
+
padding: "px-2 py-1.5",
|
|
21
|
+
size: "text-sm",
|
|
22
|
+
color: "text-gray-900 dark:text-white",
|
|
23
|
+
container: "flex items-center gap-2 min-w-0",
|
|
24
|
+
active: "bg-gray-100 dark:bg-gray-900",
|
|
25
|
+
inactive: "",
|
|
26
|
+
selected: "pe-7",
|
|
27
|
+
disabled: "cursor-not-allowed opacity-50",
|
|
28
|
+
empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
|
|
29
|
+
create: "block truncate",
|
|
30
|
+
icon: {
|
|
31
|
+
base: "flex-shrink-0 h-4 w-4",
|
|
32
|
+
active: "text-gray-900 dark:text-white",
|
|
33
|
+
inactive: "text-gray-400 dark:text-gray-500"
|
|
34
|
+
},
|
|
35
|
+
selectedIcon: {
|
|
36
|
+
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
37
|
+
padding: "pe-2",
|
|
38
|
+
base: "h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"
|
|
39
|
+
},
|
|
40
|
+
avatar: {
|
|
41
|
+
base: "flex-shrink-0",
|
|
42
|
+
size: "3xs"
|
|
43
|
+
},
|
|
44
|
+
chip: {
|
|
45
|
+
base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
49
|
+
transition: {
|
|
50
|
+
leaveActiveClass: "transition ease-in duration-100",
|
|
51
|
+
leaveFromClass: "opacity-100",
|
|
52
|
+
leaveToClass: "opacity-0"
|
|
53
|
+
},
|
|
54
|
+
popper: {
|
|
55
|
+
placement: "bottom-end"
|
|
56
|
+
},
|
|
57
|
+
default: {
|
|
58
|
+
selectedIcon: "i-heroicons-check-20-solid",
|
|
59
|
+
clearOnClose: false
|
|
60
|
+
},
|
|
61
|
+
arrow: {
|
|
62
|
+
...arrow,
|
|
63
|
+
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
|
|
64
|
+
background: "before:bg-white dark:before:bg-gray-700"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
form: string;
|
|
3
|
+
default: {
|
|
4
|
+
size: string;
|
|
5
|
+
color: string;
|
|
6
|
+
variant: string;
|
|
7
|
+
};
|
|
8
|
+
wrapper: string;
|
|
9
|
+
base: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
size: {
|
|
13
|
+
'2xs': string;
|
|
14
|
+
xs: string;
|
|
15
|
+
sm: string;
|
|
16
|
+
md: string;
|
|
17
|
+
lg: string;
|
|
18
|
+
xl: string;
|
|
19
|
+
};
|
|
20
|
+
gap: {
|
|
21
|
+
'2xs': string;
|
|
22
|
+
xs: string;
|
|
23
|
+
sm: string;
|
|
24
|
+
md: string;
|
|
25
|
+
lg: string;
|
|
26
|
+
xl: string;
|
|
27
|
+
};
|
|
28
|
+
padding: {
|
|
29
|
+
'2xs': string;
|
|
30
|
+
xs: string;
|
|
31
|
+
sm: string;
|
|
32
|
+
md: string;
|
|
33
|
+
lg: string;
|
|
34
|
+
xl: string;
|
|
35
|
+
};
|
|
36
|
+
leading: {
|
|
37
|
+
padding: {
|
|
38
|
+
'2xs': string;
|
|
39
|
+
xs: string;
|
|
40
|
+
sm: string;
|
|
41
|
+
md: string;
|
|
42
|
+
lg: string;
|
|
43
|
+
xl: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
trailing: {
|
|
47
|
+
padding: {
|
|
48
|
+
'2xs': string;
|
|
49
|
+
xs: string;
|
|
50
|
+
sm: string;
|
|
51
|
+
md: string;
|
|
52
|
+
lg: string;
|
|
53
|
+
xl: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
color: {
|
|
57
|
+
white: {
|
|
58
|
+
outline: string;
|
|
59
|
+
};
|
|
60
|
+
gray: {
|
|
61
|
+
outline: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
variant: {
|
|
65
|
+
outline: string;
|
|
66
|
+
none: string;
|
|
67
|
+
};
|
|
68
|
+
icon: {
|
|
69
|
+
base: string;
|
|
70
|
+
color: string;
|
|
71
|
+
loading: 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,61 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
base: string;
|
|
3
|
+
rounded: string;
|
|
4
|
+
ring: string;
|
|
5
|
+
active: string;
|
|
6
|
+
inactive: string;
|
|
7
|
+
size: {
|
|
8
|
+
'2xs': string;
|
|
9
|
+
xs: string;
|
|
10
|
+
sm: string;
|
|
11
|
+
md: string;
|
|
12
|
+
lg: string;
|
|
13
|
+
xl: string;
|
|
14
|
+
'2xl': string;
|
|
15
|
+
};
|
|
16
|
+
container: {
|
|
17
|
+
base: string;
|
|
18
|
+
active: {
|
|
19
|
+
'2xs': string;
|
|
20
|
+
xs: string;
|
|
21
|
+
sm: string;
|
|
22
|
+
md: string;
|
|
23
|
+
lg: string;
|
|
24
|
+
xl: string;
|
|
25
|
+
'2xl': string;
|
|
26
|
+
};
|
|
27
|
+
inactive: string;
|
|
28
|
+
size: {
|
|
29
|
+
'2xs': string;
|
|
30
|
+
xs: string;
|
|
31
|
+
sm: string;
|
|
32
|
+
md: string;
|
|
33
|
+
lg: string;
|
|
34
|
+
xl: string;
|
|
35
|
+
'2xl': string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
icon: {
|
|
39
|
+
base: string;
|
|
40
|
+
active: string;
|
|
41
|
+
inactive: string;
|
|
42
|
+
size: {
|
|
43
|
+
'2xs': string;
|
|
44
|
+
xs: string;
|
|
45
|
+
sm: string;
|
|
46
|
+
md: string;
|
|
47
|
+
lg: string;
|
|
48
|
+
xl: string;
|
|
49
|
+
'2xl': string;
|
|
50
|
+
};
|
|
51
|
+
on: string;
|
|
52
|
+
off: string;
|
|
53
|
+
};
|
|
54
|
+
default: {
|
|
55
|
+
onIcon: null;
|
|
56
|
+
offIcon: null;
|
|
57
|
+
color: string;
|
|
58
|
+
size: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
base: "relative inline-flex flex-shrink-0 border-2 border-transparent disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none",
|
|
3
|
+
rounded: "rounded-full",
|
|
4
|
+
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",
|
|
5
|
+
active: "bg-{color}-500 dark:bg-{color}-400",
|
|
6
|
+
inactive: "bg-gray-200 dark:bg-gray-700",
|
|
7
|
+
size: {
|
|
8
|
+
"2xs": "h-3 w-5",
|
|
9
|
+
xs: "h-3.5 w-6",
|
|
10
|
+
sm: "h-4 w-7",
|
|
11
|
+
md: "h-5 w-9",
|
|
12
|
+
lg: "h-6 w-11",
|
|
13
|
+
xl: "h-7 w-[3.25rem]",
|
|
14
|
+
"2xl": "h-8 w-[3.75rem]"
|
|
15
|
+
},
|
|
16
|
+
container: {
|
|
17
|
+
base: "pointer-events-none relative inline-block rounded-full bg-white dark:bg-gray-900 shadow transform ring-0 transition ease-in-out duration-200",
|
|
18
|
+
active: {
|
|
19
|
+
"2xs": "translate-x-2 rtl:-translate-x-2",
|
|
20
|
+
xs: "translate-x-2.5 rtl:-translate-x-2.5",
|
|
21
|
+
sm: "translate-x-3 rtl:-translate-x-3",
|
|
22
|
+
md: "translate-x-4 rtl:-translate-x-4",
|
|
23
|
+
lg: "translate-x-5 rtl:-translate-x-5",
|
|
24
|
+
xl: "translate-x-6 rtl:-translate-x-6",
|
|
25
|
+
"2xl": "translate-x-7 rtl:-translate-x-7"
|
|
26
|
+
},
|
|
27
|
+
inactive: "translate-x-0 rtl:-translate-x-0",
|
|
28
|
+
size: {
|
|
29
|
+
"2xs": "h-2 w-2",
|
|
30
|
+
xs: "h-2.5 w-2.5",
|
|
31
|
+
sm: "h-3 w-3",
|
|
32
|
+
md: "h-4 w-4",
|
|
33
|
+
lg: "h-5 w-5",
|
|
34
|
+
xl: "h-6 w-6",
|
|
35
|
+
"2xl": "h-7 w-7"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
icon: {
|
|
39
|
+
base: "absolute inset-0 h-full w-full flex items-center justify-center transition-opacity",
|
|
40
|
+
active: "opacity-100 ease-in duration-200",
|
|
41
|
+
inactive: "opacity-0 ease-out duration-100",
|
|
42
|
+
size: {
|
|
43
|
+
"2xs": "h-2 w-2",
|
|
44
|
+
xs: "h-2 w-2",
|
|
45
|
+
sm: "h-2 w-2",
|
|
46
|
+
md: "h-3 w-3",
|
|
47
|
+
lg: "h-4 w-4",
|
|
48
|
+
xl: "h-5 w-5",
|
|
49
|
+
"2xl": "h-6 w-6"
|
|
50
|
+
},
|
|
51
|
+
on: "text-{color}-500 dark:text-{color}-400",
|
|
52
|
+
off: "text-gray-400 dark:text-gray-500"
|
|
53
|
+
},
|
|
54
|
+
default: {
|
|
55
|
+
onIcon: null,
|
|
56
|
+
offIcon: null,
|
|
57
|
+
color: "primary",
|
|
58
|
+
size: "md"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { default as table } from './data/table';
|
|
2
|
+
export { default as avatar } from './elements/avatar';
|
|
3
|
+
export { default as avatarGroup } from './elements/avatarGroup';
|
|
4
|
+
export { default as badge } from './elements/badge';
|
|
5
|
+
export { default as button } from './elements/button';
|
|
6
|
+
export { default as buttonGroup } from './elements/buttonGroup';
|
|
7
|
+
export { default as chip } from './elements/chip';
|
|
8
|
+
export { default as dropdown } from './elements/dropdown';
|
|
9
|
+
export { default as accordion } from './elements/accordion';
|
|
10
|
+
export { default as alert } from './elements/alert';
|
|
11
|
+
export { default as kbd } from './elements/kbd';
|
|
12
|
+
export { default as progress } from './elements/progress';
|
|
13
|
+
export { default as meter } from './elements/meter';
|
|
14
|
+
export { default as meterGroup } from './elements/meterGroup';
|
|
15
|
+
export { default as input } from './forms/input';
|
|
16
|
+
export { default as formGroup } from './forms/formGroup';
|
|
17
|
+
export { default as textarea } from './forms/textarea';
|
|
18
|
+
export { default as select } from './forms/select';
|
|
19
|
+
export { default as selectMenu } from './forms/selectMenu';
|
|
20
|
+
export { default as radioGroup } from './forms/radioGroup';
|
|
21
|
+
export { default as radio } from './forms/radio';
|
|
22
|
+
export { default as checkbox } from './forms/checkbox';
|
|
23
|
+
export { default as toggle } from './forms/toggle';
|
|
24
|
+
export { default as range } from './forms/range';
|
|
25
|
+
export { default as card } from './layout/card';
|
|
26
|
+
export { default as container } from './layout/container';
|
|
27
|
+
export { default as skeleton } from './layout/skeleton';
|
|
28
|
+
export { default as divider } from './layout/divider';
|
|
29
|
+
export { default as verticalNavigation } from './navigation/verticalNavigation';
|
|
30
|
+
export { default as commandPalette } from './navigation/commandPalette';
|
|
31
|
+
export { default as pagination } from './navigation/pagination';
|
|
32
|
+
export { default as tabs } from './navigation/tabs';
|
|
33
|
+
export { default as breadcrumb } from './navigation/breadcrumb';
|
|
34
|
+
export { default as modal } from './overlays/modal';
|
|
35
|
+
export { default as slideover } from './overlays/slideover';
|
|
36
|
+
export { default as tooltip } from './overlays/tooltip';
|
|
37
|
+
export { default as popover } from './overlays/popover';
|
|
38
|
+
export { default as contextMenu } from './overlays/contextMenu';
|
|
39
|
+
export { default as notification } from './overlays/notification';
|
|
40
|
+
export { default as notifications } from './overlays/notifications';
|