@nuxt/ui 2.11.0 → 2.12.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/dist/module.d.mts +294 -48
- package/dist/module.d.ts +294 -48
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -4
- package/dist/runtime/components/data/Table.vue +29 -21
- package/dist/runtime/components/data/Table.vue.d.ts +28 -19
- package/dist/runtime/components/elements/Accordion.vue +10 -6
- package/dist/runtime/components/elements/Accordion.vue.d.ts +11 -11
- package/dist/runtime/components/elements/Alert.vue +12 -6
- package/dist/runtime/components/elements/Alert.vue.d.ts +12 -17
- package/dist/runtime/components/elements/Avatar.vue +2 -2
- package/dist/runtime/components/elements/Avatar.vue.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.d.ts +7 -7
- package/dist/runtime/components/elements/AvatarGroup.mjs +2 -2
- package/dist/runtime/components/elements/Badge.vue +2 -2
- package/dist/runtime/components/elements/Badge.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Button.vue +8 -6
- package/dist/runtime/components/elements/Button.vue.d.ts +9 -8
- package/dist/runtime/components/elements/ButtonGroup.d.ts +7 -7
- package/dist/runtime/components/elements/ButtonGroup.mjs +3 -16
- package/dist/runtime/components/elements/Chip.vue +2 -2
- package/dist/runtime/components/elements/Chip.vue.d.ts +9 -9
- package/dist/runtime/components/elements/Dropdown.vue +68 -19
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +37 -9
- package/dist/runtime/components/elements/Kbd.vue +2 -2
- package/dist/runtime/components/elements/Kbd.vue.d.ts +7 -7
- package/dist/runtime/components/elements/Link.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue +2 -2
- package/dist/runtime/components/elements/Meter.vue.d.ts +7 -7
- package/dist/runtime/components/elements/MeterGroup.d.ts +9 -9
- package/dist/runtime/components/elements/MeterGroup.mjs +8 -21
- package/dist/runtime/components/elements/Progress.vue +5 -94
- package/dist/runtime/components/elements/Progress.vue.d.ts +123 -1
- package/dist/runtime/components/forms/Checkbox.vue +7 -7
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +8 -8
- package/dist/runtime/components/forms/Form.vue +17 -8
- package/dist/runtime/components/forms/Form.vue.d.ts +1 -1
- package/dist/runtime/components/forms/FormGroup.vue +2 -2
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +7 -7
- package/dist/runtime/components/forms/Input.vue +8 -8
- package/dist/runtime/components/forms/Input.vue.d.ts +11 -11
- package/dist/runtime/components/forms/InputMenu.vue +410 -0
- package/dist/runtime/components/forms/InputMenu.vue.d.ts +331 -0
- package/dist/runtime/components/forms/Radio.vue +7 -7
- package/dist/runtime/components/forms/Radio.vue.d.ts +7 -7
- package/dist/runtime/components/forms/RadioGroup.vue +5 -5
- 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 +8 -8
- package/dist/runtime/components/forms/Select.vue +8 -8
- package/dist/runtime/components/forms/Select.vue.d.ts +10 -10
- package/dist/runtime/components/forms/SelectMenu.vue +69 -36
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +40 -20
- package/dist/runtime/components/forms/Textarea.vue +3 -3
- package/dist/runtime/components/forms/Textarea.vue.d.ts +10 -10
- package/dist/runtime/components/forms/Toggle.vue +10 -10
- package/dist/runtime/components/forms/Toggle.vue.d.ts +16 -15
- 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 +7 -7
- 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 +9 -6
- package/dist/runtime/components/navigation/Breadcrumb.vue.d.ts +10 -7
- package/dist/runtime/components/navigation/CommandPalette.vue +42 -33
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +16 -9
- package/dist/runtime/components/navigation/CommandPaletteGroup.vue +1 -3
- package/dist/runtime/components/navigation/Pagination.vue +16 -11
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +16 -7
- package/dist/runtime/components/navigation/Tabs.vue +8 -5
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +9 -9
- package/dist/runtime/components/navigation/VerticalNavigation.vue +56 -39
- package/dist/runtime/components/navigation/VerticalNavigation.vue.d.ts +14 -10
- 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 +8 -8
- package/dist/runtime/components/overlays/Notification.vue +7 -7
- package/dist/runtime/components/overlays/Notification.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Notifications.vue +2 -2
- package/dist/runtime/components/overlays/Notifications.vue.d.ts +7 -7
- package/dist/runtime/components/overlays/Popover.vue +54 -17
- package/dist/runtime/components/overlays/Popover.vue.d.ts +21 -11
- package/dist/runtime/components/overlays/Slideover.vue +6 -6
- package/dist/runtime/components/overlays/Slideover.vue.d.ts +8 -8
- package/dist/runtime/components/overlays/Tooltip.vue +6 -5
- package/dist/runtime/components/overlays/Tooltip.vue.d.ts +7 -7
- package/dist/runtime/composables/useFormGroup.d.ts +3 -3
- package/dist/runtime/composables/useFormGroup.mjs +1 -1
- package/dist/runtime/composables/useShortcuts.mjs +3 -1
- package/dist/runtime/composables/useUI.d.ts +3 -3
- package/dist/runtime/types/alert.d.ts +5 -0
- package/dist/runtime/types/breadcrumb.d.ts +3 -0
- package/dist/runtime/types/dropdown.d.ts +2 -0
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/popper.d.ts +2 -0
- package/dist/runtime/types/utils.d.ts +4 -4
- package/dist/runtime/types/vertical-navigation.d.ts +1 -0
- package/dist/runtime/ui.config/data/table.d.ts +2 -2
- package/dist/runtime/ui.config/elements/accordion.d.ts +1 -1
- package/dist/runtime/ui.config/elements/alert.d.ts +5 -4
- package/dist/runtime/ui.config/elements/alert.mjs +1 -0
- package/dist/runtime/ui.config/elements/button.d.ts +4 -0
- package/dist/runtime/ui.config/elements/button.mjs +4 -0
- package/dist/runtime/ui.config/elements/buttonGroup.d.ts +92 -0
- package/dist/runtime/ui.config/elements/buttonGroup.mjs +12 -1
- package/dist/runtime/ui.config/elements/dropdown.d.ts +3 -1
- package/dist/runtime/ui.config/elements/dropdown.mjs +4 -2
- package/dist/runtime/ui.config/elements/meterGroup.d.ts +40 -0
- package/dist/runtime/ui.config/elements/meterGroup.mjs +14 -1
- package/dist/runtime/ui.config/forms/checkbox.d.ts +3 -0
- package/dist/runtime/ui.config/forms/checkbox.mjs +3 -0
- package/dist/runtime/ui.config/forms/input.d.ts +2 -0
- package/dist/runtime/ui.config/forms/input.mjs +14 -12
- package/dist/runtime/ui.config/forms/inputMenu.d.ts +64 -0
- package/dist/runtime/ui.config/forms/inputMenu.mjs +62 -0
- package/dist/runtime/ui.config/forms/radio.d.ts +3 -0
- package/dist/runtime/ui.config/forms/radio.mjs +3 -0
- package/dist/runtime/ui.config/forms/select.d.ts +2 -0
- package/dist/runtime/ui.config/forms/select.mjs +1 -0
- package/dist/runtime/ui.config/forms/selectMenu.d.ts +18 -11
- package/dist/runtime/ui.config/forms/selectMenu.mjs +12 -41
- package/dist/runtime/ui.config/forms/textarea.d.ts +2 -0
- package/dist/runtime/ui.config/forms/textarea.mjs +1 -0
- package/dist/runtime/ui.config/index.d.ts +1 -0
- package/dist/runtime/ui.config/index.mjs +1 -0
- package/dist/runtime/ui.config/layout/card.mjs +1 -1
- package/dist/runtime/ui.config/layout/divider.d.ts +6 -1
- package/dist/runtime/ui.config/layout/divider.mjs +5 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.d.ts +1 -0
- package/dist/runtime/ui.config/navigation/breadcrumb.mjs +2 -1
- package/dist/runtime/ui.config/navigation/commandPalette.d.ts +5 -1
- package/dist/runtime/ui.config/navigation/commandPalette.mjs +5 -1
- package/dist/runtime/ui.config/navigation/pagination.d.ts +6 -6
- package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +6 -1
- package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +5 -0
- package/dist/runtime/ui.config/overlays/contextMenu.mjs +1 -1
- package/dist/runtime/ui.config/overlays/modal.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/modal.mjs +3 -2
- package/dist/runtime/ui.config/overlays/notification.d.ts +5 -4
- package/dist/runtime/ui.config/overlays/notification.mjs +1 -0
- package/dist/runtime/ui.config/overlays/popover.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/popover.mjs +2 -1
- package/dist/runtime/ui.config/overlays/slideover.d.ts +5 -0
- package/dist/runtime/ui.config/overlays/slideover.mjs +5 -0
- package/dist/runtime/ui.config/overlays/tooltip.d.ts +1 -0
- package/dist/runtime/ui.config/overlays/tooltip.mjs +2 -1
- package/dist/runtime/ui.config/{_popperArrow.d.ts → popper.d.ts} +1 -2
- package/dist/runtime/ui.config/popper.mjs +9 -0
- package/dist/runtime/ui.css +1 -13
- package/dist/runtime/utils/index.mjs +11 -3
- package/dist/runtime/utils/uid.mjs +2 -1
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +1 -1
- package/package.json +29 -28
- package/dist/runtime/ui.config/_popperArrow.mjs +0 -8
|
@@ -5,5 +5,97 @@ declare const _default: {
|
|
|
5
5
|
};
|
|
6
6
|
rounded: string;
|
|
7
7
|
shadow: string;
|
|
8
|
+
orientation: {
|
|
9
|
+
'rounded-none': {
|
|
10
|
+
horizontal: {
|
|
11
|
+
start: string;
|
|
12
|
+
end: string;
|
|
13
|
+
};
|
|
14
|
+
vertical: {
|
|
15
|
+
start: string;
|
|
16
|
+
end: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
'rounded-sm': {
|
|
20
|
+
horizontal: {
|
|
21
|
+
start: string;
|
|
22
|
+
end: string;
|
|
23
|
+
};
|
|
24
|
+
vertical: {
|
|
25
|
+
start: string;
|
|
26
|
+
end: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
rounded: {
|
|
30
|
+
horizontal: {
|
|
31
|
+
start: string;
|
|
32
|
+
end: string;
|
|
33
|
+
};
|
|
34
|
+
vertical: {
|
|
35
|
+
start: string;
|
|
36
|
+
end: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
'rounded-md': {
|
|
40
|
+
horizontal: {
|
|
41
|
+
start: string;
|
|
42
|
+
end: string;
|
|
43
|
+
};
|
|
44
|
+
vertical: {
|
|
45
|
+
start: string;
|
|
46
|
+
end: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
'rounded-lg': {
|
|
50
|
+
horizontal: {
|
|
51
|
+
start: string;
|
|
52
|
+
end: string;
|
|
53
|
+
};
|
|
54
|
+
vertical: {
|
|
55
|
+
start: string;
|
|
56
|
+
end: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
'rounded-xl': {
|
|
60
|
+
horizontal: {
|
|
61
|
+
start: string;
|
|
62
|
+
end: string;
|
|
63
|
+
};
|
|
64
|
+
vertical: {
|
|
65
|
+
start: string;
|
|
66
|
+
end: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
'rounded-2xl': {
|
|
70
|
+
horizontal: {
|
|
71
|
+
start: string;
|
|
72
|
+
end: string;
|
|
73
|
+
};
|
|
74
|
+
vertical: {
|
|
75
|
+
start: string;
|
|
76
|
+
end: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
'rounded-3xl': {
|
|
80
|
+
horizontal: {
|
|
81
|
+
start: string;
|
|
82
|
+
end: string;
|
|
83
|
+
};
|
|
84
|
+
vertical: {
|
|
85
|
+
start: string;
|
|
86
|
+
end: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
'rounded-full': {
|
|
90
|
+
horizontal: {
|
|
91
|
+
start: string;
|
|
92
|
+
end: string;
|
|
93
|
+
};
|
|
94
|
+
vertical: {
|
|
95
|
+
start: string;
|
|
96
|
+
end: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
8
100
|
};
|
|
9
101
|
export default _default;
|
|
@@ -4,5 +4,16 @@ export default {
|
|
|
4
4
|
vertical: "inline-flex flex-col -space-y-px"
|
|
5
5
|
},
|
|
6
6
|
rounded: "rounded-md",
|
|
7
|
-
shadow: "shadow-sm"
|
|
7
|
+
shadow: "shadow-sm",
|
|
8
|
+
orientation: {
|
|
9
|
+
"rounded-none": { horizontal: { start: "rounded-s-none", end: "rounded-e-none" }, vertical: { start: "rounded-t-none", end: "rounded-b-none" } },
|
|
10
|
+
"rounded-sm": { horizontal: { start: "rounded-s-sm", end: "rounded-e-sm" }, vertical: { start: "rounded-t-sm", end: "rounded-b-sm" } },
|
|
11
|
+
rounded: { horizontal: { start: "rounded-s", end: "rounded-e" }, vertical: { start: "rounded-t", end: "rounded-b" } },
|
|
12
|
+
"rounded-md": { horizontal: { start: "rounded-s-md", end: "rounded-e-md" }, vertical: { start: "rounded-t-md", end: "rounded-b-md" } },
|
|
13
|
+
"rounded-lg": { horizontal: { start: "rounded-s-lg", end: "rounded-e-lg" }, vertical: { start: "rounded-t-lg", end: "rounded-b-lg" } },
|
|
14
|
+
"rounded-xl": { horizontal: { start: "rounded-s-xl", end: "rounded-e-xl" }, vertical: { start: "rounded-t-xl", end: "rounded-b-xl" } },
|
|
15
|
+
"rounded-2xl": { horizontal: { start: "rounded-s-2xl", end: "rounded-e-2xl" }, vertical: { start: "rounded-t-2xl", end: "rounded-b-2xl" } },
|
|
16
|
+
"rounded-3xl": { horizontal: { start: "rounded-s-3xl", end: "rounded-e-3xl" }, vertical: { start: "rounded-t-3xl", end: "rounded-b-3xl" } },
|
|
17
|
+
"rounded-full": { horizontal: { start: "rounded-s-full", end: "rounded-e-full" }, vertical: { start: "rounded-t-full", end: "rounded-b-full" } }
|
|
18
|
+
}
|
|
8
19
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
wrapper: string;
|
|
3
3
|
container: string;
|
|
4
|
+
trigger: string;
|
|
4
5
|
width: string;
|
|
5
6
|
height: string;
|
|
6
7
|
background: string;
|
|
@@ -25,8 +26,9 @@ declare const _default: {
|
|
|
25
26
|
};
|
|
26
27
|
avatar: {
|
|
27
28
|
base: string;
|
|
28
|
-
size:
|
|
29
|
+
size: "3xs";
|
|
29
30
|
};
|
|
31
|
+
label: string;
|
|
30
32
|
shortcuts: string;
|
|
31
33
|
};
|
|
32
34
|
transition: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { arrow } from "../popper.mjs";
|
|
2
2
|
export default {
|
|
3
3
|
wrapper: "relative inline-flex text-left rtl:text-right",
|
|
4
4
|
container: "z-20 group",
|
|
5
|
+
trigger: "inline-flex w-full",
|
|
5
6
|
width: "w-48",
|
|
6
7
|
height: "",
|
|
7
8
|
background: "bg-white dark:bg-gray-800",
|
|
@@ -28,6 +29,7 @@ export default {
|
|
|
28
29
|
base: "flex-shrink-0",
|
|
29
30
|
size: "3xs"
|
|
30
31
|
},
|
|
32
|
+
label: "truncate",
|
|
31
33
|
shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto"
|
|
32
34
|
},
|
|
33
35
|
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
@@ -44,7 +46,7 @@ export default {
|
|
|
44
46
|
strategy: "fixed"
|
|
45
47
|
},
|
|
46
48
|
arrow: {
|
|
47
|
-
...
|
|
49
|
+
...arrow,
|
|
48
50
|
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
|
|
49
51
|
background: "before:bg-white dark:before:bg-gray-700"
|
|
50
52
|
}
|
|
@@ -5,8 +5,48 @@ declare const _default: {
|
|
|
5
5
|
transition: string;
|
|
6
6
|
rounded: string;
|
|
7
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
|
+
};
|
|
8
47
|
default: {
|
|
9
48
|
size: string;
|
|
49
|
+
icon: string;
|
|
10
50
|
};
|
|
11
51
|
};
|
|
12
52
|
export default _default;
|
|
@@ -5,7 +5,20 @@ export default {
|
|
|
5
5
|
transition: "transition-all",
|
|
6
6
|
rounded: "rounded-full",
|
|
7
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
|
+
},
|
|
8
20
|
default: {
|
|
9
|
-
size: "md"
|
|
21
|
+
size: "md",
|
|
22
|
+
icon: "i-heroicons-minus-20-solid"
|
|
10
23
|
}
|
|
11
24
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
wrapper: string;
|
|
3
|
+
container: string;
|
|
3
4
|
base: string;
|
|
5
|
+
form: string;
|
|
4
6
|
rounded: string;
|
|
5
7
|
color: string;
|
|
6
8
|
background: string;
|
|
7
9
|
border: string;
|
|
8
10
|
ring: string;
|
|
11
|
+
inner: string;
|
|
9
12
|
label: string;
|
|
10
13
|
required: string;
|
|
11
14
|
help: string;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
wrapper: "relative flex items-start",
|
|
3
|
+
container: "flex items-center h-5",
|
|
3
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",
|
|
4
6
|
rounded: "rounded",
|
|
5
7
|
color: "text-{color}-500 dark:text-{color}-400",
|
|
6
8
|
background: "bg-white dark:bg-gray-900",
|
|
7
9
|
border: "border border-gray-300 dark:border-gray-700",
|
|
8
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",
|
|
9
12
|
label: "text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
10
13
|
required: "text-sm text-red-500 dark:text-red-400",
|
|
11
14
|
help: "text-sm text-gray-500 dark:text-gray-400",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
wrapper: string;
|
|
3
3
|
base: string;
|
|
4
|
+
form: string;
|
|
4
5
|
rounded: string;
|
|
5
6
|
placeholder: string;
|
|
6
7
|
size: {
|
|
@@ -62,6 +63,7 @@ declare const _default: {
|
|
|
62
63
|
icon: {
|
|
63
64
|
base: string;
|
|
64
65
|
color: string;
|
|
66
|
+
loading: string;
|
|
65
67
|
size: {
|
|
66
68
|
'2xs': string;
|
|
67
69
|
xs: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
wrapper: "relative",
|
|
3
3
|
base: "relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",
|
|
4
|
+
form: "form-input",
|
|
4
5
|
rounded: "rounded-md",
|
|
5
6
|
placeholder: "placeholder-gray-400 dark:placeholder-gray-500",
|
|
6
7
|
size: {
|
|
@@ -62,6 +63,7 @@ export default {
|
|
|
62
63
|
icon: {
|
|
63
64
|
base: "flex-shrink-0 text-gray-400 dark:text-gray-500",
|
|
64
65
|
color: "text-{color}-500 dark:text-{color}-400",
|
|
66
|
+
loading: "animate-spin",
|
|
65
67
|
size: {
|
|
66
68
|
"2xs": "h-4 w-4",
|
|
67
69
|
xs: "h-4 w-4",
|
|
@@ -74,24 +76,24 @@ export default {
|
|
|
74
76
|
wrapper: "absolute inset-y-0 start-0 flex items-center",
|
|
75
77
|
pointer: "pointer-events-none",
|
|
76
78
|
padding: {
|
|
77
|
-
"2xs": "
|
|
78
|
-
xs: "
|
|
79
|
-
sm: "
|
|
80
|
-
md: "
|
|
81
|
-
lg: "
|
|
82
|
-
xl: "
|
|
79
|
+
"2xs": "px-2",
|
|
80
|
+
xs: "px-2.5",
|
|
81
|
+
sm: "px-2.5",
|
|
82
|
+
md: "px-3",
|
|
83
|
+
lg: "px-3.5",
|
|
84
|
+
xl: "px-3.5"
|
|
83
85
|
}
|
|
84
86
|
},
|
|
85
87
|
trailing: {
|
|
86
88
|
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
87
89
|
pointer: "pointer-events-none",
|
|
88
90
|
padding: {
|
|
89
|
-
"2xs": "
|
|
90
|
-
xs: "
|
|
91
|
-
sm: "
|
|
92
|
-
md: "
|
|
93
|
-
lg: "
|
|
94
|
-
xl: "
|
|
91
|
+
"2xs": "px-2",
|
|
92
|
+
xs: "px-2.5",
|
|
93
|
+
sm: "px-2.5",
|
|
94
|
+
md: "px-3",
|
|
95
|
+
lg: "px-3.5",
|
|
96
|
+
xl: "px-3.5"
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
},
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
container: string;
|
|
3
|
+
trigger: string;
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
base: string;
|
|
7
|
+
background: string;
|
|
8
|
+
shadow: string;
|
|
9
|
+
rounded: string;
|
|
10
|
+
padding: string;
|
|
11
|
+
ring: string;
|
|
12
|
+
empty: string;
|
|
13
|
+
option: {
|
|
14
|
+
base: string;
|
|
15
|
+
rounded: string;
|
|
16
|
+
padding: string;
|
|
17
|
+
size: string;
|
|
18
|
+
color: string;
|
|
19
|
+
container: string;
|
|
20
|
+
active: string;
|
|
21
|
+
inactive: string;
|
|
22
|
+
selected: string;
|
|
23
|
+
disabled: string;
|
|
24
|
+
empty: string;
|
|
25
|
+
icon: {
|
|
26
|
+
base: string;
|
|
27
|
+
active: string;
|
|
28
|
+
inactive: string;
|
|
29
|
+
};
|
|
30
|
+
selectedIcon: {
|
|
31
|
+
wrapper: string;
|
|
32
|
+
padding: string;
|
|
33
|
+
base: string;
|
|
34
|
+
};
|
|
35
|
+
avatar: {
|
|
36
|
+
base: string;
|
|
37
|
+
size: "3xs";
|
|
38
|
+
};
|
|
39
|
+
chip: {
|
|
40
|
+
base: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
transition: {
|
|
44
|
+
leaveActiveClass: string;
|
|
45
|
+
leaveFromClass: string;
|
|
46
|
+
leaveToClass: string;
|
|
47
|
+
};
|
|
48
|
+
popper: {
|
|
49
|
+
placement: string;
|
|
50
|
+
};
|
|
51
|
+
default: {
|
|
52
|
+
selectedIcon: string;
|
|
53
|
+
trailingIcon: string;
|
|
54
|
+
};
|
|
55
|
+
arrow: {
|
|
56
|
+
ring: string;
|
|
57
|
+
background: string;
|
|
58
|
+
base: string;
|
|
59
|
+
rounded: string;
|
|
60
|
+
shadow: string;
|
|
61
|
+
placement: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { arrow } from "../popper.mjs";
|
|
2
|
+
export default {
|
|
3
|
+
container: "z-20 group",
|
|
4
|
+
trigger: "inline-flex w-full",
|
|
5
|
+
width: "w-full",
|
|
6
|
+
height: "max-h-60",
|
|
7
|
+
base: "relative focus:outline-none overflow-y-auto scroll-py-1",
|
|
8
|
+
background: "bg-white dark:bg-gray-800",
|
|
9
|
+
shadow: "shadow-lg",
|
|
10
|
+
rounded: "rounded-md",
|
|
11
|
+
padding: "p-1",
|
|
12
|
+
ring: "ring-1 ring-gray-200 dark:ring-gray-700",
|
|
13
|
+
empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
|
|
14
|
+
option: {
|
|
15
|
+
base: "cursor-default select-none relative flex items-center justify-between gap-1",
|
|
16
|
+
rounded: "rounded-md",
|
|
17
|
+
padding: "px-2 py-1.5",
|
|
18
|
+
size: "text-sm",
|
|
19
|
+
color: "text-gray-900 dark:text-white",
|
|
20
|
+
container: "flex items-center gap-2 min-w-0",
|
|
21
|
+
active: "bg-gray-100 dark:bg-gray-900",
|
|
22
|
+
inactive: "",
|
|
23
|
+
selected: "pe-7",
|
|
24
|
+
disabled: "cursor-not-allowed opacity-50",
|
|
25
|
+
empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
|
|
26
|
+
icon: {
|
|
27
|
+
base: "flex-shrink-0 h-4 w-4",
|
|
28
|
+
active: "text-gray-900 dark:text-white",
|
|
29
|
+
inactive: "text-gray-400 dark:text-gray-500"
|
|
30
|
+
},
|
|
31
|
+
selectedIcon: {
|
|
32
|
+
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
33
|
+
padding: "pe-2",
|
|
34
|
+
base: "h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"
|
|
35
|
+
},
|
|
36
|
+
avatar: {
|
|
37
|
+
base: "flex-shrink-0",
|
|
38
|
+
size: "3xs"
|
|
39
|
+
},
|
|
40
|
+
chip: {
|
|
41
|
+
base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
45
|
+
transition: {
|
|
46
|
+
leaveActiveClass: "transition ease-in duration-100",
|
|
47
|
+
leaveFromClass: "opacity-100",
|
|
48
|
+
leaveToClass: "opacity-0"
|
|
49
|
+
},
|
|
50
|
+
popper: {
|
|
51
|
+
placement: "bottom-end"
|
|
52
|
+
},
|
|
53
|
+
default: {
|
|
54
|
+
selectedIcon: "i-heroicons-check-20-solid",
|
|
55
|
+
trailingIcon: "i-heroicons-chevron-down-20-solid"
|
|
56
|
+
},
|
|
57
|
+
arrow: {
|
|
58
|
+
...arrow,
|
|
59
|
+
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
|
|
60
|
+
background: "before:bg-white dark:before:bg-gray-700"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
wrapper: "relative flex items-start",
|
|
3
|
+
container: "flex items-center h-5",
|
|
3
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",
|
|
4
6
|
color: "text-{color}-500 dark:text-{color}-400",
|
|
5
7
|
background: "bg-white dark:bg-gray-900",
|
|
6
8
|
border: "border border-gray-300 dark:border-gray-700",
|
|
7
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",
|
|
8
11
|
label: "text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
9
12
|
required: "text-sm text-red-500 dark:text-red-400",
|
|
10
13
|
help: "text-sm text-gray-500 dark:text-gray-400",
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
3
|
-
width: string;
|
|
4
|
-
height: string;
|
|
5
|
-
base: string;
|
|
6
|
-
background: string;
|
|
7
|
-
shadow: string;
|
|
8
|
-
rounded: string;
|
|
9
|
-
padding: string;
|
|
10
|
-
ring: string;
|
|
2
|
+
select: string;
|
|
11
3
|
input: string;
|
|
4
|
+
required: string;
|
|
5
|
+
label: string;
|
|
12
6
|
option: {
|
|
7
|
+
create: string;
|
|
13
8
|
base: string;
|
|
14
9
|
rounded: string;
|
|
15
10
|
padding: string;
|
|
@@ -33,7 +28,7 @@ declare const _default: {
|
|
|
33
28
|
};
|
|
34
29
|
avatar: {
|
|
35
30
|
base: string;
|
|
36
|
-
size:
|
|
31
|
+
size: "3xs";
|
|
37
32
|
};
|
|
38
33
|
chip: {
|
|
39
34
|
base: string;
|
|
@@ -49,7 +44,8 @@ declare const _default: {
|
|
|
49
44
|
};
|
|
50
45
|
default: {
|
|
51
46
|
selectedIcon: string;
|
|
52
|
-
|
|
47
|
+
clearSearchOnClose: boolean;
|
|
48
|
+
showCreateOptionWhen: string;
|
|
53
49
|
};
|
|
54
50
|
arrow: {
|
|
55
51
|
ring: string;
|
|
@@ -59,5 +55,16 @@ declare const _default: {
|
|
|
59
55
|
shadow: string;
|
|
60
56
|
placement: string;
|
|
61
57
|
};
|
|
58
|
+
container: string;
|
|
59
|
+
trigger: string;
|
|
60
|
+
width: string;
|
|
61
|
+
height: string;
|
|
62
|
+
base: string;
|
|
63
|
+
background: string;
|
|
64
|
+
shadow: string;
|
|
65
|
+
rounded: string;
|
|
66
|
+
padding: string;
|
|
67
|
+
ring: string;
|
|
68
|
+
empty: string;
|
|
62
69
|
};
|
|
63
70
|
export default _default;
|
|
@@ -1,44 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { arrow } from "../popper.mjs";
|
|
2
|
+
import inputMenu from "./inputMenu.mjs";
|
|
2
3
|
export default {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
shadow: "shadow-lg",
|
|
9
|
-
rounded: "rounded-md",
|
|
10
|
-
padding: "p-1",
|
|
11
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-700",
|
|
12
|
-
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",
|
|
4
|
+
...inputMenu,
|
|
5
|
+
select: "inline-flex items-center text-left cursor-default",
|
|
6
|
+
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 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",
|
|
7
|
+
required: "absolute inset-0 w-px opacity-0 cursor-default",
|
|
8
|
+
label: "block truncate",
|
|
13
9
|
option: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
padding: "px-2 py-1.5",
|
|
17
|
-
size: "text-sm",
|
|
18
|
-
color: "text-gray-900 dark:text-white",
|
|
19
|
-
container: "flex items-center gap-2 min-w-0",
|
|
20
|
-
active: "bg-gray-100 dark:bg-gray-900",
|
|
21
|
-
inactive: "",
|
|
22
|
-
selected: "pe-7",
|
|
23
|
-
disabled: "cursor-not-allowed opacity-50",
|
|
24
|
-
empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
|
|
25
|
-
icon: {
|
|
26
|
-
base: "flex-shrink-0 h-4 w-4",
|
|
27
|
-
active: "text-gray-900 dark:text-white",
|
|
28
|
-
inactive: "text-gray-400 dark:text-gray-500"
|
|
29
|
-
},
|
|
30
|
-
selectedIcon: {
|
|
31
|
-
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
32
|
-
padding: "pe-2",
|
|
33
|
-
base: "h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"
|
|
34
|
-
},
|
|
35
|
-
avatar: {
|
|
36
|
-
base: "flex-shrink-0",
|
|
37
|
-
size: "3xs"
|
|
38
|
-
},
|
|
39
|
-
chip: {
|
|
40
|
-
base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full"
|
|
41
|
-
}
|
|
10
|
+
...inputMenu.option,
|
|
11
|
+
create: "block truncate"
|
|
42
12
|
},
|
|
43
13
|
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
44
14
|
transition: {
|
|
@@ -51,10 +21,11 @@ export default {
|
|
|
51
21
|
},
|
|
52
22
|
default: {
|
|
53
23
|
selectedIcon: "i-heroicons-check-20-solid",
|
|
54
|
-
|
|
24
|
+
clearSearchOnClose: false,
|
|
25
|
+
showCreateOptionWhen: "empty"
|
|
55
26
|
},
|
|
56
27
|
arrow: {
|
|
57
|
-
...
|
|
28
|
+
...arrow,
|
|
58
29
|
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
|
|
59
30
|
background: "before:bg-white dark:before:bg-gray-700"
|
|
60
31
|
}
|
|
@@ -13,6 +13,7 @@ export { default as progress } from './elements/progress';
|
|
|
13
13
|
export { default as meter } from './elements/meter';
|
|
14
14
|
export { default as meterGroup } from './elements/meterGroup';
|
|
15
15
|
export { default as input } from './forms/input';
|
|
16
|
+
export { default as inputMenu } from './forms/inputMenu';
|
|
16
17
|
export { default as formGroup } from './forms/formGroup';
|
|
17
18
|
export { default as textarea } from './forms/textarea';
|
|
18
19
|
export { default as select } from './forms/select';
|