@dicehub/kappa 0.5.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/THIRD_PARTY_NOTICES.md +32 -1
  3. package/dist/{DeleteResource-vqXN2M_j.js → DeleteResource-JDnPWd7H.js} +2 -2
  4. package/dist/{DeleteResource-vqXN2M_j.js.map → DeleteResource-JDnPWd7H.js.map} +1 -1
  5. package/dist/{DropdownSubTrigger-CBmdRDUH.js → DropdownSubTrigger-DrZmNIcU.js} +15 -13
  6. package/dist/DropdownSubTrigger-DrZmNIcU.js.map +1 -0
  7. package/dist/{ImageCropper-Dfjf3OuM.js → ImageCropper-B-8niGGr.js} +24 -28
  8. package/dist/{ImageCropper-Dfjf3OuM.js.map → ImageCropper-B-8niGGr.js.map} +1 -1
  9. package/dist/{InlineCopyText-C5laww5W.js → InlineCopyText-Bosrszdf.js} +38 -40
  10. package/dist/InlineCopyText-Bosrszdf.js.map +1 -0
  11. package/dist/{ResourcePicker-BbzGyL_F.js → ResourcePicker-Ctmc4QxZ.js} +2 -2
  12. package/dist/{ResourcePicker-BbzGyL_F.js.map → ResourcePicker-Ctmc4QxZ.js.map} +1 -1
  13. package/dist/{SidebarLayout-Cs6OnqU2.js → SidebarLayout-D9RT-MdT.js} +18 -8
  14. package/dist/SidebarLayout-D9RT-MdT.js.map +1 -0
  15. package/dist/WorkspaceSwitcher-DBWdKZbM.js +265 -0
  16. package/dist/WorkspaceSwitcher-DBWdKZbM.js.map +1 -0
  17. package/dist/blocks/delete-resource.js +1 -1
  18. package/dist/blocks/file-browser.js +1 -1
  19. package/dist/blocks/index.d.ts +2 -0
  20. package/dist/blocks/resource-picker.js +1 -1
  21. package/dist/blocks/settings-layout/SettingsLayout.vue.d.ts +11 -0
  22. package/dist/blocks/settings-layout/SettingsSection.vue.d.ts +30 -0
  23. package/dist/blocks/settings-layout/index.d.ts +7 -0
  24. package/dist/blocks/settings-layout/settings-layout.d.ts +42 -0
  25. package/dist/blocks/settings-layout.js +2 -0
  26. package/dist/blocks/sidebar-layout/SidebarLayout.vue.d.ts +2 -0
  27. package/dist/blocks/sidebar-layout/index.d.ts +1 -1
  28. package/dist/blocks/sidebar-layout/sidebar-layout.d.ts +4 -0
  29. package/dist/blocks/sidebar-layout.js +1 -1
  30. package/dist/blocks/workspace-switcher/WorkspaceSwitcher.vue.d.ts +33 -0
  31. package/dist/blocks/workspace-switcher/WorkspaceSwitcherActions.vue.d.ts +12 -0
  32. package/dist/blocks/workspace-switcher/WorkspaceSwitcherBadge.vue.d.ts +8 -0
  33. package/dist/blocks/workspace-switcher/index.d.ts +3 -0
  34. package/dist/blocks/workspace-switcher/workspace-switcher.d.ts +63 -0
  35. package/dist/blocks/workspace-switcher.js +2 -0
  36. package/dist/{checkbox-DAdzHZnd.js → checkbox-DgwmE-kd.js} +50 -40
  37. package/dist/checkbox-DgwmE-kd.js.map +1 -0
  38. package/dist/{clipboard-text-Ob056Gly.js → clipboard-text-Clp3y-6f.js} +10 -14
  39. package/dist/{clipboard-text-Ob056Gly.js.map → clipboard-text-Clp3y-6f.js.map} +1 -1
  40. package/dist/{command-palette-CGREegfE.js → command-palette-BHFB86Gc.js} +9 -3
  41. package/dist/command-palette-BHFB86Gc.js.map +1 -0
  42. package/dist/components/checkbox/CheckboxHiddenInput.vue.d.ts +3 -0
  43. package/dist/components/checkbox.js +1 -1
  44. package/dist/components/clipboard-text.js +1 -1
  45. package/dist/components/code-highlighted/CodeHighlighted.vue.d.ts +6 -1
  46. package/dist/components/code-highlighted/CodeHighlightedCopy.vue.d.ts +8 -0
  47. package/dist/components/code-highlighted/code-highlighted.d.ts +9 -0
  48. package/dist/components/code-highlighted/index.d.ts +1 -1
  49. package/dist/components/code-highlighted.js +185 -116
  50. package/dist/components/code-highlighted.js.map +1 -1
  51. package/dist/components/command-palette/command-palette.d.ts +1 -1
  52. package/dist/components/command-palette.js +1 -1
  53. package/dist/components/context-menu/ContextMenu.vue.d.ts +2 -2
  54. package/dist/components/context-menu.js +2 -2
  55. package/dist/components/data-grid.js +1 -1
  56. package/dist/components/dialog/Dialog.vue.d.ts +2 -2
  57. package/dist/components/dialog-layout/DialogLayoutAlert.vue.d.ts +2 -2
  58. package/dist/components/dialog-layout.js +1 -1
  59. package/dist/components/diff-viewer.js +1 -1
  60. package/dist/components/drawer/Drawer.vue.d.ts +2 -2
  61. package/dist/components/dropdown/Dropdown.vue.d.ts +2 -2
  62. package/dist/components/dropdown/DropdownSub.vue.d.ts +2 -2
  63. package/dist/components/dropdown.js +2 -2
  64. package/dist/components/filter-bar.js +1 -1
  65. package/dist/components/hover-card/HoverCard.vue.d.ts +1 -1
  66. package/dist/components/image-cropper/image-cropper-source.d.ts +1 -6
  67. package/dist/components/image-cropper.js +1 -1
  68. package/dist/components/index.d.ts +2 -0
  69. package/dist/components/inline-copy-text.js +1 -1
  70. package/dist/components/menu-bar.js +1 -1
  71. package/dist/components/navigation-menu/NavigationMenu.vue.d.ts +23 -0
  72. package/dist/components/navigation-menu/NavigationMenuArrow.vue.d.ts +13 -0
  73. package/dist/components/navigation-menu/NavigationMenuContent.vue.d.ts +14 -0
  74. package/dist/components/navigation-menu/NavigationMenuContext.vue.d.ts +11 -0
  75. package/dist/components/navigation-menu/NavigationMenuIndicator.vue.d.ts +13 -0
  76. package/dist/components/navigation-menu/NavigationMenuItem.vue.d.ts +15 -0
  77. package/dist/components/navigation-menu/NavigationMenuItemIndicator.vue.d.ts +13 -0
  78. package/dist/components/navigation-menu/NavigationMenuLink.vue.d.ts +16 -0
  79. package/dist/components/navigation-menu/NavigationMenuList.vue.d.ts +13 -0
  80. package/dist/components/navigation-menu/NavigationMenuRootProvider.vue.d.ts +13 -0
  81. package/dist/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +15 -0
  82. package/dist/components/navigation-menu/NavigationMenuViewport.vue.d.ts +13 -0
  83. package/dist/components/navigation-menu/NavigationMenuViewportPositioner.vue.d.ts +15 -0
  84. package/dist/components/navigation-menu/index.d.ts +34 -0
  85. package/dist/components/navigation-menu/navigation-menu-attrs.d.ts +4 -0
  86. package/dist/components/navigation-menu/navigation-menu.d.ts +36 -0
  87. package/dist/components/navigation-menu/use-navigation-menu.d.ts +9 -0
  88. package/dist/components/navigation-menu.js +2 -0
  89. package/dist/components/number-input/NumberInput.vue.d.ts +1 -1
  90. package/dist/components/number-input/NumberInputRootProvider.vue.d.ts +1 -1
  91. package/dist/components/number-input/index.d.ts +2 -1
  92. package/dist/components/number-input/number-input-cursor.d.ts +11 -0
  93. package/dist/components/number-input/number-input-machine.d.ts +5 -0
  94. package/dist/components/number-input/use-number-input.d.ts +2 -0
  95. package/dist/components/number-input.js +2 -2
  96. package/dist/components/popover/Popover.vue.d.ts +2 -2
  97. package/dist/components/sidebar/SidebarProvider.vue.d.ts +1 -0
  98. package/dist/components/sidebar/SidebarTrigger.vue.d.ts +1 -0
  99. package/dist/components/sidebar/sidebar-context.d.ts +1 -0
  100. package/dist/components/sidebar/sidebar-peek.d.ts +1 -1
  101. package/dist/components/sidebar/sidebar-resize.d.ts +1 -0
  102. package/dist/components/sidebar/sidebar.d.ts +6 -1
  103. package/dist/components/sidebar.js +1 -1
  104. package/dist/components/table.js +1 -1
  105. package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
  106. package/dist/{context-menu-C_XGS00V.js → context-menu-B_noSd5p.js} +2 -2
  107. package/dist/{context-menu-C_XGS00V.js.map → context-menu-B_noSd5p.js.map} +1 -1
  108. package/dist/{data-grid-C7ZyN-nX.js → data-grid-CobgDr8q.js} +3 -3
  109. package/dist/{data-grid-C7ZyN-nX.js.map → data-grid-CobgDr8q.js.map} +1 -1
  110. package/dist/{dialog-layout-BG_HOOgK.js → dialog-layout-DLOoWtT1.js} +2 -2
  111. package/dist/{dialog-layout-BG_HOOgK.js.map → dialog-layout-DLOoWtT1.js.map} +1 -1
  112. package/dist/{diff-viewer-DpDGXsGd.js → diff-viewer-fDKJ-67E.js} +2 -2
  113. package/dist/{diff-viewer-DpDGXsGd.js.map → diff-viewer-fDKJ-67E.js.map} +1 -1
  114. package/dist/{dropdown-B4YZ7mck.js → dropdown-Dedb1tk8.js} +2 -2
  115. package/dist/{dropdown-B4YZ7mck.js.map → dropdown-Dedb1tk8.js.map} +1 -1
  116. package/dist/{file-browser-BU08V7Lh.js → file-browser-CGqaz2eI.js} +7 -7
  117. package/dist/{file-browser-BU08V7Lh.js.map → file-browser-CGqaz2eI.js.map} +1 -1
  118. package/dist/{filter-bar-yEkaxil8.js → filter-bar-COAlDQE4.js} +2 -2
  119. package/dist/{filter-bar-yEkaxil8.js.map → filter-bar-COAlDQE4.js.map} +1 -1
  120. package/dist/index.js +58 -55
  121. package/dist/{menu-bar-CraWEpaF.js → menu-bar-C-qQn2L1.js} +2 -2
  122. package/dist/{menu-bar-CraWEpaF.js.map → menu-bar-C-qQn2L1.js.map} +1 -1
  123. package/dist/navigation-menu-DbfnBaTw.js +379 -0
  124. package/dist/navigation-menu-DbfnBaTw.js.map +1 -0
  125. package/dist/{number-input-D59rbYIn.js → number-input-B3Xkb5sT.js} +258 -146
  126. package/dist/number-input-B3Xkb5sT.js.map +1 -0
  127. package/dist/registry/component-registry.json +23 -3
  128. package/dist/registry/generated.d.ts +146 -5
  129. package/dist/{registry-Cm6z1POX.js → registry-CWDzoZaA.js} +179 -6
  130. package/dist/registry-CWDzoZaA.js.map +1 -0
  131. package/dist/registry.js +1 -1
  132. package/dist/settings-layout-RlKrLGUx.js +170 -0
  133. package/dist/settings-layout-RlKrLGUx.js.map +1 -0
  134. package/dist/{sidebar-DkQJmgBd.js → sidebar-tcrbUrk_.js} +279 -222
  135. package/dist/sidebar-tcrbUrk_.js.map +1 -0
  136. package/dist/styles/kappa.css +1 -1
  137. package/dist/styles/theme-kappa.css +6 -1
  138. package/dist/styles/tokens.json +22 -0
  139. package/dist/{table-GDu-HsB6.js → table-B3iRrutc.js} +2 -2
  140. package/dist/{table-GDu-HsB6.js.map → table-B3iRrutc.js.map} +1 -1
  141. package/licenses/zag-number-input.LICENSE +21 -0
  142. package/package.json +4 -3
  143. package/dist/DropdownSubTrigger-CBmdRDUH.js.map +0 -1
  144. package/dist/InlineCopyText-C5laww5W.js.map +0 -1
  145. package/dist/SidebarLayout-Cs6OnqU2.js.map +0 -1
  146. package/dist/checkbox-DAdzHZnd.js.map +0 -1
  147. package/dist/command-palette-CGREegfE.js.map +0 -1
  148. package/dist/number-input-D59rbYIn.js.map +0 -1
  149. package/dist/registry-Cm6z1POX.js.map +0 -1
  150. package/dist/sidebar-DkQJmgBd.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidebar-DkQJmgBd.js","names":["$attrs","$attrs","$slots","$attrs","$slots","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$slots","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs"],"sources":["../src/components/sidebar/sidebar-context.ts","../src/components/sidebar/sidebar-peek.ts","../src/components/sidebar/Sidebar.vue","../src/components/sidebar/Sidebar.vue","../src/components/sidebar/sidebar.ts","../src/components/sidebar/sidebar-resize.ts","../src/components/sidebar/SidebarProvider.vue","../src/components/sidebar/SidebarProvider.vue","../src/components/sidebar/SidebarContext.vue","../src/components/sidebar/SidebarContext.vue","../src/components/sidebar/SidebarTrigger.vue","../src/components/sidebar/SidebarTrigger.vue","../src/components/sidebar/SidebarClose.vue","../src/components/sidebar/SidebarClose.vue","../src/components/sidebar/SidebarHeader.vue","../src/components/sidebar/SidebarHeader.vue","../src/components/sidebar/SidebarFooter.vue","../src/components/sidebar/SidebarFooter.vue","../src/components/sidebar/SidebarContent.vue","../src/components/sidebar/SidebarContent.vue","../src/components/sidebar/SidebarGroup.vue","../src/components/sidebar/SidebarGroup.vue","../src/components/sidebar/SidebarGroupLabel.vue","../src/components/sidebar/SidebarGroupLabel.vue","../src/components/sidebar/SidebarMenu.vue","../src/components/sidebar/SidebarMenu.vue","../src/components/sidebar/SidebarMenuItem.vue","../src/components/sidebar/SidebarMenuItem.vue","../src/components/sidebar/SidebarMenuChild.ts","../src/components/sidebar/SidebarMenuButton.vue","../src/components/sidebar/SidebarMenuButton.vue","../src/components/sidebar/SidebarMenuSub.vue","../src/components/sidebar/SidebarMenuSub.vue","../src/components/sidebar/SidebarMenuSubItem.vue","../src/components/sidebar/SidebarMenuSubItem.vue","../src/components/sidebar/SidebarMenuLabel.vue","../src/components/sidebar/SidebarMenuLabel.vue","../src/components/sidebar/SidebarMenuBadge.vue","../src/components/sidebar/SidebarMenuBadge.vue","../src/components/sidebar/SidebarMenuChevron.vue","../src/components/sidebar/SidebarMenuChevron.vue","../src/components/sidebar/SidebarSeparator.vue","../src/components/sidebar/SidebarSeparator.vue","../src/components/sidebar/SidebarCollapsible.vue","../src/components/sidebar/SidebarCollapsible.vue","../src/components/sidebar/SidebarCollapsibleTrigger.vue","../src/components/sidebar/SidebarCollapsibleTrigger.vue","../src/components/sidebar/SidebarCollapsibleContent.vue","../src/components/sidebar/SidebarCollapsibleContent.vue","../src/components/sidebar/SidebarLoading.vue","../src/components/sidebar/SidebarLoading.vue","../src/components/sidebar/SidebarResizeControl.vue","../src/components/sidebar/SidebarResizeControl.vue","../src/components/sidebar/SidebarResizeHandle.vue","../src/components/sidebar/SidebarResizeHandle.vue","../src/components/sidebar/sidebar-sliding-context.ts","../src/components/sidebar/SidebarSlidingViews.vue","../src/components/sidebar/SidebarSlidingViews.vue","../src/components/sidebar/SidebarSlidingView.vue","../src/components/sidebar/SidebarSlidingView.vue","../src/components/sidebar/index.ts"],"sourcesContent":["import { inject, type ComputedRef, type InjectionKey, type UnwrapRef } from \"vue\";\nimport type { SidebarCollapsibleMode, SidebarSide, SidebarState } from \"./sidebar\";\n\nexport interface SidebarContext {\n open: ComputedRef<boolean>;\n mobileOpen: ComputedRef<boolean>;\n isMobile: ComputedRef<boolean>;\n state: ComputedRef<SidebarState>;\n iconCollapsed: ComputedRef<boolean>;\n peekable: ComputedRef<boolean>;\n isPeeking: ComputedRef<boolean>;\n resizable: ComputedRef<boolean>;\n isResizing: ComputedRef<boolean>;\n width: ComputedRef<number>;\n collapsible: ComputedRef<SidebarCollapsibleMode>;\n side: ComputedRef<SidebarSide>;\n compact: ComputedRef<boolean>;\n navId: ComputedRef<string>;\n contentId: ComputedRef<string>;\n dimensions: ComputedRef<Record<string, string>>;\n setOpen: (open: boolean) => void;\n setMobileOpen: (open: boolean) => void;\n toggle: () => void;\n rememberTrigger: (id: string) => void;\n setPeekInteraction: (active: boolean) => void;\n setWidth: (width: number) => void;\n}\n\nexport type SidebarContextValue = UnwrapRef<SidebarContext>;\nexport const sidebarContextKey: InjectionKey<SidebarContext> = Symbol(\"KappaSidebar\");\n\nexport function useSidebarContext(): SidebarContext {\n const context = inject(sidebarContextKey);\n if (!context) throw new Error(\"[Kappa Sidebar] Parts must be inside Sidebar.Provider.\");\n return context;\n}\n","import { nextTick, onScopeDispose, watchEffect, type Ref } from \"vue\";\nimport type { SidebarContext } from \"./sidebar-context\";\n\n/** Keep the rail open while focus or the pointer is in it or an ARIA-owned popup. */\nexport function useSidebarPeek(nav: Ref<HTMLElement | undefined>, sidebar: SidebarContext) {\n watchEffect((onCleanup) => {\n const root = nav.value;\n if (!root || !sidebar.peekable.value || sidebar.isMobile.value) return;\n const doc = root.ownerDocument;\n let pointerInside = false;\n let dismissed = false;\n function contains(target: EventTarget | null): boolean {\n if (!(target instanceof Node)) return false;\n if (root!.contains(target)) return true;\n return Array.from(root!.querySelectorAll('[aria-controls][aria-expanded=\"true\"]')).some(trigger =>\n trigger.getAttribute(\"aria-controls\")?.split(/\\s+/).some(id => doc.getElementById(id)?.contains(target)),\n );\n }\n function update() {\n const active = pointerInside || contains(doc.activeElement);\n if (!active) dismissed = false;\n sidebar.setPeekInteraction(active && !dismissed);\n }\n function onPointerOver(event: PointerEvent) {\n if (event.pointerType === \"touch\") return;\n pointerInside = contains(event.target);\n update();\n }\n function onPointerOut(event: PointerEvent) {\n if (event.pointerType === \"touch\") return;\n pointerInside = contains(event.relatedTarget);\n update();\n }\n function onFocus() { update(); }\n function onBlur() { pointerInside = false; sidebar.setPeekInteraction(false); }\n async function onKeydown(event: KeyboardEvent) {\n if (event.key !== \"Escape\" || event.defaultPrevented || !sidebar.isPeeking.value) return;\n const layer = event.target instanceof Element ? event.target.closest('[role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"]') : null;\n if (layer && !root!.contains(layer)) return;\n // A nested popup owns its first Escape. Hover-only peeks can be dismissed\n // even while focus remains in the page behind the rail.\n if (root!.querySelector('[aria-haspopup][aria-expanded=\"true\"]')) return;\n const active = doc.activeElement;\n const section = active instanceof Element && root!.contains(active) ? active.closest('[data-slot=\"sidebar-collapsible\"]') : null;\n dismissed = true;\n sidebar.setPeekInteraction(false);\n event.preventDefault();\n await nextTick();\n // Nested links become hidden; leave their focus on the visible disclosure.\n section?.querySelector<HTMLElement>('[data-scope=\"collapsible\"][data-part=\"trigger\"]')?.focus({ preventScroll: true });\n }\n doc.addEventListener(\"pointerover\", onPointerOver);\n doc.addEventListener(\"pointerout\", onPointerOut);\n doc.addEventListener(\"focusin\", onFocus);\n doc.addEventListener(\"keydown\", onKeydown);\n doc.defaultView?.addEventListener(\"blur\", onBlur);\n update();\n onCleanup(() => {\n doc.removeEventListener(\"pointerover\", onPointerOver);\n doc.removeEventListener(\"pointerout\", onPointerOut);\n doc.removeEventListener(\"focusin\", onFocus);\n doc.removeEventListener(\"keydown\", onKeydown);\n doc.defaultView?.removeEventListener(\"blur\", onBlur);\n sidebar.setPeekInteraction(false);\n });\n });\n onScopeDispose(() => sidebar.setPeekInteraction(false));\n}\n","<script setup lang=\"ts\">\nimport { Drawer as ArkDrawer } from \"@ark-ui/vue/drawer\";\nimport { DEFAULT_LOCALE, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport { computed, ref, Teleport } from \"vue\";\nimport type { SidebarProps, SidebarSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\nimport { useSidebarPeek } from \"./sidebar-peek\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarProps>(), { label: \"Main navigation\", fullScreenOnMobile: false });\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\nconst locale = useLocaleContext(DEFAULT_LOCALE);\nconst nav = ref<HTMLElement>();\nuseSidebarPeek(nav, sidebar);\nconst navProps = computed(() => ({\n id: sidebar.navId.value,\n \"aria-label\": props.label,\n \"data-state\": sidebar.isMobile.value ? \"expanded\" : sidebar.state.value,\n \"data-side\": sidebar.side.value,\n \"data-collapsible\": sidebar.collapsible.value,\n \"data-compact\": sidebar.compact.value ? \"\" : undefined,\n \"data-mobile\": sidebar.isMobile.value ? \"\" : undefined,\n \"data-resizing\": sidebar.isResizing.value ? \"\" : undefined,\n style: sidebar.dimensions.value,\n}));\n</script>\n\n<template>\n <Teleport v-if=\"sidebar.isMobile.value\" to=\"body\">\n <ArkDrawer.Backdrop class=\"kappa-sidebar__backdrop\" data-slot=\"sidebar-backdrop\" />\n <ArkDrawer.Positioner class=\"kappa-sidebar__positioner\" :dir=\"locale.dir\">\n <ArkDrawer.Content\n class=\"kappa-sidebar__dialog\"\n data-slot=\"sidebar-dialog\"\n :aria-label=\"props.label\"\n :draggable=\"false\"\n :dir=\"locale.dir\"\n :data-full-screen=\"props.fullScreenOnMobile ? '' : undefined\"\n :style=\"sidebar.dimensions.value\"\n >\n <nav v-bind=\"{ ...navProps, ...$attrs, id: sidebar.navId.value }\" class=\"kappa-sidebar\" data-slot=\"sidebar\">\n <slot />\n </nav>\n </ArkDrawer.Content>\n </ArkDrawer.Positioner>\n </Teleport>\n <div\n v-else\n class=\"kappa-sidebar__shell\"\n :data-state=\"sidebar.state.value\"\n :data-side=\"sidebar.side.value\"\n :data-collapsible=\"sidebar.collapsible.value\"\n :data-resizing=\"sidebar.isResizing.value ? '' : undefined\"\n >\n <nav\n ref=\"nav\"\n v-bind=\"{ ...navProps, ...$attrs, id: sidebar.navId.value }\"\n class=\"kappa-sidebar\"\n data-slot=\"sidebar\"\n :inert=\"sidebar.collapsible.value === 'offcanvas' && !sidebar.open.value ? true : undefined\"\n :aria-hidden=\"sidebar.collapsible.value === 'offcanvas' && !sidebar.open.value ? true : undefined\"\n ><slot /></nav>\n </div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Drawer as ArkDrawer } from \"@ark-ui/vue/drawer\";\nimport { DEFAULT_LOCALE, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport { computed, ref, Teleport } from \"vue\";\nimport type { SidebarProps, SidebarSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\nimport { useSidebarPeek } from \"./sidebar-peek\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarProps>(), { label: \"Main navigation\", fullScreenOnMobile: false });\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\nconst locale = useLocaleContext(DEFAULT_LOCALE);\nconst nav = ref<HTMLElement>();\nuseSidebarPeek(nav, sidebar);\nconst navProps = computed(() => ({\n id: sidebar.navId.value,\n \"aria-label\": props.label,\n \"data-state\": sidebar.isMobile.value ? \"expanded\" : sidebar.state.value,\n \"data-side\": sidebar.side.value,\n \"data-collapsible\": sidebar.collapsible.value,\n \"data-compact\": sidebar.compact.value ? \"\" : undefined,\n \"data-mobile\": sidebar.isMobile.value ? \"\" : undefined,\n \"data-resizing\": sidebar.isResizing.value ? \"\" : undefined,\n style: sidebar.dimensions.value,\n}));\n</script>\n\n<template>\n <Teleport v-if=\"sidebar.isMobile.value\" to=\"body\">\n <ArkDrawer.Backdrop class=\"kappa-sidebar__backdrop\" data-slot=\"sidebar-backdrop\" />\n <ArkDrawer.Positioner class=\"kappa-sidebar__positioner\" :dir=\"locale.dir\">\n <ArkDrawer.Content\n class=\"kappa-sidebar__dialog\"\n data-slot=\"sidebar-dialog\"\n :aria-label=\"props.label\"\n :draggable=\"false\"\n :dir=\"locale.dir\"\n :data-full-screen=\"props.fullScreenOnMobile ? '' : undefined\"\n :style=\"sidebar.dimensions.value\"\n >\n <nav v-bind=\"{ ...navProps, ...$attrs, id: sidebar.navId.value }\" class=\"kappa-sidebar\" data-slot=\"sidebar\">\n <slot />\n </nav>\n </ArkDrawer.Content>\n </ArkDrawer.Positioner>\n </Teleport>\n <div\n v-else\n class=\"kappa-sidebar__shell\"\n :data-state=\"sidebar.state.value\"\n :data-side=\"sidebar.side.value\"\n :data-collapsible=\"sidebar.collapsible.value\"\n :data-resizing=\"sidebar.isResizing.value ? '' : undefined\"\n >\n <nav\n ref=\"nav\"\n v-bind=\"{ ...navProps, ...$attrs, id: sidebar.navId.value }\"\n class=\"kappa-sidebar\"\n data-slot=\"sidebar\"\n :inert=\"sidebar.collapsible.value === 'offcanvas' && !sidebar.open.value ? true : undefined\"\n :aria-hidden=\"sidebar.collapsible.value === 'offcanvas' && !sidebar.open.value ? true : undefined\"\n ><slot /></nav>\n </div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","import type { Component, VNodeChild } from \"vue\";\nimport type { CollapsibleRootProps } from \"@ark-ui/vue/collapsible\";\n\nexport const SIDEBAR_DEFAULTS = {\n defaultOpen: true,\n defaultMobileOpen: false,\n collapsible: \"icon\",\n side: \"start\",\n compact: false,\n mobileBreakpoint: 768,\n width: \"16.25rem\",\n collapsedWidth: \"3.25rem\",\n mobileWidth: \"18rem\",\n resizable: false,\n defaultWidth: 260,\n minWidth: 180,\n maxWidth: 400,\n peekable: false,\n} as const;\n\nexport type SidebarSide = \"start\" | \"end\";\nexport type SidebarCollapsibleMode = \"icon\" | \"offcanvas\" | \"none\";\nexport type SidebarState = \"expanded\" | \"collapsed\" | \"peeking\";\n\nexport interface SidebarProviderProps {\n id?: string;\n open?: boolean;\n defaultOpen?: boolean;\n mobileOpen?: boolean;\n defaultMobileOpen?: boolean;\n /** Desktop collapse mode. Mobile always uses a modal drawer. */\n collapsible?: SidebarCollapsibleMode;\n side?: SidebarSide;\n compact?: boolean;\n /** Viewport widths below this value use the mobile drawer. Zero disables it. */\n mobileBreakpoint?: number;\n width?: string;\n collapsedWidth?: string;\n mobileWidth?: string;\n /** Enable the desktop edge separator. Add Sidebar.ResizeHandle inside Root. */\n resizable?: boolean;\n /** Controlled expanded resize width, in pixels. Used only with resizable. */\n resizeWidth?: number;\n defaultWidth?: number;\n minWidth?: number;\n maxWidth?: number;\n /** Temporarily expand a collapsed icon rail on hover or keyboard focus. */\n peekable?: boolean;\n}\n\nexport interface SidebarOpenChangeDetails { open: boolean }\nexport interface SidebarResizeDetails { width: number }\nexport type SidebarProviderEmits = {\n \"update:open\": [open: boolean];\n openChange: [details: SidebarOpenChangeDetails];\n \"update:mobileOpen\": [open: boolean];\n mobileOpenChange: [details: SidebarOpenChangeDetails];\n \"update:resizeWidth\": [width: number];\n resize: [details: SidebarResizeDetails];\n resizeEnd: [details: SidebarResizeDetails];\n};\nexport interface SidebarSlots { default?: () => VNodeChild }\nexport type SidebarProviderSlots = SidebarSlots;\nexport interface SidebarProps {\n /** Accessible name for both the navigation landmark and mobile dialog. */\n label?: string;\n fullScreenOnMobile?: boolean;\n}\nexport type SidebarRootProps = SidebarProps;\nexport type SidebarRootSlots = SidebarSlots;\nexport interface SidebarPartProps { asChild?: boolean }\nexport interface SidebarTriggerProps extends SidebarPartProps {\n expandLabel?: string;\n collapseLabel?: string;\n openLabel?: string;\n closeLabel?: string;\n disabled?: boolean;\n}\nexport interface SidebarCloseProps extends SidebarPartProps { label?: string }\nexport interface SidebarMenuButtonProps extends SidebarPartProps {\n /** A native anchor is rendered when href is present. */\n href?: string;\n active?: boolean;\n disabled?: boolean;\n icon?: Component;\n /** Optional collapsed-rail tooltip. Slot text remains accessible without it. */\n tooltip?: string;\n}\nexport interface SidebarMenuButtonSlots extends SidebarSlots {\n icon?: () => VNodeChild;\n}\nexport interface SidebarCollapsibleProps {\n open?: boolean;\n defaultOpen?: boolean;\n disabled?: boolean;\n id?: string;\n}\nexport type SidebarCollapsibleEmits = {\n \"update:open\": [open: boolean];\n openChange: [details: SidebarOpenChangeDetails];\n};\nexport interface SidebarCollapsibleContentProps extends SidebarPartProps {}\nexport type SidebarCollapsibleTriggerProps = Pick<CollapsibleRootProps, \"asChild\">;\nexport interface SidebarLoadingProps { rows?: number; label?: string }\nexport interface SidebarResizeHandleProps { label?: string; disabled?: boolean }\nexport interface SidebarSlidingViewsProps {\n activeKey: string;\n /** Physical direction of the incoming view. Reverse it for back navigation. */\n direction?: \"left\" | \"right\";\n}\nexport interface SidebarSlidingViewProps { value: string; label?: string }\n\nexport function resolveSidebarWidthBounds(min: number, max: number) {\n const minWidth = Number.isFinite(min) ? Math.max(1, min) : SIDEBAR_DEFAULTS.minWidth;\n const maxWidth = Number.isFinite(max) ? Math.max(minWidth, max) : Math.max(minWidth, SIDEBAR_DEFAULTS.maxWidth);\n return { minWidth, maxWidth };\n}\n\nexport function clampSidebarWidth(value: number, min: number, max: number) {\n const { minWidth, maxWidth } = resolveSidebarWidthBounds(min, max);\n return Math.min(maxWidth, Math.max(minWidth, Number.isFinite(value) ? value : SIDEBAR_DEFAULTS.defaultWidth));\n}\n\nexport function resolveSidebarBreakpoint(value: number): number {\n return Number.isFinite(value) ? Math.max(0, value) : SIDEBAR_DEFAULTS.mobileBreakpoint;\n}\n\nexport function resolveSidebarLoadingRows(value: number): number {\n return Number.isFinite(value) ? Math.min(20, Math.max(1, Math.floor(value))) : 5;\n}\n","import type { UseSplitterProps } from \"@ark-ui/vue/splitter\";\nimport { DEFAULT_LOCALE, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport { computed, inject, onMounted, onScopeDispose, provide, ref, type ComputedRef, type InjectionKey, type Ref } from \"vue\";\nimport { clampSidebarWidth, resolveSidebarWidthBounds, type SidebarProviderProps } from \"./sidebar\";\n\ninterface ResizeOptions {\n layout: Ref<HTMLElement | undefined>;\n id: ComputedRef<string>;\n navId: ComputedRef<string>;\n open: ComputedRef<boolean>;\n isMobile: ComputedRef<boolean>;\n setOpen: (open: boolean) => void;\n onResize: (width: number) => void;\n onResizeEnd: (width: number) => void;\n}\ninterface ResizeContext {\n props: ComputedRef<UseSplitterProps>;\n handleId: ComputedRef<\"navigation:remainder\" | \"remainder:navigation\">;\n range: ComputedRef<{ min: number; max: number; collapsed: number }>;\n setIsResizing: (value: boolean) => void;\n}\nconst resizeKey: InjectionKey<ResizeContext> = Symbol(\"KappaSidebarResize\");\nexport const useSidebarResizeContext = () => inject(resizeKey)!;\n\n/** Adapt Ark's two-panel size model to Sidebar's pixel width and ordinary flex remainder.\n * The separator controls only the real navigation element; no extra application wrapper is required.\n * Ark retains pointer capture, keyboard handling, collapse thresholds, and drag cleanup.\n * Use physical left/right panel order in an LTR resize scope: the installed Splitter\n * flips RTL keys but not pointer deltas. Navigation keeps the application's locale.\n */\nexport function useSidebarResize(props: Required<Pick<SidebarProviderProps, \"defaultWidth\" | \"minWidth\" | \"maxWidth\" | \"collapsedWidth\">> & SidebarProviderProps, options: ResizeOptions) {\n const internalWidth = ref(props.defaultWidth);\n const locale = useLocaleContext(DEFAULT_LOCALE);\n const resizing = ref(false);\n const groupWidth = ref(0);\n const bounds = computed(() => resolveSidebarWidthBounds(props.minWidth, props.maxWidth));\n const width = computed(() => Math.min(groupWidth.value || Infinity, clampSidebarWidth(props.resizeWidth ?? internalWidth.value, bounds.value.minWidth, bounds.value.maxWidth)));\n const enabled = computed(() => !!props.resizable && !options.isMobile.value);\n const sidebarIndex = computed(() => (props.side === \"end\") !== (locale.value.dir === \"rtl\") ? 1 : 0);\n const handleId = computed(() => sidebarIndex.value ? \"remainder:navigation\" as const : \"navigation:remainder\" as const);\n const collapsedPixels = ref(52);\n const range = computed(() => {\n const collapsed = props.collapsible === \"offcanvas\" ? 0 : Math.min(collapsedPixels.value, bounds.value.minWidth);\n return { min: props.collapsible === \"none\" ? bounds.value.minWidth : collapsed, max: Math.min(groupWidth.value || Infinity, bounds.value.maxWidth), collapsed };\n });\n let observer: ResizeObserver | undefined;\n\n function measure() {\n const root = options.layout.value;\n if (!root) return;\n groupWidth.value = root.getBoundingClientRect().width;\n // Resolve arbitrary CSS rail lengths through layout, not a second CSS parser.\n const ruler = root.querySelector<HTMLElement>('[data-slot=\"sidebar-width-measure\"]');\n if (ruler) collapsedPixels.value = ruler.getBoundingClientRect().width;\n }\n onMounted(() => {\n measure();\n observer = new ResizeObserver(measure);\n if (options.layout.value) observer.observe(options.layout.value);\n const ruler = options.layout.value?.querySelector('[data-slot=\"sidebar-width-measure\"]');\n if (ruler) observer.observe(ruler);\n });\n onScopeDispose(() => observer?.disconnect());\n\n function setWidth(value: number) {\n const next = clampSidebarWidth(value, bounds.value.minWidth, bounds.value.maxWidth);\n if (Math.abs(next - width.value) < 0.01) return;\n if (props.resizeWidth === undefined) internalWidth.value = next;\n options.onResize(next);\n }\n\n const splitterProps = computed<UseSplitterProps>(() => {\n const canCollapse = props.collapsible !== \"none\";\n const collapsed = props.collapsible === \"offcanvas\" ? 0 : Math.min(collapsedPixels.value, bounds.value.minWidth);\n const current = options.open.value ? width.value : collapsed;\n const percentage = groupWidth.value > 0 ? Math.min(100, current / groupWidth.value * 100) : 25;\n const navigation = {\n id: \"navigation\", minSize: `${bounds.value.minWidth}px`, maxSize: `${bounds.value.maxWidth}px`,\n collapsible: canCollapse, collapsedSize: `${collapsed}px`, resizeBehavior: \"preserve-pixel-size\" as const,\n };\n return {\n id: `${options.id.value}-resize`,\n ids: { root: `${options.id.value}-layout`, panel: (id) => id === \"navigation\" ? options.navId.value : `${options.id.value}-remainder` },\n panels: sidebarIndex.value ? [{ id: \"remainder\", minSize: 0 }, navigation] : [navigation, { id: \"remainder\", minSize: 0 }],\n size: sidebarIndex.value ? [100 - percentage, percentage] : [percentage, 100 - percentage],\n keyboardResizeBy: 1,\n onResize: ({ size }: { size: number[] }) => {\n if (!enabled.value || groupWidth.value <= 0) return;\n const next = (size[sidebarIndex.value] ?? 0) / 100 * groupWidth.value;\n const isCollapsed = canCollapse && next <= collapsed + 0.5;\n options.setOpen(!isCollapsed);\n if (!isCollapsed) setWidth(next);\n },\n onResizeEnd: () => { if (enabled.value) options.onResizeEnd(width.value); },\n };\n });\n provide(resizeKey, { props: splitterProps, handleId, range, setIsResizing: (value) => { resizing.value = value; } });\n return { width, setWidth, isResizing: computed(() => enabled.value && resizing.value) };\n}\n","<script setup lang=\"ts\">\nimport { Drawer as ArkDrawer } from \"@ark-ui/vue/drawer\";\nimport { computed, nextTick, onMounted, provide, ref, useId, watch, watchEffect } from \"vue\";\nimport {\n SIDEBAR_DEFAULTS, resolveSidebarBreakpoint,\n type SidebarProviderEmits, type SidebarProviderProps, type SidebarProviderSlots,\n} from \"./sidebar\";\nimport { sidebarContextKey, type SidebarContext } from \"./sidebar-context\";\nimport { useSidebarResize } from \"./sidebar-resize\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarProviderProps>(), {\n ...SIDEBAR_DEFAULTS, open: undefined, mobileOpen: undefined,\n});\nconst emit = defineEmits<SidebarProviderEmits>();\ndefineSlots<SidebarProviderSlots>();\nconst generatedId = useId();\nconst id = computed(() => props.id ?? `kappa-sidebar-${generatedId}`);\nconst navId = computed(() => `${id.value}-nav`);\nconst contentId = computed(() => `${id.value}-dialog`);\nconst mounted = ref(false);\nconst narrowViewport = ref(false);\nconst internalOpen = ref(props.defaultOpen);\nconst internalMobileOpen = ref(props.defaultMobileOpen);\nconst lastTriggerId = ref<string>();\nconst layout = ref<HTMLElement>();\nlet mobileReturnTarget: HTMLElement | null = null;\nconst open = computed(() => props.collapsible === \"none\" || (props.open ?? internalOpen.value));\nconst mobileOpen = computed(() => props.mobileOpen ?? internalMobileOpen.value);\nconst isMobile = computed(() => narrowViewport.value);\nconst peekInteraction = ref(false);\nconst resize = useSidebarResize(props, {\n layout, id, navId, open, isMobile, setOpen,\n onResize: (width) => { emit(\"update:resizeWidth\", width); emit(\"resize\", { width }); },\n onResizeEnd: (width) => emit(\"resizeEnd\", { width }),\n});\nconst isPeeking = computed(() => props.peekable && !isMobile.value && !open.value && props.collapsible === \"icon\" && peekInteraction.value && !resize.isResizing.value);\nconst iconCollapsed = computed(() => !isMobile.value && !open.value && !isPeeking.value && props.collapsible === \"icon\");\nconst state = computed(() => isPeeking.value ? \"peeking\" : (isMobile.value ? mobileOpen.value : open.value) ? \"expanded\" : \"collapsed\");\nconst dimensions = computed(() => ({\n \"--kappa-sidebar-width\": props.resizable ? `${resize.width.value}px` : props.width,\n \"--kappa-sidebar-collapsed-width\": props.collapsedWidth,\n \"--kappa-sidebar-mobile-width\": props.mobileWidth,\n}));\n\nfunction setOpen(value: boolean) {\n if (props.collapsible === \"none\" || value === open.value) return;\n if (props.open === undefined) internalOpen.value = value;\n emit(\"update:open\", value);\n emit(\"openChange\", { open: value });\n}\nfunction setMobileOpen(value: boolean) {\n if (value === mobileOpen.value) return;\n if (props.mobileOpen === undefined) internalMobileOpen.value = value;\n emit(\"update:mobileOpen\", value);\n emit(\"mobileOpenChange\", { open: value });\n}\nfunction finalFocusEl() {\n const visible = (node: HTMLElement | null | undefined) =>\n node?.isConnected && node !== document.body && !node.closest('[inert], [hidden]') && node.getClientRects().length;\n if (visible(mobileReturnTarget)) return mobileReturnTarget;\n const trigger = lastTriggerId.value ? document.getElementById(lastTriggerId.value) : null;\n if (visible(trigger)) return trigger;\n return Array.from(layout.value?.querySelectorAll<HTMLElement>('[data-slot=\"sidebar-trigger\"]') ?? [])\n .find(node => visible(node)) ?? null;\n}\n\nonMounted(() => { mounted.value = true; });\nwatchEffect((onCleanup) => {\n if (!mounted.value) return;\n const breakpoint = resolveSidebarBreakpoint(props.mobileBreakpoint);\n const media = window.matchMedia(`(width < ${breakpoint}px)`);\n const update = () => { narrowViewport.value = media.matches; };\n update();\n media.addEventListener(\"change\", update);\n onCleanup(() => media.removeEventListener(\"change\", update));\n});\n\n// Include openings requested directly by a controlled parent.\nwatch(() => isMobile.value && mobileOpen.value, (visible) => {\n if (visible) mobileReturnTarget = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n});\n// A closed mobile drawer must not reopen after a desktop round trip.\nwatch(isMobile, (mobile, previous) => {\n if (!mobile && previous) setMobileOpen(false);\n});\n// When an external control hides a focused descendant, leave focus on a visible control.\nwatch(open, async (expanded) => {\n if (expanded || isMobile.value || !mounted.value) return;\n mobileReturnTarget = null;\n const nav = document.getElementById(navId.value);\n const active = document.activeElement;\n if (!(active instanceof HTMLElement) || !nav?.contains(active)) return;\n const section = active.closest('[data-slot=\"sidebar-collapsible\"]');\n await nextTick();\n const sectionTrigger = section?.querySelector<HTMLElement>('[data-part=\"trigger\"]');\n const target = props.collapsible === \"icon\" ? sectionTrigger ?? active : finalFocusEl();\n if (target?.isConnected && target.getClientRects().length) target.focus();\n});\n\nconst context: SidebarContext = {\n open, mobileOpen, isMobile, state, iconCollapsed, navId, contentId, dimensions,\n peekable: computed(() => props.peekable), isPeeking,\n resizable: computed(() => props.resizable), isResizing: resize.isResizing,\n width: resize.width, setWidth: resize.setWidth,\n setPeekInteraction: (value) => { peekInteraction.value = value; },\n collapsible: computed(() => props.collapsible),\n side: computed(() => props.side),\n compact: computed(() => props.compact),\n setOpen, setMobileOpen,\n toggle: () => isMobile.value ? setMobileOpen(!mobileOpen.value) : setOpen(!open.value),\n rememberTrigger: (value) => { lastTriggerId.value = value; },\n};\nprovide(sidebarContextKey, context);\n</script>\n\n<template>\n <ArkDrawer.Root\n :id=\"id\"\n :ids=\"{ content: contentId }\"\n :open=\"isMobile && mobileOpen\"\n :swipe-direction=\"props.side\"\n :final-focus-el=\"finalFocusEl\"\n :lazy-mount=\"true\"\n :unmount-on-exit=\"false\"\n @update:open=\"setMobileOpen\"\n >\n <div\n ref=\"layout\"\n v-bind=\"$attrs\"\n class=\"kappa-sidebar-provider\"\n :id=\"`${id}-layout`\"\n data-slot=\"sidebar-provider\"\n :data-state=\"state\"\n :data-mobile=\"isMobile ? '' : undefined\"\n :data-resizing=\"resize.isResizing.value ? '' : undefined\"\n :style=\"dimensions\"\n >\n <span class=\"kappa-sidebar__width-measure\" data-slot=\"sidebar-width-measure\" aria-hidden=\"true\" />\n <slot />\n </div>\n </ArkDrawer.Root>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Drawer as ArkDrawer } from \"@ark-ui/vue/drawer\";\nimport { computed, nextTick, onMounted, provide, ref, useId, watch, watchEffect } from \"vue\";\nimport {\n SIDEBAR_DEFAULTS, resolveSidebarBreakpoint,\n type SidebarProviderEmits, type SidebarProviderProps, type SidebarProviderSlots,\n} from \"./sidebar\";\nimport { sidebarContextKey, type SidebarContext } from \"./sidebar-context\";\nimport { useSidebarResize } from \"./sidebar-resize\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarProviderProps>(), {\n ...SIDEBAR_DEFAULTS, open: undefined, mobileOpen: undefined,\n});\nconst emit = defineEmits<SidebarProviderEmits>();\ndefineSlots<SidebarProviderSlots>();\nconst generatedId = useId();\nconst id = computed(() => props.id ?? `kappa-sidebar-${generatedId}`);\nconst navId = computed(() => `${id.value}-nav`);\nconst contentId = computed(() => `${id.value}-dialog`);\nconst mounted = ref(false);\nconst narrowViewport = ref(false);\nconst internalOpen = ref(props.defaultOpen);\nconst internalMobileOpen = ref(props.defaultMobileOpen);\nconst lastTriggerId = ref<string>();\nconst layout = ref<HTMLElement>();\nlet mobileReturnTarget: HTMLElement | null = null;\nconst open = computed(() => props.collapsible === \"none\" || (props.open ?? internalOpen.value));\nconst mobileOpen = computed(() => props.mobileOpen ?? internalMobileOpen.value);\nconst isMobile = computed(() => narrowViewport.value);\nconst peekInteraction = ref(false);\nconst resize = useSidebarResize(props, {\n layout, id, navId, open, isMobile, setOpen,\n onResize: (width) => { emit(\"update:resizeWidth\", width); emit(\"resize\", { width }); },\n onResizeEnd: (width) => emit(\"resizeEnd\", { width }),\n});\nconst isPeeking = computed(() => props.peekable && !isMobile.value && !open.value && props.collapsible === \"icon\" && peekInteraction.value && !resize.isResizing.value);\nconst iconCollapsed = computed(() => !isMobile.value && !open.value && !isPeeking.value && props.collapsible === \"icon\");\nconst state = computed(() => isPeeking.value ? \"peeking\" : (isMobile.value ? mobileOpen.value : open.value) ? \"expanded\" : \"collapsed\");\nconst dimensions = computed(() => ({\n \"--kappa-sidebar-width\": props.resizable ? `${resize.width.value}px` : props.width,\n \"--kappa-sidebar-collapsed-width\": props.collapsedWidth,\n \"--kappa-sidebar-mobile-width\": props.mobileWidth,\n}));\n\nfunction setOpen(value: boolean) {\n if (props.collapsible === \"none\" || value === open.value) return;\n if (props.open === undefined) internalOpen.value = value;\n emit(\"update:open\", value);\n emit(\"openChange\", { open: value });\n}\nfunction setMobileOpen(value: boolean) {\n if (value === mobileOpen.value) return;\n if (props.mobileOpen === undefined) internalMobileOpen.value = value;\n emit(\"update:mobileOpen\", value);\n emit(\"mobileOpenChange\", { open: value });\n}\nfunction finalFocusEl() {\n const visible = (node: HTMLElement | null | undefined) =>\n node?.isConnected && node !== document.body && !node.closest('[inert], [hidden]') && node.getClientRects().length;\n if (visible(mobileReturnTarget)) return mobileReturnTarget;\n const trigger = lastTriggerId.value ? document.getElementById(lastTriggerId.value) : null;\n if (visible(trigger)) return trigger;\n return Array.from(layout.value?.querySelectorAll<HTMLElement>('[data-slot=\"sidebar-trigger\"]') ?? [])\n .find(node => visible(node)) ?? null;\n}\n\nonMounted(() => { mounted.value = true; });\nwatchEffect((onCleanup) => {\n if (!mounted.value) return;\n const breakpoint = resolveSidebarBreakpoint(props.mobileBreakpoint);\n const media = window.matchMedia(`(width < ${breakpoint}px)`);\n const update = () => { narrowViewport.value = media.matches; };\n update();\n media.addEventListener(\"change\", update);\n onCleanup(() => media.removeEventListener(\"change\", update));\n});\n\n// Include openings requested directly by a controlled parent.\nwatch(() => isMobile.value && mobileOpen.value, (visible) => {\n if (visible) mobileReturnTarget = document.activeElement instanceof HTMLElement ? document.activeElement : null;\n});\n// A closed mobile drawer must not reopen after a desktop round trip.\nwatch(isMobile, (mobile, previous) => {\n if (!mobile && previous) setMobileOpen(false);\n});\n// When an external control hides a focused descendant, leave focus on a visible control.\nwatch(open, async (expanded) => {\n if (expanded || isMobile.value || !mounted.value) return;\n mobileReturnTarget = null;\n const nav = document.getElementById(navId.value);\n const active = document.activeElement;\n if (!(active instanceof HTMLElement) || !nav?.contains(active)) return;\n const section = active.closest('[data-slot=\"sidebar-collapsible\"]');\n await nextTick();\n const sectionTrigger = section?.querySelector<HTMLElement>('[data-part=\"trigger\"]');\n const target = props.collapsible === \"icon\" ? sectionTrigger ?? active : finalFocusEl();\n if (target?.isConnected && target.getClientRects().length) target.focus();\n});\n\nconst context: SidebarContext = {\n open, mobileOpen, isMobile, state, iconCollapsed, navId, contentId, dimensions,\n peekable: computed(() => props.peekable), isPeeking,\n resizable: computed(() => props.resizable), isResizing: resize.isResizing,\n width: resize.width, setWidth: resize.setWidth,\n setPeekInteraction: (value) => { peekInteraction.value = value; },\n collapsible: computed(() => props.collapsible),\n side: computed(() => props.side),\n compact: computed(() => props.compact),\n setOpen, setMobileOpen,\n toggle: () => isMobile.value ? setMobileOpen(!mobileOpen.value) : setOpen(!open.value),\n rememberTrigger: (value) => { lastTriggerId.value = value; },\n};\nprovide(sidebarContextKey, context);\n</script>\n\n<template>\n <ArkDrawer.Root\n :id=\"id\"\n :ids=\"{ content: contentId }\"\n :open=\"isMobile && mobileOpen\"\n :swipe-direction=\"props.side\"\n :final-focus-el=\"finalFocusEl\"\n :lazy-mount=\"true\"\n :unmount-on-exit=\"false\"\n @update:open=\"setMobileOpen\"\n >\n <div\n ref=\"layout\"\n v-bind=\"$attrs\"\n class=\"kappa-sidebar-provider\"\n :id=\"`${id}-layout`\"\n data-slot=\"sidebar-provider\"\n :data-state=\"state\"\n :data-mobile=\"isMobile ? '' : undefined\"\n :data-resizing=\"resize.isResizing.value ? '' : undefined\"\n :style=\"dimensions\"\n >\n <span class=\"kappa-sidebar__width-measure\" data-slot=\"sidebar-width-measure\" aria-hidden=\"true\" />\n <slot />\n </div>\n </ArkDrawer.Root>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { reactive, type VNodeChild } from \"vue\";\nimport { useSidebarContext, type SidebarContextValue } from \"./sidebar-context\";\ndefineSlots<{ default?: (context: SidebarContextValue) => VNodeChild }>();\nconst context = reactive(useSidebarContext());\n</script>\n<template><slot v-bind=\"context\" /></template>\n","<script setup lang=\"ts\">\nimport { reactive, type VNodeChild } from \"vue\";\nimport { useSidebarContext, type SidebarContextValue } from \"./sidebar-context\";\ndefineSlots<{ default?: (context: SidebarContextValue) => VNodeChild }>();\nconst context = reactive(useSidebarContext());\n</script>\n<template><slot v-bind=\"context\" /></template>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { computed, useAttrs, useId } from \"vue\";\nimport type { SidebarSlots, SidebarTriggerProps } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarTriggerProps>(), {\n asChild: false, disabled: false,\n expandLabel: \"Expand sidebar\", collapseLabel: \"Collapse sidebar\",\n openLabel: \"Open sidebar\", closeLabel: \"Close sidebar\",\n});\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\nconst attrs = useAttrs();\nconst generatedId = useId();\nconst id = computed(() => String(attrs.id ?? `kappa-sidebar-trigger-${generatedId}`));\nconst expanded = computed(() => sidebar.isMobile.value ? sidebar.mobileOpen.value : sidebar.open.value);\nconst label = computed(() => sidebar.isMobile.value\n ? expanded.value ? props.closeLabel : props.openLabel\n : expanded.value ? props.collapseLabel : props.expandLabel);\nfunction onClick(event: MouseEvent) {\n if (event.defaultPrevented || props.disabled) return;\n sidebar.rememberTrigger(id.value);\n sidebar.toggle();\n}\n</script>\n\n<template>\n <ark.button\n :aria-label=\"$slots.default ? undefined : label\"\n v-bind=\"$attrs\"\n :id=\"id\"\n :as-child=\"props.asChild\"\n class=\"kappa-sidebar__trigger\"\n data-slot=\"sidebar-trigger\"\n type=\"button\"\n :disabled=\"props.disabled || (!sidebar.isMobile.value && sidebar.collapsible.value === 'none')\"\n :aria-expanded=\"expanded\"\n :aria-controls=\"sidebar.isMobile.value ? sidebar.contentId.value : sidebar.navId.value\"\n :aria-haspopup=\"sidebar.isMobile.value ? 'dialog' : undefined\"\n @click=\"onClick\"\n >\n <slot>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <rect x=\"2\" y=\"2.5\" width=\"12\" height=\"11\" rx=\"1.5\" />\n <path d=\"M6 2.5v11\" />\n </svg>\n </slot>\n </ark.button>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { computed, useAttrs, useId } from \"vue\";\nimport type { SidebarSlots, SidebarTriggerProps } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarTriggerProps>(), {\n asChild: false, disabled: false,\n expandLabel: \"Expand sidebar\", collapseLabel: \"Collapse sidebar\",\n openLabel: \"Open sidebar\", closeLabel: \"Close sidebar\",\n});\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\nconst attrs = useAttrs();\nconst generatedId = useId();\nconst id = computed(() => String(attrs.id ?? `kappa-sidebar-trigger-${generatedId}`));\nconst expanded = computed(() => sidebar.isMobile.value ? sidebar.mobileOpen.value : sidebar.open.value);\nconst label = computed(() => sidebar.isMobile.value\n ? expanded.value ? props.closeLabel : props.openLabel\n : expanded.value ? props.collapseLabel : props.expandLabel);\nfunction onClick(event: MouseEvent) {\n if (event.defaultPrevented || props.disabled) return;\n sidebar.rememberTrigger(id.value);\n sidebar.toggle();\n}\n</script>\n\n<template>\n <ark.button\n :aria-label=\"$slots.default ? undefined : label\"\n v-bind=\"$attrs\"\n :id=\"id\"\n :as-child=\"props.asChild\"\n class=\"kappa-sidebar__trigger\"\n data-slot=\"sidebar-trigger\"\n type=\"button\"\n :disabled=\"props.disabled || (!sidebar.isMobile.value && sidebar.collapsible.value === 'none')\"\n :aria-expanded=\"expanded\"\n :aria-controls=\"sidebar.isMobile.value ? sidebar.contentId.value : sidebar.navId.value\"\n :aria-haspopup=\"sidebar.isMobile.value ? 'dialog' : undefined\"\n @click=\"onClick\"\n >\n <slot>\n <svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\">\n <rect x=\"2\" y=\"2.5\" width=\"12\" height=\"11\" rx=\"1.5\" />\n <path d=\"M6 2.5v11\" />\n </svg>\n </slot>\n </ark.button>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Drawer as ArkDrawer } from \"@ark-ui/vue/drawer\";\nimport type { SidebarCloseProps, SidebarSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCloseProps>(), { asChild: false, label: \"Close sidebar\" });\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\n</script>\n\n<template>\n <ArkDrawer.CloseTrigger\n v-if=\"sidebar.isMobile.value\"\n :aria-label=\"$slots.default ? undefined : props.label\"\n v-bind=\"$attrs\"\n :as-child=\"props.asChild\"\n class=\"kappa-sidebar__close\"\n data-slot=\"sidebar-close\"\n type=\"button\"\n >\n <slot><svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\"><path d=\"m4 4 8 8M12 4l-8 8\" /></svg></slot>\n </ArkDrawer.CloseTrigger>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Drawer as ArkDrawer } from \"@ark-ui/vue/drawer\";\nimport type { SidebarCloseProps, SidebarSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCloseProps>(), { asChild: false, label: \"Close sidebar\" });\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\n</script>\n\n<template>\n <ArkDrawer.CloseTrigger\n v-if=\"sidebar.isMobile.value\"\n :aria-label=\"$slots.default ? undefined : props.label\"\n v-bind=\"$attrs\"\n :as-child=\"props.asChild\"\n class=\"kappa-sidebar__close\"\n data-slot=\"sidebar-close\"\n type=\"button\"\n >\n <slot><svg viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\" focusable=\"false\"><path d=\"m4 4 8 8M12 4l-8 8\" /></svg></slot>\n </ArkDrawer.CloseTrigger>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.header v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__header\" data-slot=\"sidebar-header\"><slot /></ark.header>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.header v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__header\" data-slot=\"sidebar-header\"><slot /></ark.header>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.footer v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__footer\" data-slot=\"sidebar-footer\"><slot /></ark.footer>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.footer v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__footer\" data-slot=\"sidebar-footer\"><slot /></ark.footer>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.div tabindex=\"0\" role=\"region\" aria-label=\"Navigation items\" v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__content\" data-slot=\"sidebar-content\"><slot /></ark.div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.div tabindex=\"0\" role=\"region\" aria-label=\"Navigation items\" v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__content\" data-slot=\"sidebar-content\"><slot /></ark.div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.div v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__group\" data-slot=\"sidebar-group\"><slot /></ark.div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.div v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__group\" data-slot=\"sidebar-group\"><slot /></ark.div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.div v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__group-label\" data-slot=\"sidebar-group-label\"><slot /></ark.div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.div v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__group-label\" data-slot=\"sidebar-group-label\"><slot /></ark.div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.ul v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu\" data-slot=\"sidebar-menu\"><slot /></ark.ul>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.ul v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu\" data-slot=\"sidebar-menu\"><slot /></ark.ul>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.li v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-item\" data-slot=\"sidebar-menu-item\"><slot /></ark.li>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.li v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-item\" data-slot=\"sidebar-menu-item\"><slot /></ark.li>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","import { cloneVNode, Comment, defineComponent, Fragment, isVNode, mergeProps, type VNode } from \"vue\";\n\nfunction flatten(nodes: VNode[]): VNode[] {\n return nodes.flatMap(node => node.type === Fragment && Array.isArray(node.children)\n ? flatten(node.children.filter(isVNode)) : [node]);\n}\n\n// Ark's asChild lets child props win. Enforce disabled link semantics after that merge.\nexport default defineComponent({\n name: \"SidebarMenuChild\",\n inheritAttrs: false,\n props: { disabled: Boolean },\n setup(props, { attrs, slots }) {\n return () => {\n const nodes = flatten(slots.default?.() ?? []);\n const index = nodes.findIndex(node => node.type !== Comment);\n if (index < 0) return nodes;\n const child = nodes[index];\n const disabled = props.disabled ? {\n href: null,\n tabindex: -1,\n \"aria-disabled\": true,\n ...(child.type === \"a\" ? { role: \"link\" } : {}),\n ...(child.type === \"button\" ? { disabled: true } : {}),\n } : {};\n nodes[index] = cloneVNode({ ...child, props: {} }, mergeProps(attrs, child.props ?? {}, disabled));\n return nodes;\n };\n },\n});\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { DEFAULT_LOCALE, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport { computed } from \"vue\";\nimport { Tooltip } from \"../tooltip\";\nimport SidebarMenuChild from \"./SidebarMenuChild\";\nimport type { SidebarMenuButtonProps, SidebarMenuButtonSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarMenuButtonProps>(), {\n asChild: false, active: false, disabled: false,\n});\ndefineSlots<SidebarMenuButtonSlots>();\nconst sidebar = useSidebarContext();\nconst locale = useLocaleContext(DEFAULT_LOCALE);\nconst element = computed(() => props.href !== undefined ? ark.a : ark.button);\nconst placement = computed(() => (sidebar.side.value === 'start') !== (locale.value.dir === 'rtl') ? 'right' : 'left');\nfunction blockDisabled(event: Event) {\n if (!props.disabled) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\nfunction blockDisabledKey(event: KeyboardEvent) {\n if (event.key === \"Enter\" || event.key === \" \") blockDisabled(event);\n}\n</script>\n\n<template>\n <Tooltip.Root\n :disabled=\"!sidebar.iconCollapsed.value || !props.tooltip || props.disabled\"\n :positioning=\"{ placement, gutter: 8 }\"\n >\n <Tooltip.Trigger as-child>\n <component\n :is=\"element\"\n :aria-current=\"props.active ? 'page' : undefined\"\n :role=\"props.disabled && props.href !== undefined ? 'link' : undefined\"\n v-bind=\"{ ...$attrs, ...(props.disabled ? { tabindex: -1 } : {}) }\"\n :as-child=\"props.asChild\"\n class=\"kappa-sidebar__menu-button\"\n data-slot=\"sidebar-menu-button\"\n :data-active=\"props.active ? '' : undefined\"\n :data-disabled=\"props.disabled ? '' : undefined\"\n :data-icon=\"props.icon || $slots.icon ? '' : undefined\"\n :href=\"props.disabled ? undefined : props.href\"\n :type=\"props.href !== undefined || props.asChild ? undefined : 'button'\"\n :disabled=\"props.href === undefined && !props.asChild ? props.disabled : undefined\"\n :aria-disabled=\"props.disabled ? true : undefined\"\n @click.capture=\"blockDisabled\"\n @pointerdown.capture=\"blockDisabled\"\n @keydown.capture=\"blockDisabledKey\"\n >\n <SidebarMenuChild v-if=\"props.asChild\" :disabled=\"props.disabled\"><slot /></SidebarMenuChild>\n <template v-else>\n <span v-if=\"props.icon || $slots.icon\" class=\"kappa-sidebar__menu-icon\" aria-hidden=\"true\">\n <slot name=\"icon\"><component :is=\"props.icon\" focusable=\"false\" /></slot>\n </span>\n <span class=\"kappa-sidebar__menu-label\"><slot /></span>\n </template>\n </component>\n </Tooltip.Trigger>\n <Tooltip.Content v-if=\"props.tooltip\" :show-arrow=\"false\">{{ props.tooltip }}</Tooltip.Content>\n </Tooltip.Root>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport { DEFAULT_LOCALE, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport { computed } from \"vue\";\nimport { Tooltip } from \"../tooltip\";\nimport SidebarMenuChild from \"./SidebarMenuChild\";\nimport type { SidebarMenuButtonProps, SidebarMenuButtonSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarMenuButtonProps>(), {\n asChild: false, active: false, disabled: false,\n});\ndefineSlots<SidebarMenuButtonSlots>();\nconst sidebar = useSidebarContext();\nconst locale = useLocaleContext(DEFAULT_LOCALE);\nconst element = computed(() => props.href !== undefined ? ark.a : ark.button);\nconst placement = computed(() => (sidebar.side.value === 'start') !== (locale.value.dir === 'rtl') ? 'right' : 'left');\nfunction blockDisabled(event: Event) {\n if (!props.disabled) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\nfunction blockDisabledKey(event: KeyboardEvent) {\n if (event.key === \"Enter\" || event.key === \" \") blockDisabled(event);\n}\n</script>\n\n<template>\n <Tooltip.Root\n :disabled=\"!sidebar.iconCollapsed.value || !props.tooltip || props.disabled\"\n :positioning=\"{ placement, gutter: 8 }\"\n >\n <Tooltip.Trigger as-child>\n <component\n :is=\"element\"\n :aria-current=\"props.active ? 'page' : undefined\"\n :role=\"props.disabled && props.href !== undefined ? 'link' : undefined\"\n v-bind=\"{ ...$attrs, ...(props.disabled ? { tabindex: -1 } : {}) }\"\n :as-child=\"props.asChild\"\n class=\"kappa-sidebar__menu-button\"\n data-slot=\"sidebar-menu-button\"\n :data-active=\"props.active ? '' : undefined\"\n :data-disabled=\"props.disabled ? '' : undefined\"\n :data-icon=\"props.icon || $slots.icon ? '' : undefined\"\n :href=\"props.disabled ? undefined : props.href\"\n :type=\"props.href !== undefined || props.asChild ? undefined : 'button'\"\n :disabled=\"props.href === undefined && !props.asChild ? props.disabled : undefined\"\n :aria-disabled=\"props.disabled ? true : undefined\"\n @click.capture=\"blockDisabled\"\n @pointerdown.capture=\"blockDisabled\"\n @keydown.capture=\"blockDisabledKey\"\n >\n <SidebarMenuChild v-if=\"props.asChild\" :disabled=\"props.disabled\"><slot /></SidebarMenuChild>\n <template v-else>\n <span v-if=\"props.icon || $slots.icon\" class=\"kappa-sidebar__menu-icon\" aria-hidden=\"true\">\n <slot name=\"icon\"><component :is=\"props.icon\" focusable=\"false\" /></slot>\n </span>\n <span class=\"kappa-sidebar__menu-label\"><slot /></span>\n </template>\n </component>\n </Tooltip.Trigger>\n <Tooltip.Content v-if=\"props.tooltip\" :show-arrow=\"false\">{{ props.tooltip }}</Tooltip.Content>\n </Tooltip.Root>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.ul v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-sub\" data-slot=\"sidebar-menu-sub\"><slot /></ark.ul>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.ul v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-sub\" data-slot=\"sidebar-menu-sub\"><slot /></ark.ul>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.li v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-sub-item\" data-slot=\"sidebar-menu-sub-item\"><slot /></ark.li>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.li v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-sub-item\" data-slot=\"sidebar-menu-sub-item\"><slot /></ark.li>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.span v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-label\" data-slot=\"sidebar-menu-label\"><slot /></ark.span>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.span v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-label\" data-slot=\"sidebar-menu-label\"><slot /></ark.span>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.span v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-badge\" data-slot=\"sidebar-menu-badge\"><slot /></ark.span>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.span v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-badge\" data-slot=\"sidebar-menu-badge\"><slot /></ark.span>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\ndefineOptions({ inheritAttrs: false });\n</script>\n<template>\n <ArkCollapsible.Indicator v-bind=\"$attrs\" class=\"kappa-sidebar__menu-chevron\" data-slot=\"sidebar-menu-chevron\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" focusable=\"false\"><path d=\"m6 4 4 4-4 4\" /></svg>\n </ArkCollapsible.Indicator>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\ndefineOptions({ inheritAttrs: false });\n</script>\n<template>\n <ArkCollapsible.Indicator v-bind=\"$attrs\" class=\"kappa-sidebar__menu-chevron\" data-slot=\"sidebar-menu-chevron\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" focusable=\"false\"><path d=\"m6 4 4 4-4 4\" /></svg>\n </ArkCollapsible.Indicator>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.hr v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__separator\" data-slot=\"sidebar-separator\" />\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { ark } from \"@ark-ui/vue/factory\";\nimport type { SidebarPartProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarPartProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n\n<template>\n <ark.hr v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__separator\" data-slot=\"sidebar-separator\" />\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\nimport { computed, ref } from \"vue\";\nimport type { SidebarCollapsibleProps, SidebarCollapsibleEmits, SidebarSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCollapsibleProps>(), {\n open: undefined, defaultOpen: false, disabled: false,\n});\nconst emit = defineEmits<SidebarCollapsibleEmits>();\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\nconst internalOpen = ref(props.defaultOpen);\nconst open = computed(() => !sidebar.iconCollapsed.value && (props.open ?? internalOpen.value));\nfunction setOpen(value: boolean) {\n if (sidebar.iconCollapsed.value && value) sidebar.setOpen(true);\n if (props.open === undefined) internalOpen.value = value;\n emit(\"update:open\", value);\n emit(\"openChange\", { open: value });\n}\n</script>\n\n<template>\n <ArkCollapsible.Root\n v-bind=\"$attrs\"\n :id=\"props.id\"\n :open=\"open\"\n :disabled=\"props.disabled\"\n :unmount-on-exit=\"false\"\n class=\"kappa-sidebar__collapsible\"\n data-slot=\"sidebar-collapsible\"\n @update:open=\"setOpen\"\n ><slot /></ArkCollapsible.Root>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\nimport { computed, ref } from \"vue\";\nimport type { SidebarCollapsibleProps, SidebarCollapsibleEmits, SidebarSlots } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCollapsibleProps>(), {\n open: undefined, defaultOpen: false, disabled: false,\n});\nconst emit = defineEmits<SidebarCollapsibleEmits>();\ndefineSlots<SidebarSlots>();\nconst sidebar = useSidebarContext();\nconst internalOpen = ref(props.defaultOpen);\nconst open = computed(() => !sidebar.iconCollapsed.value && (props.open ?? internalOpen.value));\nfunction setOpen(value: boolean) {\n if (sidebar.iconCollapsed.value && value) sidebar.setOpen(true);\n if (props.open === undefined) internalOpen.value = value;\n emit(\"update:open\", value);\n emit(\"openChange\", { open: value });\n}\n</script>\n\n<template>\n <ArkCollapsible.Root\n v-bind=\"$attrs\"\n :id=\"props.id\"\n :open=\"open\"\n :disabled=\"props.disabled\"\n :unmount-on-exit=\"false\"\n class=\"kappa-sidebar__collapsible\"\n data-slot=\"sidebar-collapsible\"\n @update:open=\"setOpen\"\n ><slot /></ArkCollapsible.Root>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\nimport type { SidebarCollapsibleTriggerProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCollapsibleTriggerProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n<template>\n <ArkCollapsible.Trigger v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-button\" data-slot=\"sidebar-collapsible-trigger\"><slot /></ArkCollapsible.Trigger>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\nimport type { SidebarCollapsibleTriggerProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCollapsibleTriggerProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n<template>\n <ArkCollapsible.Trigger v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__menu-button\" data-slot=\"sidebar-collapsible-trigger\"><slot /></ArkCollapsible.Trigger>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\nimport type { SidebarCollapsibleContentProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCollapsibleContentProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n<template>\n <ArkCollapsible.Content v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__collapsible-content\" data-slot=\"sidebar-collapsible-content\"><slot /></ArkCollapsible.Content>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { Collapsible as ArkCollapsible } from \"@ark-ui/vue/collapsible\";\nimport type { SidebarCollapsibleContentProps, SidebarSlots } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarCollapsibleContentProps>(), { asChild: false });\ndefineSlots<SidebarSlots>();\n</script>\n<template>\n <ArkCollapsible.Content v-bind=\"$attrs\" :as-child=\"props.asChild\" class=\"kappa-sidebar__collapsible-content\" data-slot=\"sidebar-collapsible-content\"><slot /></ArkCollapsible.Content>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { resolveSidebarLoadingRows, type SidebarLoadingProps } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarLoadingProps>(), { rows: 5, label: \"Loading navigation\" });\nconst rows = computed(() => resolveSidebarLoadingRows(props.rows));\n</script>\n<template>\n <div v-bind=\"$attrs\" class=\"kappa-sidebar__loading\" data-slot=\"sidebar-loading\" role=\"status\" :aria-label=\"props.label\">\n <div v-for=\"row in rows\" :key=\"row\" class=\"kappa-sidebar__loading-row\" aria-hidden=\"true\">\n <span class=\"kappa-sidebar__loading-icon\" /><span class=\"kappa-sidebar__loading-label\" />\n </div>\n </div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport { resolveSidebarLoadingRows, type SidebarLoadingProps } from \"./sidebar\";\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarLoadingProps>(), { rows: 5, label: \"Loading navigation\" });\nconst rows = computed(() => resolveSidebarLoadingRows(props.rows));\n</script>\n<template>\n <div v-bind=\"$attrs\" class=\"kappa-sidebar__loading\" data-slot=\"sidebar-loading\" role=\"status\" :aria-label=\"props.label\">\n <div v-for=\"row in rows\" :key=\"row\" class=\"kappa-sidebar__loading-row\" aria-hidden=\"true\">\n <span class=\"kappa-sidebar__loading-icon\" /><span class=\"kappa-sidebar__loading-label\" />\n </div>\n </div>\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { useSplitter } from \"@ark-ui/vue/splitter\";\nimport { computed, onScopeDispose, watch } from \"vue\";\nimport type { SidebarResizeHandleProps } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\nimport { useSidebarResizeContext } from \"./sidebar-resize\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<SidebarResizeHandleProps>();\nconst sidebar = useSidebarContext();\nconst resize = useSidebarResizeContext();\nconst api = useSplitter(resize.props);\nconst handleProps = computed(() => api.value.getResizeTriggerProps({ id: resize.handleId.value, disabled: props.disabled }));\nfunction toggleTrailingPanel(event: KeyboardEvent) {\n if (event.defaultPrevented || props.disabled || event.key !== \"Enter\" || resize.handleId.value !== \"remainder:navigation\") return;\n // Ark's Enter shortcut targets the leading panel. Our controlled panel can trail it.\n event.preventDefault();\n if (sidebar.open.value) api.value.collapsePanel(\"navigation\");\n else api.value.expandPanel(\"navigation\");\n}\nwatch(() => api.value.dragging, resize.setIsResizing);\nonScopeDispose(() => resize.setIsResizing(false));\n</script>\n\n<template>\n <div\n v-bind=\"{ ...handleProps, ...$attrs }\"\n class=\"kappa-sidebar__resize-handle\"\n data-slot=\"sidebar-resize-handle\"\n :aria-label=\"props.label\"\n aria-orientation=\"vertical\"\n :aria-controls=\"sidebar.navId.value\"\n :aria-valuemin=\"resize.range.value.min\"\n :aria-valuemax=\"resize.range.value.max\"\n :aria-valuenow=\"Math.round(sidebar.open.value ? sidebar.width.value : resize.range.value.collapsed)\"\n :aria-valuetext=\"sidebar.open.value ? `${Math.round(sidebar.width.value)} pixels` : 'Collapsed'\"\n :aria-disabled=\"props.disabled || undefined\"\n @keydown.capture=\"toggleTrailingPanel\"\n />\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { useSplitter } from \"@ark-ui/vue/splitter\";\nimport { computed, onScopeDispose, watch } from \"vue\";\nimport type { SidebarResizeHandleProps } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\nimport { useSidebarResizeContext } from \"./sidebar-resize\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = defineProps<SidebarResizeHandleProps>();\nconst sidebar = useSidebarContext();\nconst resize = useSidebarResizeContext();\nconst api = useSplitter(resize.props);\nconst handleProps = computed(() => api.value.getResizeTriggerProps({ id: resize.handleId.value, disabled: props.disabled }));\nfunction toggleTrailingPanel(event: KeyboardEvent) {\n if (event.defaultPrevented || props.disabled || event.key !== \"Enter\" || resize.handleId.value !== \"remainder:navigation\") return;\n // Ark's Enter shortcut targets the leading panel. Our controlled panel can trail it.\n event.preventDefault();\n if (sidebar.open.value) api.value.collapsePanel(\"navigation\");\n else api.value.expandPanel(\"navigation\");\n}\nwatch(() => api.value.dragging, resize.setIsResizing);\nonScopeDispose(() => resize.setIsResizing(false));\n</script>\n\n<template>\n <div\n v-bind=\"{ ...handleProps, ...$attrs }\"\n class=\"kappa-sidebar__resize-handle\"\n data-slot=\"sidebar-resize-handle\"\n :aria-label=\"props.label\"\n aria-orientation=\"vertical\"\n :aria-controls=\"sidebar.navId.value\"\n :aria-valuemin=\"resize.range.value.min\"\n :aria-valuemax=\"resize.range.value.max\"\n :aria-valuenow=\"Math.round(sidebar.open.value ? sidebar.width.value : resize.range.value.collapsed)\"\n :aria-valuetext=\"sidebar.open.value ? `${Math.round(sidebar.width.value)} pixels` : 'Collapsed'\"\n :aria-disabled=\"props.disabled || undefined\"\n @keydown.capture=\"toggleTrailingPanel\"\n />\n</template>\n\n<style src=\"./sidebar.css\"></style>\n","<script setup lang=\"ts\">\nimport { DEFAULT_LOCALE, LocaleProvider, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport type { SidebarResizeHandleProps } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\nimport SidebarResizeControl from \"./SidebarResizeControl.vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarResizeHandleProps>(), { label: \"Resize sidebar\", disabled: false });\nconst sidebar = useSidebarContext();\nconst locale = useLocaleContext(DEFAULT_LOCALE);\n</script>\n\n<template>\n <LocaleProvider locale=\"en-US\">\n <SidebarResizeControl v-if=\"sidebar.resizable.value && !sidebar.isMobile.value\" v-bind=\"{ ...$attrs, ...props, dir: locale.dir }\" />\n </LocaleProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { DEFAULT_LOCALE, LocaleProvider, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport type { SidebarResizeHandleProps } from \"./sidebar\";\nimport { useSidebarContext } from \"./sidebar-context\";\nimport SidebarResizeControl from \"./SidebarResizeControl.vue\";\n\ndefineOptions({ inheritAttrs: false });\nconst props = withDefaults(defineProps<SidebarResizeHandleProps>(), { label: \"Resize sidebar\", disabled: false });\nconst sidebar = useSidebarContext();\nconst locale = useLocaleContext(DEFAULT_LOCALE);\n</script>\n\n<template>\n <LocaleProvider locale=\"en-US\">\n <SidebarResizeControl v-if=\"sidebar.resizable.value && !sidebar.isMobile.value\" v-bind=\"{ ...$attrs, ...props, dir: locale.dir }\" />\n </LocaleProvider>\n</template>\n","import { inject, type ComputedRef, type InjectionKey } from \"vue\";\n\ninterface SlidingContext { activeKey: ComputedRef<string>; direction: ComputedRef<\"left\" | \"right\"> }\nexport const sidebarSlidingKey: InjectionKey<SlidingContext> = Symbol(\"KappaSidebarSlidingViews\");\nexport function useSidebarSlidingContext() {\n const context = inject(sidebarSlidingKey);\n if (!context) throw new Error(\"[Kappa Sidebar] SlidingView must be inside Sidebar.SlidingViews.\");\n return context;\n}\n","<script setup lang=\"ts\">\nimport { computed, nextTick, provide, ref, watch } from \"vue\";\nimport type { SidebarSlidingViewsProps, SidebarSlots } from \"./sidebar\";\nimport { sidebarSlidingKey } from \"./sidebar-sliding-context\";\n\nconst props = withDefaults(defineProps<SidebarSlidingViewsProps>(), { direction: \"left\" });\ndefineSlots<SidebarSlots>();\nconst root = ref<HTMLElement>();\nconst lastFocus = new Map<string, HTMLElement>();\nprovide(sidebarSlidingKey, { activeKey: computed(() => props.activeKey), direction: computed(() => props.direction) });\n\nwatch(() => props.activeKey, async (key, previous) => {\n for (const [value, node] of lastFocus) if (!root.value?.contains(node)) lastFocus.delete(value);\n const active = root.value?.ownerDocument.activeElement;\n const previousView = active?.closest('[data-slot=\"sidebar-sliding-view\"]');\n if (!(active instanceof HTMLElement) || previousView?.getAttribute(\"data-value\") !== previous || previousView.closest('[data-slot=\"sidebar-sliding-views\"]') !== root.value) return;\n lastFocus.set(previous, active);\n await nextTick();\n const view = Array.from(root.value?.querySelectorAll<HTMLElement>('[data-slot=\"sidebar-sliding-view\"]') ?? [])\n .find(node => node.dataset.value === key && node.closest('[data-slot=\"sidebar-sliding-views\"]') === root.value);\n if (!view) return;\n const saved = lastFocus.get(key);\n const target = saved?.isConnected && view.contains(saved) && saved.getClientRects().length && !saved.closest('[inert], [hidden], [disabled], [aria-disabled=\"true\"]') ? saved : view;\n target.focus({ preventScroll: true });\n});\n</script>\n\n<template>\n <div ref=\"root\" class=\"kappa-sidebar__sliding-views\" data-slot=\"sidebar-sliding-views\" :data-direction=\"props.direction\">\n <slot />\n </div>\n</template>\n\n<style src=\"./sidebar-sliding.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed, nextTick, provide, ref, watch } from \"vue\";\nimport type { SidebarSlidingViewsProps, SidebarSlots } from \"./sidebar\";\nimport { sidebarSlidingKey } from \"./sidebar-sliding-context\";\n\nconst props = withDefaults(defineProps<SidebarSlidingViewsProps>(), { direction: \"left\" });\ndefineSlots<SidebarSlots>();\nconst root = ref<HTMLElement>();\nconst lastFocus = new Map<string, HTMLElement>();\nprovide(sidebarSlidingKey, { activeKey: computed(() => props.activeKey), direction: computed(() => props.direction) });\n\nwatch(() => props.activeKey, async (key, previous) => {\n for (const [value, node] of lastFocus) if (!root.value?.contains(node)) lastFocus.delete(value);\n const active = root.value?.ownerDocument.activeElement;\n const previousView = active?.closest('[data-slot=\"sidebar-sliding-view\"]');\n if (!(active instanceof HTMLElement) || previousView?.getAttribute(\"data-value\") !== previous || previousView.closest('[data-slot=\"sidebar-sliding-views\"]') !== root.value) return;\n lastFocus.set(previous, active);\n await nextTick();\n const view = Array.from(root.value?.querySelectorAll<HTMLElement>('[data-slot=\"sidebar-sliding-view\"]') ?? [])\n .find(node => node.dataset.value === key && node.closest('[data-slot=\"sidebar-sliding-views\"]') === root.value);\n if (!view) return;\n const saved = lastFocus.get(key);\n const target = saved?.isConnected && view.contains(saved) && saved.getClientRects().length && !saved.closest('[inert], [hidden], [disabled], [aria-disabled=\"true\"]') ? saved : view;\n target.focus({ preventScroll: true });\n});\n</script>\n\n<template>\n <div ref=\"root\" class=\"kappa-sidebar__sliding-views\" data-slot=\"sidebar-sliding-views\" :data-direction=\"props.direction\">\n <slot />\n </div>\n</template>\n\n<style src=\"./sidebar-sliding.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport type { SidebarSlidingViewProps, SidebarSlots } from \"./sidebar\";\nimport { useSidebarSlidingContext } from \"./sidebar-sliding-context\";\n\nconst props = defineProps<SidebarSlidingViewProps>();\ndefineSlots<SidebarSlots>();\nconst views = useSidebarSlidingContext();\nconst active = computed(() => views.activeKey.value === props.value);\n</script>\n\n<template>\n <Transition :name=\"`kappa-sidebar-slide-${views.direction.value}`\">\n <div\n v-show=\"active\"\n class=\"kappa-sidebar__sliding-view\"\n data-slot=\"sidebar-sliding-view\"\n :data-value=\"props.value\"\n :data-state=\"active ? 'active' : 'inactive'\"\n role=\"group\"\n :aria-label=\"props.label ?? props.value\"\n tabindex=\"-1\"\n :aria-hidden=\"!active || undefined\"\n :inert=\"!active || undefined\"\n ><slot /></div>\n </Transition>\n</template>\n\n<style src=\"./sidebar-sliding.css\"></style>\n","<script setup lang=\"ts\">\nimport { computed } from \"vue\";\nimport type { SidebarSlidingViewProps, SidebarSlots } from \"./sidebar\";\nimport { useSidebarSlidingContext } from \"./sidebar-sliding-context\";\n\nconst props = defineProps<SidebarSlidingViewProps>();\ndefineSlots<SidebarSlots>();\nconst views = useSidebarSlidingContext();\nconst active = computed(() => views.activeKey.value === props.value);\n</script>\n\n<template>\n <Transition :name=\"`kappa-sidebar-slide-${views.direction.value}`\">\n <div\n v-show=\"active\"\n class=\"kappa-sidebar__sliding-view\"\n data-slot=\"sidebar-sliding-view\"\n :data-value=\"props.value\"\n :data-state=\"active ? 'active' : 'inactive'\"\n role=\"group\"\n :aria-label=\"props.label ?? props.value\"\n tabindex=\"-1\"\n :aria-hidden=\"!active || undefined\"\n :inert=\"!active || undefined\"\n ><slot /></div>\n </Transition>\n</template>\n\n<style src=\"./sidebar-sliding.css\"></style>\n","import SidebarRoot from \"./Sidebar.vue\";\nimport SidebarProvider from \"./SidebarProvider.vue\";\nimport SidebarContext from \"./SidebarContext.vue\";\nimport SidebarTrigger from \"./SidebarTrigger.vue\";\nimport SidebarClose from \"./SidebarClose.vue\";\nimport SidebarHeader from \"./SidebarHeader.vue\";\nimport SidebarFooter from \"./SidebarFooter.vue\";\nimport SidebarContent from \"./SidebarContent.vue\";\nimport SidebarGroup from \"./SidebarGroup.vue\";\nimport SidebarGroupLabel from \"./SidebarGroupLabel.vue\";\nimport SidebarMenu from \"./SidebarMenu.vue\";\nimport SidebarMenuItem from \"./SidebarMenuItem.vue\";\nimport SidebarMenuButton from \"./SidebarMenuButton.vue\";\nimport SidebarMenuSub from \"./SidebarMenuSub.vue\";\nimport SidebarMenuSubItem from \"./SidebarMenuSubItem.vue\";\nimport SidebarMenuLabel from \"./SidebarMenuLabel.vue\";\nimport SidebarMenuBadge from \"./SidebarMenuBadge.vue\";\nimport SidebarMenuChevron from \"./SidebarMenuChevron.vue\";\nimport SidebarSeparator from \"./SidebarSeparator.vue\";\nimport SidebarCollapsible from \"./SidebarCollapsible.vue\";\nimport SidebarCollapsibleTrigger from \"./SidebarCollapsibleTrigger.vue\";\nimport SidebarCollapsibleContent from \"./SidebarCollapsibleContent.vue\";\nimport SidebarLoading from \"./SidebarLoading.vue\";\nimport SidebarResizeHandle from \"./SidebarResizeHandle.vue\";\nimport SidebarSlidingViews from \"./SidebarSlidingViews.vue\";\nimport SidebarSlidingView from \"./SidebarSlidingView.vue\";\n\nexport const Sidebar = Object.assign(SidebarRoot, {\n Root: SidebarRoot,\n Provider: SidebarProvider,\n Context: SidebarContext,\n Trigger: SidebarTrigger,\n Close: SidebarClose,\n Header: SidebarHeader,\n Footer: SidebarFooter,\n Content: SidebarContent,\n Group: SidebarGroup,\n GroupLabel: SidebarGroupLabel,\n Menu: SidebarMenu,\n MenuItem: SidebarMenuItem,\n MenuButton: SidebarMenuButton,\n MenuSub: SidebarMenuSub,\n MenuSubItem: SidebarMenuSubItem,\n MenuLabel: SidebarMenuLabel,\n MenuBadge: SidebarMenuBadge,\n MenuChevron: SidebarMenuChevron,\n Separator: SidebarSeparator,\n Collapsible: SidebarCollapsible,\n CollapsibleTrigger: SidebarCollapsibleTrigger,\n CollapsibleContent: SidebarCollapsibleContent,\n Loading: SidebarLoading,\n ResizeHandle: SidebarResizeHandle,\n SlidingViews: SidebarSlidingViews,\n SlidingView: SidebarSlidingView,\n});\n\nexport {\n SidebarRoot,\n SidebarProvider,\n SidebarContext,\n SidebarTrigger,\n SidebarClose,\n SidebarHeader,\n SidebarFooter,\n SidebarContent,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarMenu,\n SidebarMenuItem,\n SidebarMenuButton,\n SidebarMenuSub,\n SidebarMenuSubItem,\n SidebarMenuLabel,\n SidebarMenuBadge,\n SidebarMenuChevron,\n SidebarSeparator,\n SidebarCollapsible,\n SidebarCollapsibleTrigger,\n SidebarCollapsibleContent,\n SidebarLoading,\n SidebarResizeHandle,\n SidebarSlidingViews,\n SidebarSlidingView,\n};\n\nexport { SIDEBAR_DEFAULTS } from \"./sidebar\";\nexport { useSidebarContext } from \"./sidebar-context\";\nexport type { SidebarContextValue } from \"./sidebar-context\";\nexport type {\n SidebarProps, SidebarRootProps, SidebarSlots, SidebarRootSlots,\n SidebarProviderProps, SidebarProviderEmits, SidebarProviderSlots,\n SidebarSide, SidebarCollapsibleMode, SidebarState, SidebarOpenChangeDetails,\n SidebarPartProps, SidebarTriggerProps, SidebarCloseProps,\n SidebarMenuButtonProps, SidebarMenuButtonSlots,\n SidebarCollapsibleProps, SidebarCollapsibleEmits,\n SidebarCollapsibleTriggerProps, SidebarCollapsibleContentProps, SidebarLoadingProps,\n SidebarResizeHandleProps, SidebarResizeDetails, SidebarSlidingViewsProps, SidebarSlidingViewProps,\n} from \"./sidebar\";\n"],"mappings":";;;;;;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