@nuxt/ui 3.0.0-alpha.6 → 3.0.0-alpha.8
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 +20 -0
- package/.nuxt/ui/alert.ts +242 -0
- package/.nuxt/ui/avatar-group.ts +40 -0
- package/.nuxt/ui/avatar.ts +42 -0
- package/.nuxt/ui/badge.ts +194 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button-group.ts +16 -0
- package/.nuxt/ui/button.ts +344 -0
- package/.nuxt/ui/card.ts +8 -0
- package/.nuxt/ui/carousel.ts +41 -0
- package/.nuxt/ui/checkbox.ts +105 -0
- package/.nuxt/ui/chip.ts +67 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/command-palette.ts +40 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +198 -0
- package/.nuxt/ui/drawer.ts +55 -0
- package/.nuxt/ui/dropdown-menu.ts +199 -0
- package/.nuxt/ui/form-field.ts +40 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/index.ts +43 -0
- package/.nuxt/ui/input-menu.ts +411 -0
- package/.nuxt/ui/input.ts +263 -0
- package/.nuxt/ui/kbd.ts +19 -0
- package/.nuxt/ui/link.ts +15 -0
- package/.nuxt/ui/modal.ts +28 -0
- package/.nuxt/ui/navigation-menu.ts +390 -0
- package/.nuxt/ui/pagination.ts +8 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/progress.ts +258 -0
- package/.nuxt/ui/radio-group.ts +112 -0
- package/.nuxt/ui/select-menu.ts +321 -0
- package/.nuxt/ui/select.ts +314 -0
- package/.nuxt/ui/separator.ts +143 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +63 -0
- package/.nuxt/ui/slider.ts +148 -0
- package/.nuxt/ui/switch.ts +113 -0
- package/.nuxt/ui/table.ts +128 -0
- package/.nuxt/ui/tabs.ts +227 -0
- package/.nuxt/ui/textarea.ts +263 -0
- package/.nuxt/ui/toast.ts +66 -0
- package/.nuxt/ui/toaster.ts +75 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/cli/templates.mjs +1 -1
- package/dist/chunks/component-meta.cjs +73264 -0
- package/dist/chunks/component-meta.mjs +73262 -0
- package/dist/client/devtools/200.html +1 -0
- package/dist/client/devtools/404.html +1 -0
- 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 +1 -0
- package/dist/client/devtools/_nuxt/DM3_wAgz.js +62 -0
- package/dist/client/devtools/_nuxt/builds/latest.json +1 -0
- package/dist/client/devtools/_nuxt/builds/meta/e6b425f7-b919-4014-915b-0ea07c316790.json +1 -0
- package/dist/client/devtools/_nuxt/entry.DaJP-ZMB.css +24 -0
- package/dist/client/devtools/_nuxt/error-404.B0Nmv3fV.css +1 -0
- package/dist/client/devtools/_nuxt/error-500.C8fgTxVz.css +1 -0
- package/dist/client/devtools/_nuxt/hKiujHsR.js +1 -0
- package/dist/client/devtools/favicon.svg +1 -0
- package/dist/client/devtools/index.html +1 -0
- package/dist/devtools/runtime/DevtoolsRenderer.vue +53 -0
- package/dist/devtools/runtime/examples/AvatarGroupExample.vue +7 -0
- package/dist/devtools/runtime/examples/ButtonGroupExample.vue +8 -0
- package/dist/devtools/runtime/examples/CardExample.vue +13 -0
- package/dist/devtools/runtime/examples/CarouselExample.vue +13 -0
- package/dist/devtools/runtime/examples/ChipExample.vue +5 -0
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +8 -0
- package/dist/devtools/runtime/examples/CommandPaletteExample.vue +29 -0
- package/dist/devtools/runtime/examples/ContainerExample.vue +5 -0
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/DrawerExample.vue +8 -0
- package/dist/devtools/runtime/examples/DropdownMenuExample.vue +5 -0
- package/dist/devtools/runtime/examples/FormExample.vue +30 -0
- package/dist/devtools/runtime/examples/FormFieldExample.vue +5 -0
- package/dist/devtools/runtime/examples/LinkExample.vue +5 -0
- package/dist/devtools/runtime/examples/ModalExample.vue +8 -0
- package/dist/devtools/runtime/examples/PopoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/SkeletonExample.vue +3 -0
- package/dist/devtools/runtime/examples/SlideoverExample.vue +8 -0
- package/dist/devtools/runtime/examples/ToasterExample.vue +11 -0
- package/dist/devtools/runtime/examples/TooltipExample.vue +5 -0
- package/dist/module.cjs +222 -4
- package/dist/module.d.cts +54 -0
- package/dist/module.d.mts +16 -6
- package/dist/module.d.ts +16 -6
- package/dist/module.json +1 -1
- package/dist/module.mjs +157 -2629
- package/dist/runtime/components/Accordion.vue +45 -6
- package/dist/runtime/components/Alert.vue +4 -0
- package/dist/runtime/components/App.vue +8 -0
- package/dist/runtime/components/Avatar.vue +23 -5
- package/dist/runtime/components/AvatarGroup.vue +3 -0
- package/dist/runtime/components/Badge.vue +33 -3
- package/dist/runtime/components/Breadcrumb.vue +39 -7
- package/dist/runtime/components/Button.vue +10 -3
- package/dist/runtime/components/ButtonGroup.vue +4 -1
- package/dist/runtime/components/Card.vue +3 -0
- package/dist/runtime/components/Carousel.vue +13 -8
- package/dist/runtime/components/Checkbox.vue +7 -6
- package/dist/runtime/components/Chip.vue +9 -2
- package/dist/runtime/components/Collapsible.vue +3 -0
- package/dist/runtime/components/CommandPalette.vue +28 -17
- package/dist/runtime/components/Container.vue +3 -0
- package/dist/runtime/components/ContextMenu.vue +95 -10
- package/dist/runtime/components/ContextMenuContent.vue +41 -13
- package/dist/runtime/components/Drawer.vue +3 -0
- package/dist/runtime/components/DropdownMenu.vue +83 -10
- package/dist/runtime/components/DropdownMenuContent.vue +43 -13
- package/dist/runtime/components/Form.vue +6 -1
- package/dist/runtime/components/FormField.vue +3 -0
- package/dist/runtime/components/Input.vue +7 -4
- package/dist/runtime/components/InputMenu.vue +61 -34
- package/dist/runtime/components/Kbd.vue +2 -0
- package/dist/runtime/components/Link.vue +50 -1
- package/dist/runtime/components/LinkBase.vue +4 -2
- package/dist/runtime/components/Modal.vue +3 -0
- package/dist/runtime/components/NavigationMenu.vue +159 -75
- package/dist/runtime/components/Pagination.vue +5 -1
- package/dist/runtime/components/Popover.vue +3 -0
- package/dist/runtime/components/Progress.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue +26 -4
- package/dist/runtime/components/Select.vue +44 -21
- package/dist/runtime/components/SelectMenu.vue +67 -43
- package/dist/runtime/components/Separator.vue +1 -1
- package/dist/runtime/components/Skeleton.vue +3 -0
- package/dist/runtime/components/Slideover.vue +3 -0
- package/dist/runtime/components/Slider.vue +1 -1
- package/dist/runtime/components/Switch.vue +5 -1
- package/dist/runtime/components/Table.vue +241 -0
- package/dist/runtime/components/Tabs.vue +35 -8
- package/dist/runtime/components/Toast.vue +4 -0
- package/dist/runtime/components/Toaster.vue +8 -1
- package/dist/runtime/components/Tooltip.vue +3 -0
- package/dist/runtime/composables/defineShortcuts.js +1 -7
- package/dist/runtime/composables/extendDevtoolsMeta.d.ts +7 -0
- package/dist/runtime/composables/extendDevtoolsMeta.js +2 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +3 -0
- package/dist/runtime/composables/useKbd.d.ts +10 -3
- package/dist/runtime/composables/useKbd.js +14 -8
- package/dist/runtime/composables/useModal.d.ts +1 -1
- package/dist/runtime/composables/useSlideover.d.ts +1 -1
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/keyframes.css +1 -0
- package/dist/runtime/types/form.d.ts +2 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/utils.d.ts +7 -0
- package/dist/runtime/utils/form.d.ts +3 -0
- package/dist/runtime/utils/form.js +14 -0
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +3 -0
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/vue/components/Icon.vue +15 -0
- package/dist/runtime/vue/components/Link.vue +195 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +6 -0
- package/dist/runtime/vue/stubs.d.ts +15 -0
- package/dist/runtime/vue/stubs.js +27 -0
- package/dist/shared/ui.BU7wzH0D.cjs +2872 -0
- package/dist/shared/ui.BufKhDiD.mjs +2865 -0
- package/dist/unplugin.cjs +192 -0
- package/dist/unplugin.d.cts +47 -0
- package/dist/unplugin.d.mts +47 -0
- package/dist/unplugin.d.ts +47 -0
- package/dist/unplugin.mjs +181 -0
- package/dist/vite.cjs +22 -0
- package/dist/vite.d.cts +13 -0
- package/dist/vite.d.mts +13 -0
- package/dist/vite.d.ts +13 -0
- package/dist/vite.mjs +20 -0
- package/package.json +73 -32
- package/vue-plugin.d.ts +5 -0
- package/cli/node_modules/.ignored/citty/LICENSE +0 -36
- package/cli/node_modules/.ignored/citty/README.md +0 -134
- package/cli/node_modules/.ignored/citty/dist/index.cjs +0 -475
- package/cli/node_modules/.ignored/citty/dist/index.d.cts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.mts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.d.ts +0 -80
- package/cli/node_modules/.ignored/citty/dist/index.mjs +0 -463
- package/cli/node_modules/.ignored/citty/package.json +0 -49
- package/cli/node_modules/.ignored/consola/LICENSE +0 -47
- package/cli/node_modules/.ignored/consola/README.md +0 -318
- package/cli/node_modules/.ignored/consola/core.d.ts +0 -1
- package/cli/node_modules/.ignored/consola/dist/basic.cjs +0 -32
- package/cli/node_modules/.ignored/consola/dist/basic.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/basic.mjs +0 -24
- package/cli/node_modules/.ignored/consola/dist/browser.cjs +0 -80
- package/cli/node_modules/.ignored/consola/dist/browser.d.ts +0 -7
- package/cli/node_modules/.ignored/consola/dist/browser.mjs +0 -72
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.cjs +0 -436
- package/cli/node_modules/.ignored/consola/dist/chunks/prompt.mjs +0 -429
- package/cli/node_modules/.ignored/consola/dist/core.cjs +0 -415
- package/cli/node_modules/.ignored/consola/dist/core.d.ts +0 -124
- package/cli/node_modules/.ignored/consola/dist/core.mjs +0 -410
- package/cli/node_modules/.ignored/consola/dist/index.cjs +0 -21
- package/cli/node_modules/.ignored/consola/dist/index.d.ts +0 -9
- package/cli/node_modules/.ignored/consola/dist/index.mjs +0 -8
- package/cli/node_modules/.ignored/consola/dist/shared/consola.06ad8a64.mjs +0 -62
- package/cli/node_modules/.ignored/consola/dist/shared/consola.36c0034f.mjs +0 -636
- package/cli/node_modules/.ignored/consola/dist/shared/consola.4bbae468.cjs +0 -645
- package/cli/node_modules/.ignored/consola/dist/shared/consola.deac7d5a.cjs +0 -65
- package/cli/node_modules/.ignored/consola/dist/utils.cjs +0 -308
- package/cli/node_modules/.ignored/consola/dist/utils.d.ts +0 -169
- package/cli/node_modules/.ignored/consola/dist/utils.mjs +0 -284
- package/cli/node_modules/.ignored/consola/lib/index.cjs +0 -9
- package/cli/node_modules/.ignored/consola/package.json +0 -101
- package/cli/node_modules/.ignored/consola/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/pathe/LICENSE +0 -44
- package/cli/node_modules/.ignored/pathe/README.md +0 -69
- package/cli/node_modules/.ignored/pathe/dist/index.cjs +0 -23
- package/cli/node_modules/.ignored/pathe/dist/index.d.cts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.mts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.d.ts +0 -36
- package/cli/node_modules/.ignored/pathe/dist/index.mjs +0 -1
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.1f0a373c.cjs +0 -238
- package/cli/node_modules/.ignored/pathe/dist/shared/pathe.ff20891b.mjs +0 -221
- package/cli/node_modules/.ignored/pathe/dist/utils.cjs +0 -58
- package/cli/node_modules/.ignored/pathe/dist/utils.d.cts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.mts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.d.ts +0 -5
- package/cli/node_modules/.ignored/pathe/dist/utils.mjs +0 -54
- package/cli/node_modules/.ignored/pathe/package.json +0 -48
- package/cli/node_modules/.ignored/pathe/utils.d.ts +0 -1
- package/cli/node_modules/.ignored/scule/LICENSE +0 -21
- package/cli/node_modules/.ignored/scule/README.md +0 -149
- package/cli/node_modules/.ignored/scule/dist/index.cjs +0 -92
- package/cli/node_modules/.ignored/scule/dist/index.d.cts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.mts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.d.ts +0 -57
- package/cli/node_modules/.ignored/scule/dist/index.mjs +0 -80
- package/cli/node_modules/.ignored/scule/package.json +0 -43
- package/cli/node_modules/.package-lock.json +0 -33
- package/dist/runtime/types/component.d.ts +0 -17
- package/dist/runtime/types/component.js +0 -0
package/.nuxt/ui/link.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"base": "focus-visible:outline-[var(--ui-primary)]",
|
|
3
|
+
"variants": {
|
|
4
|
+
"active": {
|
|
5
|
+
"true": "text-[var(--ui-primary)]",
|
|
6
|
+
"false": [
|
|
7
|
+
"text-[var(--ui-text-muted)] hover:text-[var(--ui-text)]",
|
|
8
|
+
"transition-colors"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"disabled": {
|
|
12
|
+
"true": "cursor-not-allowed opacity-75"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"overlay": "fixed inset-0 bg-[var(--ui-bg-elevated)]/75",
|
|
4
|
+
"content": "fixed w-full h-dvh bg-[var(--ui-bg)] divide-y divide-[var(--ui-border)] flex flex-col focus:outline-none",
|
|
5
|
+
"header": "px-4 py-5 sm:px-6",
|
|
6
|
+
"body": "flex-1 p-4 sm:p-6",
|
|
7
|
+
"footer": "flex items-center gap-1.5 p-4 sm:px-6",
|
|
8
|
+
"title": "text-[var(--ui-text-highlighted)] font-semibold",
|
|
9
|
+
"description": "mt-1 text-[var(--ui-text-muted)] text-sm",
|
|
10
|
+
"close": "absolute top-4 end-4"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"transition": {
|
|
14
|
+
"true": {
|
|
15
|
+
"overlay": "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
16
|
+
"content": "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"fullscreen": {
|
|
20
|
+
"true": {
|
|
21
|
+
"content": "inset-0"
|
|
22
|
+
},
|
|
23
|
+
"false": {
|
|
24
|
+
"content": "top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] sm:max-w-lg sm:h-auto sm:my-8 sm:rounded-[calc(var(--ui-radius)*2)] sm:shadow-lg sm:ring ring-[var(--ui-border)]"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "relative flex gap-1.5 [&>div]:min-w-0",
|
|
4
|
+
"list": "isolate min-w-0",
|
|
5
|
+
"item": "min-w-0",
|
|
6
|
+
"link": "group relative w-full flex items-center gap-1.5 font-medium text-sm before:absolute before:z-[-1] before:rounded-[calc(var(--ui-radius)*1.5)] focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
|
|
7
|
+
"linkLeadingIcon": "shrink-0 size-5",
|
|
8
|
+
"linkLeadingAvatar": "shrink-0",
|
|
9
|
+
"linkLeadingAvatarSize": "2xs",
|
|
10
|
+
"linkTrailing": "ms-auto inline-flex",
|
|
11
|
+
"linkTrailingBadge": "shrink-0 rounded",
|
|
12
|
+
"linkTrailingBadgeSize": "sm",
|
|
13
|
+
"linkTrailingIcon": "size-5 transform shrink-0 group-data-[state=open]:rotate-180 transition-transform duration-200",
|
|
14
|
+
"linkLabel": "truncate",
|
|
15
|
+
"linkLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]",
|
|
16
|
+
"childList": "",
|
|
17
|
+
"childItem": "",
|
|
18
|
+
"childLink": "group size-full px-3 py-2 rounded-[calc(var(--ui-radius)*1.5)] flex items-start gap-2 text-start",
|
|
19
|
+
"childLinkWrapper": "flex flex-col items-start",
|
|
20
|
+
"childLinkIcon": "size-5 shrink-0",
|
|
21
|
+
"childLinkLabel": "font-semibold text-sm relative inline-flex",
|
|
22
|
+
"childLinkLabelExternalIcon": "inline-block size-3 align-top text-[var(--ui-text-dimmed)]",
|
|
23
|
+
"childLinkDescription": "text-sm text-[var(--ui-text-muted)]",
|
|
24
|
+
"separator": "px-2 h-px bg-[var(--ui-border)]",
|
|
25
|
+
"viewportWrapper": "absolute top-full left-0 flex w-full justify-center",
|
|
26
|
+
"viewport": "relative overflow-hidden bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] h-[var(--radix-navigation-menu-viewport-height)] w-full transition-[width,height] origin-[top_center] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
27
|
+
"content": "absolute top-0 left-0 w-full data-[motion=from-start]:animate-[enter-from-left_200ms_ease] data-[motion=from-end]:animate-[enter-from-right_200ms_ease] data-[motion=to-start]:animate-[exit-to-left_200ms_ease] data-[motion=to-end]:animate-[exit-to-right_200ms_ease]",
|
|
28
|
+
"indicator": "data-[state=visible]:animate-[fade-in_100ms_ease-out] data-[state=hidden]:animate-[fade-out_100ms_ease-in] bottom-0 z-[1] flex h-2.5 items-end justify-center overflow-hidden transition-transform duration-200 ease-out",
|
|
29
|
+
"arrow": "relative top-[50%] size-2.5 rotate-45 border border-[var(--ui-border)] bg-[var(--ui-bg)] z-[1] rounded-[calc(var(--ui-radius)/2)]"
|
|
30
|
+
},
|
|
31
|
+
"variants": {
|
|
32
|
+
"color": {
|
|
33
|
+
"primary": {
|
|
34
|
+
"link": "focus-visible:before:ring-[var(--ui-primary)]",
|
|
35
|
+
"childLink": "focus-visible:outline-[var(--ui-primary)]"
|
|
36
|
+
},
|
|
37
|
+
"secondary": {
|
|
38
|
+
"link": "focus-visible:before:ring-[var(--ui-secondary)]",
|
|
39
|
+
"childLink": "focus-visible:outline-[var(--ui-secondary)]"
|
|
40
|
+
},
|
|
41
|
+
"success": {
|
|
42
|
+
"link": "focus-visible:before:ring-[var(--ui-success)]",
|
|
43
|
+
"childLink": "focus-visible:outline-[var(--ui-success)]"
|
|
44
|
+
},
|
|
45
|
+
"info": {
|
|
46
|
+
"link": "focus-visible:before:ring-[var(--ui-info)]",
|
|
47
|
+
"childLink": "focus-visible:outline-[var(--ui-info)]"
|
|
48
|
+
},
|
|
49
|
+
"warning": {
|
|
50
|
+
"link": "focus-visible:before:ring-[var(--ui-warning)]",
|
|
51
|
+
"childLink": "focus-visible:outline-[var(--ui-warning)]"
|
|
52
|
+
},
|
|
53
|
+
"error": {
|
|
54
|
+
"link": "focus-visible:before:ring-[var(--ui-error)]",
|
|
55
|
+
"childLink": "focus-visible:outline-[var(--ui-error)]"
|
|
56
|
+
},
|
|
57
|
+
"neutral": {
|
|
58
|
+
"link": "focus-visible:before:ring-[var(--ui-border-inverted)]",
|
|
59
|
+
"childLink": "focus-visible:outline-[var(--ui-border-inverted)]"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"highlightColor": {
|
|
63
|
+
"primary": "",
|
|
64
|
+
"secondary": "",
|
|
65
|
+
"success": "",
|
|
66
|
+
"info": "",
|
|
67
|
+
"warning": "",
|
|
68
|
+
"error": "",
|
|
69
|
+
"neutral": ""
|
|
70
|
+
},
|
|
71
|
+
"variant": {
|
|
72
|
+
"pill": "",
|
|
73
|
+
"link": ""
|
|
74
|
+
},
|
|
75
|
+
"orientation": {
|
|
76
|
+
"horizontal": {
|
|
77
|
+
"root": "w-full items-center justify-between",
|
|
78
|
+
"list": "flex items-center",
|
|
79
|
+
"item": "py-2",
|
|
80
|
+
"link": "px-2.5 py-1.5 before:inset-x-px before:inset-y-0",
|
|
81
|
+
"childList": "grid grid-cols-2 gap-2 p-2"
|
|
82
|
+
},
|
|
83
|
+
"vertical": {
|
|
84
|
+
"root": "flex-col",
|
|
85
|
+
"link": "flex-row px-2.5 py-1.5 before:inset-y-px before:inset-x-0",
|
|
86
|
+
"childList": "ms-5 border-s border-[var(--ui-border)]",
|
|
87
|
+
"childItem": "ps-1.5 -ms-px"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"active": {
|
|
91
|
+
"true": {
|
|
92
|
+
"childLink": "bg-[var(--ui-bg-elevated)] text-[var(--ui-text-highlighted)]",
|
|
93
|
+
"childLinkIcon": "text-[var(--ui-text)]"
|
|
94
|
+
},
|
|
95
|
+
"false": {
|
|
96
|
+
"link": "text-[var(--ui-text-muted)]",
|
|
97
|
+
"linkLeadingIcon": "text-[var(--ui-text-dimmed)]",
|
|
98
|
+
"childLink": [
|
|
99
|
+
"hover:bg-[var(--ui-bg-elevated)]/50 text-[var(--ui-text)] hover:text-[var(--ui-text-highlighted)]",
|
|
100
|
+
"transition-colors"
|
|
101
|
+
],
|
|
102
|
+
"childLinkIcon": [
|
|
103
|
+
"text-[var(--ui-text-dimmed)] group-hover:text-[var(--ui-text)]",
|
|
104
|
+
"transition-colors"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"disabled": {
|
|
109
|
+
"true": {
|
|
110
|
+
"link": "cursor-not-allowed opacity-75"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"highlight": {
|
|
114
|
+
"true": ""
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"compoundVariants": [
|
|
118
|
+
{
|
|
119
|
+
"highlight": true,
|
|
120
|
+
"orientation": "horizontal" as const,
|
|
121
|
+
"class": {
|
|
122
|
+
"item": "-mb-px",
|
|
123
|
+
"link": "after:absolute after:-bottom-2 after:inset-x-2.5 after:block after:h-px after:rounded-full"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"highlight": true,
|
|
128
|
+
"orientation": "vertical" as const,
|
|
129
|
+
"class": {
|
|
130
|
+
"item": "px-1.5 -ms-px",
|
|
131
|
+
"link": "after:absolute after:-start-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"disabled": false,
|
|
136
|
+
"active": false,
|
|
137
|
+
"variant": "pill" as const,
|
|
138
|
+
"class": {
|
|
139
|
+
"link": [
|
|
140
|
+
"hover:text-[var(--ui-text-highlighted)] hover:before:bg-[var(--ui-bg-elevated)]/50 data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
141
|
+
"transition-colors before:transition-colors"
|
|
142
|
+
],
|
|
143
|
+
"linkLeadingIcon": [
|
|
144
|
+
"group-hover:text-[var(--ui-text)] group-data-[state=open]:text-[var(--ui-text)]",
|
|
145
|
+
"transition-colors"
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"disabled": false,
|
|
151
|
+
"variant": "pill" as const,
|
|
152
|
+
"highlight": true,
|
|
153
|
+
"orientation": "horizontal" as const,
|
|
154
|
+
"class": {
|
|
155
|
+
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"disabled": false,
|
|
160
|
+
"variant": "pill" as const,
|
|
161
|
+
"highlight": false,
|
|
162
|
+
"active": false,
|
|
163
|
+
"orientation": "horizontal" as const,
|
|
164
|
+
"class": {
|
|
165
|
+
"link": "data-[state=open]:before:bg-[var(--ui-bg-elevated)]/50"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"color": "primary" as const,
|
|
170
|
+
"variant": "pill" as const,
|
|
171
|
+
"active": true,
|
|
172
|
+
"class": {
|
|
173
|
+
"link": "text-[var(--ui-primary)]",
|
|
174
|
+
"linkLeadingIcon": "text-[var(--ui-primary)]"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"color": "secondary" as const,
|
|
179
|
+
"variant": "pill" as const,
|
|
180
|
+
"active": true,
|
|
181
|
+
"class": {
|
|
182
|
+
"link": "text-[var(--ui-secondary)]",
|
|
183
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)]"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"color": "success" as const,
|
|
188
|
+
"variant": "pill" as const,
|
|
189
|
+
"active": true,
|
|
190
|
+
"class": {
|
|
191
|
+
"link": "text-[var(--ui-success)]",
|
|
192
|
+
"linkLeadingIcon": "text-[var(--ui-success)]"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"color": "info" as const,
|
|
197
|
+
"variant": "pill" as const,
|
|
198
|
+
"active": true,
|
|
199
|
+
"class": {
|
|
200
|
+
"link": "text-[var(--ui-info)]",
|
|
201
|
+
"linkLeadingIcon": "text-[var(--ui-info)]"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"color": "warning" as const,
|
|
206
|
+
"variant": "pill" as const,
|
|
207
|
+
"active": true,
|
|
208
|
+
"class": {
|
|
209
|
+
"link": "text-[var(--ui-warning)]",
|
|
210
|
+
"linkLeadingIcon": "text-[var(--ui-warning)]"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"color": "error" as const,
|
|
215
|
+
"variant": "pill" as const,
|
|
216
|
+
"active": true,
|
|
217
|
+
"class": {
|
|
218
|
+
"link": "text-[var(--ui-error)]",
|
|
219
|
+
"linkLeadingIcon": "text-[var(--ui-error)]"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"color": "neutral" as const,
|
|
224
|
+
"variant": "pill" as const,
|
|
225
|
+
"active": true,
|
|
226
|
+
"class": {
|
|
227
|
+
"link": "text-[var(--ui-text-highlighted)]",
|
|
228
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)]"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"variant": "pill" as const,
|
|
233
|
+
"active": true,
|
|
234
|
+
"highlight": false,
|
|
235
|
+
"class": {
|
|
236
|
+
"link": "before:bg-[var(--ui-bg-elevated)]"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"variant": "pill" as const,
|
|
241
|
+
"active": true,
|
|
242
|
+
"highlight": true,
|
|
243
|
+
"class": {
|
|
244
|
+
"link": [
|
|
245
|
+
"hover:before:bg-[var(--ui-bg-elevated)]/50",
|
|
246
|
+
"before:transition-colors"
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"disabled": false,
|
|
252
|
+
"active": false,
|
|
253
|
+
"variant": "link" as const,
|
|
254
|
+
"class": {
|
|
255
|
+
"link": [
|
|
256
|
+
"hover:text-[var(--ui-text-highlighted)] data-[state=open]:text-[var(--ui-text-highlighted)]",
|
|
257
|
+
"transition-colors"
|
|
258
|
+
],
|
|
259
|
+
"linkLeadingIcon": [
|
|
260
|
+
"group-hover:text-[var(--ui-text)] group-data-[state=open]:text-[var(--ui-text)]",
|
|
261
|
+
"transition-colors"
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"color": "primary" as const,
|
|
267
|
+
"variant": "link" as const,
|
|
268
|
+
"active": true,
|
|
269
|
+
"class": {
|
|
270
|
+
"link": "text-[var(--ui-primary)]",
|
|
271
|
+
"linkLeadingIcon": "text-[var(--ui-primary)]"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"color": "secondary" as const,
|
|
276
|
+
"variant": "link" as const,
|
|
277
|
+
"active": true,
|
|
278
|
+
"class": {
|
|
279
|
+
"link": "text-[var(--ui-secondary)]",
|
|
280
|
+
"linkLeadingIcon": "text-[var(--ui-secondary)]"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"color": "success" as const,
|
|
285
|
+
"variant": "link" as const,
|
|
286
|
+
"active": true,
|
|
287
|
+
"class": {
|
|
288
|
+
"link": "text-[var(--ui-success)]",
|
|
289
|
+
"linkLeadingIcon": "text-[var(--ui-success)]"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"color": "info" as const,
|
|
294
|
+
"variant": "link" as const,
|
|
295
|
+
"active": true,
|
|
296
|
+
"class": {
|
|
297
|
+
"link": "text-[var(--ui-info)]",
|
|
298
|
+
"linkLeadingIcon": "text-[var(--ui-info)]"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"color": "warning" as const,
|
|
303
|
+
"variant": "link" as const,
|
|
304
|
+
"active": true,
|
|
305
|
+
"class": {
|
|
306
|
+
"link": "text-[var(--ui-warning)]",
|
|
307
|
+
"linkLeadingIcon": "text-[var(--ui-warning)]"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"color": "error" as const,
|
|
312
|
+
"variant": "link" as const,
|
|
313
|
+
"active": true,
|
|
314
|
+
"class": {
|
|
315
|
+
"link": "text-[var(--ui-error)]",
|
|
316
|
+
"linkLeadingIcon": "text-[var(--ui-error)]"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"color": "neutral" as const,
|
|
321
|
+
"variant": "link" as const,
|
|
322
|
+
"active": true,
|
|
323
|
+
"class": {
|
|
324
|
+
"link": "text-[var(--ui-text-highlighted)]",
|
|
325
|
+
"linkLeadingIcon": "text-[var(--ui-text-highlighted)]"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"highlightColor": "primary" as const,
|
|
330
|
+
"highlight": true,
|
|
331
|
+
"active": true,
|
|
332
|
+
"class": {
|
|
333
|
+
"link": "after:bg-[var(--ui-primary)]"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"highlightColor": "secondary" as const,
|
|
338
|
+
"highlight": true,
|
|
339
|
+
"active": true,
|
|
340
|
+
"class": {
|
|
341
|
+
"link": "after:bg-[var(--ui-secondary)]"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"highlightColor": "success" as const,
|
|
346
|
+
"highlight": true,
|
|
347
|
+
"active": true,
|
|
348
|
+
"class": {
|
|
349
|
+
"link": "after:bg-[var(--ui-success)]"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"highlightColor": "info" as const,
|
|
354
|
+
"highlight": true,
|
|
355
|
+
"active": true,
|
|
356
|
+
"class": {
|
|
357
|
+
"link": "after:bg-[var(--ui-info)]"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"highlightColor": "warning" as const,
|
|
362
|
+
"highlight": true,
|
|
363
|
+
"active": true,
|
|
364
|
+
"class": {
|
|
365
|
+
"link": "after:bg-[var(--ui-warning)]"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"highlightColor": "error" as const,
|
|
370
|
+
"highlight": true,
|
|
371
|
+
"active": true,
|
|
372
|
+
"class": {
|
|
373
|
+
"link": "after:bg-[var(--ui-error)]"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"highlightColor": "neutral" as const,
|
|
378
|
+
"highlight": true,
|
|
379
|
+
"active": true,
|
|
380
|
+
"class": {
|
|
381
|
+
"link": "after:bg-[var(--ui-bg-inverted)]"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"defaultVariants": {
|
|
386
|
+
"color": "primary" as const,
|
|
387
|
+
"highlightColor": "primary" as const,
|
|
388
|
+
"variant": "pill" as const
|
|
389
|
+
}
|
|
390
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"content": "bg-[var(--ui-bg)] shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-[var(--ui-border)] data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none",
|
|
4
|
+
"arrow": "fill-[var(--ui-border)]"
|
|
5
|
+
}
|
|
6
|
+
}
|