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,131 @@
|
|
|
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
|
+
export default {
|
|
20
|
+
"slots": {
|
|
21
|
+
"root": "relative flex items-start",
|
|
22
|
+
"base": [
|
|
23
|
+
"inline-flex items-center shrink-0 rounded-full border-2 border-transparent focus-visible:outline-2 focus-visible:outline-offset-2 data-[state=unchecked]:bg-accented",
|
|
24
|
+
"transition-[background] duration-200"
|
|
25
|
+
],
|
|
26
|
+
"container": "flex items-center",
|
|
27
|
+
"thumb": "group pointer-events-none rounded-full bg-default shadow-lg ring-0 transition-transform duration-200 data-[state=unchecked]:translate-x-0 data-[state=unchecked]:rtl:-translate-x-0 flex items-center justify-center",
|
|
28
|
+
"icon": [
|
|
29
|
+
"absolute shrink-0 group-data-[state=unchecked]:text-dimmed opacity-0 size-10/12",
|
|
30
|
+
"transition-[color,opacity] duration-200"
|
|
31
|
+
],
|
|
32
|
+
"wrapper": "ms-2",
|
|
33
|
+
"label": "block font-medium text-default",
|
|
34
|
+
"description": "text-muted"
|
|
35
|
+
},
|
|
36
|
+
"variants": {
|
|
37
|
+
"color": {
|
|
38
|
+
"primary": {
|
|
39
|
+
"base": "data-[state=checked]:bg-primary focus-visible:outline-primary",
|
|
40
|
+
"icon": "group-data-[state=checked]:text-primary"
|
|
41
|
+
},
|
|
42
|
+
"secondary": {
|
|
43
|
+
"base": "data-[state=checked]:bg-secondary focus-visible:outline-secondary",
|
|
44
|
+
"icon": "group-data-[state=checked]:text-secondary"
|
|
45
|
+
},
|
|
46
|
+
"success": {
|
|
47
|
+
"base": "data-[state=checked]:bg-success focus-visible:outline-success",
|
|
48
|
+
"icon": "group-data-[state=checked]:text-success"
|
|
49
|
+
},
|
|
50
|
+
"info": {
|
|
51
|
+
"base": "data-[state=checked]:bg-info focus-visible:outline-info",
|
|
52
|
+
"icon": "group-data-[state=checked]:text-info"
|
|
53
|
+
},
|
|
54
|
+
"warning": {
|
|
55
|
+
"base": "data-[state=checked]:bg-warning focus-visible:outline-warning",
|
|
56
|
+
"icon": "group-data-[state=checked]:text-warning"
|
|
57
|
+
},
|
|
58
|
+
"error": {
|
|
59
|
+
"base": "data-[state=checked]:bg-error focus-visible:outline-error",
|
|
60
|
+
"icon": "group-data-[state=checked]:text-error"
|
|
61
|
+
},
|
|
62
|
+
"neutral": {
|
|
63
|
+
"base": "data-[state=checked]:bg-inverted focus-visible:outline-inverted",
|
|
64
|
+
"icon": "group-data-[state=checked]:text-highlighted"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"size": {
|
|
68
|
+
"xs": {
|
|
69
|
+
"base": "w-7",
|
|
70
|
+
"container": "h-4",
|
|
71
|
+
"thumb": "size-3 data-[state=checked]:translate-x-3 data-[state=checked]:rtl:-translate-x-3",
|
|
72
|
+
"wrapper": "text-xs"
|
|
73
|
+
},
|
|
74
|
+
"sm": {
|
|
75
|
+
"base": "w-8",
|
|
76
|
+
"container": "h-4",
|
|
77
|
+
"thumb": "size-3.5 data-[state=checked]:translate-x-3.5 data-[state=checked]:rtl:-translate-x-3.5",
|
|
78
|
+
"wrapper": "text-xs"
|
|
79
|
+
},
|
|
80
|
+
"md": {
|
|
81
|
+
"base": "w-9",
|
|
82
|
+
"container": "h-5",
|
|
83
|
+
"thumb": "size-4 data-[state=checked]:translate-x-4 data-[state=checked]:rtl:-translate-x-4",
|
|
84
|
+
"wrapper": "text-sm"
|
|
85
|
+
},
|
|
86
|
+
"lg": {
|
|
87
|
+
"base": "w-10",
|
|
88
|
+
"container": "h-5",
|
|
89
|
+
"thumb": "size-4.5 data-[state=checked]:translate-x-4.5 data-[state=checked]:rtl:-translate-x-4.5",
|
|
90
|
+
"wrapper": "text-sm"
|
|
91
|
+
},
|
|
92
|
+
"xl": {
|
|
93
|
+
"base": "w-11",
|
|
94
|
+
"container": "h-6",
|
|
95
|
+
"thumb": "size-5 data-[state=checked]:translate-x-5 data-[state=checked]:rtl:-translate-x-5",
|
|
96
|
+
"wrapper": "text-base"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"checked": {
|
|
100
|
+
"true": {
|
|
101
|
+
"icon": "group-data-[state=checked]:opacity-100"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"unchecked": {
|
|
105
|
+
"true": {
|
|
106
|
+
"icon": "group-data-[state=unchecked]:opacity-100"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"loading": {
|
|
110
|
+
"true": {
|
|
111
|
+
"icon": "animate-spin"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": {
|
|
115
|
+
"true": {
|
|
116
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"disabled": {
|
|
120
|
+
"true": {
|
|
121
|
+
"base": "cursor-not-allowed opacity-75",
|
|
122
|
+
"label": "cursor-not-allowed opacity-75",
|
|
123
|
+
"description": "cursor-not-allowed opacity-75"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"defaultVariants": {
|
|
128
|
+
"color": "primary" as typeof color[number],
|
|
129
|
+
"size": "md" as typeof size[number]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
const loadingAnimation = [
|
|
2
|
+
"carousel",
|
|
3
|
+
"carousel-inverse",
|
|
4
|
+
"swing",
|
|
5
|
+
"elastic"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
const loadingColor = [
|
|
9
|
+
"primary",
|
|
10
|
+
"secondary",
|
|
11
|
+
"success",
|
|
12
|
+
"info",
|
|
13
|
+
"warning",
|
|
14
|
+
"error",
|
|
15
|
+
"neutral"
|
|
16
|
+
] as const
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
"slots": {
|
|
20
|
+
"root": "relative overflow-auto",
|
|
21
|
+
"base": "min-w-full overflow-clip",
|
|
22
|
+
"caption": "sr-only",
|
|
23
|
+
"thead": "relative [&>tr]:after:absolute [&>tr]:after:inset-x-0 [&>tr]:after:bottom-0 [&>tr]:after:h-px [&>tr]:after:bg-(--ui-border-accented)",
|
|
24
|
+
"tbody": "divide-y divide-default [&>tr]:data-[selectable=true]:hover:bg-elevated/50 [&>tr]:data-[selectable=true]:focus-visible:outline-primary",
|
|
25
|
+
"tr": "data-[selected=true]:bg-elevated/50",
|
|
26
|
+
"th": "px-4 py-3.5 text-sm text-highlighted text-left rtl:text-right font-semibold [&:has([role=checkbox])]:pe-0",
|
|
27
|
+
"td": "p-4 text-sm text-muted whitespace-nowrap [&:has([role=checkbox])]:pe-0",
|
|
28
|
+
"empty": "py-6 text-center text-sm text-muted",
|
|
29
|
+
"loading": "py-6 text-center"
|
|
30
|
+
},
|
|
31
|
+
"variants": {
|
|
32
|
+
"pinned": {
|
|
33
|
+
"true": {
|
|
34
|
+
"th": "sticky bg-default/75 data-[pinned=left]:left-0 data-[pinned=right]:right-0",
|
|
35
|
+
"td": "sticky bg-default/75 data-[pinned=left]:left-0 data-[pinned=right]:right-0"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"sticky": {
|
|
39
|
+
"true": {
|
|
40
|
+
"thead": "sticky top-0 inset-x-0 bg-default/75 z-[1] backdrop-blur"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"loading": {
|
|
44
|
+
"true": {
|
|
45
|
+
"thead": "after:absolute after:bottom-0 after:inset-x-0 after:h-px"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"loadingAnimation": {
|
|
49
|
+
"carousel": "",
|
|
50
|
+
"carousel-inverse": "",
|
|
51
|
+
"swing": "",
|
|
52
|
+
"elastic": ""
|
|
53
|
+
},
|
|
54
|
+
"loadingColor": {
|
|
55
|
+
"primary": "",
|
|
56
|
+
"secondary": "",
|
|
57
|
+
"success": "",
|
|
58
|
+
"info": "",
|
|
59
|
+
"warning": "",
|
|
60
|
+
"error": "",
|
|
61
|
+
"neutral": ""
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"compoundVariants": [
|
|
65
|
+
{
|
|
66
|
+
"loading": true,
|
|
67
|
+
"loadingColor": "primary" as typeof loadingColor[number],
|
|
68
|
+
"class": {
|
|
69
|
+
"thead": "after:bg-primary"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"loading": true,
|
|
74
|
+
"loadingColor": "secondary" as typeof loadingColor[number],
|
|
75
|
+
"class": {
|
|
76
|
+
"thead": "after:bg-secondary"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"loading": true,
|
|
81
|
+
"loadingColor": "success" as typeof loadingColor[number],
|
|
82
|
+
"class": {
|
|
83
|
+
"thead": "after:bg-success"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"loading": true,
|
|
88
|
+
"loadingColor": "info" as typeof loadingColor[number],
|
|
89
|
+
"class": {
|
|
90
|
+
"thead": "after:bg-info"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"loading": true,
|
|
95
|
+
"loadingColor": "warning" as typeof loadingColor[number],
|
|
96
|
+
"class": {
|
|
97
|
+
"thead": "after:bg-warning"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"loading": true,
|
|
102
|
+
"loadingColor": "error" as typeof loadingColor[number],
|
|
103
|
+
"class": {
|
|
104
|
+
"thead": "after:bg-error"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"loading": true,
|
|
109
|
+
"loadingColor": "neutral" as typeof loadingColor[number],
|
|
110
|
+
"class": {
|
|
111
|
+
"thead": "after:bg-inverted"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"loading": true,
|
|
116
|
+
"loadingAnimation": "carousel" as typeof loadingAnimation[number],
|
|
117
|
+
"class": {
|
|
118
|
+
"thead": "after:animate-[carousel_2s_ease-in-out_infinite] rtl:after:animate-[carousel-rtl_2s_ease-in-out_infinite]"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"loading": true,
|
|
123
|
+
"loadingAnimation": "carousel-inverse" as typeof loadingAnimation[number],
|
|
124
|
+
"class": {
|
|
125
|
+
"thead": "after:animate-[carousel-inverse_2s_ease-in-out_infinite] rtl:after:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"loading": true,
|
|
130
|
+
"loadingAnimation": "swing" as typeof loadingAnimation[number],
|
|
131
|
+
"class": {
|
|
132
|
+
"thead": "after:animate-[swing_2s_ease-in-out_infinite]"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"loading": true,
|
|
137
|
+
"loadingAnimation": "elastic" as typeof loadingAnimation[number],
|
|
138
|
+
"class": {
|
|
139
|
+
"thead": "after:animate-[elastic_2s_ease-in-out_infinite]"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"defaultVariants": {
|
|
144
|
+
"loadingColor": "primary" as typeof loadingColor[number],
|
|
145
|
+
"loadingAnimation": "carousel" as typeof loadingAnimation[number]
|
|
146
|
+
}
|
|
147
|
+
}
|
package/.nuxt/ui/tabs.ts
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
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
|
+
"pill",
|
|
13
|
+
"link"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const orientation = [
|
|
17
|
+
"horizontal",
|
|
18
|
+
"vertical"
|
|
19
|
+
] as const
|
|
20
|
+
|
|
21
|
+
const size = [
|
|
22
|
+
"xs",
|
|
23
|
+
"sm",
|
|
24
|
+
"md",
|
|
25
|
+
"lg",
|
|
26
|
+
"xl"
|
|
27
|
+
] as const
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
"slots": {
|
|
31
|
+
"root": "flex items-center gap-2",
|
|
32
|
+
"list": "relative flex p-1 group",
|
|
33
|
+
"indicator": "absolute transition-[translate,width] duration-200",
|
|
34
|
+
"trigger": [
|
|
35
|
+
"group relative inline-flex items-center min-w-0 data-[state=inactive]:text-muted hover:data-[state=inactive]:not-disabled:text-default font-medium rounded-md disabled:cursor-not-allowed disabled:opacity-75",
|
|
36
|
+
"transition-colors"
|
|
37
|
+
],
|
|
38
|
+
"content": "focus:outline-none w-full",
|
|
39
|
+
"leadingIcon": "shrink-0",
|
|
40
|
+
"leadingAvatar": "shrink-0",
|
|
41
|
+
"leadingAvatarSize": "",
|
|
42
|
+
"label": "truncate"
|
|
43
|
+
},
|
|
44
|
+
"variants": {
|
|
45
|
+
"color": {
|
|
46
|
+
"primary": "",
|
|
47
|
+
"secondary": "",
|
|
48
|
+
"success": "",
|
|
49
|
+
"info": "",
|
|
50
|
+
"warning": "",
|
|
51
|
+
"error": "",
|
|
52
|
+
"neutral": ""
|
|
53
|
+
},
|
|
54
|
+
"variant": {
|
|
55
|
+
"pill": {
|
|
56
|
+
"list": "bg-elevated rounded-lg",
|
|
57
|
+
"trigger": "grow",
|
|
58
|
+
"indicator": "rounded-md shadow-xs"
|
|
59
|
+
},
|
|
60
|
+
"link": {
|
|
61
|
+
"list": "border-default",
|
|
62
|
+
"indicator": "rounded-full",
|
|
63
|
+
"trigger": "focus:outline-none"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"orientation": {
|
|
67
|
+
"horizontal": {
|
|
68
|
+
"root": "flex-col",
|
|
69
|
+
"list": "w-full",
|
|
70
|
+
"indicator": "left-0 w-(--reka-tabs-indicator-size) translate-x-(--reka-tabs-indicator-position)",
|
|
71
|
+
"trigger": "justify-center"
|
|
72
|
+
},
|
|
73
|
+
"vertical": {
|
|
74
|
+
"list": "flex-col",
|
|
75
|
+
"indicator": "top-0 h-(--reka-tabs-indicator-size) translate-y-(--reka-tabs-indicator-position)"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"size": {
|
|
79
|
+
"xs": {
|
|
80
|
+
"trigger": "px-2 py-1 text-xs gap-1",
|
|
81
|
+
"leadingIcon": "size-4",
|
|
82
|
+
"leadingAvatarSize": "3xs"
|
|
83
|
+
},
|
|
84
|
+
"sm": {
|
|
85
|
+
"trigger": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
86
|
+
"leadingIcon": "size-4",
|
|
87
|
+
"leadingAvatarSize": "3xs"
|
|
88
|
+
},
|
|
89
|
+
"md": {
|
|
90
|
+
"trigger": "px-3 py-1.5 text-sm gap-1.5",
|
|
91
|
+
"leadingIcon": "size-5",
|
|
92
|
+
"leadingAvatarSize": "2xs"
|
|
93
|
+
},
|
|
94
|
+
"lg": {
|
|
95
|
+
"trigger": "px-3 py-2 text-sm gap-2",
|
|
96
|
+
"leadingIcon": "size-5",
|
|
97
|
+
"leadingAvatarSize": "2xs"
|
|
98
|
+
},
|
|
99
|
+
"xl": {
|
|
100
|
+
"trigger": "px-3 py-2 text-base gap-2",
|
|
101
|
+
"leadingIcon": "size-6",
|
|
102
|
+
"leadingAvatarSize": "xs"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"compoundVariants": [
|
|
107
|
+
{
|
|
108
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
109
|
+
"variant": "pill" as typeof variant[number],
|
|
110
|
+
"class": {
|
|
111
|
+
"indicator": "inset-y-1"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
116
|
+
"variant": "link" as typeof variant[number],
|
|
117
|
+
"class": {
|
|
118
|
+
"list": "border-b -mb-px",
|
|
119
|
+
"indicator": "-bottom-px h-px"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
124
|
+
"variant": "pill" as typeof variant[number],
|
|
125
|
+
"class": {
|
|
126
|
+
"indicator": "inset-x-1",
|
|
127
|
+
"list": "items-center"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
132
|
+
"variant": "link" as typeof variant[number],
|
|
133
|
+
"class": {
|
|
134
|
+
"list": "border-s -ms-px",
|
|
135
|
+
"indicator": "-start-px w-px"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"color": "primary" as typeof color[number],
|
|
140
|
+
"variant": "pill" as typeof variant[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"indicator": "bg-primary",
|
|
143
|
+
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"color": "secondary" as typeof color[number],
|
|
148
|
+
"variant": "pill" as typeof variant[number],
|
|
149
|
+
"class": {
|
|
150
|
+
"indicator": "bg-secondary",
|
|
151
|
+
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-secondary"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"color": "success" as typeof color[number],
|
|
156
|
+
"variant": "pill" as typeof variant[number],
|
|
157
|
+
"class": {
|
|
158
|
+
"indicator": "bg-success",
|
|
159
|
+
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-success"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"color": "info" as typeof color[number],
|
|
164
|
+
"variant": "pill" as typeof variant[number],
|
|
165
|
+
"class": {
|
|
166
|
+
"indicator": "bg-info",
|
|
167
|
+
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-info"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"color": "warning" as typeof color[number],
|
|
172
|
+
"variant": "pill" as typeof variant[number],
|
|
173
|
+
"class": {
|
|
174
|
+
"indicator": "bg-warning",
|
|
175
|
+
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-warning"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"color": "error" as typeof color[number],
|
|
180
|
+
"variant": "pill" as typeof variant[number],
|
|
181
|
+
"class": {
|
|
182
|
+
"indicator": "bg-error",
|
|
183
|
+
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-error"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"color": "neutral" as typeof color[number],
|
|
188
|
+
"variant": "pill" as typeof variant[number],
|
|
189
|
+
"class": {
|
|
190
|
+
"indicator": "bg-inverted",
|
|
191
|
+
"trigger": "data-[state=active]:text-inverted focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-inverted"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"color": "primary" as typeof color[number],
|
|
196
|
+
"variant": "link" as typeof variant[number],
|
|
197
|
+
"class": {
|
|
198
|
+
"indicator": "bg-primary",
|
|
199
|
+
"trigger": "data-[state=active]:text-primary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"color": "secondary" as typeof color[number],
|
|
204
|
+
"variant": "link" as typeof variant[number],
|
|
205
|
+
"class": {
|
|
206
|
+
"indicator": "bg-secondary",
|
|
207
|
+
"trigger": "data-[state=active]:text-secondary focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-secondary"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"color": "success" as typeof color[number],
|
|
212
|
+
"variant": "link" as typeof variant[number],
|
|
213
|
+
"class": {
|
|
214
|
+
"indicator": "bg-success",
|
|
215
|
+
"trigger": "data-[state=active]:text-success focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-success"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"color": "info" as typeof color[number],
|
|
220
|
+
"variant": "link" as typeof variant[number],
|
|
221
|
+
"class": {
|
|
222
|
+
"indicator": "bg-info",
|
|
223
|
+
"trigger": "data-[state=active]:text-info focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-info"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"color": "warning" as typeof color[number],
|
|
228
|
+
"variant": "link" as typeof variant[number],
|
|
229
|
+
"class": {
|
|
230
|
+
"indicator": "bg-warning",
|
|
231
|
+
"trigger": "data-[state=active]:text-warning focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-warning"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"color": "error" as typeof color[number],
|
|
236
|
+
"variant": "link" as typeof variant[number],
|
|
237
|
+
"class": {
|
|
238
|
+
"indicator": "bg-error",
|
|
239
|
+
"trigger": "data-[state=active]:text-error focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-error"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"color": "neutral" as typeof color[number],
|
|
244
|
+
"variant": "link" as typeof variant[number],
|
|
245
|
+
"class": {
|
|
246
|
+
"indicator": "bg-inverted",
|
|
247
|
+
"trigger": "data-[state=active]:text-highlighted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-inverted"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"defaultVariants": {
|
|
252
|
+
"color": "primary" as typeof color[number],
|
|
253
|
+
"variant": "pill" as typeof variant[number],
|
|
254
|
+
"size": "md" as typeof size[number]
|
|
255
|
+
}
|
|
256
|
+
}
|