@dicehub/kappa 0.5.0 → 0.6.0
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/CHANGELOG.md +48 -0
- package/THIRD_PARTY_NOTICES.md +32 -1
- package/dist/{DropdownSubTrigger-CBmdRDUH.js → DropdownSubTrigger-DrZmNIcU.js} +15 -13
- package/dist/DropdownSubTrigger-DrZmNIcU.js.map +1 -0
- package/dist/{InlineCopyText-C5laww5W.js → InlineCopyText-Bosrszdf.js} +38 -40
- package/dist/InlineCopyText-Bosrszdf.js.map +1 -0
- package/dist/{SidebarLayout-Cs6OnqU2.js → SidebarLayout-D9RT-MdT.js} +18 -8
- package/dist/SidebarLayout-D9RT-MdT.js.map +1 -0
- package/dist/WorkspaceSwitcher-DBWdKZbM.js +265 -0
- package/dist/WorkspaceSwitcher-DBWdKZbM.js.map +1 -0
- package/dist/blocks/file-browser.js +1 -1
- package/dist/blocks/index.d.ts +2 -0
- package/dist/blocks/settings-layout/SettingsLayout.vue.d.ts +11 -0
- package/dist/blocks/settings-layout/SettingsSection.vue.d.ts +30 -0
- package/dist/blocks/settings-layout/index.d.ts +7 -0
- package/dist/blocks/settings-layout/settings-layout.d.ts +42 -0
- package/dist/blocks/settings-layout.js +2 -0
- package/dist/blocks/sidebar-layout/SidebarLayout.vue.d.ts +2 -0
- package/dist/blocks/sidebar-layout/index.d.ts +1 -1
- package/dist/blocks/sidebar-layout/sidebar-layout.d.ts +4 -0
- package/dist/blocks/sidebar-layout.js +1 -1
- package/dist/blocks/workspace-switcher/WorkspaceSwitcher.vue.d.ts +33 -0
- package/dist/blocks/workspace-switcher/WorkspaceSwitcherActions.vue.d.ts +12 -0
- package/dist/blocks/workspace-switcher/WorkspaceSwitcherBadge.vue.d.ts +8 -0
- package/dist/blocks/workspace-switcher/index.d.ts +3 -0
- package/dist/blocks/workspace-switcher/workspace-switcher.d.ts +63 -0
- package/dist/blocks/workspace-switcher.js +2 -0
- package/dist/{clipboard-text-Ob056Gly.js → clipboard-text-Clp3y-6f.js} +10 -14
- package/dist/{clipboard-text-Ob056Gly.js.map → clipboard-text-Clp3y-6f.js.map} +1 -1
- package/dist/{command-palette-CGREegfE.js → command-palette-BHFB86Gc.js} +9 -3
- package/dist/command-palette-BHFB86Gc.js.map +1 -0
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/code-highlighted/CodeHighlighted.vue.d.ts +6 -1
- package/dist/components/code-highlighted/CodeHighlightedCopy.vue.d.ts +8 -0
- package/dist/components/code-highlighted/code-highlighted.d.ts +9 -0
- package/dist/components/code-highlighted/index.d.ts +1 -1
- package/dist/components/code-highlighted.js +185 -116
- package/dist/components/code-highlighted.js.map +1 -1
- package/dist/components/command-palette/command-palette.d.ts +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/context-menu/ContextMenu.vue.d.ts +2 -2
- package/dist/components/context-menu.js +2 -2
- package/dist/components/data-grid.js +1 -1
- package/dist/components/dialog/Dialog.vue.d.ts +2 -2
- package/dist/components/dialog-layout/DialogLayoutAlert.vue.d.ts +2 -2
- package/dist/components/diff-viewer.js +1 -1
- package/dist/components/drawer/Drawer.vue.d.ts +2 -2
- package/dist/components/dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/dropdown/DropdownSub.vue.d.ts +2 -2
- package/dist/components/dropdown.js +2 -2
- package/dist/components/filter-bar.js +1 -1
- package/dist/components/hover-card/HoverCard.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/inline-copy-text.js +1 -1
- package/dist/components/menu-bar.js +1 -1
- package/dist/components/navigation-menu/NavigationMenu.vue.d.ts +23 -0
- package/dist/components/navigation-menu/NavigationMenuArrow.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuContent.vue.d.ts +14 -0
- package/dist/components/navigation-menu/NavigationMenuContext.vue.d.ts +11 -0
- package/dist/components/navigation-menu/NavigationMenuIndicator.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuItem.vue.d.ts +15 -0
- package/dist/components/navigation-menu/NavigationMenuItemIndicator.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuLink.vue.d.ts +16 -0
- package/dist/components/navigation-menu/NavigationMenuList.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuRootProvider.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +15 -0
- package/dist/components/navigation-menu/NavigationMenuViewport.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuViewportPositioner.vue.d.ts +15 -0
- package/dist/components/navigation-menu/index.d.ts +34 -0
- package/dist/components/navigation-menu/navigation-menu-attrs.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +36 -0
- package/dist/components/navigation-menu/use-navigation-menu.d.ts +9 -0
- package/dist/components/navigation-menu.js +2 -0
- package/dist/components/number-input/NumberInput.vue.d.ts +1 -1
- package/dist/components/number-input/NumberInputRootProvider.vue.d.ts +1 -1
- package/dist/components/number-input/index.d.ts +2 -1
- package/dist/components/number-input/number-input-cursor.d.ts +11 -0
- package/dist/components/number-input/number-input-machine.d.ts +5 -0
- package/dist/components/number-input/use-number-input.d.ts +2 -0
- package/dist/components/number-input.js +2 -2
- package/dist/components/popover/Popover.vue.d.ts +2 -2
- package/dist/components/sidebar/SidebarProvider.vue.d.ts +1 -0
- package/dist/components/sidebar/SidebarTrigger.vue.d.ts +1 -0
- package/dist/components/sidebar/sidebar-context.d.ts +1 -0
- package/dist/components/sidebar/sidebar-peek.d.ts +1 -1
- package/dist/components/sidebar/sidebar-resize.d.ts +1 -0
- package/dist/components/sidebar/sidebar.d.ts +6 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/{context-menu-C_XGS00V.js → context-menu-B_noSd5p.js} +2 -2
- package/dist/{context-menu-C_XGS00V.js.map → context-menu-B_noSd5p.js.map} +1 -1
- package/dist/{data-grid-C7ZyN-nX.js → data-grid-BWXpMwCT.js} +2 -2
- package/dist/{data-grid-C7ZyN-nX.js.map → data-grid-BWXpMwCT.js.map} +1 -1
- package/dist/{diff-viewer-DpDGXsGd.js → diff-viewer-fDKJ-67E.js} +2 -2
- package/dist/{diff-viewer-DpDGXsGd.js.map → diff-viewer-fDKJ-67E.js.map} +1 -1
- package/dist/{dropdown-B4YZ7mck.js → dropdown-Dedb1tk8.js} +2 -2
- package/dist/{dropdown-B4YZ7mck.js.map → dropdown-Dedb1tk8.js.map} +1 -1
- package/dist/{file-browser-BU08V7Lh.js → file-browser-tqo1PirD.js} +4 -4
- package/dist/{file-browser-BU08V7Lh.js.map → file-browser-tqo1PirD.js.map} +1 -1
- package/dist/{filter-bar-yEkaxil8.js → filter-bar-COAlDQE4.js} +2 -2
- package/dist/{filter-bar-yEkaxil8.js.map → filter-bar-COAlDQE4.js.map} +1 -1
- package/dist/index.js +55 -52
- package/dist/{menu-bar-CraWEpaF.js → menu-bar-C-qQn2L1.js} +2 -2
- package/dist/{menu-bar-CraWEpaF.js.map → menu-bar-C-qQn2L1.js.map} +1 -1
- package/dist/navigation-menu-DbfnBaTw.js +379 -0
- package/dist/navigation-menu-DbfnBaTw.js.map +1 -0
- package/dist/{number-input-D59rbYIn.js → number-input-B3Xkb5sT.js} +258 -146
- package/dist/number-input-B3Xkb5sT.js.map +1 -0
- package/dist/registry/component-registry.json +23 -3
- package/dist/registry/generated.d.ts +146 -5
- package/dist/{registry-Cm6z1POX.js → registry-Bt3InMf5.js} +178 -5
- package/dist/registry-Bt3InMf5.js.map +1 -0
- package/dist/registry.js +1 -1
- package/dist/settings-layout-RlKrLGUx.js +170 -0
- package/dist/settings-layout-RlKrLGUx.js.map +1 -0
- package/dist/{sidebar-DkQJmgBd.js → sidebar-tcrbUrk_.js} +279 -222
- package/dist/sidebar-tcrbUrk_.js.map +1 -0
- package/dist/styles/kappa.css +1 -1
- package/dist/styles/theme-kappa.css +6 -1
- package/dist/styles/tokens.json +22 -0
- package/licenses/zag-number-input.LICENSE +21 -0
- package/package.json +3 -2
- package/dist/DropdownSubTrigger-CBmdRDUH.js.map +0 -1
- package/dist/InlineCopyText-C5laww5W.js.map +0 -1
- package/dist/SidebarLayout-Cs6OnqU2.js.map +0 -1
- package/dist/command-palette-CGREegfE.js.map +0 -1
- package/dist/number-input-D59rbYIn.js.map +0 -1
- package/dist/registry-Cm6z1POX.js.map +0 -1
- package/dist/sidebar-DkQJmgBd.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-bar-CraWEpaF.js","names":["$attrs","$attrs","$attrs","$attrs","$slots"],"sources":["../src/components/menu-bar/menu-bar.ts","../src/components/menu-bar/MenuBar.vue","../src/components/menu-bar/MenuBar.vue","../src/components/menu-bar/MenuBarMenu.vue","../src/components/menu-bar/MenuBarMenu.vue","../src/components/menu-bar/MenuBarTrigger.vue","../src/components/menu-bar/MenuBarTrigger.vue","../src/components/menu-bar/MenuBarContent.vue","../src/components/menu-bar/MenuBarContent.vue","../src/components/menu-bar/MenuBarSubTrigger.vue","../src/components/menu-bar/MenuBarSubTrigger.vue","../src/components/menu-bar/index.ts"],"sourcesContent":["import type { InjectionKey, Ref, VNodeChild } from \"vue\";\nimport type { DropdownEmits } from \"../dropdown\";\n\nexport interface MenuBarProps {\n /** Currently open top-level menu. Use with v-model. */\n modelValue?: string | null;\n /** Initially open menu when uncontrolled. */\n defaultValue?: string | null;\n /** Disable all menu triggers. */\n disabled?: boolean;\n}\n\nexport interface MenuBarMenuProps {\n /** Unique key for this top-level menu. */\n value: string;\n /** Accessible label for its popup when trigger text is insufficient. */\n ariaLabel?: string;\n}\n\nexport interface MenuBarTriggerProps {\n asChild?: boolean;\n disabled?: boolean;\n}\n\nexport interface MenuBarContentProps {\n asChild?: boolean;\n teleport?: boolean;\n teleportTo?: string | HTMLElement;\n}\n\nexport interface MenuBarSlots {\n default?: () => VNodeChild;\n}\n\nexport type MenuBarEmits = { \"update:modelValue\": [value: string | null] };\nexport type MenuBarMenuEmits = { select: [details: DropdownEmits[\"select\"][0]] };\n\nexport interface MenuBarContext {\n activeValue: Ref<string | null>;\n pendingPointerValue: Ref<string | null>;\n rovingValue: Ref<string | null>;\n disabled: Ref<boolean>;\n setActive: (value: string | null) => void;\n switchByPointer: (value: string) => void;\n refreshRoving: () => void;\n move: (from: string, direction: -1 | 1, keepOpen: boolean) => void;\n focusEdge: (edge: \"first\" | \"last\", keepOpen: boolean) => void;\n}\n\nexport interface MenuBarMenuContext {\n value: string;\n}\n\nexport const menuBarContextKey: InjectionKey<MenuBarContext> = Symbol(\"kappa-menu-bar\");\nexport const menuBarMenuContextKey: InjectionKey<MenuBarMenuContext> = Symbol(\"kappa-menu-bar-menu\");\n","<script setup lang=\"ts\">\nimport { computed, nextTick, provide, ref, watch } from \"vue\";\nimport { menuBarContextKey, type MenuBarEmits, type MenuBarProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<MenuBarProps>(), {\n defaultValue: null,\n disabled: false,\n});\nconst emit = defineEmits<MenuBarEmits>();\ndefineSlots<MenuBarSlots>();\n\nconst root = ref<HTMLElement | null>(null);\nconst internalValue = ref<string | null>(props.defaultValue);\nconst activeValue = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\nconst rovingValue = ref<string | null>(null);\nconst pendingPointerValue = ref<string | null>(null);\nlet pointerSwitchVersion = 0;\nconst disabled = computed(() => props.disabled);\n\nconst triggers = () => Array.from(root.value?.querySelectorAll<HTMLElement>(\n '[data-menu-bar-trigger]:not(:disabled):not([aria-disabled=\"true\"])',\n) ?? []);\n\nconst setActive = (value: string | null) => {\n if ((props.disabled && value !== null) || value === activeValue.value) return;\n if (props.modelValue === undefined) internalValue.value = value;\n emit(\"update:modelValue\", value);\n};\n\nconst switchByPointer = async (value: string) => {\n const version = ++pointerSwitchVersion;\n pendingPointerValue.value = value;\n // Give the previous Ark menu a closed render before opening the next one.\n setActive(null);\n await nextTick();\n if (version !== pointerSwitchVersion) return;\n setActive(value);\n pendingPointerValue.value = null;\n};\n\nconst refreshRoving = () => {\n const entries = triggers();\n if (entries.some((entry) => entry.dataset.menuBarValue === rovingValue.value)) return;\n rovingValue.value = entries[0]?.dataset.menuBarValue ?? null;\n};\n\nwatch(() => props.disabled, (value) => { if (value) setActive(null); });\n\nconst focusTrigger = async (trigger: HTMLElement, keepOpen: boolean) => {\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (keepOpen) {\n setActive(null);\n await nextTick();\n }\n rovingValue.value = value;\n trigger.focus({ preventScroll: true });\n if (keepOpen) {\n await nextTick();\n setActive(value);\n }\n};\n\nconst move = (from: string, direction: -1 | 1, keepOpen: boolean) => {\n const entries = triggers();\n if (!entries.length) return;\n const current = entries.findIndex((entry) => entry.dataset.menuBarValue === from);\n const next = entries[(current + direction + entries.length) % entries.length];\n if (next) void focusTrigger(next, keepOpen);\n};\n\nconst focusEdge = (edge: \"first\" | \"last\", keepOpen: boolean) => {\n const entries = triggers();\n const target = edge === \"first\" ? entries[0] : entries.at(-1);\n if (target) focusTrigger(target, keepOpen);\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n const target = event.target;\n if (!(target instanceof HTMLElement) || !root.value?.contains(target)) return;\n const trigger = target.closest<HTMLElement>('[data-menu-bar-trigger]');\n if (!trigger) return;\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (event.key === \"ArrowRight\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n event.stopPropagation();\n move(value, event.key === \"ArrowRight\" ? 1 : -1, activeValue.value !== null);\n } else if (event.key === \"Home\" || event.key === \"End\") {\n event.preventDefault();\n event.stopPropagation();\n focusEdge(event.key === \"Home\" ? \"first\" : \"last\", activeValue.value !== null);\n } else if (event.key === \"Escape\" && activeValue.value !== null) {\n event.preventDefault();\n setActive(null);\n }\n};\n\nprovide(menuBarContextKey, { activeValue, pendingPointerValue, rovingValue, disabled, setActive, switchByPointer, refreshRoving, move, focusEdge });\n</script>\n\n<template>\n <div\n ref=\"root\"\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar\"\n data-slot=\"menu-bar\"\n role=\"menubar\"\n aria-orientation=\"horizontal\"\n :aria-disabled=\"props.disabled ? 'true' : undefined\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </div>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, provide, ref, watch } from \"vue\";\nimport { menuBarContextKey, type MenuBarEmits, type MenuBarProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<MenuBarProps>(), {\n defaultValue: null,\n disabled: false,\n});\nconst emit = defineEmits<MenuBarEmits>();\ndefineSlots<MenuBarSlots>();\n\nconst root = ref<HTMLElement | null>(null);\nconst internalValue = ref<string | null>(props.defaultValue);\nconst activeValue = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\nconst rovingValue = ref<string | null>(null);\nconst pendingPointerValue = ref<string | null>(null);\nlet pointerSwitchVersion = 0;\nconst disabled = computed(() => props.disabled);\n\nconst triggers = () => Array.from(root.value?.querySelectorAll<HTMLElement>(\n '[data-menu-bar-trigger]:not(:disabled):not([aria-disabled=\"true\"])',\n) ?? []);\n\nconst setActive = (value: string | null) => {\n if ((props.disabled && value !== null) || value === activeValue.value) return;\n if (props.modelValue === undefined) internalValue.value = value;\n emit(\"update:modelValue\", value);\n};\n\nconst switchByPointer = async (value: string) => {\n const version = ++pointerSwitchVersion;\n pendingPointerValue.value = value;\n // Give the previous Ark menu a closed render before opening the next one.\n setActive(null);\n await nextTick();\n if (version !== pointerSwitchVersion) return;\n setActive(value);\n pendingPointerValue.value = null;\n};\n\nconst refreshRoving = () => {\n const entries = triggers();\n if (entries.some((entry) => entry.dataset.menuBarValue === rovingValue.value)) return;\n rovingValue.value = entries[0]?.dataset.menuBarValue ?? null;\n};\n\nwatch(() => props.disabled, (value) => { if (value) setActive(null); });\n\nconst focusTrigger = async (trigger: HTMLElement, keepOpen: boolean) => {\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (keepOpen) {\n setActive(null);\n await nextTick();\n }\n rovingValue.value = value;\n trigger.focus({ preventScroll: true });\n if (keepOpen) {\n await nextTick();\n setActive(value);\n }\n};\n\nconst move = (from: string, direction: -1 | 1, keepOpen: boolean) => {\n const entries = triggers();\n if (!entries.length) return;\n const current = entries.findIndex((entry) => entry.dataset.menuBarValue === from);\n const next = entries[(current + direction + entries.length) % entries.length];\n if (next) void focusTrigger(next, keepOpen);\n};\n\nconst focusEdge = (edge: \"first\" | \"last\", keepOpen: boolean) => {\n const entries = triggers();\n const target = edge === \"first\" ? entries[0] : entries.at(-1);\n if (target) focusTrigger(target, keepOpen);\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n const target = event.target;\n if (!(target instanceof HTMLElement) || !root.value?.contains(target)) return;\n const trigger = target.closest<HTMLElement>('[data-menu-bar-trigger]');\n if (!trigger) return;\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (event.key === \"ArrowRight\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n event.stopPropagation();\n move(value, event.key === \"ArrowRight\" ? 1 : -1, activeValue.value !== null);\n } else if (event.key === \"Home\" || event.key === \"End\") {\n event.preventDefault();\n event.stopPropagation();\n focusEdge(event.key === \"Home\" ? \"first\" : \"last\", activeValue.value !== null);\n } else if (event.key === \"Escape\" && activeValue.value !== null) {\n event.preventDefault();\n setActive(null);\n }\n};\n\nprovide(menuBarContextKey, { activeValue, pendingPointerValue, rovingValue, disabled, setActive, switchByPointer, refreshRoving, move, focusEdge });\n</script>\n\n<template>\n <div\n ref=\"root\"\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar\"\n data-slot=\"menu-bar\"\n role=\"menubar\"\n aria-orientation=\"horizontal\"\n :aria-disabled=\"props.disabled ? 'true' : undefined\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </div>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Dropdown } from \"../dropdown\";\nimport { computed, inject, provide } from \"vue\";\nimport {\n menuBarContextKey,\n menuBarMenuContextKey,\n type MenuBarMenuEmits,\n type MenuBarMenuProps,\n type MenuBarSlots,\n} from \"./menu-bar\";\n\nconst props = defineProps<MenuBarMenuProps>();\nconst emit = defineEmits<MenuBarMenuEmits>();\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nif (!bar) throw new Error(\"MenuBar.Menu must be inside MenuBar.Root\");\nprovide(menuBarMenuContextKey, { value: props.value });\n\nconst open = computed(() => bar.activeValue.value === props.value);\nconst onOpenUpdate = (next: boolean) => {\n if (next) bar.setActive(props.value);\n else if (open.value) bar.setActive(null);\n};\n</script>\n\n<template>\n <Dropdown.Root\n :aria-label=\"props.ariaLabel\"\n :open=\"open\"\n @update:open=\"onOpenUpdate\"\n @select=\"emit('select', $event)\"\n >\n <slot />\n </Dropdown.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Dropdown } from \"../dropdown\";\nimport { computed, inject, provide } from \"vue\";\nimport {\n menuBarContextKey,\n menuBarMenuContextKey,\n type MenuBarMenuEmits,\n type MenuBarMenuProps,\n type MenuBarSlots,\n} from \"./menu-bar\";\n\nconst props = defineProps<MenuBarMenuProps>();\nconst emit = defineEmits<MenuBarMenuEmits>();\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nif (!bar) throw new Error(\"MenuBar.Menu must be inside MenuBar.Root\");\nprovide(menuBarMenuContextKey, { value: props.value });\n\nconst open = computed(() => bar.activeValue.value === props.value);\nconst onOpenUpdate = (next: boolean) => {\n if (next) bar.setActive(props.value);\n else if (open.value) bar.setActive(null);\n};\n</script>\n\n<template>\n <Dropdown.Root\n :aria-label=\"props.ariaLabel\"\n :open=\"open\"\n @update:open=\"onOpenUpdate\"\n @select=\"emit('select', $event)\"\n >\n <slot />\n </Dropdown.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject, nextTick, onMounted, onUnmounted, watch } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarSlots, type MenuBarTriggerProps } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarTriggerProps>(), { asChild: false, disabled: false });\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Trigger must be inside MenuBar.Menu\");\nconst resolvedDisabled = computed(() => props.disabled || bar.disabled.value);\nlet pointerSwitchTimer: ReturnType<typeof setTimeout> | null = null;\nconst cancelPointerSwitch = () => {\n if (pointerSwitchTimer !== null) clearTimeout(pointerSwitchTimer);\n pointerSwitchTimer = null;\n};\nconst tabIndex = computed(() => {\n if (resolvedDisabled.value) return -1;\n return bar.rovingValue.value === menu.value ? 0 : -1;\n});\n\nonMounted(() => {\n if (bar.rovingValue.value === null && !resolvedDisabled.value) bar.rovingValue.value = menu.value;\n});\n\nonUnmounted(() => {\n cancelPointerSwitch();\n if (bar.activeValue.value === menu.value) bar.setActive(null);\n if (bar.rovingValue.value === menu.value) bar.rovingValue.value = null;\n void nextTick(bar.refreshRoving);\n});\n\nwatch(resolvedDisabled, (value) => {\n if (value && bar.activeValue.value === menu.value) bar.setActive(null);\n void nextTick(bar.refreshRoving);\n});\n\nconst onFocus = () => { if (!resolvedDisabled.value) bar.rovingValue.value = menu.value; };\nconst onPointerEnter = (event: PointerEvent) => {\n if (event.pointerType !== \"mouse\") return;\n if (resolvedDisabled.value ||\n (bar.activeValue.value === null && bar.pendingPointerValue.value === null) ||\n bar.activeValue.value === menu.value) return;\n cancelPointerSwitch();\n pointerSwitchTimer = setTimeout(() => {\n pointerSwitchTimer = null;\n if (!resolvedDisabled.value &&\n (bar.activeValue.value !== null || bar.pendingPointerValue.value !== null) &&\n bar.activeValue.value !== menu.value) bar.switchByPointer(menu.value);\n }, 90);\n};\n</script>\n\n<template>\n <Dropdown.Trigger\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__trigger\"\n data-menu-bar-trigger=\"\"\n :data-menu-bar-value=\"menu.value\"\n :as-child=\"props.asChild\"\n :disabled=\"resolvedDisabled\"\n :tabindex=\"tabIndex\"\n role=\"menuitem\"\n @focus=\"onFocus\"\n @pointerenter=\"onPointerEnter\"\n @pointerleave=\"cancelPointerSwitch\"\n >\n <slot />\n </Dropdown.Trigger>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed, inject, nextTick, onMounted, onUnmounted, watch } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarSlots, type MenuBarTriggerProps } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarTriggerProps>(), { asChild: false, disabled: false });\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Trigger must be inside MenuBar.Menu\");\nconst resolvedDisabled = computed(() => props.disabled || bar.disabled.value);\nlet pointerSwitchTimer: ReturnType<typeof setTimeout> | null = null;\nconst cancelPointerSwitch = () => {\n if (pointerSwitchTimer !== null) clearTimeout(pointerSwitchTimer);\n pointerSwitchTimer = null;\n};\nconst tabIndex = computed(() => {\n if (resolvedDisabled.value) return -1;\n return bar.rovingValue.value === menu.value ? 0 : -1;\n});\n\nonMounted(() => {\n if (bar.rovingValue.value === null && !resolvedDisabled.value) bar.rovingValue.value = menu.value;\n});\n\nonUnmounted(() => {\n cancelPointerSwitch();\n if (bar.activeValue.value === menu.value) bar.setActive(null);\n if (bar.rovingValue.value === menu.value) bar.rovingValue.value = null;\n void nextTick(bar.refreshRoving);\n});\n\nwatch(resolvedDisabled, (value) => {\n if (value && bar.activeValue.value === menu.value) bar.setActive(null);\n void nextTick(bar.refreshRoving);\n});\n\nconst onFocus = () => { if (!resolvedDisabled.value) bar.rovingValue.value = menu.value; };\nconst onPointerEnter = (event: PointerEvent) => {\n if (event.pointerType !== \"mouse\") return;\n if (resolvedDisabled.value ||\n (bar.activeValue.value === null && bar.pendingPointerValue.value === null) ||\n bar.activeValue.value === menu.value) return;\n cancelPointerSwitch();\n pointerSwitchTimer = setTimeout(() => {\n pointerSwitchTimer = null;\n if (!resolvedDisabled.value &&\n (bar.activeValue.value !== null || bar.pendingPointerValue.value !== null) &&\n bar.activeValue.value !== menu.value) bar.switchByPointer(menu.value);\n }, 90);\n};\n</script>\n\n<template>\n <Dropdown.Trigger\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__trigger\"\n data-menu-bar-trigger=\"\"\n :data-menu-bar-value=\"menu.value\"\n :as-child=\"props.asChild\"\n :disabled=\"resolvedDisabled\"\n :tabindex=\"tabIndex\"\n role=\"menuitem\"\n @focus=\"onFocus\"\n @pointerenter=\"onPointerEnter\"\n @pointerleave=\"cancelPointerSwitch\"\n >\n <slot />\n </Dropdown.Trigger>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { inject } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarContentProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarContentProps>(), {\n asChild: false,\n teleport: true,\n teleportTo: \"body\",\n});\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Content must be inside MenuBar.Menu\");\n\nconst onKeydown = (event: KeyboardEvent) => {\n if (event.key !== \"ArrowRight\" && event.key !== \"ArrowLeft\") return;\n const target = event.target;\n if (!(target instanceof HTMLElement)) return;\n const highlightedSubTrigger = event.currentTarget instanceof HTMLElement &&\n event.currentTarget.querySelector('[data-slot=\"dropdown-sub-trigger\"][data-highlighted]');\n if (event.key === \"ArrowRight\" &&\n (target.closest('[data-slot=\"dropdown-sub-trigger\"]') || highlightedSubTrigger)) return;\n event.preventDefault();\n event.stopPropagation();\n bar.move(menu.value, event.key === \"ArrowRight\" ? 1 : -1, true);\n};\n</script>\n\n<template>\n <Dropdown.Content\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__content\"\n data-menu-bar-content=\"\"\n :as-child=\"props.asChild\"\n :teleport=\"props.teleport\"\n :teleport-to=\"props.teleportTo\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </Dropdown.Content>\n</template>\n","<script setup lang=\"ts\">\nimport { inject } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarContentProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarContentProps>(), {\n asChild: false,\n teleport: true,\n teleportTo: \"body\",\n});\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Content must be inside MenuBar.Menu\");\n\nconst onKeydown = (event: KeyboardEvent) => {\n if (event.key !== \"ArrowRight\" && event.key !== \"ArrowLeft\") return;\n const target = event.target;\n if (!(target instanceof HTMLElement)) return;\n const highlightedSubTrigger = event.currentTarget instanceof HTMLElement &&\n event.currentTarget.querySelector('[data-slot=\"dropdown-sub-trigger\"][data-highlighted]');\n if (event.key === \"ArrowRight\" &&\n (target.closest('[data-slot=\"dropdown-sub-trigger\"]') || highlightedSubTrigger)) return;\n event.preventDefault();\n event.stopPropagation();\n bar.move(menu.value, event.key === \"ArrowRight\" ? 1 : -1, true);\n};\n</script>\n\n<template>\n <Dropdown.Content\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__content\"\n data-menu-bar-content=\"\"\n :as-child=\"props.asChild\"\n :teleport=\"props.teleport\"\n :teleport-to=\"props.teleportTo\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </Dropdown.Content>\n</template>\n","<script setup lang=\"ts\">\nimport { useMenuContext } from \"@ark-ui/vue/menu\";\nimport { Dropdown, type DropdownSubTriggerProps, type DropdownSubTriggerSlots } from \"../dropdown\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<DropdownSubTriggerProps>();\ndefineSlots<DropdownSubTriggerSlots>();\nconst menu = useMenuContext();\n\nconst openWithPointer = () => {\n if (!props.disabled) menu.value.setOpen(true);\n};\n\nconst openOnHover = (event: PointerEvent) => {\n if (event.pointerType === \"mouse\") openWithPointer();\n};\n\nconst keepOpenAcrossPortal = (event: PointerEvent) => {\n // Keep the portalled child reachable; parent item navigation still dismisses it.\n if (menu.value.open) event.stopImmediatePropagation();\n};\n</script>\n\n<template>\n <Dropdown.SubTrigger\n v-bind=\"{ ...$attrs, ...props }\"\n @pointerenter=\"openOnHover\"\n @pointerleave.capture=\"keepOpenAcrossPortal\"\n @click=\"openWithPointer\"\n >\n <slot />\n <template v-if=\"$slots.icon\" #icon><slot name=\"icon\" /></template>\n <template v-if=\"$slots.end\" #end><slot name=\"end\" /></template>\n </Dropdown.SubTrigger>\n</template>\n","<script setup lang=\"ts\">\nimport { useMenuContext } from \"@ark-ui/vue/menu\";\nimport { Dropdown, type DropdownSubTriggerProps, type DropdownSubTriggerSlots } from \"../dropdown\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<DropdownSubTriggerProps>();\ndefineSlots<DropdownSubTriggerSlots>();\nconst menu = useMenuContext();\n\nconst openWithPointer = () => {\n if (!props.disabled) menu.value.setOpen(true);\n};\n\nconst openOnHover = (event: PointerEvent) => {\n if (event.pointerType === \"mouse\") openWithPointer();\n};\n\nconst keepOpenAcrossPortal = (event: PointerEvent) => {\n // Keep the portalled child reachable; parent item navigation still dismisses it.\n if (menu.value.open) event.stopImmediatePropagation();\n};\n</script>\n\n<template>\n <Dropdown.SubTrigger\n v-bind=\"{ ...$attrs, ...props }\"\n @pointerenter=\"openOnHover\"\n @pointerleave.capture=\"keepOpenAcrossPortal\"\n @click=\"openWithPointer\"\n >\n <slot />\n <template v-if=\"$slots.icon\" #icon><slot name=\"icon\" /></template>\n <template v-if=\"$slots.end\" #end><slot name=\"end\" /></template>\n </Dropdown.SubTrigger>\n</template>\n","import MenuBarRoot from \"./MenuBar.vue\";\nimport MenuBarMenu from \"./MenuBarMenu.vue\";\nimport MenuBarTrigger from \"./MenuBarTrigger.vue\";\nimport MenuBarContent from \"./MenuBarContent.vue\";\nimport MenuBarSubTrigger from \"./MenuBarSubTrigger.vue\";\nimport { Dropdown } from \"../dropdown\";\n\nexport const MenuBar = Object.assign(MenuBarRoot, {\n Root: MenuBarRoot,\n Menu: MenuBarMenu,\n Trigger: MenuBarTrigger,\n Content: MenuBarContent,\n Item: Dropdown.Item,\n LinkItem: Dropdown.LinkItem,\n CheckboxItem: Dropdown.CheckboxItem,\n RadioGroup: Dropdown.RadioGroup,\n RadioItem: Dropdown.RadioItem,\n Group: Dropdown.Group,\n Label: Dropdown.Label,\n Separator: Dropdown.Separator,\n Shortcut: Dropdown.Shortcut,\n Sub: Dropdown.Sub,\n SubTrigger: MenuBarSubTrigger,\n SubContent: Dropdown.SubContent,\n});\n\nexport { MenuBarRoot, MenuBarMenu, MenuBarTrigger, MenuBarContent, MenuBarSubTrigger };\nexport type {\n MenuBarProps,\n MenuBarMenuProps,\n MenuBarTriggerProps,\n MenuBarContentProps,\n MenuBarEmits,\n MenuBarMenuEmits,\n} from \"./menu-bar\";\n"],"mappings":";;;;AAqDA,IAAa,IAAkD,OAAO,gBAAgB,GACzE,IAA0D,OAAO,qBAAqB;;;;;;;;;;;;;EChDnG,IAAM,IAAQ,GAIR,IAAO,GAGP,IAAO,EAAwB,IAAI,GACnC,IAAgB,EAAmB,EAAM,YAAY,GACrD,IAAc,QAAe,EAAM,eAAe,KAAA,IAAY,EA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","$attrs","$attrs","$attrs","$slots"],"sources":["../src/components/menu-bar/menu-bar.ts","../src/components/menu-bar/MenuBar.vue","../src/components/menu-bar/MenuBar.vue","../src/components/menu-bar/MenuBarMenu.vue","../src/components/menu-bar/MenuBarMenu.vue","../src/components/menu-bar/MenuBarTrigger.vue","../src/components/menu-bar/MenuBarTrigger.vue","../src/components/menu-bar/MenuBarContent.vue","../src/components/menu-bar/MenuBarContent.vue","../src/components/menu-bar/MenuBarSubTrigger.vue","../src/components/menu-bar/MenuBarSubTrigger.vue","../src/components/menu-bar/index.ts"],"sourcesContent":["import type { InjectionKey, Ref, VNodeChild } from \"vue\";\nimport type { DropdownEmits } from \"../dropdown\";\n\nexport interface MenuBarProps {\n /** Currently open top-level menu. Use with v-model. */\n modelValue?: string | null;\n /** Initially open menu when uncontrolled. */\n defaultValue?: string | null;\n /** Disable all menu triggers. */\n disabled?: boolean;\n}\n\nexport interface MenuBarMenuProps {\n /** Unique key for this top-level menu. */\n value: string;\n /** Accessible label for its popup when trigger text is insufficient. */\n ariaLabel?: string;\n}\n\nexport interface MenuBarTriggerProps {\n asChild?: boolean;\n disabled?: boolean;\n}\n\nexport interface MenuBarContentProps {\n asChild?: boolean;\n teleport?: boolean;\n teleportTo?: string | HTMLElement;\n}\n\nexport interface MenuBarSlots {\n default?: () => VNodeChild;\n}\n\nexport type MenuBarEmits = { \"update:modelValue\": [value: string | null] };\nexport type MenuBarMenuEmits = { select: [details: DropdownEmits[\"select\"][0]] };\n\nexport interface MenuBarContext {\n activeValue: Ref<string | null>;\n pendingPointerValue: Ref<string | null>;\n rovingValue: Ref<string | null>;\n disabled: Ref<boolean>;\n setActive: (value: string | null) => void;\n switchByPointer: (value: string) => void;\n refreshRoving: () => void;\n move: (from: string, direction: -1 | 1, keepOpen: boolean) => void;\n focusEdge: (edge: \"first\" | \"last\", keepOpen: boolean) => void;\n}\n\nexport interface MenuBarMenuContext {\n value: string;\n}\n\nexport const menuBarContextKey: InjectionKey<MenuBarContext> = Symbol(\"kappa-menu-bar\");\nexport const menuBarMenuContextKey: InjectionKey<MenuBarMenuContext> = Symbol(\"kappa-menu-bar-menu\");\n","<script setup lang=\"ts\">\nimport { computed, nextTick, provide, ref, watch } from \"vue\";\nimport { menuBarContextKey, type MenuBarEmits, type MenuBarProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<MenuBarProps>(), {\n defaultValue: null,\n disabled: false,\n});\nconst emit = defineEmits<MenuBarEmits>();\ndefineSlots<MenuBarSlots>();\n\nconst root = ref<HTMLElement | null>(null);\nconst internalValue = ref<string | null>(props.defaultValue);\nconst activeValue = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\nconst rovingValue = ref<string | null>(null);\nconst pendingPointerValue = ref<string | null>(null);\nlet pointerSwitchVersion = 0;\nconst disabled = computed(() => props.disabled);\n\nconst triggers = () => Array.from(root.value?.querySelectorAll<HTMLElement>(\n '[data-menu-bar-trigger]:not(:disabled):not([aria-disabled=\"true\"])',\n) ?? []);\n\nconst setActive = (value: string | null) => {\n if ((props.disabled && value !== null) || value === activeValue.value) return;\n if (props.modelValue === undefined) internalValue.value = value;\n emit(\"update:modelValue\", value);\n};\n\nconst switchByPointer = async (value: string) => {\n const version = ++pointerSwitchVersion;\n pendingPointerValue.value = value;\n // Give the previous Ark menu a closed render before opening the next one.\n setActive(null);\n await nextTick();\n if (version !== pointerSwitchVersion) return;\n setActive(value);\n pendingPointerValue.value = null;\n};\n\nconst refreshRoving = () => {\n const entries = triggers();\n if (entries.some((entry) => entry.dataset.menuBarValue === rovingValue.value)) return;\n rovingValue.value = entries[0]?.dataset.menuBarValue ?? null;\n};\n\nwatch(() => props.disabled, (value) => { if (value) setActive(null); });\n\nconst focusTrigger = async (trigger: HTMLElement, keepOpen: boolean) => {\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (keepOpen) {\n setActive(null);\n await nextTick();\n }\n rovingValue.value = value;\n trigger.focus({ preventScroll: true });\n if (keepOpen) {\n await nextTick();\n setActive(value);\n }\n};\n\nconst move = (from: string, direction: -1 | 1, keepOpen: boolean) => {\n const entries = triggers();\n if (!entries.length) return;\n const current = entries.findIndex((entry) => entry.dataset.menuBarValue === from);\n const next = entries[(current + direction + entries.length) % entries.length];\n if (next) void focusTrigger(next, keepOpen);\n};\n\nconst focusEdge = (edge: \"first\" | \"last\", keepOpen: boolean) => {\n const entries = triggers();\n const target = edge === \"first\" ? entries[0] : entries.at(-1);\n if (target) focusTrigger(target, keepOpen);\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n const target = event.target;\n if (!(target instanceof HTMLElement) || !root.value?.contains(target)) return;\n const trigger = target.closest<HTMLElement>('[data-menu-bar-trigger]');\n if (!trigger) return;\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (event.key === \"ArrowRight\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n event.stopPropagation();\n move(value, event.key === \"ArrowRight\" ? 1 : -1, activeValue.value !== null);\n } else if (event.key === \"Home\" || event.key === \"End\") {\n event.preventDefault();\n event.stopPropagation();\n focusEdge(event.key === \"Home\" ? \"first\" : \"last\", activeValue.value !== null);\n } else if (event.key === \"Escape\" && activeValue.value !== null) {\n event.preventDefault();\n setActive(null);\n }\n};\n\nprovide(menuBarContextKey, { activeValue, pendingPointerValue, rovingValue, disabled, setActive, switchByPointer, refreshRoving, move, focusEdge });\n</script>\n\n<template>\n <div\n ref=\"root\"\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar\"\n data-slot=\"menu-bar\"\n role=\"menubar\"\n aria-orientation=\"horizontal\"\n :aria-disabled=\"props.disabled ? 'true' : undefined\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </div>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, provide, ref, watch } from \"vue\";\nimport { menuBarContextKey, type MenuBarEmits, type MenuBarProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<MenuBarProps>(), {\n defaultValue: null,\n disabled: false,\n});\nconst emit = defineEmits<MenuBarEmits>();\ndefineSlots<MenuBarSlots>();\n\nconst root = ref<HTMLElement | null>(null);\nconst internalValue = ref<string | null>(props.defaultValue);\nconst activeValue = computed(() => props.modelValue === undefined ? internalValue.value : props.modelValue);\nconst rovingValue = ref<string | null>(null);\nconst pendingPointerValue = ref<string | null>(null);\nlet pointerSwitchVersion = 0;\nconst disabled = computed(() => props.disabled);\n\nconst triggers = () => Array.from(root.value?.querySelectorAll<HTMLElement>(\n '[data-menu-bar-trigger]:not(:disabled):not([aria-disabled=\"true\"])',\n) ?? []);\n\nconst setActive = (value: string | null) => {\n if ((props.disabled && value !== null) || value === activeValue.value) return;\n if (props.modelValue === undefined) internalValue.value = value;\n emit(\"update:modelValue\", value);\n};\n\nconst switchByPointer = async (value: string) => {\n const version = ++pointerSwitchVersion;\n pendingPointerValue.value = value;\n // Give the previous Ark menu a closed render before opening the next one.\n setActive(null);\n await nextTick();\n if (version !== pointerSwitchVersion) return;\n setActive(value);\n pendingPointerValue.value = null;\n};\n\nconst refreshRoving = () => {\n const entries = triggers();\n if (entries.some((entry) => entry.dataset.menuBarValue === rovingValue.value)) return;\n rovingValue.value = entries[0]?.dataset.menuBarValue ?? null;\n};\n\nwatch(() => props.disabled, (value) => { if (value) setActive(null); });\n\nconst focusTrigger = async (trigger: HTMLElement, keepOpen: boolean) => {\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (keepOpen) {\n setActive(null);\n await nextTick();\n }\n rovingValue.value = value;\n trigger.focus({ preventScroll: true });\n if (keepOpen) {\n await nextTick();\n setActive(value);\n }\n};\n\nconst move = (from: string, direction: -1 | 1, keepOpen: boolean) => {\n const entries = triggers();\n if (!entries.length) return;\n const current = entries.findIndex((entry) => entry.dataset.menuBarValue === from);\n const next = entries[(current + direction + entries.length) % entries.length];\n if (next) void focusTrigger(next, keepOpen);\n};\n\nconst focusEdge = (edge: \"first\" | \"last\", keepOpen: boolean) => {\n const entries = triggers();\n const target = edge === \"first\" ? entries[0] : entries.at(-1);\n if (target) focusTrigger(target, keepOpen);\n};\n\nconst onKeydown = (event: KeyboardEvent) => {\n const target = event.target;\n if (!(target instanceof HTMLElement) || !root.value?.contains(target)) return;\n const trigger = target.closest<HTMLElement>('[data-menu-bar-trigger]');\n if (!trigger) return;\n const value = trigger.dataset.menuBarValue;\n if (!value) return;\n if (event.key === \"ArrowRight\" || event.key === \"ArrowLeft\") {\n event.preventDefault();\n event.stopPropagation();\n move(value, event.key === \"ArrowRight\" ? 1 : -1, activeValue.value !== null);\n } else if (event.key === \"Home\" || event.key === \"End\") {\n event.preventDefault();\n event.stopPropagation();\n focusEdge(event.key === \"Home\" ? \"first\" : \"last\", activeValue.value !== null);\n } else if (event.key === \"Escape\" && activeValue.value !== null) {\n event.preventDefault();\n setActive(null);\n }\n};\n\nprovide(menuBarContextKey, { activeValue, pendingPointerValue, rovingValue, disabled, setActive, switchByPointer, refreshRoving, move, focusEdge });\n</script>\n\n<template>\n <div\n ref=\"root\"\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar\"\n data-slot=\"menu-bar\"\n role=\"menubar\"\n aria-orientation=\"horizontal\"\n :aria-disabled=\"props.disabled ? 'true' : undefined\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </div>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Dropdown } from \"../dropdown\";\nimport { computed, inject, provide } from \"vue\";\nimport {\n menuBarContextKey,\n menuBarMenuContextKey,\n type MenuBarMenuEmits,\n type MenuBarMenuProps,\n type MenuBarSlots,\n} from \"./menu-bar\";\n\nconst props = defineProps<MenuBarMenuProps>();\nconst emit = defineEmits<MenuBarMenuEmits>();\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nif (!bar) throw new Error(\"MenuBar.Menu must be inside MenuBar.Root\");\nprovide(menuBarMenuContextKey, { value: props.value });\n\nconst open = computed(() => bar.activeValue.value === props.value);\nconst onOpenUpdate = (next: boolean) => {\n if (next) bar.setActive(props.value);\n else if (open.value) bar.setActive(null);\n};\n</script>\n\n<template>\n <Dropdown.Root\n :aria-label=\"props.ariaLabel\"\n :open=\"open\"\n @update:open=\"onOpenUpdate\"\n @select=\"emit('select', $event)\"\n >\n <slot />\n </Dropdown.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { Dropdown } from \"../dropdown\";\nimport { computed, inject, provide } from \"vue\";\nimport {\n menuBarContextKey,\n menuBarMenuContextKey,\n type MenuBarMenuEmits,\n type MenuBarMenuProps,\n type MenuBarSlots,\n} from \"./menu-bar\";\n\nconst props = defineProps<MenuBarMenuProps>();\nconst emit = defineEmits<MenuBarMenuEmits>();\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nif (!bar) throw new Error(\"MenuBar.Menu must be inside MenuBar.Root\");\nprovide(menuBarMenuContextKey, { value: props.value });\n\nconst open = computed(() => bar.activeValue.value === props.value);\nconst onOpenUpdate = (next: boolean) => {\n if (next) bar.setActive(props.value);\n else if (open.value) bar.setActive(null);\n};\n</script>\n\n<template>\n <Dropdown.Root\n :aria-label=\"props.ariaLabel\"\n :open=\"open\"\n @update:open=\"onOpenUpdate\"\n @select=\"emit('select', $event)\"\n >\n <slot />\n </Dropdown.Root>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, inject, nextTick, onMounted, onUnmounted, watch } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarSlots, type MenuBarTriggerProps } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarTriggerProps>(), { asChild: false, disabled: false });\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Trigger must be inside MenuBar.Menu\");\nconst resolvedDisabled = computed(() => props.disabled || bar.disabled.value);\nlet pointerSwitchTimer: ReturnType<typeof setTimeout> | null = null;\nconst cancelPointerSwitch = () => {\n if (pointerSwitchTimer !== null) clearTimeout(pointerSwitchTimer);\n pointerSwitchTimer = null;\n};\nconst tabIndex = computed(() => {\n if (resolvedDisabled.value) return -1;\n return bar.rovingValue.value === menu.value ? 0 : -1;\n});\n\nonMounted(() => {\n if (bar.rovingValue.value === null && !resolvedDisabled.value) bar.rovingValue.value = menu.value;\n});\n\nonUnmounted(() => {\n cancelPointerSwitch();\n if (bar.activeValue.value === menu.value) bar.setActive(null);\n if (bar.rovingValue.value === menu.value) bar.rovingValue.value = null;\n void nextTick(bar.refreshRoving);\n});\n\nwatch(resolvedDisabled, (value) => {\n if (value && bar.activeValue.value === menu.value) bar.setActive(null);\n void nextTick(bar.refreshRoving);\n});\n\nconst onFocus = () => { if (!resolvedDisabled.value) bar.rovingValue.value = menu.value; };\nconst onPointerEnter = (event: PointerEvent) => {\n if (event.pointerType !== \"mouse\") return;\n if (resolvedDisabled.value ||\n (bar.activeValue.value === null && bar.pendingPointerValue.value === null) ||\n bar.activeValue.value === menu.value) return;\n cancelPointerSwitch();\n pointerSwitchTimer = setTimeout(() => {\n pointerSwitchTimer = null;\n if (!resolvedDisabled.value &&\n (bar.activeValue.value !== null || bar.pendingPointerValue.value !== null) &&\n bar.activeValue.value !== menu.value) bar.switchByPointer(menu.value);\n }, 90);\n};\n</script>\n\n<template>\n <Dropdown.Trigger\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__trigger\"\n data-menu-bar-trigger=\"\"\n :data-menu-bar-value=\"menu.value\"\n :as-child=\"props.asChild\"\n :disabled=\"resolvedDisabled\"\n :tabindex=\"tabIndex\"\n role=\"menuitem\"\n @focus=\"onFocus\"\n @pointerenter=\"onPointerEnter\"\n @pointerleave=\"cancelPointerSwitch\"\n >\n <slot />\n </Dropdown.Trigger>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed, inject, nextTick, onMounted, onUnmounted, watch } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarSlots, type MenuBarTriggerProps } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarTriggerProps>(), { asChild: false, disabled: false });\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Trigger must be inside MenuBar.Menu\");\nconst resolvedDisabled = computed(() => props.disabled || bar.disabled.value);\nlet pointerSwitchTimer: ReturnType<typeof setTimeout> | null = null;\nconst cancelPointerSwitch = () => {\n if (pointerSwitchTimer !== null) clearTimeout(pointerSwitchTimer);\n pointerSwitchTimer = null;\n};\nconst tabIndex = computed(() => {\n if (resolvedDisabled.value) return -1;\n return bar.rovingValue.value === menu.value ? 0 : -1;\n});\n\nonMounted(() => {\n if (bar.rovingValue.value === null && !resolvedDisabled.value) bar.rovingValue.value = menu.value;\n});\n\nonUnmounted(() => {\n cancelPointerSwitch();\n if (bar.activeValue.value === menu.value) bar.setActive(null);\n if (bar.rovingValue.value === menu.value) bar.rovingValue.value = null;\n void nextTick(bar.refreshRoving);\n});\n\nwatch(resolvedDisabled, (value) => {\n if (value && bar.activeValue.value === menu.value) bar.setActive(null);\n void nextTick(bar.refreshRoving);\n});\n\nconst onFocus = () => { if (!resolvedDisabled.value) bar.rovingValue.value = menu.value; };\nconst onPointerEnter = (event: PointerEvent) => {\n if (event.pointerType !== \"mouse\") return;\n if (resolvedDisabled.value ||\n (bar.activeValue.value === null && bar.pendingPointerValue.value === null) ||\n bar.activeValue.value === menu.value) return;\n cancelPointerSwitch();\n pointerSwitchTimer = setTimeout(() => {\n pointerSwitchTimer = null;\n if (!resolvedDisabled.value &&\n (bar.activeValue.value !== null || bar.pendingPointerValue.value !== null) &&\n bar.activeValue.value !== menu.value) bar.switchByPointer(menu.value);\n }, 90);\n};\n</script>\n\n<template>\n <Dropdown.Trigger\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__trigger\"\n data-menu-bar-trigger=\"\"\n :data-menu-bar-value=\"menu.value\"\n :as-child=\"props.asChild\"\n :disabled=\"resolvedDisabled\"\n :tabindex=\"tabIndex\"\n role=\"menuitem\"\n @focus=\"onFocus\"\n @pointerenter=\"onPointerEnter\"\n @pointerleave=\"cancelPointerSwitch\"\n >\n <slot />\n </Dropdown.Trigger>\n</template>\n\n<style src=\"./menu-bar.css\"></style>\n","<script setup lang=\"ts\">\nimport { inject } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarContentProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarContentProps>(), {\n asChild: false,\n teleport: true,\n teleportTo: \"body\",\n});\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Content must be inside MenuBar.Menu\");\n\nconst onKeydown = (event: KeyboardEvent) => {\n if (event.key !== \"ArrowRight\" && event.key !== \"ArrowLeft\") return;\n const target = event.target;\n if (!(target instanceof HTMLElement)) return;\n const highlightedSubTrigger = event.currentTarget instanceof HTMLElement &&\n event.currentTarget.querySelector('[data-slot=\"dropdown-sub-trigger\"][data-highlighted]');\n if (event.key === \"ArrowRight\" &&\n (target.closest('[data-slot=\"dropdown-sub-trigger\"]') || highlightedSubTrigger)) return;\n event.preventDefault();\n event.stopPropagation();\n bar.move(menu.value, event.key === \"ArrowRight\" ? 1 : -1, true);\n};\n</script>\n\n<template>\n <Dropdown.Content\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__content\"\n data-menu-bar-content=\"\"\n :as-child=\"props.asChild\"\n :teleport=\"props.teleport\"\n :teleport-to=\"props.teleportTo\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </Dropdown.Content>\n</template>\n","<script setup lang=\"ts\">\nimport { inject } from \"vue\";\nimport { Dropdown } from \"../dropdown\";\nimport { menuBarContextKey, menuBarMenuContextKey, type MenuBarContentProps, type MenuBarSlots } from \"./menu-bar\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<MenuBarContentProps>(), {\n asChild: false,\n teleport: true,\n teleportTo: \"body\",\n});\ndefineSlots<MenuBarSlots>();\nconst bar = inject(menuBarContextKey);\nconst menu = inject(menuBarMenuContextKey);\nif (!bar || !menu) throw new Error(\"MenuBar.Content must be inside MenuBar.Menu\");\n\nconst onKeydown = (event: KeyboardEvent) => {\n if (event.key !== \"ArrowRight\" && event.key !== \"ArrowLeft\") return;\n const target = event.target;\n if (!(target instanceof HTMLElement)) return;\n const highlightedSubTrigger = event.currentTarget instanceof HTMLElement &&\n event.currentTarget.querySelector('[data-slot=\"dropdown-sub-trigger\"][data-highlighted]');\n if (event.key === \"ArrowRight\" &&\n (target.closest('[data-slot=\"dropdown-sub-trigger\"]') || highlightedSubTrigger)) return;\n event.preventDefault();\n event.stopPropagation();\n bar.move(menu.value, event.key === \"ArrowRight\" ? 1 : -1, true);\n};\n</script>\n\n<template>\n <Dropdown.Content\n v-bind=\"$attrs\"\n class=\"kappa-menu-bar__content\"\n data-menu-bar-content=\"\"\n :as-child=\"props.asChild\"\n :teleport=\"props.teleport\"\n :teleport-to=\"props.teleportTo\"\n @keydown.capture=\"onKeydown\"\n >\n <slot />\n </Dropdown.Content>\n</template>\n","<script setup lang=\"ts\">\nimport { useMenuContext } from \"@ark-ui/vue/menu\";\nimport { Dropdown, type DropdownSubTriggerProps, type DropdownSubTriggerSlots } from \"../dropdown\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<DropdownSubTriggerProps>();\ndefineSlots<DropdownSubTriggerSlots>();\nconst menu = useMenuContext();\n\nconst openWithPointer = () => {\n if (!props.disabled) menu.value.setOpen(true);\n};\n\nconst openOnHover = (event: PointerEvent) => {\n if (event.pointerType === \"mouse\") openWithPointer();\n};\n\nconst keepOpenAcrossPortal = (event: PointerEvent) => {\n // Keep the portalled child reachable; parent item navigation still dismisses it.\n if (menu.value.open) event.stopImmediatePropagation();\n};\n</script>\n\n<template>\n <Dropdown.SubTrigger\n v-bind=\"{ ...$attrs, ...props }\"\n @pointerenter=\"openOnHover\"\n @pointerleave.capture=\"keepOpenAcrossPortal\"\n @click=\"openWithPointer\"\n >\n <slot />\n <template v-if=\"$slots.icon\" #icon><slot name=\"icon\" /></template>\n <template v-if=\"$slots.end\" #end><slot name=\"end\" /></template>\n </Dropdown.SubTrigger>\n</template>\n","<script setup lang=\"ts\">\nimport { useMenuContext } from \"@ark-ui/vue/menu\";\nimport { Dropdown, type DropdownSubTriggerProps, type DropdownSubTriggerSlots } from \"../dropdown\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<DropdownSubTriggerProps>();\ndefineSlots<DropdownSubTriggerSlots>();\nconst menu = useMenuContext();\n\nconst openWithPointer = () => {\n if (!props.disabled) menu.value.setOpen(true);\n};\n\nconst openOnHover = (event: PointerEvent) => {\n if (event.pointerType === \"mouse\") openWithPointer();\n};\n\nconst keepOpenAcrossPortal = (event: PointerEvent) => {\n // Keep the portalled child reachable; parent item navigation still dismisses it.\n if (menu.value.open) event.stopImmediatePropagation();\n};\n</script>\n\n<template>\n <Dropdown.SubTrigger\n v-bind=\"{ ...$attrs, ...props }\"\n @pointerenter=\"openOnHover\"\n @pointerleave.capture=\"keepOpenAcrossPortal\"\n @click=\"openWithPointer\"\n >\n <slot />\n <template v-if=\"$slots.icon\" #icon><slot name=\"icon\" /></template>\n <template v-if=\"$slots.end\" #end><slot name=\"end\" /></template>\n </Dropdown.SubTrigger>\n</template>\n","import MenuBarRoot from \"./MenuBar.vue\";\nimport MenuBarMenu from \"./MenuBarMenu.vue\";\nimport MenuBarTrigger from \"./MenuBarTrigger.vue\";\nimport MenuBarContent from \"./MenuBarContent.vue\";\nimport MenuBarSubTrigger from \"./MenuBarSubTrigger.vue\";\nimport { Dropdown } from \"../dropdown\";\n\nexport const MenuBar = Object.assign(MenuBarRoot, {\n Root: MenuBarRoot,\n Menu: MenuBarMenu,\n Trigger: MenuBarTrigger,\n Content: MenuBarContent,\n Item: Dropdown.Item,\n LinkItem: Dropdown.LinkItem,\n CheckboxItem: Dropdown.CheckboxItem,\n RadioGroup: Dropdown.RadioGroup,\n RadioItem: Dropdown.RadioItem,\n Group: Dropdown.Group,\n Label: Dropdown.Label,\n Separator: Dropdown.Separator,\n Shortcut: Dropdown.Shortcut,\n Sub: Dropdown.Sub,\n SubTrigger: MenuBarSubTrigger,\n SubContent: Dropdown.SubContent,\n});\n\nexport { MenuBarRoot, MenuBarMenu, MenuBarTrigger, MenuBarContent, MenuBarSubTrigger };\nexport type {\n MenuBarProps,\n MenuBarMenuProps,\n MenuBarTriggerProps,\n MenuBarContentProps,\n MenuBarEmits,\n MenuBarMenuEmits,\n} from \"./menu-bar\";\n"],"mappings":";;;;AAqDA,IAAa,IAAkD,OAAO,gBAAgB,GACzE,IAA0D,OAAO,qBAAqB;;;;;;;;;;;;;EChDnG,IAAM,IAAQ,GAIR,IAAO,GAGP,IAAO,EAAwB,IAAI,GACnC,IAAgB,EAAmB,EAAM,YAAY,GACrD,IAAc,QAAe,EAAM,eAAe,KAAA,IAAY,EAAc,QAAQ,EAAM,UAAU,GACpG,IAAc,EAAmB,IAAI,GACrC,IAAsB,EAAmB,IAAI,GAC/C,IAAuB,GACrB,IAAW,QAAe,EAAM,QAAQ,GAExC,UAAiB,MAAM,KAAK,EAAK,OAAO,iBAC5C,sEACF,KAAK,CAAC,CAAC,GAED,KAAa,MAAyB;GACrC,EAAM,YAAY,MAAU,QAAS,MAAU,EAAY,UAC5D,EAAM,eAAe,KAAA,MAAW,EAAc,QAAQ,IAC1D,EAAK,qBAAqB,CAAK;EACjC,GAEM,IAAkB,OAAO,MAAkB;GAC/C,IAA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AwB,MAAwB;GAEpD,AAAI,EAAK,MAAM,QAAM,EAAM,yBAAyB;EACtD;oBAIE,EAAA,GAAA,EASsB,EAAA,CAAA,CAAA,CAAA,YATtB,EASsB;GAAA,GARPC,EAAAA;GAAM,GAAK;EAAK,GAAA;GAC5B,gBAAc;GACQ,uBAAA;GACtB,SAAO;;GAER,SAAA,QAAQ,CAAR,EAAQ,EAAA,QAAA,SAAA,CAAA,CAAA;;EACQC,GAAAA,CAAAA,EAAAA,OAAO,OAAA;GAAO,MAAA;GAAK,IAAA,QAAoB,CAApB,EAAoB,EAAA,QAAA,MAAA,CAAA,CAAA;;EACvCA,IAAAA,KAAAA,GAAAA,EAAAA,OAAO,MAAA;GAAM,MAAA;GAAI,IAAA,QAAmB,CAAnB,EAAmB,EAAA,QAAA,KAAA,CAAA,CAAA;;;;IEzB3C,IAAU,OAAO,OAAO,GAAa;CAChD,MAAM;CACN,MAAM;CACN,SAAS;CACT,SAAS;CACT,MAAM,EAAS;CACf,UAAU,EAAS;CACnB,cAAc,EAAS;CACvB,YAAY,EAAS;CACrB,WAAW,EAAS;CACpB,OAAO,EAAS;CAChB,OAAO,EAAS;CAChB,WAAW,EAAS;CACpB,UAAU,EAAS;CACnB,KAAK,EAAS;CACd,YAAY;CACZ,YAAY,EAAS;AACvB,CAAC"}
|
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, guardReactiveProps as o, mergeProps as s, nextTick as c, normalizeProps as l, onMounted as u, openBlock as d, ref as f, renderSlot as p, unref as m, withCtx as h } from "vue";
|
|
2
|
+
import { NavigationMenu as g, navigationMenuAnatomy as _, useNavigationMenu as v, useNavigationMenuContext as y } from "@ark-ui/vue/navigation-menu";
|
|
3
|
+
//#region src/components/navigation-menu/use-navigation-menu.ts
|
|
4
|
+
function b(t = {}, n) {
|
|
5
|
+
let r = f(!1), i = !0, a = v(e(() => {
|
|
6
|
+
let e = m(t);
|
|
7
|
+
return {
|
|
8
|
+
...e,
|
|
9
|
+
value: r.value ? e.value : "",
|
|
10
|
+
onValueChange(t) {
|
|
11
|
+
i || (n?.("valueChange", t), n?.("update:value", t.value), e.onValueChange?.(t));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}));
|
|
15
|
+
return u(async () => {
|
|
16
|
+
await c(), r.value = !0, await c();
|
|
17
|
+
let e = m(t);
|
|
18
|
+
e.value === void 0 && e.defaultValue && a.value.setValue(e.defaultValue), await c(), i = !1;
|
|
19
|
+
}), e(() => ({
|
|
20
|
+
...a.value,
|
|
21
|
+
getContentProps(e) {
|
|
22
|
+
let n = a.value.getContentProps(e);
|
|
23
|
+
return {
|
|
24
|
+
...n,
|
|
25
|
+
onPointerleave: m(t).disablePointerLeaveClose ? void 0 : n.onPointerleave
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
getTriggerProps(e) {
|
|
29
|
+
let n = a.value.getTriggerProps(e);
|
|
30
|
+
return {
|
|
31
|
+
...n,
|
|
32
|
+
onPointerdown(e) {
|
|
33
|
+
e.pointerType !== "mouse" || m(t).disableClickTrigger || (n.onPointerleave?.(e), a.value.getViewportProps().onPointerenter?.(e));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/components/navigation-menu/navigation-menu-attrs.ts
|
|
41
|
+
function x(e) {
|
|
42
|
+
let { lazyMount: t, unmountOnExit: n, "lazy-mount": r, "unmount-on-exit": i, ...a } = e;
|
|
43
|
+
return a;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/components/navigation-menu/NavigationMenu.vue
|
|
47
|
+
var S = /* @__PURE__ */ a({
|
|
48
|
+
inheritAttrs: !1,
|
|
49
|
+
__name: "NavigationMenu",
|
|
50
|
+
props: {
|
|
51
|
+
size: { default: "md" },
|
|
52
|
+
closeDelay: {},
|
|
53
|
+
defaultValue: {},
|
|
54
|
+
disableClickTrigger: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: void 0
|
|
57
|
+
},
|
|
58
|
+
disableHoverTrigger: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: void 0
|
|
61
|
+
},
|
|
62
|
+
disablePointerLeaveClose: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: void 0
|
|
65
|
+
},
|
|
66
|
+
id: {},
|
|
67
|
+
ids: {},
|
|
68
|
+
openDelay: {},
|
|
69
|
+
orientation: {},
|
|
70
|
+
translations: {},
|
|
71
|
+
value: {}
|
|
72
|
+
},
|
|
73
|
+
emits: ["valueChange", "update:value"],
|
|
74
|
+
setup(n, { emit: r }) {
|
|
75
|
+
let i = n, a = r, o = b(e(() => {
|
|
76
|
+
let { size: e, ...t } = i;
|
|
77
|
+
return t;
|
|
78
|
+
}), a);
|
|
79
|
+
return (e, n) => (d(), t(m(g).RootProvider, s(m(x)(e.$attrs), {
|
|
80
|
+
value: m(o),
|
|
81
|
+
"lazy-mount": !1,
|
|
82
|
+
"unmount-on-exit": !1,
|
|
83
|
+
class: "kappa-navigation-menu",
|
|
84
|
+
"data-slot": "navigation-menu",
|
|
85
|
+
"data-size": i.size
|
|
86
|
+
}), {
|
|
87
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
88
|
+
_: 3
|
|
89
|
+
}, 16, ["value", "data-size"]));
|
|
90
|
+
}
|
|
91
|
+
}), C = /* @__PURE__ */ a({
|
|
92
|
+
inheritAttrs: !1,
|
|
93
|
+
__name: "NavigationMenuRootProvider",
|
|
94
|
+
props: {
|
|
95
|
+
value: {},
|
|
96
|
+
size: { default: "md" }
|
|
97
|
+
},
|
|
98
|
+
setup(e) {
|
|
99
|
+
let n = e;
|
|
100
|
+
return (e, r) => (d(), t(m(g).RootProvider, s(m(x)(e.$attrs), {
|
|
101
|
+
value: n.value,
|
|
102
|
+
"lazy-mount": !1,
|
|
103
|
+
"unmount-on-exit": !1,
|
|
104
|
+
class: "kappa-navigation-menu",
|
|
105
|
+
"data-slot": "navigation-menu",
|
|
106
|
+
"data-size": n.size
|
|
107
|
+
}), {
|
|
108
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
109
|
+
_: 3
|
|
110
|
+
}, 16, ["value", "data-size"]));
|
|
111
|
+
}
|
|
112
|
+
}), w = /* @__PURE__ */ a({
|
|
113
|
+
inheritAttrs: !1,
|
|
114
|
+
__name: "NavigationMenuList",
|
|
115
|
+
props: { asChild: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !1
|
|
118
|
+
} },
|
|
119
|
+
setup(e) {
|
|
120
|
+
let n = e;
|
|
121
|
+
return (e, r) => (d(), t(m(g).List, s({
|
|
122
|
+
...e.$attrs,
|
|
123
|
+
...n
|
|
124
|
+
}, {
|
|
125
|
+
class: "kappa-navigation-menu__list",
|
|
126
|
+
"data-slot": "navigation-menu-list"
|
|
127
|
+
}), {
|
|
128
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 16));
|
|
131
|
+
}
|
|
132
|
+
}), T = /* @__PURE__ */ a({
|
|
133
|
+
inheritAttrs: !1,
|
|
134
|
+
__name: "NavigationMenuItem",
|
|
135
|
+
props: {
|
|
136
|
+
value: {},
|
|
137
|
+
disabled: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
141
|
+
asChild: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: !1
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
setup(e) {
|
|
147
|
+
let n = e;
|
|
148
|
+
return (e, r) => (d(), t(m(g).Item, s({
|
|
149
|
+
...e.$attrs,
|
|
150
|
+
...n
|
|
151
|
+
}, {
|
|
152
|
+
class: "kappa-navigation-menu__item",
|
|
153
|
+
"data-slot": "navigation-menu-item"
|
|
154
|
+
}), {
|
|
155
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
156
|
+
_: 3
|
|
157
|
+
}, 16));
|
|
158
|
+
}
|
|
159
|
+
}), E = {
|
|
160
|
+
key: 0,
|
|
161
|
+
class: "kappa-navigation-menu__chevron",
|
|
162
|
+
viewBox: "0 0 16 16",
|
|
163
|
+
fill: "none",
|
|
164
|
+
"aria-hidden": "true",
|
|
165
|
+
focusable: "false"
|
|
166
|
+
}, D = /* @__PURE__ */ a({
|
|
167
|
+
inheritAttrs: !1,
|
|
168
|
+
__name: "NavigationMenuTrigger",
|
|
169
|
+
props: {
|
|
170
|
+
showIndicator: {
|
|
171
|
+
type: Boolean,
|
|
172
|
+
default: !0
|
|
173
|
+
},
|
|
174
|
+
disabled: {
|
|
175
|
+
type: Boolean,
|
|
176
|
+
default: void 0
|
|
177
|
+
},
|
|
178
|
+
asChild: {
|
|
179
|
+
type: Boolean,
|
|
180
|
+
default: !1
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
setup(e) {
|
|
184
|
+
let a = e;
|
|
185
|
+
return (e, o) => (d(), t(m(g).Trigger, s(e.$attrs, {
|
|
186
|
+
"as-child": a.asChild,
|
|
187
|
+
disabled: a.disabled,
|
|
188
|
+
class: "kappa-navigation-menu__trigger",
|
|
189
|
+
"data-slot": "navigation-menu-trigger"
|
|
190
|
+
}), {
|
|
191
|
+
default: h(() => [p(e.$slots, "default"), a.showIndicator && !a.asChild ? (d(), r("svg", E, [...o[0] ||= [i("path", { d: "m4.5 6.25 3.5 3.5 3.5-3.5" }, null, -1)]])) : n("", !0)]),
|
|
192
|
+
_: 3
|
|
193
|
+
}, 16, ["as-child", "disabled"]));
|
|
194
|
+
}
|
|
195
|
+
}), O = /* @__PURE__ */ a({
|
|
196
|
+
inheritAttrs: !1,
|
|
197
|
+
__name: "NavigationMenuContent",
|
|
198
|
+
props: {
|
|
199
|
+
value: {},
|
|
200
|
+
asChild: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
default: !1
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
setup(e) {
|
|
206
|
+
let n = e;
|
|
207
|
+
return (e, r) => (d(), t(m(g).Content, s({
|
|
208
|
+
...e.$attrs,
|
|
209
|
+
...n
|
|
210
|
+
}, {
|
|
211
|
+
class: "kappa-navigation-menu__content",
|
|
212
|
+
"data-slot": "navigation-menu-content"
|
|
213
|
+
}), {
|
|
214
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
215
|
+
_: 3
|
|
216
|
+
}, 16));
|
|
217
|
+
}
|
|
218
|
+
}), k = /* @__PURE__ */ a({
|
|
219
|
+
inheritAttrs: !1,
|
|
220
|
+
__name: "NavigationMenuLink",
|
|
221
|
+
props: {
|
|
222
|
+
value: {},
|
|
223
|
+
current: {
|
|
224
|
+
type: Boolean,
|
|
225
|
+
default: void 0
|
|
226
|
+
},
|
|
227
|
+
onSelect: {},
|
|
228
|
+
closeOnClick: {
|
|
229
|
+
type: Boolean,
|
|
230
|
+
default: !0
|
|
231
|
+
},
|
|
232
|
+
asChild: {
|
|
233
|
+
type: Boolean,
|
|
234
|
+
default: !1
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
setup(e) {
|
|
238
|
+
let n = e;
|
|
239
|
+
return (e, r) => (d(), t(m(g).Link, s({
|
|
240
|
+
...e.$attrs,
|
|
241
|
+
...n
|
|
242
|
+
}, {
|
|
243
|
+
class: "kappa-navigation-menu__link",
|
|
244
|
+
"data-slot": "navigation-menu-link"
|
|
245
|
+
}), {
|
|
246
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
247
|
+
_: 3
|
|
248
|
+
}, 16));
|
|
249
|
+
}
|
|
250
|
+
}), A = /* @__PURE__ */ a({
|
|
251
|
+
inheritAttrs: !1,
|
|
252
|
+
__name: "NavigationMenuViewportPositioner",
|
|
253
|
+
props: {
|
|
254
|
+
align: { default: "center" },
|
|
255
|
+
asChild: {
|
|
256
|
+
type: Boolean,
|
|
257
|
+
default: !1
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
setup(e) {
|
|
261
|
+
let n = e;
|
|
262
|
+
return (e, r) => (d(), t(m(g).ViewportPositioner, s({
|
|
263
|
+
...e.$attrs,
|
|
264
|
+
...n
|
|
265
|
+
}, {
|
|
266
|
+
class: "kappa-navigation-menu__viewport-positioner",
|
|
267
|
+
"data-slot": "navigation-menu-viewport-positioner"
|
|
268
|
+
}), {
|
|
269
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
270
|
+
_: 3
|
|
271
|
+
}, 16));
|
|
272
|
+
}
|
|
273
|
+
}), j = /* @__PURE__ */ a({
|
|
274
|
+
inheritAttrs: !1,
|
|
275
|
+
__name: "NavigationMenuViewport",
|
|
276
|
+
props: { asChild: {
|
|
277
|
+
type: Boolean,
|
|
278
|
+
default: !1
|
|
279
|
+
} },
|
|
280
|
+
setup(e) {
|
|
281
|
+
let n = e;
|
|
282
|
+
return (e, r) => (d(), t(m(g).Viewport, s({
|
|
283
|
+
...e.$attrs,
|
|
284
|
+
...n
|
|
285
|
+
}, {
|
|
286
|
+
class: "kappa-navigation-menu__viewport",
|
|
287
|
+
"data-slot": "navigation-menu-viewport"
|
|
288
|
+
}), {
|
|
289
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
290
|
+
_: 3
|
|
291
|
+
}, 16));
|
|
292
|
+
}
|
|
293
|
+
}), M = /* @__PURE__ */ a({
|
|
294
|
+
inheritAttrs: !1,
|
|
295
|
+
__name: "NavigationMenuIndicator",
|
|
296
|
+
props: { asChild: {
|
|
297
|
+
type: Boolean,
|
|
298
|
+
default: !1
|
|
299
|
+
} },
|
|
300
|
+
setup(e) {
|
|
301
|
+
let n = e;
|
|
302
|
+
return (e, r) => (d(), t(m(g).Indicator, s({
|
|
303
|
+
...e.$attrs,
|
|
304
|
+
...n
|
|
305
|
+
}, {
|
|
306
|
+
class: "kappa-navigation-menu__indicator",
|
|
307
|
+
"data-slot": "navigation-menu-indicator"
|
|
308
|
+
}), {
|
|
309
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
310
|
+
_: 3
|
|
311
|
+
}, 16));
|
|
312
|
+
}
|
|
313
|
+
}), N = /* @__PURE__ */ a({
|
|
314
|
+
inheritAttrs: !1,
|
|
315
|
+
__name: "NavigationMenuItemIndicator",
|
|
316
|
+
props: { asChild: {
|
|
317
|
+
type: Boolean,
|
|
318
|
+
default: !1
|
|
319
|
+
} },
|
|
320
|
+
setup(e) {
|
|
321
|
+
let n = e;
|
|
322
|
+
return (e, r) => (d(), t(m(g).ItemIndicator, s({
|
|
323
|
+
...e.$attrs,
|
|
324
|
+
...n
|
|
325
|
+
}, {
|
|
326
|
+
class: "kappa-navigation-menu__item-indicator",
|
|
327
|
+
"data-slot": "navigation-menu-item-indicator"
|
|
328
|
+
}), {
|
|
329
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
330
|
+
_: 3
|
|
331
|
+
}, 16));
|
|
332
|
+
}
|
|
333
|
+
}), P = /* @__PURE__ */ a({
|
|
334
|
+
inheritAttrs: !1,
|
|
335
|
+
__name: "NavigationMenuArrow",
|
|
336
|
+
props: { asChild: {
|
|
337
|
+
type: Boolean,
|
|
338
|
+
default: !1
|
|
339
|
+
} },
|
|
340
|
+
setup(e) {
|
|
341
|
+
let n = e;
|
|
342
|
+
return (e, r) => (d(), t(m(g).Arrow, s({
|
|
343
|
+
...e.$attrs,
|
|
344
|
+
...n
|
|
345
|
+
}, {
|
|
346
|
+
class: "kappa-navigation-menu__arrow",
|
|
347
|
+
"data-slot": "navigation-menu-arrow"
|
|
348
|
+
}), {
|
|
349
|
+
default: h(() => [p(e.$slots, "default")]),
|
|
350
|
+
_: 3
|
|
351
|
+
}, 16));
|
|
352
|
+
}
|
|
353
|
+
}), F = /* @__PURE__ */ a({
|
|
354
|
+
__name: "NavigationMenuContext",
|
|
355
|
+
setup(e) {
|
|
356
|
+
return (e, n) => (d(), t(m(g).Context, null, {
|
|
357
|
+
default: h((t) => [p(e.$slots, "default", l(o(t)))]),
|
|
358
|
+
_: 3
|
|
359
|
+
}));
|
|
360
|
+
}
|
|
361
|
+
}), I = ["sm", "md"], L = Object.assign(S, {
|
|
362
|
+
Root: S,
|
|
363
|
+
RootProvider: C,
|
|
364
|
+
List: w,
|
|
365
|
+
Item: T,
|
|
366
|
+
Trigger: D,
|
|
367
|
+
Content: O,
|
|
368
|
+
Link: k,
|
|
369
|
+
ViewportPositioner: A,
|
|
370
|
+
Viewport: j,
|
|
371
|
+
Indicator: M,
|
|
372
|
+
ItemIndicator: N,
|
|
373
|
+
Arrow: P,
|
|
374
|
+
Context: F
|
|
375
|
+
});
|
|
376
|
+
//#endregion
|
|
377
|
+
export { S as _, F as a, M as c, k as d, O as f, C as g, w as h, I as i, j as l, T as m, _ as n, P as o, D as p, y as r, N as s, L as t, A as u, b as v };
|
|
378
|
+
|
|
379
|
+
//# sourceMappingURL=navigation-menu-DbfnBaTw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu-DbfnBaTw.js","names":["$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs"],"sources":["../src/components/navigation-menu/use-navigation-menu.ts","../src/components/navigation-menu/navigation-menu-attrs.ts","../src/components/navigation-menu/NavigationMenu.vue","../src/components/navigation-menu/NavigationMenu.vue","../src/components/navigation-menu/NavigationMenuRootProvider.vue","../src/components/navigation-menu/NavigationMenuRootProvider.vue","../src/components/navigation-menu/NavigationMenuList.vue","../src/components/navigation-menu/NavigationMenuList.vue","../src/components/navigation-menu/NavigationMenuItem.vue","../src/components/navigation-menu/NavigationMenuItem.vue","../src/components/navigation-menu/NavigationMenuTrigger.vue","../src/components/navigation-menu/NavigationMenuTrigger.vue","../src/components/navigation-menu/NavigationMenuContent.vue","../src/components/navigation-menu/NavigationMenuContent.vue","../src/components/navigation-menu/NavigationMenuLink.vue","../src/components/navigation-menu/NavigationMenuLink.vue","../src/components/navigation-menu/NavigationMenuViewportPositioner.vue","../src/components/navigation-menu/NavigationMenuViewportPositioner.vue","../src/components/navigation-menu/NavigationMenuViewport.vue","../src/components/navigation-menu/NavigationMenuViewport.vue","../src/components/navigation-menu/NavigationMenuIndicator.vue","../src/components/navigation-menu/NavigationMenuIndicator.vue","../src/components/navigation-menu/NavigationMenuItemIndicator.vue","../src/components/navigation-menu/NavigationMenuItemIndicator.vue","../src/components/navigation-menu/NavigationMenuArrow.vue","../src/components/navigation-menu/NavigationMenuArrow.vue","../src/components/navigation-menu/NavigationMenuContext.vue","../src/components/navigation-menu/NavigationMenuContext.vue","../src/components/navigation-menu/navigation-menu.ts","../src/components/navigation-menu/index.ts"],"sourcesContent":["import {\n useNavigationMenu as useArkNavigationMenu,\n type UseNavigationMenuProps,\n type UseNavigationMenuReturn,\n} from \"@ark-ui/vue/navigation-menu\";\nimport { computed, nextTick, onMounted, ref, unref, type MaybeRef } from \"vue\";\n\n/**\n * Ark 5.39 initializes panel observers on value changes, not initial state.\n * Activate an initial value after the viewport and its teleports are mounted.\n * This also keeps server and hydration output identical. Interaction and state\n * remain owned by Ark; no synthetic selection events are sent.\n */\nexport function useNavigationMenu(\n props: MaybeRef<UseNavigationMenuProps> = {},\n emit?: Parameters<typeof useArkNavigationMenu>[1],\n): UseNavigationMenuReturn {\n const mounted = ref(false);\n let initializing = true;\n const api = useArkNavigationMenu(computed(() => {\n const options = unref<UseNavigationMenuProps>(props);\n return {\n ...options,\n value: mounted.value ? options.value : \"\",\n onValueChange(details) {\n if (initializing) return;\n emit?.(\"valueChange\", details);\n emit?.(\"update:value\", details.value);\n options.onValueChange?.(details);\n },\n };\n }));\n onMounted(async () => {\n await nextTick();\n mounted.value = true;\n await nextTick();\n const options = unref<UseNavigationMenuProps>(props);\n if (options.value === undefined && options.defaultValue) api.value.setValue(options.defaultValue);\n await nextTick();\n initializing = false;\n });\n return computed(() => ({\n ...api.value,\n getContentProps(item) {\n const content = api.value.getContentProps(item);\n // Ark 5.39 guards viewport leave but not the content inside it.\n return {\n ...content,\n onPointerleave: unref<UseNavigationMenuProps>(props).disablePointerLeaveClose\n ? undefined : content.onPointerleave,\n };\n },\n getTriggerProps(item) {\n const trigger = api.value.getTriggerProps(item);\n return {\n ...trigger,\n onPointerdown(event: PointerEvent) {\n if (event.pointerType !== \"mouse\" || unref<UseNavigationMenuProps>(props).disableClickTrigger) return;\n // Cancel pending hover intent before a click toggles the menu.\n // These Ark handlers clear the open and close timers respectively.\n trigger.onPointerleave?.(event);\n api.value.getViewportProps().onPointerenter?.(event);\n },\n };\n },\n }));\n}\n","/** Keep untyped attributes from enabling unsupported render strategies. */\nexport function getNavigationMenuAttrs(attrs: Record<string, unknown>) {\n const {\n lazyMount,\n unmountOnExit,\n \"lazy-mount\": lazyMountAttribute,\n \"unmount-on-exit\": unmountOnExitAttribute,\n ...rest\n } = attrs;\n return rest;\n}\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport { computed } from \"vue\";\nimport type { NavigationMenuProps, NavigationMenuEmits, NavigationMenuSlots } from \"./navigation-menu\";\nimport { useNavigationMenu } from \"./use-navigation-menu\";\nimport { getNavigationMenuAttrs } from \"./navigation-menu-attrs\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuProps>(), {\n size: \"md\",\n disableClickTrigger: undefined,\n disableHoverTrigger: undefined,\n disablePointerLeaveClose: undefined,\n});\nconst emit = defineEmits<NavigationMenuEmits>();\ndefineSlots<NavigationMenuSlots>();\nconst rootProps = computed(() => {\n const { size, ...rest } = props;\n return rest;\n});\nconst api = useNavigationMenu(rootProps, emit);\n</script>\n\n<template>\n <ArkNavigationMenu.RootProvider\n v-bind=\"getNavigationMenuAttrs($attrs)\"\n :value=\"api\"\n :lazy-mount=\"false\"\n :unmount-on-exit=\"false\"\n class=\"kappa-navigation-menu\"\n data-slot=\"navigation-menu\"\n :data-size=\"props.size\"\n ><slot /></ArkNavigationMenu.RootProvider>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport { computed } from \"vue\";\nimport type { NavigationMenuProps, NavigationMenuEmits, NavigationMenuSlots } from \"./navigation-menu\";\nimport { useNavigationMenu } from \"./use-navigation-menu\";\nimport { getNavigationMenuAttrs } from \"./navigation-menu-attrs\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuProps>(), {\n size: \"md\",\n disableClickTrigger: undefined,\n disableHoverTrigger: undefined,\n disablePointerLeaveClose: undefined,\n});\nconst emit = defineEmits<NavigationMenuEmits>();\ndefineSlots<NavigationMenuSlots>();\nconst rootProps = computed(() => {\n const { size, ...rest } = props;\n return rest;\n});\nconst api = useNavigationMenu(rootProps, emit);\n</script>\n\n<template>\n <ArkNavigationMenu.RootProvider\n v-bind=\"getNavigationMenuAttrs($attrs)\"\n :value=\"api\"\n :lazy-mount=\"false\"\n :unmount-on-exit=\"false\"\n class=\"kappa-navigation-menu\"\n data-slot=\"navigation-menu\"\n :data-size=\"props.size\"\n ><slot /></ArkNavigationMenu.RootProvider>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuRootProviderProps, NavigationMenuSlots } from \"./navigation-menu\";\nimport { getNavigationMenuAttrs } from \"./navigation-menu-attrs\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuRootProviderProps>(), {\n size: \"md\",\n});\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.RootProvider v-bind=\"getNavigationMenuAttrs($attrs)\" :value=\"props.value\"\n :lazy-mount=\"false\" :unmount-on-exit=\"false\"\n class=\"kappa-navigation-menu\" data-slot=\"navigation-menu\" :data-size=\"props.size\">\n <slot />\n </ArkNavigationMenu.RootProvider>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuRootProviderProps, NavigationMenuSlots } from \"./navigation-menu\";\nimport { getNavigationMenuAttrs } from \"./navigation-menu-attrs\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuRootProviderProps>(), {\n size: \"md\",\n});\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.RootProvider v-bind=\"getNavigationMenuAttrs($attrs)\" :value=\"props.value\"\n :lazy-mount=\"false\" :unmount-on-exit=\"false\"\n class=\"kappa-navigation-menu\" data-slot=\"navigation-menu\" :data-size=\"props.size\">\n <slot />\n </ArkNavigationMenu.RootProvider>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuListProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuListProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.List v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__list\" data-slot=\"navigation-menu-list\">\n <slot />\n </ArkNavigationMenu.List>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuListProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuListProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.List v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__list\" data-slot=\"navigation-menu-list\">\n <slot />\n </ArkNavigationMenu.List>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuItemProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuItemProps>(), { asChild: false, disabled: undefined });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Item v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__item\" data-slot=\"navigation-menu-item\">\n <slot />\n </ArkNavigationMenu.Item>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuItemProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuItemProps>(), { asChild: false, disabled: undefined });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Item v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__item\" data-slot=\"navigation-menu-item\">\n <slot />\n </ArkNavigationMenu.Item>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuTriggerProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuTriggerProps>(), {\n asChild: false, disabled: undefined, showIndicator: true,\n});\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Trigger v-bind=\"$attrs\" :as-child=\"props.asChild\" :disabled=\"props.disabled\"\n class=\"kappa-navigation-menu__trigger\" data-slot=\"navigation-menu-trigger\">\n <slot />\n <svg v-if=\"props.showIndicator && !props.asChild\" class=\"kappa-navigation-menu__chevron\"\n viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m4.5 6.25 3.5 3.5 3.5-3.5\" />\n </svg>\n </ArkNavigationMenu.Trigger>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuTriggerProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuTriggerProps>(), {\n asChild: false, disabled: undefined, showIndicator: true,\n});\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Trigger v-bind=\"$attrs\" :as-child=\"props.asChild\" :disabled=\"props.disabled\"\n class=\"kappa-navigation-menu__trigger\" data-slot=\"navigation-menu-trigger\">\n <slot />\n <svg v-if=\"props.showIndicator && !props.asChild\" class=\"kappa-navigation-menu__chevron\"\n viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m4.5 6.25 3.5 3.5 3.5-3.5\" />\n </svg>\n </ArkNavigationMenu.Trigger>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuContentProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuContentProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Content v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__content\" data-slot=\"navigation-menu-content\">\n <slot />\n </ArkNavigationMenu.Content>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuContentProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuContentProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Content v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__content\" data-slot=\"navigation-menu-content\">\n <slot />\n </ArkNavigationMenu.Content>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuLinkProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuLinkProps>(), { asChild: false, current: undefined, closeOnClick: true });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Link v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__link\" data-slot=\"navigation-menu-link\">\n <slot />\n </ArkNavigationMenu.Link>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuLinkProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuLinkProps>(), { asChild: false, current: undefined, closeOnClick: true });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Link v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__link\" data-slot=\"navigation-menu-link\">\n <slot />\n </ArkNavigationMenu.Link>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuViewportPositionerProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuViewportPositionerProps>(), { asChild: false, align: \"center\" });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.ViewportPositioner v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__viewport-positioner\" data-slot=\"navigation-menu-viewport-positioner\">\n <slot />\n </ArkNavigationMenu.ViewportPositioner>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuViewportPositionerProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuViewportPositionerProps>(), { asChild: false, align: \"center\" });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.ViewportPositioner v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__viewport-positioner\" data-slot=\"navigation-menu-viewport-positioner\">\n <slot />\n </ArkNavigationMenu.ViewportPositioner>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuViewportProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuViewportProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Viewport v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__viewport\" data-slot=\"navigation-menu-viewport\">\n <slot />\n </ArkNavigationMenu.Viewport>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuViewportProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuViewportProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Viewport v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__viewport\" data-slot=\"navigation-menu-viewport\">\n <slot />\n </ArkNavigationMenu.Viewport>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuIndicatorProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuIndicatorProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Indicator v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__indicator\" data-slot=\"navigation-menu-indicator\">\n <slot />\n </ArkNavigationMenu.Indicator>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuIndicatorProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuIndicatorProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Indicator v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__indicator\" data-slot=\"navigation-menu-indicator\">\n <slot />\n </ArkNavigationMenu.Indicator>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuItemIndicatorProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuItemIndicatorProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.ItemIndicator v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__item-indicator\" data-slot=\"navigation-menu-item-indicator\">\n <slot />\n </ArkNavigationMenu.ItemIndicator>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuItemIndicatorProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuItemIndicatorProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.ItemIndicator v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__item-indicator\" data-slot=\"navigation-menu-item-indicator\">\n <slot />\n </ArkNavigationMenu.ItemIndicator>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuArrowProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuArrowProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Arrow v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__arrow\" data-slot=\"navigation-menu-arrow\">\n <slot />\n </ArkNavigationMenu.Arrow>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuArrowProps, NavigationMenuSlots } from \"./navigation-menu\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<NavigationMenuArrowProps>(), { asChild: false });\ndefineSlots<NavigationMenuSlots>();\n</script>\n\n<template>\n <ArkNavigationMenu.Arrow v-bind=\"{ ...$attrs, ...props }\"\n class=\"kappa-navigation-menu__arrow\" data-slot=\"navigation-menu-arrow\">\n <slot />\n </ArkNavigationMenu.Arrow>\n</template>\n\n<style src=\"./navigation-menu.css\"></style>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuContextSlots } from \"./navigation-menu\";\ndefineSlots<NavigationMenuContextSlots>();\n</script>\n<template>\n <ArkNavigationMenu.Context v-slot=\"context\"><slot v-bind=\"context\" /></ArkNavigationMenu.Context>\n</template>\n","<script setup lang=\"ts\">\nimport { NavigationMenu as ArkNavigationMenu } from \"@ark-ui/vue/navigation-menu\";\nimport type { NavigationMenuContextSlots } from \"./navigation-menu\";\ndefineSlots<NavigationMenuContextSlots>();\n</script>\n<template>\n <ArkNavigationMenu.Context v-slot=\"context\"><slot v-bind=\"context\" /></ArkNavigationMenu.Context>\n</template>\n","import type {\n NavigationMenuRootProps as ArkRootProps,\n NavigationMenuRootEmits,\n NavigationMenuRootProviderProps as ArkRootProviderProps,\n NavigationMenuItemProps as ArkItemProps,\n NavigationMenuTriggerProps as ArkTriggerProps,\n NavigationMenuContentProps as ArkContentProps,\n NavigationMenuLinkProps as ArkLinkProps,\n NavigationMenuViewportPositionerProps as ArkPositionerProps,\n UseNavigationMenuContext,\n} from \"@ark-ui/vue/navigation-menu\";\nimport type { UnwrapRef, VNodeChild } from \"vue\";\n\nexport const NAVIGATION_MENU_SIZES = [\"sm\", \"md\"] as const;\nexport type NavigationMenuSize = (typeof NAVIGATION_MENU_SIZES)[number];\nexport interface NavigationMenuProps extends Omit<ArkRootProps, \"lazyMount\" | \"unmountOnExit\"> {\n /** Density of the top-level links and triggers. */\n size?: NavigationMenuSize;\n}\nexport type NavigationMenuRootProps = NavigationMenuProps;\nexport type NavigationMenuEmits = NavigationMenuRootEmits;\nexport interface NavigationMenuRootProviderProps {\n value: ArkRootProviderProps[\"value\"];\n size?: NavigationMenuSize;\n}\nexport type NavigationMenuItemProps = ArkItemProps;\nexport interface NavigationMenuTriggerProps extends ArkTriggerProps {\n /** Show the built-in chevron. For asChild, supply your own indicator. */\n showIndicator?: boolean;\n}\nexport type NavigationMenuContentProps = ArkContentProps;\nexport type NavigationMenuLinkProps = ArkLinkProps;\nexport type NavigationMenuViewportPositionerProps = ArkPositionerProps;\nexport interface NavigationMenuPartProps { asChild?: boolean }\nexport type NavigationMenuListProps = NavigationMenuPartProps;\nexport type NavigationMenuViewportProps = NavigationMenuPartProps;\nexport type NavigationMenuIndicatorProps = NavigationMenuPartProps;\nexport type NavigationMenuItemIndicatorProps = NavigationMenuPartProps;\nexport type NavigationMenuArrowProps = NavigationMenuPartProps;\nexport interface NavigationMenuSlots { default?: () => VNodeChild }\nexport interface NavigationMenuContextSlots {\n default?: (context: UnwrapRef<UseNavigationMenuContext>) => VNodeChild;\n}\n","import NavigationMenuRoot from \"./NavigationMenu.vue\";\nimport NavigationMenuRootProvider from \"./NavigationMenuRootProvider.vue\";\nimport NavigationMenuList from \"./NavigationMenuList.vue\";\nimport NavigationMenuItem from \"./NavigationMenuItem.vue\";\nimport NavigationMenuTrigger from \"./NavigationMenuTrigger.vue\";\nimport NavigationMenuContent from \"./NavigationMenuContent.vue\";\nimport NavigationMenuLink from \"./NavigationMenuLink.vue\";\nimport NavigationMenuViewportPositioner from \"./NavigationMenuViewportPositioner.vue\";\nimport NavigationMenuViewport from \"./NavigationMenuViewport.vue\";\nimport NavigationMenuIndicator from \"./NavigationMenuIndicator.vue\";\nimport NavigationMenuItemIndicator from \"./NavigationMenuItemIndicator.vue\";\nimport NavigationMenuArrow from \"./NavigationMenuArrow.vue\";\nimport NavigationMenuContext from \"./NavigationMenuContext.vue\";\n\nexport const NavigationMenu = Object.assign(NavigationMenuRoot, {\n Root: NavigationMenuRoot,\n RootProvider: NavigationMenuRootProvider,\n List: NavigationMenuList,\n Item: NavigationMenuItem,\n Trigger: NavigationMenuTrigger,\n Content: NavigationMenuContent,\n Link: NavigationMenuLink,\n ViewportPositioner: NavigationMenuViewportPositioner,\n Viewport: NavigationMenuViewport,\n Indicator: NavigationMenuIndicator,\n ItemIndicator: NavigationMenuItemIndicator,\n Arrow: NavigationMenuArrow,\n Context: NavigationMenuContext,\n});\n\nexport { NavigationMenuRoot, NavigationMenuRootProvider, NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuLink, NavigationMenuViewportPositioner, NavigationMenuViewport, NavigationMenuIndicator, NavigationMenuItemIndicator, NavigationMenuArrow, NavigationMenuContext };\nexport type * from \"./navigation-menu\";\nexport { NAVIGATION_MENU_SIZES } from \"./navigation-menu\";\nexport { useNavigationMenu } from \"./use-navigation-menu\";\nexport { useNavigationMenuContext, navigationMenuAnatomy } from \"@ark-ui/vue/navigation-menu\";\nexport type {\n NavigationMenuValueChangeDetails, UseNavigationMenuProps,\n UseNavigationMenuReturn, UseNavigationMenuContext,\n} from \"@ark-ui/vue/navigation-menu\";\n"],"mappings":";;;AAaA,SAAgB,EACd,IAA0C,CAAC,GAC3C,GACyB;CACzB,IAAM,IAAU,EAAI,EAAK,GACrB,IAAe,IACb,IAAM,EAAqB,QAAe;EAC9C,IAAM,IAAU,EAA8B,CAAK;EACnD,OAAO;GACL,GAAG;GACH,OAAO,EAAQ,QAAQ,EAAQ,QAAQ;GACvC,cAAc,GAAS;IACjB,MACJ,IAAO,eAAe,CAAO,GAC7B,IAAO,gBAAgB,EAAQ,KAAK,GACpC,EAAQ,gBAAgB,CAAO;GACjC;EACF;CACF,CAAC,CAAC;CAUF,OATA,EAAU,YAAY;EAGpB,AAFA,MAAM,EAAS,GACf,EAAQ,QAAQ,I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