@nuxt/ui 3.0.0-alpha.8 → 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 +9 -7
- 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 +7 -1
- package/.nuxt/ui/input-menu.ts +150 -116
- package/.nuxt/ui/input-number.ts +235 -0
- 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 +171 -0
- 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 +127 -96
- 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 +49 -31
- package/.nuxt/ui/tabs.ts +101 -73
- 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 +69 -18
- package/cli/commands/{init.mjs → make/component.mjs} +16 -4
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +2 -2
- package/cli/package.json +2 -2
- package/cli/templates.mjs +62 -12
- package/cli/utils.mjs +14 -0
- package/dist/module.cjs +9 -170
- 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 -167
- package/dist/runtime/components/Accordion.vue +8 -39
- package/dist/runtime/components/Alert.vue +25 -21
- package/dist/runtime/components/App.vue +15 -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 +13 -34
- 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 +26 -17
- 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 +114 -98
- package/dist/runtime/components/Container.vue +4 -7
- package/dist/runtime/components/ContextMenu.vue +16 -69
- package/dist/runtime/components/ContextMenuContent.vue +14 -10
- package/dist/runtime/components/Drawer.vue +23 -12
- package/dist/runtime/components/DropdownMenu.vue +18 -59
- package/dist/runtime/components/DropdownMenuContent.vue +14 -10
- package/dist/runtime/components/Form.vue +78 -49
- package/dist/runtime/components/FormField.vue +28 -15
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +15 -7
- package/dist/runtime/components/InputMenu.vue +133 -66
- package/dist/runtime/components/InputNumber.vue +197 -0
- package/dist/runtime/components/Kbd.vue +5 -6
- package/dist/runtime/components/Link.vue +24 -13
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +56 -34
- package/dist/runtime/components/NavigationMenu.vue +129 -112
- package/dist/runtime/components/OverlayProvider.vue +28 -0
- package/dist/runtime/components/Pagination.vue +18 -14
- package/dist/runtime/components/PinInput.vue +95 -0
- package/dist/runtime/components/Popover.vue +28 -14
- package/dist/runtime/components/Progress.vue +28 -12
- package/dist/runtime/components/RadioGroup.vue +9 -12
- package/dist/runtime/components/Select.vue +61 -35
- package/dist/runtime/components/SelectMenu.vue +201 -130
- package/dist/runtime/components/Separator.vue +6 -5
- package/dist/runtime/components/Skeleton.vue +4 -7
- package/dist/runtime/components/Slideover.vue +56 -33
- 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 +157 -32
- package/dist/runtime/components/Tabs.vue +12 -31
- package/dist/runtime/components/Textarea.vue +18 -9
- package/dist/runtime/components/Toast.vue +39 -25
- package/dist/runtime/components/Toaster.vue +31 -24
- package/dist/runtime/components/Tooltip.vue +9 -12
- package/dist/runtime/components/Tree.vue +196 -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 +1 -1
- package/dist/runtime/composables/defineShortcuts.js +2 -2
- package/dist/runtime/composables/useFormField.d.ts +11 -4
- package/dist/runtime/composables/useFormField.js +19 -9
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- 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.d.ts +2 -0
- package/dist/runtime/locale/ar.js +55 -0
- package/dist/runtime/locale/az.d.ts +2 -0
- package/dist/runtime/locale/az.js +54 -0
- package/dist/runtime/locale/bn.d.ts +2 -0
- package/dist/runtime/locale/bn.js +54 -0
- package/dist/runtime/locale/cs.d.ts +2 -0
- package/dist/runtime/locale/cs.js +54 -0
- package/dist/runtime/locale/da.d.ts +2 -0
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.d.ts +2 -0
- package/dist/runtime/locale/de.js +54 -0
- package/dist/runtime/locale/el.d.ts +2 -0
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +54 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +54 -0
- package/dist/runtime/locale/et.d.ts +2 -0
- package/dist/runtime/locale/et.js +54 -0
- package/dist/runtime/locale/fa_ir.d.ts +2 -0
- package/dist/runtime/locale/fa_ir.js +55 -0
- package/dist/runtime/locale/fi.d.ts +2 -0
- package/dist/runtime/locale/fi.js +54 -0
- package/dist/runtime/locale/fr.d.ts +2 -0
- package/dist/runtime/locale/fr.js +54 -0
- 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 +34 -0
- package/dist/runtime/locale/index.js +34 -0
- package/dist/runtime/locale/it.d.ts +2 -0
- package/dist/runtime/locale/it.js +54 -0
- 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.d.ts +2 -0
- package/dist/runtime/locale/pl.js +54 -0
- 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.d.ts +2 -0
- package/dist/runtime/locale/ru.js +54 -0
- 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_cn.js +54 -0
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/zh_tw.js +54 -0
- package/dist/runtime/plugins/colors.js +8 -5
- package/dist/runtime/types/form.d.ts +29 -15
- package/dist/runtime/types/form.js +2 -2
- package/dist/runtime/types/index.d.ts +8 -0
- package/dist/runtime/types/index.js +8 -0
- package/dist/runtime/types/locale.d.ts +56 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +7 -3
- package/dist/runtime/utils/form.d.ts +5 -9
- package/dist/runtime/utils/form.js +113 -50
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +15 -2
- package/dist/runtime/utils/link.d.ts +1 -1
- 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/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.BufKhDiD.mjs → ui.DSPu6Y8j.mjs} +1071 -409
- package/dist/shared/{ui.BU7wzH0D.cjs → ui.DfK2RX6G.cjs} +1074 -409
- package/dist/unplugin.cjs +62 -26
- package/dist/unplugin.d.cts +17 -3
- package/dist/unplugin.d.mts +17 -3
- package/dist/unplugin.d.ts +17 -3
- 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 +110 -67
- package/dist/chunks/component-meta.cjs +0 -73264
- package/dist/chunks/component-meta.mjs +0 -73262
- 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/Bj9hdafK.js +0 -1
- package/dist/client/devtools/_nuxt/DM3_wAgz.js +0 -62
- package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
- package/dist/client/devtools/_nuxt/builds/meta/e6b425f7-b919-4014-915b-0ea07c316790.json +0 -1
- package/dist/client/devtools/_nuxt/entry.DaJP-ZMB.css +0 -24
- package/dist/client/devtools/_nuxt/error-404.B0Nmv3fV.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.C8fgTxVz.css +0 -1
- package/dist/client/devtools/_nuxt/hKiujHsR.js +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/.nuxt/ui/checkbox.ts
CHANGED
|
@@ -1,22 +1,40 @@
|
|
|
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
|
+
|
|
1
19
|
export default {
|
|
2
20
|
"slots": {
|
|
3
21
|
"root": "relative flex items-start",
|
|
4
|
-
"base": "shrink-0 flex items-center justify-center rounded-
|
|
22
|
+
"base": "shrink-0 flex items-center justify-center rounded-(--ui-radius) text-(--ui-bg) ring ring-inset ring-(--ui-border-accented) focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
5
23
|
"container": "flex items-center",
|
|
6
24
|
"wrapper": "ms-2",
|
|
7
25
|
"icon": "shrink-0 size-full",
|
|
8
|
-
"label": "block font-medium text-
|
|
9
|
-
"description": "text-
|
|
26
|
+
"label": "block font-medium text-(--ui-text)",
|
|
27
|
+
"description": "text-(--ui-text-muted)"
|
|
10
28
|
},
|
|
11
29
|
"variants": {
|
|
12
30
|
"color": {
|
|
13
|
-
"primary": "focus-visible:outline-
|
|
14
|
-
"secondary": "focus-visible:outline-
|
|
15
|
-
"success": "focus-visible:outline-
|
|
16
|
-
"info": "focus-visible:outline-
|
|
17
|
-
"warning": "focus-visible:outline-
|
|
18
|
-
"error": "focus-visible:outline-
|
|
19
|
-
"neutral": "focus-visible:outline-
|
|
31
|
+
"primary": "focus-visible:outline-(--ui-primary)",
|
|
32
|
+
"secondary": "focus-visible:outline-(--ui-secondary)",
|
|
33
|
+
"success": "focus-visible:outline-(--ui-success)",
|
|
34
|
+
"info": "focus-visible:outline-(--ui-info)",
|
|
35
|
+
"warning": "focus-visible:outline-(--ui-warning)",
|
|
36
|
+
"error": "focus-visible:outline-(--ui-error)",
|
|
37
|
+
"neutral": "focus-visible:outline-(--ui-border-inverted)"
|
|
20
38
|
},
|
|
21
39
|
"size": {
|
|
22
40
|
"xs": {
|
|
@@ -47,7 +65,7 @@ export default {
|
|
|
47
65
|
},
|
|
48
66
|
"required": {
|
|
49
67
|
"true": {
|
|
50
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
68
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-(--ui-error)"
|
|
51
69
|
}
|
|
52
70
|
},
|
|
53
71
|
"disabled": {
|
|
@@ -63,43 +81,43 @@ export default {
|
|
|
63
81
|
},
|
|
64
82
|
"compoundVariants": [
|
|
65
83
|
{
|
|
66
|
-
"color": "primary" as
|
|
84
|
+
"color": "primary" as typeof color[number],
|
|
67
85
|
"checked": true,
|
|
68
|
-
"class": "ring-2 ring-
|
|
86
|
+
"class": "ring-2 ring-(--ui-primary) bg-(--ui-primary)"
|
|
69
87
|
},
|
|
70
88
|
{
|
|
71
|
-
"color": "secondary" as
|
|
89
|
+
"color": "secondary" as typeof color[number],
|
|
72
90
|
"checked": true,
|
|
73
|
-
"class": "ring-2 ring-
|
|
91
|
+
"class": "ring-2 ring-(--ui-secondary) bg-(--ui-secondary)"
|
|
74
92
|
},
|
|
75
93
|
{
|
|
76
|
-
"color": "success" as
|
|
94
|
+
"color": "success" as typeof color[number],
|
|
77
95
|
"checked": true,
|
|
78
|
-
"class": "ring-2 ring-
|
|
96
|
+
"class": "ring-2 ring-(--ui-success) bg-(--ui-success)"
|
|
79
97
|
},
|
|
80
98
|
{
|
|
81
|
-
"color": "info" as
|
|
99
|
+
"color": "info" as typeof color[number],
|
|
82
100
|
"checked": true,
|
|
83
|
-
"class": "ring-2 ring-
|
|
101
|
+
"class": "ring-2 ring-(--ui-info) bg-(--ui-info)"
|
|
84
102
|
},
|
|
85
103
|
{
|
|
86
|
-
"color": "warning" as
|
|
104
|
+
"color": "warning" as typeof color[number],
|
|
87
105
|
"checked": true,
|
|
88
|
-
"class": "ring-2 ring-
|
|
106
|
+
"class": "ring-2 ring-(--ui-warning) bg-(--ui-warning)"
|
|
89
107
|
},
|
|
90
108
|
{
|
|
91
|
-
"color": "error" as
|
|
109
|
+
"color": "error" as typeof color[number],
|
|
92
110
|
"checked": true,
|
|
93
|
-
"class": "ring-2 ring-
|
|
111
|
+
"class": "ring-2 ring-(--ui-error) bg-(--ui-error)"
|
|
94
112
|
},
|
|
95
113
|
{
|
|
96
|
-
"color": "neutral" as
|
|
114
|
+
"color": "neutral" as typeof color[number],
|
|
97
115
|
"checked": true,
|
|
98
|
-
"class": "ring-2 ring-
|
|
116
|
+
"class": "ring-2 ring-(--ui-border-inverted) bg-(--ui-bg-inverted)"
|
|
99
117
|
}
|
|
100
118
|
],
|
|
101
119
|
"defaultVariants": {
|
|
102
|
-
"size": "md" as
|
|
103
|
-
"color": "primary" as
|
|
120
|
+
"size": "md" as typeof size[number],
|
|
121
|
+
"color": "primary" as typeof color[number]
|
|
104
122
|
}
|
|
105
123
|
}
|
package/.nuxt/ui/chip.ts
CHANGED
|
@@ -1,17 +1,46 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"3xs",
|
|
13
|
+
"2xs",
|
|
14
|
+
"xs",
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg",
|
|
18
|
+
"xl",
|
|
19
|
+
"2xl",
|
|
20
|
+
"3xl"
|
|
21
|
+
] as const
|
|
22
|
+
|
|
23
|
+
const position = [
|
|
24
|
+
"top-right",
|
|
25
|
+
"bottom-right",
|
|
26
|
+
"top-left",
|
|
27
|
+
"bottom-left"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
1
30
|
export default {
|
|
2
31
|
"slots": {
|
|
3
32
|
"root": "relative inline-flex items-center justify-center shrink-0",
|
|
4
|
-
"base": "rounded-full ring ring-
|
|
33
|
+
"base": "rounded-full ring ring-(--ui-bg) flex items-center justify-center text-(--ui-bg) font-medium whitespace-nowrap"
|
|
5
34
|
},
|
|
6
35
|
"variants": {
|
|
7
36
|
"color": {
|
|
8
|
-
"primary": "bg-
|
|
9
|
-
"secondary": "bg-
|
|
10
|
-
"success": "bg-
|
|
11
|
-
"info": "bg-
|
|
12
|
-
"warning": "bg-
|
|
13
|
-
"error": "bg-
|
|
14
|
-
"neutral": "bg-
|
|
37
|
+
"primary": "bg-(--ui-primary)",
|
|
38
|
+
"secondary": "bg-(--ui-secondary)",
|
|
39
|
+
"success": "bg-(--ui-success)",
|
|
40
|
+
"info": "bg-(--ui-info)",
|
|
41
|
+
"warning": "bg-(--ui-warning)",
|
|
42
|
+
"error": "bg-(--ui-error)",
|
|
43
|
+
"neutral": "bg-(--ui-text-muted)"
|
|
15
44
|
},
|
|
16
45
|
"size": {
|
|
17
46
|
"3xs": "h-[4px] min-w-[4px] text-[4px]",
|
|
@@ -39,29 +68,29 @@ export default {
|
|
|
39
68
|
},
|
|
40
69
|
"compoundVariants": [
|
|
41
70
|
{
|
|
42
|
-
"position": "top-right" as
|
|
71
|
+
"position": "top-right" as typeof position[number],
|
|
43
72
|
"inset": false,
|
|
44
73
|
"class": "-translate-y-1/2 translate-x-1/2 transform"
|
|
45
74
|
},
|
|
46
75
|
{
|
|
47
|
-
"position": "bottom-right" as
|
|
76
|
+
"position": "bottom-right" as typeof position[number],
|
|
48
77
|
"inset": false,
|
|
49
78
|
"class": "translate-y-1/2 translate-x-1/2 transform"
|
|
50
79
|
},
|
|
51
80
|
{
|
|
52
|
-
"position": "top-left" as
|
|
81
|
+
"position": "top-left" as typeof position[number],
|
|
53
82
|
"inset": false,
|
|
54
83
|
"class": "-translate-y-1/2 -translate-x-1/2 transform"
|
|
55
84
|
},
|
|
56
85
|
{
|
|
57
|
-
"position": "bottom-left" as
|
|
86
|
+
"position": "bottom-left" as typeof position[number],
|
|
58
87
|
"inset": false,
|
|
59
88
|
"class": "translate-y-1/2 -translate-x-1/2 transform"
|
|
60
89
|
}
|
|
61
90
|
],
|
|
62
91
|
"defaultVariants": {
|
|
63
|
-
"size": "md" as
|
|
64
|
-
"color": "primary" as
|
|
65
|
-
"position": "top-right" as
|
|
92
|
+
"size": "md" as typeof size[number],
|
|
93
|
+
"color": "primary" as typeof color[number],
|
|
94
|
+
"position": "top-right" as typeof position[number]
|
|
66
95
|
}
|
|
67
96
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
"slots": {
|
|
11
|
+
"root": "data-[disabled]:opacity-75",
|
|
12
|
+
"picker": "flex gap-4",
|
|
13
|
+
"selector": "rounded-[calc(var(--ui-radius)*1.5)]",
|
|
14
|
+
"selectorBackground": "w-full h-full relative rounded-[calc(var(--ui-radius)*1.2)]",
|
|
15
|
+
"selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-(--color-white) rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
16
|
+
"track": "w-[8px] relative rounded-[calc(var(--ui-radius)*1.5)]",
|
|
17
|
+
"trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-(--color-white) cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
18
|
+
},
|
|
19
|
+
"variants": {
|
|
20
|
+
"size": {
|
|
21
|
+
"xs": {
|
|
22
|
+
"selector": "w-38 h-38",
|
|
23
|
+
"track": "h-38"
|
|
24
|
+
},
|
|
25
|
+
"sm": {
|
|
26
|
+
"selector": "w-40 h-40",
|
|
27
|
+
"track": "h-40"
|
|
28
|
+
},
|
|
29
|
+
"md": {
|
|
30
|
+
"selector": "w-42 h-42",
|
|
31
|
+
"track": "h-42"
|
|
32
|
+
},
|
|
33
|
+
"lg": {
|
|
34
|
+
"selector": "w-44 h-44",
|
|
35
|
+
"track": "h-44"
|
|
36
|
+
},
|
|
37
|
+
"xl": {
|
|
38
|
+
"selector": "w-46 h-46",
|
|
39
|
+
"track": "h-46"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"compoundVariants": [],
|
|
44
|
+
"defaultVariants": {
|
|
45
|
+
"size": "md" as typeof size[number]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,36 +1,46 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-
|
|
3
|
+
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-(--ui-border)",
|
|
4
4
|
"input": "[&>input]:h-12",
|
|
5
5
|
"close": "",
|
|
6
|
-
"content": "relative overflow-hidden",
|
|
7
|
-
"viewport": "divide-y divide-
|
|
6
|
+
"content": "relative overflow-hidden flex flex-col",
|
|
7
|
+
"viewport": "relative divide-y divide-(--ui-border) scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
|
|
8
8
|
"group": "p-1 isolate",
|
|
9
|
-
"empty": "py-6 text-center text-sm text-
|
|
10
|
-
"label": "px-2 py-1.5 text-xs font-semibold text-
|
|
11
|
-
"item": [
|
|
12
|
-
|
|
13
|
-
"transition-colors before:transition-colors"
|
|
14
|
-
],
|
|
15
|
-
"itemLeadingIcon": [
|
|
16
|
-
"shrink-0 size-5 text-[var(--ui-text-dimmed)] group-data-highlighted:text-[var(--ui-text)]",
|
|
17
|
-
"transition-colors"
|
|
18
|
-
],
|
|
9
|
+
"empty": "py-6 text-center text-sm text-(--ui-text-muted)",
|
|
10
|
+
"label": "px-2 py-1.5 text-xs font-semibold text-(--ui-text-highlighted)",
|
|
11
|
+
"item": "group relative w-full flex items-center gap-2 px-2 py-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
12
|
+
"itemLeadingIcon": "shrink-0 size-5",
|
|
19
13
|
"itemLeadingAvatar": "shrink-0",
|
|
20
14
|
"itemLeadingAvatarSize": "2xs",
|
|
21
15
|
"itemLeadingChip": "shrink-0 size-5",
|
|
22
16
|
"itemLeadingChipSize": "md",
|
|
23
17
|
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
24
18
|
"itemTrailingIcon": "shrink-0 size-5",
|
|
25
|
-
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-
|
|
19
|
+
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-(--ui-text-dimmed) hidden group-data-highlighted:inline-flex",
|
|
26
20
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
|
|
27
21
|
"itemTrailingKbdsSize": "md",
|
|
28
|
-
"itemLabel": "truncate space-x-1 rtl:space-x-reverse",
|
|
29
|
-
"itemLabelBase": "text-
|
|
30
|
-
"itemLabelPrefix": "text-
|
|
31
|
-
"itemLabelSuffix": "text-
|
|
22
|
+
"itemLabel": "truncate space-x-1 rtl:space-x-reverse text-(--ui-text-dimmed)",
|
|
23
|
+
"itemLabelBase": "text-(--ui-text-highlighted) [&>mark]:text-(--ui-bg) [&>mark]:bg-(--ui-primary)",
|
|
24
|
+
"itemLabelPrefix": "text-(--ui-text)",
|
|
25
|
+
"itemLabelSuffix": "text-(--ui-text-dimmed) [&>mark]:text-(--ui-bg) [&>mark]:bg-(--ui-primary)"
|
|
32
26
|
},
|
|
33
27
|
"variants": {
|
|
28
|
+
"active": {
|
|
29
|
+
"true": {
|
|
30
|
+
"item": "text-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
|
|
31
|
+
"itemLeadingIcon": "text-(--ui-text)"
|
|
32
|
+
},
|
|
33
|
+
"false": {
|
|
34
|
+
"item": [
|
|
35
|
+
"text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50",
|
|
36
|
+
"transition-colors before:transition-colors"
|
|
37
|
+
],
|
|
38
|
+
"itemLeadingIcon": [
|
|
39
|
+
"text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text)",
|
|
40
|
+
"transition-colors"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
34
44
|
"loading": {
|
|
35
45
|
"true": {
|
|
36
46
|
"itemLeadingIcon": "animate-spin"
|
package/.nuxt/ui/container.ts
CHANGED
package/.nuxt/ui/context-menu.ts
CHANGED
|
@@ -1,19 +1,37 @@
|
|
|
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
|
+
|
|
1
19
|
export default {
|
|
2
20
|
"slots": {
|
|
3
|
-
"content": "min-w-32 bg-
|
|
21
|
+
"content": "min-w-32 bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) divide-y divide-(--ui-border) overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
4
22
|
"group": "p-1 isolate",
|
|
5
|
-
"label": "w-full flex items-center font-semibold text-
|
|
6
|
-
"separator": "-mx-1 my-1 h-px bg-
|
|
23
|
+
"label": "w-full flex items-center font-semibold text-(--ui-text-highlighted)",
|
|
24
|
+
"separator": "-mx-1 my-1 h-px bg-(--ui-border)",
|
|
7
25
|
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
8
26
|
"itemLeadingIcon": "shrink-0",
|
|
9
27
|
"itemLeadingAvatar": "shrink-0",
|
|
10
28
|
"itemLeadingAvatarSize": "",
|
|
11
|
-
"itemTrailing": "ms-auto inline-flex",
|
|
29
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
12
30
|
"itemTrailingIcon": "shrink-0",
|
|
13
31
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
14
32
|
"itemTrailingKbdsSize": "",
|
|
15
33
|
"itemLabel": "truncate",
|
|
16
|
-
"itemLabelExternalIcon": "inline-block size-3 align-top text-
|
|
34
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)"
|
|
17
35
|
},
|
|
18
36
|
"variants": {
|
|
19
37
|
"color": {
|
|
@@ -27,16 +45,16 @@ export default {
|
|
|
27
45
|
},
|
|
28
46
|
"active": {
|
|
29
47
|
"true": {
|
|
30
|
-
"item": "text-
|
|
31
|
-
"itemLeadingIcon": "text-
|
|
48
|
+
"item": "text-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
|
|
49
|
+
"itemLeadingIcon": "text-(--ui-text)"
|
|
32
50
|
},
|
|
33
51
|
"false": {
|
|
34
52
|
"item": [
|
|
35
|
-
"text-
|
|
53
|
+
"text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-[state=open]:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50 data-[state=open]:before:bg-(--ui-bg-elevated)/50",
|
|
36
54
|
"transition-colors before:transition-colors"
|
|
37
55
|
],
|
|
38
56
|
"itemLeadingIcon": [
|
|
39
|
-
"text-
|
|
57
|
+
"text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text) group-data-[state=open]:text-(--ui-text)",
|
|
40
58
|
"transition-colors"
|
|
41
59
|
]
|
|
42
60
|
}
|
|
@@ -96,103 +114,103 @@ export default {
|
|
|
96
114
|
},
|
|
97
115
|
"compoundVariants": [
|
|
98
116
|
{
|
|
99
|
-
"color": "primary" as
|
|
117
|
+
"color": "primary" as typeof color[number],
|
|
100
118
|
"active": false,
|
|
101
119
|
"class": {
|
|
102
|
-
"item": "text-
|
|
103
|
-
"itemLeadingIcon": "text-
|
|
120
|
+
"item": "text-(--ui-primary) data-highlighted:text-(--ui-primary) data-highlighted:before:bg-(--ui-primary)/10 data-[state=open]:before:bg-(--ui-primary)/10",
|
|
121
|
+
"itemLeadingIcon": "text-(--ui-primary)/75 group-data-highlighted:text-(--ui-primary) group-data-[state=open]:text-(--ui-primary)"
|
|
104
122
|
}
|
|
105
123
|
},
|
|
106
124
|
{
|
|
107
|
-
"color": "secondary" as
|
|
125
|
+
"color": "secondary" as typeof color[number],
|
|
108
126
|
"active": false,
|
|
109
127
|
"class": {
|
|
110
|
-
"item": "text-
|
|
111
|
-
"itemLeadingIcon": "text-
|
|
128
|
+
"item": "text-(--ui-secondary) data-highlighted:text-(--ui-secondary) data-highlighted:before:bg-(--ui-secondary)/10 data-[state=open]:before:bg-(--ui-secondary)/10",
|
|
129
|
+
"itemLeadingIcon": "text-(--ui-secondary)/75 group-data-highlighted:text-(--ui-secondary) group-data-[state=open]:text-(--ui-secondary)"
|
|
112
130
|
}
|
|
113
131
|
},
|
|
114
132
|
{
|
|
115
|
-
"color": "success" as
|
|
133
|
+
"color": "success" as typeof color[number],
|
|
116
134
|
"active": false,
|
|
117
135
|
"class": {
|
|
118
|
-
"item": "text-
|
|
119
|
-
"itemLeadingIcon": "text-
|
|
136
|
+
"item": "text-(--ui-success) data-highlighted:text-(--ui-success) data-highlighted:before:bg-(--ui-success)/10 data-[state=open]:before:bg-(--ui-success)/10",
|
|
137
|
+
"itemLeadingIcon": "text-(--ui-success)/75 group-data-highlighted:text-(--ui-success) group-data-[state=open]:text-(--ui-success)"
|
|
120
138
|
}
|
|
121
139
|
},
|
|
122
140
|
{
|
|
123
|
-
"color": "info" as
|
|
141
|
+
"color": "info" as typeof color[number],
|
|
124
142
|
"active": false,
|
|
125
143
|
"class": {
|
|
126
|
-
"item": "text-
|
|
127
|
-
"itemLeadingIcon": "text-
|
|
144
|
+
"item": "text-(--ui-info) data-highlighted:text-(--ui-info) data-highlighted:before:bg-(--ui-info)/10 data-[state=open]:before:bg-(--ui-info)/10",
|
|
145
|
+
"itemLeadingIcon": "text-(--ui-info)/75 group-data-highlighted:text-(--ui-info) group-data-[state=open]:text-(--ui-info)"
|
|
128
146
|
}
|
|
129
147
|
},
|
|
130
148
|
{
|
|
131
|
-
"color": "warning" as
|
|
149
|
+
"color": "warning" as typeof color[number],
|
|
132
150
|
"active": false,
|
|
133
151
|
"class": {
|
|
134
|
-
"item": "text-
|
|
135
|
-
"itemLeadingIcon": "text-
|
|
152
|
+
"item": "text-(--ui-warning) data-highlighted:text-(--ui-warning) data-highlighted:before:bg-(--ui-warning)/10 data-[state=open]:before:bg-(--ui-warning)/10",
|
|
153
|
+
"itemLeadingIcon": "text-(--ui-warning)/75 group-data-highlighted:text-(--ui-warning) group-data-[state=open]:text-(--ui-warning)"
|
|
136
154
|
}
|
|
137
155
|
},
|
|
138
156
|
{
|
|
139
|
-
"color": "error" as
|
|
157
|
+
"color": "error" as typeof color[number],
|
|
140
158
|
"active": false,
|
|
141
159
|
"class": {
|
|
142
|
-
"item": "text-
|
|
143
|
-
"itemLeadingIcon": "text-
|
|
160
|
+
"item": "text-(--ui-error) data-highlighted:text-(--ui-error) data-highlighted:before:bg-(--ui-error)/10 data-[state=open]:before:bg-(--ui-error)/10",
|
|
161
|
+
"itemLeadingIcon": "text-(--ui-error)/75 group-data-highlighted:text-(--ui-error) group-data-[state=open]:text-(--ui-error)"
|
|
144
162
|
}
|
|
145
163
|
},
|
|
146
164
|
{
|
|
147
|
-
"color": "primary" as
|
|
165
|
+
"color": "primary" as typeof color[number],
|
|
148
166
|
"active": true,
|
|
149
167
|
"class": {
|
|
150
|
-
"item": "text-
|
|
151
|
-
"itemLeadingIcon": "text-
|
|
168
|
+
"item": "text-(--ui-primary) before:bg-(--ui-primary)/10",
|
|
169
|
+
"itemLeadingIcon": "text-(--ui-primary)"
|
|
152
170
|
}
|
|
153
171
|
},
|
|
154
172
|
{
|
|
155
|
-
"color": "secondary" as
|
|
173
|
+
"color": "secondary" as typeof color[number],
|
|
156
174
|
"active": true,
|
|
157
175
|
"class": {
|
|
158
|
-
"item": "text-
|
|
159
|
-
"itemLeadingIcon": "text-
|
|
176
|
+
"item": "text-(--ui-secondary) before:bg-(--ui-secondary)/10",
|
|
177
|
+
"itemLeadingIcon": "text-(--ui-secondary)"
|
|
160
178
|
}
|
|
161
179
|
},
|
|
162
180
|
{
|
|
163
|
-
"color": "success" as
|
|
181
|
+
"color": "success" as typeof color[number],
|
|
164
182
|
"active": true,
|
|
165
183
|
"class": {
|
|
166
|
-
"item": "text-
|
|
167
|
-
"itemLeadingIcon": "text-
|
|
184
|
+
"item": "text-(--ui-success) before:bg-(--ui-success)/10",
|
|
185
|
+
"itemLeadingIcon": "text-(--ui-success)"
|
|
168
186
|
}
|
|
169
187
|
},
|
|
170
188
|
{
|
|
171
|
-
"color": "info" as
|
|
189
|
+
"color": "info" as typeof color[number],
|
|
172
190
|
"active": true,
|
|
173
191
|
"class": {
|
|
174
|
-
"item": "text-
|
|
175
|
-
"itemLeadingIcon": "text-
|
|
192
|
+
"item": "text-(--ui-info) before:bg-(--ui-info)/10",
|
|
193
|
+
"itemLeadingIcon": "text-(--ui-info)"
|
|
176
194
|
}
|
|
177
195
|
},
|
|
178
196
|
{
|
|
179
|
-
"color": "warning" as
|
|
197
|
+
"color": "warning" as typeof color[number],
|
|
180
198
|
"active": true,
|
|
181
199
|
"class": {
|
|
182
|
-
"item": "text-
|
|
183
|
-
"itemLeadingIcon": "text-
|
|
200
|
+
"item": "text-(--ui-warning) before:bg-(--ui-warning)/10",
|
|
201
|
+
"itemLeadingIcon": "text-(--ui-warning)"
|
|
184
202
|
}
|
|
185
203
|
},
|
|
186
204
|
{
|
|
187
|
-
"color": "error" as
|
|
205
|
+
"color": "error" as typeof color[number],
|
|
188
206
|
"active": true,
|
|
189
207
|
"class": {
|
|
190
|
-
"item": "text-
|
|
191
|
-
"itemLeadingIcon": "text-
|
|
208
|
+
"item": "text-(--ui-error) before:bg-(--ui-error)/10",
|
|
209
|
+
"itemLeadingIcon": "text-(--ui-error)"
|
|
192
210
|
}
|
|
193
211
|
}
|
|
194
212
|
],
|
|
195
213
|
"defaultVariants": {
|
|
196
|
-
"size": "md" as
|
|
214
|
+
"size": "md" as typeof size[number]
|
|
197
215
|
}
|
|
198
216
|
}
|