nuxt-ignis 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.data/content/contents.sqlite +0 -0
- package/.env +43 -0
- package/.nuxt/components.d.ts +132 -0
- package/.nuxt/content/components.ts +51 -0
- package/.nuxt/content/database.compressed.mjs +1 -0
- package/.nuxt/content/manifest.ts +33 -0
- package/.nuxt/content/sql_dump +6 -0
- package/.nuxt/content/types.d.ts +13 -0
- package/.nuxt/dist/server/client.manifest.mjs +18 -1
- package/.nuxt/eslint.config.mjs +1 -1
- package/.nuxt/i18n.options.mjs +165 -0
- package/.nuxt/imports.d.ts +16 -0
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/mdc-configs.mjs +8 -0
- package/.nuxt/mdc-highlighter.mjs +213 -0
- package/.nuxt/mdc-image-component.mjs +1 -0
- package/.nuxt/mdc-imports.mjs +12 -0
- package/.nuxt/module/@nuxtjs-sitemap.d.ts +28 -0
- package/.nuxt/module/nuxt-robots.d.ts +35 -0
- package/.nuxt/module/nuxt-seo-utils.assets.d.ts +25 -0
- package/.nuxt/module/nuxt-seo-utils.d.ts +22 -0
- package/.nuxt/module/nuxt-site-config.d.ts +43 -0
- package/.nuxt/nitro.json +3 -3
- package/.nuxt/nuxt-i18n-logger.mjs +1 -0
- package/.nuxt/nuxt-icon-client-bundle.mjs +1 -0
- package/.nuxt/nuxt-icon-server-bundle.mjs +15 -0
- package/.nuxt/nuxt.d.ts +20 -5
- package/.nuxt/tailwind/postcss.mjs +15 -0
- package/.nuxt/tsconfig.json +151 -0
- package/.nuxt/tsconfig.server.json +140 -0
- package/.nuxt/types/build.d.ts +2 -0
- package/.nuxt/types/i18n-plugin.d.ts +104 -0
- package/.nuxt/types/imports.d.ts +70 -0
- package/.nuxt/types/neon.d.ts +35 -0
- package/.nuxt/types/nitro-imports.d.ts +263 -1
- package/.nuxt/types/nitro-routes.d.ts +61 -0
- package/.nuxt/types/plugins.d.ts +21 -2
- package/.nuxt/types/schema.d.ts +924 -2
- package/.nuxt/types/ui.d.ts +35 -0
- package/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +264 -0
- package/.nuxt/ui/avatar-group.ts +52 -0
- package/.nuxt/ui/avatar.ts +54 -0
- package/.nuxt/ui/badge.ts +263 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +378 -0
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +34 -0
- package/.nuxt/ui/carousel.ts +38 -0
- package/.nuxt/ui/checkbox-group.ts +204 -0
- package/.nuxt/ui/checkbox.ts +236 -0
- package/.nuxt/ui/chip.ts +96 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +50 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +216 -0
- package/.nuxt/ui/drawer.ts +126 -0
- package/.nuxt/ui/dropdown-menu.ts +217 -0
- package/.nuxt/ui/form-field.ts +48 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +50 -0
- package/.nuxt/ui/input-menu.ts +436 -0
- package/.nuxt/ui/input-number.ts +245 -0
- package/.nuxt/ui/input.ts +289 -0
- package/.nuxt/ui/kbd.ts +31 -0
- package/.nuxt/ui/link.ts +22 -0
- package/.nuxt/ui/modal.ts +29 -0
- package/.nuxt/ui/navigation-menu.ts +501 -0
- package/.nuxt/ui/pagination.ts +13 -0
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +297 -0
- package/.nuxt/ui/radio-group.ts +350 -0
- package/.nuxt/ui/select-menu.ts +346 -0
- package/.nuxt/ui/select.ts +341 -0
- package/.nuxt/ui/separator.ts +172 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +71 -0
- package/.nuxt/ui/slider.ts +171 -0
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +131 -0
- package/.nuxt/ui/table.ts +147 -0
- package/.nuxt/ui/tabs.ts +256 -0
- package/.nuxt/ui/textarea.ts +294 -0
- package/.nuxt/ui/toast.ts +81 -0
- package/.nuxt/ui/toaster.ts +91 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/.nuxt/ui/tree.ts +154 -0
- package/.nuxt/ui-image-component.ts +1 -0
- package/.nuxt/ui.css +143 -0
- package/features.ts +30 -22
- package/package.json +2 -1
- package/tailwind.config.ts +1 -1
- package/.nuxt/dev/index.mjs +0 -2948
- package/.nuxt/dev/index.mjs.map +0 -1
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
const variant = [
|
|
10
|
+
"outline",
|
|
11
|
+
"soft",
|
|
12
|
+
"subtle",
|
|
13
|
+
"ghost",
|
|
14
|
+
"none"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
17
|
+
const color = [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"success",
|
|
21
|
+
"info",
|
|
22
|
+
"warning",
|
|
23
|
+
"error",
|
|
24
|
+
"neutral"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
"slots": {
|
|
29
|
+
"root": "relative inline-flex items-center",
|
|
30
|
+
"base": [
|
|
31
|
+
"rounded-md",
|
|
32
|
+
"transition-colors"
|
|
33
|
+
],
|
|
34
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
35
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
36
|
+
"leadingAvatar": "shrink-0",
|
|
37
|
+
"leadingAvatarSize": "",
|
|
38
|
+
"trailing": "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
|
|
39
|
+
"trailingIcon": "shrink-0 text-dimmed",
|
|
40
|
+
"arrow": "fill-default",
|
|
41
|
+
"content": "max-h-60 w-(--reka-combobox-trigger-width) bg-default shadow-lg rounded-md ring ring-default overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto",
|
|
42
|
+
"viewport": "divide-y divide-default scroll-py-1",
|
|
43
|
+
"group": "p-1 isolate",
|
|
44
|
+
"empty": "py-2 text-center text-sm text-muted",
|
|
45
|
+
"label": "font-semibold text-highlighted",
|
|
46
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
47
|
+
"item": [
|
|
48
|
+
"group relative w-full flex items-center gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75 text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
|
|
49
|
+
"transition-colors before:transition-colors"
|
|
50
|
+
],
|
|
51
|
+
"itemLeadingIcon": [
|
|
52
|
+
"shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
53
|
+
"transition-colors"
|
|
54
|
+
],
|
|
55
|
+
"itemLeadingAvatar": "shrink-0",
|
|
56
|
+
"itemLeadingAvatarSize": "",
|
|
57
|
+
"itemLeadingChip": "shrink-0",
|
|
58
|
+
"itemLeadingChipSize": "",
|
|
59
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
60
|
+
"itemTrailingIcon": "shrink-0",
|
|
61
|
+
"itemLabel": "truncate",
|
|
62
|
+
"tagsItem": "px-1.5 py-0.5 rounded-sm font-medium inline-flex items-center gap-0.5 ring ring-inset ring-accented bg-elevated text-default data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
63
|
+
"tagsItemText": "truncate",
|
|
64
|
+
"tagsItemDelete": [
|
|
65
|
+
"inline-flex items-center rounded-xs text-dimmed hover:text-default hover:bg-accented/75 disabled:pointer-events-none",
|
|
66
|
+
"transition-colors"
|
|
67
|
+
],
|
|
68
|
+
"tagsItemDeleteIcon": "",
|
|
69
|
+
"tagsInput": ""
|
|
70
|
+
},
|
|
71
|
+
"variants": {
|
|
72
|
+
"buttonGroup": {
|
|
73
|
+
"horizontal": {
|
|
74
|
+
"root": "group has-focus-visible:z-[1]",
|
|
75
|
+
"base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
|
|
76
|
+
},
|
|
77
|
+
"vertical": {
|
|
78
|
+
"root": "group has-focus-visible:z-[1]",
|
|
79
|
+
"base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"size": {
|
|
83
|
+
"xs": {
|
|
84
|
+
"base": "px-2 py-1 text-xs gap-1",
|
|
85
|
+
"leading": "ps-2",
|
|
86
|
+
"trailing": "pe-2",
|
|
87
|
+
"leadingIcon": "size-4",
|
|
88
|
+
"leadingAvatarSize": "3xs",
|
|
89
|
+
"trailingIcon": "size-4",
|
|
90
|
+
"label": "p-1 text-[10px]/3 gap-1",
|
|
91
|
+
"item": "p-1 text-xs gap-1",
|
|
92
|
+
"itemLeadingIcon": "size-4",
|
|
93
|
+
"itemLeadingAvatarSize": "3xs",
|
|
94
|
+
"itemLeadingChip": "size-4",
|
|
95
|
+
"itemLeadingChipSize": "sm",
|
|
96
|
+
"itemTrailingIcon": "size-4",
|
|
97
|
+
"tagsItem": "text-[10px]/3",
|
|
98
|
+
"tagsItemDeleteIcon": "size-3"
|
|
99
|
+
},
|
|
100
|
+
"sm": {
|
|
101
|
+
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
102
|
+
"leading": "ps-2.5",
|
|
103
|
+
"trailing": "pe-2.5",
|
|
104
|
+
"leadingIcon": "size-4",
|
|
105
|
+
"leadingAvatarSize": "3xs",
|
|
106
|
+
"trailingIcon": "size-4",
|
|
107
|
+
"label": "p-1.5 text-[10px]/3 gap-1.5",
|
|
108
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
109
|
+
"itemLeadingIcon": "size-4",
|
|
110
|
+
"itemLeadingAvatarSize": "3xs",
|
|
111
|
+
"itemLeadingChip": "size-4",
|
|
112
|
+
"itemLeadingChipSize": "sm",
|
|
113
|
+
"itemTrailingIcon": "size-4",
|
|
114
|
+
"tagsItem": "text-[10px]/3",
|
|
115
|
+
"tagsItemDeleteIcon": "size-3"
|
|
116
|
+
},
|
|
117
|
+
"md": {
|
|
118
|
+
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
119
|
+
"leading": "ps-2.5",
|
|
120
|
+
"trailing": "pe-2.5",
|
|
121
|
+
"leadingIcon": "size-5",
|
|
122
|
+
"leadingAvatarSize": "2xs",
|
|
123
|
+
"trailingIcon": "size-5",
|
|
124
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
125
|
+
"item": "p-1.5 text-sm gap-1.5",
|
|
126
|
+
"itemLeadingIcon": "size-5",
|
|
127
|
+
"itemLeadingAvatarSize": "2xs",
|
|
128
|
+
"itemLeadingChip": "size-5",
|
|
129
|
+
"itemLeadingChipSize": "md",
|
|
130
|
+
"itemTrailingIcon": "size-5",
|
|
131
|
+
"tagsItem": "text-xs",
|
|
132
|
+
"tagsItemDeleteIcon": "size-3.5"
|
|
133
|
+
},
|
|
134
|
+
"lg": {
|
|
135
|
+
"base": "px-3 py-2 text-sm gap-2",
|
|
136
|
+
"leading": "ps-3",
|
|
137
|
+
"trailing": "pe-3",
|
|
138
|
+
"leadingIcon": "size-5",
|
|
139
|
+
"leadingAvatarSize": "2xs",
|
|
140
|
+
"trailingIcon": "size-5",
|
|
141
|
+
"label": "p-2 text-xs gap-2",
|
|
142
|
+
"item": "p-2 text-sm gap-2",
|
|
143
|
+
"itemLeadingIcon": "size-5",
|
|
144
|
+
"itemLeadingAvatarSize": "2xs",
|
|
145
|
+
"itemLeadingChip": "size-5",
|
|
146
|
+
"itemLeadingChipSize": "md",
|
|
147
|
+
"itemTrailingIcon": "size-5",
|
|
148
|
+
"tagsItem": "text-xs",
|
|
149
|
+
"tagsItemDeleteIcon": "size-3.5"
|
|
150
|
+
},
|
|
151
|
+
"xl": {
|
|
152
|
+
"base": "px-3 py-2 text-base gap-2",
|
|
153
|
+
"leading": "ps-3",
|
|
154
|
+
"trailing": "pe-3",
|
|
155
|
+
"leadingIcon": "size-6",
|
|
156
|
+
"leadingAvatarSize": "xs",
|
|
157
|
+
"trailingIcon": "size-6",
|
|
158
|
+
"label": "p-2 text-sm gap-2",
|
|
159
|
+
"item": "p-2 text-base gap-2",
|
|
160
|
+
"itemLeadingIcon": "size-6",
|
|
161
|
+
"itemLeadingAvatarSize": "xs",
|
|
162
|
+
"itemLeadingChip": "size-6",
|
|
163
|
+
"itemLeadingChipSize": "lg",
|
|
164
|
+
"itemTrailingIcon": "size-6",
|
|
165
|
+
"tagsItem": "text-sm",
|
|
166
|
+
"tagsItemDeleteIcon": "size-4"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"variant": {
|
|
170
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
171
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
172
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
173
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
174
|
+
"none": "text-highlighted bg-transparent"
|
|
175
|
+
},
|
|
176
|
+
"color": {
|
|
177
|
+
"primary": "",
|
|
178
|
+
"secondary": "",
|
|
179
|
+
"success": "",
|
|
180
|
+
"info": "",
|
|
181
|
+
"warning": "",
|
|
182
|
+
"error": "",
|
|
183
|
+
"neutral": ""
|
|
184
|
+
},
|
|
185
|
+
"leading": {
|
|
186
|
+
"true": ""
|
|
187
|
+
},
|
|
188
|
+
"trailing": {
|
|
189
|
+
"true": ""
|
|
190
|
+
},
|
|
191
|
+
"loading": {
|
|
192
|
+
"true": ""
|
|
193
|
+
},
|
|
194
|
+
"highlight": {
|
|
195
|
+
"true": ""
|
|
196
|
+
},
|
|
197
|
+
"type": {
|
|
198
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
199
|
+
},
|
|
200
|
+
"multiple": {
|
|
201
|
+
"true": {
|
|
202
|
+
"root": "flex-wrap",
|
|
203
|
+
"tagsInput": "border-0 bg-transparent placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
204
|
+
},
|
|
205
|
+
"false": {
|
|
206
|
+
"base": "w-full border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"compoundVariants": [
|
|
211
|
+
{
|
|
212
|
+
"color": "primary" as typeof color[number],
|
|
213
|
+
"multiple": true,
|
|
214
|
+
"variant": [
|
|
215
|
+
"outline" as typeof variant[number],
|
|
216
|
+
"subtle" as typeof variant[number]
|
|
217
|
+
],
|
|
218
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-primary"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"color": "secondary" as typeof color[number],
|
|
222
|
+
"multiple": true,
|
|
223
|
+
"variant": [
|
|
224
|
+
"outline" as typeof variant[number],
|
|
225
|
+
"subtle" as typeof variant[number]
|
|
226
|
+
],
|
|
227
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-secondary"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"color": "success" as typeof color[number],
|
|
231
|
+
"multiple": true,
|
|
232
|
+
"variant": [
|
|
233
|
+
"outline" as typeof variant[number],
|
|
234
|
+
"subtle" as typeof variant[number]
|
|
235
|
+
],
|
|
236
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-success"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"color": "info" as typeof color[number],
|
|
240
|
+
"multiple": true,
|
|
241
|
+
"variant": [
|
|
242
|
+
"outline" as typeof variant[number],
|
|
243
|
+
"subtle" as typeof variant[number]
|
|
244
|
+
],
|
|
245
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-info"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"color": "warning" as typeof color[number],
|
|
249
|
+
"multiple": true,
|
|
250
|
+
"variant": [
|
|
251
|
+
"outline" as typeof variant[number],
|
|
252
|
+
"subtle" as typeof variant[number]
|
|
253
|
+
],
|
|
254
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-warning"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"color": "error" as typeof color[number],
|
|
258
|
+
"multiple": true,
|
|
259
|
+
"variant": [
|
|
260
|
+
"outline" as typeof variant[number],
|
|
261
|
+
"subtle" as typeof variant[number]
|
|
262
|
+
],
|
|
263
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-error"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"color": "neutral" as typeof color[number],
|
|
267
|
+
"multiple": true,
|
|
268
|
+
"variant": [
|
|
269
|
+
"outline" as typeof variant[number],
|
|
270
|
+
"subtle" as typeof variant[number]
|
|
271
|
+
],
|
|
272
|
+
"class": "has-focus-visible:ring-2 has-focus-visible:ring-inverted"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"color": "primary" as typeof color[number],
|
|
276
|
+
"variant": [
|
|
277
|
+
"outline" as typeof variant[number],
|
|
278
|
+
"subtle" as typeof variant[number]
|
|
279
|
+
],
|
|
280
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"color": "secondary" as typeof color[number],
|
|
284
|
+
"variant": [
|
|
285
|
+
"outline" as typeof variant[number],
|
|
286
|
+
"subtle" as typeof variant[number]
|
|
287
|
+
],
|
|
288
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"color": "success" as typeof color[number],
|
|
292
|
+
"variant": [
|
|
293
|
+
"outline" as typeof variant[number],
|
|
294
|
+
"subtle" as typeof variant[number]
|
|
295
|
+
],
|
|
296
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"color": "info" as typeof color[number],
|
|
300
|
+
"variant": [
|
|
301
|
+
"outline" as typeof variant[number],
|
|
302
|
+
"subtle" as typeof variant[number]
|
|
303
|
+
],
|
|
304
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"color": "warning" as typeof color[number],
|
|
308
|
+
"variant": [
|
|
309
|
+
"outline" as typeof variant[number],
|
|
310
|
+
"subtle" as typeof variant[number]
|
|
311
|
+
],
|
|
312
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"color": "error" as typeof color[number],
|
|
316
|
+
"variant": [
|
|
317
|
+
"outline" as typeof variant[number],
|
|
318
|
+
"subtle" as typeof variant[number]
|
|
319
|
+
],
|
|
320
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"color": "primary" as typeof color[number],
|
|
324
|
+
"highlight": true,
|
|
325
|
+
"class": "ring ring-inset ring-primary"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"color": "secondary" as typeof color[number],
|
|
329
|
+
"highlight": true,
|
|
330
|
+
"class": "ring ring-inset ring-secondary"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"color": "success" as typeof color[number],
|
|
334
|
+
"highlight": true,
|
|
335
|
+
"class": "ring ring-inset ring-success"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"color": "info" as typeof color[number],
|
|
339
|
+
"highlight": true,
|
|
340
|
+
"class": "ring ring-inset ring-info"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"color": "warning" as typeof color[number],
|
|
344
|
+
"highlight": true,
|
|
345
|
+
"class": "ring ring-inset ring-warning"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"color": "error" as typeof color[number],
|
|
349
|
+
"highlight": true,
|
|
350
|
+
"class": "ring ring-inset ring-error"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"color": "neutral" as typeof color[number],
|
|
354
|
+
"variant": [
|
|
355
|
+
"outline" as typeof variant[number],
|
|
356
|
+
"subtle" as typeof variant[number]
|
|
357
|
+
],
|
|
358
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"color": "neutral" as typeof color[number],
|
|
362
|
+
"highlight": true,
|
|
363
|
+
"class": "ring ring-inset ring-inverted"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"leading": true,
|
|
367
|
+
"size": "xs" as typeof size[number],
|
|
368
|
+
"class": "ps-7"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"leading": true,
|
|
372
|
+
"size": "sm" as typeof size[number],
|
|
373
|
+
"class": "ps-8"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"leading": true,
|
|
377
|
+
"size": "md" as typeof size[number],
|
|
378
|
+
"class": "ps-9"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"leading": true,
|
|
382
|
+
"size": "lg" as typeof size[number],
|
|
383
|
+
"class": "ps-10"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"leading": true,
|
|
387
|
+
"size": "xl" as typeof size[number],
|
|
388
|
+
"class": "ps-11"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"trailing": true,
|
|
392
|
+
"size": "xs" as typeof size[number],
|
|
393
|
+
"class": "pe-7"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"trailing": true,
|
|
397
|
+
"size": "sm" as typeof size[number],
|
|
398
|
+
"class": "pe-8"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"trailing": true,
|
|
402
|
+
"size": "md" as typeof size[number],
|
|
403
|
+
"class": "pe-9"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"trailing": true,
|
|
407
|
+
"size": "lg" as typeof size[number],
|
|
408
|
+
"class": "pe-10"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"trailing": true,
|
|
412
|
+
"size": "xl" as typeof size[number],
|
|
413
|
+
"class": "pe-11"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"loading": true,
|
|
417
|
+
"leading": true,
|
|
418
|
+
"class": {
|
|
419
|
+
"leadingIcon": "animate-spin"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"loading": true,
|
|
424
|
+
"leading": false,
|
|
425
|
+
"trailing": true,
|
|
426
|
+
"class": {
|
|
427
|
+
"trailingIcon": "animate-spin"
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"defaultVariants": {
|
|
432
|
+
"size": "md" as typeof size[number],
|
|
433
|
+
"color": "primary" as typeof color[number],
|
|
434
|
+
"variant": "outline" as typeof variant[number]
|
|
435
|
+
}
|
|
436
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
const variant = [
|
|
20
|
+
"outline",
|
|
21
|
+
"soft",
|
|
22
|
+
"subtle",
|
|
23
|
+
"ghost",
|
|
24
|
+
"none"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
27
|
+
const orientation = [
|
|
28
|
+
"horizontal",
|
|
29
|
+
"vertical"
|
|
30
|
+
] as const
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
"slots": {
|
|
34
|
+
"root": "relative inline-flex items-center",
|
|
35
|
+
"base": [
|
|
36
|
+
"w-full rounded-md border-0 placeholder:text-dimmed focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
37
|
+
"transition-colors"
|
|
38
|
+
],
|
|
39
|
+
"increment": "absolute flex items-center",
|
|
40
|
+
"decrement": "absolute flex items-center"
|
|
41
|
+
},
|
|
42
|
+
"variants": {
|
|
43
|
+
"buttonGroup": {
|
|
44
|
+
"horizontal": {
|
|
45
|
+
"root": "group has-focus-visible:z-[1]",
|
|
46
|
+
"base": "group-not-only:group-first:rounded-e-none group-not-only:group-last:rounded-s-none group-not-last:group-not-first:rounded-none"
|
|
47
|
+
},
|
|
48
|
+
"vertical": {
|
|
49
|
+
"root": "group has-focus-visible:z-[1]",
|
|
50
|
+
"base": "group-not-only:group-first:rounded-b-none group-not-only:group-last:rounded-t-none group-not-last:group-not-first:rounded-none"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"color": {
|
|
54
|
+
"primary": "",
|
|
55
|
+
"secondary": "",
|
|
56
|
+
"success": "",
|
|
57
|
+
"info": "",
|
|
58
|
+
"warning": "",
|
|
59
|
+
"error": "",
|
|
60
|
+
"neutral": ""
|
|
61
|
+
},
|
|
62
|
+
"size": {
|
|
63
|
+
"xs": "px-2 py-1 text-xs gap-1",
|
|
64
|
+
"sm": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
65
|
+
"md": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
66
|
+
"lg": "px-3 py-2 text-sm gap-2",
|
|
67
|
+
"xl": "px-3 py-2 text-base gap-2"
|
|
68
|
+
},
|
|
69
|
+
"variant": {
|
|
70
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
71
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
72
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
73
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
74
|
+
"none": "text-highlighted bg-transparent"
|
|
75
|
+
},
|
|
76
|
+
"disabled": {
|
|
77
|
+
"true": {
|
|
78
|
+
"increment": "opacity-75 cursor-not-allowed",
|
|
79
|
+
"decrement": "opacity-75 cursor-not-allowed"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"orientation": {
|
|
83
|
+
"horizontal": {
|
|
84
|
+
"base": "text-center",
|
|
85
|
+
"increment": "inset-y-0 end-0 pe-1",
|
|
86
|
+
"decrement": "inset-y-0 start-0 ps-1"
|
|
87
|
+
},
|
|
88
|
+
"vertical": {
|
|
89
|
+
"increment": "top-0 end-0 pe-1 [&>button]:py-0 scale-80",
|
|
90
|
+
"decrement": "bottom-0 end-0 pe-1 [&>button]:py-0 scale-80"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"highlight": {
|
|
94
|
+
"true": ""
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"compoundVariants": [
|
|
98
|
+
{
|
|
99
|
+
"color": "primary" as typeof color[number],
|
|
100
|
+
"variant": [
|
|
101
|
+
"outline" as typeof variant[number],
|
|
102
|
+
"subtle" as typeof variant[number]
|
|
103
|
+
],
|
|
104
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"color": "secondary" as typeof color[number],
|
|
108
|
+
"variant": [
|
|
109
|
+
"outline" as typeof variant[number],
|
|
110
|
+
"subtle" as typeof variant[number]
|
|
111
|
+
],
|
|
112
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"color": "success" as typeof color[number],
|
|
116
|
+
"variant": [
|
|
117
|
+
"outline" as typeof variant[number],
|
|
118
|
+
"subtle" as typeof variant[number]
|
|
119
|
+
],
|
|
120
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"color": "info" as typeof color[number],
|
|
124
|
+
"variant": [
|
|
125
|
+
"outline" as typeof variant[number],
|
|
126
|
+
"subtle" as typeof variant[number]
|
|
127
|
+
],
|
|
128
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"color": "warning" as typeof color[number],
|
|
132
|
+
"variant": [
|
|
133
|
+
"outline" as typeof variant[number],
|
|
134
|
+
"subtle" as typeof variant[number]
|
|
135
|
+
],
|
|
136
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"color": "error" as typeof color[number],
|
|
140
|
+
"variant": [
|
|
141
|
+
"outline" as typeof variant[number],
|
|
142
|
+
"subtle" as typeof variant[number]
|
|
143
|
+
],
|
|
144
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"color": "primary" as typeof color[number],
|
|
148
|
+
"highlight": true,
|
|
149
|
+
"class": "ring ring-inset ring-primary"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"color": "secondary" as typeof color[number],
|
|
153
|
+
"highlight": true,
|
|
154
|
+
"class": "ring ring-inset ring-secondary"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"color": "success" as typeof color[number],
|
|
158
|
+
"highlight": true,
|
|
159
|
+
"class": "ring ring-inset ring-success"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"color": "info" as typeof color[number],
|
|
163
|
+
"highlight": true,
|
|
164
|
+
"class": "ring ring-inset ring-info"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"color": "warning" as typeof color[number],
|
|
168
|
+
"highlight": true,
|
|
169
|
+
"class": "ring ring-inset ring-warning"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"color": "error" as typeof color[number],
|
|
173
|
+
"highlight": true,
|
|
174
|
+
"class": "ring ring-inset ring-error"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"color": "neutral" as typeof color[number],
|
|
178
|
+
"variant": [
|
|
179
|
+
"outline" as typeof variant[number],
|
|
180
|
+
"subtle" as typeof variant[number]
|
|
181
|
+
],
|
|
182
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"color": "neutral" as typeof color[number],
|
|
186
|
+
"highlight": true,
|
|
187
|
+
"class": "ring ring-inset ring-inverted"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
191
|
+
"size": "xs" as typeof size[number],
|
|
192
|
+
"class": "px-7"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
196
|
+
"size": "sm" as typeof size[number],
|
|
197
|
+
"class": "px-8"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
201
|
+
"size": "md" as typeof size[number],
|
|
202
|
+
"class": "px-9"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
206
|
+
"size": "lg" as typeof size[number],
|
|
207
|
+
"class": "px-10"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
211
|
+
"size": "xl" as typeof size[number],
|
|
212
|
+
"class": "px-11"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
216
|
+
"size": "xs" as typeof size[number],
|
|
217
|
+
"class": "pe-7"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
221
|
+
"size": "sm" as typeof size[number],
|
|
222
|
+
"class": "pe-8"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
226
|
+
"size": "md" as typeof size[number],
|
|
227
|
+
"class": "pe-9"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
231
|
+
"size": "lg" as typeof size[number],
|
|
232
|
+
"class": "pe-10"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
236
|
+
"size": "xl" as typeof size[number],
|
|
237
|
+
"class": "pe-11"
|
|
238
|
+
}
|
|
239
|
+
],
|
|
240
|
+
"defaultVariants": {
|
|
241
|
+
"size": "md" as typeof size[number],
|
|
242
|
+
"color": "primary" as typeof color[number],
|
|
243
|
+
"variant": "outline" as typeof variant[number]
|
|
244
|
+
}
|
|
245
|
+
}
|