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,204 @@
|
|
|
1
|
+
const orientation = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const color = [
|
|
7
|
+
"primary",
|
|
8
|
+
"secondary",
|
|
9
|
+
"success",
|
|
10
|
+
"info",
|
|
11
|
+
"warning",
|
|
12
|
+
"error",
|
|
13
|
+
"neutral"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const variant = [
|
|
17
|
+
"list",
|
|
18
|
+
"card",
|
|
19
|
+
"table"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
const size = [
|
|
23
|
+
"xs",
|
|
24
|
+
"sm",
|
|
25
|
+
"md",
|
|
26
|
+
"lg",
|
|
27
|
+
"xl"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "relative",
|
|
33
|
+
"fieldset": "flex gap-x-2",
|
|
34
|
+
"legend": "mb-1 block font-medium text-default",
|
|
35
|
+
"item": ""
|
|
36
|
+
},
|
|
37
|
+
"variants": {
|
|
38
|
+
"orientation": {
|
|
39
|
+
"horizontal": {
|
|
40
|
+
"fieldset": "flex-row"
|
|
41
|
+
},
|
|
42
|
+
"vertical": {
|
|
43
|
+
"fieldset": "flex-col"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"color": {
|
|
47
|
+
"primary": {},
|
|
48
|
+
"secondary": {},
|
|
49
|
+
"success": {},
|
|
50
|
+
"info": {},
|
|
51
|
+
"warning": {},
|
|
52
|
+
"error": {},
|
|
53
|
+
"neutral": {}
|
|
54
|
+
},
|
|
55
|
+
"variant": {
|
|
56
|
+
"list": {},
|
|
57
|
+
"card": {},
|
|
58
|
+
"table": {
|
|
59
|
+
"item": "border border-muted"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"size": {
|
|
63
|
+
"xs": {
|
|
64
|
+
"fieldset": "gap-y-0.5",
|
|
65
|
+
"legend": "text-xs"
|
|
66
|
+
},
|
|
67
|
+
"sm": {
|
|
68
|
+
"fieldset": "gap-y-0.5",
|
|
69
|
+
"legend": "text-xs"
|
|
70
|
+
},
|
|
71
|
+
"md": {
|
|
72
|
+
"fieldset": "gap-y-1",
|
|
73
|
+
"legend": "text-sm"
|
|
74
|
+
},
|
|
75
|
+
"lg": {
|
|
76
|
+
"fieldset": "gap-y-1",
|
|
77
|
+
"legend": "text-sm"
|
|
78
|
+
},
|
|
79
|
+
"xl": {
|
|
80
|
+
"fieldset": "gap-y-1.5",
|
|
81
|
+
"legend": "text-base"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": {
|
|
85
|
+
"true": {
|
|
86
|
+
"legend": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"compoundVariants": [
|
|
91
|
+
{
|
|
92
|
+
"size": "xs" as typeof size[number],
|
|
93
|
+
"variant": "table" as typeof variant[number],
|
|
94
|
+
"class": {
|
|
95
|
+
"item": "p-2.5"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"size": "sm" as typeof size[number],
|
|
100
|
+
"variant": "table" as typeof variant[number],
|
|
101
|
+
"class": {
|
|
102
|
+
"item": "p-3"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"size": "md" as typeof size[number],
|
|
107
|
+
"variant": "table" as typeof variant[number],
|
|
108
|
+
"class": {
|
|
109
|
+
"item": "p-3.5"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"size": "lg" as typeof size[number],
|
|
114
|
+
"variant": "table" as typeof variant[number],
|
|
115
|
+
"class": {
|
|
116
|
+
"item": "p-4"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"size": "xl" as typeof size[number],
|
|
121
|
+
"variant": "table" as typeof variant[number],
|
|
122
|
+
"class": {
|
|
123
|
+
"item": "p-4.5"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
128
|
+
"variant": "table" as typeof variant[number],
|
|
129
|
+
"class": {
|
|
130
|
+
"item": "first-of-type:rounded-l-lg last-of-type:rounded-r-lg",
|
|
131
|
+
"fieldset": "gap-0 -space-x-px"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
136
|
+
"variant": "table" as typeof variant[number],
|
|
137
|
+
"class": {
|
|
138
|
+
"item": "first-of-type:rounded-t-lg last-of-type:rounded-b-lg",
|
|
139
|
+
"fieldset": "gap-0 -space-y-px"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"color": "primary" as typeof color[number],
|
|
144
|
+
"variant": "table" as typeof variant[number],
|
|
145
|
+
"class": {
|
|
146
|
+
"item": "has-data-[state=checked]:bg-primary/10 has-data-[state=checked]:border-primary/50 has-data-[state=checked]:z-[1]"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"color": "secondary" as typeof color[number],
|
|
151
|
+
"variant": "table" as typeof variant[number],
|
|
152
|
+
"class": {
|
|
153
|
+
"item": "has-data-[state=checked]:bg-secondary/10 has-data-[state=checked]:border-secondary/50 has-data-[state=checked]:z-[1]"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"color": "success" as typeof color[number],
|
|
158
|
+
"variant": "table" as typeof variant[number],
|
|
159
|
+
"class": {
|
|
160
|
+
"item": "has-data-[state=checked]:bg-success/10 has-data-[state=checked]:border-success/50 has-data-[state=checked]:z-[1]"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"color": "info" as typeof color[number],
|
|
165
|
+
"variant": "table" as typeof variant[number],
|
|
166
|
+
"class": {
|
|
167
|
+
"item": "has-data-[state=checked]:bg-info/10 has-data-[state=checked]:border-info/50 has-data-[state=checked]:z-[1]"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"color": "warning" as typeof color[number],
|
|
172
|
+
"variant": "table" as typeof variant[number],
|
|
173
|
+
"class": {
|
|
174
|
+
"item": "has-data-[state=checked]:bg-warning/10 has-data-[state=checked]:border-warning/50 has-data-[state=checked]:z-[1]"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"color": "error" as typeof color[number],
|
|
179
|
+
"variant": "table" as typeof variant[number],
|
|
180
|
+
"class": {
|
|
181
|
+
"item": "has-data-[state=checked]:bg-error/10 has-data-[state=checked]:border-error/50 has-data-[state=checked]:z-[1]"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"color": "neutral" as typeof color[number],
|
|
186
|
+
"variant": "table" as typeof variant[number],
|
|
187
|
+
"class": {
|
|
188
|
+
"item": "has-data-[state=checked]:bg-elevated has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:z-[1]"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"variant": "table" as typeof variant[number],
|
|
193
|
+
"disabled": true,
|
|
194
|
+
"class": {
|
|
195
|
+
"item": "cursor-not-allowed opacity-75"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"defaultVariants": {
|
|
200
|
+
"size": "md" as typeof size[number],
|
|
201
|
+
"variant": "list" as typeof variant[number],
|
|
202
|
+
"color": "primary" as typeof color[number]
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const variant = [
|
|
12
|
+
"list",
|
|
13
|
+
"card"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const indicator = [
|
|
17
|
+
"start",
|
|
18
|
+
"end",
|
|
19
|
+
"hidden"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
const size = [
|
|
23
|
+
"xs",
|
|
24
|
+
"sm",
|
|
25
|
+
"md",
|
|
26
|
+
"lg",
|
|
27
|
+
"xl"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "relative flex items-start",
|
|
33
|
+
"container": "flex items-center",
|
|
34
|
+
"base": "rounded-sm ring ring-inset ring-accented overflow-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
35
|
+
"indicator": "flex items-center justify-center size-full text-inverted" as typeof indicator[number],
|
|
36
|
+
"icon": "shrink-0 size-full",
|
|
37
|
+
"wrapper": "w-full",
|
|
38
|
+
"label": "block font-medium text-default",
|
|
39
|
+
"description": "text-muted"
|
|
40
|
+
},
|
|
41
|
+
"variants": {
|
|
42
|
+
"color": {
|
|
43
|
+
"primary": {
|
|
44
|
+
"base": "focus-visible:outline-primary",
|
|
45
|
+
"indicator": "bg-primary" as typeof indicator[number]
|
|
46
|
+
},
|
|
47
|
+
"secondary": {
|
|
48
|
+
"base": "focus-visible:outline-secondary",
|
|
49
|
+
"indicator": "bg-secondary" as typeof indicator[number]
|
|
50
|
+
},
|
|
51
|
+
"success": {
|
|
52
|
+
"base": "focus-visible:outline-success",
|
|
53
|
+
"indicator": "bg-success" as typeof indicator[number]
|
|
54
|
+
},
|
|
55
|
+
"info": {
|
|
56
|
+
"base": "focus-visible:outline-info",
|
|
57
|
+
"indicator": "bg-info" as typeof indicator[number]
|
|
58
|
+
},
|
|
59
|
+
"warning": {
|
|
60
|
+
"base": "focus-visible:outline-warning",
|
|
61
|
+
"indicator": "bg-warning" as typeof indicator[number]
|
|
62
|
+
},
|
|
63
|
+
"error": {
|
|
64
|
+
"base": "focus-visible:outline-error",
|
|
65
|
+
"indicator": "bg-error" as typeof indicator[number]
|
|
66
|
+
},
|
|
67
|
+
"neutral": {
|
|
68
|
+
"base": "focus-visible:outline-inverted",
|
|
69
|
+
"indicator": "bg-inverted" as typeof indicator[number]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"variant": {
|
|
73
|
+
"list": {
|
|
74
|
+
"root": ""
|
|
75
|
+
},
|
|
76
|
+
"card": {
|
|
77
|
+
"root": "border border-muted rounded-lg"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"indicator": {
|
|
81
|
+
"start": {
|
|
82
|
+
"root": "flex-row",
|
|
83
|
+
"wrapper": "ms-2"
|
|
84
|
+
},
|
|
85
|
+
"end": {
|
|
86
|
+
"root": "flex-row-reverse",
|
|
87
|
+
"wrapper": "me-2"
|
|
88
|
+
},
|
|
89
|
+
"hidden": {
|
|
90
|
+
"base": "sr-only",
|
|
91
|
+
"wrapper": "text-center"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"size": {
|
|
95
|
+
"xs": {
|
|
96
|
+
"base": "size-3",
|
|
97
|
+
"container": "h-4",
|
|
98
|
+
"wrapper": "text-xs"
|
|
99
|
+
},
|
|
100
|
+
"sm": {
|
|
101
|
+
"base": "size-3.5",
|
|
102
|
+
"container": "h-4",
|
|
103
|
+
"wrapper": "text-xs"
|
|
104
|
+
},
|
|
105
|
+
"md": {
|
|
106
|
+
"base": "size-4",
|
|
107
|
+
"container": "h-5",
|
|
108
|
+
"wrapper": "text-sm"
|
|
109
|
+
},
|
|
110
|
+
"lg": {
|
|
111
|
+
"base": "size-4.5",
|
|
112
|
+
"container": "h-5",
|
|
113
|
+
"wrapper": "text-sm"
|
|
114
|
+
},
|
|
115
|
+
"xl": {
|
|
116
|
+
"base": "size-5",
|
|
117
|
+
"container": "h-6",
|
|
118
|
+
"wrapper": "text-base"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": {
|
|
122
|
+
"true": {
|
|
123
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"disabled": {
|
|
127
|
+
"true": {
|
|
128
|
+
"base": "cursor-not-allowed opacity-75",
|
|
129
|
+
"label": "cursor-not-allowed opacity-75",
|
|
130
|
+
"description": "cursor-not-allowed opacity-75"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"checked": {
|
|
134
|
+
"true": ""
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"compoundVariants": [
|
|
138
|
+
{
|
|
139
|
+
"size": "xs" as typeof size[number],
|
|
140
|
+
"variant": "card" as typeof variant[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"root": "p-2.5"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"size": "sm" as typeof size[number],
|
|
147
|
+
"variant": "card" as typeof variant[number],
|
|
148
|
+
"class": {
|
|
149
|
+
"root": "p-3"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"size": "md" as typeof size[number],
|
|
154
|
+
"variant": "card" as typeof variant[number],
|
|
155
|
+
"class": {
|
|
156
|
+
"root": "p-3.5"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"size": "lg" as typeof size[number],
|
|
161
|
+
"variant": "card" as typeof variant[number],
|
|
162
|
+
"class": {
|
|
163
|
+
"root": "p-4"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"size": "xl" as typeof size[number],
|
|
168
|
+
"variant": "card" as typeof variant[number],
|
|
169
|
+
"class": {
|
|
170
|
+
"root": "p-4.5"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"color": "primary" as typeof color[number],
|
|
175
|
+
"variant": "card" as typeof variant[number],
|
|
176
|
+
"class": {
|
|
177
|
+
"root": "has-data-[state=checked]:border-primary"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"color": "secondary" as typeof color[number],
|
|
182
|
+
"variant": "card" as typeof variant[number],
|
|
183
|
+
"class": {
|
|
184
|
+
"root": "has-data-[state=checked]:border-secondary"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"color": "success" as typeof color[number],
|
|
189
|
+
"variant": "card" as typeof variant[number],
|
|
190
|
+
"class": {
|
|
191
|
+
"root": "has-data-[state=checked]:border-success"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"color": "info" as typeof color[number],
|
|
196
|
+
"variant": "card" as typeof variant[number],
|
|
197
|
+
"class": {
|
|
198
|
+
"root": "has-data-[state=checked]:border-info"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"color": "warning" as typeof color[number],
|
|
203
|
+
"variant": "card" as typeof variant[number],
|
|
204
|
+
"class": {
|
|
205
|
+
"root": "has-data-[state=checked]:border-warning"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"color": "error" as typeof color[number],
|
|
210
|
+
"variant": "card" as typeof variant[number],
|
|
211
|
+
"class": {
|
|
212
|
+
"root": "has-data-[state=checked]:border-error"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"color": "neutral" as typeof color[number],
|
|
217
|
+
"variant": "card" as typeof variant[number],
|
|
218
|
+
"class": {
|
|
219
|
+
"root": "has-data-[state=checked]:border-inverted"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"variant": "card" as typeof variant[number],
|
|
224
|
+
"disabled": true,
|
|
225
|
+
"class": {
|
|
226
|
+
"root": "cursor-not-allowed opacity-75"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"defaultVariants": {
|
|
231
|
+
"size": "md" as typeof size[number],
|
|
232
|
+
"color": "primary" as typeof color[number],
|
|
233
|
+
"variant": "list" as typeof variant[number],
|
|
234
|
+
"indicator": "start" as typeof indicator[number]
|
|
235
|
+
}
|
|
236
|
+
}
|
package/.nuxt/ui/chip.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
"3xs",
|
|
13
|
+
"2xs",
|
|
14
|
+
"xs",
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg",
|
|
18
|
+
"xl",
|
|
19
|
+
"2xl",
|
|
20
|
+
"3xl"
|
|
21
|
+
] as const
|
|
22
|
+
|
|
23
|
+
const position = [
|
|
24
|
+
"top-right",
|
|
25
|
+
"bottom-right",
|
|
26
|
+
"top-left",
|
|
27
|
+
"bottom-left"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "relative inline-flex items-center justify-center shrink-0",
|
|
33
|
+
"base": "rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"
|
|
34
|
+
},
|
|
35
|
+
"variants": {
|
|
36
|
+
"color": {
|
|
37
|
+
"primary": "bg-primary",
|
|
38
|
+
"secondary": "bg-secondary",
|
|
39
|
+
"success": "bg-success",
|
|
40
|
+
"info": "bg-info",
|
|
41
|
+
"warning": "bg-warning",
|
|
42
|
+
"error": "bg-error",
|
|
43
|
+
"neutral": "bg-inverted"
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"3xs": "h-[4px] min-w-[4px] text-[4px]",
|
|
47
|
+
"2xs": "h-[5px] min-w-[5px] text-[5px]",
|
|
48
|
+
"xs": "h-[6px] min-w-[6px] text-[6px]",
|
|
49
|
+
"sm": "h-[7px] min-w-[7px] text-[7px]",
|
|
50
|
+
"md": "h-[8px] min-w-[8px] text-[8px]",
|
|
51
|
+
"lg": "h-[9px] min-w-[9px] text-[9px]",
|
|
52
|
+
"xl": "h-[10px] min-w-[10px] text-[10px]",
|
|
53
|
+
"2xl": "h-[11px] min-w-[11px] text-[11px]",
|
|
54
|
+
"3xl": "h-[12px] min-w-[12px] text-[12px]"
|
|
55
|
+
},
|
|
56
|
+
"position": {
|
|
57
|
+
"top-right": "top-0 right-0",
|
|
58
|
+
"bottom-right": "bottom-0 right-0",
|
|
59
|
+
"top-left": "top-0 left-0",
|
|
60
|
+
"bottom-left": "bottom-0 left-0"
|
|
61
|
+
},
|
|
62
|
+
"inset": {
|
|
63
|
+
"false": ""
|
|
64
|
+
},
|
|
65
|
+
"standalone": {
|
|
66
|
+
"false": "absolute"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"compoundVariants": [
|
|
70
|
+
{
|
|
71
|
+
"position": "top-right" as typeof position[number],
|
|
72
|
+
"inset": false,
|
|
73
|
+
"class": "-translate-y-1/2 translate-x-1/2 transform"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"position": "bottom-right" as typeof position[number],
|
|
77
|
+
"inset": false,
|
|
78
|
+
"class": "translate-y-1/2 translate-x-1/2 transform"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"position": "top-left" as typeof position[number],
|
|
82
|
+
"inset": false,
|
|
83
|
+
"class": "-translate-y-1/2 -translate-x-1/2 transform"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"position": "bottom-left" as typeof position[number],
|
|
87
|
+
"inset": false,
|
|
88
|
+
"class": "translate-y-1/2 -translate-x-1/2 transform"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"defaultVariants": {
|
|
92
|
+
"size": "md" as typeof size[number],
|
|
93
|
+
"color": "primary" as typeof color[number],
|
|
94
|
+
"position": "top-right" as typeof position[number]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
"slots": {
|
|
11
|
+
"root": "data-[disabled]:opacity-75",
|
|
12
|
+
"picker": "flex gap-4",
|
|
13
|
+
"selector": "rounded-md touch-none",
|
|
14
|
+
"selectorBackground": "w-full h-full relative rounded-md",
|
|
15
|
+
"selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-(--color-white) rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
16
|
+
"track": "w-[8px] relative rounded-md touch-none",
|
|
17
|
+
"trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-(--color-white) cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
18
|
+
},
|
|
19
|
+
"variants": {
|
|
20
|
+
"size": {
|
|
21
|
+
"xs": {
|
|
22
|
+
"selector": "w-38 h-38",
|
|
23
|
+
"track": "h-38"
|
|
24
|
+
},
|
|
25
|
+
"sm": {
|
|
26
|
+
"selector": "w-40 h-40",
|
|
27
|
+
"track": "h-40"
|
|
28
|
+
},
|
|
29
|
+
"md": {
|
|
30
|
+
"selector": "w-42 h-42",
|
|
31
|
+
"track": "h-42"
|
|
32
|
+
},
|
|
33
|
+
"lg": {
|
|
34
|
+
"selector": "w-44 h-44",
|
|
35
|
+
"track": "h-44"
|
|
36
|
+
},
|
|
37
|
+
"xl": {
|
|
38
|
+
"selector": "w-46 h-46",
|
|
39
|
+
"track": "h-46"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"compoundVariants": [],
|
|
44
|
+
"defaultVariants": {
|
|
45
|
+
"size": "md" as typeof size[number]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-default",
|
|
4
|
+
"input": "[&>input]:h-12",
|
|
5
|
+
"close": "",
|
|
6
|
+
"content": "relative overflow-hidden flex flex-col",
|
|
7
|
+
"viewport": "relative divide-y divide-default scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
|
|
8
|
+
"group": "p-1 isolate",
|
|
9
|
+
"empty": "py-6 text-center text-sm text-muted",
|
|
10
|
+
"label": "p-1.5 text-xs font-semibold text-highlighted",
|
|
11
|
+
"item": "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",
|
|
12
|
+
"itemLeadingIcon": "shrink-0 size-5",
|
|
13
|
+
"itemLeadingAvatar": "shrink-0",
|
|
14
|
+
"itemLeadingAvatarSize": "2xs",
|
|
15
|
+
"itemLeadingChip": "shrink-0 size-5",
|
|
16
|
+
"itemLeadingChipSize": "md",
|
|
17
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
18
|
+
"itemTrailingIcon": "shrink-0 size-5",
|
|
19
|
+
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-dimmed hidden group-data-highlighted:inline-flex",
|
|
20
|
+
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
|
|
21
|
+
"itemTrailingKbdsSize": "md",
|
|
22
|
+
"itemLabel": "truncate space-x-1 rtl:space-x-reverse text-dimmed",
|
|
23
|
+
"itemLabelBase": "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
|
|
24
|
+
"itemLabelPrefix": "text-default",
|
|
25
|
+
"itemLabelSuffix": "text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary"
|
|
26
|
+
},
|
|
27
|
+
"variants": {
|
|
28
|
+
"active": {
|
|
29
|
+
"true": {
|
|
30
|
+
"item": "text-highlighted before:bg-elevated",
|
|
31
|
+
"itemLeadingIcon": "text-default"
|
|
32
|
+
},
|
|
33
|
+
"false": {
|
|
34
|
+
"item": [
|
|
35
|
+
"text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
|
|
36
|
+
"transition-colors before:transition-colors"
|
|
37
|
+
],
|
|
38
|
+
"itemLeadingIcon": [
|
|
39
|
+
"text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
40
|
+
"transition-colors"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"loading": {
|
|
45
|
+
"true": {
|
|
46
|
+
"itemLeadingIcon": "animate-spin"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|