@septkit/ui 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +17 -0
  2. package/dist/dropdown/combobox.js +5 -0
  3. package/dist/dropdown/combobox.vue_vue_type_script_setup_true_lang.js +103 -0
  4. package/dist/dropdown/dropdown.js +2 -4
  5. package/dist/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +61 -61
  6. package/dist/dropdown/index.js +2 -0
  7. package/dist/external/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +359 -0
  8. package/dist/external/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +328 -0
  9. package/dist/external/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -0
  10. package/dist/external/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
  11. package/dist/external/.pnpm/@floating-ui_vue@1.1.11_vue@3.5.32_typescript@5.8.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js +102 -0
  12. package/dist/external/.pnpm/@vueuse_core@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js +66 -0
  13. package/dist/external/.pnpm/@vueuse_shared@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js +83 -0
  14. package/dist/external/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +46 -0
  15. package/dist/external/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.js +22 -0
  16. package/dist/external/.pnpm/lucide-vue-next@1.0.0_vue@3.5.32_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/check.js +8 -0
  17. package/dist/external/.pnpm/lucide-vue-next@1.0.0_vue@3.5.32_typescript@5.8.3_/node_modules/lucide-vue-next/dist/esm/icons/chevron-down.js +8 -0
  18. package/dist/external/.pnpm/ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.js +106 -0
  19. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Collection/Collection.js +62 -0
  20. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js +41 -0
  21. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxContent.js +134 -0
  22. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxContentImpl.js +192 -0
  23. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js +26 -0
  24. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js +6 -0
  25. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxInput.js +115 -0
  26. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItem.js +64 -0
  27. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js +26 -0
  28. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js +213 -0
  29. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js +55 -0
  30. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js +51 -0
  31. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/ConfigProvider/ConfigProvider.js +6 -0
  32. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js +80 -0
  33. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/DismissableLayer/utils.js +62 -0
  34. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/FocusScope/FocusScope.js +109 -0
  35. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/FocusScope/stack.js +22 -0
  36. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/FocusScope/utils.js +45 -0
  37. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxContent.js +65 -0
  38. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxFilter.js +84 -0
  39. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxItem.js +81 -0
  40. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxItemIndicator.js +33 -0
  41. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxRoot.js +268 -0
  42. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/utils.js +10 -0
  43. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperAnchor.js +37 -0
  44. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperContent.js +225 -0
  45. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperRoot.js +16 -0
  46. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/utils.js +27 -0
  47. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Presence/Presence.js +39 -0
  48. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Presence/usePresence.js +58 -0
  49. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Primitive/Primitive.js +27 -0
  50. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Primitive/Slot.js +23 -0
  51. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Primitive/usePrimitiveElement.js +12 -0
  52. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/RovingFocus/utils.js +20 -0
  53. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHidden.js +57 -0
  54. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js +65 -0
  55. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js +55 -0
  56. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/arrays.js +10 -0
  57. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/createContext.js +12 -0
  58. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/getActiveElement.js +9 -0
  59. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js +11 -0
  60. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/nullish.js +6 -0
  61. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/renderSlotFragments.js +7 -0
  62. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useBodyScrollLock.js +63 -0
  63. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useDirection.js +9 -0
  64. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useEmitAsProps.js +10 -0
  65. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useFilter.js +24 -0
  66. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useFocusGuards.js +19 -0
  67. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useFormControl.js +8 -0
  68. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useForwardExpose.js +50 -0
  69. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useForwardProps.js +19 -0
  70. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js +13 -0
  71. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useHideOthers.js +18 -0
  72. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useId.js +11 -0
  73. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useKbd.js +41 -0
  74. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useNonce.js +9 -0
  75. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useSize.js +33 -0
  76. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useStateMachine.js +16 -0
  77. package/dist/external/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/shared/useTypeahead.js +33 -0
  78. package/dist/external/.pnpm/vue-demi@0.14.10_vue@3.5.32_typescript@5.8.3_/node_modules/vue-demi/lib/index.js +28 -0
  79. package/dist/index.d.ts +52 -1
  80. package/dist/index.js +4 -2
  81. package/dist/ui.css +1 -2
  82. package/package.json +5 -2
  83. package/dist/_virtual/_plugin-vue_export-helper.js +0 -8
@@ -0,0 +1,268 @@
1
+ import { findValuesBetween as e } from "../shared/arrays.js";
2
+ import { createContext as t } from "../shared/createContext.js";
3
+ import { createEventHook as n } from "../../../../../@vueuse_shared@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
4
+ import { useVModel as r } from "../../../../../@vueuse_core@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
5
+ import { useDirection as i } from "../shared/useDirection.js";
6
+ import { useFormControl as ee } from "../shared/useFormControl.js";
7
+ import { useKbd as a } from "../shared/useKbd.js";
8
+ import { useTypeahead as o } from "../shared/useTypeahead.js";
9
+ import { Primitive as s } from "../Primitive/Primitive.js";
10
+ import { usePrimitiveElement as te } from "../Primitive/usePrimitiveElement.js";
11
+ import { useCollection as ne } from "../Collection/Collection.js";
12
+ import { VisuallyHiddenInput_default as c } from "../VisuallyHidden/VisuallyHiddenInput.js";
13
+ import { compare as l } from "./utils.js";
14
+ import { getFocusIntent as u } from "../RovingFocus/utils.js";
15
+ import { createBlock as d, createCommentVNode as re, defineComponent as f, nextTick as p, openBlock as m, ref as h, renderSlot as g, toRefs as _, unref as v, watch as y, withCtx as b } from "vue";
16
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/ListboxRoot.js
17
+ var [x, ie] = /* @__PURE__ */ t("ListboxRoot"), S = /* @__PURE__ */ f({
18
+ __name: "ListboxRoot",
19
+ props: {
20
+ modelValue: {
21
+ type: null,
22
+ required: !1
23
+ },
24
+ defaultValue: {
25
+ type: null,
26
+ required: !1
27
+ },
28
+ multiple: {
29
+ type: Boolean,
30
+ required: !1
31
+ },
32
+ orientation: {
33
+ type: String,
34
+ required: !1,
35
+ default: "vertical"
36
+ },
37
+ dir: {
38
+ type: String,
39
+ required: !1
40
+ },
41
+ disabled: {
42
+ type: Boolean,
43
+ required: !1
44
+ },
45
+ selectionBehavior: {
46
+ type: String,
47
+ required: !1,
48
+ default: "toggle"
49
+ },
50
+ highlightOnHover: {
51
+ type: Boolean,
52
+ required: !1
53
+ },
54
+ by: {
55
+ type: [String, Function],
56
+ required: !1
57
+ },
58
+ asChild: {
59
+ type: Boolean,
60
+ required: !1
61
+ },
62
+ as: {
63
+ type: null,
64
+ required: !1
65
+ },
66
+ name: {
67
+ type: String,
68
+ required: !1
69
+ },
70
+ required: {
71
+ type: Boolean,
72
+ required: !1
73
+ }
74
+ },
75
+ emits: [
76
+ "update:modelValue",
77
+ "highlight",
78
+ "entryFocus",
79
+ "leave"
80
+ ],
81
+ setup(t, { expose: f, emit: x }) {
82
+ let S = t, C = x, { multiple: w, highlightOnHover: T, orientation: E, disabled: D, selectionBehavior: ae, dir: O } = _(S), { getItems: k } = ne({ isProvider: !0 }), { handleTypeaheadSearch: A } = o(), { primitiveElement: j, currentElement: M } = te(), N = a(), P = i(O), F = ee(M), I = h(), L = h(!1), R = h(!0), z = r(S, "modelValue", C, {
83
+ defaultValue: S.defaultValue ?? (w.value ? [] : void 0),
84
+ passive: S.modelValue === void 0,
85
+ deep: !0
86
+ });
87
+ function B(e) {
88
+ if (L.value = !0, S.multiple) {
89
+ let t = Array.isArray(z.value) ? [...z.value] : [], n = t.findIndex((t) => l(t, e, S.by));
90
+ S.selectionBehavior === "toggle" ? (n === -1 ? t.push(e) : t.splice(n, 1), z.value = t) : (z.value = [e], I.value = e);
91
+ } else S.selectionBehavior === "toggle" && l(z.value, e, S.by) ? z.value = void 0 : z.value = e;
92
+ setTimeout(() => {
93
+ L.value = !1;
94
+ }, 1);
95
+ }
96
+ let V = h(null), H = h(null), U = h(!1), W = h(!1), G = n(), K = n(), q = n();
97
+ function J() {
98
+ return k().map((e) => e.ref).filter((e) => e.dataset.disabled !== "");
99
+ }
100
+ function Y(e, t = !0, n) {
101
+ e && (V.value = e, (n ?? R.value) && V.value.focus(), t && V.value.scrollIntoView({ block: "nearest" }), C("highlight", k().find((t) => t.ref === e)));
102
+ }
103
+ function oe(e) {
104
+ if (U.value) q.trigger(e);
105
+ else {
106
+ let t = k().find((t) => l(t.value, e, S.by));
107
+ t && (V.value = t.ref, Y(t.ref));
108
+ }
109
+ }
110
+ function se(e) {
111
+ V.value && V.value.isConnected && (e.preventDefault(), e.stopPropagation(), W.value || V.value.click());
112
+ }
113
+ function ce(e) {
114
+ if (R.value) {
115
+ if (L.value = !0, U.value) K.trigger(e);
116
+ else {
117
+ let t = e.altKey || e.ctrlKey || e.metaKey;
118
+ if (t && e.key === "a" && w.value) {
119
+ let t = k();
120
+ z.value = [...t.map((e) => e.value)], e.preventDefault();
121
+ let n = t.at(-1);
122
+ n && Y(n.ref);
123
+ } else if (!t) {
124
+ let t = A(e.key, k());
125
+ t && Y(t);
126
+ }
127
+ }
128
+ setTimeout(() => {
129
+ L.value = !1;
130
+ }, 1);
131
+ }
132
+ }
133
+ function le() {
134
+ W.value = !0;
135
+ }
136
+ function ue() {
137
+ p(() => {
138
+ W.value = !1;
139
+ });
140
+ }
141
+ function X() {
142
+ p(() => {
143
+ Q(new KeyboardEvent("keydown", { key: "PageUp" }));
144
+ });
145
+ }
146
+ function Z(e) {
147
+ let t = V.value;
148
+ t?.isConnected && (H.value = t), V.value = null, C("leave", e);
149
+ }
150
+ function de(e) {
151
+ let t = new CustomEvent("listbox.entryFocus", {
152
+ bubbles: !1,
153
+ cancelable: !0
154
+ });
155
+ if (e.currentTarget?.dispatchEvent(t), C("entryFocus", t), !t.defaultPrevented) if (H.value) Y(H.value);
156
+ else {
157
+ let e = J()?.[0];
158
+ Y(e);
159
+ }
160
+ }
161
+ function Q(e) {
162
+ let t = u(e, E.value, P.value);
163
+ if (!t) return;
164
+ let n = J();
165
+ if (V.value) {
166
+ if (t === "last") n.reverse();
167
+ else if (t === "prev" || t === "next") {
168
+ t === "prev" && n.reverse();
169
+ let e = n.indexOf(V.value);
170
+ n = n.slice(e + 1);
171
+ }
172
+ fe(e, n[0]);
173
+ }
174
+ if (n.length) {
175
+ let e = !V.value && t === "prev" ? n.length - 1 : 0;
176
+ Y(n[e]);
177
+ }
178
+ if (U.value) return K.trigger(e);
179
+ }
180
+ function fe(t, n) {
181
+ if (!(U.value || S.selectionBehavior !== "replace" || !w.value || !Array.isArray(z.value)) && !((t.altKey || t.ctrlKey || t.metaKey) && !t.shiftKey) && t.shiftKey) {
182
+ let r = k().filter((e) => e.ref.dataset.disabled !== ""), i = r.find((e) => e.ref === n)?.value;
183
+ if (t.key === N.END ? i = r.at(-1)?.value : t.key === N.HOME && (i = r[0]?.value), !i || !I.value) return;
184
+ z.value = e(r.map((e) => e.value), I.value, i);
185
+ }
186
+ }
187
+ async function $(e) {
188
+ if (await p(), U.value) G.trigger(e);
189
+ else {
190
+ let e = J(), t = e.find((e) => e.dataset.state === "checked");
191
+ t ? Y(t) : e.length && Y(e[0]);
192
+ }
193
+ }
194
+ return y(z, () => {
195
+ L.value || p(() => {
196
+ $();
197
+ });
198
+ }, {
199
+ immediate: !0,
200
+ deep: !0
201
+ }), f({
202
+ highlightedElement: V,
203
+ highlightItem: oe,
204
+ highlightFirstItem: X,
205
+ highlightSelected: $,
206
+ getItems: k
207
+ }), ie({
208
+ modelValue: z,
209
+ onValueChange: B,
210
+ multiple: w,
211
+ orientation: E,
212
+ dir: P,
213
+ disabled: D,
214
+ highlightOnHover: T,
215
+ highlightedElement: V,
216
+ isVirtual: U,
217
+ virtualFocusHook: G,
218
+ virtualKeydownHook: K,
219
+ virtualHighlightHook: q,
220
+ by: S.by,
221
+ firstValue: I,
222
+ selectionBehavior: ae,
223
+ focusable: R,
224
+ onLeave: Z,
225
+ onEnter: de,
226
+ changeHighlight: Y,
227
+ onKeydownEnter: se,
228
+ onKeydownNavigation: Q,
229
+ onKeydownTypeAhead: ce,
230
+ onCompositionStart: le,
231
+ onCompositionEnd: ue,
232
+ highlightFirstItem: X
233
+ }), (e, t) => (m(), d(v(s), {
234
+ ref_key: "primitiveElement",
235
+ ref: j,
236
+ as: e.as,
237
+ "as-child": e.asChild,
238
+ dir: v(P),
239
+ "data-disabled": v(D) ? "" : void 0,
240
+ onPointerleave: Z,
241
+ onFocusout: t[0] ||= async (e) => {
242
+ let t = e.relatedTarget || e.target;
243
+ await p(), V.value && v(M) && !v(M).contains(t) && Z(e);
244
+ }
245
+ }, {
246
+ default: b(() => [g(e.$slots, "default", { modelValue: v(z) }), v(F) && e.name ? (m(), d(v(c), {
247
+ key: 0,
248
+ name: e.name,
249
+ value: v(z),
250
+ disabled: v(D),
251
+ required: e.required
252
+ }, null, 8, [
253
+ "name",
254
+ "value",
255
+ "disabled",
256
+ "required"
257
+ ])) : re("v-if", !0)]),
258
+ _: 3
259
+ }, 8, [
260
+ "as",
261
+ "as-child",
262
+ "dir",
263
+ "data-disabled"
264
+ ]));
265
+ }
266
+ });
267
+ //#endregion
268
+ export { S as ListboxRoot_default, x as injectListboxRootContext };
@@ -0,0 +1,10 @@
1
+ import { isEqual as e } from "../../../../../ohash@2.0.11/node_modules/ohash/dist/shared/ohash.D__AXeF1.js";
2
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Listbox/utils.js
3
+ function t(e, t, r) {
4
+ return e === void 0 ? !1 : Array.isArray(e) ? e.some((e) => n(e, t, r)) : n(e, t, r);
5
+ }
6
+ function n(t, n, r) {
7
+ return t === void 0 || n === void 0 ? !1 : typeof t == "string" ? t === n : typeof r == "function" ? r(t, n) : typeof r == "string" ? t?.[r] === n?.[r] : e(t, n);
8
+ }
9
+ //#endregion
10
+ export { n as compare, t as valueComparator };
@@ -0,0 +1,37 @@
1
+ import { useForwardExpose as e } from "../shared/useForwardExpose.js";
2
+ import { Primitive as t } from "../Primitive/Primitive.js";
3
+ import { injectPopperRootContext as n } from "./PopperRoot.js";
4
+ import { createBlock as r, defineComponent as i, openBlock as a, renderSlot as o, unref as s, watchPostEffect as c, withCtx as l } from "vue";
5
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperAnchor.js
6
+ var u = /* @__PURE__ */ i({
7
+ __name: "PopperAnchor",
8
+ props: {
9
+ reference: {
10
+ type: null,
11
+ required: !1
12
+ },
13
+ asChild: {
14
+ type: Boolean,
15
+ required: !1
16
+ },
17
+ as: {
18
+ type: null,
19
+ required: !1
20
+ }
21
+ },
22
+ setup(i) {
23
+ let u = i, { forwardRef: d, currentElement: f } = e(), p = n();
24
+ return c(() => {
25
+ p.onAnchorChange(u.reference ?? f.value);
26
+ }), (e, n) => (a(), r(s(t), {
27
+ ref: s(d),
28
+ as: e.as,
29
+ "as-child": e.asChild
30
+ }, {
31
+ default: l(() => [o(e.$slots, "default")]),
32
+ _: 3
33
+ }, 8, ["as", "as-child"]));
34
+ }
35
+ });
36
+ //#endregion
37
+ export { u as PopperAnchor_default };
@@ -0,0 +1,225 @@
1
+ import { createContext as e } from "../shared/createContext.js";
2
+ import { computedEager as t } from "../../../../../@vueuse_shared@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
3
+ import { useForwardExpose as n } from "../shared/useForwardExpose.js";
4
+ import { useSize as r } from "../shared/useSize.js";
5
+ import { Primitive as i } from "../Primitive/Primitive.js";
6
+ import { injectPopperRootContext as a } from "./PopperRoot.js";
7
+ import { getSideAndAlignFromPlacement as o, isNotNull as s, transformOrigin as c } from "./utils.js";
8
+ import { autoUpdate as l, flip as u, hide as d, limitShift as f, offset as p, shift as m, size as h } from "../../../../../@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
9
+ import { arrow as g, useFloating as _ } from "../../../../../@floating-ui_vue@1.1.11_vue@3.5.32_typescript@5.8.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.js";
10
+ import { computed as v, createElementBlock as y, createVNode as b, defineComponent as x, mergeDefaults as S, mergeProps as C, normalizeStyle as w, openBlock as T, ref as E, renderSlot as D, unref as O, watchEffect as ee, watchPostEffect as k, withCtx as A } from "vue";
11
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperContent.js
12
+ var j = {
13
+ side: "bottom",
14
+ sideOffset: 0,
15
+ sideFlip: !0,
16
+ align: "center",
17
+ alignOffset: 0,
18
+ alignFlip: !0,
19
+ arrowPadding: 0,
20
+ hideShiftedArrow: !0,
21
+ avoidCollisions: !0,
22
+ collisionBoundary: () => [],
23
+ collisionPadding: 0,
24
+ sticky: "partial",
25
+ hideWhenDetached: !1,
26
+ positionStrategy: "fixed",
27
+ updatePositionStrategy: "optimized",
28
+ prioritizePosition: !1
29
+ }, [M, N] = /* @__PURE__ */ e("PopperContent"), P = /* @__PURE__ */ x({
30
+ inheritAttrs: !1,
31
+ __name: "PopperContent",
32
+ props: /* @__PURE__ */ S({
33
+ side: {
34
+ type: null,
35
+ required: !1
36
+ },
37
+ sideOffset: {
38
+ type: Number,
39
+ required: !1
40
+ },
41
+ sideFlip: {
42
+ type: Boolean,
43
+ required: !1
44
+ },
45
+ align: {
46
+ type: null,
47
+ required: !1
48
+ },
49
+ alignOffset: {
50
+ type: Number,
51
+ required: !1
52
+ },
53
+ alignFlip: {
54
+ type: Boolean,
55
+ required: !1
56
+ },
57
+ avoidCollisions: {
58
+ type: Boolean,
59
+ required: !1
60
+ },
61
+ collisionBoundary: {
62
+ type: null,
63
+ required: !1
64
+ },
65
+ collisionPadding: {
66
+ type: [Number, Object],
67
+ required: !1
68
+ },
69
+ arrowPadding: {
70
+ type: Number,
71
+ required: !1
72
+ },
73
+ hideShiftedArrow: {
74
+ type: Boolean,
75
+ required: !1
76
+ },
77
+ sticky: {
78
+ type: String,
79
+ required: !1
80
+ },
81
+ hideWhenDetached: {
82
+ type: Boolean,
83
+ required: !1
84
+ },
85
+ positionStrategy: {
86
+ type: String,
87
+ required: !1
88
+ },
89
+ updatePositionStrategy: {
90
+ type: String,
91
+ required: !1
92
+ },
93
+ disableUpdateOnLayoutShift: {
94
+ type: Boolean,
95
+ required: !1
96
+ },
97
+ prioritizePosition: {
98
+ type: Boolean,
99
+ required: !1
100
+ },
101
+ reference: {
102
+ type: null,
103
+ required: !1
104
+ },
105
+ asChild: {
106
+ type: Boolean,
107
+ required: !1
108
+ },
109
+ as: {
110
+ type: null,
111
+ required: !1
112
+ }
113
+ }, { ...j }),
114
+ emits: ["placed"],
115
+ setup(e, { emit: x }) {
116
+ let S = e, j = x, M = a(), { forwardRef: P, currentElement: F } = n(), I = E(), L = E(), { width: R, height: z } = r(L), B = v(() => S.side + (S.align === "center" ? "" : `-${S.align}`)), V = v(() => typeof S.collisionPadding == "number" ? S.collisionPadding : {
117
+ top: 0,
118
+ right: 0,
119
+ bottom: 0,
120
+ left: 0,
121
+ ...S.collisionPadding
122
+ }), H = v(() => Array.isArray(S.collisionBoundary) ? S.collisionBoundary : [S.collisionBoundary]), U = v(() => ({
123
+ padding: V.value,
124
+ boundary: H.value.filter(s),
125
+ altBoundary: H.value.length > 0
126
+ })), W = v(() => ({
127
+ mainAxis: S.sideFlip,
128
+ crossAxis: S.alignFlip
129
+ })), G = t(() => [
130
+ p({
131
+ mainAxis: S.sideOffset + z.value,
132
+ alignmentAxis: S.alignOffset
133
+ }),
134
+ S.prioritizePosition && S.avoidCollisions && u({
135
+ ...U.value,
136
+ ...W.value
137
+ }),
138
+ S.avoidCollisions && m({
139
+ mainAxis: !0,
140
+ crossAxis: !!S.prioritizePosition,
141
+ limiter: S.sticky === "partial" ? f() : void 0,
142
+ ...U.value
143
+ }),
144
+ !S.prioritizePosition && S.avoidCollisions && u({
145
+ ...U.value,
146
+ ...W.value
147
+ }),
148
+ h({
149
+ ...U.value,
150
+ apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
151
+ let { width: i, height: a } = t.reference, o = e.floating.style;
152
+ o.setProperty("--reka-popper-available-width", `${n}px`), o.setProperty("--reka-popper-available-height", `${r}px`), o.setProperty("--reka-popper-anchor-width", `${i}px`), o.setProperty("--reka-popper-anchor-height", `${a}px`);
153
+ }
154
+ }),
155
+ L.value && g({
156
+ element: L.value,
157
+ padding: S.arrowPadding
158
+ }),
159
+ c({
160
+ arrowWidth: R.value,
161
+ arrowHeight: z.value
162
+ }),
163
+ S.hideWhenDetached && d({
164
+ strategy: "referenceHidden",
165
+ ...U.value
166
+ })
167
+ ]), { floatingStyles: K, placement: q, isPositioned: J, middlewareData: Y, update: te } = _(v(() => S.reference ?? M.anchor.value), I, {
168
+ strategy: S.positionStrategy,
169
+ placement: B,
170
+ whileElementsMounted: (...e) => l(...e, {
171
+ layoutShift: !S.disableUpdateOnLayoutShift,
172
+ animationFrame: S.updatePositionStrategy === "always"
173
+ }),
174
+ middleware: G
175
+ }), X = v(() => o(q.value)[0]), Z = v(() => o(q.value)[1]);
176
+ k(() => {
177
+ J.value && j("placed");
178
+ });
179
+ let Q = v(() => {
180
+ let e = Y.value.arrow?.centerOffset !== 0;
181
+ return S.hideShiftedArrow && e;
182
+ }), $ = E("");
183
+ return ee(() => {
184
+ F.value && ($.value = window.getComputedStyle(F.value).zIndex);
185
+ }), N({
186
+ placedSide: X,
187
+ onArrowChange: (e) => L.value = e,
188
+ arrowX: v(() => Y.value.arrow?.x ?? 0),
189
+ arrowY: v(() => Y.value.arrow?.y ?? 0),
190
+ shouldHideArrow: Q
191
+ }), (e, t) => (T(), y("div", {
192
+ ref_key: "floatingRef",
193
+ ref: I,
194
+ "data-reka-popper-content-wrapper": "",
195
+ style: w({
196
+ ...O(K),
197
+ transform: O(J) ? O(K).transform : "translate(0, -200%)",
198
+ minWidth: "max-content",
199
+ zIndex: $.value,
200
+ "--reka-popper-transform-origin": [O(Y).transformOrigin?.x, O(Y).transformOrigin?.y].join(" "),
201
+ ...O(Y).hide?.referenceHidden && {
202
+ visibility: "hidden",
203
+ pointerEvents: "none"
204
+ }
205
+ })
206
+ }, [b(O(i), C({ ref: O(P) }, e.$attrs, {
207
+ "as-child": S.asChild,
208
+ as: e.as,
209
+ "data-side": X.value,
210
+ "data-align": Z.value,
211
+ style: { animation: O(J) ? void 0 : "none" }
212
+ }), {
213
+ default: A(() => [D(e.$slots, "default")]),
214
+ _: 3
215
+ }, 16, [
216
+ "as-child",
217
+ "as",
218
+ "data-side",
219
+ "data-align",
220
+ "style"
221
+ ])], 4));
222
+ }
223
+ });
224
+ //#endregion
225
+ export { P as PopperContent_default };
@@ -0,0 +1,16 @@
1
+ import { createContext as e } from "../shared/createContext.js";
2
+ import { defineComponent as t, ref as n, renderSlot as r } from "vue";
3
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/PopperRoot.js
4
+ var [i, a] = /* @__PURE__ */ e("PopperRoot"), o = /* @__PURE__ */ t({
5
+ inheritAttrs: !1,
6
+ __name: "PopperRoot",
7
+ setup(e) {
8
+ let t = n();
9
+ return a({
10
+ anchor: t,
11
+ onAnchorChange: (e) => t.value = e
12
+ }), (e, t) => r(e.$slots, "default");
13
+ }
14
+ });
15
+ //#endregion
16
+ export { o as PopperRoot_default, i as injectPopperRootContext };
@@ -0,0 +1,27 @@
1
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Popper/utils.js
2
+ function e(e) {
3
+ return e !== null;
4
+ }
5
+ function t(e) {
6
+ return {
7
+ name: "transformOrigin",
8
+ options: e,
9
+ fn(t) {
10
+ let { placement: r, rects: i, middlewareData: a } = t, o = a.arrow?.centerOffset !== 0, s = o ? 0 : e.arrowWidth, c = o ? 0 : e.arrowHeight, [l, u] = n(r), d = {
11
+ start: "0%",
12
+ center: "50%",
13
+ end: "100%"
14
+ }[u], f = (a.arrow?.x ?? 0) + s / 2, p = (a.arrow?.y ?? 0) + c / 2, m = "", h = "";
15
+ return l === "bottom" ? (m = o ? d : `${f}px`, h = `${-c}px`) : l === "top" ? (m = o ? d : `${f}px`, h = `${i.floating.height + c}px`) : l === "right" ? (m = `${-c}px`, h = o ? d : `${p}px`) : l === "left" && (m = `${i.floating.width + c}px`, h = o ? d : `${p}px`), { data: {
16
+ x: m,
17
+ y: h
18
+ } };
19
+ }
20
+ };
21
+ }
22
+ function n(e) {
23
+ let [t, n = "center"] = e.split("-");
24
+ return [t, n];
25
+ }
26
+ //#endregion
27
+ export { n as getSideAndAlignFromPlacement, e as isNotNull, t as transformOrigin };
@@ -0,0 +1,39 @@
1
+ import { unrefElement as e } from "../../../../../@vueuse_core@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
2
+ import { renderSlotFragments as t } from "../shared/renderSlotFragments.js";
3
+ import { usePresence as n } from "./usePresence.js";
4
+ import { defineComponent as r, getCurrentInstance as i, h as a, ref as o, toRefs as s } from "vue";
5
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Presence/Presence.js
6
+ var c = /* @__PURE__ */ r({
7
+ name: "Presence",
8
+ props: {
9
+ present: {
10
+ type: Boolean,
11
+ required: !0
12
+ },
13
+ forceMount: { type: Boolean }
14
+ },
15
+ slots: {},
16
+ setup(r, { slots: c, expose: l }) {
17
+ let { present: u, forceMount: d } = s(r), f = o(), { isPresent: p } = n(u, f);
18
+ l({ present: p });
19
+ let m = c.default({ present: p.value });
20
+ m = t(m || []);
21
+ let h = i();
22
+ if (m && m?.length > 1) {
23
+ let e = h?.parent?.type.name ? `<${h.parent.type.name} />` : "component";
24
+ throw Error([
25
+ `Detected an invalid children for \`${e}\` for \`Presence\` component.`,
26
+ "",
27
+ "Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.",
28
+ "You can apply a few solutions:",
29
+ ["Provide a single child element so that `presence` directive attach correctly.", "Ensure the first child is an actual element instead of a raw text node or comment node."].map((e) => ` - ${e}`).join("\n")
30
+ ].join("\n"));
31
+ }
32
+ return () => d.value || u.value || p.value ? a(c.default({ present: p.value })[0], { ref: (t) => {
33
+ let n = e(t);
34
+ return n?.hasAttribute === void 0 || (n?.hasAttribute("data-reka-popper-content-wrapper") ? f.value = n.firstElementChild : f.value = n), n;
35
+ } }) : null;
36
+ }
37
+ });
38
+ //#endregion
39
+ export { c as Presence_default };
@@ -0,0 +1,58 @@
1
+ import { isClient as e } from "../../../../../@vueuse_shared@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/shared/dist/index.js";
2
+ import { defaultWindow as t } from "../../../../../@vueuse_core@14.2.1_vue@3.5.32_typescript@5.8.3_/node_modules/@vueuse/core/dist/index.js";
3
+ import { useStateMachine as n } from "../shared/useStateMachine.js";
4
+ import { computed as r, nextTick as i, onUnmounted as a, ref as o, watch as s } from "vue";
5
+ //#region node_modules/.pnpm/reka-ui@2.9.6_vue@3.5.32_typescript@5.8.3_/node_modules/reka-ui/dist/Presence/usePresence.js
6
+ function c(c, u) {
7
+ let d = o({}), f = o("none"), p = o(c), m = c.value ? "mounted" : "unmounted", h, g = u.value?.ownerDocument.defaultView ?? t, { state: _, dispatch: v } = n(m, {
8
+ mounted: {
9
+ UNMOUNT: "unmounted",
10
+ ANIMATION_OUT: "unmountSuspended"
11
+ },
12
+ unmountSuspended: {
13
+ MOUNT: "mounted",
14
+ ANIMATION_END: "unmounted"
15
+ },
16
+ unmounted: { MOUNT: "mounted" }
17
+ }), y = (t) => {
18
+ if (e) {
19
+ let e = new CustomEvent(t, {
20
+ bubbles: !1,
21
+ cancelable: !1
22
+ });
23
+ u.value?.dispatchEvent(e);
24
+ }
25
+ };
26
+ s(c, async (e, t) => {
27
+ let n = t !== e;
28
+ if (await i(), n) {
29
+ let n = f.value, r = l(u.value);
30
+ e ? (v("MOUNT"), y("enter"), r === "none" && y("after-enter")) : r === "none" || r === "undefined" || d.value?.display === "none" ? (v("UNMOUNT"), y("leave"), y("after-leave")) : t && n !== r ? (v("ANIMATION_OUT"), y("leave")) : (v("UNMOUNT"), y("after-leave"));
31
+ }
32
+ }, { immediate: !0 });
33
+ let b = (e) => {
34
+ let t = l(u.value), n = t.includes(CSS.escape(e.animationName)), r = _.value === "mounted" ? "enter" : "leave";
35
+ if (e.target === u.value && n && (y(`after-${r}`), v("ANIMATION_END"), !p.value)) {
36
+ let e = u.value.style.animationFillMode;
37
+ u.value.style.animationFillMode = "forwards", h = g?.setTimeout(() => {
38
+ u.value?.style.animationFillMode === "forwards" && (u.value.style.animationFillMode = e);
39
+ });
40
+ }
41
+ e.target === u.value && t === "none" && v("ANIMATION_END");
42
+ }, x = (e) => {
43
+ e.target === u.value && (f.value = l(u.value));
44
+ }, S = s(u, (e, t) => {
45
+ e ? (d.value = getComputedStyle(e), e.addEventListener("animationstart", x), e.addEventListener("animationcancel", b), e.addEventListener("animationend", b)) : (v("ANIMATION_END"), h !== void 0 && g?.clearTimeout(h), t?.removeEventListener("animationstart", x), t?.removeEventListener("animationcancel", b), t?.removeEventListener("animationend", b));
46
+ }, { immediate: !0 }), C = s(_, () => {
47
+ let e = l(u.value);
48
+ f.value = _.value === "mounted" ? e : "none";
49
+ });
50
+ return a(() => {
51
+ S(), C();
52
+ }), { isPresent: r(() => ["mounted", "unmountSuspended"].includes(_.value)) };
53
+ }
54
+ function l(e) {
55
+ return e && getComputedStyle(e).animationName || "none";
56
+ }
57
+ //#endregion
58
+ export { c as usePresence };