@nuxt/ui 2.10.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 +191 -82
- package/dist/module.d.ts +191 -82
- package/dist/module.json +1 -1
- package/dist/module.mjs +12 -5
- 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 +6 -6
- 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 +31 -17
- package/dist/runtime/components/elements/Dropdown.vue.d.ts +6 -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.d.ts +3 -3
- package/dist/runtime/components/elements/MeterGroup.d.ts +2 -2
- package/dist/runtime/components/elements/Progress.vue +1 -1
- package/dist/runtime/components/forms/Checkbox.vue +2 -4
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +5 -5
- 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 +36 -5
- package/dist/runtime/components/forms/Input.vue.d.ts +32 -9
- package/dist/runtime/components/forms/Radio.vue +12 -6
- package/dist/runtime/components/forms/Radio.vue.d.ts +5 -4
- package/dist/runtime/components/forms/RadioGroup.vue +1 -1
- package/dist/runtime/components/forms/RadioGroup.vue.d.ts +1 -1
- package/dist/runtime/components/forms/Range.vue.d.ts +6 -5
- package/dist/runtime/components/forms/Select.vue +5 -2
- package/dist/runtime/components/forms/Select.vue.d.ts +9 -8
- package/dist/runtime/components/forms/SelectMenu.vue +24 -7
- package/dist/runtime/components/forms/SelectMenu.vue.d.ts +18 -9
- package/dist/runtime/components/forms/Textarea.vue +33 -3
- package/dist/runtime/components/forms/Textarea.vue.d.ts +31 -8
- package/dist/runtime/components/forms/Toggle.vue +19 -1
- package/dist/runtime/components/forms/Toggle.vue.d.ts +15 -2
- package/dist/runtime/components/layout/Divider.vue.d.ts +3 -3
- 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 +8 -4
- package/dist/runtime/components/navigation/CommandPalette.vue.d.ts +1 -1
- package/dist/runtime/components/navigation/Pagination.vue.d.ts +4 -4
- package/dist/runtime/components/navigation/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/overlays/Notification.vue +27 -28
- 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 +9 -0
- package/dist/runtime/components/overlays/Popover.vue.d.ts +13 -2
- 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 +4 -2
- package/dist/runtime/composables/useFormGroup.mjs +3 -2
- package/dist/runtime/composables/useShortcuts.d.ts +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/dropdown.d.ts +2 -2
- package/dist/runtime/types/form-group.d.ts +5 -0
- package/dist/runtime/types/form.d.ts +2 -1
- 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/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 +32 -19
- package/dist/runtime/ui.config.d.ts +0 -1470
- package/dist/runtime/ui.config.mjs +0 -1273
|
@@ -1,1273 +0,0 @@
|
|
|
1
|
-
const _popperArrow = {
|
|
2
|
-
base: "before:w-2 before:h-2",
|
|
3
|
-
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",
|
|
4
|
-
rounded: "before:rounded-sm",
|
|
5
|
-
background: "before:bg-gray-200 dark:before:bg-gray-800",
|
|
6
|
-
shadow: "before:shadow",
|
|
7
|
-
placement: 'group-data-[popper-placement*="right"]:-left-1 group-data-[popper-placement*="left"]:-right-1 group-data-[popper-placement*="top"]:-bottom-1 group-data-[popper-placement*="bottom"]:-top-1'
|
|
8
|
-
};
|
|
9
|
-
export const table = {
|
|
10
|
-
wrapper: "relative overflow-x-auto",
|
|
11
|
-
base: "min-w-full table-fixed",
|
|
12
|
-
divide: "divide-y divide-gray-300 dark:divide-gray-700",
|
|
13
|
-
thead: "",
|
|
14
|
-
tbody: "divide-y divide-gray-200 dark:divide-gray-800",
|
|
15
|
-
tr: {
|
|
16
|
-
base: "",
|
|
17
|
-
selected: "bg-gray-50 dark:bg-gray-800/50",
|
|
18
|
-
active: "hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer"
|
|
19
|
-
},
|
|
20
|
-
th: {
|
|
21
|
-
base: "text-left rtl:text-right",
|
|
22
|
-
padding: "px-3 py-3.5",
|
|
23
|
-
color: "text-gray-900 dark:text-white",
|
|
24
|
-
font: "font-semibold",
|
|
25
|
-
size: "text-sm"
|
|
26
|
-
},
|
|
27
|
-
td: {
|
|
28
|
-
base: "whitespace-nowrap",
|
|
29
|
-
padding: "px-3 py-4",
|
|
30
|
-
color: "text-gray-500 dark:text-gray-400",
|
|
31
|
-
font: "",
|
|
32
|
-
size: "text-sm"
|
|
33
|
-
},
|
|
34
|
-
checkbox: {
|
|
35
|
-
padding: "ps-4"
|
|
36
|
-
},
|
|
37
|
-
loadingState: {
|
|
38
|
-
wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
|
|
39
|
-
label: "text-sm text-center text-gray-900 dark:text-white",
|
|
40
|
-
icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4 animate-spin"
|
|
41
|
-
},
|
|
42
|
-
emptyState: {
|
|
43
|
-
wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
|
|
44
|
-
label: "text-sm text-center text-gray-900 dark:text-white",
|
|
45
|
-
icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"
|
|
46
|
-
},
|
|
47
|
-
default: {
|
|
48
|
-
sortAscIcon: "i-heroicons-bars-arrow-up-20-solid",
|
|
49
|
-
sortDescIcon: "i-heroicons-bars-arrow-down-20-solid",
|
|
50
|
-
sortButton: {
|
|
51
|
-
icon: "i-heroicons-arrows-up-down-20-solid",
|
|
52
|
-
trailing: true,
|
|
53
|
-
square: true,
|
|
54
|
-
color: "gray",
|
|
55
|
-
variant: "ghost",
|
|
56
|
-
class: "-m-1.5"
|
|
57
|
-
},
|
|
58
|
-
loadingState: {
|
|
59
|
-
icon: "i-heroicons-arrow-path-20-solid",
|
|
60
|
-
label: "Loading..."
|
|
61
|
-
},
|
|
62
|
-
emptyState: {
|
|
63
|
-
icon: "i-heroicons-circle-stack-20-solid",
|
|
64
|
-
label: "No items."
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
export const avatar = {
|
|
69
|
-
wrapper: "relative inline-flex items-center justify-center flex-shrink-0",
|
|
70
|
-
background: "bg-gray-100 dark:bg-gray-800",
|
|
71
|
-
rounded: "rounded-full",
|
|
72
|
-
text: "font-medium leading-none text-gray-900 dark:text-white truncate",
|
|
73
|
-
placeholder: "font-medium leading-none text-gray-500 dark:text-gray-400 truncate",
|
|
74
|
-
size: {
|
|
75
|
-
"3xs": "h-4 w-4 text-[8px]",
|
|
76
|
-
"2xs": "h-5 w-5 text-[10px]",
|
|
77
|
-
xs: "h-6 w-6 text-xs",
|
|
78
|
-
sm: "h-8 w-8 text-sm",
|
|
79
|
-
md: "h-10 w-10 text-base",
|
|
80
|
-
lg: "h-12 w-12 text-lg",
|
|
81
|
-
xl: "h-14 w-14 text-xl",
|
|
82
|
-
"2xl": "h-16 w-16 text-2xl",
|
|
83
|
-
"3xl": "h-20 w-20 text-3xl"
|
|
84
|
-
},
|
|
85
|
-
chip: {
|
|
86
|
-
base: "absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",
|
|
87
|
-
background: "bg-{color}-500 dark:bg-{color}-400",
|
|
88
|
-
position: {
|
|
89
|
-
"top-right": "top-0 right-0",
|
|
90
|
-
"bottom-right": "bottom-0 right-0",
|
|
91
|
-
"top-left": "top-0 left-0",
|
|
92
|
-
"bottom-left": "bottom-0 left-0"
|
|
93
|
-
},
|
|
94
|
-
size: {
|
|
95
|
-
"3xs": "h-[4px] min-w-[4px] text-[4px] p-px",
|
|
96
|
-
"2xs": "h-[5px] min-w-[5px] text-[5px] p-px",
|
|
97
|
-
xs: "h-1.5 min-w-[0.375rem] text-[6px] p-px",
|
|
98
|
-
sm: "h-2 min-w-[0.5rem] text-[7px] p-0.5",
|
|
99
|
-
md: "h-2.5 min-w-[0.625rem] text-[8px] p-0.5",
|
|
100
|
-
lg: "h-3 min-w-[0.75rem] text-[10px] p-0.5",
|
|
101
|
-
xl: "h-3.5 min-w-[0.875rem] text-[11px] p-1",
|
|
102
|
-
"2xl": "h-4 min-w-[1rem] text-[12px] p-1",
|
|
103
|
-
"3xl": "h-5 min-w-[1.25rem] text-[14px] p-1"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
icon: {
|
|
107
|
-
base: "text-gray-500 dark:text-gray-400 flex-shrink-0",
|
|
108
|
-
size: {
|
|
109
|
-
"3xs": "h-2 w-2",
|
|
110
|
-
"2xs": "h-2.5 w-2.5",
|
|
111
|
-
xs: "h-3 w-3",
|
|
112
|
-
sm: "h-4 w-4",
|
|
113
|
-
md: "h-5 w-5",
|
|
114
|
-
lg: "h-6 w-6",
|
|
115
|
-
xl: "h-7 w-7",
|
|
116
|
-
"2xl": "h-8 w-8",
|
|
117
|
-
"3xl": "h-10 w-10"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
default: {
|
|
121
|
-
size: "sm",
|
|
122
|
-
icon: null,
|
|
123
|
-
chipColor: null,
|
|
124
|
-
chipPosition: "top-right"
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
export const avatarGroup = {
|
|
128
|
-
wrapper: "inline-flex flex-row-reverse justify-end",
|
|
129
|
-
ring: "ring-2 ring-white dark:ring-gray-900",
|
|
130
|
-
margin: "-me-1.5 first:me-0"
|
|
131
|
-
};
|
|
132
|
-
export const badge = {
|
|
133
|
-
base: "inline-flex items-center",
|
|
134
|
-
rounded: "rounded-md",
|
|
135
|
-
font: "font-medium",
|
|
136
|
-
size: {
|
|
137
|
-
xs: "text-xs px-1.5 py-0.5",
|
|
138
|
-
sm: "text-xs px-2 py-1",
|
|
139
|
-
md: "text-sm px-2 py-1",
|
|
140
|
-
lg: "text-sm px-2.5 py-1.5"
|
|
141
|
-
},
|
|
142
|
-
color: {
|
|
143
|
-
white: {
|
|
144
|
-
solid: "ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white dark:bg-gray-900"
|
|
145
|
-
},
|
|
146
|
-
gray: {
|
|
147
|
-
solid: "ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 dark:bg-gray-800"
|
|
148
|
-
},
|
|
149
|
-
black: {
|
|
150
|
-
solid: "text-white dark:text-gray-900 bg-gray-900 dark:bg-white"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
variant: {
|
|
154
|
-
solid: "bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",
|
|
155
|
-
outline: "text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",
|
|
156
|
-
soft: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",
|
|
157
|
-
subtle: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25"
|
|
158
|
-
},
|
|
159
|
-
default: {
|
|
160
|
-
size: "sm",
|
|
161
|
-
variant: "solid",
|
|
162
|
-
color: "primary"
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
export const button = {
|
|
166
|
-
base: "focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0",
|
|
167
|
-
font: "font-medium",
|
|
168
|
-
rounded: "rounded-md",
|
|
169
|
-
size: {
|
|
170
|
-
"2xs": "text-xs",
|
|
171
|
-
xs: "text-xs",
|
|
172
|
-
sm: "text-sm",
|
|
173
|
-
md: "text-sm",
|
|
174
|
-
lg: "text-sm",
|
|
175
|
-
xl: "text-base"
|
|
176
|
-
},
|
|
177
|
-
gap: {
|
|
178
|
-
"2xs": "gap-x-1",
|
|
179
|
-
xs: "gap-x-1.5",
|
|
180
|
-
sm: "gap-x-1.5",
|
|
181
|
-
md: "gap-x-2",
|
|
182
|
-
lg: "gap-x-2.5",
|
|
183
|
-
xl: "gap-x-2.5"
|
|
184
|
-
},
|
|
185
|
-
padding: {
|
|
186
|
-
"2xs": "px-2 py-1",
|
|
187
|
-
xs: "px-2.5 py-1.5",
|
|
188
|
-
sm: "px-2.5 py-1.5",
|
|
189
|
-
md: "px-3 py-2",
|
|
190
|
-
lg: "px-3.5 py-2.5",
|
|
191
|
-
xl: "px-3.5 py-2.5"
|
|
192
|
-
},
|
|
193
|
-
square: {
|
|
194
|
-
"2xs": "p-1",
|
|
195
|
-
xs: "p-1.5",
|
|
196
|
-
sm: "p-1.5",
|
|
197
|
-
md: "p-2",
|
|
198
|
-
lg: "p-2.5",
|
|
199
|
-
xl: "p-2.5"
|
|
200
|
-
},
|
|
201
|
-
color: {
|
|
202
|
-
white: {
|
|
203
|
-
solid: "shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-900 dark:text-white bg-white hover:bg-gray-50 disabled:bg-white dark:bg-gray-900 dark:hover:bg-gray-800/50 dark:disabled:bg-gray-900 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
204
|
-
ghost: "text-gray-900 dark:text-white hover:bg-white dark:hover:bg-gray-900 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"
|
|
205
|
-
},
|
|
206
|
-
gray: {
|
|
207
|
-
solid: "shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
208
|
-
ghost: "text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
209
|
-
link: "text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"
|
|
210
|
-
},
|
|
211
|
-
black: {
|
|
212
|
-
solid: "shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
213
|
-
link: "text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400"
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
variant: {
|
|
217
|
-
solid: "shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",
|
|
218
|
-
outline: "ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
|
|
219
|
-
soft: "text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
|
|
220
|
-
ghost: "text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
|
|
221
|
-
link: "text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400"
|
|
222
|
-
},
|
|
223
|
-
icon: {
|
|
224
|
-
base: "flex-shrink-0",
|
|
225
|
-
size: {
|
|
226
|
-
"2xs": "h-4 w-4",
|
|
227
|
-
xs: "h-4 w-4",
|
|
228
|
-
sm: "h-5 w-5",
|
|
229
|
-
md: "h-5 w-5",
|
|
230
|
-
lg: "h-5 w-5",
|
|
231
|
-
xl: "h-6 w-6"
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
default: {
|
|
235
|
-
size: "sm",
|
|
236
|
-
variant: "solid",
|
|
237
|
-
color: "primary",
|
|
238
|
-
loadingIcon: "i-heroicons-arrow-path-20-solid"
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
export const buttonGroup = {
|
|
242
|
-
wrapper: {
|
|
243
|
-
horizontal: "inline-flex -space-x-px",
|
|
244
|
-
vertical: "inline-flex flex-col -space-y-px"
|
|
245
|
-
},
|
|
246
|
-
rounded: "rounded-md",
|
|
247
|
-
shadow: "shadow-sm"
|
|
248
|
-
};
|
|
249
|
-
export const dropdown = {
|
|
250
|
-
wrapper: "relative inline-flex text-left rtl:text-right",
|
|
251
|
-
container: "z-20 group",
|
|
252
|
-
width: "w-48",
|
|
253
|
-
height: "",
|
|
254
|
-
background: "bg-white dark:bg-gray-800",
|
|
255
|
-
shadow: "shadow-lg",
|
|
256
|
-
rounded: "rounded-md",
|
|
257
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-700",
|
|
258
|
-
base: "relative focus:outline-none overflow-y-auto scroll-py-1",
|
|
259
|
-
divide: "divide-y divide-gray-200 dark:divide-gray-700",
|
|
260
|
-
padding: "p-1",
|
|
261
|
-
item: {
|
|
262
|
-
base: "group flex items-center gap-2 w-full",
|
|
263
|
-
rounded: "rounded-md",
|
|
264
|
-
padding: "px-2 py-1.5",
|
|
265
|
-
size: "text-sm",
|
|
266
|
-
active: "bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-white",
|
|
267
|
-
inactive: "text-gray-700 dark:text-gray-200",
|
|
268
|
-
disabled: "cursor-not-allowed opacity-50",
|
|
269
|
-
icon: {
|
|
270
|
-
base: "flex-shrink-0 h-4 w-4",
|
|
271
|
-
active: "text-gray-500 dark:text-gray-400",
|
|
272
|
-
inactive: "text-gray-400 dark:text-gray-500"
|
|
273
|
-
},
|
|
274
|
-
avatar: {
|
|
275
|
-
base: "flex-shrink-0",
|
|
276
|
-
size: "3xs"
|
|
277
|
-
},
|
|
278
|
-
shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto"
|
|
279
|
-
},
|
|
280
|
-
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
281
|
-
transition: {
|
|
282
|
-
enterActiveClass: "transition duration-100 ease-out",
|
|
283
|
-
enterFromClass: "transform scale-95 opacity-0",
|
|
284
|
-
enterToClass: "transform scale-100 opacity-100",
|
|
285
|
-
leaveActiveClass: "transition duration-75 ease-in",
|
|
286
|
-
leaveFromClass: "transform scale-100 opacity-100",
|
|
287
|
-
leaveToClass: "transform scale-95 opacity-0"
|
|
288
|
-
},
|
|
289
|
-
popper: {
|
|
290
|
-
placement: "bottom-end",
|
|
291
|
-
strategy: "fixed"
|
|
292
|
-
},
|
|
293
|
-
arrow: {
|
|
294
|
-
..._popperArrow,
|
|
295
|
-
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
|
|
296
|
-
background: "before:bg-white dark:before:bg-gray-700"
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
export const accordion = {
|
|
300
|
-
wrapper: "w-full flex flex-col",
|
|
301
|
-
item: {
|
|
302
|
-
base: "",
|
|
303
|
-
size: "text-sm",
|
|
304
|
-
color: "text-gray-500 dark:text-gray-400",
|
|
305
|
-
padding: "pt-1.5 pb-3",
|
|
306
|
-
icon: "ms-auto transform transition-transform duration-200"
|
|
307
|
-
},
|
|
308
|
-
transition: {
|
|
309
|
-
enterActiveClass: "overflow-hidden transition-[height] duration-200 ease-out",
|
|
310
|
-
leaveActiveClass: "overflow-hidden transition-[height] duration-200 ease-out"
|
|
311
|
-
},
|
|
312
|
-
default: {
|
|
313
|
-
openIcon: "i-heroicons-chevron-down-20-solid",
|
|
314
|
-
closeIcon: "",
|
|
315
|
-
class: "mb-1.5 w-full",
|
|
316
|
-
variant: "soft"
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
export const alert = {
|
|
320
|
-
wrapper: "w-full relative overflow-hidden",
|
|
321
|
-
title: "text-sm font-medium",
|
|
322
|
-
description: "mt-1 text-sm leading-4 opacity-90",
|
|
323
|
-
shadow: "",
|
|
324
|
-
rounded: "rounded-lg",
|
|
325
|
-
padding: "p-3",
|
|
326
|
-
icon: {
|
|
327
|
-
base: "flex-shrink-0 w-5 h-5"
|
|
328
|
-
},
|
|
329
|
-
avatar: {
|
|
330
|
-
base: "flex-shrink-0 self-center",
|
|
331
|
-
size: "md"
|
|
332
|
-
},
|
|
333
|
-
color: {
|
|
334
|
-
white: {
|
|
335
|
-
solid: "text-gray-900 dark:text-white bg-white dark:bg-gray-900 ring-1 ring-gray-200 dark:ring-gray-800"
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
variant: {
|
|
339
|
-
solid: "bg-{color}-500 dark:bg-{color}-400 text-white dark:text-gray-900",
|
|
340
|
-
outline: "text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400",
|
|
341
|
-
soft: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400",
|
|
342
|
-
subtle: "bg-{color}-50 dark:bg-{color}-400 dark:bg-opacity-10 text-{color}-500 dark:text-{color}-400 ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 ring-opacity-25 dark:ring-opacity-25"
|
|
343
|
-
},
|
|
344
|
-
default: {
|
|
345
|
-
color: "white",
|
|
346
|
-
variant: "solid",
|
|
347
|
-
icon: null,
|
|
348
|
-
closeButton: null,
|
|
349
|
-
actionButton: {
|
|
350
|
-
size: "xs",
|
|
351
|
-
color: "primary",
|
|
352
|
-
variant: "link"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
export const kbd = {
|
|
357
|
-
base: "inline-flex items-center justify-center text-gray-900 dark:text-white",
|
|
358
|
-
padding: "px-1",
|
|
359
|
-
size: {
|
|
360
|
-
xs: "h-4 min-w-[16px] text-[10px]",
|
|
361
|
-
sm: "h-5 min-w-[20px] text-[11px]",
|
|
362
|
-
md: "h-6 min-w-[24px] text-[12px]"
|
|
363
|
-
},
|
|
364
|
-
rounded: "rounded",
|
|
365
|
-
font: "font-medium font-sans",
|
|
366
|
-
background: "bg-gray-100 dark:bg-gray-800",
|
|
367
|
-
ring: "ring-1 ring-gray-300 dark:ring-gray-700 ring-inset",
|
|
368
|
-
default: {
|
|
369
|
-
size: "sm"
|
|
370
|
-
}
|
|
371
|
-
};
|
|
372
|
-
export const progress = {
|
|
373
|
-
wrapper: "w-full flex flex-col gap-2",
|
|
374
|
-
indicator: {
|
|
375
|
-
container: {
|
|
376
|
-
base: "flex flex-row justify-end",
|
|
377
|
-
width: "min-w-fit",
|
|
378
|
-
transition: "transition-all"
|
|
379
|
-
},
|
|
380
|
-
align: "text-end",
|
|
381
|
-
width: "w-fit",
|
|
382
|
-
color: "text-gray-400 dark:text-gray-500",
|
|
383
|
-
size: {
|
|
384
|
-
"2xs": "text-xs",
|
|
385
|
-
xs: "text-xs",
|
|
386
|
-
sm: "text-sm",
|
|
387
|
-
md: "text-sm",
|
|
388
|
-
lg: "text-sm",
|
|
389
|
-
xl: "text-base",
|
|
390
|
-
"2xl": "text-base"
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
progress: {
|
|
394
|
-
base: "block appearance-none border-none overflow-hidden",
|
|
395
|
-
width: "w-full [&::-webkit-progress-bar]:w-full",
|
|
396
|
-
size: {
|
|
397
|
-
"2xs": "h-px",
|
|
398
|
-
xs: "h-0.5",
|
|
399
|
-
sm: "h-1",
|
|
400
|
-
md: "h-2",
|
|
401
|
-
lg: "h-3",
|
|
402
|
-
xl: "h-4",
|
|
403
|
-
"2xl": "h-5"
|
|
404
|
-
},
|
|
405
|
-
rounded: "rounded-full [&::-webkit-progress-bar]:rounded-full",
|
|
406
|
-
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",
|
|
407
|
-
bar: "[&::-webkit-progress-value]:rounded-full [&::-webkit-progress-value]:transition-all [&::-webkit-progress-value]:ease-in-out [&::-moz-progress-bar]:rounded-full",
|
|
408
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
409
|
-
background: "[&::-webkit-progress-value]:bg-current [&::-moz-progress-bar]:bg-current",
|
|
410
|
-
indeterminate: {
|
|
411
|
-
base: "indeterminate:relative",
|
|
412
|
-
rounded: "indeterminate:after:rounded-full [&:indeterminate::-webkit-progress-value]:rounded-full [&:indeterminate::-moz-progress-bar]:rounded-full"
|
|
413
|
-
}
|
|
414
|
-
},
|
|
415
|
-
steps: {
|
|
416
|
-
base: "grid grid-cols-1",
|
|
417
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
418
|
-
size: {
|
|
419
|
-
"2xs": "text-xs",
|
|
420
|
-
xs: "text-xs",
|
|
421
|
-
sm: "text-sm",
|
|
422
|
-
md: "text-sm",
|
|
423
|
-
lg: "text-sm",
|
|
424
|
-
xl: "text-base",
|
|
425
|
-
"2xl": "text-base"
|
|
426
|
-
}
|
|
427
|
-
},
|
|
428
|
-
step: {
|
|
429
|
-
base: "transition-all opacity-0 truncate row-start-1 col-start-1",
|
|
430
|
-
align: "text-end",
|
|
431
|
-
active: "opacity-100",
|
|
432
|
-
first: "text-gray-500 dark:text-gray-400"
|
|
433
|
-
},
|
|
434
|
-
animation: {
|
|
435
|
-
carousel: "bar-animation-carousel",
|
|
436
|
-
"carousel-inverse": "bar-animation-carousel-inverse",
|
|
437
|
-
swing: "bar-animation-swing",
|
|
438
|
-
elastic: "bar-animation-elastic"
|
|
439
|
-
},
|
|
440
|
-
default: {
|
|
441
|
-
color: "primary",
|
|
442
|
-
size: "md",
|
|
443
|
-
animation: "carousel"
|
|
444
|
-
}
|
|
445
|
-
};
|
|
446
|
-
export const meter = {
|
|
447
|
-
wrapper: "w-full flex flex-col gap-2",
|
|
448
|
-
indicator: {
|
|
449
|
-
container: "min-w-fit transition-all",
|
|
450
|
-
text: "text-gray-400 dark:text-gray-500 text-end",
|
|
451
|
-
size: {
|
|
452
|
-
"2xs": "text-xs",
|
|
453
|
-
xs: "text-xs",
|
|
454
|
-
sm: "text-sm",
|
|
455
|
-
md: "text-sm",
|
|
456
|
-
lg: "text-sm",
|
|
457
|
-
xl: "text-base",
|
|
458
|
-
"2xl": "text-base"
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
meter: {
|
|
462
|
-
base: "appearance-none block w-full bg-none overflow-y-hidden",
|
|
463
|
-
background: "bg-gray-200 dark:bg-gray-700",
|
|
464
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
465
|
-
ring: "",
|
|
466
|
-
rounded: "rounded-full",
|
|
467
|
-
shadow: "",
|
|
468
|
-
size: {
|
|
469
|
-
"2xs": "h-px",
|
|
470
|
-
xs: "h-0.5",
|
|
471
|
-
sm: "h-1",
|
|
472
|
-
md: "h-2",
|
|
473
|
-
lg: "h-3",
|
|
474
|
-
xl: "h-4",
|
|
475
|
-
"2xl": "h-5"
|
|
476
|
-
},
|
|
477
|
-
appearance: {
|
|
478
|
-
inner: "[&::-webkit-meter-inner-element]:block [&::-webkit-meter-inner-element]:relative [&::-webkit-meter-inner-element]:border-none [&::-webkit-meter-inner-element]:bg-none [&::-webkit-meter-inner-element]:bg-transparent",
|
|
479
|
-
meter: "[&::-webkit-meter-bar]:border-none [&::-webkit-meter-bar]:bg-none [&::-webkit-meter-bar]:bg-transparent",
|
|
480
|
-
bar: "[&::-webkit-meter-optimum-value]:border-none [&::-webkit-meter-optimum-value]:bg-none [&::-webkit-meter-optimum-value]:bg-current",
|
|
481
|
-
value: "[&::-moz-meter-bar]:border-none [&::-moz-meter-bar]:bg-none [&::-moz-meter-bar]:bg-current"
|
|
482
|
-
},
|
|
483
|
-
bar: {
|
|
484
|
-
transition: "[&::-webkit-meter-optimum-value]:transition-all [&::-moz-meter-bar]:transition-all",
|
|
485
|
-
ring: "",
|
|
486
|
-
rounded: "[&::-webkit-meter-optimum-value]:rounded-full [&::-moz-meter-bar]:rounded-full",
|
|
487
|
-
size: {
|
|
488
|
-
"2xs": "[&::-webkit-meter-optimum-value]:h-px [&::-moz-meter-bar]:h-px",
|
|
489
|
-
xs: "[&::-webkit-meter-optimum-value]:h-0.5 [&::-moz-meter-bar]:h-0.5",
|
|
490
|
-
sm: "[&::-webkit-meter-optimum-value]:h-1 [&::-moz-meter-bar]:h-1",
|
|
491
|
-
md: "[&::-webkit-meter-optimum-value]:h-2 [&::-moz-meter-bar]:h-2",
|
|
492
|
-
lg: "[&::-webkit-meter-optimum-value]:h-3 [&::-moz-meter-bar]:h-3",
|
|
493
|
-
xl: "[&::-webkit-meter-optimum-value]:h-4 [&::-moz-meter-bar]:h-4",
|
|
494
|
-
"2xl": "[&::-webkit-meter-optimum-value]:h-5 [&::-moz-meter-bar]:h-5"
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
},
|
|
498
|
-
label: {
|
|
499
|
-
base: "flex gap-2 items-center",
|
|
500
|
-
text: "truncate",
|
|
501
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
502
|
-
size: {
|
|
503
|
-
"2xs": "text-xs",
|
|
504
|
-
xs: "text-xs",
|
|
505
|
-
sm: "text-sm",
|
|
506
|
-
md: "text-sm",
|
|
507
|
-
lg: "text-sm",
|
|
508
|
-
xl: "text-base",
|
|
509
|
-
"2xl": "text-base"
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
color: {
|
|
513
|
-
white: "text-white dark:text-black",
|
|
514
|
-
black: "text-black dark:text-white",
|
|
515
|
-
gray: "text-gray-500 dark:text-gray-400"
|
|
516
|
-
},
|
|
517
|
-
default: {
|
|
518
|
-
size: "md",
|
|
519
|
-
color: "primary"
|
|
520
|
-
}
|
|
521
|
-
};
|
|
522
|
-
export const meterGroup = {
|
|
523
|
-
wrapper: "flex flex-col gap-2 w-full",
|
|
524
|
-
base: "flex flex-row flex-nowrap flex-shrink overflow-hidden",
|
|
525
|
-
background: "bg-gray-200 dark:bg-gray-700",
|
|
526
|
-
transition: "transition-all",
|
|
527
|
-
rounded: "rounded-full",
|
|
528
|
-
shadow: "",
|
|
529
|
-
default: {
|
|
530
|
-
size: "md"
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
export const input = {
|
|
534
|
-
wrapper: "relative",
|
|
535
|
-
base: "relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",
|
|
536
|
-
rounded: "rounded-md",
|
|
537
|
-
placeholder: "placeholder-gray-400 dark:placeholder-gray-500",
|
|
538
|
-
size: {
|
|
539
|
-
"2xs": "text-xs",
|
|
540
|
-
xs: "text-xs",
|
|
541
|
-
sm: "text-sm",
|
|
542
|
-
md: "text-sm",
|
|
543
|
-
lg: "text-sm",
|
|
544
|
-
xl: "text-base"
|
|
545
|
-
},
|
|
546
|
-
gap: {
|
|
547
|
-
"2xs": "gap-x-1",
|
|
548
|
-
xs: "gap-x-1.5",
|
|
549
|
-
sm: "gap-x-1.5",
|
|
550
|
-
md: "gap-x-2",
|
|
551
|
-
lg: "gap-x-2.5",
|
|
552
|
-
xl: "gap-x-2.5"
|
|
553
|
-
},
|
|
554
|
-
padding: {
|
|
555
|
-
"2xs": "px-2 py-1",
|
|
556
|
-
xs: "px-2.5 py-1.5",
|
|
557
|
-
sm: "px-2.5 py-1.5",
|
|
558
|
-
md: "px-3 py-2",
|
|
559
|
-
lg: "px-3.5 py-2.5",
|
|
560
|
-
xl: "px-3.5 py-2.5"
|
|
561
|
-
},
|
|
562
|
-
leading: {
|
|
563
|
-
padding: {
|
|
564
|
-
"2xs": "ps-7",
|
|
565
|
-
xs: "ps-8",
|
|
566
|
-
sm: "ps-9",
|
|
567
|
-
md: "ps-10",
|
|
568
|
-
lg: "ps-11",
|
|
569
|
-
xl: "ps-12"
|
|
570
|
-
}
|
|
571
|
-
},
|
|
572
|
-
trailing: {
|
|
573
|
-
padding: {
|
|
574
|
-
"2xs": "pe-7",
|
|
575
|
-
xs: "pe-8",
|
|
576
|
-
sm: "pe-9",
|
|
577
|
-
md: "pe-10",
|
|
578
|
-
lg: "pe-11",
|
|
579
|
-
xl: "pe-12"
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
color: {
|
|
583
|
-
white: {
|
|
584
|
-
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"
|
|
585
|
-
},
|
|
586
|
-
gray: {
|
|
587
|
-
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"
|
|
588
|
-
}
|
|
589
|
-
},
|
|
590
|
-
variant: {
|
|
591
|
-
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",
|
|
592
|
-
none: "bg-transparent focus:ring-0 focus:shadow-none"
|
|
593
|
-
},
|
|
594
|
-
icon: {
|
|
595
|
-
base: "flex-shrink-0 text-gray-400 dark:text-gray-500",
|
|
596
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
597
|
-
size: {
|
|
598
|
-
"2xs": "h-4 w-4",
|
|
599
|
-
xs: "h-4 w-4",
|
|
600
|
-
sm: "h-5 w-5",
|
|
601
|
-
md: "h-5 w-5",
|
|
602
|
-
lg: "h-5 w-5",
|
|
603
|
-
xl: "h-6 w-6"
|
|
604
|
-
},
|
|
605
|
-
leading: {
|
|
606
|
-
wrapper: "absolute inset-y-0 start-0 flex items-center",
|
|
607
|
-
pointer: "pointer-events-none",
|
|
608
|
-
padding: {
|
|
609
|
-
"2xs": "ps-2",
|
|
610
|
-
xs: "ps-2.5",
|
|
611
|
-
sm: "ps-2.5",
|
|
612
|
-
md: "ps-3",
|
|
613
|
-
lg: "ps-3.5",
|
|
614
|
-
xl: "ps-3.5"
|
|
615
|
-
}
|
|
616
|
-
},
|
|
617
|
-
trailing: {
|
|
618
|
-
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
619
|
-
pointer: "pointer-events-none",
|
|
620
|
-
padding: {
|
|
621
|
-
"2xs": "pe-2",
|
|
622
|
-
xs: "pe-2.5",
|
|
623
|
-
sm: "pe-2.5",
|
|
624
|
-
md: "pe-3",
|
|
625
|
-
lg: "pe-3.5",
|
|
626
|
-
xl: "pe-3.5"
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
default: {
|
|
631
|
-
size: "sm",
|
|
632
|
-
color: "white",
|
|
633
|
-
variant: "outline",
|
|
634
|
-
loadingIcon: "i-heroicons-arrow-path-20-solid"
|
|
635
|
-
}
|
|
636
|
-
};
|
|
637
|
-
export const formGroup = {
|
|
638
|
-
wrapper: "",
|
|
639
|
-
label: {
|
|
640
|
-
wrapper: "flex content-center items-center justify-between",
|
|
641
|
-
base: "block font-medium text-gray-700 dark:text-gray-200",
|
|
642
|
-
// eslint-disable-next-line quotes
|
|
643
|
-
required: `after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-400`
|
|
644
|
-
},
|
|
645
|
-
size: {
|
|
646
|
-
"2xs": "text-xs",
|
|
647
|
-
xs: "text-xs",
|
|
648
|
-
sm: "text-sm",
|
|
649
|
-
md: "text-sm",
|
|
650
|
-
lg: "text-sm",
|
|
651
|
-
xl: "text-base"
|
|
652
|
-
},
|
|
653
|
-
container: "mt-1 relative",
|
|
654
|
-
description: "text-gray-500 dark:text-gray-400",
|
|
655
|
-
hint: "text-gray-500 dark:text-gray-400",
|
|
656
|
-
help: "mt-2 text-gray-500 dark:text-gray-400",
|
|
657
|
-
error: "mt-2 text-red-500 dark:text-red-400",
|
|
658
|
-
default: {
|
|
659
|
-
size: "sm"
|
|
660
|
-
}
|
|
661
|
-
};
|
|
662
|
-
export const textarea = {
|
|
663
|
-
...input,
|
|
664
|
-
default: {
|
|
665
|
-
size: "sm",
|
|
666
|
-
color: "white",
|
|
667
|
-
variant: "outline"
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
|
-
export const select = {
|
|
671
|
-
...input,
|
|
672
|
-
placeholder: "text-gray-900 dark:text-white",
|
|
673
|
-
default: {
|
|
674
|
-
size: "sm",
|
|
675
|
-
color: "white",
|
|
676
|
-
variant: "outline",
|
|
677
|
-
loadingIcon: "i-heroicons-arrow-path-20-solid",
|
|
678
|
-
trailingIcon: "i-heroicons-chevron-down-20-solid"
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
export const selectMenu = {
|
|
682
|
-
container: "z-20 group",
|
|
683
|
-
width: "w-full",
|
|
684
|
-
height: "max-h-60",
|
|
685
|
-
base: "relative focus:outline-none overflow-y-auto scroll-py-1",
|
|
686
|
-
background: "bg-white dark:bg-gray-800",
|
|
687
|
-
shadow: "shadow-lg",
|
|
688
|
-
rounded: "rounded-md",
|
|
689
|
-
padding: "p-1",
|
|
690
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-700",
|
|
691
|
-
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",
|
|
692
|
-
option: {
|
|
693
|
-
base: "cursor-default select-none relative flex items-center justify-between gap-1",
|
|
694
|
-
rounded: "rounded-md",
|
|
695
|
-
padding: "px-2 py-1.5",
|
|
696
|
-
size: "text-sm",
|
|
697
|
-
color: "text-gray-900 dark:text-white",
|
|
698
|
-
container: "flex items-center gap-2 min-w-0",
|
|
699
|
-
active: "bg-gray-100 dark:bg-gray-900",
|
|
700
|
-
inactive: "",
|
|
701
|
-
selected: "pe-7",
|
|
702
|
-
disabled: "cursor-not-allowed opacity-50",
|
|
703
|
-
empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
|
|
704
|
-
icon: {
|
|
705
|
-
base: "flex-shrink-0 h-4 w-4",
|
|
706
|
-
active: "text-gray-900 dark:text-white",
|
|
707
|
-
inactive: "text-gray-400 dark:text-gray-500"
|
|
708
|
-
},
|
|
709
|
-
selectedIcon: {
|
|
710
|
-
wrapper: "absolute inset-y-0 end-0 flex items-center",
|
|
711
|
-
padding: "pe-2",
|
|
712
|
-
base: "h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"
|
|
713
|
-
},
|
|
714
|
-
avatar: {
|
|
715
|
-
base: "flex-shrink-0",
|
|
716
|
-
size: "3xs"
|
|
717
|
-
},
|
|
718
|
-
chip: {
|
|
719
|
-
base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
723
|
-
transition: {
|
|
724
|
-
leaveActiveClass: "transition ease-in duration-100",
|
|
725
|
-
leaveFromClass: "opacity-100",
|
|
726
|
-
leaveToClass: "opacity-0"
|
|
727
|
-
},
|
|
728
|
-
popper: {
|
|
729
|
-
placement: "bottom-end"
|
|
730
|
-
},
|
|
731
|
-
default: {
|
|
732
|
-
selectedIcon: "i-heroicons-check-20-solid"
|
|
733
|
-
},
|
|
734
|
-
arrow: {
|
|
735
|
-
..._popperArrow,
|
|
736
|
-
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
|
|
737
|
-
background: "before:bg-white dark:before:bg-gray-700"
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
export const radioGroup = {
|
|
741
|
-
wrapper: "relative flex items-start",
|
|
742
|
-
legend: "text-sm font-medium text-gray-700 dark:text-gray-200 mb-1",
|
|
743
|
-
default: {
|
|
744
|
-
color: "primary"
|
|
745
|
-
}
|
|
746
|
-
};
|
|
747
|
-
export const radio = {
|
|
748
|
-
wrapper: "relative flex items-start",
|
|
749
|
-
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",
|
|
750
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
751
|
-
background: "bg-white dark:bg-gray-900",
|
|
752
|
-
border: "border border-gray-300 dark:border-gray-700",
|
|
753
|
-
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",
|
|
754
|
-
label: "text-sm font-medium text-gray-700 dark:text-gray-200",
|
|
755
|
-
required: "text-sm text-red-500 dark:text-red-400",
|
|
756
|
-
help: "text-sm text-gray-500 dark:text-gray-400",
|
|
757
|
-
default: {
|
|
758
|
-
color: "primary"
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
export const checkbox = {
|
|
762
|
-
wrapper: "relative flex items-start",
|
|
763
|
-
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",
|
|
764
|
-
rounded: "rounded",
|
|
765
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
766
|
-
background: "bg-white dark:bg-gray-900",
|
|
767
|
-
border: "border border-gray-300 dark:border-gray-700",
|
|
768
|
-
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",
|
|
769
|
-
label: "font-medium text-gray-700 dark:text-gray-200",
|
|
770
|
-
required: "text-red-500 dark:text-red-400",
|
|
771
|
-
help: "text-gray-500 dark:text-gray-400",
|
|
772
|
-
default: {
|
|
773
|
-
color: "primary"
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
export const toggle = {
|
|
777
|
-
base: "relative inline-flex h-5 w-9 flex-shrink-0 border-2 border-transparent disabled:cursor-not-allowed disabled:opacity-50 focus:outline-none",
|
|
778
|
-
rounded: "rounded-full",
|
|
779
|
-
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",
|
|
780
|
-
active: "bg-{color}-500 dark:bg-{color}-400",
|
|
781
|
-
inactive: "bg-gray-200 dark:bg-gray-700",
|
|
782
|
-
container: {
|
|
783
|
-
base: "pointer-events-none relative inline-block h-4 w-4 rounded-full bg-white dark:bg-gray-900 shadow transform ring-0 transition ease-in-out duration-200",
|
|
784
|
-
active: "translate-x-4 rtl:-translate-x-4",
|
|
785
|
-
inactive: "translate-x-0 rtl:-translate-x-0"
|
|
786
|
-
},
|
|
787
|
-
icon: {
|
|
788
|
-
base: "absolute inset-0 h-full w-full flex items-center justify-center transition-opacity",
|
|
789
|
-
active: "opacity-100 ease-in duration-200",
|
|
790
|
-
inactive: "opacity-0 ease-out duration-100",
|
|
791
|
-
on: "h-3 w-3 text-{color}-500 dark:text-{color}-400",
|
|
792
|
-
off: "h-3 w-3 text-gray-400 dark:text-gray-500"
|
|
793
|
-
},
|
|
794
|
-
default: {
|
|
795
|
-
onIcon: null,
|
|
796
|
-
offIcon: null,
|
|
797
|
-
color: "primary"
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
export const range = {
|
|
801
|
-
wrapper: "relative w-full flex items-center",
|
|
802
|
-
base: "w-full absolute appearance-none cursor-pointer disabled:cursor-not-allowed disabled:bg-opacity-50 focus:outline-none peer group",
|
|
803
|
-
rounded: "rounded-lg",
|
|
804
|
-
background: "bg-transparent",
|
|
805
|
-
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",
|
|
806
|
-
progress: {
|
|
807
|
-
base: "absolute pointer-events-none peer-disabled:bg-opacity-50",
|
|
808
|
-
rounded: "rounded-s-lg",
|
|
809
|
-
background: "bg-{color}-500 dark:bg-{color}-400",
|
|
810
|
-
size: {
|
|
811
|
-
"2xs": "h-px",
|
|
812
|
-
xs: "h-0.5",
|
|
813
|
-
sm: "h-1",
|
|
814
|
-
md: "h-2",
|
|
815
|
-
lg: "h-3",
|
|
816
|
-
xl: "h-4",
|
|
817
|
-
"2xl": "h-5"
|
|
818
|
-
}
|
|
819
|
-
},
|
|
820
|
-
thumb: {
|
|
821
|
-
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",
|
|
822
|
-
color: "text-{color}-500 dark:text-{color}-400",
|
|
823
|
-
background: "[&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:dark:bg-gray-900 [&::-moz-range-thumb]:bg-current",
|
|
824
|
-
ring: "[&::-webkit-slider-thumb]:ring-2 [&::-webkit-slider-thumb]:ring-current",
|
|
825
|
-
size: {
|
|
826
|
-
"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]",
|
|
827
|
-
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]",
|
|
828
|
-
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",
|
|
829
|
-
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",
|
|
830
|
-
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",
|
|
831
|
-
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",
|
|
832
|
-
"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"
|
|
833
|
-
}
|
|
834
|
-
},
|
|
835
|
-
track: {
|
|
836
|
-
base: "[&::-webkit-slider-runnable-track]:group-disabled:bg-opacity-50 [&::-moz-range-track]:group-disabled:bg-opacity-50",
|
|
837
|
-
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",
|
|
838
|
-
rounded: "[&::-webkit-slider-runnable-track]:rounded-lg [&::-moz-range-track]:rounded-lg",
|
|
839
|
-
size: {
|
|
840
|
-
"2xs": "[&::-webkit-slider-runnable-track]:h-px [&::-moz-range-track]:h-px",
|
|
841
|
-
xs: "[&::-webkit-slider-runnable-track]:h-0.5 [&::-moz-range-track]:h-0.5",
|
|
842
|
-
sm: "[&::-webkit-slider-runnable-track]:h-1 [&::-moz-range-track]:h-1",
|
|
843
|
-
md: "[&::-webkit-slider-runnable-track]:h-2 [&::-moz-range-track]:h-2",
|
|
844
|
-
lg: "[&::-webkit-slider-runnable-track]:h-3 [&::-moz-range-track]:h-3",
|
|
845
|
-
xl: "[&::-webkit-slider-runnable-track]:h-4 [&::-moz-range-track]:h-4",
|
|
846
|
-
"2xl": "[&::-webkit-slider-runnable-track]:h-5 [&::-moz-range-track]:h-5"
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
|
-
size: {
|
|
850
|
-
"2xs": "h-1.5",
|
|
851
|
-
xs: "h-2",
|
|
852
|
-
sm: "h-3",
|
|
853
|
-
md: "h-4",
|
|
854
|
-
lg: "h-5",
|
|
855
|
-
xl: "h-6",
|
|
856
|
-
"2xl": "h-7"
|
|
857
|
-
},
|
|
858
|
-
default: {
|
|
859
|
-
size: "md",
|
|
860
|
-
color: "primary"
|
|
861
|
-
}
|
|
862
|
-
};
|
|
863
|
-
export const card = {
|
|
864
|
-
base: "overflow-hidden",
|
|
865
|
-
background: "bg-white dark:bg-gray-900",
|
|
866
|
-
divide: "divide-y divide-gray-200 dark:divide-gray-800",
|
|
867
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-800",
|
|
868
|
-
rounded: "rounded-lg",
|
|
869
|
-
shadow: "shadow",
|
|
870
|
-
body: {
|
|
871
|
-
base: "",
|
|
872
|
-
background: "",
|
|
873
|
-
padding: "px-4 py-5 sm:p-6"
|
|
874
|
-
},
|
|
875
|
-
header: {
|
|
876
|
-
base: "",
|
|
877
|
-
background: "",
|
|
878
|
-
padding: "px-4 py-5 sm:px-6"
|
|
879
|
-
},
|
|
880
|
-
footer: {
|
|
881
|
-
base: "",
|
|
882
|
-
background: "",
|
|
883
|
-
padding: "px-4 py-4 sm:px-6"
|
|
884
|
-
}
|
|
885
|
-
};
|
|
886
|
-
export const container = {
|
|
887
|
-
base: "mx-auto",
|
|
888
|
-
padding: "px-4 sm:px-6 lg:px-8",
|
|
889
|
-
constrained: "max-w-7xl"
|
|
890
|
-
};
|
|
891
|
-
export const skeleton = {
|
|
892
|
-
base: "animate-pulse",
|
|
893
|
-
background: "bg-gray-100 dark:bg-gray-800",
|
|
894
|
-
rounded: "rounded-md"
|
|
895
|
-
};
|
|
896
|
-
export const divider = {
|
|
897
|
-
wrapper: {
|
|
898
|
-
base: "flex items-center align-center text-center w-full",
|
|
899
|
-
horizontal: "flex-row",
|
|
900
|
-
vertical: "flex-col"
|
|
901
|
-
},
|
|
902
|
-
container: {
|
|
903
|
-
base: "font-medium text-gray-700 dark:text-gray-200 flex",
|
|
904
|
-
horizontal: "mx-3 whitespace-nowrap",
|
|
905
|
-
vertical: "my-2"
|
|
906
|
-
},
|
|
907
|
-
border: {
|
|
908
|
-
base: "flex border-gray-200 dark:border-gray-800",
|
|
909
|
-
horizontal: "w-full",
|
|
910
|
-
vertical: "h-full",
|
|
911
|
-
size: {
|
|
912
|
-
horizontal: "border-t",
|
|
913
|
-
vertical: "border-s"
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
icon: {
|
|
917
|
-
base: "flex-shrink-0 w-5 h-5"
|
|
918
|
-
},
|
|
919
|
-
avatar: {
|
|
920
|
-
base: "flex-shrink-0",
|
|
921
|
-
size: "2xs"
|
|
922
|
-
},
|
|
923
|
-
label: "text-sm"
|
|
924
|
-
};
|
|
925
|
-
export const verticalNavigation = {
|
|
926
|
-
wrapper: "relative",
|
|
927
|
-
base: "group relative flex items-center gap-2 focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-1 focus-visible:before:ring-primary-500 dark:focus-visible:before:ring-primary-400 before:absolute before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75",
|
|
928
|
-
ring: "focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
|
|
929
|
-
padding: "px-3 py-1.5",
|
|
930
|
-
width: "w-full",
|
|
931
|
-
rounded: "rounded-md",
|
|
932
|
-
font: "font-medium",
|
|
933
|
-
size: "text-sm",
|
|
934
|
-
active: "text-gray-900 dark:text-white before:bg-gray-100 dark:before:bg-gray-800",
|
|
935
|
-
inactive: "text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:before:bg-gray-50 dark:hover:before:bg-gray-800/50",
|
|
936
|
-
label: "truncate relative",
|
|
937
|
-
icon: {
|
|
938
|
-
base: "flex-shrink-0 w-4 h-4",
|
|
939
|
-
active: "text-gray-700 dark:text-gray-200",
|
|
940
|
-
inactive: "text-gray-400 dark:text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-200"
|
|
941
|
-
},
|
|
942
|
-
avatar: {
|
|
943
|
-
base: "flex-shrink-0",
|
|
944
|
-
size: "3xs"
|
|
945
|
-
},
|
|
946
|
-
badge: {
|
|
947
|
-
base: "relative ms-auto inline-block py-0.5 px-2 text-xs rounded-md -me-1 -my-0.5",
|
|
948
|
-
active: "bg-white dark:bg-gray-900",
|
|
949
|
-
inactive: "bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white group-hover:bg-white dark:group-hover:bg-gray-900"
|
|
950
|
-
}
|
|
951
|
-
};
|
|
952
|
-
export const commandPalette = {
|
|
953
|
-
wrapper: "flex flex-col flex-1 min-h-0 divide-y divide-gray-100 dark:divide-gray-800",
|
|
954
|
-
container: "relative flex-1 overflow-y-auto divide-y divide-gray-100 dark:divide-gray-800 scroll-py-2",
|
|
955
|
-
input: {
|
|
956
|
-
wrapper: "relative flex items-center",
|
|
957
|
-
base: "w-full placeholder-gray-400 dark:placeholder-gray-500 bg-transparent border-0 text-gray-900 dark:text-white focus:ring-0 focus:outline-none",
|
|
958
|
-
padding: "px-4",
|
|
959
|
-
height: "h-12",
|
|
960
|
-
size: "sm:text-sm",
|
|
961
|
-
icon: {
|
|
962
|
-
base: "pointer-events-none absolute start-4 text-gray-400 dark:text-gray-500",
|
|
963
|
-
size: "h-4 w-4",
|
|
964
|
-
padding: "ps-10"
|
|
965
|
-
},
|
|
966
|
-
closeButton: "absolute end-4"
|
|
967
|
-
},
|
|
968
|
-
emptyState: {
|
|
969
|
-
wrapper: "flex flex-col items-center justify-center flex-1 px-6 py-14 sm:px-14",
|
|
970
|
-
label: "text-sm text-center text-gray-900 dark:text-white",
|
|
971
|
-
queryLabel: "text-sm text-center text-gray-900 dark:text-white",
|
|
972
|
-
icon: "w-6 h-6 mx-auto text-gray-400 dark:text-gray-500 mb-4"
|
|
973
|
-
},
|
|
974
|
-
group: {
|
|
975
|
-
wrapper: "p-2",
|
|
976
|
-
label: "px-2 my-2 text-xs font-semibold text-gray-900 dark:text-white",
|
|
977
|
-
container: "text-sm text-gray-700 dark:text-gray-200",
|
|
978
|
-
command: {
|
|
979
|
-
base: "flex justify-between select-none items-center rounded-md px-2 py-1.5 gap-2 relative",
|
|
980
|
-
active: "bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",
|
|
981
|
-
inactive: "",
|
|
982
|
-
label: "flex items-center gap-1.5 min-w-0",
|
|
983
|
-
prefix: "text-gray-400 dark:text-gray-500",
|
|
984
|
-
suffix: "text-gray-400 dark:text-gray-500",
|
|
985
|
-
container: "flex items-center gap-2 min-w-0",
|
|
986
|
-
icon: {
|
|
987
|
-
base: "flex-shrink-0 w-4 h-4",
|
|
988
|
-
active: "text-gray-900 dark:text-white",
|
|
989
|
-
inactive: "text-gray-400 dark:text-gray-500"
|
|
990
|
-
},
|
|
991
|
-
selectedIcon: {
|
|
992
|
-
base: "h-4 w-4 text-gray-900 dark:text-white flex-shrink-0"
|
|
993
|
-
},
|
|
994
|
-
avatar: {
|
|
995
|
-
base: "flex-shrink-0",
|
|
996
|
-
size: "3xs"
|
|
997
|
-
},
|
|
998
|
-
chip: {
|
|
999
|
-
base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full"
|
|
1000
|
-
},
|
|
1001
|
-
disabled: "opacity-50",
|
|
1002
|
-
shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5"
|
|
1003
|
-
},
|
|
1004
|
-
active: "flex-shrink-0 text-gray-500 dark:text-gray-400",
|
|
1005
|
-
inactive: "flex-shrink-0 text-gray-500 dark:text-gray-400"
|
|
1006
|
-
},
|
|
1007
|
-
default: {
|
|
1008
|
-
icon: "i-heroicons-magnifying-glass-20-solid",
|
|
1009
|
-
loadingIcon: "i-heroicons-arrow-path-20-solid",
|
|
1010
|
-
emptyState: {
|
|
1011
|
-
icon: "i-heroicons-magnifying-glass-20-solid",
|
|
1012
|
-
label: "We couldn't find any items.",
|
|
1013
|
-
queryLabel: "We couldn't find any items with that term. Please try again."
|
|
1014
|
-
},
|
|
1015
|
-
closeButton: null,
|
|
1016
|
-
selectedIcon: "i-heroicons-check-20-solid"
|
|
1017
|
-
}
|
|
1018
|
-
};
|
|
1019
|
-
export const pagination = {
|
|
1020
|
-
wrapper: "flex items-center -space-x-px",
|
|
1021
|
-
base: "",
|
|
1022
|
-
rounded: "first:rounded-s-md last:rounded-e-md",
|
|
1023
|
-
default: {
|
|
1024
|
-
size: "sm",
|
|
1025
|
-
activeButton: {
|
|
1026
|
-
color: "primary"
|
|
1027
|
-
},
|
|
1028
|
-
inactiveButton: {
|
|
1029
|
-
color: "white"
|
|
1030
|
-
},
|
|
1031
|
-
firstButton: {
|
|
1032
|
-
color: "white",
|
|
1033
|
-
class: "rtl:[&_span:first-child]:rotate-180",
|
|
1034
|
-
icon: "i-heroicons-chevron-double-left-20-solid"
|
|
1035
|
-
},
|
|
1036
|
-
lastButton: {
|
|
1037
|
-
color: "white",
|
|
1038
|
-
class: "rtl:[&_span:last-child]:rotate-180",
|
|
1039
|
-
icon: "i-heroicons-chevron-double-right-20-solid"
|
|
1040
|
-
},
|
|
1041
|
-
prevButton: {
|
|
1042
|
-
color: "white",
|
|
1043
|
-
class: "rtl:[&_span:first-child]:rotate-180",
|
|
1044
|
-
icon: "i-heroicons-chevron-left-20-solid"
|
|
1045
|
-
},
|
|
1046
|
-
nextButton: {
|
|
1047
|
-
color: "white",
|
|
1048
|
-
class: "rtl:[&_span:last-child]:rotate-180",
|
|
1049
|
-
icon: "i-heroicons-chevron-right-20-solid "
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
};
|
|
1053
|
-
export const tabs = {
|
|
1054
|
-
wrapper: "relative space-y-2",
|
|
1055
|
-
container: "relative w-full",
|
|
1056
|
-
base: "focus:outline-none",
|
|
1057
|
-
list: {
|
|
1058
|
-
base: "relative",
|
|
1059
|
-
background: "bg-gray-100 dark:bg-gray-800",
|
|
1060
|
-
rounded: "rounded-lg",
|
|
1061
|
-
shadow: "",
|
|
1062
|
-
padding: "p-1",
|
|
1063
|
-
height: "h-10",
|
|
1064
|
-
width: "w-full",
|
|
1065
|
-
marker: {
|
|
1066
|
-
wrapper: "absolute top-[4px] left-[4px] duration-200 ease-out focus:outline-none",
|
|
1067
|
-
base: "w-full h-full",
|
|
1068
|
-
background: "bg-white dark:bg-gray-900",
|
|
1069
|
-
rounded: "rounded-md",
|
|
1070
|
-
shadow: "shadow-sm"
|
|
1071
|
-
},
|
|
1072
|
-
tab: {
|
|
1073
|
-
base: "relative inline-flex items-center justify-center flex-shrink-0 w-full ui-focus-visible:outline-0 ui-focus-visible:ring-2 ui-focus-visible:ring-primary-500 dark:ui-focus-visible:ring-primary-400 ui-not-focus-visible:outline-none focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors duration-200 ease-out",
|
|
1074
|
-
background: "",
|
|
1075
|
-
active: "text-gray-900 dark:text-white",
|
|
1076
|
-
inactive: "text-gray-500 dark:text-gray-400",
|
|
1077
|
-
height: "h-8",
|
|
1078
|
-
padding: "px-3",
|
|
1079
|
-
size: "text-sm",
|
|
1080
|
-
font: "font-medium",
|
|
1081
|
-
rounded: "rounded-md",
|
|
1082
|
-
shadow: ""
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
|
-
export const modal = {
|
|
1087
|
-
wrapper: "relative z-50",
|
|
1088
|
-
inner: "fixed inset-0 overflow-y-auto",
|
|
1089
|
-
container: "flex min-h-full items-end sm:items-center justify-center text-center",
|
|
1090
|
-
padding: "p-4 sm:p-0",
|
|
1091
|
-
margin: "sm:my-8",
|
|
1092
|
-
base: "relative text-left rtl:text-right overflow-hidden w-full flex flex-col",
|
|
1093
|
-
overlay: {
|
|
1094
|
-
base: "fixed inset-0 transition-opacity",
|
|
1095
|
-
background: "bg-gray-200/75 dark:bg-gray-800/75",
|
|
1096
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
1097
|
-
transition: {
|
|
1098
|
-
enter: "ease-out duration-300",
|
|
1099
|
-
enterFrom: "opacity-0",
|
|
1100
|
-
enterTo: "opacity-100",
|
|
1101
|
-
leave: "ease-in duration-200",
|
|
1102
|
-
leaveFrom: "opacity-100",
|
|
1103
|
-
leaveTo: "opacity-0"
|
|
1104
|
-
}
|
|
1105
|
-
},
|
|
1106
|
-
background: "bg-white dark:bg-gray-900",
|
|
1107
|
-
ring: "",
|
|
1108
|
-
rounded: "rounded-lg",
|
|
1109
|
-
shadow: "shadow-xl",
|
|
1110
|
-
width: "sm:max-w-lg",
|
|
1111
|
-
height: "",
|
|
1112
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
1113
|
-
transition: {
|
|
1114
|
-
enter: "ease-out duration-300",
|
|
1115
|
-
enterFrom: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
1116
|
-
enterTo: "opacity-100 translate-y-0 sm:scale-100",
|
|
1117
|
-
leave: "ease-in duration-200",
|
|
1118
|
-
leaveFrom: "opacity-100 translate-y-0 sm:scale-100",
|
|
1119
|
-
leaveTo: "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
|
-
export const slideover = {
|
|
1123
|
-
wrapper: "fixed inset-0 flex z-50",
|
|
1124
|
-
overlay: {
|
|
1125
|
-
base: "fixed inset-0 transition-opacity",
|
|
1126
|
-
background: "bg-gray-200/75 dark:bg-gray-800/75",
|
|
1127
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
1128
|
-
transition: {
|
|
1129
|
-
enter: "ease-in-out duration-500",
|
|
1130
|
-
enterFrom: "opacity-0",
|
|
1131
|
-
enterTo: "opacity-100",
|
|
1132
|
-
leave: "ease-in-out duration-500",
|
|
1133
|
-
leaveFrom: "opacity-100",
|
|
1134
|
-
leaveTo: "opacity-0"
|
|
1135
|
-
}
|
|
1136
|
-
},
|
|
1137
|
-
base: "relative flex-1 flex flex-col w-full focus:outline-none",
|
|
1138
|
-
background: "bg-white dark:bg-gray-900",
|
|
1139
|
-
ring: "",
|
|
1140
|
-
rounded: "",
|
|
1141
|
-
padding: "",
|
|
1142
|
-
shadow: "shadow-xl",
|
|
1143
|
-
width: "w-screen max-w-md",
|
|
1144
|
-
// Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
|
|
1145
|
-
transition: {
|
|
1146
|
-
enter: "transform transition ease-in-out duration-300",
|
|
1147
|
-
leave: "transform transition ease-in-out duration-200"
|
|
1148
|
-
}
|
|
1149
|
-
};
|
|
1150
|
-
export const tooltip = {
|
|
1151
|
-
wrapper: "relative inline-flex",
|
|
1152
|
-
container: "z-20 group",
|
|
1153
|
-
width: "max-w-xs",
|
|
1154
|
-
background: "bg-white dark:bg-gray-900",
|
|
1155
|
-
color: "text-gray-900 dark:text-white",
|
|
1156
|
-
shadow: "shadow",
|
|
1157
|
-
rounded: "rounded",
|
|
1158
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-800",
|
|
1159
|
-
base: "[@media(pointer:coarse)]:hidden h-6 px-2 py-1 text-xs font-normal truncate relative",
|
|
1160
|
-
shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5",
|
|
1161
|
-
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
1162
|
-
transition: {
|
|
1163
|
-
enterActiveClass: "transition ease-out duration-200",
|
|
1164
|
-
enterFromClass: "opacity-0 translate-y-1",
|
|
1165
|
-
enterToClass: "opacity-100 translate-y-0",
|
|
1166
|
-
leaveActiveClass: "transition ease-in duration-150",
|
|
1167
|
-
leaveFromClass: "opacity-100 translate-y-0",
|
|
1168
|
-
leaveToClass: "opacity-0 translate-y-1"
|
|
1169
|
-
},
|
|
1170
|
-
popper: {
|
|
1171
|
-
strategy: "fixed"
|
|
1172
|
-
},
|
|
1173
|
-
arrow: _popperArrow
|
|
1174
|
-
};
|
|
1175
|
-
export const popover = {
|
|
1176
|
-
wrapper: "relative",
|
|
1177
|
-
container: "z-20 group",
|
|
1178
|
-
width: "",
|
|
1179
|
-
background: "bg-white dark:bg-gray-900",
|
|
1180
|
-
shadow: "shadow-lg",
|
|
1181
|
-
rounded: "rounded-md",
|
|
1182
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-800",
|
|
1183
|
-
base: "overflow-hidden focus:outline-none relative",
|
|
1184
|
-
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
1185
|
-
transition: {
|
|
1186
|
-
enterActiveClass: "transition ease-out duration-200",
|
|
1187
|
-
enterFromClass: "opacity-0 translate-y-1",
|
|
1188
|
-
enterToClass: "opacity-100 translate-y-0",
|
|
1189
|
-
leaveActiveClass: "transition ease-in duration-150",
|
|
1190
|
-
leaveFromClass: "opacity-100 translate-y-0",
|
|
1191
|
-
leaveToClass: "opacity-0 translate-y-1"
|
|
1192
|
-
},
|
|
1193
|
-
popper: {
|
|
1194
|
-
strategy: "fixed"
|
|
1195
|
-
},
|
|
1196
|
-
arrow: _popperArrow
|
|
1197
|
-
};
|
|
1198
|
-
export const contextMenu = {
|
|
1199
|
-
wrapper: "relative",
|
|
1200
|
-
container: "z-20 group",
|
|
1201
|
-
width: "",
|
|
1202
|
-
background: "bg-white dark:bg-gray-900",
|
|
1203
|
-
shadow: "shadow-lg",
|
|
1204
|
-
rounded: "rounded-md",
|
|
1205
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-800",
|
|
1206
|
-
base: "overflow-hidden focus:outline-none relative",
|
|
1207
|
-
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
1208
|
-
transition: {
|
|
1209
|
-
enterActiveClass: "transition ease-out duration-200",
|
|
1210
|
-
enterFromClass: "opacity-0 translate-y-1",
|
|
1211
|
-
enterToClass: "opacity-100 translate-y-0",
|
|
1212
|
-
leaveActiveClass: "transition ease-in duration-150",
|
|
1213
|
-
leaveFromClass: "opacity-100 translate-y-0",
|
|
1214
|
-
leaveToClass: "opacity-0 translate-y-1"
|
|
1215
|
-
},
|
|
1216
|
-
popper: {
|
|
1217
|
-
placement: "bottom-start",
|
|
1218
|
-
scroll: false
|
|
1219
|
-
},
|
|
1220
|
-
arrow: _popperArrow
|
|
1221
|
-
};
|
|
1222
|
-
export const notification = {
|
|
1223
|
-
wrapper: "w-full pointer-events-auto",
|
|
1224
|
-
container: "relative overflow-hidden",
|
|
1225
|
-
title: "text-sm font-medium text-gray-900 dark:text-white",
|
|
1226
|
-
description: "mt-1 text-sm leading-4 text-gray-500 dark:text-gray-400",
|
|
1227
|
-
background: "bg-white dark:bg-gray-900",
|
|
1228
|
-
shadow: "shadow-lg",
|
|
1229
|
-
rounded: "rounded-lg",
|
|
1230
|
-
padding: "p-4",
|
|
1231
|
-
ring: "ring-1 ring-gray-200 dark:ring-gray-800",
|
|
1232
|
-
icon: {
|
|
1233
|
-
base: "flex-shrink-0 w-5 h-5",
|
|
1234
|
-
color: "text-{color}-500 dark:text-{color}-400"
|
|
1235
|
-
},
|
|
1236
|
-
avatar: {
|
|
1237
|
-
base: "flex-shrink-0 self-center",
|
|
1238
|
-
size: "md"
|
|
1239
|
-
},
|
|
1240
|
-
progress: {
|
|
1241
|
-
base: "absolute bottom-0 end-0 start-0 h-1",
|
|
1242
|
-
background: "bg-{color}-500 dark:bg-{color}-400"
|
|
1243
|
-
},
|
|
1244
|
-
// Syntax for `<Transition>` component https://vuejs.org/guide/built-ins/transition.html#css-based-transitions
|
|
1245
|
-
transition: {
|
|
1246
|
-
enterActiveClass: "transform ease-out duration-300 transition",
|
|
1247
|
-
enterFromClass: "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
1248
|
-
enterToClass: "translate-y-0 opacity-100 sm:translate-x-0",
|
|
1249
|
-
leaveActiveClass: "transition ease-in duration-100",
|
|
1250
|
-
leaveFromClass: "opacity-100",
|
|
1251
|
-
leaveToClass: "opacity-0"
|
|
1252
|
-
},
|
|
1253
|
-
default: {
|
|
1254
|
-
color: "primary",
|
|
1255
|
-
icon: null,
|
|
1256
|
-
closeButton: {
|
|
1257
|
-
icon: "i-heroicons-x-mark-20-solid",
|
|
1258
|
-
color: "gray",
|
|
1259
|
-
variant: "link",
|
|
1260
|
-
padded: false
|
|
1261
|
-
},
|
|
1262
|
-
actionButton: {
|
|
1263
|
-
size: "xs",
|
|
1264
|
-
color: "white"
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
export const notifications = {
|
|
1269
|
-
wrapper: "fixed flex flex-col justify-end z-[55]",
|
|
1270
|
-
position: "bottom-0 end-0",
|
|
1271
|
-
width: "w-full sm:w-96",
|
|
1272
|
-
container: "px-4 sm:px-6 py-6 space-y-3 overflow-y-auto"
|
|
1273
|
-
};
|