@bitrix24/b24ui-nuxt 0.1.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/.nuxt/b24ui/advice.ts +52 -0
- package/.nuxt/b24ui/alert.ts +118 -0
- package/.nuxt/b24ui/avatar-group.ts +52 -0
- package/.nuxt/b24ui/avatar.ts +63 -0
- package/.nuxt/b24ui/badge.ts +256 -0
- package/.nuxt/b24ui/button-group.ts +27 -0
- package/.nuxt/b24ui/button.ts +342 -0
- package/.nuxt/b24ui/checkbox.ts +128 -0
- package/.nuxt/b24ui/chip.ts +205 -0
- package/.nuxt/b24ui/container.ts +3 -0
- package/.nuxt/b24ui/content/description-list.ts +62 -0
- package/.nuxt/b24ui/countdown.ts +94 -0
- package/.nuxt/b24ui/form-field.ts +57 -0
- package/.nuxt/b24ui/form.ts +3 -0
- package/.nuxt/b24ui/index.ts +28 -0
- package/.nuxt/b24ui/input.ts +472 -0
- package/.nuxt/b24ui/kbd.ts +31 -0
- package/.nuxt/b24ui/link.ts +20 -0
- package/.nuxt/b24ui/progress.ts +303 -0
- package/.nuxt/b24ui/radio-group.ts +135 -0
- package/.nuxt/b24ui/range.ts +172 -0
- package/.nuxt/b24ui/select.ts +550 -0
- package/.nuxt/b24ui/separator.ts +176 -0
- package/.nuxt/b24ui/skeleton.ts +3 -0
- package/.nuxt/b24ui/switch.ts +134 -0
- package/.nuxt/b24ui/tabs.ts +341 -0
- package/.nuxt/b24ui/textarea.ts +332 -0
- package/.nuxt/b24ui/toast.ts +89 -0
- package/.nuxt/b24ui/toaster.ts +91 -0
- package/.nuxt/b24ui/tooltip.ts +16 -0
- package/LICENSE +21 -0
- package/README.md +101 -0
- package/cli/commands/make/component.mjs +95 -0
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +15 -0
- package/cli/package.json +13 -0
- package/cli/templates.mjs +240 -0
- package/cli/utils.mjs +31 -0
- package/dist/meta.cjs +23610 -0
- package/dist/meta.d.cts +23608 -0
- package/dist/meta.d.mts +23608 -0
- package/dist/meta.d.ts +23608 -0
- package/dist/meta.mjs +23608 -0
- package/dist/module.cjs +54 -0
- package/dist/module.d.cts +14 -0
- package/dist/module.d.mts +14 -0
- package/dist/module.d.ts +14 -0
- package/dist/module.json +13 -0
- package/dist/module.mjs +51 -0
- package/dist/runtime/components/Advice.vue +115 -0
- package/dist/runtime/components/Alert.vue +136 -0
- package/dist/runtime/components/App.vue +52 -0
- package/dist/runtime/components/Avatar.vue +118 -0
- package/dist/runtime/components/AvatarGroup.vue +99 -0
- package/dist/runtime/components/Badge.vue +114 -0
- package/dist/runtime/components/Button.vue +177 -0
- package/dist/runtime/components/ButtonGroup.vue +58 -0
- package/dist/runtime/components/Checkbox.vue +110 -0
- package/dist/runtime/components/Chip.vue +81 -0
- package/dist/runtime/components/Container.vue +36 -0
- package/dist/runtime/components/Countdown.vue +498 -0
- package/dist/runtime/components/Form.vue +271 -0
- package/dist/runtime/components/FormField.vue +128 -0
- package/dist/runtime/components/Input.vue +224 -0
- package/dist/runtime/components/Kbd.vue +50 -0
- package/dist/runtime/components/Link.vue +219 -0
- package/dist/runtime/components/LinkBase.vue +63 -0
- package/dist/runtime/components/Progress.vue +182 -0
- package/dist/runtime/components/RadioGroup.vue +178 -0
- package/dist/runtime/components/Range.vue +114 -0
- package/dist/runtime/components/Select.vue +328 -0
- package/dist/runtime/components/Separator.vue +82 -0
- package/dist/runtime/components/Skeleton.vue +31 -0
- package/dist/runtime/components/Switch.vue +133 -0
- package/dist/runtime/components/Tabs.vue +127 -0
- package/dist/runtime/components/Textarea.vue +216 -0
- package/dist/runtime/components/Toast.vue +168 -0
- package/dist/runtime/components/Toaster.vue +143 -0
- package/dist/runtime/components/Tooltip.vue +94 -0
- package/dist/runtime/components/content/DescriptionList.vue +220 -0
- package/dist/runtime/composables/defineLocale.d.ts +9 -0
- package/dist/runtime/composables/defineLocale.js +4 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +15 -0
- package/dist/runtime/composables/defineShortcuts.js +135 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +10 -0
- package/dist/runtime/composables/useAvatarGroup.js +10 -0
- package/dist/runtime/composables/useButtonGroup.d.ts +17 -0
- package/dist/runtime/composables/useButtonGroup.js +10 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +20 -0
- package/dist/runtime/composables/useComponentIcons.js +25 -0
- package/dist/runtime/composables/useFormField.d.ts +42 -0
- package/dist/runtime/composables/useFormField.js +65 -0
- package/dist/runtime/composables/useKbd.d.ts +35 -0
- package/dist/runtime/composables/useKbd.js +52 -0
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/composables/useToast.d.ts +12 -0
- package/dist/runtime/composables/useToast.js +62 -0
- package/dist/runtime/dictionary/icons.d.ts +20 -0
- package/dist/runtime/dictionary/icons.js +35 -0
- package/dist/runtime/index.css +1 -0
- package/dist/runtime/keyframes.css +1 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +48 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +48 -0
- package/dist/runtime/locale/index.d.ts +3 -0
- package/dist/runtime/locale/index.js +3 -0
- package/dist/runtime/locale/ru.d.ts +2 -0
- package/dist/runtime/locale/ru.js +48 -0
- package/dist/runtime/plugins/colors.d.ts +2 -0
- package/dist/runtime/plugins/colors.js +40 -0
- package/dist/runtime/types/app.config.d.ts +6 -0
- package/dist/runtime/types/form.d.ts +84 -0
- package/dist/runtime/types/form.js +12 -0
- package/dist/runtime/types/icons.d.ts +3 -0
- package/dist/runtime/types/icons.js +0 -0
- package/dist/runtime/types/index.d.ts +33 -0
- package/dist/runtime/types/index.js +33 -0
- package/dist/runtime/types/locale.d.ts +50 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +22 -0
- package/dist/runtime/types/utils.js +0 -0
- package/dist/runtime/utils/form.d.ts +17 -0
- package/dist/runtime/utils/form.js +153 -0
- package/dist/runtime/utils/fuse.d.ts +4 -0
- package/dist/runtime/utils/fuse.js +63 -0
- package/dist/runtime/utils/index.d.ts +6 -0
- package/dist/runtime/utils/index.js +63 -0
- package/dist/runtime/utils/link.d.ts +29 -0
- package/dist/runtime/utils/link.js +4 -0
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/vue/components/Link.vue +203 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +6 -0
- package/dist/runtime/vue/stubs.d.ts +15 -0
- package/dist/runtime/vue/stubs.js +27 -0
- package/dist/shared/b24ui-nuxt.CNGvMe2S.mjs +4074 -0
- package/dist/shared/b24ui-nuxt.D22QQtm8.cjs +4079 -0
- package/dist/types.d.mts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/unplugin.cjs +213 -0
- package/dist/unplugin.d.cts +22 -0
- package/dist/unplugin.d.mts +22 -0
- package/dist/unplugin.d.ts +22 -0
- package/dist/unplugin.mjs +202 -0
- package/dist/vite.cjs +21 -0
- package/dist/vite.d.cts +12 -0
- package/dist/vite.d.mts +12 -0
- package/dist/vite.d.ts +12 -0
- package/dist/vite.mjs +19 -0
- package/package.json +166 -0
- package/vue-plugin.d.ts +5 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
const animation = [
|
|
2
|
+
"loading",
|
|
3
|
+
"carousel",
|
|
4
|
+
"carousel-inverse",
|
|
5
|
+
"swing",
|
|
6
|
+
"elastic"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
const color = [
|
|
10
|
+
"default",
|
|
11
|
+
"danger",
|
|
12
|
+
"success",
|
|
13
|
+
"warning",
|
|
14
|
+
"primary",
|
|
15
|
+
"secondary",
|
|
16
|
+
"collab",
|
|
17
|
+
"ai"
|
|
18
|
+
] as const
|
|
19
|
+
|
|
20
|
+
const size = [
|
|
21
|
+
"xs",
|
|
22
|
+
"sm",
|
|
23
|
+
"md",
|
|
24
|
+
"lg"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
27
|
+
const step = [
|
|
28
|
+
"active",
|
|
29
|
+
"first",
|
|
30
|
+
"other",
|
|
31
|
+
"last"
|
|
32
|
+
] as const
|
|
33
|
+
|
|
34
|
+
const orientation = [
|
|
35
|
+
"horizontal",
|
|
36
|
+
"vertical"
|
|
37
|
+
] as const
|
|
38
|
+
|
|
39
|
+
export default {
|
|
40
|
+
"slots": {
|
|
41
|
+
"root": "gap-2",
|
|
42
|
+
"base": "relative overflow-hidden rounded-full bg-base-200 dark:bg-base-800",
|
|
43
|
+
"indicator": "rounded-full size-full transition-transform duration-200 ease-out",
|
|
44
|
+
"status": "flex justify-end text-base-500 dark:text-base-600 transition-[width] duration-200",
|
|
45
|
+
"steps": "grid items-end",
|
|
46
|
+
"step": "truncate text-end row-start-1 col-start-1 transition-opacity" as typeof step[number]
|
|
47
|
+
},
|
|
48
|
+
"variants": {
|
|
49
|
+
"animation": {
|
|
50
|
+
"loading": "",
|
|
51
|
+
"carousel": "",
|
|
52
|
+
"carousel-inverse": "",
|
|
53
|
+
"swing": "",
|
|
54
|
+
"elastic": ""
|
|
55
|
+
},
|
|
56
|
+
"color": {
|
|
57
|
+
"default": {
|
|
58
|
+
"indicator": "bg-base-900 dark:bg-base-100",
|
|
59
|
+
"steps": "text-base-500"
|
|
60
|
+
},
|
|
61
|
+
"danger": {
|
|
62
|
+
"indicator": "bg-red-500 dark:bg-red-600",
|
|
63
|
+
"steps": "text-base-500"
|
|
64
|
+
},
|
|
65
|
+
"success": {
|
|
66
|
+
"indicator": "bg-green-500 dark:bg-green-600",
|
|
67
|
+
"steps": "text-base-500"
|
|
68
|
+
},
|
|
69
|
+
"warning": {
|
|
70
|
+
"indicator": "bg-orange-500 dark:bg-orange-600",
|
|
71
|
+
"steps": "text-base-500"
|
|
72
|
+
},
|
|
73
|
+
"primary": {
|
|
74
|
+
"indicator": "bg-blue-500 dark:bg-blue-600",
|
|
75
|
+
"steps": "text-base-500"
|
|
76
|
+
},
|
|
77
|
+
"secondary": {
|
|
78
|
+
"indicator": "bg-cyan-350 dark:bg-cyan-500",
|
|
79
|
+
"steps": "text-base-500"
|
|
80
|
+
},
|
|
81
|
+
"collab": {
|
|
82
|
+
"indicator": "bg-collab-500 dark:bg-collab-600",
|
|
83
|
+
"steps": "text-base-500"
|
|
84
|
+
},
|
|
85
|
+
"ai": {
|
|
86
|
+
"indicator": "bg-ai-500 dark:bg-ai-900/85",
|
|
87
|
+
"steps": "text-base-500"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"size": {
|
|
91
|
+
"xs": {
|
|
92
|
+
"status": "text-xs",
|
|
93
|
+
"steps": "text-xs"
|
|
94
|
+
},
|
|
95
|
+
"sm": {
|
|
96
|
+
"status": "text-sm",
|
|
97
|
+
"steps": "text-sm"
|
|
98
|
+
},
|
|
99
|
+
"md": {
|
|
100
|
+
"status": "text-sm",
|
|
101
|
+
"steps": "text-sm"
|
|
102
|
+
},
|
|
103
|
+
"lg": {
|
|
104
|
+
"status": "text-sm",
|
|
105
|
+
"steps": "text-sm"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"step": {
|
|
109
|
+
"active": {
|
|
110
|
+
"step": "opacity-100" as typeof step[number]
|
|
111
|
+
},
|
|
112
|
+
"first": {
|
|
113
|
+
"step": "opacity-100 text-base-500 dark:text-base-600" as typeof step[number]
|
|
114
|
+
},
|
|
115
|
+
"other": {
|
|
116
|
+
"step": "opacity-0" as typeof step[number]
|
|
117
|
+
},
|
|
118
|
+
"last": {
|
|
119
|
+
"step": ""
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"orientation": {
|
|
123
|
+
"horizontal": {
|
|
124
|
+
"root": "w-full flex flex-col",
|
|
125
|
+
"base": "w-full",
|
|
126
|
+
"status": "flex-row"
|
|
127
|
+
},
|
|
128
|
+
"vertical": {
|
|
129
|
+
"root": "h-full flex flex-row-reverse",
|
|
130
|
+
"base": "h-full",
|
|
131
|
+
"status": "flex-col min-w-[32px]"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"inverted": {
|
|
135
|
+
"true": {
|
|
136
|
+
"status": "self-end"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"compoundVariants": [
|
|
141
|
+
{
|
|
142
|
+
"inverted": true,
|
|
143
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
144
|
+
"class": {
|
|
145
|
+
"step": "text-start" as typeof step[number],
|
|
146
|
+
"status": "flex-row-reverse"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"inverted": true,
|
|
151
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
152
|
+
"class": {
|
|
153
|
+
"steps": "items-start",
|
|
154
|
+
"status": "flex-col-reverse"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
159
|
+
"size": "2xs" as typeof size[number],
|
|
160
|
+
"class": "h-px"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
164
|
+
"size": "xs" as typeof size[number],
|
|
165
|
+
"class": "h-0.5"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
169
|
+
"size": "sm" as typeof size[number],
|
|
170
|
+
"class": "h-1"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
174
|
+
"size": "md" as typeof size[number],
|
|
175
|
+
"class": "h-2"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
179
|
+
"size": "lg" as typeof size[number],
|
|
180
|
+
"class": "h-3"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
184
|
+
"size": "xl" as typeof size[number],
|
|
185
|
+
"class": "h-4"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
189
|
+
"size": "2xl" as typeof size[number],
|
|
190
|
+
"class": "h-5"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
194
|
+
"size": "2xs" as typeof size[number],
|
|
195
|
+
"class": "w-px"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
199
|
+
"size": "xs" as typeof size[number],
|
|
200
|
+
"class": "w-0.5"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
204
|
+
"size": "sm" as typeof size[number],
|
|
205
|
+
"class": "w-1"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
209
|
+
"size": "md" as typeof size[number],
|
|
210
|
+
"class": "w-2"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
214
|
+
"size": "lg" as typeof size[number],
|
|
215
|
+
"class": "w-3"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
219
|
+
"size": "xl" as typeof size[number],
|
|
220
|
+
"class": "w-4"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
224
|
+
"size": "2xl" as typeof size[number],
|
|
225
|
+
"class": "w-5"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
229
|
+
"animation": "carousel" as typeof animation[number],
|
|
230
|
+
"class": {
|
|
231
|
+
"indicator": "data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_ease-in-out_infinite]"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
236
|
+
"animation": "carousel" as typeof animation[number],
|
|
237
|
+
"class": {
|
|
238
|
+
"indicator": "data-[state=indeterminate]:animate-[carousel-vertical_2s_ease-in-out_infinite]"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
243
|
+
"animation": "carousel-inverse" as typeof animation[number],
|
|
244
|
+
"class": {
|
|
245
|
+
"indicator": "data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
250
|
+
"animation": "carousel-inverse" as typeof animation[number],
|
|
251
|
+
"class": {
|
|
252
|
+
"indicator": "data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_ease-in-out_infinite]"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
257
|
+
"animation": "swing" as typeof animation[number],
|
|
258
|
+
"class": {
|
|
259
|
+
"indicator": "data-[state=indeterminate]:animate-[swing_2s_ease-in-out_infinite]"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
264
|
+
"animation": "swing" as typeof animation[number],
|
|
265
|
+
"class": {
|
|
266
|
+
"indicator": "data-[state=indeterminate]:animate-[swing-vertical_2s_ease-in-out_infinite]"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
271
|
+
"animation": "elastic" as typeof animation[number],
|
|
272
|
+
"class": {
|
|
273
|
+
"indicator": "data-[state=indeterminate]:animate-[elastic_2s_ease-in-out_infinite]"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
278
|
+
"animation": "elastic" as typeof animation[number],
|
|
279
|
+
"class": {
|
|
280
|
+
"indicator": "data-[state=indeterminate]:animate-[elastic-vertical_2s_ease-in-out_infinite]"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
285
|
+
"animation": "loading" as typeof animation[number],
|
|
286
|
+
"class": {
|
|
287
|
+
"indicator": "data-[state=indeterminate]:animate-[progressbar-loading_2s_infinite]"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
292
|
+
"animation": "loading" as typeof animation[number],
|
|
293
|
+
"class": {
|
|
294
|
+
"indicator": "data-[state=indeterminate]:animate-[progressbar-loading-vertical_2s_infinite]"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"defaultVariants": {
|
|
299
|
+
"animation": "loading" as typeof animation[number],
|
|
300
|
+
"color": "primary" as typeof color[number],
|
|
301
|
+
"size": "md" as typeof size[number]
|
|
302
|
+
}
|
|
303
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"default",
|
|
3
|
+
"danger",
|
|
4
|
+
"success",
|
|
5
|
+
"warning",
|
|
6
|
+
"primary",
|
|
7
|
+
"secondary",
|
|
8
|
+
"collab",
|
|
9
|
+
"ai"
|
|
10
|
+
] as const
|
|
11
|
+
|
|
12
|
+
const orientation = [
|
|
13
|
+
"horizontal",
|
|
14
|
+
"vertical"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
17
|
+
const size = [
|
|
18
|
+
"xs",
|
|
19
|
+
"sm",
|
|
20
|
+
"md",
|
|
21
|
+
"lg"
|
|
22
|
+
] as const
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
"slots": {
|
|
26
|
+
"root": "relative",
|
|
27
|
+
"fieldset": "flex",
|
|
28
|
+
"legend": "mb-1.5 block font-medium text-base-master dark:text-base-400",
|
|
29
|
+
"item": "flex items-start",
|
|
30
|
+
"base": "cursor-pointer rounded-full ring ring-inset ring-base-300 dark:ring-base-700 focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
31
|
+
"indicator": " flex items-center justify-center size-full rounded-full after:bg-white dark:after:bg-base-dark after:rounded-full",
|
|
32
|
+
"container": "flex items-center",
|
|
33
|
+
"wrapper": "font-b24-primary font-regular ms-2",
|
|
34
|
+
"label": "cursor-pointer block text-base-master dark:text-base-400",
|
|
35
|
+
"description": "text-base-500 dark:text-base-600"
|
|
36
|
+
},
|
|
37
|
+
"variants": {
|
|
38
|
+
"color": {
|
|
39
|
+
"default": {
|
|
40
|
+
"base": "focus-visible:outline-base-900 dark:focus-visible:outline-base-900",
|
|
41
|
+
"indicator": "bg-base-900 dark:bg-base-350"
|
|
42
|
+
},
|
|
43
|
+
"danger": {
|
|
44
|
+
"base": "focus-visible:outline-red-500 dark:focus-visible:outline-red-600",
|
|
45
|
+
"indicator": "bg-red-500 dark:bg-red-600"
|
|
46
|
+
},
|
|
47
|
+
"success": {
|
|
48
|
+
"base": "focus-visible:outline-green-500 dark:focus-visible:outline-green-600",
|
|
49
|
+
"indicator": "bg-green-500 dark:bg-green-600"
|
|
50
|
+
},
|
|
51
|
+
"warning": {
|
|
52
|
+
"base": "focus-visible:outline-orange-500 dark:focus-visible:outline-orange-600",
|
|
53
|
+
"indicator": "bg-orange-500 dark:bg-orange-600"
|
|
54
|
+
},
|
|
55
|
+
"primary": {
|
|
56
|
+
"base": "focus-visible:outline-blue-500 dark:focus-visible:outline-blue-600",
|
|
57
|
+
"indicator": "bg-blue-500 dark:bg-blue-600"
|
|
58
|
+
},
|
|
59
|
+
"secondary": {
|
|
60
|
+
"base": "focus-visible:outline-cyan-350 dark:focus-visible:outline-cyan-500",
|
|
61
|
+
"indicator": "bg-cyan-350 dark:bg-cyan-500"
|
|
62
|
+
},
|
|
63
|
+
"collab": {
|
|
64
|
+
"base": "focus-visible:outline-collab-500 dark:focus-visible:outline-collab-600",
|
|
65
|
+
"indicator": "bg-collab-500 dark:bg-collab-600"
|
|
66
|
+
},
|
|
67
|
+
"ai": {
|
|
68
|
+
"base": "focus-visible:outline-ai-500 dark:focus-visible:outline-ai-600",
|
|
69
|
+
"indicator": "bg-ai-500 dark:bg-ai-600"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"orientation": {
|
|
73
|
+
"horizontal": {
|
|
74
|
+
"fieldset": "flex-row",
|
|
75
|
+
"wrapper": "me-2"
|
|
76
|
+
},
|
|
77
|
+
"vertical": {
|
|
78
|
+
"fieldset": "flex-col"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"size": {
|
|
82
|
+
"xs": {
|
|
83
|
+
"fieldset": "gap-1",
|
|
84
|
+
"legend": "text-xs",
|
|
85
|
+
"base": "size-3",
|
|
86
|
+
"item": "text-xs",
|
|
87
|
+
"label": "leading-4",
|
|
88
|
+
"container": "h-4",
|
|
89
|
+
"indicator": "after:size-1"
|
|
90
|
+
},
|
|
91
|
+
"sm": {
|
|
92
|
+
"fieldset": "gap-1.5",
|
|
93
|
+
"legend": "text-xs",
|
|
94
|
+
"base": "size-3.5",
|
|
95
|
+
"item": "text-sm",
|
|
96
|
+
"label": "leading-4",
|
|
97
|
+
"container": "h-4",
|
|
98
|
+
"indicator": "after:size-1"
|
|
99
|
+
},
|
|
100
|
+
"md": {
|
|
101
|
+
"fieldset": "gap-1",
|
|
102
|
+
"legend": "text-sm",
|
|
103
|
+
"base": "size-4",
|
|
104
|
+
"item": "text-md",
|
|
105
|
+
"label": "leading-5",
|
|
106
|
+
"container": "h-5",
|
|
107
|
+
"indicator": "after:size-1.5"
|
|
108
|
+
},
|
|
109
|
+
"lg": {
|
|
110
|
+
"fieldset": "gap-1.5",
|
|
111
|
+
"legend": "text-sm",
|
|
112
|
+
"base": "size-5",
|
|
113
|
+
"item": "text-xl",
|
|
114
|
+
"label": "leading-5",
|
|
115
|
+
"container": "h-5",
|
|
116
|
+
"indicator": "after:size-2"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"disabled": {
|
|
120
|
+
"true": {
|
|
121
|
+
"base": "cursor-not-allowed opacity-75",
|
|
122
|
+
"label": "cursor-not-allowed opacity-75"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": {
|
|
126
|
+
"true": {
|
|
127
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-red-500 dark:after:text-red-600"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"defaultVariants": {
|
|
132
|
+
"size": "md" as typeof size[number],
|
|
133
|
+
"color": "primary" as typeof color[number]
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"default",
|
|
3
|
+
"danger",
|
|
4
|
+
"success",
|
|
5
|
+
"warning",
|
|
6
|
+
"primary",
|
|
7
|
+
"secondary",
|
|
8
|
+
"collab",
|
|
9
|
+
"ai"
|
|
10
|
+
] as const
|
|
11
|
+
|
|
12
|
+
const size = [
|
|
13
|
+
"xs",
|
|
14
|
+
"sm",
|
|
15
|
+
"md",
|
|
16
|
+
"lg"
|
|
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-base-200 dark:bg-base-800 overflow-hidden rounded-full grow",
|
|
28
|
+
"range": "absolute rounded-full",
|
|
29
|
+
"thumb": "rounded-full bg-white dark:bg-base-100 ring-2 focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
30
|
+
},
|
|
31
|
+
"variants": {
|
|
32
|
+
"color": {
|
|
33
|
+
"default": {
|
|
34
|
+
"range": "bg-base-900 dark:bg-base-350",
|
|
35
|
+
"thumb": "ring-base-900 dark:ring-base-400 focus-visible:outline-base-900/50 dark:focus-visible:outline-base-700/50"
|
|
36
|
+
},
|
|
37
|
+
"danger": {
|
|
38
|
+
"range": "bg-red-500 dark:bg-red-600",
|
|
39
|
+
"thumb": "ring-red-500 dark:ring-red-600 focus-visible:outline-red-500/50 dark:focus-visible:outline-red-600/50"
|
|
40
|
+
},
|
|
41
|
+
"success": {
|
|
42
|
+
"range": "bg-green-500 dark:bg-green-600",
|
|
43
|
+
"thumb": "ring-green-500 dark:ring-green-600 focus-visible:outline-green-500/50 dark:focus-visible:outline-green-600/50"
|
|
44
|
+
},
|
|
45
|
+
"warning": {
|
|
46
|
+
"range": "bg-orange-500 dark:bg-orange-600",
|
|
47
|
+
"thumb": "ring-orange-500 dark:ring-orange-600 focus-visible:outline-orange-500/50 dark:focus-visible:outline-orange-600/50"
|
|
48
|
+
},
|
|
49
|
+
"primary": {
|
|
50
|
+
"range": "bg-blue-500 dark:bg-blue-600",
|
|
51
|
+
"thumb": "ring-blue-500 dark:ring-blue-600 focus-visible:outline-blue-500/50 dark:focus-visible:outline-blue-600/50"
|
|
52
|
+
},
|
|
53
|
+
"secondary": {
|
|
54
|
+
"range": "bg-cyan-350 dark:bg-cyan-500",
|
|
55
|
+
"thumb": "ring-cyan-350 dark:ring-cyan-500 focus-visible:outline-cyan-350/50 dark:focus-visible:outline-cyan-500/50"
|
|
56
|
+
},
|
|
57
|
+
"collab": {
|
|
58
|
+
"range": "bg-collab-500 dark:bg-collab-600",
|
|
59
|
+
"thumb": "ring-collab-500 dark:ring-collab-600 focus-visible:outline-collab-500/50 dark:focus-visible:outline-collab-600/50"
|
|
60
|
+
},
|
|
61
|
+
"ai": {
|
|
62
|
+
"range": "bg-ai-500 dark:bg-ai-600",
|
|
63
|
+
"thumb": "ring-ai-500 dark:ring-ai-600 focus-visible:outline-ai-500/50 dark:focus-visible:outline-ai-600/50"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"size": {
|
|
67
|
+
"xs": {
|
|
68
|
+
"thumb": "size-3"
|
|
69
|
+
},
|
|
70
|
+
"sm": {
|
|
71
|
+
"thumb": "size-3.5"
|
|
72
|
+
},
|
|
73
|
+
"md": {
|
|
74
|
+
"thumb": "size-4"
|
|
75
|
+
},
|
|
76
|
+
"lg": {
|
|
77
|
+
"thumb": "size-5"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"orientation": {
|
|
81
|
+
"horizontal": {
|
|
82
|
+
"root": "w-full",
|
|
83
|
+
"range": "h-full"
|
|
84
|
+
},
|
|
85
|
+
"vertical": {
|
|
86
|
+
"root": "flex-col h-full",
|
|
87
|
+
"range": "w-full"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"disabled": {
|
|
91
|
+
"true": {
|
|
92
|
+
"root": "opacity-75 cursor-not-allowed"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"compoundVariants": [
|
|
97
|
+
{
|
|
98
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
99
|
+
"size": "xs" as typeof size[number],
|
|
100
|
+
"class": {
|
|
101
|
+
"track": "h-[6px]"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
106
|
+
"size": "sm" as typeof size[number],
|
|
107
|
+
"class": {
|
|
108
|
+
"track": "h-[7px]"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
113
|
+
"size": "md" as typeof size[number],
|
|
114
|
+
"class": {
|
|
115
|
+
"track": "h-[8px]"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
120
|
+
"size": "lg" as typeof size[number],
|
|
121
|
+
"class": {
|
|
122
|
+
"track": "h-[9px]"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
127
|
+
"size": "xl" as typeof size[number],
|
|
128
|
+
"class": {
|
|
129
|
+
"track": "h-[10px]"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
134
|
+
"size": "xs" as typeof size[number],
|
|
135
|
+
"class": {
|
|
136
|
+
"track": "w-[6px]"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
141
|
+
"size": "sm" as typeof size[number],
|
|
142
|
+
"class": {
|
|
143
|
+
"track": "w-[7px]"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
148
|
+
"size": "md" as typeof size[number],
|
|
149
|
+
"class": {
|
|
150
|
+
"track": "w-[8px]"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
155
|
+
"size": "lg" as typeof size[number],
|
|
156
|
+
"class": {
|
|
157
|
+
"track": "w-[9px]"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
162
|
+
"size": "xl" as typeof size[number],
|
|
163
|
+
"class": {
|
|
164
|
+
"track": "w-[10px]"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"defaultVariants": {
|
|
169
|
+
"size": "md" as typeof size[number],
|
|
170
|
+
"color": "primary" as typeof color[number]
|
|
171
|
+
}
|
|
172
|
+
}
|