nuxt-ignis 0.2.5 → 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/app.config.mjs +18 -0
- package/.nuxt/component-chunk.mjs +1 -0
- package/.nuxt/components.d.ts +322 -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.json +18 -0
- package/.nuxt/dist/server/client.manifest.mjs +18 -0
- package/.nuxt/dist/server/server.mjs +1 -0
- package/.nuxt/eslint-typegen.d.ts +9401 -0
- package/.nuxt/eslint.config.d.mts +9 -0
- package/.nuxt/eslint.config.mjs +53 -0
- package/.nuxt/i18n.options.mjs +165 -0
- package/.nuxt/imports.d.ts +82 -0
- package/.nuxt/manifest/latest.json +1 -0
- package/.nuxt/manifest/meta/dev.json +1 -0
- 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/modules/@nuxt-scripts.d.ts +13 -0
- package/.nuxt/nitro.json +17 -0
- package/.nuxt/nuxt-fonts-global.css +0 -0
- 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 +49 -0
- package/.nuxt/nuxt.json +9 -0
- package/.nuxt/schema/nuxt.schema.d.ts +17 -0
- package/.nuxt/schema/nuxt.schema.json +3 -0
- package/.nuxt/tailwind/postcss.mjs +15 -0
- package/.nuxt/tsconfig.json +374 -0
- package/.nuxt/tsconfig.server.json +292 -0
- package/.nuxt/types/app-defaults.d.ts +7 -0
- package/.nuxt/types/app.config.d.ts +31 -0
- package/.nuxt/types/build.d.ts +27 -0
- package/.nuxt/types/builder-env.d.ts +1 -0
- package/.nuxt/types/i18n-plugin.d.ts +104 -0
- package/.nuxt/types/imports.d.ts +899 -0
- package/.nuxt/types/layouts.d.ts +7 -0
- package/.nuxt/types/middleware.d.ts +7 -0
- package/.nuxt/types/neon.d.ts +35 -0
- package/.nuxt/types/nitro-config.d.ts +14 -0
- package/.nuxt/types/nitro-imports.d.ts +405 -0
- package/.nuxt/types/nitro-middleware.d.ts +6 -0
- package/.nuxt/types/nitro-nuxt.d.ts +34 -0
- package/.nuxt/types/nitro-routes.d.ts +81 -0
- package/.nuxt/types/nitro.d.ts +3 -0
- package/.nuxt/types/plugins.d.ts +57 -0
- package/.nuxt/types/schema.d.ts +1372 -0
- package/.nuxt/types/ui.d.ts +35 -0
- package/.nuxt/types/vue-shim.d.ts +0 -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/app.vue +16 -36
- package/assets/css/nuxt-ui.css +16 -0
- package/assets/css/tailwind.css +10 -44
- package/components/AppFeature.vue +47 -3
- package/components/AppFeatureList.vue +86 -26
- package/components/CurrentTime.vue +9 -9
- package/components/ignis/IgnisFooter.vue +16 -0
- package/components/ignis/IgnisHeader.vue +48 -0
- package/components/ignis/IgnisInfo.vue +26 -0
- package/composables/useTranslation.ts +11 -4
- package/content/second.md +4 -0
- package/features.ts +129 -23
- package/i18n/i18n.config.ts +2 -2
- package/{assets/lang → i18n/locales}/en.json +6 -1
- package/i18n/locales/es.json +4 -0
- package/nuxt.config.ts +26 -2
- package/package.json +71 -79
- package/pages/ignis.vue +3 -0
- package/pages/index.vue +1 -12
- package/tailwind.config.ts +2 -1
- package/utils/i18n-sources.ts +20 -2
- package/vueform.config.ts +20 -0
- package/.gitattributes +0 -2
- package/CHANGELOG.md +0 -72
- package/LICENSE +0 -21
- package/README.md +0 -147
|
@@ -0,0 +1,346 @@
|
|
|
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
|
+
"base": [
|
|
30
|
+
"relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
31
|
+
"transition-colors"
|
|
32
|
+
],
|
|
33
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
34
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
35
|
+
"leadingAvatar": "shrink-0",
|
|
36
|
+
"leadingAvatarSize": "",
|
|
37
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
38
|
+
"trailingIcon": "shrink-0 text-dimmed",
|
|
39
|
+
"value": "truncate pointer-events-none",
|
|
40
|
+
"placeholder": "truncate text-dimmed",
|
|
41
|
+
"arrow": "fill-default",
|
|
42
|
+
"content": [
|
|
43
|
+
"max-h-60 w-(--reka-select-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-select-content-transform-origin) pointer-events-auto",
|
|
44
|
+
"origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"
|
|
45
|
+
],
|
|
46
|
+
"viewport": "divide-y divide-default scroll-py-1",
|
|
47
|
+
"group": "p-1 isolate",
|
|
48
|
+
"empty": "py-2 text-center text-sm text-muted",
|
|
49
|
+
"label": "font-semibold text-highlighted",
|
|
50
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
51
|
+
"item": [
|
|
52
|
+
"group relative w-full flex items-center 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",
|
|
53
|
+
"transition-colors before:transition-colors"
|
|
54
|
+
],
|
|
55
|
+
"itemLeadingIcon": [
|
|
56
|
+
"shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
57
|
+
"transition-colors"
|
|
58
|
+
],
|
|
59
|
+
"itemLeadingAvatar": "shrink-0",
|
|
60
|
+
"itemLeadingAvatarSize": "",
|
|
61
|
+
"itemLeadingChip": "shrink-0",
|
|
62
|
+
"itemLeadingChipSize": "",
|
|
63
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
64
|
+
"itemTrailingIcon": "shrink-0",
|
|
65
|
+
"itemLabel": "truncate",
|
|
66
|
+
"input": "border-b border-default",
|
|
67
|
+
"focusScope": "flex flex-col min-h-0"
|
|
68
|
+
},
|
|
69
|
+
"variants": {
|
|
70
|
+
"buttonGroup": {
|
|
71
|
+
"horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
|
|
72
|
+
"vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
|
|
73
|
+
},
|
|
74
|
+
"size": {
|
|
75
|
+
"xs": {
|
|
76
|
+
"base": "px-2 py-1 text-xs gap-1",
|
|
77
|
+
"leading": "ps-2",
|
|
78
|
+
"trailing": "pe-2",
|
|
79
|
+
"leadingIcon": "size-4",
|
|
80
|
+
"leadingAvatarSize": "3xs",
|
|
81
|
+
"trailingIcon": "size-4",
|
|
82
|
+
"label": "p-1 text-[10px]/3 gap-1",
|
|
83
|
+
"item": "p-1 text-xs gap-1",
|
|
84
|
+
"itemLeadingIcon": "size-4",
|
|
85
|
+
"itemLeadingAvatarSize": "3xs",
|
|
86
|
+
"itemLeadingChip": "size-4",
|
|
87
|
+
"itemLeadingChipSize": "sm",
|
|
88
|
+
"itemTrailingIcon": "size-4"
|
|
89
|
+
},
|
|
90
|
+
"sm": {
|
|
91
|
+
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
92
|
+
"leading": "ps-2.5",
|
|
93
|
+
"trailing": "pe-2.5",
|
|
94
|
+
"leadingIcon": "size-4",
|
|
95
|
+
"leadingAvatarSize": "3xs",
|
|
96
|
+
"trailingIcon": "size-4",
|
|
97
|
+
"label": "p-1.5 text-[10px]/3 gap-1.5",
|
|
98
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
99
|
+
"itemLeadingIcon": "size-4",
|
|
100
|
+
"itemLeadingAvatarSize": "3xs",
|
|
101
|
+
"itemLeadingChip": "size-4",
|
|
102
|
+
"itemLeadingChipSize": "sm",
|
|
103
|
+
"itemTrailingIcon": "size-4"
|
|
104
|
+
},
|
|
105
|
+
"md": {
|
|
106
|
+
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
107
|
+
"leading": "ps-2.5",
|
|
108
|
+
"trailing": "pe-2.5",
|
|
109
|
+
"leadingIcon": "size-5",
|
|
110
|
+
"leadingAvatarSize": "2xs",
|
|
111
|
+
"trailingIcon": "size-5",
|
|
112
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
113
|
+
"item": "p-1.5 text-sm gap-1.5",
|
|
114
|
+
"itemLeadingIcon": "size-5",
|
|
115
|
+
"itemLeadingAvatarSize": "2xs",
|
|
116
|
+
"itemLeadingChip": "size-5",
|
|
117
|
+
"itemLeadingChipSize": "md",
|
|
118
|
+
"itemTrailingIcon": "size-5"
|
|
119
|
+
},
|
|
120
|
+
"lg": {
|
|
121
|
+
"base": "px-3 py-2 text-sm gap-2",
|
|
122
|
+
"leading": "ps-3",
|
|
123
|
+
"trailing": "pe-3",
|
|
124
|
+
"leadingIcon": "size-5",
|
|
125
|
+
"leadingAvatarSize": "2xs",
|
|
126
|
+
"trailingIcon": "size-5",
|
|
127
|
+
"label": "p-2 text-xs gap-2",
|
|
128
|
+
"item": "p-2 text-sm gap-2",
|
|
129
|
+
"itemLeadingIcon": "size-5",
|
|
130
|
+
"itemLeadingAvatarSize": "2xs",
|
|
131
|
+
"itemLeadingChip": "size-5",
|
|
132
|
+
"itemLeadingChipSize": "md",
|
|
133
|
+
"itemTrailingIcon": "size-5"
|
|
134
|
+
},
|
|
135
|
+
"xl": {
|
|
136
|
+
"base": "px-3 py-2 text-base gap-2",
|
|
137
|
+
"leading": "ps-3",
|
|
138
|
+
"trailing": "pe-3",
|
|
139
|
+
"leadingIcon": "size-6",
|
|
140
|
+
"leadingAvatarSize": "xs",
|
|
141
|
+
"trailingIcon": "size-6",
|
|
142
|
+
"label": "p-2 text-sm gap-2",
|
|
143
|
+
"item": "p-2 text-base gap-2",
|
|
144
|
+
"itemLeadingIcon": "size-6",
|
|
145
|
+
"itemLeadingAvatarSize": "xs",
|
|
146
|
+
"itemLeadingChip": "size-6",
|
|
147
|
+
"itemLeadingChipSize": "lg",
|
|
148
|
+
"itemTrailingIcon": "size-6"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"variant": {
|
|
152
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
153
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
154
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
155
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
156
|
+
"none": "text-highlighted bg-transparent"
|
|
157
|
+
},
|
|
158
|
+
"color": {
|
|
159
|
+
"primary": "",
|
|
160
|
+
"secondary": "",
|
|
161
|
+
"success": "",
|
|
162
|
+
"info": "",
|
|
163
|
+
"warning": "",
|
|
164
|
+
"error": "",
|
|
165
|
+
"neutral": ""
|
|
166
|
+
},
|
|
167
|
+
"leading": {
|
|
168
|
+
"true": ""
|
|
169
|
+
},
|
|
170
|
+
"trailing": {
|
|
171
|
+
"true": ""
|
|
172
|
+
},
|
|
173
|
+
"loading": {
|
|
174
|
+
"true": ""
|
|
175
|
+
},
|
|
176
|
+
"highlight": {
|
|
177
|
+
"true": ""
|
|
178
|
+
},
|
|
179
|
+
"type": {
|
|
180
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"compoundVariants": [
|
|
184
|
+
{
|
|
185
|
+
"color": "primary" as typeof color[number],
|
|
186
|
+
"variant": [
|
|
187
|
+
"outline" as typeof variant[number],
|
|
188
|
+
"subtle" as typeof variant[number]
|
|
189
|
+
],
|
|
190
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"color": "secondary" as typeof color[number],
|
|
194
|
+
"variant": [
|
|
195
|
+
"outline" as typeof variant[number],
|
|
196
|
+
"subtle" as typeof variant[number]
|
|
197
|
+
],
|
|
198
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"color": "success" as typeof color[number],
|
|
202
|
+
"variant": [
|
|
203
|
+
"outline" as typeof variant[number],
|
|
204
|
+
"subtle" as typeof variant[number]
|
|
205
|
+
],
|
|
206
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"color": "info" as typeof color[number],
|
|
210
|
+
"variant": [
|
|
211
|
+
"outline" as typeof variant[number],
|
|
212
|
+
"subtle" as typeof variant[number]
|
|
213
|
+
],
|
|
214
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"color": "warning" as typeof color[number],
|
|
218
|
+
"variant": [
|
|
219
|
+
"outline" as typeof variant[number],
|
|
220
|
+
"subtle" as typeof variant[number]
|
|
221
|
+
],
|
|
222
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"color": "error" as typeof color[number],
|
|
226
|
+
"variant": [
|
|
227
|
+
"outline" as typeof variant[number],
|
|
228
|
+
"subtle" as typeof variant[number]
|
|
229
|
+
],
|
|
230
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"color": "primary" as typeof color[number],
|
|
234
|
+
"highlight": true,
|
|
235
|
+
"class": "ring ring-inset ring-primary"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"color": "secondary" as typeof color[number],
|
|
239
|
+
"highlight": true,
|
|
240
|
+
"class": "ring ring-inset ring-secondary"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"color": "success" as typeof color[number],
|
|
244
|
+
"highlight": true,
|
|
245
|
+
"class": "ring ring-inset ring-success"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"color": "info" as typeof color[number],
|
|
249
|
+
"highlight": true,
|
|
250
|
+
"class": "ring ring-inset ring-info"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"color": "warning" as typeof color[number],
|
|
254
|
+
"highlight": true,
|
|
255
|
+
"class": "ring ring-inset ring-warning"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"color": "error" as typeof color[number],
|
|
259
|
+
"highlight": true,
|
|
260
|
+
"class": "ring ring-inset ring-error"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"color": "neutral" as typeof color[number],
|
|
264
|
+
"variant": [
|
|
265
|
+
"outline" as typeof variant[number],
|
|
266
|
+
"subtle" as typeof variant[number]
|
|
267
|
+
],
|
|
268
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"color": "neutral" as typeof color[number],
|
|
272
|
+
"highlight": true,
|
|
273
|
+
"class": "ring ring-inset ring-inverted"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"leading": true,
|
|
277
|
+
"size": "xs" as typeof size[number],
|
|
278
|
+
"class": "ps-7"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"leading": true,
|
|
282
|
+
"size": "sm" as typeof size[number],
|
|
283
|
+
"class": "ps-8"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"leading": true,
|
|
287
|
+
"size": "md" as typeof size[number],
|
|
288
|
+
"class": "ps-9"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"leading": true,
|
|
292
|
+
"size": "lg" as typeof size[number],
|
|
293
|
+
"class": "ps-10"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"leading": true,
|
|
297
|
+
"size": "xl" as typeof size[number],
|
|
298
|
+
"class": "ps-11"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"trailing": true,
|
|
302
|
+
"size": "xs" as typeof size[number],
|
|
303
|
+
"class": "pe-7"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"trailing": true,
|
|
307
|
+
"size": "sm" as typeof size[number],
|
|
308
|
+
"class": "pe-8"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"trailing": true,
|
|
312
|
+
"size": "md" as typeof size[number],
|
|
313
|
+
"class": "pe-9"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"trailing": true,
|
|
317
|
+
"size": "lg" as typeof size[number],
|
|
318
|
+
"class": "pe-10"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"trailing": true,
|
|
322
|
+
"size": "xl" as typeof size[number],
|
|
323
|
+
"class": "pe-11"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"loading": true,
|
|
327
|
+
"leading": true,
|
|
328
|
+
"class": {
|
|
329
|
+
"leadingIcon": "animate-spin"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"loading": true,
|
|
334
|
+
"leading": false,
|
|
335
|
+
"trailing": true,
|
|
336
|
+
"class": {
|
|
337
|
+
"trailingIcon": "animate-spin"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"defaultVariants": {
|
|
342
|
+
"size": "md" as typeof size[number],
|
|
343
|
+
"color": "primary" as typeof color[number],
|
|
344
|
+
"variant": "outline" as typeof variant[number]
|
|
345
|
+
}
|
|
346
|
+
}
|
|
@@ -0,0 +1,341 @@
|
|
|
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
|
+
"base": [
|
|
30
|
+
"relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
31
|
+
"transition-colors"
|
|
32
|
+
],
|
|
33
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
34
|
+
"leadingIcon": "shrink-0 text-dimmed",
|
|
35
|
+
"leadingAvatar": "shrink-0",
|
|
36
|
+
"leadingAvatarSize": "",
|
|
37
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
38
|
+
"trailingIcon": "shrink-0 text-dimmed",
|
|
39
|
+
"value": "truncate pointer-events-none",
|
|
40
|
+
"placeholder": "truncate text-dimmed",
|
|
41
|
+
"arrow": "fill-default",
|
|
42
|
+
"content": "max-h-60 w-(--reka-select-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-select-content-transform-origin) pointer-events-auto",
|
|
43
|
+
"viewport": "divide-y divide-default scroll-py-1",
|
|
44
|
+
"group": "p-1 isolate",
|
|
45
|
+
"empty": "py-2 text-center text-sm text-muted",
|
|
46
|
+
"label": "font-semibold text-highlighted",
|
|
47
|
+
"separator": "-mx-1 my-1 h-px bg-border",
|
|
48
|
+
"item": [
|
|
49
|
+
"group relative w-full flex items-center 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",
|
|
50
|
+
"transition-colors before:transition-colors"
|
|
51
|
+
],
|
|
52
|
+
"itemLeadingIcon": [
|
|
53
|
+
"shrink-0 text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
54
|
+
"transition-colors"
|
|
55
|
+
],
|
|
56
|
+
"itemLeadingAvatar": "shrink-0",
|
|
57
|
+
"itemLeadingAvatarSize": "",
|
|
58
|
+
"itemLeadingChip": "shrink-0",
|
|
59
|
+
"itemLeadingChipSize": "",
|
|
60
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
61
|
+
"itemTrailingIcon": "shrink-0",
|
|
62
|
+
"itemLabel": "truncate"
|
|
63
|
+
},
|
|
64
|
+
"variants": {
|
|
65
|
+
"buttonGroup": {
|
|
66
|
+
"horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none focus-visible:z-[1]",
|
|
67
|
+
"vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none focus-visible:z-[1]"
|
|
68
|
+
},
|
|
69
|
+
"size": {
|
|
70
|
+
"xs": {
|
|
71
|
+
"base": "px-2 py-1 text-xs gap-1",
|
|
72
|
+
"leading": "ps-2",
|
|
73
|
+
"trailing": "pe-2",
|
|
74
|
+
"leadingIcon": "size-4",
|
|
75
|
+
"leadingAvatarSize": "3xs",
|
|
76
|
+
"trailingIcon": "size-4",
|
|
77
|
+
"label": "p-1 text-[10px]/3 gap-1",
|
|
78
|
+
"item": "p-1 text-xs gap-1",
|
|
79
|
+
"itemLeadingIcon": "size-4",
|
|
80
|
+
"itemLeadingAvatarSize": "3xs",
|
|
81
|
+
"itemLeadingChip": "size-4",
|
|
82
|
+
"itemLeadingChipSize": "sm",
|
|
83
|
+
"itemTrailingIcon": "size-4"
|
|
84
|
+
},
|
|
85
|
+
"sm": {
|
|
86
|
+
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
87
|
+
"leading": "ps-2.5",
|
|
88
|
+
"trailing": "pe-2.5",
|
|
89
|
+
"leadingIcon": "size-4",
|
|
90
|
+
"leadingAvatarSize": "3xs",
|
|
91
|
+
"trailingIcon": "size-4",
|
|
92
|
+
"label": "p-1.5 text-[10px]/3 gap-1.5",
|
|
93
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
94
|
+
"itemLeadingIcon": "size-4",
|
|
95
|
+
"itemLeadingAvatarSize": "3xs",
|
|
96
|
+
"itemLeadingChip": "size-4",
|
|
97
|
+
"itemLeadingChipSize": "sm",
|
|
98
|
+
"itemTrailingIcon": "size-4"
|
|
99
|
+
},
|
|
100
|
+
"md": {
|
|
101
|
+
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
102
|
+
"leading": "ps-2.5",
|
|
103
|
+
"trailing": "pe-2.5",
|
|
104
|
+
"leadingIcon": "size-5",
|
|
105
|
+
"leadingAvatarSize": "2xs",
|
|
106
|
+
"trailingIcon": "size-5",
|
|
107
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
108
|
+
"item": "p-1.5 text-sm gap-1.5",
|
|
109
|
+
"itemLeadingIcon": "size-5",
|
|
110
|
+
"itemLeadingAvatarSize": "2xs",
|
|
111
|
+
"itemLeadingChip": "size-5",
|
|
112
|
+
"itemLeadingChipSize": "md",
|
|
113
|
+
"itemTrailingIcon": "size-5"
|
|
114
|
+
},
|
|
115
|
+
"lg": {
|
|
116
|
+
"base": "px-3 py-2 text-sm gap-2",
|
|
117
|
+
"leading": "ps-3",
|
|
118
|
+
"trailing": "pe-3",
|
|
119
|
+
"leadingIcon": "size-5",
|
|
120
|
+
"leadingAvatarSize": "2xs",
|
|
121
|
+
"trailingIcon": "size-5",
|
|
122
|
+
"label": "p-2 text-xs gap-2",
|
|
123
|
+
"item": "p-2 text-sm gap-2",
|
|
124
|
+
"itemLeadingIcon": "size-5",
|
|
125
|
+
"itemLeadingAvatarSize": "2xs",
|
|
126
|
+
"itemLeadingChip": "size-5",
|
|
127
|
+
"itemLeadingChipSize": "md",
|
|
128
|
+
"itemTrailingIcon": "size-5"
|
|
129
|
+
},
|
|
130
|
+
"xl": {
|
|
131
|
+
"base": "px-3 py-2 text-base gap-2",
|
|
132
|
+
"leading": "ps-3",
|
|
133
|
+
"trailing": "pe-3",
|
|
134
|
+
"leadingIcon": "size-6",
|
|
135
|
+
"leadingAvatarSize": "xs",
|
|
136
|
+
"trailingIcon": "size-6",
|
|
137
|
+
"label": "p-2 text-sm gap-2",
|
|
138
|
+
"item": "p-2 text-base gap-2",
|
|
139
|
+
"itemLeadingIcon": "size-6",
|
|
140
|
+
"itemLeadingAvatarSize": "xs",
|
|
141
|
+
"itemLeadingChip": "size-6",
|
|
142
|
+
"itemLeadingChipSize": "lg",
|
|
143
|
+
"itemTrailingIcon": "size-6"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"variant": {
|
|
147
|
+
"outline": "text-highlighted bg-default ring ring-inset ring-accented",
|
|
148
|
+
"soft": "text-highlighted bg-elevated/50 hover:bg-elevated focus:bg-elevated disabled:bg-elevated/50",
|
|
149
|
+
"subtle": "text-highlighted bg-elevated ring ring-inset ring-accented",
|
|
150
|
+
"ghost": "text-highlighted bg-transparent hover:bg-elevated focus:bg-elevated disabled:bg-transparent dark:disabled:bg-transparent",
|
|
151
|
+
"none": "text-highlighted bg-transparent"
|
|
152
|
+
},
|
|
153
|
+
"color": {
|
|
154
|
+
"primary": "",
|
|
155
|
+
"secondary": "",
|
|
156
|
+
"success": "",
|
|
157
|
+
"info": "",
|
|
158
|
+
"warning": "",
|
|
159
|
+
"error": "",
|
|
160
|
+
"neutral": ""
|
|
161
|
+
},
|
|
162
|
+
"leading": {
|
|
163
|
+
"true": ""
|
|
164
|
+
},
|
|
165
|
+
"trailing": {
|
|
166
|
+
"true": ""
|
|
167
|
+
},
|
|
168
|
+
"loading": {
|
|
169
|
+
"true": ""
|
|
170
|
+
},
|
|
171
|
+
"highlight": {
|
|
172
|
+
"true": ""
|
|
173
|
+
},
|
|
174
|
+
"type": {
|
|
175
|
+
"file": "file:me-1.5 file:font-medium file:text-muted file:outline-none"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"compoundVariants": [
|
|
179
|
+
{
|
|
180
|
+
"color": "primary" as typeof color[number],
|
|
181
|
+
"variant": [
|
|
182
|
+
"outline" as typeof variant[number],
|
|
183
|
+
"subtle" as typeof variant[number]
|
|
184
|
+
],
|
|
185
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"color": "secondary" as typeof color[number],
|
|
189
|
+
"variant": [
|
|
190
|
+
"outline" as typeof variant[number],
|
|
191
|
+
"subtle" as typeof variant[number]
|
|
192
|
+
],
|
|
193
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"color": "success" as typeof color[number],
|
|
197
|
+
"variant": [
|
|
198
|
+
"outline" as typeof variant[number],
|
|
199
|
+
"subtle" as typeof variant[number]
|
|
200
|
+
],
|
|
201
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"color": "info" as typeof color[number],
|
|
205
|
+
"variant": [
|
|
206
|
+
"outline" as typeof variant[number],
|
|
207
|
+
"subtle" as typeof variant[number]
|
|
208
|
+
],
|
|
209
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"color": "warning" as typeof color[number],
|
|
213
|
+
"variant": [
|
|
214
|
+
"outline" as typeof variant[number],
|
|
215
|
+
"subtle" as typeof variant[number]
|
|
216
|
+
],
|
|
217
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"color": "error" as typeof color[number],
|
|
221
|
+
"variant": [
|
|
222
|
+
"outline" as typeof variant[number],
|
|
223
|
+
"subtle" as typeof variant[number]
|
|
224
|
+
],
|
|
225
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"color": "primary" as typeof color[number],
|
|
229
|
+
"highlight": true,
|
|
230
|
+
"class": "ring ring-inset ring-primary"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"color": "secondary" as typeof color[number],
|
|
234
|
+
"highlight": true,
|
|
235
|
+
"class": "ring ring-inset ring-secondary"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"color": "success" as typeof color[number],
|
|
239
|
+
"highlight": true,
|
|
240
|
+
"class": "ring ring-inset ring-success"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"color": "info" as typeof color[number],
|
|
244
|
+
"highlight": true,
|
|
245
|
+
"class": "ring ring-inset ring-info"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"color": "warning" as typeof color[number],
|
|
249
|
+
"highlight": true,
|
|
250
|
+
"class": "ring ring-inset ring-warning"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"color": "error" as typeof color[number],
|
|
254
|
+
"highlight": true,
|
|
255
|
+
"class": "ring ring-inset ring-error"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"color": "neutral" as typeof color[number],
|
|
259
|
+
"variant": [
|
|
260
|
+
"outline" as typeof variant[number],
|
|
261
|
+
"subtle" as typeof variant[number]
|
|
262
|
+
],
|
|
263
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"color": "neutral" as typeof color[number],
|
|
267
|
+
"highlight": true,
|
|
268
|
+
"class": "ring ring-inset ring-inverted"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"leading": true,
|
|
272
|
+
"size": "xs" as typeof size[number],
|
|
273
|
+
"class": "ps-7"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"leading": true,
|
|
277
|
+
"size": "sm" as typeof size[number],
|
|
278
|
+
"class": "ps-8"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"leading": true,
|
|
282
|
+
"size": "md" as typeof size[number],
|
|
283
|
+
"class": "ps-9"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"leading": true,
|
|
287
|
+
"size": "lg" as typeof size[number],
|
|
288
|
+
"class": "ps-10"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"leading": true,
|
|
292
|
+
"size": "xl" as typeof size[number],
|
|
293
|
+
"class": "ps-11"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"trailing": true,
|
|
297
|
+
"size": "xs" as typeof size[number],
|
|
298
|
+
"class": "pe-7"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"trailing": true,
|
|
302
|
+
"size": "sm" as typeof size[number],
|
|
303
|
+
"class": "pe-8"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"trailing": true,
|
|
307
|
+
"size": "md" as typeof size[number],
|
|
308
|
+
"class": "pe-9"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"trailing": true,
|
|
312
|
+
"size": "lg" as typeof size[number],
|
|
313
|
+
"class": "pe-10"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"trailing": true,
|
|
317
|
+
"size": "xl" as typeof size[number],
|
|
318
|
+
"class": "pe-11"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"loading": true,
|
|
322
|
+
"leading": true,
|
|
323
|
+
"class": {
|
|
324
|
+
"leadingIcon": "animate-spin"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"loading": true,
|
|
329
|
+
"leading": false,
|
|
330
|
+
"trailing": true,
|
|
331
|
+
"class": {
|
|
332
|
+
"trailingIcon": "animate-spin"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"defaultVariants": {
|
|
337
|
+
"size": "md" as typeof size[number],
|
|
338
|
+
"color": "primary" as typeof color[number],
|
|
339
|
+
"variant": "outline" as typeof variant[number]
|
|
340
|
+
}
|
|
341
|
+
}
|