@nuxt/ui 3.0.0-alpha.9 → 3.0.0-beta.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/ui/accordion.ts +2 -2
- package/.nuxt/ui/alert.ts +122 -95
- package/.nuxt/ui/avatar-group.ts +14 -2
- package/.nuxt/ui/avatar.ts +16 -4
- package/.nuxt/ui/badge.ts +139 -93
- package/.nuxt/ui/breadcrumb.ts +5 -5
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +167 -136
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +27 -1
- package/.nuxt/ui/carousel.ts +7 -5
- package/.nuxt/ui/checkbox.ts +45 -27
- package/.nuxt/ui/chip.ts +44 -15
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +28 -18
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/context-menu.ts +64 -46
- package/.nuxt/ui/drawer.ts +83 -15
- package/.nuxt/ui/dropdown-menu.ts +65 -47
- package/.nuxt/ui/form-field.ts +15 -7
- package/.nuxt/ui/index.ts +5 -1
- package/.nuxt/ui/input-menu.ts +150 -116
- package/.nuxt/ui/input-number.ts +102 -71
- package/.nuxt/ui/input.ts +111 -76
- package/.nuxt/ui/kbd.ts +18 -6
- package/.nuxt/ui/link.ts +3 -3
- package/.nuxt/ui/modal.ts +8 -7
- package/.nuxt/ui/navigation-menu.ts +244 -131
- package/.nuxt/ui/pin-input.ts +77 -51
- package/.nuxt/ui/popover.ts +2 -2
- package/.nuxt/ui/progress.ts +111 -72
- package/.nuxt/ui/radio-group.ts +45 -22
- package/.nuxt/ui/select-menu.ts +122 -86
- package/.nuxt/ui/select.ts +120 -84
- package/.nuxt/ui/separator.ts +60 -31
- package/.nuxt/ui/skeleton.ts +1 -1
- package/.nuxt/ui/slideover.ts +17 -9
- package/.nuxt/ui/slider.ts +61 -38
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +40 -22
- package/.nuxt/ui/table.ts +48 -31
- package/.nuxt/ui/tabs.ts +100 -72
- package/.nuxt/ui/textarea.ts +111 -76
- package/.nuxt/ui/toast.ts +53 -33
- package/.nuxt/ui/toaster.ts +31 -15
- package/.nuxt/ui/tooltip.ts +2 -2
- package/.nuxt/ui/tree.ts +154 -0
- package/.nuxt/ui.css +92 -0
- package/README.md +19 -8
- package/cli/commands/make/component.mjs +12 -0
- package/cli/package.json +2 -2
- package/cli/templates.mjs +27 -22
- package/dist/module.cjs +9 -171
- package/dist/module.d.cts +5 -15
- package/dist/module.d.mts +5 -15
- package/dist/module.d.ts +5 -15
- package/dist/module.json +2 -2
- package/dist/module.mjs +12 -168
- package/dist/runtime/components/Accordion.vue +8 -39
- package/dist/runtime/components/Alert.vue +22 -21
- package/dist/runtime/components/App.vue +9 -15
- package/dist/runtime/components/Avatar.vue +33 -21
- package/dist/runtime/components/AvatarGroup.vue +5 -7
- package/dist/runtime/components/Badge.vue +10 -8
- package/dist/runtime/components/Breadcrumb.vue +5 -31
- package/dist/runtime/components/Button.vue +5 -8
- package/dist/runtime/components/ButtonGroup.vue +5 -7
- package/dist/runtime/components/Calendar.vue +194 -0
- package/dist/runtime/components/Card.vue +10 -9
- package/dist/runtime/components/Carousel.vue +15 -10
- package/dist/runtime/components/Checkbox.vue +32 -38
- package/dist/runtime/components/Chip.vue +6 -8
- package/dist/runtime/components/Collapsible.vue +10 -11
- package/dist/runtime/components/ColorPicker.vue +297 -0
- package/dist/runtime/components/CommandPalette.vue +111 -97
- package/dist/runtime/components/Container.vue +4 -7
- package/dist/runtime/components/ContextMenu.vue +16 -69
- package/dist/runtime/components/ContextMenuContent.vue +12 -10
- package/dist/runtime/components/Drawer.vue +23 -12
- package/dist/runtime/components/DropdownMenu.vue +18 -59
- package/dist/runtime/components/DropdownMenuContent.vue +12 -10
- package/dist/runtime/components/Form.vue +65 -34
- package/dist/runtime/components/FormField.vue +22 -13
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +15 -7
- package/dist/runtime/components/InputMenu.vue +95 -104
- package/dist/runtime/components/InputNumber.vue +14 -9
- package/dist/runtime/components/Kbd.vue +5 -6
- package/dist/runtime/components/Link.vue +5 -8
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +51 -38
- package/dist/runtime/components/NavigationMenu.vue +129 -114
- package/dist/runtime/components/OverlayProvider.vue +28 -0
- package/dist/runtime/components/Pagination.vue +6 -9
- package/dist/runtime/components/PinInput.vue +10 -11
- package/dist/runtime/components/Popover.vue +16 -18
- package/dist/runtime/components/Progress.vue +28 -12
- package/dist/runtime/components/RadioGroup.vue +9 -12
- package/dist/runtime/components/Select.vue +60 -34
- package/dist/runtime/components/SelectMenu.vue +160 -165
- package/dist/runtime/components/Separator.vue +6 -5
- package/dist/runtime/components/Skeleton.vue +4 -7
- package/dist/runtime/components/Slideover.vue +51 -37
- package/dist/runtime/components/Slider.vue +8 -7
- package/dist/runtime/components/Stepper.vue +170 -0
- package/dist/runtime/components/Switch.vue +19 -23
- package/dist/runtime/components/Table.vue +146 -31
- package/dist/runtime/components/Tabs.vue +12 -31
- package/dist/runtime/components/Textarea.vue +17 -8
- package/dist/runtime/components/Toast.vue +36 -25
- package/dist/runtime/components/Toaster.vue +10 -11
- package/dist/runtime/components/Tooltip.vue +9 -12
- package/dist/runtime/components/Tree.vue +196 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +2 -2
- package/dist/runtime/composables/useFormField.d.ts +7 -3
- package/dist/runtime/composables/useFormField.js +18 -8
- package/dist/runtime/composables/useLocale.js +1 -1
- package/dist/runtime/composables/useOverlay.d.ts +30 -0
- package/dist/runtime/composables/useOverlay.js +70 -0
- package/dist/runtime/composables/useToast.d.ts +4 -3
- package/dist/runtime/composables/useToast.js +20 -6
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/keyframes.css +1 -1
- package/dist/runtime/locale/ar.js +9 -1
- package/dist/runtime/locale/az.js +54 -0
- package/dist/runtime/locale/bn.js +54 -0
- package/dist/runtime/locale/cs.js +9 -1
- package/dist/runtime/locale/da.d.ts +2 -0
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.js +11 -3
- package/dist/runtime/locale/el.d.ts +2 -0
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.js +9 -1
- package/dist/runtime/locale/es.js +9 -1
- package/dist/runtime/locale/et.d.ts +2 -0
- package/dist/runtime/locale/et.js +54 -0
- package/dist/runtime/locale/fa_ir.js +9 -1
- package/dist/runtime/locale/fi.d.ts +2 -0
- package/dist/runtime/locale/fi.js +54 -0
- package/dist/runtime/locale/fr.js +9 -1
- package/dist/runtime/locale/he.d.ts +2 -0
- package/dist/runtime/locale/he.js +53 -0
- package/dist/runtime/locale/hi.d.ts +2 -0
- package/dist/runtime/locale/hi.js +54 -0
- package/dist/runtime/locale/hu.d.ts +2 -0
- package/dist/runtime/locale/hu.js +54 -0
- package/dist/runtime/locale/id.d.ts +2 -0
- package/dist/runtime/locale/id.js +54 -0
- package/dist/runtime/locale/index.d.ts +25 -3
- package/dist/runtime/locale/index.js +25 -3
- package/dist/runtime/locale/it.js +9 -1
- package/dist/runtime/locale/ja.d.ts +2 -0
- package/dist/runtime/locale/ja.js +54 -0
- package/dist/runtime/locale/km.d.ts +2 -0
- package/dist/runtime/locale/km.js +54 -0
- package/dist/runtime/locale/ko.d.ts +2 -0
- package/dist/runtime/locale/ko.js +54 -0
- package/dist/runtime/locale/nb_no.d.ts +2 -0
- package/dist/runtime/locale/nb_no.js +54 -0
- package/dist/runtime/locale/nl.d.ts +2 -0
- package/dist/runtime/locale/nl.js +54 -0
- package/dist/runtime/locale/pl.js +9 -1
- package/dist/runtime/locale/pt.d.ts +2 -0
- package/dist/runtime/locale/pt.js +54 -0
- package/dist/runtime/locale/pt_br.d.ts +2 -0
- package/dist/runtime/locale/pt_br.js +54 -0
- package/dist/runtime/locale/ru.js +9 -1
- package/dist/runtime/locale/sk.d.ts +2 -0
- package/dist/runtime/locale/sk.js +54 -0
- package/dist/runtime/locale/sv.d.ts +2 -0
- package/dist/runtime/locale/sv.js +54 -0
- package/dist/runtime/locale/th.d.ts +2 -0
- package/dist/runtime/locale/th.js +54 -0
- package/dist/runtime/locale/tr.d.ts +2 -0
- package/dist/runtime/locale/tr.js +54 -0
- package/dist/runtime/locale/uk.d.ts +2 -0
- package/dist/runtime/locale/uk.js +54 -0
- package/dist/runtime/locale/vi.d.ts +2 -0
- package/dist/runtime/locale/vi.js +54 -0
- package/dist/runtime/locale/zh_cn.d.ts +2 -0
- package/dist/runtime/locale/{zh_hans.js → zh_cn.js} +10 -2
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +16 -8
- package/dist/runtime/plugins/colors.js +8 -5
- package/dist/runtime/types/form.d.ts +24 -15
- package/dist/runtime/types/form.js +2 -2
- package/dist/runtime/types/index.d.ts +5 -0
- package/dist/runtime/types/index.js +5 -0
- package/dist/runtime/types/locale.d.ts +8 -0
- package/dist/runtime/types/utils.d.ts +7 -3
- package/dist/runtime/utils/form.d.ts +4 -4
- package/dist/runtime/utils/form.js +6 -8
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +15 -2
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/vue/components/Icon.vue +2 -2
- package/dist/runtime/vue/components/Link.vue +87 -23
- package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
- package/dist/runtime/vue/composables/useAppConfig.js +2 -0
- package/dist/runtime/vue/plugins/head.d.ts +1 -1
- package/dist/runtime/vue/plugins/head.js +3 -3
- package/dist/runtime/vue/stubs.d.ts +19 -0
- package/dist/runtime/vue/stubs.js +37 -0
- package/dist/shared/{ui.d52SSCwA.mjs → ui.DSPu6Y8j.mjs} +905 -401
- package/dist/shared/{ui.BPnAe4QS.cjs → ui.DfK2RX6G.cjs} +908 -401
- package/dist/unplugin.cjs +62 -26
- package/dist/unplugin.d.cts +13 -1
- package/dist/unplugin.d.mts +13 -1
- package/dist/unplugin.d.ts +13 -1
- package/dist/unplugin.mjs +61 -25
- package/dist/vite.cjs +3 -2
- package/dist/vite.d.cts +2 -0
- package/dist/vite.d.mts +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.mjs +3 -2
- package/package.json +103 -67
- package/dist/chunks/component-meta.cjs +0 -77249
- package/dist/chunks/component-meta.mjs +0 -77247
- package/dist/client/devtools/200.html +0 -1
- package/dist/client/devtools/404.html +0 -1
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
- package/dist/client/devtools/_nuxt/BDC8ywlR.js +0 -1
- package/dist/client/devtools/_nuxt/BT004Uxp.js +0 -53
- package/dist/client/devtools/_nuxt/C1H2Soz3.js +0 -1
- package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
- package/dist/client/devtools/_nuxt/builds/meta/f98c13ea-d751-4b37-8ce3-94e99708745f.json +0 -1
- package/dist/client/devtools/_nuxt/entry.Bx6WJjrx.css +0 -1
- package/dist/client/devtools/_nuxt/error-404.Cq4qshcf.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.ax1aM34m.css +0 -1
- package/dist/client/devtools/favicon.svg +0 -1
- package/dist/client/devtools/index.html +0 -1
- package/dist/devtools/runtime/DevtoolsRenderer.vue +0 -53
- package/dist/devtools/runtime/examples/AvatarGroupExample.vue +0 -7
- package/dist/devtools/runtime/examples/ButtonGroupExample.vue +0 -8
- package/dist/devtools/runtime/examples/CardExample.vue +0 -13
- package/dist/devtools/runtime/examples/CarouselExample.vue +0 -13
- package/dist/devtools/runtime/examples/ChipExample.vue +0 -5
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +0 -8
- package/dist/devtools/runtime/examples/CommandPaletteExample.vue +0 -29
- package/dist/devtools/runtime/examples/ContainerExample.vue +0 -5
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +0 -5
- package/dist/devtools/runtime/examples/DrawerExample.vue +0 -8
- package/dist/devtools/runtime/examples/DropdownMenuExample.vue +0 -5
- package/dist/devtools/runtime/examples/FormExample.vue +0 -30
- package/dist/devtools/runtime/examples/FormFieldExample.vue +0 -5
- package/dist/devtools/runtime/examples/LinkExample.vue +0 -5
- package/dist/devtools/runtime/examples/ModalExample.vue +0 -8
- package/dist/devtools/runtime/examples/PopoverExample.vue +0 -8
- package/dist/devtools/runtime/examples/SkeletonExample.vue +0 -3
- package/dist/devtools/runtime/examples/SlideoverExample.vue +0 -8
- package/dist/devtools/runtime/examples/ToasterExample.vue +0 -11
- package/dist/devtools/runtime/examples/TooltipExample.vue +0 -5
- package/dist/runtime/components/ModalProvider.vue +0 -12
- package/dist/runtime/components/SlideoverProvider.vue +0 -12
- package/dist/runtime/composables/extendDevtoolsMeta.d.ts +0 -7
- package/dist/runtime/composables/extendDevtoolsMeta.js +0 -2
- package/dist/runtime/composables/useModal.d.ts +0 -17
- package/dist/runtime/composables/useModal.js +0 -46
- package/dist/runtime/composables/useSlideover.d.ts +0 -17
- package/dist/runtime/composables/useSlideover.js +0 -46
- package/dist/runtime/plugins/modal.d.ts +0 -2
- package/dist/runtime/plugins/modal.js +0 -10
- package/dist/runtime/plugins/slideover.d.ts +0 -2
- package/dist/runtime/plugins/slideover.js +0 -10
- /package/dist/runtime/locale/{zh_hans.d.ts → az.d.ts} +0 -0
- /package/dist/runtime/locale/{zh_hant.d.ts → bn.d.ts} +0 -0
package/.nuxt/ui/pin-input.ts
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
const variant = [
|
|
10
|
+
"outline",
|
|
11
|
+
"soft",
|
|
12
|
+
"subtle",
|
|
13
|
+
"ghost",
|
|
14
|
+
"none"
|
|
15
|
+
] as const
|
|
16
|
+
|
|
17
|
+
const color = [
|
|
18
|
+
"primary",
|
|
19
|
+
"secondary",
|
|
20
|
+
"success",
|
|
21
|
+
"info",
|
|
22
|
+
"warning",
|
|
23
|
+
"error",
|
|
24
|
+
"neutral"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
1
27
|
export default {
|
|
2
28
|
"slots": {
|
|
3
29
|
"root": "relative inline-flex items-center gap-1.5",
|
|
4
30
|
"base": [
|
|
5
|
-
"rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-
|
|
31
|
+
"rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-(--ui-text-dimmed) text-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
6
32
|
"transition-colors"
|
|
7
33
|
]
|
|
8
34
|
},
|
|
@@ -25,11 +51,11 @@ export default {
|
|
|
25
51
|
}
|
|
26
52
|
},
|
|
27
53
|
"variant": {
|
|
28
|
-
"outline": "text-
|
|
29
|
-
"soft": "text-
|
|
30
|
-
"subtle": "text-
|
|
31
|
-
"ghost": "text-
|
|
32
|
-
"none": "text-
|
|
54
|
+
"outline": "text-(--ui-text-highlighted) bg-(--ui-bg) ring ring-inset ring-(--ui-border-accented)",
|
|
55
|
+
"soft": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated)/50 hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg-elevated)/50",
|
|
56
|
+
"subtle": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated) ring ring-inset ring-(--ui-border-accented)",
|
|
57
|
+
"ghost": "text-(--ui-text-highlighted) bg-transparent hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-transparent dark:disabled:bg-transparent",
|
|
58
|
+
"none": "text-(--ui-text-highlighted) bg-transparent"
|
|
33
59
|
},
|
|
34
60
|
"color": {
|
|
35
61
|
"primary": "",
|
|
@@ -46,100 +72,100 @@ export default {
|
|
|
46
72
|
},
|
|
47
73
|
"compoundVariants": [
|
|
48
74
|
{
|
|
49
|
-
"color": "primary" as
|
|
75
|
+
"color": "primary" as typeof color[number],
|
|
50
76
|
"variant": [
|
|
51
|
-
"outline" as
|
|
52
|
-
"subtle" as
|
|
77
|
+
"outline" as typeof variant[number],
|
|
78
|
+
"subtle" as typeof variant[number]
|
|
53
79
|
],
|
|
54
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
80
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)"
|
|
55
81
|
},
|
|
56
82
|
{
|
|
57
|
-
"color": "secondary" as
|
|
83
|
+
"color": "secondary" as typeof color[number],
|
|
58
84
|
"variant": [
|
|
59
|
-
"outline" as
|
|
60
|
-
"subtle" as
|
|
85
|
+
"outline" as typeof variant[number],
|
|
86
|
+
"subtle" as typeof variant[number]
|
|
61
87
|
],
|
|
62
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
88
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)"
|
|
63
89
|
},
|
|
64
90
|
{
|
|
65
|
-
"color": "success" as
|
|
91
|
+
"color": "success" as typeof color[number],
|
|
66
92
|
"variant": [
|
|
67
|
-
"outline" as
|
|
68
|
-
"subtle" as
|
|
93
|
+
"outline" as typeof variant[number],
|
|
94
|
+
"subtle" as typeof variant[number]
|
|
69
95
|
],
|
|
70
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
96
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)"
|
|
71
97
|
},
|
|
72
98
|
{
|
|
73
|
-
"color": "info" as
|
|
99
|
+
"color": "info" as typeof color[number],
|
|
74
100
|
"variant": [
|
|
75
|
-
"outline" as
|
|
76
|
-
"subtle" as
|
|
101
|
+
"outline" as typeof variant[number],
|
|
102
|
+
"subtle" as typeof variant[number]
|
|
77
103
|
],
|
|
78
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
104
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-info)"
|
|
79
105
|
},
|
|
80
106
|
{
|
|
81
|
-
"color": "warning" as
|
|
107
|
+
"color": "warning" as typeof color[number],
|
|
82
108
|
"variant": [
|
|
83
|
-
"outline" as
|
|
84
|
-
"subtle" as
|
|
109
|
+
"outline" as typeof variant[number],
|
|
110
|
+
"subtle" as typeof variant[number]
|
|
85
111
|
],
|
|
86
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
112
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)"
|
|
87
113
|
},
|
|
88
114
|
{
|
|
89
|
-
"color": "error" as
|
|
115
|
+
"color": "error" as typeof color[number],
|
|
90
116
|
"variant": [
|
|
91
|
-
"outline" as
|
|
92
|
-
"subtle" as
|
|
117
|
+
"outline" as typeof variant[number],
|
|
118
|
+
"subtle" as typeof variant[number]
|
|
93
119
|
],
|
|
94
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
120
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)"
|
|
95
121
|
},
|
|
96
122
|
{
|
|
97
|
-
"color": "primary" as
|
|
123
|
+
"color": "primary" as typeof color[number],
|
|
98
124
|
"highlight": true,
|
|
99
|
-
"class": "ring ring-inset ring-
|
|
125
|
+
"class": "ring ring-inset ring-(--ui-primary)"
|
|
100
126
|
},
|
|
101
127
|
{
|
|
102
|
-
"color": "secondary" as
|
|
128
|
+
"color": "secondary" as typeof color[number],
|
|
103
129
|
"highlight": true,
|
|
104
|
-
"class": "ring ring-inset ring-
|
|
130
|
+
"class": "ring ring-inset ring-(--ui-secondary)"
|
|
105
131
|
},
|
|
106
132
|
{
|
|
107
|
-
"color": "success" as
|
|
133
|
+
"color": "success" as typeof color[number],
|
|
108
134
|
"highlight": true,
|
|
109
|
-
"class": "ring ring-inset ring-
|
|
135
|
+
"class": "ring ring-inset ring-(--ui-success)"
|
|
110
136
|
},
|
|
111
137
|
{
|
|
112
|
-
"color": "info" as
|
|
138
|
+
"color": "info" as typeof color[number],
|
|
113
139
|
"highlight": true,
|
|
114
|
-
"class": "ring ring-inset ring-
|
|
140
|
+
"class": "ring ring-inset ring-(--ui-info)"
|
|
115
141
|
},
|
|
116
142
|
{
|
|
117
|
-
"color": "warning" as
|
|
143
|
+
"color": "warning" as typeof color[number],
|
|
118
144
|
"highlight": true,
|
|
119
|
-
"class": "ring ring-inset ring-
|
|
145
|
+
"class": "ring ring-inset ring-(--ui-warning)"
|
|
120
146
|
},
|
|
121
147
|
{
|
|
122
|
-
"color": "error" as
|
|
148
|
+
"color": "error" as typeof color[number],
|
|
123
149
|
"highlight": true,
|
|
124
|
-
"class": "ring ring-inset ring-
|
|
150
|
+
"class": "ring ring-inset ring-(--ui-error)"
|
|
125
151
|
},
|
|
126
152
|
{
|
|
127
|
-
"color": "neutral" as
|
|
153
|
+
"color": "neutral" as typeof color[number],
|
|
128
154
|
"variant": [
|
|
129
|
-
"outline" as
|
|
130
|
-
"subtle" as
|
|
155
|
+
"outline" as typeof variant[number],
|
|
156
|
+
"subtle" as typeof variant[number]
|
|
131
157
|
],
|
|
132
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
158
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)"
|
|
133
159
|
},
|
|
134
160
|
{
|
|
135
|
-
"color": "neutral" as
|
|
161
|
+
"color": "neutral" as typeof color[number],
|
|
136
162
|
"highlight": true,
|
|
137
|
-
"class": "ring ring-inset ring-
|
|
163
|
+
"class": "ring ring-inset ring-(--ui-border-inverted)"
|
|
138
164
|
}
|
|
139
165
|
],
|
|
140
166
|
"defaultVariants": {
|
|
141
|
-
"size": "md" as
|
|
142
|
-
"color": "primary" as
|
|
143
|
-
"variant": "outline" as
|
|
167
|
+
"size": "md" as typeof size[number],
|
|
168
|
+
"color": "primary" as typeof color[number],
|
|
169
|
+
"variant": "outline" as typeof variant[number]
|
|
144
170
|
}
|
|
145
171
|
}
|
package/.nuxt/ui/popover.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"content": "bg-
|
|
4
|
-
"arrow": "fill-
|
|
3
|
+
"content": "bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto",
|
|
4
|
+
"arrow": "fill-(--ui-border)"
|
|
5
5
|
}
|
|
6
6
|
}
|
package/.nuxt/ui/progress.ts
CHANGED
|
@@ -1,11 +1,50 @@
|
|
|
1
|
+
const animation = [
|
|
2
|
+
"carousel",
|
|
3
|
+
"carousel-inverse",
|
|
4
|
+
"swing",
|
|
5
|
+
"elastic"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
const color = [
|
|
9
|
+
"primary",
|
|
10
|
+
"secondary",
|
|
11
|
+
"success",
|
|
12
|
+
"info",
|
|
13
|
+
"warning",
|
|
14
|
+
"error",
|
|
15
|
+
"neutral"
|
|
16
|
+
] as const
|
|
17
|
+
|
|
18
|
+
const size = [
|
|
19
|
+
"2xs",
|
|
20
|
+
"xs",
|
|
21
|
+
"sm",
|
|
22
|
+
"md",
|
|
23
|
+
"lg",
|
|
24
|
+
"xl",
|
|
25
|
+
"2xl"
|
|
26
|
+
] as const
|
|
27
|
+
|
|
28
|
+
const step = [
|
|
29
|
+
"active",
|
|
30
|
+
"first",
|
|
31
|
+
"other",
|
|
32
|
+
"last"
|
|
33
|
+
] as const
|
|
34
|
+
|
|
35
|
+
const orientation = [
|
|
36
|
+
"horizontal",
|
|
37
|
+
"vertical"
|
|
38
|
+
] as const
|
|
39
|
+
|
|
1
40
|
export default {
|
|
2
41
|
"slots": {
|
|
3
42
|
"root": "gap-2",
|
|
4
|
-
"base": "relative overflow-hidden rounded-full bg-
|
|
43
|
+
"base": "relative overflow-hidden rounded-full bg-(--ui-bg-accented)",
|
|
5
44
|
"indicator": "rounded-full size-full transition-transform duration-200 ease-out",
|
|
6
|
-
"status": "flex justify-end text-
|
|
45
|
+
"status": "flex justify-end text-(--ui-text-dimmed) transition-[width] duration-200",
|
|
7
46
|
"steps": "grid items-end",
|
|
8
|
-
"step": "truncate text-end row-start-1 col-start-1 transition-opacity" as
|
|
47
|
+
"step": "truncate text-end row-start-1 col-start-1 transition-opacity" as typeof step[number]
|
|
9
48
|
},
|
|
10
49
|
"variants": {
|
|
11
50
|
"animation": {
|
|
@@ -16,32 +55,32 @@ export default {
|
|
|
16
55
|
},
|
|
17
56
|
"color": {
|
|
18
57
|
"primary": {
|
|
19
|
-
"indicator": "bg-
|
|
20
|
-
"steps": "text-
|
|
58
|
+
"indicator": "bg-(--ui-primary)",
|
|
59
|
+
"steps": "text-(--ui-primary)"
|
|
21
60
|
},
|
|
22
61
|
"secondary": {
|
|
23
|
-
"indicator": "bg-
|
|
24
|
-
"steps": "text-
|
|
62
|
+
"indicator": "bg-(--ui-secondary)",
|
|
63
|
+
"steps": "text-(--ui-secondary)"
|
|
25
64
|
},
|
|
26
65
|
"success": {
|
|
27
|
-
"indicator": "bg-
|
|
28
|
-
"steps": "text-
|
|
66
|
+
"indicator": "bg-(--ui-success)",
|
|
67
|
+
"steps": "text-(--ui-success)"
|
|
29
68
|
},
|
|
30
69
|
"info": {
|
|
31
|
-
"indicator": "bg-
|
|
32
|
-
"steps": "text-
|
|
70
|
+
"indicator": "bg-(--ui-info)",
|
|
71
|
+
"steps": "text-(--ui-info)"
|
|
33
72
|
},
|
|
34
73
|
"warning": {
|
|
35
|
-
"indicator": "bg-
|
|
36
|
-
"steps": "text-
|
|
74
|
+
"indicator": "bg-(--ui-warning)",
|
|
75
|
+
"steps": "text-(--ui-warning)"
|
|
37
76
|
},
|
|
38
77
|
"error": {
|
|
39
|
-
"indicator": "bg-
|
|
40
|
-
"steps": "text-
|
|
78
|
+
"indicator": "bg-(--ui-error)",
|
|
79
|
+
"steps": "text-(--ui-error)"
|
|
41
80
|
},
|
|
42
81
|
"neutral": {
|
|
43
|
-
"indicator": "bg-
|
|
44
|
-
"steps": "text-
|
|
82
|
+
"indicator": "bg-(--ui-bg-inverted)",
|
|
83
|
+
"steps": "text-(--ui-bg)"
|
|
45
84
|
}
|
|
46
85
|
},
|
|
47
86
|
"size": {
|
|
@@ -76,13 +115,13 @@ export default {
|
|
|
76
115
|
},
|
|
77
116
|
"step": {
|
|
78
117
|
"active": {
|
|
79
|
-
"step": "opacity-100" as
|
|
118
|
+
"step": "opacity-100" as typeof step[number]
|
|
80
119
|
},
|
|
81
120
|
"first": {
|
|
82
|
-
"step": "opacity-100 text-
|
|
121
|
+
"step": "opacity-100 text-(--ui-text-muted)" as typeof step[number]
|
|
83
122
|
},
|
|
84
123
|
"other": {
|
|
85
|
-
"step": "opacity-0" as
|
|
124
|
+
"step": "opacity-0" as typeof step[number]
|
|
86
125
|
},
|
|
87
126
|
"last": {
|
|
88
127
|
"step": ""
|
|
@@ -109,150 +148,150 @@ export default {
|
|
|
109
148
|
"compoundVariants": [
|
|
110
149
|
{
|
|
111
150
|
"inverted": true,
|
|
112
|
-
"orientation": "horizontal" as
|
|
151
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
113
152
|
"class": {
|
|
114
|
-
"step": "text-start" as
|
|
153
|
+
"step": "text-start" as typeof step[number],
|
|
115
154
|
"status": "flex-row-reverse"
|
|
116
155
|
}
|
|
117
156
|
},
|
|
118
157
|
{
|
|
119
158
|
"inverted": true,
|
|
120
|
-
"orientation": "vertical" as
|
|
159
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
121
160
|
"class": {
|
|
122
161
|
"steps": "items-start",
|
|
123
162
|
"status": "flex-col-reverse"
|
|
124
163
|
}
|
|
125
164
|
},
|
|
126
165
|
{
|
|
127
|
-
"orientation": "horizontal" as
|
|
128
|
-
"size": "2xs" as
|
|
166
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
167
|
+
"size": "2xs" as typeof size[number],
|
|
129
168
|
"class": "h-px"
|
|
130
169
|
},
|
|
131
170
|
{
|
|
132
|
-
"orientation": "horizontal" as
|
|
133
|
-
"size": "xs" as
|
|
171
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
172
|
+
"size": "xs" as typeof size[number],
|
|
134
173
|
"class": "h-0.5"
|
|
135
174
|
},
|
|
136
175
|
{
|
|
137
|
-
"orientation": "horizontal" as
|
|
138
|
-
"size": "sm" as
|
|
176
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
177
|
+
"size": "sm" as typeof size[number],
|
|
139
178
|
"class": "h-1"
|
|
140
179
|
},
|
|
141
180
|
{
|
|
142
|
-
"orientation": "horizontal" as
|
|
143
|
-
"size": "md" as
|
|
181
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
182
|
+
"size": "md" as typeof size[number],
|
|
144
183
|
"class": "h-2"
|
|
145
184
|
},
|
|
146
185
|
{
|
|
147
|
-
"orientation": "horizontal" as
|
|
148
|
-
"size": "lg" as
|
|
186
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
187
|
+
"size": "lg" as typeof size[number],
|
|
149
188
|
"class": "h-3"
|
|
150
189
|
},
|
|
151
190
|
{
|
|
152
|
-
"orientation": "horizontal" as
|
|
153
|
-
"size": "xl" as
|
|
191
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
192
|
+
"size": "xl" as typeof size[number],
|
|
154
193
|
"class": "h-4"
|
|
155
194
|
},
|
|
156
195
|
{
|
|
157
|
-
"orientation": "horizontal" as
|
|
158
|
-
"size": "2xl" as
|
|
196
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
197
|
+
"size": "2xl" as typeof size[number],
|
|
159
198
|
"class": "h-5"
|
|
160
199
|
},
|
|
161
200
|
{
|
|
162
|
-
"orientation": "vertical" as
|
|
163
|
-
"size": "2xs" as
|
|
201
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
202
|
+
"size": "2xs" as typeof size[number],
|
|
164
203
|
"class": "w-px"
|
|
165
204
|
},
|
|
166
205
|
{
|
|
167
|
-
"orientation": "vertical" as
|
|
168
|
-
"size": "xs" as
|
|
206
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
207
|
+
"size": "xs" as typeof size[number],
|
|
169
208
|
"class": "w-0.5"
|
|
170
209
|
},
|
|
171
210
|
{
|
|
172
|
-
"orientation": "vertical" as
|
|
173
|
-
"size": "sm" as
|
|
211
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
212
|
+
"size": "sm" as typeof size[number],
|
|
174
213
|
"class": "w-1"
|
|
175
214
|
},
|
|
176
215
|
{
|
|
177
|
-
"orientation": "vertical" as
|
|
178
|
-
"size": "md" as
|
|
216
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
217
|
+
"size": "md" as typeof size[number],
|
|
179
218
|
"class": "w-2"
|
|
180
219
|
},
|
|
181
220
|
{
|
|
182
|
-
"orientation": "vertical" as
|
|
183
|
-
"size": "lg" as
|
|
221
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
222
|
+
"size": "lg" as typeof size[number],
|
|
184
223
|
"class": "w-3"
|
|
185
224
|
},
|
|
186
225
|
{
|
|
187
|
-
"orientation": "vertical" as
|
|
188
|
-
"size": "xl" as
|
|
226
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
227
|
+
"size": "xl" as typeof size[number],
|
|
189
228
|
"class": "w-4"
|
|
190
229
|
},
|
|
191
230
|
{
|
|
192
|
-
"orientation": "vertical" as
|
|
193
|
-
"size": "2xl" as
|
|
231
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
232
|
+
"size": "2xl" as typeof size[number],
|
|
194
233
|
"class": "w-5"
|
|
195
234
|
},
|
|
196
235
|
{
|
|
197
|
-
"orientation": "horizontal" as
|
|
198
|
-
"animation": "carousel" as
|
|
236
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
237
|
+
"animation": "carousel" as typeof animation[number],
|
|
199
238
|
"class": {
|
|
200
|
-
"indicator": "data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite]"
|
|
239
|
+
"indicator": "data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_ease-in-out_infinite]"
|
|
201
240
|
}
|
|
202
241
|
},
|
|
203
242
|
{
|
|
204
|
-
"orientation": "vertical" as
|
|
205
|
-
"animation": "carousel" as
|
|
243
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
244
|
+
"animation": "carousel" as typeof animation[number],
|
|
206
245
|
"class": {
|
|
207
246
|
"indicator": "data-[state=indeterminate]:animate-[carousel-vertical_2s_ease-in-out_infinite]"
|
|
208
247
|
}
|
|
209
248
|
},
|
|
210
249
|
{
|
|
211
|
-
"orientation": "horizontal" as
|
|
212
|
-
"animation": "carousel-inverse" as
|
|
250
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
251
|
+
"animation": "carousel-inverse" as typeof animation[number],
|
|
213
252
|
"class": {
|
|
214
|
-
"indicator": "data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite]"
|
|
253
|
+
"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]"
|
|
215
254
|
}
|
|
216
255
|
},
|
|
217
256
|
{
|
|
218
|
-
"orientation": "vertical" as
|
|
219
|
-
"animation": "carousel-inverse" as
|
|
257
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
258
|
+
"animation": "carousel-inverse" as typeof animation[number],
|
|
220
259
|
"class": {
|
|
221
260
|
"indicator": "data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_ease-in-out_infinite]"
|
|
222
261
|
}
|
|
223
262
|
},
|
|
224
263
|
{
|
|
225
|
-
"orientation": "horizontal" as
|
|
226
|
-
"animation": "swing" as
|
|
264
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
265
|
+
"animation": "swing" as typeof animation[number],
|
|
227
266
|
"class": {
|
|
228
267
|
"indicator": "data-[state=indeterminate]:animate-[swing_2s_ease-in-out_infinite]"
|
|
229
268
|
}
|
|
230
269
|
},
|
|
231
270
|
{
|
|
232
|
-
"orientation": "vertical" as
|
|
233
|
-
"animation": "swing" as
|
|
271
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
272
|
+
"animation": "swing" as typeof animation[number],
|
|
234
273
|
"class": {
|
|
235
274
|
"indicator": "data-[state=indeterminate]:animate-[swing-vertical_2s_ease-in-out_infinite]"
|
|
236
275
|
}
|
|
237
276
|
},
|
|
238
277
|
{
|
|
239
|
-
"orientation": "horizontal" as
|
|
240
|
-
"animation": "elastic" as
|
|
278
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
279
|
+
"animation": "elastic" as typeof animation[number],
|
|
241
280
|
"class": {
|
|
242
281
|
"indicator": "data-[state=indeterminate]:animate-[elastic_2s_ease-in-out_infinite]"
|
|
243
282
|
}
|
|
244
283
|
},
|
|
245
284
|
{
|
|
246
|
-
"orientation": "vertical" as
|
|
247
|
-
"animation": "elastic" as
|
|
285
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
286
|
+
"animation": "elastic" as typeof animation[number],
|
|
248
287
|
"class": {
|
|
249
288
|
"indicator": "data-[state=indeterminate]:animate-[elastic-vertical_2s_ease-in-out_infinite]"
|
|
250
289
|
}
|
|
251
290
|
}
|
|
252
291
|
],
|
|
253
292
|
"defaultVariants": {
|
|
254
|
-
"animation": "carousel" as
|
|
255
|
-
"color": "primary" as
|
|
256
|
-
"size": "md" as
|
|
293
|
+
"animation": "carousel" as typeof animation[number],
|
|
294
|
+
"color": "primary" as typeof color[number],
|
|
295
|
+
"size": "md" as typeof size[number]
|
|
257
296
|
}
|
|
258
297
|
}
|
package/.nuxt/ui/radio-group.ts
CHANGED
|
@@ -1,45 +1,68 @@
|
|
|
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
|
+
|
|
1
24
|
export default {
|
|
2
25
|
"slots": {
|
|
3
26
|
"root": "relative",
|
|
4
27
|
"fieldset": "flex",
|
|
5
|
-
"legend": "mb-1 block font-medium text-
|
|
28
|
+
"legend": "mb-1 block font-medium text-(--ui-text)",
|
|
6
29
|
"item": "flex items-start",
|
|
7
|
-
"base": "rounded-full ring ring-inset ring-
|
|
8
|
-
"indicator": "flex items-center justify-center size-full rounded-full after:bg-
|
|
30
|
+
"base": "rounded-full ring ring-inset ring-(--ui-border-accented) focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
31
|
+
"indicator": "flex items-center justify-center size-full rounded-full after:bg-(--ui-bg) after:rounded-full",
|
|
9
32
|
"container": "flex items-center",
|
|
10
33
|
"wrapper": "ms-2",
|
|
11
|
-
"label": "block font-medium text-
|
|
12
|
-
"description": "text-
|
|
34
|
+
"label": "block font-medium text-(--ui-text)",
|
|
35
|
+
"description": "text-(--ui-text-muted)"
|
|
13
36
|
},
|
|
14
37
|
"variants": {
|
|
15
38
|
"color": {
|
|
16
39
|
"primary": {
|
|
17
|
-
"base": "focus-visible:outline-
|
|
18
|
-
"indicator": "bg-
|
|
40
|
+
"base": "focus-visible:outline-(--ui-primary)",
|
|
41
|
+
"indicator": "bg-(--ui-primary)"
|
|
19
42
|
},
|
|
20
43
|
"secondary": {
|
|
21
|
-
"base": "focus-visible:outline-
|
|
22
|
-
"indicator": "bg-
|
|
44
|
+
"base": "focus-visible:outline-(--ui-secondary)",
|
|
45
|
+
"indicator": "bg-(--ui-secondary)"
|
|
23
46
|
},
|
|
24
47
|
"success": {
|
|
25
|
-
"base": "focus-visible:outline-
|
|
26
|
-
"indicator": "bg-
|
|
48
|
+
"base": "focus-visible:outline-(--ui-success)",
|
|
49
|
+
"indicator": "bg-(--ui-success)"
|
|
27
50
|
},
|
|
28
51
|
"info": {
|
|
29
|
-
"base": "focus-visible:outline-
|
|
30
|
-
"indicator": "bg-
|
|
52
|
+
"base": "focus-visible:outline-(--ui-info)",
|
|
53
|
+
"indicator": "bg-(--ui-info)"
|
|
31
54
|
},
|
|
32
55
|
"warning": {
|
|
33
|
-
"base": "focus-visible:outline-
|
|
34
|
-
"indicator": "bg-
|
|
56
|
+
"base": "focus-visible:outline-(--ui-warning)",
|
|
57
|
+
"indicator": "bg-(--ui-warning)"
|
|
35
58
|
},
|
|
36
59
|
"error": {
|
|
37
|
-
"base": "focus-visible:outline-
|
|
38
|
-
"indicator": "bg-
|
|
60
|
+
"base": "focus-visible:outline-(--ui-error)",
|
|
61
|
+
"indicator": "bg-(--ui-error)"
|
|
39
62
|
},
|
|
40
63
|
"neutral": {
|
|
41
|
-
"base": "focus-visible:outline-
|
|
42
|
-
"indicator": "bg-
|
|
64
|
+
"base": "focus-visible:outline-(--ui-border-inverted)",
|
|
65
|
+
"indicator": "bg-(--ui-bg-inverted)"
|
|
43
66
|
}
|
|
44
67
|
},
|
|
45
68
|
"orientation": {
|
|
@@ -101,12 +124,12 @@ export default {
|
|
|
101
124
|
},
|
|
102
125
|
"required": {
|
|
103
126
|
"true": {
|
|
104
|
-
"legend": "after:content-['*'] after:ms-0.5 after:text-
|
|
127
|
+
"legend": "after:content-['*'] after:ms-0.5 after:text-(--ui-error)"
|
|
105
128
|
}
|
|
106
129
|
}
|
|
107
130
|
},
|
|
108
131
|
"defaultVariants": {
|
|
109
|
-
"size": "md" as
|
|
110
|
-
"color": "primary" as
|
|
132
|
+
"size": "md" as typeof size[number],
|
|
133
|
+
"color": "primary" as typeof color[number]
|
|
111
134
|
}
|
|
112
135
|
}
|