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,172 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const orientation = [
|
|
12
|
+
"horizontal",
|
|
13
|
+
"vertical"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const size = [
|
|
17
|
+
"xs",
|
|
18
|
+
"sm",
|
|
19
|
+
"md",
|
|
20
|
+
"lg",
|
|
21
|
+
"xl"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
const type = [
|
|
25
|
+
"solid",
|
|
26
|
+
"dashed",
|
|
27
|
+
"dotted"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "flex items-center align-center text-center",
|
|
33
|
+
"border": "",
|
|
34
|
+
"container": "font-medium text-default flex",
|
|
35
|
+
"icon": "shrink-0 size-5",
|
|
36
|
+
"avatar": "shrink-0",
|
|
37
|
+
"avatarSize": "2xs",
|
|
38
|
+
"label": "text-sm"
|
|
39
|
+
},
|
|
40
|
+
"variants": {
|
|
41
|
+
"color": {
|
|
42
|
+
"primary": {
|
|
43
|
+
"border": "border-primary"
|
|
44
|
+
},
|
|
45
|
+
"secondary": {
|
|
46
|
+
"border": "border-secondary"
|
|
47
|
+
},
|
|
48
|
+
"success": {
|
|
49
|
+
"border": "border-success"
|
|
50
|
+
},
|
|
51
|
+
"info": {
|
|
52
|
+
"border": "border-info"
|
|
53
|
+
},
|
|
54
|
+
"warning": {
|
|
55
|
+
"border": "border-warning"
|
|
56
|
+
},
|
|
57
|
+
"error": {
|
|
58
|
+
"border": "border-error"
|
|
59
|
+
},
|
|
60
|
+
"neutral": {
|
|
61
|
+
"border": "border-default"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"orientation": {
|
|
65
|
+
"horizontal": {
|
|
66
|
+
"root": "w-full flex-row",
|
|
67
|
+
"border": "w-full",
|
|
68
|
+
"container": "mx-3 whitespace-nowrap"
|
|
69
|
+
},
|
|
70
|
+
"vertical": {
|
|
71
|
+
"root": "h-full flex-col",
|
|
72
|
+
"border": "h-full",
|
|
73
|
+
"container": "my-2"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"size": {
|
|
77
|
+
"xs": "",
|
|
78
|
+
"sm": "",
|
|
79
|
+
"md": "",
|
|
80
|
+
"lg": "",
|
|
81
|
+
"xl": ""
|
|
82
|
+
},
|
|
83
|
+
"type": {
|
|
84
|
+
"solid": {
|
|
85
|
+
"border": "border-solid"
|
|
86
|
+
},
|
|
87
|
+
"dashed": {
|
|
88
|
+
"border": "border-dashed"
|
|
89
|
+
},
|
|
90
|
+
"dotted": {
|
|
91
|
+
"border": "border-dotted"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"compoundVariants": [
|
|
96
|
+
{
|
|
97
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
98
|
+
"size": "xs" as typeof size[number],
|
|
99
|
+
"class": {
|
|
100
|
+
"border": "border-t"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
105
|
+
"size": "sm" as typeof size[number],
|
|
106
|
+
"class": {
|
|
107
|
+
"border": "border-t-[2px]"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
112
|
+
"size": "md" as typeof size[number],
|
|
113
|
+
"class": {
|
|
114
|
+
"border": "border-t-[3px]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
|
+
"size": "lg" as typeof size[number],
|
|
120
|
+
"class": {
|
|
121
|
+
"border": "border-t-[4px]"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
126
|
+
"size": "xl" as typeof size[number],
|
|
127
|
+
"class": {
|
|
128
|
+
"border": "border-t-[5px]"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
133
|
+
"size": "xs" as typeof size[number],
|
|
134
|
+
"class": {
|
|
135
|
+
"border": "border-s"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
140
|
+
"size": "sm" as typeof size[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"border": "border-s-[2px]"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
147
|
+
"size": "md" as typeof size[number],
|
|
148
|
+
"class": {
|
|
149
|
+
"border": "border-s-[3px]"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
154
|
+
"size": "lg" as typeof size[number],
|
|
155
|
+
"class": {
|
|
156
|
+
"border": "border-s-[4px]"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
161
|
+
"size": "xl" as typeof size[number],
|
|
162
|
+
"class": {
|
|
163
|
+
"border": "border-s-[5px]"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"defaultVariants": {
|
|
168
|
+
"color": "neutral" as typeof color[number],
|
|
169
|
+
"size": "xs" as typeof size[number],
|
|
170
|
+
"type": "solid" as typeof type[number]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const side = [
|
|
2
|
+
"top",
|
|
3
|
+
"right",
|
|
4
|
+
"bottom",
|
|
5
|
+
"left"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
"slots": {
|
|
10
|
+
"overlay": "fixed inset-0 bg-elevated/75",
|
|
11
|
+
"content": "fixed bg-default divide-y divide-default sm:ring ring-default sm:shadow-lg flex flex-col focus:outline-none",
|
|
12
|
+
"header": "flex items-center gap-1.5 p-4 sm:px-6 min-h-16",
|
|
13
|
+
"wrapper": "",
|
|
14
|
+
"body": "flex-1 overflow-y-auto p-4 sm:p-6",
|
|
15
|
+
"footer": "flex items-center gap-1.5 p-4 sm:px-6",
|
|
16
|
+
"title": "text-highlighted font-semibold",
|
|
17
|
+
"description": "mt-1 text-muted text-sm",
|
|
18
|
+
"close": "absolute top-4 end-4"
|
|
19
|
+
},
|
|
20
|
+
"variants": {
|
|
21
|
+
"side": {
|
|
22
|
+
"top": {
|
|
23
|
+
"content": "inset-x-0 top-0 max-h-full"
|
|
24
|
+
},
|
|
25
|
+
"right": {
|
|
26
|
+
"content": "right-0 inset-y-0 w-full max-w-md"
|
|
27
|
+
},
|
|
28
|
+
"bottom": {
|
|
29
|
+
"content": "inset-x-0 bottom-0 max-h-full"
|
|
30
|
+
},
|
|
31
|
+
"left": {
|
|
32
|
+
"content": "left-0 inset-y-0 w-full max-w-md"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"transition": {
|
|
36
|
+
"true": {
|
|
37
|
+
"overlay": "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"compoundVariants": [
|
|
42
|
+
{
|
|
43
|
+
"transition": true,
|
|
44
|
+
"side": "top" as typeof side[number],
|
|
45
|
+
"class": {
|
|
46
|
+
"content": "data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"transition": true,
|
|
51
|
+
"side": "right" as typeof side[number],
|
|
52
|
+
"class": {
|
|
53
|
+
"content": "data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"transition": true,
|
|
58
|
+
"side": "bottom" as typeof side[number],
|
|
59
|
+
"class": {
|
|
60
|
+
"content": "data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"transition": true,
|
|
65
|
+
"side": "left" as typeof side[number],
|
|
66
|
+
"class": {
|
|
67
|
+
"content": "data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
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 orientation = [
|
|
20
|
+
"horizontal",
|
|
21
|
+
"vertical"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
"slots": {
|
|
26
|
+
"root": "relative flex items-center select-none touch-none",
|
|
27
|
+
"track": "relative bg-accented overflow-hidden rounded-full grow",
|
|
28
|
+
"range": "absolute rounded-full",
|
|
29
|
+
"thumb": "rounded-full bg-default ring-2 focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
30
|
+
},
|
|
31
|
+
"variants": {
|
|
32
|
+
"color": {
|
|
33
|
+
"primary": {
|
|
34
|
+
"range": "bg-primary",
|
|
35
|
+
"thumb": "ring-primary focus-visible:outline-primary/50"
|
|
36
|
+
},
|
|
37
|
+
"secondary": {
|
|
38
|
+
"range": "bg-secondary",
|
|
39
|
+
"thumb": "ring-secondary focus-visible:outline-secondary/50"
|
|
40
|
+
},
|
|
41
|
+
"success": {
|
|
42
|
+
"range": "bg-success",
|
|
43
|
+
"thumb": "ring-success focus-visible:outline-success/50"
|
|
44
|
+
},
|
|
45
|
+
"info": {
|
|
46
|
+
"range": "bg-info",
|
|
47
|
+
"thumb": "ring-info focus-visible:outline-info/50"
|
|
48
|
+
},
|
|
49
|
+
"warning": {
|
|
50
|
+
"range": "bg-warning",
|
|
51
|
+
"thumb": "ring-warning focus-visible:outline-warning/50"
|
|
52
|
+
},
|
|
53
|
+
"error": {
|
|
54
|
+
"range": "bg-error",
|
|
55
|
+
"thumb": "ring-error focus-visible:outline-error/50"
|
|
56
|
+
},
|
|
57
|
+
"neutral": {
|
|
58
|
+
"range": "bg-inverted",
|
|
59
|
+
"thumb": "ring-inverted focus-visible:outline-inverted/50"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"size": {
|
|
63
|
+
"xs": {
|
|
64
|
+
"thumb": "size-3"
|
|
65
|
+
},
|
|
66
|
+
"sm": {
|
|
67
|
+
"thumb": "size-3.5"
|
|
68
|
+
},
|
|
69
|
+
"md": {
|
|
70
|
+
"thumb": "size-4"
|
|
71
|
+
},
|
|
72
|
+
"lg": {
|
|
73
|
+
"thumb": "size-4.5"
|
|
74
|
+
},
|
|
75
|
+
"xl": {
|
|
76
|
+
"thumb": "size-5"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"orientation": {
|
|
80
|
+
"horizontal": {
|
|
81
|
+
"root": "w-full",
|
|
82
|
+
"range": "h-full"
|
|
83
|
+
},
|
|
84
|
+
"vertical": {
|
|
85
|
+
"root": "flex-col h-full",
|
|
86
|
+
"range": "w-full"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"disabled": {
|
|
90
|
+
"true": {
|
|
91
|
+
"root": "opacity-75 cursor-not-allowed"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"compoundVariants": [
|
|
96
|
+
{
|
|
97
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
98
|
+
"size": "xs" as typeof size[number],
|
|
99
|
+
"class": {
|
|
100
|
+
"track": "h-[6px]"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
105
|
+
"size": "sm" as typeof size[number],
|
|
106
|
+
"class": {
|
|
107
|
+
"track": "h-[7px]"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
112
|
+
"size": "md" as typeof size[number],
|
|
113
|
+
"class": {
|
|
114
|
+
"track": "h-[8px]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
119
|
+
"size": "lg" as typeof size[number],
|
|
120
|
+
"class": {
|
|
121
|
+
"track": "h-[9px]"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
126
|
+
"size": "xl" as typeof size[number],
|
|
127
|
+
"class": {
|
|
128
|
+
"track": "h-[10px]"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
133
|
+
"size": "xs" as typeof size[number],
|
|
134
|
+
"class": {
|
|
135
|
+
"track": "w-[6px]"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
140
|
+
"size": "sm" as typeof size[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"track": "w-[7px]"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
147
|
+
"size": "md" as typeof size[number],
|
|
148
|
+
"class": {
|
|
149
|
+
"track": "w-[8px]"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
154
|
+
"size": "lg" as typeof size[number],
|
|
155
|
+
"class": {
|
|
156
|
+
"track": "w-[9px]"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
161
|
+
"size": "xl" as typeof size[number],
|
|
162
|
+
"class": {
|
|
163
|
+
"track": "w-[10px]"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"defaultVariants": {
|
|
168
|
+
"size": "md" as typeof size[number],
|
|
169
|
+
"color": "primary" as typeof color[number]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
const orientation = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const size = [
|
|
7
|
+
"xs",
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg",
|
|
11
|
+
"xl"
|
|
12
|
+
] as const
|
|
13
|
+
|
|
14
|
+
const color = [
|
|
15
|
+
"primary",
|
|
16
|
+
"secondary",
|
|
17
|
+
"success",
|
|
18
|
+
"info",
|
|
19
|
+
"warning",
|
|
20
|
+
"error",
|
|
21
|
+
"neutral"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
"slots": {
|
|
26
|
+
"root": "flex gap-4",
|
|
27
|
+
"header": "flex",
|
|
28
|
+
"item": "group text-center relative w-full",
|
|
29
|
+
"container": "relative",
|
|
30
|
+
"trigger": "rounded-full font-medium text-center align-middle flex items-center justify-center font-semibold group-data-[state=completed]:text-inverted group-data-[state=active]:text-inverted text-muted bg-elevated focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
31
|
+
"indicator": "flex items-center justify-center size-full",
|
|
32
|
+
"icon": "shrink-0",
|
|
33
|
+
"separator": "absolute rounded-full group-data-[disabled]:opacity-75 bg-accented",
|
|
34
|
+
"wrapper": "",
|
|
35
|
+
"title": "font-medium text-default",
|
|
36
|
+
"description": "text-muted text-wrap",
|
|
37
|
+
"content": "size-full"
|
|
38
|
+
},
|
|
39
|
+
"variants": {
|
|
40
|
+
"orientation": {
|
|
41
|
+
"horizontal": {
|
|
42
|
+
"root": "flex-col",
|
|
43
|
+
"container": "flex justify-center",
|
|
44
|
+
"separator": "top-[calc(50%-2px)] h-0.5",
|
|
45
|
+
"wrapper": "mt-1"
|
|
46
|
+
},
|
|
47
|
+
"vertical": {
|
|
48
|
+
"header": "flex-col gap-4",
|
|
49
|
+
"item": "flex text-start",
|
|
50
|
+
"separator": "start-[calc(50%-1px)] -bottom-[10px] w-0.5"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"size": {
|
|
54
|
+
"xs": {
|
|
55
|
+
"trigger": "size-6 text-xs",
|
|
56
|
+
"icon": "size-3",
|
|
57
|
+
"title": "text-xs",
|
|
58
|
+
"description": "text-xs",
|
|
59
|
+
"wrapper": "mt-1.5"
|
|
60
|
+
},
|
|
61
|
+
"sm": {
|
|
62
|
+
"trigger": "size-8 text-sm",
|
|
63
|
+
"icon": "size-4",
|
|
64
|
+
"title": "text-xs",
|
|
65
|
+
"description": "text-xs",
|
|
66
|
+
"wrapper": "mt-2"
|
|
67
|
+
},
|
|
68
|
+
"md": {
|
|
69
|
+
"trigger": "size-10 text-base",
|
|
70
|
+
"icon": "size-5",
|
|
71
|
+
"title": "text-sm",
|
|
72
|
+
"description": "text-sm",
|
|
73
|
+
"wrapper": "mt-2.5"
|
|
74
|
+
},
|
|
75
|
+
"lg": {
|
|
76
|
+
"trigger": "size-12 text-lg",
|
|
77
|
+
"icon": "size-6",
|
|
78
|
+
"title": "text-base",
|
|
79
|
+
"description": "text-base",
|
|
80
|
+
"wrapper": "mt-3"
|
|
81
|
+
},
|
|
82
|
+
"xl": {
|
|
83
|
+
"trigger": "size-14 text-xl",
|
|
84
|
+
"icon": "size-7",
|
|
85
|
+
"title": "text-lg",
|
|
86
|
+
"description": "text-lg",
|
|
87
|
+
"wrapper": "mt-3.5"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"color": {
|
|
91
|
+
"primary": {
|
|
92
|
+
"trigger": "group-data-[state=completed]:bg-primary group-data-[state=active]:bg-primary focus-visible:outline-primary",
|
|
93
|
+
"separator": "group-data-[state=completed]:bg-primary"
|
|
94
|
+
},
|
|
95
|
+
"secondary": {
|
|
96
|
+
"trigger": "group-data-[state=completed]:bg-secondary group-data-[state=active]:bg-secondary focus-visible:outline-secondary",
|
|
97
|
+
"separator": "group-data-[state=completed]:bg-secondary"
|
|
98
|
+
},
|
|
99
|
+
"success": {
|
|
100
|
+
"trigger": "group-data-[state=completed]:bg-success group-data-[state=active]:bg-success focus-visible:outline-success",
|
|
101
|
+
"separator": "group-data-[state=completed]:bg-success"
|
|
102
|
+
},
|
|
103
|
+
"info": {
|
|
104
|
+
"trigger": "group-data-[state=completed]:bg-info group-data-[state=active]:bg-info focus-visible:outline-info",
|
|
105
|
+
"separator": "group-data-[state=completed]:bg-info"
|
|
106
|
+
},
|
|
107
|
+
"warning": {
|
|
108
|
+
"trigger": "group-data-[state=completed]:bg-warning group-data-[state=active]:bg-warning focus-visible:outline-warning",
|
|
109
|
+
"separator": "group-data-[state=completed]:bg-warning"
|
|
110
|
+
},
|
|
111
|
+
"error": {
|
|
112
|
+
"trigger": "group-data-[state=completed]:bg-error group-data-[state=active]:bg-error focus-visible:outline-error",
|
|
113
|
+
"separator": "group-data-[state=completed]:bg-error"
|
|
114
|
+
},
|
|
115
|
+
"neutral": {
|
|
116
|
+
"trigger": "group-data-[state=completed]:bg-inverted group-data-[state=active]:bg-inverted focus-visible:outline-inverted",
|
|
117
|
+
"separator": "group-data-[state=completed]:bg-inverted"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"compoundVariants": [
|
|
122
|
+
{
|
|
123
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
124
|
+
"size": "xs" as typeof size[number],
|
|
125
|
+
"class": {
|
|
126
|
+
"separator": "start-[calc(50%+16px)] end-[calc(-50%+16px)]"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
131
|
+
"size": "sm" as typeof size[number],
|
|
132
|
+
"class": {
|
|
133
|
+
"separator": "start-[calc(50%+20px)] end-[calc(-50%+20px)]"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
138
|
+
"size": "md" as typeof size[number],
|
|
139
|
+
"class": {
|
|
140
|
+
"separator": "start-[calc(50%+28px)] end-[calc(-50%+28px)]"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
145
|
+
"size": "lg" as typeof size[number],
|
|
146
|
+
"class": {
|
|
147
|
+
"separator": "start-[calc(50%+32px)] end-[calc(-50%+32px)]"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
152
|
+
"size": "xl" as typeof size[number],
|
|
153
|
+
"class": {
|
|
154
|
+
"separator": "start-[calc(50%+36px)] end-[calc(-50%+36px)]"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
159
|
+
"size": "xs" as typeof size[number],
|
|
160
|
+
"class": {
|
|
161
|
+
"separator": "top-[30px]",
|
|
162
|
+
"item": "gap-1.5"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
167
|
+
"size": "sm" as typeof size[number],
|
|
168
|
+
"class": {
|
|
169
|
+
"separator": "top-[38px]",
|
|
170
|
+
"item": "gap-2"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
175
|
+
"size": "md" as typeof size[number],
|
|
176
|
+
"class": {
|
|
177
|
+
"separator": "top-[46px]",
|
|
178
|
+
"item": "gap-2.5"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
183
|
+
"size": "lg" as typeof size[number],
|
|
184
|
+
"class": {
|
|
185
|
+
"separator": "top-[54px]",
|
|
186
|
+
"item": "gap-3"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
191
|
+
"size": "xl" as typeof size[number],
|
|
192
|
+
"class": {
|
|
193
|
+
"separator": "top-[62px]",
|
|
194
|
+
"item": "gap-3.5"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"defaultVariants": {
|
|
199
|
+
"size": "md" as typeof size[number],
|
|
200
|
+
"color": "primary" as typeof color[number]
|
|
201
|
+
}
|
|
202
|
+
}
|