@dicehub/kappa 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/THIRD_PARTY_NOTICES.md +32 -1
- package/dist/{DropdownSubTrigger-CBmdRDUH.js → DropdownSubTrigger-DrZmNIcU.js} +15 -13
- package/dist/DropdownSubTrigger-DrZmNIcU.js.map +1 -0
- package/dist/{InlineCopyText-C5laww5W.js → InlineCopyText-Bosrszdf.js} +38 -40
- package/dist/InlineCopyText-Bosrszdf.js.map +1 -0
- package/dist/{SidebarLayout-Cs6OnqU2.js → SidebarLayout-D9RT-MdT.js} +18 -8
- package/dist/SidebarLayout-D9RT-MdT.js.map +1 -0
- package/dist/WorkspaceSwitcher-DBWdKZbM.js +265 -0
- package/dist/WorkspaceSwitcher-DBWdKZbM.js.map +1 -0
- package/dist/blocks/file-browser.js +1 -1
- package/dist/blocks/index.d.ts +2 -0
- package/dist/blocks/settings-layout/SettingsLayout.vue.d.ts +11 -0
- package/dist/blocks/settings-layout/SettingsSection.vue.d.ts +30 -0
- package/dist/blocks/settings-layout/index.d.ts +7 -0
- package/dist/blocks/settings-layout/settings-layout.d.ts +42 -0
- package/dist/blocks/settings-layout.js +2 -0
- package/dist/blocks/sidebar-layout/SidebarLayout.vue.d.ts +2 -0
- package/dist/blocks/sidebar-layout/index.d.ts +1 -1
- package/dist/blocks/sidebar-layout/sidebar-layout.d.ts +4 -0
- package/dist/blocks/sidebar-layout.js +1 -1
- package/dist/blocks/workspace-switcher/WorkspaceSwitcher.vue.d.ts +33 -0
- package/dist/blocks/workspace-switcher/WorkspaceSwitcherActions.vue.d.ts +12 -0
- package/dist/blocks/workspace-switcher/WorkspaceSwitcherBadge.vue.d.ts +8 -0
- package/dist/blocks/workspace-switcher/index.d.ts +3 -0
- package/dist/blocks/workspace-switcher/workspace-switcher.d.ts +63 -0
- package/dist/blocks/workspace-switcher.js +2 -0
- package/dist/{clipboard-text-Ob056Gly.js → clipboard-text-Clp3y-6f.js} +10 -14
- package/dist/{clipboard-text-Ob056Gly.js.map → clipboard-text-Clp3y-6f.js.map} +1 -1
- package/dist/{command-palette-CGREegfE.js → command-palette-BHFB86Gc.js} +9 -3
- package/dist/command-palette-BHFB86Gc.js.map +1 -0
- package/dist/components/clipboard-text.js +1 -1
- package/dist/components/code-highlighted/CodeHighlighted.vue.d.ts +6 -1
- package/dist/components/code-highlighted/CodeHighlightedCopy.vue.d.ts +8 -0
- package/dist/components/code-highlighted/code-highlighted.d.ts +9 -0
- package/dist/components/code-highlighted/index.d.ts +1 -1
- package/dist/components/code-highlighted.js +185 -116
- package/dist/components/code-highlighted.js.map +1 -1
- package/dist/components/command-palette/command-palette.d.ts +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/context-menu/ContextMenu.vue.d.ts +2 -2
- package/dist/components/context-menu.js +2 -2
- package/dist/components/data-grid.js +1 -1
- package/dist/components/dialog/Dialog.vue.d.ts +2 -2
- package/dist/components/dialog-layout/DialogLayoutAlert.vue.d.ts +2 -2
- package/dist/components/diff-viewer.js +1 -1
- package/dist/components/drawer/Drawer.vue.d.ts +2 -2
- package/dist/components/dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/dropdown/DropdownSub.vue.d.ts +2 -2
- package/dist/components/dropdown.js +2 -2
- package/dist/components/filter-bar.js +1 -1
- package/dist/components/hover-card/HoverCard.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/inline-copy-text.js +1 -1
- package/dist/components/menu-bar.js +1 -1
- package/dist/components/navigation-menu/NavigationMenu.vue.d.ts +23 -0
- package/dist/components/navigation-menu/NavigationMenuArrow.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuContent.vue.d.ts +14 -0
- package/dist/components/navigation-menu/NavigationMenuContext.vue.d.ts +11 -0
- package/dist/components/navigation-menu/NavigationMenuIndicator.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuItem.vue.d.ts +15 -0
- package/dist/components/navigation-menu/NavigationMenuItemIndicator.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuLink.vue.d.ts +16 -0
- package/dist/components/navigation-menu/NavigationMenuList.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuRootProvider.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +15 -0
- package/dist/components/navigation-menu/NavigationMenuViewport.vue.d.ts +13 -0
- package/dist/components/navigation-menu/NavigationMenuViewportPositioner.vue.d.ts +15 -0
- package/dist/components/navigation-menu/index.d.ts +34 -0
- package/dist/components/navigation-menu/navigation-menu-attrs.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +36 -0
- package/dist/components/navigation-menu/use-navigation-menu.d.ts +9 -0
- package/dist/components/navigation-menu.js +2 -0
- package/dist/components/number-input/NumberInput.vue.d.ts +1 -1
- package/dist/components/number-input/NumberInputRootProvider.vue.d.ts +1 -1
- package/dist/components/number-input/index.d.ts +2 -1
- package/dist/components/number-input/number-input-cursor.d.ts +11 -0
- package/dist/components/number-input/number-input-machine.d.ts +5 -0
- package/dist/components/number-input/use-number-input.d.ts +2 -0
- package/dist/components/number-input.js +2 -2
- package/dist/components/popover/Popover.vue.d.ts +2 -2
- package/dist/components/sidebar/SidebarProvider.vue.d.ts +1 -0
- package/dist/components/sidebar/SidebarTrigger.vue.d.ts +1 -0
- package/dist/components/sidebar/sidebar-context.d.ts +1 -0
- package/dist/components/sidebar/sidebar-peek.d.ts +1 -1
- package/dist/components/sidebar/sidebar-resize.d.ts +1 -0
- package/dist/components/sidebar/sidebar.d.ts +6 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/{context-menu-C_XGS00V.js → context-menu-B_noSd5p.js} +2 -2
- package/dist/{context-menu-C_XGS00V.js.map → context-menu-B_noSd5p.js.map} +1 -1
- package/dist/{data-grid-C7ZyN-nX.js → data-grid-BWXpMwCT.js} +2 -2
- package/dist/{data-grid-C7ZyN-nX.js.map → data-grid-BWXpMwCT.js.map} +1 -1
- package/dist/{diff-viewer-DpDGXsGd.js → diff-viewer-fDKJ-67E.js} +2 -2
- package/dist/{diff-viewer-DpDGXsGd.js.map → diff-viewer-fDKJ-67E.js.map} +1 -1
- package/dist/{dropdown-B4YZ7mck.js → dropdown-Dedb1tk8.js} +2 -2
- package/dist/{dropdown-B4YZ7mck.js.map → dropdown-Dedb1tk8.js.map} +1 -1
- package/dist/{file-browser-BU08V7Lh.js → file-browser-tqo1PirD.js} +4 -4
- package/dist/{file-browser-BU08V7Lh.js.map → file-browser-tqo1PirD.js.map} +1 -1
- package/dist/{filter-bar-yEkaxil8.js → filter-bar-COAlDQE4.js} +2 -2
- package/dist/{filter-bar-yEkaxil8.js.map → filter-bar-COAlDQE4.js.map} +1 -1
- package/dist/index.js +55 -52
- package/dist/{menu-bar-CraWEpaF.js → menu-bar-C-qQn2L1.js} +2 -2
- package/dist/{menu-bar-CraWEpaF.js.map → menu-bar-C-qQn2L1.js.map} +1 -1
- package/dist/navigation-menu-DbfnBaTw.js +379 -0
- package/dist/navigation-menu-DbfnBaTw.js.map +1 -0
- package/dist/{number-input-D59rbYIn.js → number-input-B3Xkb5sT.js} +258 -146
- package/dist/number-input-B3Xkb5sT.js.map +1 -0
- package/dist/registry/component-registry.json +23 -3
- package/dist/registry/generated.d.ts +146 -5
- package/dist/{registry-Cm6z1POX.js → registry-Bt3InMf5.js} +178 -5
- package/dist/registry-Bt3InMf5.js.map +1 -0
- package/dist/registry.js +1 -1
- package/dist/settings-layout-RlKrLGUx.js +170 -0
- package/dist/settings-layout-RlKrLGUx.js.map +1 -0
- package/dist/{sidebar-DkQJmgBd.js → sidebar-tcrbUrk_.js} +279 -222
- package/dist/sidebar-tcrbUrk_.js.map +1 -0
- package/dist/styles/kappa.css +1 -1
- package/dist/styles/theme-kappa.css +6 -1
- package/dist/styles/tokens.json +22 -0
- package/licenses/zag-number-input.LICENSE +21 -0
- package/package.json +3 -2
- package/dist/DropdownSubTrigger-CBmdRDUH.js.map +0 -1
- package/dist/InlineCopyText-C5laww5W.js.map +0 -1
- package/dist/SidebarLayout-Cs6OnqU2.js.map +0 -1
- package/dist/command-palette-CGREegfE.js.map +0 -1
- package/dist/number-input-D59rbYIn.js.map +0 -1
- package/dist/registry-Cm6z1POX.js.map +0 -1
- package/dist/sidebar-DkQJmgBd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @dicehub/kappa
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e96ccca: Add a language selector to CodeHighlighted with `languageOptions`, `v-model:lang`, and `labels.language`. Place language and copy controls in a compact tinted header. Keep menu labels visible on small screens and support keyboard input, reduced motion, and high contrast settings.
|
|
8
|
+
- c18f902: Add Navigation Menu for website and application links, with shared panels, pointer and keyboard navigation, controlled state, compact sizing, and support for vertical and right-to-left layouts.
|
|
9
|
+
- 92551e9: Add WorkspaceSwitcher with current workspace details, grouped actions, and a checkmark at the end of the selected row. Supports controlled selection, custom triggers, keyboard navigation, and menus inside mobile drawers.
|
|
10
|
+
- ab18abb: Add SettingsLayout and SettingsSection for account pages with navigation, current values, and expandable forms.
|
|
11
|
+
|
|
12
|
+
Keep focus on the section when closing hides its focused control, including when the toggle is disabled or re-enabled during the same update.
|
|
13
|
+
|
|
14
|
+
- ecb467f: Add `contentAlignment="shell"` to SidebarLayout for pages centered within the complete application shell. The alignment follows sidebar resizing, collapse, logical placement, and mobile drawer state. The default continues to use the available space beside navigation.
|
|
15
|
+
- c912a54: Add hover reveal for offcanvas sidebars. Hover over a marked trigger to open a temporary panel without moving the page. Click to pin it open. Support keyboard dismissal, nested menus, reduced motion, and logical edge placement. Keep shell-centered content aligned during pinning and collapse. Keep the panel available while a popup returns focus to its trigger.
|
|
16
|
+
|
|
17
|
+
Add an `ids` option to Command Palette Dialog so application controls can reference its content before it opens.
|
|
18
|
+
|
|
19
|
+
- c912a54: Add `collapseOnResize` to Sidebar and Sidebar Layout. Set it to false to keep the sidebar open when dragging reaches its minimum width. The separator is hidden while collapsed. Header controls can still hide and reopen it. Existing resize behavior remains the default.
|
|
20
|
+
|
|
21
|
+
Make the separator easier to grab from the content side. The visible line stays on the sidebar border.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- ab18abb: Hide closed combobox popups and prevent their positioners from blocking nearby controls.
|
|
26
|
+
- e96ccca: Improve CodeHighlighted readability with a complete monospace font list, 14px code text, 20px line spacing, and 12px vertical padding.
|
|
27
|
+
- e96ccca: Align the copy icons in CodeHighlighted, ClipboardText, and InlineCopyText. Use rounded squares with the front square at the bottom left.
|
|
28
|
+
- 9e96cc8: Fix Command Palette focus return during closing animations.
|
|
29
|
+
|
|
30
|
+
Keep closed Command Palette dialogs hidden when their content stays mounted.
|
|
31
|
+
|
|
32
|
+
Add top-aligned and morphing search examples with rounded fields, mobile layouts, and reduced motion support.
|
|
33
|
+
|
|
34
|
+
Add `/` search to the Minimal Workspace and Icon Rail examples. Keep the rail search field centered when the sidebar changes width.
|
|
35
|
+
|
|
36
|
+
Open the Icon Rail profile menu above its trigger in both collapsed and expanded layouts.
|
|
37
|
+
|
|
38
|
+
Match the documentation version menu width to its trigger. Show the selected version with a checkmark at the end of the row.
|
|
39
|
+
|
|
40
|
+
Open the Inset Navigation workspace menu below its trigger and the profile menu above its trigger.
|
|
41
|
+
|
|
42
|
+
Open the Workspace Pages switcher below its trigger.
|
|
43
|
+
|
|
44
|
+
- ab18abb: Use a lighter neutral button hover fill in the light theme, with a dedicated control hover token. Keep the dark theme fill and the visible pressed state on expanded buttons.
|
|
45
|
+
|
|
46
|
+
Add a neutral hover border that stays visible on control and canvas surfaces. Keep this border on open popup triggers without changing disclosure buttons.
|
|
47
|
+
|
|
48
|
+
- c912a54: Keep closed dropdown menus and submenus inert. Queued focus actions can no longer move focus away from the trigger into closing content after selection.
|
|
49
|
+
- c912a54: Keep text selections during Number Input value updates, including `useNumberInput` with `RootProvider`.
|
|
50
|
+
|
|
3
51
|
## 0.5.0
|
|
4
52
|
|
|
5
53
|
### Minor Changes
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -17,9 +17,11 @@ Kappa includes adapted third-party source covered by the full notices below. Run
|
|
|
17
17
|
| `@zag-js/collection` | `1.43.3` | Runtime dependency | MIT |
|
|
18
18
|
| `@zag-js/color-picker` | `1.43.3` | Runtime dependency | MIT |
|
|
19
19
|
| `@zag-js/color-utils` | `1.43.3` | Runtime dependency | MIT |
|
|
20
|
+
| `@zag-js/dom-query` | `1.43.3` | Runtime dependency | MIT |
|
|
20
21
|
| `@zag-js/drawer` | `1.43.3` | Runtime dependency | MIT |
|
|
21
22
|
| `@zag-js/file-upload` | `1.43.3` | Runtime dependency | MIT |
|
|
22
23
|
| `@zag-js/listbox` | `1.43.3` | Runtime dependency | MIT |
|
|
24
|
+
| `@zag-js/number-input` | `1.43.3` | Runtime dependency | MIT |
|
|
23
25
|
| `@zag-js/presence` | `1.43.3` | Runtime dependency | MIT |
|
|
24
26
|
| `@zag-js/progress` | `1.43.3` | Runtime dependency | MIT |
|
|
25
27
|
| `@zag-js/select` | `1.43.3` | Runtime dependency | MIT |
|
|
@@ -63,7 +65,7 @@ THE SOFTWARE.
|
|
|
63
65
|
|
|
64
66
|
### Phosphor Icons
|
|
65
67
|
|
|
66
|
-
Source: [Phosphor Icons](https://github.com/phosphor-icons/react).
|
|
68
|
+
Source: [Phosphor Icons](https://github.com/phosphor-icons/react). Check and House SVG paths used by documentation controls and examples.
|
|
67
69
|
|
|
68
70
|
Reviewed reference: [`v2.1.10`](https://github.com/phosphor-icons/react/tree/v2.1.10). This identifies the inspected reference, not the original revision of every adaptation.
|
|
69
71
|
|
|
@@ -89,9 +91,38 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
89
91
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
90
92
|
SOFTWARE.
|
|
91
93
|
|
|
94
|
+
### Zag Number Input
|
|
95
|
+
|
|
96
|
+
Source: [Zag Number Input](https://github.com/chakra-ui/zag). Number Input cursor mapping and input synchronization adapted from @zag-js/number-input 1.43.3.
|
|
97
|
+
|
|
98
|
+
Reviewed reference: [`46f88c089c1dbb0fc681b31172dc5eb8a07eef0d`](https://github.com/chakra-ui/zag/tree/46f88c089c1dbb0fc681b31172dc5eb8a07eef0d). This identifies the inspected reference, not the original revision of every adaptation.
|
|
99
|
+
|
|
100
|
+
MIT License
|
|
101
|
+
|
|
102
|
+
Copyright (c) 2021 Chakra UI
|
|
103
|
+
|
|
104
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
105
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
106
|
+
in the Software without restriction, including without limitation the rights
|
|
107
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
108
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
109
|
+
furnished to do so, subject to the following conditions:
|
|
110
|
+
|
|
111
|
+
The above copyright notice and this permission notice shall be included in all
|
|
112
|
+
copies or substantial portions of the Software.
|
|
113
|
+
|
|
114
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
115
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
116
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
117
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
118
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
119
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
120
|
+
SOFTWARE.
|
|
121
|
+
|
|
92
122
|
## Ark UI Vue
|
|
93
123
|
|
|
94
124
|
External runtime dependency: `@ark-ui/vue` 5.39.2. The notice below is copied from that installed package.
|
|
125
|
+
The Number Input hook is adapted from Ark UI Vue 5.39.2 at [`8067ebecca4c222b7ee346a947b1e30f54cc36e7`](https://github.com/chakra-ui/ark/tree/8067ebecca4c222b7ee346a947b1e30f54cc36e7). Kappa synchronizes its input after Vue renders while retaining the upstream state machine and providers.
|
|
95
126
|
The package includes private Ark declarations for color-picker, file-upload, listbox, progress, select, slider, and highlight, plus their declaration dependencies. Kappa repairs missing default-slot types and a duplicate type import. The JavaScript runtime remains external.
|
|
96
127
|
|
|
97
128
|
MIT License
|
|
@@ -119,14 +119,14 @@ var j = Symbol("kappa-dropdown-aria-label"), M = ["default", "destructive"], N =
|
|
|
119
119
|
teleportTo: { default: "body" }
|
|
120
120
|
},
|
|
121
121
|
setup(e) {
|
|
122
|
-
let i = e, a = S(), o = u(j, void 0),
|
|
122
|
+
let i = e, a = S(), o = A(), c = u(j, void 0), l = n(() => {
|
|
123
123
|
let e = a["aria-label"];
|
|
124
|
-
return typeof e == "string" ? e :
|
|
125
|
-
}),
|
|
124
|
+
return typeof e == "string" ? e : c?.value;
|
|
125
|
+
}), f = v(!1);
|
|
126
126
|
return h(() => {
|
|
127
|
-
|
|
127
|
+
f.value = !0;
|
|
128
128
|
}), (e, n) => (g(), r(t, {
|
|
129
|
-
disabled: !i.teleport || !
|
|
129
|
+
disabled: !i.teleport || !f.value,
|
|
130
130
|
to: i.teleportTo
|
|
131
131
|
}, [s(x(k).Positioner, {
|
|
132
132
|
class: "kappa-dropdown__positioner",
|
|
@@ -134,7 +134,8 @@ var j = Symbol("kappa-dropdown-aria-label"), M = ["default", "destructive"], N =
|
|
|
134
134
|
}, {
|
|
135
135
|
default: T(() => [s(x(k).Content, d({
|
|
136
136
|
...e.$attrs,
|
|
137
|
-
...
|
|
137
|
+
...l.value === void 0 ? {} : { "aria-label": l.value },
|
|
138
|
+
...x(o).open ? {} : { inert: !0 }
|
|
138
139
|
}, {
|
|
139
140
|
class: "kappa-dropdown__content",
|
|
140
141
|
"data-slot": "dropdown-content",
|
|
@@ -740,14 +741,14 @@ var j = Symbol("kappa-dropdown-aria-label"), M = ["default", "destructive"], N =
|
|
|
740
741
|
teleportTo: { default: "body" }
|
|
741
742
|
},
|
|
742
743
|
setup(e) {
|
|
743
|
-
let i = e, a = S(), o = u(j, void 0),
|
|
744
|
+
let i = e, a = S(), o = A(), c = u(j, void 0), l = n(() => {
|
|
744
745
|
let e = a["aria-label"];
|
|
745
|
-
return typeof e == "string" ? e :
|
|
746
|
-
}),
|
|
746
|
+
return typeof e == "string" ? e : c?.value;
|
|
747
|
+
}), f = v(!1);
|
|
747
748
|
return h(() => {
|
|
748
|
-
|
|
749
|
+
f.value = !0;
|
|
749
750
|
}), (e, n) => (g(), r(t, {
|
|
750
|
-
disabled: !i.teleport || !
|
|
751
|
+
disabled: !i.teleport || !f.value,
|
|
751
752
|
to: i.teleportTo
|
|
752
753
|
}, [s(x(k).Positioner, {
|
|
753
754
|
class: "kappa-dropdown__positioner kappa-dropdown__positioner--sub",
|
|
@@ -755,7 +756,8 @@ var j = Symbol("kappa-dropdown-aria-label"), M = ["default", "destructive"], N =
|
|
|
755
756
|
}, {
|
|
756
757
|
default: T(() => [s(x(k).Content, d({
|
|
757
758
|
...e.$attrs,
|
|
758
|
-
...
|
|
759
|
+
...l.value === void 0 ? {} : { "aria-label": l.value },
|
|
760
|
+
...x(o).open ? {} : { inert: !0 }
|
|
759
761
|
}, {
|
|
760
762
|
class: "kappa-dropdown__content kappa-dropdown__content--sub",
|
|
761
763
|
"data-slot": "dropdown-sub-content",
|
|
@@ -836,4 +838,4 @@ var j = Symbol("kappa-dropdown-aria-label"), M = ["default", "destructive"], N =
|
|
|
836
838
|
//#endregion
|
|
837
839
|
export { M as C, j as D, F as E, I as S, P as T, V as _, ee as a, R as b, Z as c, q as d, K as f, H as g, U as h, te as i, X as l, W as m, re as n, $ as o, G as p, ne as r, Q as s, ie as t, J as u, B as v, L as w, N as x, z as y };
|
|
838
840
|
|
|
839
|
-
//# sourceMappingURL=DropdownSubTrigger-
|
|
841
|
+
//# sourceMappingURL=DropdownSubTrigger-DrZmNIcU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownSubTrigger-DrZmNIcU.js","names":["$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs","$attrs"],"sources":["../src/components/dropdown/dropdown-aria-label.ts","../src/components/dropdown/dropdown.ts","../src/components/dropdown/DropdownArrow.vue","../src/components/dropdown/DropdownArrow.vue","../src/components/dropdown/DropdownCheckboxItem.vue","../src/components/dropdown/DropdownCheckboxItem.vue","../src/components/dropdown/DropdownContent.vue","../src/components/dropdown/DropdownContent.vue","../src/components/dropdown/DropdownContext.vue","../src/components/dropdown/DropdownContext.vue","../src/components/dropdown/DropdownContextTrigger.vue","../src/components/dropdown/DropdownContextTrigger.vue","../src/components/dropdown/DropdownGroup.vue","../src/components/dropdown/DropdownGroup.vue","../src/components/dropdown/DropdownItem.vue","../src/components/dropdown/DropdownItem.vue","../src/components/dropdown/DropdownItemContext.vue","../src/components/dropdown/DropdownItemContext.vue","../src/components/dropdown/DropdownItemIndicator.vue","../src/components/dropdown/DropdownItemIndicator.vue","../src/components/dropdown/DropdownItemText.vue","../src/components/dropdown/DropdownItemText.vue","../src/components/dropdown/DropdownLabel.vue","../src/components/dropdown/DropdownLabel.vue","../src/components/dropdown/DropdownLinkItem.vue","../src/components/dropdown/DropdownLinkItem.vue","../src/components/dropdown/DropdownRadioGroup.vue","../src/components/dropdown/DropdownRadioGroup.vue","../src/components/dropdown/DropdownRadioItem.vue","../src/components/dropdown/DropdownRadioItem.vue","../src/components/dropdown/DropdownRootProvider.vue","../src/components/dropdown/DropdownRootProvider.vue","../src/components/dropdown/DropdownSeparator.vue","../src/components/dropdown/DropdownSeparator.vue","../src/components/dropdown/DropdownShortcut.vue","../src/components/dropdown/DropdownShortcut.vue","../src/components/dropdown/DropdownSub.vue","../src/components/dropdown/DropdownSub.vue","../src/components/dropdown/DropdownSubContent.vue","../src/components/dropdown/DropdownSubContent.vue","../src/components/dropdown/DropdownSubTrigger.vue","../src/components/dropdown/DropdownSubTrigger.vue"],"sourcesContent":["import type { ComputedRef, InjectionKey } from \"vue\";\n\nexport const dropdownAriaLabelKey: InjectionKey<ComputedRef<string | undefined>> = Symbol(\n \"kappa-dropdown-aria-label\",\n);\n","import type {\n MenuArrowProps as ArkMenuArrowProps,\n MenuCheckboxItemProps as ArkMenuCheckboxItemProps,\n MenuContentProps as ArkMenuContentProps,\n MenuContextTriggerProps as ArkMenuContextTriggerProps,\n MenuFocusOutsideEvent,\n MenuHighlightChangeDetails,\n MenuIndicatorProps as ArkMenuIndicatorProps,\n MenuInteractOutsideEvent,\n MenuItemContextProps as ArkMenuItemContextProps,\n MenuItemGroupLabelProps as ArkMenuItemGroupLabelProps,\n MenuItemGroupProps as ArkMenuItemGroupProps,\n MenuItemIndicatorProps as ArkMenuItemIndicatorProps,\n MenuItemProps as ArkMenuItemProps,\n MenuItemTextProps as ArkMenuItemTextProps,\n MenuOpenChangeDetails,\n MenuPointerDownOutsideEvent,\n MenuRadioItemGroupProps as ArkMenuRadioItemGroupProps,\n MenuRadioItemProps as ArkMenuRadioItemProps,\n MenuRootProps as ArkMenuRootProps,\n MenuSelectionDetails,\n MenuSeparatorProps as ArkMenuSeparatorProps,\n MenuTriggerItemProps as ArkMenuTriggerItemProps,\n MenuTriggerProps as ArkMenuTriggerProps,\n MenuTriggerValueChangeDetails,\n UseMenuContext,\n UseMenuItemContext,\n UseMenuReturn,\n} from \"@ark-ui/vue/menu\";\nimport type {\n ButtonHTMLAttributes,\n Component,\n TeleportProps,\n UnwrapRef,\n VNodeChild,\n} from \"vue\";\n\nexport type {\n MenuFocusOutsideEvent as DropdownFocusOutsideEvent,\n MenuHighlightChangeDetails as DropdownHighlightChangeDetails,\n MenuInteractOutsideEvent as DropdownInteractOutsideEvent,\n MenuOpenChangeDetails as DropdownOpenChangeDetails,\n MenuPointerDownOutsideEvent as DropdownPointerDownOutsideEvent,\n MenuSelectionDetails as DropdownSelectionDetails,\n MenuTriggerValueChangeDetails as DropdownTriggerValueChangeDetails,\n} from \"@ark-ui/vue/menu\";\n\nexport const DROPDOWN_ITEM_VARIANTS = [\"default\", \"destructive\"] as const;\nexport type DropdownItemVariant = (typeof DROPDOWN_ITEM_VARIANTS)[number];\nexport const DROPDOWN_DEFAULT_ITEM_VARIANT = \"default\" satisfies DropdownItemVariant;\n\nexport const isDropdownItemVariant = (value: unknown): value is DropdownItemVariant =>\n typeof value === \"string\" && DROPDOWN_ITEM_VARIANTS.includes(value as DropdownItemVariant);\n\nexport const resolveDropdownItemVariant = (value: unknown): DropdownItemVariant =>\n isDropdownItemVariant(value) ? value : DROPDOWN_DEFAULT_ITEM_VARIANT;\n\nexport type DropdownPositioningOptions = NonNullable<ArkMenuRootProps[\"positioning\"]>;\nexport type DropdownDirection = \"ltr\" | \"rtl\";\n\nexport const DROPDOWN_DEFAULT_POSITIONING = {\n fitViewport: true,\n gutter: 6,\n overflowPadding: 8,\n placement: \"bottom-start\",\n} as const satisfies DropdownPositioningOptions;\n\nexport const DROPDOWN_SUB_DEFAULT_POSITIONING = {\n fitViewport: true,\n gutter: 0,\n overflowPadding: 8,\n placement: \"right-start\",\n} as const satisfies DropdownPositioningOptions;\n\nexport type DropdownApi = UseMenuReturn;\nexport type DropdownContextValue = UnwrapRef<UseMenuContext>;\nexport type DropdownItemContextValue = UnwrapRef<UseMenuItemContext>;\n\nexport type DropdownRequestDismissEvent = CustomEvent<{\n originalIndex: number;\n originalLayer: HTMLElement;\n targetIndex: number;\n targetLayer: HTMLElement | undefined;\n}>;\n\nexport interface DropdownProps {\n anchorPoint?: ArkMenuRootProps[\"anchorPoint\"];\n ariaLabel?: ArkMenuRootProps[\"aria-label\"];\n closeOnSelect?: ArkMenuRootProps[\"closeOnSelect\"];\n composite?: ArkMenuRootProps[\"composite\"];\n defaultHighlightedValue?: ArkMenuRootProps[\"defaultHighlightedValue\"];\n defaultOpen?: ArkMenuRootProps[\"defaultOpen\"];\n defaultTriggerValue?: ArkMenuRootProps[\"defaultTriggerValue\"];\n dir?: DropdownDirection;\n highlightedValue?: ArkMenuRootProps[\"highlightedValue\"];\n id?: ArkMenuRootProps[\"id\"];\n ids?: ArkMenuRootProps[\"ids\"];\n lazyMount?: ArkMenuRootProps[\"lazyMount\"];\n loopFocus?: ArkMenuRootProps[\"loopFocus\"];\n navigate?: ArkMenuRootProps[\"navigate\"];\n open?: ArkMenuRootProps[\"open\"];\n positioning?: ArkMenuRootProps[\"positioning\"];\n triggerValue?: ArkMenuRootProps[\"triggerValue\"];\n typeahead?: ArkMenuRootProps[\"typeahead\"];\n unmountOnExit?: ArkMenuRootProps[\"unmountOnExit\"];\n}\n\nexport type DropdownRootProps = DropdownProps;\nexport type DropdownSubProps = DropdownProps;\n\nexport type DropdownEmits = {\n escapeKeyDown: [event: KeyboardEvent];\n exitComplete: [];\n focusOutside: [event: MenuFocusOutsideEvent];\n highlightChange: [details: MenuHighlightChangeDetails];\n interactOutside: [event: MenuInteractOutsideEvent];\n openChange: [details: MenuOpenChangeDetails];\n pointerDownOutside: [event: MenuPointerDownOutsideEvent];\n requestDismiss: [event: DropdownRequestDismissEvent];\n select: [details: MenuSelectionDetails];\n triggerValueChange: [details: MenuTriggerValueChangeDetails];\n \"update:highlightedValue\": [value: string | null];\n \"update:open\": [value: boolean];\n \"update:triggerValue\": [value: string | null];\n};\n\nexport interface DropdownSlots {\n default?: () => VNodeChild;\n}\n\nexport type DropdownRootSlots = DropdownSlots;\nexport type DropdownSubEmits = DropdownEmits;\nexport type DropdownSubSlots = DropdownSlots;\n\nexport interface DropdownRootProviderProps {\n value: DropdownApi;\n lazyMount?: boolean;\n unmountOnExit?: boolean;\n}\n\nexport type DropdownRootProviderEmits = { exitComplete: [] };\nexport type DropdownRootProviderSlots = DropdownSlots;\n\nexport interface DropdownTriggerProps {\n asChild?: ArkMenuTriggerProps[\"asChild\"];\n value?: ArkMenuTriggerProps[\"value\"];\n}\n\nexport type DropdownTriggerSlots = DropdownSlots;\n\nexport interface DropdownIndicatorProps {\n asChild?: ArkMenuIndicatorProps[\"asChild\"];\n}\n\nexport type DropdownIndicatorSlots = DropdownSlots;\n\nexport interface DropdownContextTriggerProps {\n asChild?: ArkMenuContextTriggerProps[\"asChild\"];\n type?: ButtonHTMLAttributes[\"type\"];\n}\n\nexport type DropdownContextTriggerSlots = DropdownSlots;\n\nexport interface DropdownContentProps {\n asChild?: ArkMenuContentProps[\"asChild\"];\n /** Keep the popup in the component DOM tree when false. */\n teleport?: boolean;\n /** Target for the popup teleport. */\n teleportTo?: TeleportProps[\"to\"];\n}\n\nexport type DropdownContentSlots = DropdownSlots;\nexport type DropdownSubContentProps = DropdownContentProps;\nexport type DropdownSubContentSlots = DropdownSlots;\n\nexport interface DropdownArrowProps {\n asChild?: ArkMenuArrowProps[\"asChild\"];\n}\n\nexport type DropdownArrowSlots = DropdownSlots;\n\nexport interface DropdownItemProps {\n asChild?: ArkMenuItemProps[\"asChild\"];\n closeOnSelect?: ArkMenuItemProps[\"closeOnSelect\"];\n disabled?: ArkMenuItemProps[\"disabled\"];\n icon?: Component;\n iconProps?: Record<string, unknown>;\n inset?: boolean;\n selected?: boolean;\n value: ArkMenuItemProps[\"value\"];\n valueText?: ArkMenuItemProps[\"valueText\"];\n variant?: DropdownItemVariant;\n}\n\nexport type DropdownItemEmits = { select: [] };\n\nexport interface DropdownItemSlots {\n default?: () => VNodeChild;\n end?: () => VNodeChild;\n icon?: () => VNodeChild;\n selected?: () => VNodeChild;\n}\n\nexport interface DropdownLinkItemProps\n extends Omit<DropdownItemProps, \"asChild\" | \"selected\" | \"value\"> {\n href: string;\n rel?: string;\n target?: string;\n value?: string;\n}\n\nexport type DropdownLinkItemEmits = DropdownItemEmits;\nexport type DropdownLinkItemSlots = Omit<DropdownItemSlots, \"selected\">;\n\nexport interface DropdownCheckboxItemProps {\n asChild?: ArkMenuCheckboxItemProps[\"asChild\"];\n checked?: boolean;\n closeOnSelect?: ArkMenuCheckboxItemProps[\"closeOnSelect\"];\n defaultChecked?: boolean;\n disabled?: ArkMenuCheckboxItemProps[\"disabled\"];\n inset?: boolean;\n value: ArkMenuCheckboxItemProps[\"value\"];\n valueText?: ArkMenuCheckboxItemProps[\"valueText\"];\n}\n\nexport type DropdownCheckboxItemEmits = {\n checkedChange: [value: boolean];\n \"update:checked\": [value: boolean];\n};\n\nexport interface DropdownCheckboxItemSlots {\n default?: () => VNodeChild;\n end?: () => VNodeChild;\n indicator?: () => VNodeChild;\n}\n\nexport interface DropdownRadioGroupProps {\n asChild?: ArkMenuRadioItemGroupProps[\"asChild\"];\n defaultValue?: string;\n id?: ArkMenuRadioItemGroupProps[\"id\"];\n modelValue?: ArkMenuRadioItemGroupProps[\"modelValue\"];\n}\n\nexport type DropdownRadioGroupEmits = {\n valueChange: [value: string];\n \"update:modelValue\": [value: string];\n};\n\nexport type DropdownRadioGroupSlots = DropdownSlots;\n\nexport interface DropdownRadioItemProps {\n asChild?: ArkMenuRadioItemProps[\"asChild\"];\n closeOnSelect?: ArkMenuRadioItemProps[\"closeOnSelect\"];\n disabled?: ArkMenuRadioItemProps[\"disabled\"];\n inset?: boolean;\n value: ArkMenuRadioItemProps[\"value\"];\n valueText?: ArkMenuRadioItemProps[\"valueText\"];\n}\n\nexport interface DropdownRadioItemSlots {\n default?: () => VNodeChild;\n end?: () => VNodeChild;\n indicator?: () => VNodeChild;\n}\n\nexport interface DropdownGroupProps {\n asChild?: ArkMenuItemGroupProps[\"asChild\"];\n id?: ArkMenuItemGroupProps[\"id\"];\n}\n\nexport type DropdownGroupSlots = DropdownSlots;\n\nexport interface DropdownLabelProps {\n asChild?: ArkMenuItemGroupLabelProps[\"asChild\"];\n inset?: boolean;\n}\n\nexport type DropdownLabelSlots = DropdownSlots;\n\nexport interface DropdownItemIndicatorProps {\n asChild?: ArkMenuItemIndicatorProps[\"asChild\"];\n}\n\nexport type DropdownItemIndicatorSlots = DropdownSlots;\n\nexport interface DropdownItemTextProps {\n asChild?: ArkMenuItemTextProps[\"asChild\"];\n}\n\nexport type DropdownItemTextSlots = DropdownSlots;\n\nexport interface DropdownSeparatorProps {\n asChild?: ArkMenuSeparatorProps[\"asChild\"];\n}\n\nexport type DropdownSeparatorSlots = DropdownSlots;\n\nexport interface DropdownSubTriggerProps {\n asChild?: ArkMenuTriggerItemProps[\"asChild\"];\n disabled?: boolean;\n icon?: Component;\n iconProps?: Record<string, unknown>;\n inset?: boolean;\n}\n\nexport interface DropdownSubTriggerSlots {\n default?: () => VNodeChild;\n end?: () => VNodeChild;\n icon?: () => VNodeChild;\n}\n\nexport interface DropdownContextSlots {\n default?: (context: DropdownContextValue) => VNodeChild;\n}\n\nexport interface DropdownItemContextSlots {\n default?: (context: DropdownItemContextValue) => VNodeChild;\n}\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownArrowProps, DropdownArrowSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownArrowProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownArrowSlots>();\n</script>\n\n<template>\n <ArkMenu.Arrow\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__arrow\"\n data-slot=\"dropdown-arrow\"\n :as-child=\"props.asChild\"\n >\n <slot><ArkMenu.ArrowTip class=\"kappa-dropdown__arrow-tip\" /></slot>\n </ArkMenu.Arrow>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownArrowProps, DropdownArrowSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownArrowProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownArrowSlots>();\n</script>\n\n<template>\n <ArkMenu.Arrow\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__arrow\"\n data-slot=\"dropdown-arrow\"\n :as-child=\"props.asChild\"\n >\n <slot><ArkMenu.ArrowTip class=\"kappa-dropdown__arrow-tip\" /></slot>\n </ArkMenu.Arrow>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed, ref } from \"vue\";\nimport type {\n DropdownCheckboxItemEmits,\n DropdownCheckboxItemProps,\n DropdownCheckboxItemSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownCheckboxItemProps>(), {\n asChild: undefined,\n checked: undefined,\n closeOnSelect: false,\n defaultChecked: false,\n disabled: undefined,\n inset: false,\n valueText: undefined,\n});\n\nconst emit = defineEmits<DropdownCheckboxItemEmits>();\ndefineSlots<DropdownCheckboxItemSlots>();\n\nconst internalChecked = ref(props.defaultChecked);\nconst resolvedChecked = computed(() => props.checked ?? internalChecked.value);\n\nconst handleCheckedUpdate = (value: boolean) => {\n if (props.checked === undefined) internalChecked.value = value;\n emit(\"update:checked\", value);\n emit(\"checkedChange\", value);\n};\n</script>\n\n<template>\n <ArkMenu.CheckboxItem\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__option-item\"\n data-slot=\"dropdown-checkbox-item\"\n :as-child=\"props.asChild\"\n :checked=\"resolvedChecked\"\n :close-on-select=\"props.closeOnSelect\"\n :data-inset=\"props.inset ? '' : undefined\"\n :disabled=\"props.disabled\"\n :value=\"props.value\"\n :value-text=\"props.valueText\"\n @update:checked=\"handleCheckedUpdate\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <ArkMenu.ItemIndicator\n class=\"kappa-dropdown__item-indicator\"\n data-slot=\"dropdown-item-indicator\"\n >\n <slot name=\"indicator\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m3 8.25 3 3 7-7\" />\n </svg>\n </slot>\n </ArkMenu.ItemIndicator>\n <slot />\n <slot name=\"end\" />\n </template>\n </ArkMenu.CheckboxItem>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed, ref } from \"vue\";\nimport type {\n DropdownCheckboxItemEmits,\n DropdownCheckboxItemProps,\n DropdownCheckboxItemSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownCheckboxItemProps>(), {\n asChild: undefined,\n checked: undefined,\n closeOnSelect: false,\n defaultChecked: false,\n disabled: undefined,\n inset: false,\n valueText: undefined,\n});\n\nconst emit = defineEmits<DropdownCheckboxItemEmits>();\ndefineSlots<DropdownCheckboxItemSlots>();\n\nconst internalChecked = ref(props.defaultChecked);\nconst resolvedChecked = computed(() => props.checked ?? internalChecked.value);\n\nconst handleCheckedUpdate = (value: boolean) => {\n if (props.checked === undefined) internalChecked.value = value;\n emit(\"update:checked\", value);\n emit(\"checkedChange\", value);\n};\n</script>\n\n<template>\n <ArkMenu.CheckboxItem\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__option-item\"\n data-slot=\"dropdown-checkbox-item\"\n :as-child=\"props.asChild\"\n :checked=\"resolvedChecked\"\n :close-on-select=\"props.closeOnSelect\"\n :data-inset=\"props.inset ? '' : undefined\"\n :disabled=\"props.disabled\"\n :value=\"props.value\"\n :value-text=\"props.valueText\"\n @update:checked=\"handleCheckedUpdate\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <ArkMenu.ItemIndicator\n class=\"kappa-dropdown__item-indicator\"\n data-slot=\"dropdown-item-indicator\"\n >\n <slot name=\"indicator\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m3 8.25 3 3 7-7\" />\n </svg>\n </slot>\n </ArkMenu.ItemIndicator>\n <slot />\n <slot name=\"end\" />\n </template>\n </ArkMenu.CheckboxItem>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport { computed, inject, onMounted, ref, Teleport, useAttrs } from \"vue\";\nimport { dropdownAriaLabelKey } from \"./dropdown-aria-label\";\nimport type { DropdownContentProps, DropdownContentSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownContentProps>(), {\n asChild: undefined,\n teleport: true,\n teleportTo: \"body\",\n});\n\ndefineSlots<DropdownContentSlots>();\n\nconst attrs = useAttrs();\nconst menu = useMenuContext();\nconst inheritedAriaLabel = inject(dropdownAriaLabelKey, undefined);\nconst resolvedAriaLabel = computed(() => {\n const label = attrs[\"aria-label\"];\n if (typeof label === \"string\") return label;\n return inheritedAriaLabel?.value;\n});\nconst isMounted = ref(false);\n\nonMounted(() => {\n isMounted.value = true;\n});\n</script>\n\n<template>\n <Teleport :disabled=\"!props.teleport || !isMounted\" :to=\"props.teleportTo\">\n <ArkMenu.Positioner\n class=\"kappa-dropdown__positioner\"\n data-slot=\"dropdown-positioner\"\n >\n <ArkMenu.Content\n v-bind=\"{\n ...$attrs,\n ...(resolvedAriaLabel === undefined ? {} : { 'aria-label': resolvedAriaLabel }),\n ...(!menu.open ? { inert: true } : {}),\n }\"\n class=\"kappa-dropdown__content\"\n data-slot=\"dropdown-content\"\n :as-child=\"props.asChild\"\n >\n <slot />\n </ArkMenu.Content>\n </ArkMenu.Positioner>\n </Teleport>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport { computed, inject, onMounted, ref, Teleport, useAttrs } from \"vue\";\nimport { dropdownAriaLabelKey } from \"./dropdown-aria-label\";\nimport type { DropdownContentProps, DropdownContentSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownContentProps>(), {\n asChild: undefined,\n teleport: true,\n teleportTo: \"body\",\n});\n\ndefineSlots<DropdownContentSlots>();\n\nconst attrs = useAttrs();\nconst menu = useMenuContext();\nconst inheritedAriaLabel = inject(dropdownAriaLabelKey, undefined);\nconst resolvedAriaLabel = computed(() => {\n const label = attrs[\"aria-label\"];\n if (typeof label === \"string\") return label;\n return inheritedAriaLabel?.value;\n});\nconst isMounted = ref(false);\n\nonMounted(() => {\n isMounted.value = true;\n});\n</script>\n\n<template>\n <Teleport :disabled=\"!props.teleport || !isMounted\" :to=\"props.teleportTo\">\n <ArkMenu.Positioner\n class=\"kappa-dropdown__positioner\"\n data-slot=\"dropdown-positioner\"\n >\n <ArkMenu.Content\n v-bind=\"{\n ...$attrs,\n ...(resolvedAriaLabel === undefined ? {} : { 'aria-label': resolvedAriaLabel }),\n ...(!menu.open ? { inert: true } : {}),\n }\"\n class=\"kappa-dropdown__content\"\n data-slot=\"dropdown-content\"\n :as-child=\"props.asChild\"\n >\n <slot />\n </ArkMenu.Content>\n </ArkMenu.Positioner>\n </Teleport>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownContextSlots } from \"./dropdown\";\n\ndefineSlots<DropdownContextSlots>();\n</script>\n\n<template>\n <ArkMenu.Context v-slot=\"context\">\n <slot v-bind=\"context\" />\n </ArkMenu.Context>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownContextSlots } from \"./dropdown\";\n\ndefineSlots<DropdownContextSlots>();\n</script>\n\n<template>\n <ArkMenu.Context v-slot=\"context\">\n <slot v-bind=\"context\" />\n </ArkMenu.Context>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n useTemplateRef,\n watch,\n} from \"vue\";\nimport type { DropdownContextTriggerProps, DropdownContextTriggerSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownContextTriggerProps>(), {\n asChild: undefined,\n type: \"button\",\n});\n\ndefineSlots<DropdownContextTriggerSlots>();\n\nconst menu = useMenuContext();\nconst contentProps = computed(() => menu.value.getContentProps());\nconst contentId = computed(() => contentProps.value.id);\nconst popupRole = computed<\"dialog\" | \"menu\">(() =>\n contentProps.value.role === \"dialog\" ? \"dialog\" : \"menu\",\n);\nconst triggerElement = useTemplateRef<HTMLElement | { $el?: HTMLElement }>(\"trigger\");\n\nlet openedFromKeyboard = false;\nlet restoreFocusAfterClose = false;\n\nconst getTriggerElement = () => {\n const value = triggerElement.value;\n return value instanceof HTMLElement ? value : value?.$el;\n};\n\nconst trackKeyboardOpen = (event: KeyboardEvent) => {\n openedFromKeyboard = (event.shiftKey && event.key === \"F10\") || event.key === \"ContextMenu\";\n};\n\nconst trackPointerOpen = () => {\n openedFromKeyboard = false;\n restoreFocusAfterClose = false;\n};\n\nconst trackEscape = (event: KeyboardEvent) => {\n if (event.key === \"Escape\" && openedFromKeyboard && menu.value.open) {\n restoreFocusAfterClose = true;\n }\n};\n\nwatch(\n () => menu.value.open,\n (open, wasOpen) => {\n if (open || !wasOpen) return;\n\n const shouldRestoreFocus = restoreFocusAfterClose;\n openedFromKeyboard = false;\n restoreFocusAfterClose = false;\n if (!shouldRestoreFocus) return;\n\n void nextTick(() => getTriggerElement()?.focus({ preventScroll: true }));\n },\n);\n\nonMounted(() => document.addEventListener(\"keydown\", trackEscape, true));\nonBeforeUnmount(() => document.removeEventListener(\"keydown\", trackEscape, true));\n</script>\n\n<template>\n <ArkMenu.ContextTrigger\n ref=\"trigger\"\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__context-trigger\"\n data-slot=\"dropdown-context-trigger\"\n :as-child=\"props.asChild\"\n :aria-controls=\"contentId\"\n :aria-expanded=\"menu.open\"\n :aria-haspopup=\"popupRole\"\n :type=\"props.asChild ? undefined : props.type\"\n @keydown.capture=\"trackKeyboardOpen\"\n @pointerdown.capture=\"trackPointerOpen\"\n >\n <slot />\n </ArkMenu.ContextTrigger>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport {\n computed,\n nextTick,\n onBeforeUnmount,\n onMounted,\n useTemplateRef,\n watch,\n} from \"vue\";\nimport type { DropdownContextTriggerProps, DropdownContextTriggerSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownContextTriggerProps>(), {\n asChild: undefined,\n type: \"button\",\n});\n\ndefineSlots<DropdownContextTriggerSlots>();\n\nconst menu = useMenuContext();\nconst contentProps = computed(() => menu.value.getContentProps());\nconst contentId = computed(() => contentProps.value.id);\nconst popupRole = computed<\"dialog\" | \"menu\">(() =>\n contentProps.value.role === \"dialog\" ? \"dialog\" : \"menu\",\n);\nconst triggerElement = useTemplateRef<HTMLElement | { $el?: HTMLElement }>(\"trigger\");\n\nlet openedFromKeyboard = false;\nlet restoreFocusAfterClose = false;\n\nconst getTriggerElement = () => {\n const value = triggerElement.value;\n return value instanceof HTMLElement ? value : value?.$el;\n};\n\nconst trackKeyboardOpen = (event: KeyboardEvent) => {\n openedFromKeyboard = (event.shiftKey && event.key === \"F10\") || event.key === \"ContextMenu\";\n};\n\nconst trackPointerOpen = () => {\n openedFromKeyboard = false;\n restoreFocusAfterClose = false;\n};\n\nconst trackEscape = (event: KeyboardEvent) => {\n if (event.key === \"Escape\" && openedFromKeyboard && menu.value.open) {\n restoreFocusAfterClose = true;\n }\n};\n\nwatch(\n () => menu.value.open,\n (open, wasOpen) => {\n if (open || !wasOpen) return;\n\n const shouldRestoreFocus = restoreFocusAfterClose;\n openedFromKeyboard = false;\n restoreFocusAfterClose = false;\n if (!shouldRestoreFocus) return;\n\n void nextTick(() => getTriggerElement()?.focus({ preventScroll: true }));\n },\n);\n\nonMounted(() => document.addEventListener(\"keydown\", trackEscape, true));\nonBeforeUnmount(() => document.removeEventListener(\"keydown\", trackEscape, true));\n</script>\n\n<template>\n <ArkMenu.ContextTrigger\n ref=\"trigger\"\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__context-trigger\"\n data-slot=\"dropdown-context-trigger\"\n :as-child=\"props.asChild\"\n :aria-controls=\"contentId\"\n :aria-expanded=\"menu.open\"\n :aria-haspopup=\"popupRole\"\n :type=\"props.asChild ? undefined : props.type\"\n @keydown.capture=\"trackKeyboardOpen\"\n @pointerdown.capture=\"trackPointerOpen\"\n >\n <slot />\n </ArkMenu.ContextTrigger>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownGroupProps, DropdownGroupSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownGroupProps>(), {\n asChild: undefined,\n id: undefined,\n});\n\ndefineSlots<DropdownGroupSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemGroup\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__group\"\n data-slot=\"dropdown-group\"\n :as-child=\"props.asChild\"\n :id=\"props.id\"\n >\n <slot />\n </ArkMenu.ItemGroup>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownGroupProps, DropdownGroupSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownGroupProps>(), {\n asChild: undefined,\n id: undefined,\n});\n\ndefineSlots<DropdownGroupSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemGroup\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__group\"\n data-slot=\"dropdown-group\"\n :as-child=\"props.asChild\"\n :id=\"props.id\"\n >\n <slot />\n </ArkMenu.ItemGroup>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed } from \"vue\";\nimport {\n DROPDOWN_DEFAULT_ITEM_VARIANT,\n resolveDropdownItemVariant,\n type DropdownItemEmits,\n type DropdownItemProps,\n type DropdownItemSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownItemProps>(), {\n asChild: undefined,\n closeOnSelect: undefined,\n disabled: undefined,\n icon: undefined,\n iconProps: () => ({}),\n inset: false,\n selected: false,\n valueText: undefined,\n variant: DROPDOWN_DEFAULT_ITEM_VARIANT,\n});\n\nconst emit = defineEmits<DropdownItemEmits>();\ndefineSlots<DropdownItemSlots>();\n\nconst resolvedVariant = computed(() => resolveDropdownItemVariant(props.variant));\n</script>\n\n<template>\n <ArkMenu.Item\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item\"\n data-slot=\"dropdown-item\"\n :as-child=\"props.asChild\"\n :close-on-select=\"props.closeOnSelect\"\n :data-inset=\"props.inset ? '' : undefined\"\n :data-selected=\"props.selected ? '' : undefined\"\n :data-variant=\"resolvedVariant\"\n :disabled=\"props.disabled\"\n :value=\"props.value\"\n :value-text=\"props.valueText\"\n @select=\"emit('select')\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <component\n :is=\"props.icon\"\n v-if=\"props.icon\"\n v-bind=\"props.iconProps\"\n aria-hidden=\"true\"\n class=\"kappa-dropdown__item-icon\"\n data-slot=\"dropdown-item-icon\"\n />\n <slot v-else name=\"icon\" />\n <slot />\n <slot name=\"end\" />\n <slot v-if=\"props.selected\" name=\"selected\">\n <span class=\"kappa-dropdown__selected-indicator\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" focusable=\"false\"><path d=\"m3 8.25 3 3 7-7\" /></svg>\n </span>\n </slot>\n </template>\n </ArkMenu.Item>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed } from \"vue\";\nimport {\n DROPDOWN_DEFAULT_ITEM_VARIANT,\n resolveDropdownItemVariant,\n type DropdownItemEmits,\n type DropdownItemProps,\n type DropdownItemSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownItemProps>(), {\n asChild: undefined,\n closeOnSelect: undefined,\n disabled: undefined,\n icon: undefined,\n iconProps: () => ({}),\n inset: false,\n selected: false,\n valueText: undefined,\n variant: DROPDOWN_DEFAULT_ITEM_VARIANT,\n});\n\nconst emit = defineEmits<DropdownItemEmits>();\ndefineSlots<DropdownItemSlots>();\n\nconst resolvedVariant = computed(() => resolveDropdownItemVariant(props.variant));\n</script>\n\n<template>\n <ArkMenu.Item\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item\"\n data-slot=\"dropdown-item\"\n :as-child=\"props.asChild\"\n :close-on-select=\"props.closeOnSelect\"\n :data-inset=\"props.inset ? '' : undefined\"\n :data-selected=\"props.selected ? '' : undefined\"\n :data-variant=\"resolvedVariant\"\n :disabled=\"props.disabled\"\n :value=\"props.value\"\n :value-text=\"props.valueText\"\n @select=\"emit('select')\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <component\n :is=\"props.icon\"\n v-if=\"props.icon\"\n v-bind=\"props.iconProps\"\n aria-hidden=\"true\"\n class=\"kappa-dropdown__item-icon\"\n data-slot=\"dropdown-item-icon\"\n />\n <slot v-else name=\"icon\" />\n <slot />\n <slot name=\"end\" />\n <slot v-if=\"props.selected\" name=\"selected\">\n <span class=\"kappa-dropdown__selected-indicator\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" focusable=\"false\"><path d=\"m3 8.25 3 3 7-7\" /></svg>\n </span>\n </slot>\n </template>\n </ArkMenu.Item>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownItemContextSlots } from \"./dropdown\";\n\ndefineSlots<DropdownItemContextSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemContext v-slot=\"context\">\n <slot v-bind=\"context\" />\n </ArkMenu.ItemContext>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownItemContextSlots } from \"./dropdown\";\n\ndefineSlots<DropdownItemContextSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemContext v-slot=\"context\">\n <slot v-bind=\"context\" />\n </ArkMenu.ItemContext>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownItemIndicatorProps, DropdownItemIndicatorSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownItemIndicatorProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownItemIndicatorSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemIndicator\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item-indicator\"\n data-slot=\"dropdown-item-indicator\"\n :as-child=\"props.asChild\"\n >\n <slot>\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m3 8.25 3 3 7-7\" />\n </svg>\n </slot>\n </ArkMenu.ItemIndicator>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownItemIndicatorProps, DropdownItemIndicatorSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownItemIndicatorProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownItemIndicatorSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemIndicator\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item-indicator\"\n data-slot=\"dropdown-item-indicator\"\n :as-child=\"props.asChild\"\n >\n <slot>\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m3 8.25 3 3 7-7\" />\n </svg>\n </slot>\n </ArkMenu.ItemIndicator>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownItemTextProps, DropdownItemTextSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownItemTextProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownItemTextSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemText\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item-text\"\n data-slot=\"dropdown-item-text\"\n :as-child=\"props.asChild\"\n >\n <slot />\n </ArkMenu.ItemText>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownItemTextProps, DropdownItemTextSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownItemTextProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownItemTextSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemText\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item-text\"\n data-slot=\"dropdown-item-text\"\n :as-child=\"props.asChild\"\n >\n <slot />\n </ArkMenu.ItemText>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownLabelProps, DropdownLabelSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownLabelProps>(), {\n asChild: undefined,\n inset: false,\n});\n\ndefineSlots<DropdownLabelSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemGroupLabel\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__label\"\n data-slot=\"dropdown-label\"\n :as-child=\"props.asChild\"\n :data-inset=\"props.inset ? '' : undefined\"\n >\n <slot />\n </ArkMenu.ItemGroupLabel>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownLabelProps, DropdownLabelSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownLabelProps>(), {\n asChild: undefined,\n inset: false,\n});\n\ndefineSlots<DropdownLabelSlots>();\n</script>\n\n<template>\n <ArkMenu.ItemGroupLabel\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__label\"\n data-slot=\"dropdown-label\"\n :as-child=\"props.asChild\"\n :data-inset=\"props.inset ? '' : undefined\"\n >\n <slot />\n </ArkMenu.ItemGroupLabel>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed } from \"vue\";\nimport {\n DROPDOWN_DEFAULT_ITEM_VARIANT,\n resolveDropdownItemVariant,\n type DropdownLinkItemEmits,\n type DropdownLinkItemProps,\n type DropdownLinkItemSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownLinkItemProps>(), {\n closeOnSelect: undefined,\n disabled: undefined,\n icon: undefined,\n iconProps: () => ({}),\n inset: false,\n rel: undefined,\n target: undefined,\n value: undefined,\n valueText: undefined,\n variant: DROPDOWN_DEFAULT_ITEM_VARIANT,\n});\n\nconst emit = defineEmits<DropdownLinkItemEmits>();\ndefineSlots<DropdownLinkItemSlots>();\n\nconst resolvedRel = computed(() =>\n props.rel ?? (props.target === \"_blank\" ? \"noopener noreferrer\" : undefined),\n);\nconst resolvedHref = computed(() => (props.disabled ? undefined : props.href));\nconst resolvedValue = computed(() => props.value ?? props.href);\nconst resolvedVariant = computed(() => resolveDropdownItemVariant(props.variant));\n</script>\n\n<template>\n <ArkMenu.Item\n :close-on-select=\"props.closeOnSelect\"\n :disabled=\"props.disabled\"\n :value=\"resolvedValue\"\n :value-text=\"props.valueText\"\n as-child\n @select=\"emit('select')\"\n >\n <a\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__link-item\"\n data-slot=\"dropdown-link-item\"\n :data-inset=\"props.inset ? '' : undefined\"\n :data-variant=\"resolvedVariant\"\n :href=\"resolvedHref\"\n :rel=\"resolvedRel\"\n :target=\"props.target\"\n >\n <component\n :is=\"props.icon\"\n v-if=\"props.icon\"\n v-bind=\"props.iconProps\"\n aria-hidden=\"true\"\n class=\"kappa-dropdown__item-icon\"\n data-slot=\"dropdown-item-icon\"\n />\n <slot v-else name=\"icon\" />\n <slot />\n <slot name=\"end\" />\n </a>\n </ArkMenu.Item>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed } from \"vue\";\nimport {\n DROPDOWN_DEFAULT_ITEM_VARIANT,\n resolveDropdownItemVariant,\n type DropdownLinkItemEmits,\n type DropdownLinkItemProps,\n type DropdownLinkItemSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownLinkItemProps>(), {\n closeOnSelect: undefined,\n disabled: undefined,\n icon: undefined,\n iconProps: () => ({}),\n inset: false,\n rel: undefined,\n target: undefined,\n value: undefined,\n valueText: undefined,\n variant: DROPDOWN_DEFAULT_ITEM_VARIANT,\n});\n\nconst emit = defineEmits<DropdownLinkItemEmits>();\ndefineSlots<DropdownLinkItemSlots>();\n\nconst resolvedRel = computed(() =>\n props.rel ?? (props.target === \"_blank\" ? \"noopener noreferrer\" : undefined),\n);\nconst resolvedHref = computed(() => (props.disabled ? undefined : props.href));\nconst resolvedValue = computed(() => props.value ?? props.href);\nconst resolvedVariant = computed(() => resolveDropdownItemVariant(props.variant));\n</script>\n\n<template>\n <ArkMenu.Item\n :close-on-select=\"props.closeOnSelect\"\n :disabled=\"props.disabled\"\n :value=\"resolvedValue\"\n :value-text=\"props.valueText\"\n as-child\n @select=\"emit('select')\"\n >\n <a\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__link-item\"\n data-slot=\"dropdown-link-item\"\n :data-inset=\"props.inset ? '' : undefined\"\n :data-variant=\"resolvedVariant\"\n :href=\"resolvedHref\"\n :rel=\"resolvedRel\"\n :target=\"props.target\"\n >\n <component\n :is=\"props.icon\"\n v-if=\"props.icon\"\n v-bind=\"props.iconProps\"\n aria-hidden=\"true\"\n class=\"kappa-dropdown__item-icon\"\n data-slot=\"dropdown-item-icon\"\n />\n <slot v-else name=\"icon\" />\n <slot />\n <slot name=\"end\" />\n </a>\n </ArkMenu.Item>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed, ref } from \"vue\";\nimport type {\n DropdownRadioGroupEmits,\n DropdownRadioGroupProps,\n DropdownRadioGroupSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownRadioGroupProps>(), {\n asChild: undefined,\n defaultValue: undefined,\n id: undefined,\n modelValue: undefined,\n});\n\nconst emit = defineEmits<DropdownRadioGroupEmits>();\ndefineSlots<DropdownRadioGroupSlots>();\n\nconst internalValue = ref(props.defaultValue);\nconst resolvedValue = computed(() => props.modelValue ?? internalValue.value);\n\nconst handleValueUpdate = (value: string) => {\n if (props.modelValue === undefined) internalValue.value = value;\n emit(\"update:modelValue\", value);\n emit(\"valueChange\", value);\n};\n</script>\n\n<template>\n <ArkMenu.RadioItemGroup\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__radio-group\"\n data-slot=\"dropdown-radio-group\"\n :as-child=\"props.asChild\"\n :id=\"props.id\"\n :model-value=\"resolvedValue\"\n @update:model-value=\"handleValueUpdate\"\n >\n <slot />\n </ArkMenu.RadioItemGroup>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { computed, ref } from \"vue\";\nimport type {\n DropdownRadioGroupEmits,\n DropdownRadioGroupProps,\n DropdownRadioGroupSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownRadioGroupProps>(), {\n asChild: undefined,\n defaultValue: undefined,\n id: undefined,\n modelValue: undefined,\n});\n\nconst emit = defineEmits<DropdownRadioGroupEmits>();\ndefineSlots<DropdownRadioGroupSlots>();\n\nconst internalValue = ref(props.defaultValue);\nconst resolvedValue = computed(() => props.modelValue ?? internalValue.value);\n\nconst handleValueUpdate = (value: string) => {\n if (props.modelValue === undefined) internalValue.value = value;\n emit(\"update:modelValue\", value);\n emit(\"valueChange\", value);\n};\n</script>\n\n<template>\n <ArkMenu.RadioItemGroup\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__radio-group\"\n data-slot=\"dropdown-radio-group\"\n :as-child=\"props.asChild\"\n :id=\"props.id\"\n :model-value=\"resolvedValue\"\n @update:model-value=\"handleValueUpdate\"\n >\n <slot />\n </ArkMenu.RadioItemGroup>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownRadioItemProps, DropdownRadioItemSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownRadioItemProps>(), {\n asChild: undefined,\n closeOnSelect: false,\n disabled: undefined,\n inset: false,\n valueText: undefined,\n});\n\ndefineSlots<DropdownRadioItemSlots>();\n</script>\n\n<template>\n <ArkMenu.RadioItem\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__option-item\"\n data-slot=\"dropdown-radio-item\"\n :as-child=\"props.asChild\"\n :close-on-select=\"props.closeOnSelect\"\n :data-inset=\"props.inset ? '' : undefined\"\n :disabled=\"props.disabled\"\n :value=\"props.value\"\n :value-text=\"props.valueText\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <ArkMenu.ItemIndicator\n class=\"kappa-dropdown__item-indicator\"\n data-slot=\"dropdown-radio-item-indicator\"\n >\n <slot name=\"indicator\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n <circle cx=\"8\" cy=\"8\" r=\"2.5\" fill=\"currentColor\" stroke=\"none\" />\n </svg>\n </slot>\n </ArkMenu.ItemIndicator>\n <slot />\n <slot name=\"end\" />\n </template>\n </ArkMenu.RadioItem>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownRadioItemProps, DropdownRadioItemSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownRadioItemProps>(), {\n asChild: undefined,\n closeOnSelect: false,\n disabled: undefined,\n inset: false,\n valueText: undefined,\n});\n\ndefineSlots<DropdownRadioItemSlots>();\n</script>\n\n<template>\n <ArkMenu.RadioItem\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__option-item\"\n data-slot=\"dropdown-radio-item\"\n :as-child=\"props.asChild\"\n :close-on-select=\"props.closeOnSelect\"\n :data-inset=\"props.inset ? '' : undefined\"\n :disabled=\"props.disabled\"\n :value=\"props.value\"\n :value-text=\"props.valueText\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <ArkMenu.ItemIndicator\n class=\"kappa-dropdown__item-indicator\"\n data-slot=\"dropdown-radio-item-indicator\"\n >\n <slot name=\"indicator\">\n <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n <circle cx=\"8\" cy=\"8\" r=\"2.5\" fill=\"currentColor\" stroke=\"none\" />\n </svg>\n </slot>\n </ArkMenu.ItemIndicator>\n <slot />\n <slot name=\"end\" />\n </template>\n </ArkMenu.RadioItem>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type {\n DropdownRootProviderEmits,\n DropdownRootProviderProps,\n DropdownRootProviderSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownRootProviderProps>(), {\n lazyMount: undefined,\n unmountOnExit: undefined,\n});\n\nconst emit = defineEmits<DropdownRootProviderEmits>();\ndefineSlots<DropdownRootProviderSlots>();\n</script>\n\n<template>\n <ArkMenu.RootProvider\n v-bind=\"$attrs\"\n :lazy-mount=\"props.lazyMount\"\n :unmount-on-exit=\"props.unmountOnExit\"\n :value=\"props.value\"\n @exit-complete=\"emit('exitComplete')\"\n >\n <slot />\n </ArkMenu.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type {\n DropdownRootProviderEmits,\n DropdownRootProviderProps,\n DropdownRootProviderSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownRootProviderProps>(), {\n lazyMount: undefined,\n unmountOnExit: undefined,\n});\n\nconst emit = defineEmits<DropdownRootProviderEmits>();\ndefineSlots<DropdownRootProviderSlots>();\n</script>\n\n<template>\n <ArkMenu.RootProvider\n v-bind=\"$attrs\"\n :lazy-mount=\"props.lazyMount\"\n :unmount-on-exit=\"props.unmountOnExit\"\n :value=\"props.value\"\n @exit-complete=\"emit('exitComplete')\"\n >\n <slot />\n </ArkMenu.RootProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownSeparatorProps, DropdownSeparatorSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSeparatorProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownSeparatorSlots>();\n</script>\n\n<template>\n <ArkMenu.Separator\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__separator\"\n data-slot=\"dropdown-separator\"\n :as-child=\"props.asChild\"\n >\n <slot v-if=\"props.asChild\" />\n </ArkMenu.Separator>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownSeparatorProps, DropdownSeparatorSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSeparatorProps>(), {\n asChild: undefined,\n});\n\ndefineSlots<DropdownSeparatorSlots>();\n</script>\n\n<template>\n <ArkMenu.Separator\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__separator\"\n data-slot=\"dropdown-separator\"\n :as-child=\"props.asChild\"\n >\n <slot v-if=\"props.asChild\" />\n </ArkMenu.Separator>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport type { DropdownSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\ndefineSlots<DropdownSlots>();\n</script>\n\n<template>\n <span v-bind=\"$attrs\" class=\"kappa-dropdown__shortcut\" data-slot=\"dropdown-shortcut\">\n <slot />\n </span>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport type { DropdownSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\ndefineSlots<DropdownSlots>();\n</script>\n\n<template>\n <span v-bind=\"$attrs\" class=\"kappa-dropdown__shortcut\" data-slot=\"dropdown-shortcut\">\n <slot />\n </span>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { DEFAULT_LOCALE, LocaleProvider, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport { computed, provide, useAttrs } from \"vue\";\nimport { dropdownAriaLabelKey } from \"./dropdown-aria-label\";\nimport {\n DROPDOWN_SUB_DEFAULT_POSITIONING,\n type DropdownSubEmits,\n type DropdownSubProps,\n type DropdownSubSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSubProps>(), {\n anchorPoint: undefined,\n ariaLabel: undefined,\n closeOnSelect: undefined,\n composite: undefined,\n defaultHighlightedValue: undefined,\n defaultOpen: undefined,\n defaultTriggerValue: undefined,\n dir: undefined,\n highlightedValue: undefined,\n id: undefined,\n ids: undefined,\n lazyMount: undefined,\n loopFocus: undefined,\n navigate: undefined,\n open: undefined,\n positioning: () => ({ ...DROPDOWN_SUB_DEFAULT_POSITIONING }),\n triggerValue: undefined,\n typeahead: undefined,\n unmountOnExit: undefined,\n});\n\nconst emit = defineEmits<DropdownSubEmits>();\ndefineSlots<DropdownSubSlots>();\n\nconst attrs = useAttrs();\nconst inheritedLocale = useLocaleContext(DEFAULT_LOCALE);\nconst locale = computed(() => {\n if (props.dir === undefined) return inheritedLocale.value.locale;\n return props.dir === \"rtl\" ? \"ar\" : \"en-US\";\n});\nconst resolvedAriaLabel = computed(() => {\n if (props.ariaLabel !== undefined) return props.ariaLabel;\n const label = attrs[\"aria-label\"];\n return typeof label === \"string\" ? label : undefined;\n});\nconst arkAriaProps = computed(() =>\n resolvedAriaLabel.value === undefined ? {} : { \"aria-label\": resolvedAriaLabel.value },\n);\n\nprovide(dropdownAriaLabelKey, resolvedAriaLabel);\n</script>\n\n<template>\n <LocaleProvider :locale=\"locale\">\n <ArkMenu.Root\n v-bind=\"{ ...$attrs, ...arkAriaProps }\"\n :anchor-point=\"props.anchorPoint\"\n :close-on-select=\"props.closeOnSelect\"\n :composite=\"props.composite\"\n :default-highlighted-value=\"props.defaultHighlightedValue\"\n :default-open=\"props.defaultOpen\"\n :default-trigger-value=\"props.defaultTriggerValue\"\n :highlighted-value=\"props.highlightedValue\"\n :id=\"props.id\"\n :ids=\"props.ids\"\n :lazy-mount=\"props.lazyMount\"\n :loop-focus=\"props.loopFocus\"\n :navigate=\"props.navigate\"\n :open=\"props.open\"\n :positioning=\"props.positioning\"\n :trigger-value=\"props.triggerValue\"\n :typeahead=\"props.typeahead\"\n :unmount-on-exit=\"props.unmountOnExit\"\n @escape-key-down=\"emit('escapeKeyDown', $event)\"\n @exit-complete=\"emit('exitComplete')\"\n @focus-outside=\"emit('focusOutside', $event)\"\n @highlight-change=\"emit('highlightChange', $event)\"\n @interact-outside=\"emit('interactOutside', $event)\"\n @open-change=\"emit('openChange', $event)\"\n @pointer-down-outside=\"emit('pointerDownOutside', $event)\"\n @request-dismiss=\"emit('requestDismiss', $event)\"\n @select=\"emit('select', $event)\"\n @trigger-value-change=\"emit('triggerValueChange', $event)\"\n @update:highlighted-value=\"emit('update:highlightedValue', $event)\"\n @update:open=\"emit('update:open', $event)\"\n @update:trigger-value=\"emit('update:triggerValue', $event)\"\n >\n <slot />\n </ArkMenu.Root>\n </LocaleProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport { DEFAULT_LOCALE, LocaleProvider, useLocaleContext } from \"@ark-ui/vue/locale\";\nimport { computed, provide, useAttrs } from \"vue\";\nimport { dropdownAriaLabelKey } from \"./dropdown-aria-label\";\nimport {\n DROPDOWN_SUB_DEFAULT_POSITIONING,\n type DropdownSubEmits,\n type DropdownSubProps,\n type DropdownSubSlots,\n} from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSubProps>(), {\n anchorPoint: undefined,\n ariaLabel: undefined,\n closeOnSelect: undefined,\n composite: undefined,\n defaultHighlightedValue: undefined,\n defaultOpen: undefined,\n defaultTriggerValue: undefined,\n dir: undefined,\n highlightedValue: undefined,\n id: undefined,\n ids: undefined,\n lazyMount: undefined,\n loopFocus: undefined,\n navigate: undefined,\n open: undefined,\n positioning: () => ({ ...DROPDOWN_SUB_DEFAULT_POSITIONING }),\n triggerValue: undefined,\n typeahead: undefined,\n unmountOnExit: undefined,\n});\n\nconst emit = defineEmits<DropdownSubEmits>();\ndefineSlots<DropdownSubSlots>();\n\nconst attrs = useAttrs();\nconst inheritedLocale = useLocaleContext(DEFAULT_LOCALE);\nconst locale = computed(() => {\n if (props.dir === undefined) return inheritedLocale.value.locale;\n return props.dir === \"rtl\" ? \"ar\" : \"en-US\";\n});\nconst resolvedAriaLabel = computed(() => {\n if (props.ariaLabel !== undefined) return props.ariaLabel;\n const label = attrs[\"aria-label\"];\n return typeof label === \"string\" ? label : undefined;\n});\nconst arkAriaProps = computed(() =>\n resolvedAriaLabel.value === undefined ? {} : { \"aria-label\": resolvedAriaLabel.value },\n);\n\nprovide(dropdownAriaLabelKey, resolvedAriaLabel);\n</script>\n\n<template>\n <LocaleProvider :locale=\"locale\">\n <ArkMenu.Root\n v-bind=\"{ ...$attrs, ...arkAriaProps }\"\n :anchor-point=\"props.anchorPoint\"\n :close-on-select=\"props.closeOnSelect\"\n :composite=\"props.composite\"\n :default-highlighted-value=\"props.defaultHighlightedValue\"\n :default-open=\"props.defaultOpen\"\n :default-trigger-value=\"props.defaultTriggerValue\"\n :highlighted-value=\"props.highlightedValue\"\n :id=\"props.id\"\n :ids=\"props.ids\"\n :lazy-mount=\"props.lazyMount\"\n :loop-focus=\"props.loopFocus\"\n :navigate=\"props.navigate\"\n :open=\"props.open\"\n :positioning=\"props.positioning\"\n :trigger-value=\"props.triggerValue\"\n :typeahead=\"props.typeahead\"\n :unmount-on-exit=\"props.unmountOnExit\"\n @escape-key-down=\"emit('escapeKeyDown', $event)\"\n @exit-complete=\"emit('exitComplete')\"\n @focus-outside=\"emit('focusOutside', $event)\"\n @highlight-change=\"emit('highlightChange', $event)\"\n @interact-outside=\"emit('interactOutside', $event)\"\n @open-change=\"emit('openChange', $event)\"\n @pointer-down-outside=\"emit('pointerDownOutside', $event)\"\n @request-dismiss=\"emit('requestDismiss', $event)\"\n @select=\"emit('select', $event)\"\n @trigger-value-change=\"emit('triggerValueChange', $event)\"\n @update:highlighted-value=\"emit('update:highlightedValue', $event)\"\n @update:open=\"emit('update:open', $event)\"\n @update:trigger-value=\"emit('update:triggerValue', $event)\"\n >\n <slot />\n </ArkMenu.Root>\n </LocaleProvider>\n</template>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport { computed, inject, onMounted, ref, Teleport, useAttrs } from \"vue\";\nimport { dropdownAriaLabelKey } from \"./dropdown-aria-label\";\nimport type { DropdownSubContentProps, DropdownSubContentSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSubContentProps>(), {\n asChild: undefined,\n teleport: true,\n teleportTo: \"body\",\n});\n\ndefineSlots<DropdownSubContentSlots>();\n\nconst attrs = useAttrs();\nconst menu = useMenuContext();\nconst inheritedAriaLabel = inject(dropdownAriaLabelKey, undefined);\nconst resolvedAriaLabel = computed(() => {\n const label = attrs[\"aria-label\"];\n if (typeof label === \"string\") return label;\n return inheritedAriaLabel?.value;\n});\nconst isMounted = ref(false);\n\nonMounted(() => {\n isMounted.value = true;\n});\n</script>\n\n<template>\n <Teleport :disabled=\"!props.teleport || !isMounted\" :to=\"props.teleportTo\">\n <ArkMenu.Positioner\n class=\"kappa-dropdown__positioner kappa-dropdown__positioner--sub\"\n data-slot=\"dropdown-sub-positioner\"\n >\n <ArkMenu.Content\n v-bind=\"{\n ...$attrs,\n ...(resolvedAriaLabel === undefined ? {} : { 'aria-label': resolvedAriaLabel }),\n ...(!menu.open ? { inert: true } : {}),\n }\"\n class=\"kappa-dropdown__content kappa-dropdown__content--sub\"\n data-slot=\"dropdown-sub-content\"\n :as-child=\"props.asChild\"\n >\n <slot />\n </ArkMenu.Content>\n </ArkMenu.Positioner>\n </Teleport>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu, useMenuContext } from \"@ark-ui/vue/menu\";\nimport { computed, inject, onMounted, ref, Teleport, useAttrs } from \"vue\";\nimport { dropdownAriaLabelKey } from \"./dropdown-aria-label\";\nimport type { DropdownSubContentProps, DropdownSubContentSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSubContentProps>(), {\n asChild: undefined,\n teleport: true,\n teleportTo: \"body\",\n});\n\ndefineSlots<DropdownSubContentSlots>();\n\nconst attrs = useAttrs();\nconst menu = useMenuContext();\nconst inheritedAriaLabel = inject(dropdownAriaLabelKey, undefined);\nconst resolvedAriaLabel = computed(() => {\n const label = attrs[\"aria-label\"];\n if (typeof label === \"string\") return label;\n return inheritedAriaLabel?.value;\n});\nconst isMounted = ref(false);\n\nonMounted(() => {\n isMounted.value = true;\n});\n</script>\n\n<template>\n <Teleport :disabled=\"!props.teleport || !isMounted\" :to=\"props.teleportTo\">\n <ArkMenu.Positioner\n class=\"kappa-dropdown__positioner kappa-dropdown__positioner--sub\"\n data-slot=\"dropdown-sub-positioner\"\n >\n <ArkMenu.Content\n v-bind=\"{\n ...$attrs,\n ...(resolvedAriaLabel === undefined ? {} : { 'aria-label': resolvedAriaLabel }),\n ...(!menu.open ? { inert: true } : {}),\n }\"\n class=\"kappa-dropdown__content kappa-dropdown__content--sub\"\n data-slot=\"dropdown-sub-content\"\n :as-child=\"props.asChild\"\n >\n <slot />\n </ArkMenu.Content>\n </ArkMenu.Positioner>\n </Teleport>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownSubTriggerProps, DropdownSubTriggerSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSubTriggerProps>(), {\n asChild: undefined,\n disabled: false,\n icon: undefined,\n iconProps: () => ({}),\n inset: false,\n});\n\ndefineSlots<DropdownSubTriggerSlots>();\n\nconst guardDisabledInteraction = (event: Event) => {\n if (!props.disabled) return;\n\n event.preventDefault();\n event.stopImmediatePropagation();\n};\n\nconst guardDisabledKeydown = (event: KeyboardEvent) => {\n if (![\"Enter\", \" \", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"].includes(event.key)) {\n return;\n }\n guardDisabledInteraction(event);\n};\n</script>\n\n<template>\n <ArkMenu.TriggerItem\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__sub-trigger\"\n data-slot=\"dropdown-sub-trigger\"\n :aria-disabled=\"props.disabled ? true : undefined\"\n :as-child=\"props.asChild\"\n :data-disabled=\"props.disabled ? '' : undefined\"\n :data-inset=\"props.inset ? '' : undefined\"\n @click.capture=\"guardDisabledInteraction\"\n @keydown.capture=\"guardDisabledKeydown\"\n @pointerdown.capture=\"guardDisabledInteraction\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <component\n :is=\"props.icon\"\n v-if=\"props.icon\"\n v-bind=\"props.iconProps\"\n aria-hidden=\"true\"\n class=\"kappa-dropdown__item-icon\"\n data-slot=\"dropdown-item-icon\"\n />\n <slot v-else name=\"icon\" />\n <slot />\n <slot name=\"end\">\n <svg\n class=\"kappa-dropdown__sub-caret\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"m6 3.75 4.25 4.25L6 12.25\" />\n </svg>\n </slot>\n </template>\n </ArkMenu.TriggerItem>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n","<script setup lang=\"ts\">\nimport { Menu as ArkMenu } from \"@ark-ui/vue/menu\";\nimport type { DropdownSubTriggerProps, DropdownSubTriggerSlots } from \"./dropdown\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<DropdownSubTriggerProps>(), {\n asChild: undefined,\n disabled: false,\n icon: undefined,\n iconProps: () => ({}),\n inset: false,\n});\n\ndefineSlots<DropdownSubTriggerSlots>();\n\nconst guardDisabledInteraction = (event: Event) => {\n if (!props.disabled) return;\n\n event.preventDefault();\n event.stopImmediatePropagation();\n};\n\nconst guardDisabledKeydown = (event: KeyboardEvent) => {\n if (![\"Enter\", \" \", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"].includes(event.key)) {\n return;\n }\n guardDisabledInteraction(event);\n};\n</script>\n\n<template>\n <ArkMenu.TriggerItem\n v-bind=\"$attrs\"\n class=\"kappa-dropdown__item kappa-dropdown__sub-trigger\"\n data-slot=\"dropdown-sub-trigger\"\n :aria-disabled=\"props.disabled ? true : undefined\"\n :as-child=\"props.asChild\"\n :data-disabled=\"props.disabled ? '' : undefined\"\n :data-inset=\"props.inset ? '' : undefined\"\n @click.capture=\"guardDisabledInteraction\"\n @keydown.capture=\"guardDisabledKeydown\"\n @pointerdown.capture=\"guardDisabledInteraction\"\n >\n <slot v-if=\"props.asChild\" />\n <template v-else>\n <component\n :is=\"props.icon\"\n v-if=\"props.icon\"\n v-bind=\"props.iconProps\"\n aria-hidden=\"true\"\n class=\"kappa-dropdown__item-icon\"\n data-slot=\"dropdown-item-icon\"\n />\n <slot v-else name=\"icon\" />\n <slot />\n <slot name=\"end\">\n <svg\n class=\"kappa-dropdown__sub-caret\"\n viewBox=\"0 0 16 16\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n <path d=\"m6 3.75 4.25 4.25L6 12.25\" />\n </svg>\n </slot>\n </template>\n </ArkMenu.TriggerItem>\n</template>\n\n<style src=\"./dropdown.css\"></style>\n"],"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KAGzF,EAAyB,CAAK;EAChC;oBAIE,EAAA,GAAA,EAmCsB,EAAA,CAAA,CAAA,CAAA,aAnCtB,EACUC,EAkCY,QAlCN;GACd,OAAM;GACN,aAAU;GACT,iBAAe,EAAM,WAAQ,KAAU,KAAA;GACvC,YAAU,EAAM;GAChB,iBAAe,EAAM,WAAQ,KAAQ,KAAA;GACrC,cAAY,EAAM,QAAK,KAAQ,KAAA;GAChB,gBAAA;GACE,kBAAA;GACI,sBAAA;;GAEtB,SAAA,QAA6B,CAAjB,EAAM,UAAlB,EAA6B,EAAA,QAAA,WAAA,EAAA,KAAA,EAAA,CAAA,KAC7B,EAAA,GAAA,EAqBW,GAAA,EAAA,KAAA,EAAA,GAAA;IAlBD,EAAM,QAFd,EAAA,GAAA,EAOE,EANK,EAAM,IAAI,GADjB,EAOE,EAAA,KAAA,EAAA,GAJQ,EAAM,WAAS;KACvB,eAAY;KACZ,OAAM;KACN,aAAU;IAEZ,CAAA,GAAA,MAAA,EAAA,KAAA,EAA2B,EAAA,QAAA,QAAA,EAAA,KAAA,EAAA,CAAA;IAC3B,EAAQ,EAAA,QAAA,SAAA;IACR,EASO,EAAA,QAAA,OAAA,CAAA,SAAA,CARL,AAAA,EAAA,OAAA,EAOM,OAAA;KANJ,OAAM;KACN,SAAQ;KACR,eAAY;KACZ,WAAU;IAEV,GAAA,CAAA,EAAsC,QAAA,EAAhC,GAAE,4BAA2B,CAAA,CAAA,GAAA,EAAA,CAAA,CAAA"}
|
|
@@ -14,20 +14,18 @@ var h = [
|
|
|
14
14
|
class: "kappa-inline-copy-text__icon",
|
|
15
15
|
"aria-hidden": "true"
|
|
16
16
|
}, y = {
|
|
17
|
+
key: 0,
|
|
17
18
|
viewBox: "0 0 16 16",
|
|
18
19
|
fill: "none",
|
|
19
20
|
focusable: "false"
|
|
20
21
|
}, b = {
|
|
21
|
-
key: 0,
|
|
22
|
-
d: "m3 8 3 3 7-7",
|
|
23
|
-
stroke: "currentColor",
|
|
24
|
-
"stroke-width": "1.5",
|
|
25
|
-
"stroke-linecap": "round",
|
|
26
|
-
"stroke-linejoin": "round"
|
|
27
|
-
}, x = {
|
|
28
22
|
key: 1,
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
viewBox: "0 0 24 24",
|
|
24
|
+
fill: "none",
|
|
25
|
+
stroke: "currentColor",
|
|
26
|
+
"stroke-width": "2",
|
|
27
|
+
focusable: "false"
|
|
28
|
+
}, x = ["lang"], S = /* @__PURE__ */ s({
|
|
31
29
|
inheritAttrs: !1,
|
|
32
30
|
__name: "InlineCopyText",
|
|
33
31
|
props: {
|
|
@@ -52,55 +50,55 @@ var h = [
|
|
|
52
50
|
timeout: { default: 3e3 }
|
|
53
51
|
},
|
|
54
52
|
emits: ["statusChange"],
|
|
55
|
-
setup(s, { emit:
|
|
56
|
-
let
|
|
57
|
-
modelValue:
|
|
58
|
-
timeout:
|
|
59
|
-
onStatusChange: (e) =>
|
|
53
|
+
setup(s, { emit: S }) {
|
|
54
|
+
let C = s, w = S, T = m(t(() => ({
|
|
55
|
+
modelValue: C.value,
|
|
56
|
+
timeout: C.timeout,
|
|
57
|
+
onStatusChange: (e) => w("statusChange", e)
|
|
60
58
|
})));
|
|
61
59
|
return (t, s) => (l(), n(f(e).Root, {
|
|
62
60
|
"lazy-mount": "",
|
|
63
|
-
disabled:
|
|
61
|
+
disabled: C.disabled,
|
|
64
62
|
"close-on-click": !1,
|
|
65
63
|
"close-on-pointer-down": !1
|
|
66
64
|
}, {
|
|
67
65
|
default: p(() => [
|
|
68
66
|
o(f(e).Trigger, { "as-child": "" }, {
|
|
69
67
|
default: p(() => [i("button", c(c({
|
|
70
|
-
...f(
|
|
68
|
+
...f(T).getTriggerProps(),
|
|
71
69
|
"aria-label": void 0
|
|
72
70
|
}, t.$attrs), {
|
|
73
71
|
class: ["kappa-inline-copy-text", {
|
|
74
|
-
"kappa-inline-copy-text--bold":
|
|
75
|
-
"kappa-inline-copy-text--truncate":
|
|
72
|
+
"kappa-inline-copy-text--bold": C.bold,
|
|
73
|
+
"kappa-inline-copy-text--truncate": C.truncate
|
|
76
74
|
}],
|
|
77
75
|
"data-slot": "inline-copy-text",
|
|
78
|
-
"data-variant":
|
|
79
|
-
"data-size":
|
|
80
|
-
"data-icon-visibility":
|
|
81
|
-
disabled:
|
|
76
|
+
"data-variant": C.variant,
|
|
77
|
+
"data-size": C.size,
|
|
78
|
+
"data-icon-visibility": C.iconVisibility,
|
|
79
|
+
disabled: C.disabled,
|
|
82
80
|
type: "button"
|
|
83
81
|
}), [
|
|
84
|
-
i("span", g, d(f(
|
|
85
|
-
i("span", _, [u(t.$slots, "default", {}, () => [a(d(
|
|
86
|
-
i("span", v, [
|
|
87
|
-
|
|
88
|
-
y: "5",
|
|
89
|
-
width: "9",
|
|
90
|
-
height: "9",
|
|
91
|
-
rx: "1.5",
|
|
92
|
-
stroke: "currentColor",
|
|
93
|
-
"stroke-width": "1.5"
|
|
94
|
-
}, null, -1), i("path", {
|
|
95
|
-
d: "M11 5V3.5A1.5 1.5 0 0 0 9.5 2h-6A1.5 1.5 0 0 0 2 3.5v6A1.5 1.5 0 0 0 3.5 11H5",
|
|
82
|
+
i("span", g, d(f(T).copied ? C.copiedLabel : C.copyLabel) + ": ", 1),
|
|
83
|
+
i("span", _, [u(t.$slots, "default", {}, () => [a(d(C.value), 1)])]),
|
|
84
|
+
i("span", v, [f(T).copied ? (l(), r("svg", y, [...s[0] ||= [i("path", {
|
|
85
|
+
d: "m3 8 3 3 7-7",
|
|
96
86
|
stroke: "currentColor",
|
|
97
|
-
"stroke-width": "1.5"
|
|
98
|
-
|
|
87
|
+
"stroke-width": "1.5",
|
|
88
|
+
"stroke-linecap": "round",
|
|
89
|
+
"stroke-linejoin": "round"
|
|
90
|
+
}, null, -1)]])) : (l(), r("svg", b, [...s[1] ||= [i("rect", {
|
|
91
|
+
x: "3",
|
|
92
|
+
y: "8",
|
|
93
|
+
width: "13",
|
|
94
|
+
height: "13",
|
|
95
|
+
rx: "3"
|
|
96
|
+
}, null, -1), i("path", { d: "M8 8V6a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2" }, null, -1)]]))])
|
|
99
97
|
], 16, h)]),
|
|
100
98
|
_: 3
|
|
101
99
|
}),
|
|
102
100
|
o(f(e).Content, { lang: typeof t.$attrs.lang == "string" ? t.$attrs.lang : void 0 }, {
|
|
103
|
-
default: p(() => [a(d(f(
|
|
101
|
+
default: p(() => [a(d(f(T).copied ? C.copiedLabel : C.copyLabel), 1)]),
|
|
104
102
|
_: 1
|
|
105
103
|
}, 8, ["lang"]),
|
|
106
104
|
i("span", {
|
|
@@ -108,13 +106,13 @@ var h = [
|
|
|
108
106
|
role: "status",
|
|
109
107
|
"aria-atomic": "true",
|
|
110
108
|
lang: typeof t.$attrs.lang == "string" ? t.$attrs.lang : void 0
|
|
111
|
-
}, d(f(
|
|
109
|
+
}, d(f(T).copied ? C.copiedLabel : ""), 9, x)
|
|
112
110
|
]),
|
|
113
111
|
_: 3
|
|
114
112
|
}, 8, ["disabled"]));
|
|
115
113
|
}
|
|
116
114
|
});
|
|
117
115
|
//#endregion
|
|
118
|
-
export {
|
|
116
|
+
export { S as t };
|
|
119
117
|
|
|
120
|
-
//# sourceMappingURL=InlineCopyText-
|
|
118
|
+
//# sourceMappingURL=InlineCopyText-Bosrszdf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineCopyText-Bosrszdf.js","names":["$attrs"],"sources":["../src/components/inline-copy-text/InlineCopyText.vue","../src/components/inline-copy-text/InlineCopyText.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useClipboard, type ClipboardCopyStatusDetails } from \"@ark-ui/vue/clipboard\";\nimport { computed, mergeProps } from \"vue\";\nimport { Tooltip } from \"../tooltip\";\nimport type { InlineCopyTextEmits, InlineCopyTextProps, InlineCopyTextSlots } from \"./inline-copy-text\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<InlineCopyTextProps>(), {\n bold: false,\n copiedLabel: \"Copied\",\n copyLabel: \"Copy to clipboard\",\n disabled: false,\n iconVisibility: \"hover\",\n size: \"sm\",\n timeout: 3000,\n truncate: false,\n variant: \"mono-secondary\",\n});\n\nconst emit = defineEmits<InlineCopyTextEmits>();\ndefineSlots<InlineCopyTextSlots>();\n\nconst clipboard = useClipboard(computed(() => ({\n modelValue: props.value,\n timeout: props.timeout,\n onStatusChange: (details: ClipboardCopyStatusDetails) => emit(\"statusChange\", details),\n})));\n</script>\n\n<template>\n <Tooltip.Root lazy-mount :disabled=\"props.disabled\" :close-on-click=\"false\" :close-on-pointer-down=\"false\">\n <Tooltip.Trigger as-child>\n <button\n v-bind=\"mergeProps({ ...clipboard.getTriggerProps(), 'aria-label': undefined }, $attrs)\"\n class=\"kappa-inline-copy-text\"\n :class=\"{\n 'kappa-inline-copy-text--bold': props.bold,\n 'kappa-inline-copy-text--truncate': props.truncate,\n }\"\n data-slot=\"inline-copy-text\"\n :data-variant=\"props.variant\"\n :data-size=\"props.size\"\n :data-icon-visibility=\"props.iconVisibility\"\n :disabled=\"props.disabled\"\n type=\"button\"\n >\n <span class=\"kappa-inline-copy-text__action\">{{ clipboard.copied ? props.copiedLabel : props.copyLabel }}: </span>\n <span class=\"kappa-inline-copy-text__text\" data-slot=\"inline-copy-text-value\">\n <slot>{{ props.value }}</slot>\n </span>\n <span class=\"kappa-inline-copy-text__icon\" aria-hidden=\"true\">\n <svg v-if=\"clipboard.copied\" viewBox=\"0 0 16 16\" fill=\"none\" focusable=\"false\">\n <path\n d=\"m3 8 3 3 7-7\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n <svg v-else viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" focusable=\"false\">\n <rect x=\"3\" y=\"8\" width=\"13\" height=\"13\" rx=\"3\" />\n <path d=\"M8 8V6a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2\" />\n </svg>\n </span>\n </button>\n </Tooltip.Trigger>\n <Tooltip.Content :lang=\"typeof $attrs.lang === 'string' ? $attrs.lang : undefined\">\n {{ clipboard.copied ? props.copiedLabel : props.copyLabel }}\n </Tooltip.Content>\n <span\n class=\"kappa-inline-copy-text__status\"\n role=\"status\"\n aria-atomic=\"true\"\n :lang=\"typeof $attrs.lang === 'string' ? $attrs.lang : undefined\"\n >\n {{ clipboard.copied ? props.copiedLabel : \"\" }}\n </span>\n </Tooltip.Root>\n</template>\n\n<style src=\"./inline-copy-text.css\"></style>\n","<script setup lang=\"ts\">\nimport { useClipboard, type ClipboardCopyStatusDetails } from \"@ark-ui/vue/clipboard\";\nimport { computed, mergeProps } from \"vue\";\nimport { Tooltip } from \"../tooltip\";\nimport type { InlineCopyTextEmits, InlineCopyTextProps, InlineCopyTextSlots } from \"./inline-copy-text\";\n\ndefineOptions({ inheritAttrs: false });\n\nconst props = withDefaults(defineProps<InlineCopyTextProps>(), {\n bold: false,\n copiedLabel: \"Copied\",\n copyLabel: \"Copy to clipboard\",\n disabled: false,\n iconVisibility: \"hover\",\n size: \"sm\",\n timeout: 3000,\n truncate: false,\n variant: \"mono-secondary\",\n});\n\nconst emit = defineEmits<InlineCopyTextEmits>();\ndefineSlots<InlineCopyTextSlots>();\n\nconst clipboard = useClipboard(computed(() => ({\n modelValue: props.value,\n timeout: props.timeout,\n onStatusChange: (details: ClipboardCopyStatusDetails) => emit(\"statusChange\", details),\n})));\n</script>\n\n<template>\n <Tooltip.Root lazy-mount :disabled=\"props.disabled\" :close-on-click=\"false\" :close-on-pointer-down=\"false\">\n <Tooltip.Trigger as-child>\n <button\n v-bind=\"mergeProps({ ...clipboard.getTriggerProps(), 'aria-label': undefined }, $attrs)\"\n class=\"kappa-inline-copy-text\"\n :class=\"{\n 'kappa-inline-copy-text--bold': props.bold,\n 'kappa-inline-copy-text--truncate': props.truncate,\n }\"\n data-slot=\"inline-copy-text\"\n :data-variant=\"props.variant\"\n :data-size=\"props.size\"\n :data-icon-visibility=\"props.iconVisibility\"\n :disabled=\"props.disabled\"\n type=\"button\"\n >\n <span class=\"kappa-inline-copy-text__action\">{{ clipboard.copied ? props.copiedLabel : props.copyLabel }}: </span>\n <span class=\"kappa-inline-copy-text__text\" data-slot=\"inline-copy-text-value\">\n <slot>{{ props.value }}</slot>\n </span>\n <span class=\"kappa-inline-copy-text__icon\" aria-hidden=\"true\">\n <svg v-if=\"clipboard.copied\" viewBox=\"0 0 16 16\" fill=\"none\" focusable=\"false\">\n <path\n d=\"m3 8 3 3 7-7\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n <svg v-else viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" focusable=\"false\">\n <rect x=\"3\" y=\"8\" width=\"13\" height=\"13\" rx=\"3\" />\n <path d=\"M8 8V6a3 3 0 0 1 3-3h7a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-2\" />\n </svg>\n </span>\n </button>\n </Tooltip.Trigger>\n <Tooltip.Content :lang=\"typeof $attrs.lang === 'string' ? $attrs.lang : undefined\">\n {{ clipboard.copied ? props.copiedLabel : props.copyLabel }}\n </Tooltip.Content>\n <span\n class=\"kappa-inline-copy-text__status\"\n role=\"status\"\n aria-atomic=\"true\"\n :lang=\"typeof $attrs.lang === 'string' ? $attrs.lang : undefined\"\n >\n {{ clipboard.copied ? props.copiedLabel : \"\" }}\n </span>\n </Tooltip.Root>\n</template>\n\n<style src=\"./inline-copy-text.css\"></style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQA,IAAM,IAAQ,GAYR,IAAO,GAGP,IAAY,EAAa,SAAgB;GAC7C,YAAY,EAAM;GAClB,SAAS,EAAM;GACf,iBAAiB,MAAwC,EAAK,gBA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A9D,GAAE,0DAAyD,GAAA,MAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA;;;;IAKzE,EAEkB,EAAA,CAAA,CAAA,CAAA,SAAA,EAFA,MAAI,OAASA,EAAAA,OAAO,QAAI,WAAgBA,EAAAA,OAAO,OAAO,KAAA,EAAA,GAAA;KACtE,SAAA,QAA4D,CAAzD,EAAA,EAAA,EAAA,CAAA,CAAS,CAAC,SAAS,EAAM,cAAc,EAAM,SAAS,GAAA,CAAA,CAAA,CAAA;;;IAE3D,EAOO,QAAA;KANL,OAAM;KACN,MAAK;KACL,eAAY;KACX,MAAI,OAASA,EAAAA,OAAO,QAAI,WAAgBA,EAAAA,OAAO,OAAO,KAAA;IAEpD,GAAA,EAAA,EAAA,CAAA,CAAS,CAAC,SAAS,EAAM,cAAW,EAAA,GAAA,GAAA,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as e, k as t, t as n } from "./sidebar-
|
|
1
|
+
import { D as e, k as t, t as n } from "./sidebar-tcrbUrk_.js";
|
|
2
2
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, guardReactiveProps as u, mergeDefaults as d, mergeProps as f, nextTick as p, normalizeProps as m, openBlock as h, ref as g, renderSlot as _, unref as v, watch as y, withCtx as b } from "vue";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region src/blocks/sidebar-layout/SidebarLayoutSecondary.vue
|
|
@@ -37,6 +37,7 @@ var x = /* @__PURE__ */ l({
|
|
|
37
37
|
"header"
|
|
38
38
|
], C = {
|
|
39
39
|
variant: "workspace",
|
|
40
|
+
contentAlignment: "available",
|
|
40
41
|
label: "Application navigation",
|
|
41
42
|
navigationLabel: "Navigation links",
|
|
42
43
|
secondaryLabel: "Secondary navigation",
|
|
@@ -58,11 +59,12 @@ var E = {
|
|
|
58
59
|
}, D = { class: "kappa-sidebar-layout__body" }, O = { class: "kappa-sidebar-layout__columns" }, k = { class: "kappa-sidebar-layout__main" }, A = {
|
|
59
60
|
key: 0,
|
|
60
61
|
class: "kappa-sidebar-layout__toolbar"
|
|
61
|
-
}, j = { class: "kappa-sidebar-layout__content" }, M = /* @__PURE__ */ l({
|
|
62
|
+
}, j = { class: "kappa-sidebar-layout__content-frame" }, M = { class: "kappa-sidebar-layout__content" }, N = /* @__PURE__ */ l({
|
|
62
63
|
inheritAttrs: !1,
|
|
63
64
|
__name: "SidebarLayout",
|
|
64
65
|
props: /*@__PURE__*/ d({
|
|
65
66
|
variant: {},
|
|
67
|
+
contentAlignment: {},
|
|
66
68
|
label: {},
|
|
67
69
|
navigationLabel: {},
|
|
68
70
|
secondaryLabel: {},
|
|
@@ -83,6 +85,7 @@ var E = {
|
|
|
83
85
|
collapsedWidth: {},
|
|
84
86
|
mobileWidth: {},
|
|
85
87
|
resizable: { type: Boolean },
|
|
88
|
+
collapseOnResize: { type: Boolean },
|
|
86
89
|
resizeWidth: {},
|
|
87
90
|
defaultWidth: {},
|
|
88
91
|
minWidth: {},
|
|
@@ -108,9 +111,9 @@ var E = {
|
|
|
108
111
|
],
|
|
109
112
|
setup(e, { emit: t }) {
|
|
110
113
|
let l = e, d = t, p = r(() => {
|
|
111
|
-
let { variant: e,
|
|
114
|
+
let { variant: e, contentAlignment: t, label: n, navigationLabel: r, secondaryLabel: i, closeLabel: a, resizeLabel: o, fullScreenOnMobile: s, triggerProps: c, ...u } = l;
|
|
112
115
|
return {
|
|
113
|
-
...
|
|
116
|
+
...u,
|
|
114
117
|
defaultOpen: l.defaultOpen ?? w(e),
|
|
115
118
|
width: l.width ?? `${T(e)}px`,
|
|
116
119
|
defaultWidth: l.defaultWidth ?? T(e)
|
|
@@ -123,6 +126,8 @@ var E = {
|
|
|
123
126
|
class: "kappa-sidebar-layout",
|
|
124
127
|
"data-variant": l.variant,
|
|
125
128
|
"data-side": l.side,
|
|
129
|
+
"data-content-alignment": l.contentAlignment,
|
|
130
|
+
"data-collapsible": l.collapsible,
|
|
126
131
|
"onUpdate:open": t[0] ||= (e) => d("update:open", e),
|
|
127
132
|
onOpenChange: t[1] ||= (e) => d("openChange", e),
|
|
128
133
|
"onUpdate:mobileOpen": t[2] ||= (e) => d("update:mobileOpen", e),
|
|
@@ -170,14 +175,19 @@ var E = {
|
|
|
170
175
|
"label",
|
|
171
176
|
"full-screen-on-mobile",
|
|
172
177
|
"data-layout"
|
|
173
|
-
]), s("div", k, [l.variant === "header" ? a("", !0) : (h(), o("header", A, [c(v(n).Trigger, m(u(l.triggerProps)), null, 16), _(e.$slots, "toolbar", m(u(t)))])), s("div", j, [_(e.$slots, "default", m(u(t)))])])])]),
|
|
178
|
+
]), s("div", k, [l.variant === "header" ? a("", !0) : (h(), o("header", A, [c(v(n).Trigger, m(u(l.triggerProps)), null, 16), _(e.$slots, "toolbar", m(u(t)))])), s("div", j, [s("div", M, [_(e.$slots, "default", m(u(t)))])])])])]),
|
|
174
179
|
_: 3
|
|
175
180
|
})]),
|
|
176
181
|
_: 3
|
|
177
|
-
}, 16, [
|
|
182
|
+
}, 16, [
|
|
183
|
+
"data-variant",
|
|
184
|
+
"data-side",
|
|
185
|
+
"data-content-alignment",
|
|
186
|
+
"data-collapsible"
|
|
187
|
+
]));
|
|
178
188
|
}
|
|
179
189
|
});
|
|
180
190
|
//#endregion
|
|
181
|
-
export { C as n, S as r,
|
|
191
|
+
export { C as n, S as r, N as t };
|
|
182
192
|
|
|
183
|
-
//# sourceMappingURL=SidebarLayout-
|
|
193
|
+
//# sourceMappingURL=SidebarLayout-D9RT-MdT.js.map
|