@nuxt/ui 3.0.0-alpha.9 → 3.0.0-beta.2
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 +29 -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 +71 -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/badge.ts
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
|
+
const buttonGroup = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const color = [
|
|
7
|
+
"primary",
|
|
8
|
+
"secondary",
|
|
9
|
+
"success",
|
|
10
|
+
"info",
|
|
11
|
+
"warning",
|
|
12
|
+
"error",
|
|
13
|
+
"neutral"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const variant = [
|
|
17
|
+
"solid",
|
|
18
|
+
"outline",
|
|
19
|
+
"soft",
|
|
20
|
+
"subtle"
|
|
21
|
+
] as const
|
|
22
|
+
|
|
23
|
+
const size = [
|
|
24
|
+
"xs",
|
|
25
|
+
"sm",
|
|
26
|
+
"md",
|
|
27
|
+
"lg",
|
|
28
|
+
"xl"
|
|
29
|
+
] as const
|
|
30
|
+
|
|
1
31
|
export default {
|
|
2
32
|
"slots": {
|
|
3
|
-
"base": "
|
|
33
|
+
"base": "font-medium inline-flex items-center",
|
|
4
34
|
"label": "truncate",
|
|
5
35
|
"leadingIcon": "shrink-0",
|
|
6
36
|
"leadingAvatar": "shrink-0",
|
|
@@ -8,6 +38,10 @@ export default {
|
|
|
8
38
|
"trailingIcon": "shrink-0"
|
|
9
39
|
},
|
|
10
40
|
"variants": {
|
|
41
|
+
"buttonGroup": {
|
|
42
|
+
"horizontal": "not-only:first:rounded-e-none not-only:last:rounded-s-none not-last:not-first:rounded-none",
|
|
43
|
+
"vertical": "not-only:first:rounded-b-none not-only:last:rounded-t-none not-last:not-first:rounded-none"
|
|
44
|
+
},
|
|
11
45
|
"color": {
|
|
12
46
|
"primary": "",
|
|
13
47
|
"secondary": "",
|
|
@@ -24,171 +58,183 @@ export default {
|
|
|
24
58
|
"subtle": ""
|
|
25
59
|
},
|
|
26
60
|
"size": {
|
|
61
|
+
"xs": {
|
|
62
|
+
"base": "text-[8px]/3 px-1 py-0.5 gap-1 rounded-[calc(var(--ui-radius))]",
|
|
63
|
+
"leadingIcon": "size-3",
|
|
64
|
+
"leadingAvatarSize": "3xs",
|
|
65
|
+
"trailingIcon": "size-3"
|
|
66
|
+
},
|
|
27
67
|
"sm": {
|
|
28
|
-
"base": "text-
|
|
29
|
-
"leadingIcon": "size-
|
|
68
|
+
"base": "text-[10px]/3 px-1.5 py-1 gap-1 rounded-[calc(var(--ui-radius))]",
|
|
69
|
+
"leadingIcon": "size-3",
|
|
30
70
|
"leadingAvatarSize": "3xs",
|
|
31
|
-
"trailingIcon": "size-
|
|
71
|
+
"trailingIcon": "size-3"
|
|
32
72
|
},
|
|
33
73
|
"md": {
|
|
34
|
-
"base": "text-xs px-2 py-1 gap-1",
|
|
74
|
+
"base": "text-xs px-2 py-1 gap-1 rounded-[calc(var(--ui-radius)*1.5)]",
|
|
35
75
|
"leadingIcon": "size-4",
|
|
36
76
|
"leadingAvatarSize": "3xs",
|
|
37
77
|
"trailingIcon": "size-4"
|
|
38
78
|
},
|
|
39
79
|
"lg": {
|
|
40
|
-
"base": "text-sm px-2 py-1 gap-1.5",
|
|
80
|
+
"base": "text-sm px-2 py-1 gap-1.5 rounded-[calc(var(--ui-radius)*1.5)]",
|
|
41
81
|
"leadingIcon": "size-5",
|
|
42
82
|
"leadingAvatarSize": "2xs",
|
|
43
83
|
"trailingIcon": "size-5"
|
|
84
|
+
},
|
|
85
|
+
"xl": {
|
|
86
|
+
"base": "text-base px-2.5 py-1 gap-1.5 rounded-[calc(var(--ui-radius)*1.5)]",
|
|
87
|
+
"leadingIcon": "size-6",
|
|
88
|
+
"leadingAvatarSize": "2xs",
|
|
89
|
+
"trailingIcon": "size-6"
|
|
44
90
|
}
|
|
45
91
|
}
|
|
46
92
|
},
|
|
47
93
|
"compoundVariants": [
|
|
48
94
|
{
|
|
49
|
-
"color": "primary" as
|
|
50
|
-
"variant": "solid" as
|
|
51
|
-
"class": "bg-
|
|
95
|
+
"color": "primary" as typeof color[number],
|
|
96
|
+
"variant": "solid" as typeof variant[number],
|
|
97
|
+
"class": "bg-(--ui-primary) text-(--ui-bg)"
|
|
52
98
|
},
|
|
53
99
|
{
|
|
54
|
-
"color": "secondary" as
|
|
55
|
-
"variant": "solid" as
|
|
56
|
-
"class": "bg-
|
|
100
|
+
"color": "secondary" as typeof color[number],
|
|
101
|
+
"variant": "solid" as typeof variant[number],
|
|
102
|
+
"class": "bg-(--ui-secondary) text-(--ui-bg)"
|
|
57
103
|
},
|
|
58
104
|
{
|
|
59
|
-
"color": "success" as
|
|
60
|
-
"variant": "solid" as
|
|
61
|
-
"class": "bg-
|
|
105
|
+
"color": "success" as typeof color[number],
|
|
106
|
+
"variant": "solid" as typeof variant[number],
|
|
107
|
+
"class": "bg-(--ui-success) text-(--ui-bg)"
|
|
62
108
|
},
|
|
63
109
|
{
|
|
64
|
-
"color": "info" as
|
|
65
|
-
"variant": "solid" as
|
|
66
|
-
"class": "bg-
|
|
110
|
+
"color": "info" as typeof color[number],
|
|
111
|
+
"variant": "solid" as typeof variant[number],
|
|
112
|
+
"class": "bg-(--ui-info) text-(--ui-bg)"
|
|
67
113
|
},
|
|
68
114
|
{
|
|
69
|
-
"color": "warning" as
|
|
70
|
-
"variant": "solid" as
|
|
71
|
-
"class": "bg-
|
|
115
|
+
"color": "warning" as typeof color[number],
|
|
116
|
+
"variant": "solid" as typeof variant[number],
|
|
117
|
+
"class": "bg-(--ui-warning) text-(--ui-bg)"
|
|
72
118
|
},
|
|
73
119
|
{
|
|
74
|
-
"color": "error" as
|
|
75
|
-
"variant": "solid" as
|
|
76
|
-
"class": "bg-
|
|
120
|
+
"color": "error" as typeof color[number],
|
|
121
|
+
"variant": "solid" as typeof variant[number],
|
|
122
|
+
"class": "bg-(--ui-error) text-(--ui-bg)"
|
|
77
123
|
},
|
|
78
124
|
{
|
|
79
|
-
"color": "primary" as
|
|
80
|
-
"variant": "outline" as
|
|
81
|
-
"class": "text-
|
|
125
|
+
"color": "primary" as typeof color[number],
|
|
126
|
+
"variant": "outline" as typeof variant[number],
|
|
127
|
+
"class": "text-(--ui-primary) ring ring-inset ring-(--ui-primary)/50"
|
|
82
128
|
},
|
|
83
129
|
{
|
|
84
|
-
"color": "secondary" as
|
|
85
|
-
"variant": "outline" as
|
|
86
|
-
"class": "text-
|
|
130
|
+
"color": "secondary" as typeof color[number],
|
|
131
|
+
"variant": "outline" as typeof variant[number],
|
|
132
|
+
"class": "text-(--ui-secondary) ring ring-inset ring-(--ui-secondary)/50"
|
|
87
133
|
},
|
|
88
134
|
{
|
|
89
|
-
"color": "success" as
|
|
90
|
-
"variant": "outline" as
|
|
91
|
-
"class": "text-
|
|
135
|
+
"color": "success" as typeof color[number],
|
|
136
|
+
"variant": "outline" as typeof variant[number],
|
|
137
|
+
"class": "text-(--ui-success) ring ring-inset ring-(--ui-success)/50"
|
|
92
138
|
},
|
|
93
139
|
{
|
|
94
|
-
"color": "info" as
|
|
95
|
-
"variant": "outline" as
|
|
96
|
-
"class": "text-
|
|
140
|
+
"color": "info" as typeof color[number],
|
|
141
|
+
"variant": "outline" as typeof variant[number],
|
|
142
|
+
"class": "text-(--ui-info) ring ring-inset ring-(--ui-info)/50"
|
|
97
143
|
},
|
|
98
144
|
{
|
|
99
|
-
"color": "warning" as
|
|
100
|
-
"variant": "outline" as
|
|
101
|
-
"class": "text-
|
|
145
|
+
"color": "warning" as typeof color[number],
|
|
146
|
+
"variant": "outline" as typeof variant[number],
|
|
147
|
+
"class": "text-(--ui-warning) ring ring-inset ring-(--ui-warning)/50"
|
|
102
148
|
},
|
|
103
149
|
{
|
|
104
|
-
"color": "error" as
|
|
105
|
-
"variant": "outline" as
|
|
106
|
-
"class": "text-
|
|
150
|
+
"color": "error" as typeof color[number],
|
|
151
|
+
"variant": "outline" as typeof variant[number],
|
|
152
|
+
"class": "text-(--ui-error) ring ring-inset ring-(--ui-error)/50"
|
|
107
153
|
},
|
|
108
154
|
{
|
|
109
|
-
"color": "primary" as
|
|
110
|
-
"variant": "soft" as
|
|
111
|
-
"class": "bg-
|
|
155
|
+
"color": "primary" as typeof color[number],
|
|
156
|
+
"variant": "soft" as typeof variant[number],
|
|
157
|
+
"class": "bg-(--ui-primary)/10 text-(--ui-primary)"
|
|
112
158
|
},
|
|
113
159
|
{
|
|
114
|
-
"color": "secondary" as
|
|
115
|
-
"variant": "soft" as
|
|
116
|
-
"class": "bg-
|
|
160
|
+
"color": "secondary" as typeof color[number],
|
|
161
|
+
"variant": "soft" as typeof variant[number],
|
|
162
|
+
"class": "bg-(--ui-secondary)/10 text-(--ui-secondary)"
|
|
117
163
|
},
|
|
118
164
|
{
|
|
119
|
-
"color": "success" as
|
|
120
|
-
"variant": "soft" as
|
|
121
|
-
"class": "bg-
|
|
165
|
+
"color": "success" as typeof color[number],
|
|
166
|
+
"variant": "soft" as typeof variant[number],
|
|
167
|
+
"class": "bg-(--ui-success)/10 text-(--ui-success)"
|
|
122
168
|
},
|
|
123
169
|
{
|
|
124
|
-
"color": "info" as
|
|
125
|
-
"variant": "soft" as
|
|
126
|
-
"class": "bg-
|
|
170
|
+
"color": "info" as typeof color[number],
|
|
171
|
+
"variant": "soft" as typeof variant[number],
|
|
172
|
+
"class": "bg-(--ui-info)/10 text-(--ui-info)"
|
|
127
173
|
},
|
|
128
174
|
{
|
|
129
|
-
"color": "warning" as
|
|
130
|
-
"variant": "soft" as
|
|
131
|
-
"class": "bg-
|
|
175
|
+
"color": "warning" as typeof color[number],
|
|
176
|
+
"variant": "soft" as typeof variant[number],
|
|
177
|
+
"class": "bg-(--ui-warning)/10 text-(--ui-warning)"
|
|
132
178
|
},
|
|
133
179
|
{
|
|
134
|
-
"color": "error" as
|
|
135
|
-
"variant": "soft" as
|
|
136
|
-
"class": "bg-
|
|
180
|
+
"color": "error" as typeof color[number],
|
|
181
|
+
"variant": "soft" as typeof variant[number],
|
|
182
|
+
"class": "bg-(--ui-error)/10 text-(--ui-error)"
|
|
137
183
|
},
|
|
138
184
|
{
|
|
139
|
-
"color": "primary" as
|
|
140
|
-
"variant": "subtle" as
|
|
141
|
-
"class": "bg-
|
|
185
|
+
"color": "primary" as typeof color[number],
|
|
186
|
+
"variant": "subtle" as typeof variant[number],
|
|
187
|
+
"class": "bg-(--ui-primary)/10 text-(--ui-primary) ring ring-inset ring-(--ui-primary)/25"
|
|
142
188
|
},
|
|
143
189
|
{
|
|
144
|
-
"color": "secondary" as
|
|
145
|
-
"variant": "subtle" as
|
|
146
|
-
"class": "bg-
|
|
190
|
+
"color": "secondary" as typeof color[number],
|
|
191
|
+
"variant": "subtle" as typeof variant[number],
|
|
192
|
+
"class": "bg-(--ui-secondary)/10 text-(--ui-secondary) ring ring-inset ring-(--ui-secondary)/25"
|
|
147
193
|
},
|
|
148
194
|
{
|
|
149
|
-
"color": "success" as
|
|
150
|
-
"variant": "subtle" as
|
|
151
|
-
"class": "bg-
|
|
195
|
+
"color": "success" as typeof color[number],
|
|
196
|
+
"variant": "subtle" as typeof variant[number],
|
|
197
|
+
"class": "bg-(--ui-success)/10 text-(--ui-success) ring ring-inset ring-(--ui-success)/25"
|
|
152
198
|
},
|
|
153
199
|
{
|
|
154
|
-
"color": "info" as
|
|
155
|
-
"variant": "subtle" as
|
|
156
|
-
"class": "bg-
|
|
200
|
+
"color": "info" as typeof color[number],
|
|
201
|
+
"variant": "subtle" as typeof variant[number],
|
|
202
|
+
"class": "bg-(--ui-info)/10 text-(--ui-info) ring ring-inset ring-(--ui-info)/25"
|
|
157
203
|
},
|
|
158
204
|
{
|
|
159
|
-
"color": "warning" as
|
|
160
|
-
"variant": "subtle" as
|
|
161
|
-
"class": "bg-
|
|
205
|
+
"color": "warning" as typeof color[number],
|
|
206
|
+
"variant": "subtle" as typeof variant[number],
|
|
207
|
+
"class": "bg-(--ui-warning)/10 text-(--ui-warning) ring ring-inset ring-(--ui-warning)/25"
|
|
162
208
|
},
|
|
163
209
|
{
|
|
164
|
-
"color": "error" as
|
|
165
|
-
"variant": "subtle" as
|
|
166
|
-
"class": "bg-
|
|
210
|
+
"color": "error" as typeof color[number],
|
|
211
|
+
"variant": "subtle" as typeof variant[number],
|
|
212
|
+
"class": "bg-(--ui-error)/10 text-(--ui-error) ring ring-inset ring-(--ui-error)/25"
|
|
167
213
|
},
|
|
168
214
|
{
|
|
169
|
-
"color": "neutral" as
|
|
170
|
-
"variant": "solid" as
|
|
171
|
-
"class": "text-
|
|
215
|
+
"color": "neutral" as typeof color[number],
|
|
216
|
+
"variant": "solid" as typeof variant[number],
|
|
217
|
+
"class": "text-(--ui-bg) bg-(--ui-bg-inverted)"
|
|
172
218
|
},
|
|
173
219
|
{
|
|
174
|
-
"color": "neutral" as
|
|
175
|
-
"variant": "outline" as
|
|
176
|
-
"class": "ring ring-inset ring-
|
|
220
|
+
"color": "neutral" as typeof color[number],
|
|
221
|
+
"variant": "outline" as typeof variant[number],
|
|
222
|
+
"class": "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg)"
|
|
177
223
|
},
|
|
178
224
|
{
|
|
179
|
-
"color": "neutral" as
|
|
180
|
-
"variant": "soft" as
|
|
181
|
-
"class": "text-
|
|
225
|
+
"color": "neutral" as typeof color[number],
|
|
226
|
+
"variant": "soft" as typeof variant[number],
|
|
227
|
+
"class": "text-(--ui-text) bg-(--ui-bg-elevated)"
|
|
182
228
|
},
|
|
183
229
|
{
|
|
184
|
-
"color": "neutral" as
|
|
185
|
-
"variant": "subtle" as
|
|
186
|
-
"class": "ring ring-inset ring-
|
|
230
|
+
"color": "neutral" as typeof color[number],
|
|
231
|
+
"variant": "subtle" as typeof variant[number],
|
|
232
|
+
"class": "ring ring-inset ring-(--ui-border-accented) text-(--ui-text) bg-(--ui-bg-elevated)"
|
|
187
233
|
}
|
|
188
234
|
],
|
|
189
235
|
"defaultVariants": {
|
|
190
|
-
"color": "primary" as
|
|
191
|
-
"variant": "solid" as
|
|
192
|
-
"size": "md" as
|
|
236
|
+
"color": "primary" as typeof color[number],
|
|
237
|
+
"variant": "solid" as typeof variant[number],
|
|
238
|
+
"size": "md" as typeof size[number]
|
|
193
239
|
}
|
|
194
240
|
}
|
package/.nuxt/ui/breadcrumb.ts
CHANGED
|
@@ -3,21 +3,21 @@ export default {
|
|
|
3
3
|
"root": "relative min-w-0",
|
|
4
4
|
"list": "flex items-center gap-1.5",
|
|
5
5
|
"item": "flex min-w-0",
|
|
6
|
-
"link": "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-
|
|
6
|
+
"link": "group relative flex items-center gap-1.5 text-sm min-w-0 focus-visible:outline-(--ui-primary)",
|
|
7
7
|
"linkLeadingIcon": "shrink-0 size-5",
|
|
8
8
|
"linkLeadingAvatar": "shrink-0",
|
|
9
9
|
"linkLeadingAvatarSize": "2xs",
|
|
10
10
|
"linkLabel": "truncate",
|
|
11
11
|
"separator": "flex",
|
|
12
|
-
"separatorIcon": "shrink-0 size-5 text-
|
|
12
|
+
"separatorIcon": "shrink-0 size-5 text-(--ui-text-muted)"
|
|
13
13
|
},
|
|
14
14
|
"variants": {
|
|
15
15
|
"active": {
|
|
16
16
|
"true": {
|
|
17
|
-
"link": "text-
|
|
17
|
+
"link": "text-(--ui-primary) font-semibold"
|
|
18
18
|
},
|
|
19
19
|
"false": {
|
|
20
|
-
"link": "text-
|
|
20
|
+
"link": "text-(--ui-text-muted) font-medium"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"disabled": {
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
"to": true,
|
|
37
37
|
"class": {
|
|
38
38
|
"link": [
|
|
39
|
-
"hover:text-
|
|
39
|
+
"hover:text-(--ui-text)",
|
|
40
40
|
"transition-colors"
|
|
41
41
|
]
|
|
42
42
|
}
|