@orchidui/dashboard 1.8.1-93 → 1.8.1-96

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 (177) hide show
  1. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +295 -0
  2. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +891 -0
  3. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +68 -0
  4. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +172 -0
  5. package/dist/CollapsibleTrigger-fCarY5DJ.js +154 -0
  6. package/dist/Collection-COudIl-A.js +55 -0
  7. package/dist/ConfigProvider-7mV0D7Sp.js +6 -0
  8. package/dist/Dashboard/Card/OcCard.js +1 -1
  9. package/dist/Dashboard/Charts/BarChart/OcBarChart.js +1 -1
  10. package/dist/Dashboard/Charts/BarRaceChart/OcBarRaceChart.js +1 -1
  11. package/dist/Dashboard/Charts/LineChart/OcLineChart.js +1 -1
  12. package/dist/Dashboard/Charts/PieChart/OcPieChart.js +1 -1
  13. package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
  14. package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +68 -0
  15. package/dist/DialogOverlay-Cj3UTjZ8.js +309 -0
  16. package/dist/DialogPortal-zAvO8zt4.js +23 -0
  17. package/dist/DialogTrigger-BIF1A4hk.js +72 -0
  18. package/dist/DismissableLayer-C7IJliOb.js +151 -0
  19. package/dist/FocusScope--pJ6bboI.js +121 -0
  20. package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +92 -0
  21. package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +27 -0
  22. package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +51 -0
  23. package/dist/ListboxItem-CjMk-mEX.js +417 -0
  24. package/dist/MenuSubTrigger-CUrxnPwO.js +845 -0
  25. package/dist/{OcBarChart-CgKo9rAM.js → OcBarChart-DFnF2-u0.js} +2 -2
  26. package/dist/{OcBarRaceChart-D_XrqdiO.js → OcBarRaceChart-B6S4Rrlq.js} +3 -3
  27. package/dist/{OcCard-BpqC7suH.js → OcCard-B3SCzVwn.js} +54 -58
  28. package/dist/OcCodeBlock-CBdVqav7.js +37 -0
  29. package/dist/{OcLineChart-dAL6sRiP.js → OcLineChart-CTDLgo1v.js} +2 -2
  30. package/dist/OcLottieAnimation-DeMoIDaX.js +7747 -0
  31. package/dist/{OcPieChart-Kn-CkXip.js → OcPieChart-NSv6CW-L.js} +4 -4
  32. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +394 -0
  33. package/dist/PopperContent-BT3Svcc3.js +1465 -0
  34. package/dist/Presence-CxfTrw6l.js +133 -0
  35. package/dist/Primitive-B3twiLO1.js +44 -0
  36. package/dist/QuillEditor-hFQ0MJZO.js +9529 -0
  37. package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +297 -0
  38. package/dist/RovingFocusGroup-0OHdFQl0.js +92 -0
  39. package/dist/RovingFocusItem-s7Ug6oxb.js +82 -0
  40. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +1255 -0
  41. package/dist/Separator-DRam5i7g.js +54 -0
  42. package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +27 -0
  43. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +17 -0
  44. package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +135 -0
  45. package/dist/Teleport-DnUewq5H.js +25 -0
  46. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +27 -0
  47. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +426 -0
  48. package/dist/VisuallyHidden-DMAU4heD.js +41 -0
  49. package/dist/VisuallyHiddenInput-DvJnsVHt.js +59 -0
  50. package/dist/_commonjsHelpers-B4e78b8K.js +28 -0
  51. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  52. package/dist/array-CqVTtuYm.js +6 -0
  53. package/dist/arrays-4jDZqbdb.js +20 -0
  54. package/dist/check-C2tzJ0Gk.js +11 -0
  55. package/dist/chevron-down-CnpAlizg.js +13 -0
  56. package/dist/chevron-left-BOwFasou.js +13 -0
  57. package/dist/chevron-right-D308801z.js +13 -0
  58. package/dist/circle-A-6NpYiX.js +13 -0
  59. package/dist/clamp-BL1Rb24G.js +22 -0
  60. package/dist/constant-CuDQlTIy.js +3433 -0
  61. package/dist/createContext-CZEfaSVa.js +17 -0
  62. package/dist/createLucideIcon-eXqDwUWj.js +71 -0
  63. package/dist/ellipsis-CEG9G7eN.js +15 -0
  64. package/dist/getActiveElement-B-HWdUIb.js +11 -0
  65. package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +11 -0
  66. package/dist/index-B3LW8uSH.js +133 -0
  67. package/dist/index-BIlpXuWX.js +3430 -0
  68. package/dist/index-BlGEiPHj.js +1246 -0
  69. package/dist/index-BwPb_idr.js +574 -0
  70. package/dist/index-C9julNQm.js +173 -0
  71. package/dist/index-C_aI-Wfj.js +34 -0
  72. package/dist/index-CumjCvqB.js +5703 -0
  73. package/dist/index-LqWMCtOd.js +809 -0
  74. package/dist/index-OpE2oGce.js +110 -0
  75. package/dist/index.js +14 -14
  76. package/dist/isValueEqualOrExist-BDSMUv8t.js +8 -0
  77. package/dist/lib/utils.js +5 -0
  78. package/dist/nullish-CjWwlQS3.js +6 -0
  79. package/dist/ohash.D__AXeF1-DX2n0b2C.js +106 -0
  80. package/dist/plus-CgluTYQY.js +14 -0
  81. package/dist/text-zwICaAnx.js +743 -0
  82. package/dist/ui/accordion/index.js +7 -0
  83. package/dist/ui/alert/index.js +64 -0
  84. package/dist/ui/alert-dialog/index.js +356 -0
  85. package/dist/ui/aspect-ratio/index.js +50 -0
  86. package/dist/ui/auto-form/constant.js +5 -0
  87. package/dist/ui/auto-form/dependencies.js +61 -0
  88. package/dist/ui/auto-form/index.js +227 -0
  89. package/dist/ui/auto-form/interface.js +4 -0
  90. package/dist/ui/auto-form/utils.js +89 -0
  91. package/dist/ui/avatar/index.js +189 -0
  92. package/dist/ui/badge/index.js +37 -0
  93. package/dist/ui/breadcrumb/index.js +126 -0
  94. package/dist/ui/button/index.js +55 -0
  95. package/dist/ui/calendar/index.js +15 -0
  96. package/dist/ui/card/index.js +38 -0
  97. package/dist/ui/carousel/index.js +174 -0
  98. package/dist/ui/carousel/interface.js +1 -0
  99. package/dist/ui/carousel/useCarousel.js +1288 -0
  100. package/dist/ui/chart/index.js +8 -0
  101. package/dist/ui/chart/interface.js +1 -0
  102. package/dist/ui/chart-area/index.js +331 -0
  103. package/dist/ui/chart-bar/index.js +490 -0
  104. package/dist/ui/chart-donut/index.js +509 -0
  105. package/dist/ui/chart-line/index.js +110 -0
  106. package/dist/ui/checkbox/index.js +4 -0
  107. package/dist/ui/collapsible/index.js +60 -0
  108. package/dist/ui/combobox/index.js +877 -0
  109. package/dist/ui/command/index.js +323 -0
  110. package/dist/ui/context-menu/index.js +734 -0
  111. package/dist/ui/dialog/index.js +169 -0
  112. package/dist/ui/drawer/index.js +971 -0
  113. package/dist/ui/dropdown-menu/index.js +723 -0
  114. package/dist/ui/form/index.js +13 -0
  115. package/dist/ui/form/injectionKeys.js +4 -0
  116. package/dist/ui/form/useFormField.js +25 -0
  117. package/dist/ui/hover-card/index.js +331 -0
  118. package/dist/ui/input/index.js +4 -0
  119. package/dist/ui/label/index.js +4 -0
  120. package/dist/ui/menubar/index.js +862 -0
  121. package/dist/ui/navigation-menu/index.js +873 -0
  122. package/dist/ui/number-field/index.js +682 -0
  123. package/dist/ui/pagination/index.js +444 -0
  124. package/dist/ui/pin-input/index.js +308 -0
  125. package/dist/ui/popover/index.js +6 -0
  126. package/dist/ui/progress/index.js +137 -0
  127. package/dist/ui/radio-group/index.js +5 -0
  128. package/dist/ui/range-calendar/index.js +986 -0
  129. package/dist/ui/resizable/index.js +1432 -0
  130. package/dist/ui/scroll-area/index.js +775 -0
  131. package/dist/ui/select/index.js +135 -0
  132. package/dist/ui/separator/index.js +4 -0
  133. package/dist/ui/sheet/index.js +188 -0
  134. package/dist/ui/sidebar/index.js +652 -0
  135. package/dist/ui/sidebar/utils.js +12 -0
  136. package/dist/ui/skeleton/index.js +4 -0
  137. package/dist/ui/slider/index.js +478 -0
  138. package/dist/ui/sonner/index.js +892 -0
  139. package/dist/ui/stepper/index.js +442 -0
  140. package/dist/ui/switch/index.js +4 -0
  141. package/dist/ui/table/index.js +153 -0
  142. package/dist/ui/tabs/index.js +280 -0
  143. package/dist/ui/tags-input/index.js +449 -0
  144. package/dist/ui/textarea/index.js +4 -0
  145. package/dist/ui/toast/index.js +738 -0
  146. package/dist/ui/toast/use-toast.js +85 -0
  147. package/dist/ui/toggle/index.js +6 -0
  148. package/dist/ui/toggle-group/index.js +112 -0
  149. package/dist/ui/tooltip/index.js +29 -0
  150. package/dist/useArrowNavigation-BRMPveaB.js +49 -0
  151. package/dist/useBodyScrollLock-CazCRZjZ.js +153 -0
  152. package/dist/useDirection-C3C_TLKm.js +14 -0
  153. package/dist/useFocusGuards-CyjC9cG9.js +26 -0
  154. package/dist/useFormControl-CFVC51Lp.js +11 -0
  155. package/dist/useForwardExpose-DZT6mL_U.js +37 -0
  156. package/dist/useForwardPropsEmits-0XKBv1pB.js +33 -0
  157. package/dist/useGraceArea-D7-GP1ii.js +137 -0
  158. package/dist/useId-reAg216X.js +13 -0
  159. package/dist/useKbd-BJNupnml.js +41 -0
  160. package/dist/useLocale-BfU0LC8Z.js +14 -0
  161. package/dist/useNonce-C1ZOgOp5.js +14 -0
  162. package/dist/usePrimitiveElement-BjwUvHih.js +15 -0
  163. package/dist/useSingleOrMultipleValue-BkTAaaJB.js +43 -0
  164. package/dist/useSize-BnyQ8FZF.js +37 -0
  165. package/dist/useTypeahead-oSidjyFF.js +40 -0
  166. package/dist/utils-DKNaYMZh.js +57 -0
  167. package/dist/utils-Dx9la83v.js +35 -0
  168. package/dist/utils-DxQ_ywGa.js +55 -0
  169. package/dist/utils-SFgRDk1R.js +2748 -0
  170. package/dist/utils-W-UiqiPE.js +1869 -0
  171. package/dist/vee-validate-Cf8JDJ_k.js +2232 -0
  172. package/dist/x-Cl6YllUK.js +14 -0
  173. package/package.json +265 -3
  174. package/dist/OcCodeBlock-chTpuRDc.js +0 -63
  175. package/dist/OcLottieAnimation-EBkAB8-y.js +0 -7741
  176. package/dist/QuillEditor-BHWfmp5D.js +0 -9544
  177. /package/dist/{style.css → dashboard.css} +0 -0
@@ -0,0 +1,845 @@
1
+ import { ref as _, onMounted as Ce, defineComponent as P, toRefs as H, createBlock as h, openBlock as b, unref as e, withCtx as y, renderSlot as w, mergeDefaults as he, watch as be, onUnmounted as ae, createVNode as k, mergeProps as B, nextTick as F, withModifiers as X, normalizeProps as T, guardReactiveProps as x, computed as we, watchEffect as Pe } from "vue";
2
+ import { g as _e, e as ne, u as U } from "./index-BwPb_idr.js";
3
+ import { g as se, i as Be, a as E, F as Me, L as Oe, f as Ie, S as Se, I as $e, b as Y, c as q, d as ke, e as De } from "./utils-DxQ_ywGa.js";
4
+ import { u as z } from "./useForwardPropsEmits-0XKBv1pB.js";
5
+ import { u as K } from "./useForwardExpose-DZT6mL_U.js";
6
+ import { a as Fe, u as Te } from "./useBodyScrollLock-CazCRZjZ.js";
7
+ import { P as J } from "./Presence-CxfTrw6l.js";
8
+ import { P as V } from "./Primitive-B3twiLO1.js";
9
+ import { _ as Re } from "./Teleport-DnUewq5H.js";
10
+ import { c as R } from "./createContext-CZEfaSVa.js";
11
+ import { u as ie } from "./useId-reAg216X.js";
12
+ import { _ as re, a as Ee, P as Ke, b as Ve } from "./PopperContent-BT3Svcc3.js";
13
+ import { u as Ae } from "./Collection-COudIl-A.js";
14
+ import { u as Le } from "./useDirection-C3C_TLKm.js";
15
+ import { u as Ge } from "./useFocusGuards-CyjC9cG9.js";
16
+ import { u as xe } from "./useTypeahead-oSidjyFF.js";
17
+ import { _ as Ue } from "./FocusScope--pJ6bboI.js";
18
+ import { _ as ze } from "./DismissableLayer-C7IJliOb.js";
19
+ import { _ as je } from "./RovingFocusGroup-0OHdFQl0.js";
20
+ import { u as Ne } from "./useArrowNavigation-BRMPveaB.js";
21
+ import { g as We } from "./getActiveElement-B-HWdUIb.js";
22
+ function Xe() {
23
+ const r = _(!1);
24
+ return Ce(() => {
25
+ ne("keydown", () => {
26
+ r.value = !0;
27
+ }, { capture: !0, passive: !0 }), ne(["pointerdown", "pointermove"], () => {
28
+ r.value = !1;
29
+ }, { capture: !0, passive: !0 });
30
+ }), r;
31
+ }
32
+ const Ye = _e(Xe), [D, le] = R(["MenuRoot", "MenuSub"], "MenuContext"), [A, He] = R("MenuRoot"), Ot = /* @__PURE__ */ P({
33
+ __name: "MenuRoot",
34
+ props: {
35
+ open: { type: Boolean, default: !1 },
36
+ dir: {},
37
+ modal: { type: Boolean, default: !0 }
38
+ },
39
+ emits: ["update:open"],
40
+ setup(r, { emit: i }) {
41
+ const o = r, c = i, { modal: s, dir: n } = H(o), p = Le(n), l = U(o, "open", c), a = _(), C = Ye();
42
+ return le({
43
+ open: l,
44
+ onOpenChange: (m) => {
45
+ l.value = m;
46
+ },
47
+ content: a,
48
+ onContentChange: (m) => {
49
+ a.value = m;
50
+ }
51
+ }), He({
52
+ onClose: () => {
53
+ l.value = !1;
54
+ },
55
+ isUsingKeyboardRef: C,
56
+ dir: p,
57
+ modal: s
58
+ }), (m, d) => (b(), h(e(re), null, {
59
+ default: y(() => [
60
+ w(m.$slots, "default")
61
+ ]),
62
+ _: 3
63
+ }));
64
+ }
65
+ }), [Q, qe] = R("MenuContent"), Z = /* @__PURE__ */ P({
66
+ __name: "MenuContentImpl",
67
+ props: /* @__PURE__ */ he({
68
+ loop: { type: Boolean },
69
+ disableOutsidePointerEvents: { type: Boolean },
70
+ disableOutsideScroll: { type: Boolean },
71
+ trapFocus: { type: Boolean },
72
+ side: {},
73
+ sideOffset: {},
74
+ align: {},
75
+ alignOffset: {},
76
+ avoidCollisions: { type: Boolean },
77
+ collisionBoundary: {},
78
+ collisionPadding: {},
79
+ arrowPadding: {},
80
+ sticky: {},
81
+ hideWhenDetached: { type: Boolean },
82
+ positionStrategy: {},
83
+ updatePositionStrategy: {},
84
+ disableUpdateOnLayoutShift: { type: Boolean },
85
+ prioritizePosition: { type: Boolean },
86
+ reference: {},
87
+ asChild: { type: Boolean },
88
+ as: {}
89
+ }, {
90
+ ...Ke
91
+ }),
92
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus", "dismiss"],
93
+ setup(r, { emit: i }) {
94
+ const o = r, c = i, s = D(), n = A(), { trapFocus: p, disableOutsidePointerEvents: l, loop: a } = H(o);
95
+ Ge(), Fe(l.value);
96
+ const C = _(""), m = _(0), d = _(0), u = _(null), g = _("right"), M = _(0), O = _(null), I = _(), { forwardRef: j, currentElement: S } = K(), { handleTypeaheadSearch: L } = xe();
97
+ be(S, (t) => {
98
+ s.onContentChange(t);
99
+ }), ae(() => {
100
+ window.clearTimeout(m.value);
101
+ });
102
+ function N(t) {
103
+ var v, $;
104
+ return g.value === ((v = u.value) == null ? void 0 : v.side) && Be(t, ($ = u.value) == null ? void 0 : $.area);
105
+ }
106
+ async function fe(t) {
107
+ var f;
108
+ c("openAutoFocus", t), !t.defaultPrevented && (t.preventDefault(), (f = S.value) == null || f.focus({
109
+ preventScroll: !0
110
+ }));
111
+ }
112
+ function me(t) {
113
+ var oe;
114
+ if (t.defaultPrevented)
115
+ return;
116
+ const v = t.target.closest("[data-reka-menu-content]") === t.currentTarget, $ = t.ctrlKey || t.altKey || t.metaKey, W = t.key.length === 1, G = Ne(
117
+ t,
118
+ We(),
119
+ S.value,
120
+ {
121
+ loop: a.value,
122
+ arrowKeyOptions: "vertical",
123
+ dir: n == null ? void 0 : n.dir.value,
124
+ focus: !0,
125
+ attributeName: "[data-reka-collection-item]:not([data-disabled])"
126
+ }
127
+ );
128
+ if (G)
129
+ return G == null ? void 0 : G.focus();
130
+ if (t.code === "Space")
131
+ return;
132
+ const ee = ((oe = I.value) == null ? void 0 : oe.getItems()) ?? [];
133
+ if (v && (t.key === "Tab" && t.preventDefault(), !$ && W && L(t.key, ee)), t.target !== S.value || !Me.includes(t.key))
134
+ return;
135
+ t.preventDefault();
136
+ const te = [...ee.map((ve) => ve.ref)];
137
+ Oe.includes(t.key) && te.reverse(), Ie(te);
138
+ }
139
+ function ye(t) {
140
+ var f, v;
141
+ (v = (f = t == null ? void 0 : t.currentTarget) == null ? void 0 : f.contains) != null && v.call(f, t.target) || (window.clearTimeout(m.value), C.value = "");
142
+ }
143
+ function ge(t) {
144
+ var $;
145
+ if (!E(t))
146
+ return;
147
+ const f = t.target, v = M.value !== t.clientX;
148
+ if (($ = t == null ? void 0 : t.currentTarget) != null && $.contains(f) && v) {
149
+ const W = t.clientX > M.value ? "right" : "left";
150
+ g.value = W, M.value = t.clientX;
151
+ }
152
+ }
153
+ return qe({
154
+ onItemEnter: (t) => !!N(t),
155
+ onItemLeave: (t) => {
156
+ var f;
157
+ N(t) || ((f = S.value) == null || f.focus(), O.value = null);
158
+ },
159
+ onTriggerLeave: (t) => !!N(t),
160
+ searchRef: C,
161
+ pointerGraceTimerRef: d,
162
+ onPointerGraceIntentChange: (t) => {
163
+ u.value = t;
164
+ }
165
+ }), (t, f) => (b(), h(e(Ue), {
166
+ "as-child": "",
167
+ trapped: e(p),
168
+ onMountAutoFocus: fe,
169
+ onUnmountAutoFocus: f[7] || (f[7] = (v) => c("closeAutoFocus", v))
170
+ }, {
171
+ default: y(() => [
172
+ k(e(ze), {
173
+ "as-child": "",
174
+ "disable-outside-pointer-events": e(l),
175
+ onEscapeKeyDown: f[2] || (f[2] = (v) => c("escapeKeyDown", v)),
176
+ onPointerDownOutside: f[3] || (f[3] = (v) => c("pointerDownOutside", v)),
177
+ onFocusOutside: f[4] || (f[4] = (v) => c("focusOutside", v)),
178
+ onInteractOutside: f[5] || (f[5] = (v) => c("interactOutside", v)),
179
+ onDismiss: f[6] || (f[6] = (v) => c("dismiss"))
180
+ }, {
181
+ default: y(() => [
182
+ k(e(je), {
183
+ ref_key: "rovingFocusGroupRef",
184
+ ref: I,
185
+ "current-tab-stop-id": O.value,
186
+ "onUpdate:currentTabStopId": f[0] || (f[0] = (v) => O.value = v),
187
+ "as-child": "",
188
+ orientation: "vertical",
189
+ dir: e(n).dir.value,
190
+ loop: e(a),
191
+ onEntryFocus: f[1] || (f[1] = (v) => {
192
+ c("entryFocus", v), e(n).isUsingKeyboardRef.value || v.preventDefault();
193
+ })
194
+ }, {
195
+ default: y(() => [
196
+ k(e(Ee), {
197
+ ref: e(j),
198
+ role: "menu",
199
+ as: t.as,
200
+ "as-child": t.asChild,
201
+ "aria-orientation": "vertical",
202
+ "data-reka-menu-content": "",
203
+ "data-state": e(se)(e(s).open.value),
204
+ dir: e(n).dir.value,
205
+ side: t.side,
206
+ "side-offset": t.sideOffset,
207
+ align: t.align,
208
+ "align-offset": t.alignOffset,
209
+ "avoid-collisions": t.avoidCollisions,
210
+ "collision-boundary": t.collisionBoundary,
211
+ "collision-padding": t.collisionPadding,
212
+ "arrow-padding": t.arrowPadding,
213
+ "prioritize-position": t.prioritizePosition,
214
+ "position-strategy": t.positionStrategy,
215
+ "update-position-strategy": t.updatePositionStrategy,
216
+ sticky: t.sticky,
217
+ "hide-when-detached": t.hideWhenDetached,
218
+ reference: t.reference,
219
+ onKeydown: me,
220
+ onBlur: ye,
221
+ onPointermove: ge
222
+ }, {
223
+ default: y(() => [
224
+ w(t.$slots, "default")
225
+ ]),
226
+ _: 3
227
+ }, 8, ["as", "as-child", "data-state", "dir", "side", "side-offset", "align", "align-offset", "avoid-collisions", "collision-boundary", "collision-padding", "arrow-padding", "prioritize-position", "position-strategy", "update-position-strategy", "sticky", "hide-when-detached", "reference"])
228
+ ]),
229
+ _: 3
230
+ }, 8, ["current-tab-stop-id", "dir", "loop"])
231
+ ]),
232
+ _: 3
233
+ }, 8, ["disable-outside-pointer-events"])
234
+ ]),
235
+ _: 3
236
+ }, 8, ["trapped"]));
237
+ }
238
+ }), ue = /* @__PURE__ */ P({
239
+ inheritAttrs: !1,
240
+ __name: "MenuItemImpl",
241
+ props: {
242
+ disabled: { type: Boolean },
243
+ textValue: {},
244
+ asChild: { type: Boolean },
245
+ as: {}
246
+ },
247
+ setup(r) {
248
+ const i = r, o = Q(), { forwardRef: c } = K(), { CollectionItem: s } = Ae(), n = _(!1);
249
+ async function p(a) {
250
+ if (!a.defaultPrevented && E(a)) {
251
+ if (i.disabled)
252
+ o.onItemLeave(a);
253
+ else if (!o.onItemEnter(a)) {
254
+ const m = a.currentTarget;
255
+ m == null || m.focus({ preventScroll: !0 });
256
+ }
257
+ }
258
+ }
259
+ async function l(a) {
260
+ await F(), !a.defaultPrevented && E(a) && o.onItemLeave(a);
261
+ }
262
+ return (a, C) => (b(), h(e(s), {
263
+ value: { textValue: a.textValue }
264
+ }, {
265
+ default: y(() => [
266
+ k(e(V), B({
267
+ ref: e(c),
268
+ role: "menuitem",
269
+ tabindex: "-1"
270
+ }, a.$attrs, {
271
+ as: a.as,
272
+ "as-child": a.asChild,
273
+ "aria-disabled": a.disabled || void 0,
274
+ "data-disabled": a.disabled ? "" : void 0,
275
+ "data-highlighted": n.value ? "" : void 0,
276
+ onPointermove: p,
277
+ onPointerleave: l,
278
+ onFocus: C[0] || (C[0] = async (m) => {
279
+ await F(), !(m.defaultPrevented || a.disabled) && (n.value = !0);
280
+ }),
281
+ onBlur: C[1] || (C[1] = async (m) => {
282
+ await F(), !m.defaultPrevented && (n.value = !1);
283
+ })
284
+ }), {
285
+ default: y(() => [
286
+ w(a.$slots, "default")
287
+ ]),
288
+ _: 3
289
+ }, 16, ["as", "as-child", "aria-disabled", "data-disabled", "data-highlighted"])
290
+ ]),
291
+ _: 3
292
+ }, 8, ["value"]));
293
+ }
294
+ }), de = /* @__PURE__ */ P({
295
+ __name: "MenuItem",
296
+ props: {
297
+ disabled: { type: Boolean },
298
+ textValue: {},
299
+ asChild: { type: Boolean },
300
+ as: {}
301
+ },
302
+ emits: ["select"],
303
+ setup(r, { emit: i }) {
304
+ const o = r, c = i, { forwardRef: s, currentElement: n } = K(), p = A(), l = Q(), a = _(!1);
305
+ async function C() {
306
+ const m = n.value;
307
+ if (!o.disabled && m) {
308
+ const d = new CustomEvent($e, {
309
+ bubbles: !0,
310
+ cancelable: !0
311
+ });
312
+ c("select", d), await F(), d.defaultPrevented ? a.value = !1 : p.onClose();
313
+ }
314
+ }
315
+ return (m, d) => (b(), h(ue, B(o, {
316
+ ref: e(s),
317
+ onClick: C,
318
+ onPointerdown: d[0] || (d[0] = () => {
319
+ a.value = !0;
320
+ }),
321
+ onPointerup: d[1] || (d[1] = async (u) => {
322
+ var g;
323
+ await F(), !u.defaultPrevented && (a.value || (g = u.currentTarget) == null || g.click());
324
+ }),
325
+ onKeydown: d[2] || (d[2] = async (u) => {
326
+ const g = e(l).searchRef.value !== "";
327
+ m.disabled || g && u.key === " " || e(Se).includes(u.key) && (u.currentTarget.click(), u.preventDefault());
328
+ })
329
+ }), {
330
+ default: y(() => [
331
+ w(m.$slots, "default")
332
+ ]),
333
+ _: 3
334
+ }, 16));
335
+ }
336
+ }), [Je, ce] = R(
337
+ ["MenuCheckboxItem", "MenuRadioItem"],
338
+ "MenuItemIndicatorContext"
339
+ ), It = /* @__PURE__ */ P({
340
+ __name: "MenuItemIndicator",
341
+ props: {
342
+ forceMount: { type: Boolean },
343
+ asChild: { type: Boolean },
344
+ as: { default: "span" }
345
+ },
346
+ setup(r) {
347
+ const i = Je({
348
+ modelValue: _(!1)
349
+ });
350
+ return (o, c) => (b(), h(e(J), {
351
+ present: o.forceMount || e(Y)(e(i).modelValue.value) || e(i).modelValue.value === !0
352
+ }, {
353
+ default: y(() => [
354
+ k(e(V), {
355
+ as: o.as,
356
+ "as-child": o.asChild,
357
+ "data-state": e(q)(e(i).modelValue.value)
358
+ }, {
359
+ default: y(() => [
360
+ w(o.$slots, "default")
361
+ ]),
362
+ _: 3
363
+ }, 8, ["as", "as-child", "data-state"])
364
+ ]),
365
+ _: 3
366
+ }, 8, ["present"]));
367
+ }
368
+ }), St = /* @__PURE__ */ P({
369
+ __name: "MenuCheckboxItem",
370
+ props: {
371
+ modelValue: { type: [Boolean, String], default: !1 },
372
+ disabled: { type: Boolean },
373
+ textValue: {},
374
+ asChild: { type: Boolean },
375
+ as: {}
376
+ },
377
+ emits: ["select", "update:modelValue"],
378
+ setup(r, { emit: i }) {
379
+ const o = r, c = i, s = U(o, "modelValue", c);
380
+ return ce({ modelValue: s }), (n, p) => (b(), h(de, B({ role: "menuitemcheckbox" }, o, {
381
+ "aria-checked": e(Y)(e(s)) ? "mixed" : e(s),
382
+ "data-state": e(q)(e(s)),
383
+ onSelect: p[0] || (p[0] = async (l) => {
384
+ c("select", l), e(Y)(e(s)) ? s.value = !0 : s.value = !e(s);
385
+ })
386
+ }), {
387
+ default: y(() => [
388
+ w(n.$slots, "default", { modelValue: e(s) })
389
+ ]),
390
+ _: 3
391
+ }, 16, ["aria-checked", "data-state"]));
392
+ }
393
+ }), Qe = /* @__PURE__ */ P({
394
+ __name: "MenuRootContentModal",
395
+ props: {
396
+ loop: { type: Boolean },
397
+ side: {},
398
+ sideOffset: {},
399
+ align: {},
400
+ alignOffset: {},
401
+ avoidCollisions: { type: Boolean },
402
+ collisionBoundary: {},
403
+ collisionPadding: {},
404
+ arrowPadding: {},
405
+ sticky: {},
406
+ hideWhenDetached: { type: Boolean },
407
+ positionStrategy: {},
408
+ updatePositionStrategy: {},
409
+ disableUpdateOnLayoutShift: { type: Boolean },
410
+ prioritizePosition: { type: Boolean },
411
+ reference: {},
412
+ asChild: { type: Boolean },
413
+ as: {}
414
+ },
415
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
416
+ setup(r, { emit: i }) {
417
+ const o = r, c = i, s = z(o, c), n = D(), { forwardRef: p, currentElement: l } = K();
418
+ return Te(l), (a, C) => (b(), h(Z, B(e(s), {
419
+ ref: e(p),
420
+ "trap-focus": e(n).open.value,
421
+ "disable-outside-pointer-events": e(n).open.value,
422
+ "disable-outside-scroll": !0,
423
+ onDismiss: C[0] || (C[0] = (m) => e(n).onOpenChange(!1)),
424
+ onFocusOutside: C[1] || (C[1] = X((m) => c("focusOutside", m), ["prevent"]))
425
+ }), {
426
+ default: y(() => [
427
+ w(a.$slots, "default")
428
+ ]),
429
+ _: 3
430
+ }, 16, ["trap-focus", "disable-outside-pointer-events"]));
431
+ }
432
+ }), Ze = /* @__PURE__ */ P({
433
+ __name: "MenuRootContentNonModal",
434
+ props: {
435
+ loop: { type: Boolean },
436
+ side: {},
437
+ sideOffset: {},
438
+ align: {},
439
+ alignOffset: {},
440
+ avoidCollisions: { type: Boolean },
441
+ collisionBoundary: {},
442
+ collisionPadding: {},
443
+ arrowPadding: {},
444
+ sticky: {},
445
+ hideWhenDetached: { type: Boolean },
446
+ positionStrategy: {},
447
+ updatePositionStrategy: {},
448
+ disableUpdateOnLayoutShift: { type: Boolean },
449
+ prioritizePosition: { type: Boolean },
450
+ reference: {},
451
+ asChild: { type: Boolean },
452
+ as: {}
453
+ },
454
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
455
+ setup(r, { emit: i }) {
456
+ const s = z(r, i), n = D();
457
+ return (p, l) => (b(), h(Z, B(e(s), {
458
+ "trap-focus": !1,
459
+ "disable-outside-pointer-events": !1,
460
+ "disable-outside-scroll": !1,
461
+ onDismiss: l[0] || (l[0] = (a) => e(n).onOpenChange(!1))
462
+ }), {
463
+ default: y(() => [
464
+ w(p.$slots, "default")
465
+ ]),
466
+ _: 3
467
+ }, 16));
468
+ }
469
+ }), $t = /* @__PURE__ */ P({
470
+ __name: "MenuContent",
471
+ props: {
472
+ forceMount: { type: Boolean },
473
+ loop: { type: Boolean },
474
+ side: {},
475
+ sideOffset: {},
476
+ align: {},
477
+ alignOffset: {},
478
+ avoidCollisions: { type: Boolean },
479
+ collisionBoundary: {},
480
+ collisionPadding: {},
481
+ arrowPadding: {},
482
+ sticky: {},
483
+ hideWhenDetached: { type: Boolean },
484
+ positionStrategy: {},
485
+ updatePositionStrategy: {},
486
+ disableUpdateOnLayoutShift: { type: Boolean },
487
+ prioritizePosition: { type: Boolean },
488
+ reference: {},
489
+ asChild: { type: Boolean },
490
+ as: {}
491
+ },
492
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
493
+ setup(r, { emit: i }) {
494
+ const s = z(r, i), n = D(), p = A();
495
+ return (l, a) => (b(), h(e(J), {
496
+ present: l.forceMount || e(n).open.value
497
+ }, {
498
+ default: y(() => [
499
+ e(p).modal.value ? (b(), h(Qe, T(B({ key: 0 }, { ...l.$attrs, ...e(s) })), {
500
+ default: y(() => [
501
+ w(l.$slots, "default")
502
+ ]),
503
+ _: 3
504
+ }, 16)) : (b(), h(Ze, T(B({ key: 1 }, { ...l.$attrs, ...e(s) })), {
505
+ default: y(() => [
506
+ w(l.$slots, "default")
507
+ ]),
508
+ _: 3
509
+ }, 16))
510
+ ]),
511
+ _: 3
512
+ }, 8, ["present"]));
513
+ }
514
+ }), et = /* @__PURE__ */ P({
515
+ __name: "MenuGroup",
516
+ props: {
517
+ asChild: { type: Boolean },
518
+ as: {}
519
+ },
520
+ setup(r) {
521
+ const i = r;
522
+ return (o, c) => (b(), h(e(V), B({ role: "group" }, i), {
523
+ default: y(() => [
524
+ w(o.$slots, "default")
525
+ ]),
526
+ _: 3
527
+ }, 16));
528
+ }
529
+ }), kt = /* @__PURE__ */ P({
530
+ __name: "MenuLabel",
531
+ props: {
532
+ asChild: { type: Boolean },
533
+ as: { default: "div" }
534
+ },
535
+ setup(r) {
536
+ const i = r;
537
+ return (o, c) => (b(), h(e(V), T(x(i)), {
538
+ default: y(() => [
539
+ w(o.$slots, "default")
540
+ ]),
541
+ _: 3
542
+ }, 16));
543
+ }
544
+ }), Dt = /* @__PURE__ */ P({
545
+ __name: "MenuPortal",
546
+ props: {
547
+ to: {},
548
+ disabled: { type: Boolean },
549
+ defer: { type: Boolean },
550
+ forceMount: { type: Boolean }
551
+ },
552
+ setup(r) {
553
+ const i = r;
554
+ return (o, c) => (b(), h(e(Re), T(x(i)), {
555
+ default: y(() => [
556
+ w(o.$slots, "default")
557
+ ]),
558
+ _: 3
559
+ }, 16));
560
+ }
561
+ }), [tt, ot] = R("MenuRadioGroup"), Ft = /* @__PURE__ */ P({
562
+ __name: "MenuRadioGroup",
563
+ props: {
564
+ modelValue: { default: "" },
565
+ asChild: { type: Boolean },
566
+ as: {}
567
+ },
568
+ emits: ["update:modelValue"],
569
+ setup(r, { emit: i }) {
570
+ const o = r, s = U(o, "modelValue", i);
571
+ return ot({
572
+ modelValue: s,
573
+ onValueChange: (n) => {
574
+ s.value = n;
575
+ }
576
+ }), (n, p) => (b(), h(et, T(x(o)), {
577
+ default: y(() => [
578
+ w(n.$slots, "default", { modelValue: e(s) })
579
+ ]),
580
+ _: 3
581
+ }, 16));
582
+ }
583
+ }), Tt = /* @__PURE__ */ P({
584
+ __name: "MenuRadioItem",
585
+ props: {
586
+ value: {},
587
+ disabled: { type: Boolean },
588
+ textValue: {},
589
+ asChild: { type: Boolean },
590
+ as: {}
591
+ },
592
+ emits: ["select"],
593
+ setup(r, { emit: i }) {
594
+ const o = r, c = i, { value: s } = H(o), n = tt(), p = we(
595
+ () => n.modelValue.value === (s == null ? void 0 : s.value)
596
+ );
597
+ return ce({ modelValue: p }), (l, a) => (b(), h(de, B({ role: "menuitemradio" }, o, {
598
+ "aria-checked": p.value,
599
+ "data-state": e(q)(p.value),
600
+ onSelect: a[0] || (a[0] = async (C) => {
601
+ c("select", C), e(n).onValueChange(e(s));
602
+ })
603
+ }), {
604
+ default: y(() => [
605
+ w(l.$slots, "default")
606
+ ]),
607
+ _: 3
608
+ }, 16, ["aria-checked", "data-state"]));
609
+ }
610
+ }), Rt = /* @__PURE__ */ P({
611
+ __name: "MenuSeparator",
612
+ props: {
613
+ asChild: { type: Boolean },
614
+ as: {}
615
+ },
616
+ setup(r) {
617
+ const i = r;
618
+ return (o, c) => (b(), h(e(V), B(i, {
619
+ role: "separator",
620
+ "aria-orientation": "horizontal"
621
+ }), {
622
+ default: y(() => [
623
+ w(o.$slots, "default")
624
+ ]),
625
+ _: 3
626
+ }, 16));
627
+ }
628
+ }), [pe, nt] = R("MenuSub"), Et = /* @__PURE__ */ P({
629
+ __name: "MenuSub",
630
+ props: {
631
+ open: { type: Boolean, default: void 0 }
632
+ },
633
+ emits: ["update:open"],
634
+ setup(r, { emit: i }) {
635
+ const o = r, s = U(o, "open", i, {
636
+ defaultValue: !1,
637
+ passive: o.open === void 0
638
+ }), n = D(), p = _(), l = _();
639
+ return Pe((a) => {
640
+ (n == null ? void 0 : n.open.value) === !1 && (s.value = !1), a(() => s.value = !1);
641
+ }), le({
642
+ open: s,
643
+ onOpenChange: (a) => {
644
+ s.value = a;
645
+ },
646
+ content: l,
647
+ onContentChange: (a) => {
648
+ l.value = a;
649
+ }
650
+ }), nt({
651
+ triggerId: "",
652
+ contentId: "",
653
+ trigger: p,
654
+ onTriggerChange: (a) => {
655
+ p.value = a;
656
+ }
657
+ }), (a, C) => (b(), h(e(re), null, {
658
+ default: y(() => [
659
+ w(a.$slots, "default")
660
+ ]),
661
+ _: 3
662
+ }));
663
+ }
664
+ }), Kt = /* @__PURE__ */ P({
665
+ __name: "MenuSubContent",
666
+ props: {
667
+ forceMount: { type: Boolean },
668
+ loop: { type: Boolean },
669
+ sideOffset: {},
670
+ alignOffset: {},
671
+ avoidCollisions: { type: Boolean },
672
+ collisionBoundary: {},
673
+ collisionPadding: {},
674
+ arrowPadding: {},
675
+ sticky: {},
676
+ hideWhenDetached: { type: Boolean },
677
+ positionStrategy: {},
678
+ updatePositionStrategy: {},
679
+ disableUpdateOnLayoutShift: { type: Boolean },
680
+ prioritizePosition: { type: Boolean, default: !0 },
681
+ reference: {},
682
+ asChild: { type: Boolean },
683
+ as: {}
684
+ },
685
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
686
+ setup(r, { emit: i }) {
687
+ const s = z(r, i), n = D(), p = A(), l = pe(), { forwardRef: a, currentElement: C } = K();
688
+ return l.contentId || (l.contentId = ie(void 0, "reka-menu-sub-content")), (m, d) => (b(), h(e(J), {
689
+ present: m.forceMount || e(n).open.value
690
+ }, {
691
+ default: y(() => [
692
+ k(Z, B(e(s), {
693
+ id: e(l).contentId,
694
+ ref: e(a),
695
+ "aria-labelledby": e(l).triggerId,
696
+ align: "start",
697
+ side: e(p).dir.value === "rtl" ? "left" : "right",
698
+ "disable-outside-pointer-events": !1,
699
+ "disable-outside-scroll": !1,
700
+ "trap-focus": !1,
701
+ onOpenAutoFocus: d[0] || (d[0] = X((u) => {
702
+ var g;
703
+ e(p).isUsingKeyboardRef.value && ((g = e(C)) == null || g.focus());
704
+ }, ["prevent"])),
705
+ onCloseAutoFocus: d[1] || (d[1] = X(() => {
706
+ }, ["prevent"])),
707
+ onFocusOutside: d[2] || (d[2] = (u) => {
708
+ u.defaultPrevented || u.target !== e(l).trigger.value && e(n).onOpenChange(!1);
709
+ }),
710
+ onEscapeKeyDown: d[3] || (d[3] = (u) => {
711
+ e(p).onClose(), u.preventDefault();
712
+ }),
713
+ onKeydown: d[4] || (d[4] = (u) => {
714
+ var O, I;
715
+ const g = (O = u.currentTarget) == null ? void 0 : O.contains(u.target), M = e(ke)[e(p).dir.value].includes(u.key);
716
+ g && M && (e(n).onOpenChange(!1), (I = e(l).trigger.value) == null || I.focus(), u.preventDefault());
717
+ })
718
+ }), {
719
+ default: y(() => [
720
+ w(m.$slots, "default")
721
+ ]),
722
+ _: 3
723
+ }, 16, ["id", "aria-labelledby", "side"])
724
+ ]),
725
+ _: 3
726
+ }, 8, ["present"]));
727
+ }
728
+ }), at = /* @__PURE__ */ P({
729
+ __name: "MenuAnchor",
730
+ props: {
731
+ reference: {},
732
+ asChild: { type: Boolean },
733
+ as: {}
734
+ },
735
+ setup(r) {
736
+ const i = r;
737
+ return (o, c) => (b(), h(e(Ve), T(x(i)), {
738
+ default: y(() => [
739
+ w(o.$slots, "default")
740
+ ]),
741
+ _: 3
742
+ }, 16));
743
+ }
744
+ }), Vt = /* @__PURE__ */ P({
745
+ __name: "MenuSubTrigger",
746
+ props: {
747
+ disabled: { type: Boolean },
748
+ textValue: {},
749
+ asChild: { type: Boolean },
750
+ as: {}
751
+ },
752
+ setup(r) {
753
+ const i = r, o = D(), c = A(), s = pe(), n = Q(), p = _(null);
754
+ s.triggerId || (s.triggerId = ie(void 0, "reka-menu-sub-trigger"));
755
+ function l() {
756
+ p.value && window.clearTimeout(p.value), p.value = null;
757
+ }
758
+ ae(() => {
759
+ l();
760
+ });
761
+ function a(d) {
762
+ !E(d) || n.onItemEnter(d) || !i.disabled && !o.open.value && !p.value && (n.onPointerGraceIntentChange(null), p.value = window.setTimeout(() => {
763
+ o.onOpenChange(!0), l();
764
+ }, 100));
765
+ }
766
+ async function C(d) {
767
+ var g, M;
768
+ if (!E(d))
769
+ return;
770
+ l();
771
+ const u = (g = o.content.value) == null ? void 0 : g.getBoundingClientRect();
772
+ if (u != null && u.width) {
773
+ const O = (M = o.content.value) == null ? void 0 : M.dataset.side, I = O === "right", j = I ? -5 : 5, S = u[I ? "left" : "right"], L = u[I ? "right" : "left"];
774
+ n.onPointerGraceIntentChange({
775
+ area: [
776
+ // Apply a bleed on clientX to ensure that our exit point is
777
+ // consistently within polygon bounds
778
+ { x: d.clientX + j, y: d.clientY },
779
+ { x: S, y: u.top },
780
+ { x: L, y: u.top },
781
+ { x: L, y: u.bottom },
782
+ { x: S, y: u.bottom }
783
+ ],
784
+ side: O
785
+ }), window.clearTimeout(n.pointerGraceTimerRef.value), n.pointerGraceTimerRef.value = window.setTimeout(
786
+ () => n.onPointerGraceIntentChange(null),
787
+ 300
788
+ );
789
+ } else {
790
+ if (n.onTriggerLeave(d))
791
+ return;
792
+ n.onPointerGraceIntentChange(null);
793
+ }
794
+ }
795
+ async function m(d) {
796
+ var g;
797
+ const u = n.searchRef.value !== "";
798
+ i.disabled || u && d.key === " " || De[c.dir.value].includes(d.key) && (o.onOpenChange(!0), await F(), (g = o.content.value) == null || g.focus(), d.preventDefault());
799
+ }
800
+ return (d, u) => (b(), h(at, { "as-child": "" }, {
801
+ default: y(() => [
802
+ k(ue, B(i, {
803
+ id: e(s).triggerId,
804
+ ref: (g) => {
805
+ var M;
806
+ (M = e(s)) == null || M.onTriggerChange(g == null ? void 0 : g.$el);
807
+ },
808
+ "aria-haspopup": "menu",
809
+ "aria-expanded": e(o).open.value,
810
+ "aria-controls": e(s).contentId,
811
+ "data-state": e(se)(e(o).open.value),
812
+ onClick: u[0] || (u[0] = async (g) => {
813
+ i.disabled || g.defaultPrevented || (g.currentTarget.focus(), e(o).open.value || e(o).onOpenChange(!0));
814
+ }),
815
+ onPointermove: a,
816
+ onPointerleave: C,
817
+ onKeydown: m
818
+ }), {
819
+ default: y(() => [
820
+ w(d.$slots, "default")
821
+ ]),
822
+ _: 3
823
+ }, 16, ["id", "aria-expanded", "aria-controls", "data-state"])
824
+ ]),
825
+ _: 3
826
+ }));
827
+ }
828
+ });
829
+ export {
830
+ St as _,
831
+ Ot as a,
832
+ $t as b,
833
+ et as c,
834
+ de as d,
835
+ It as e,
836
+ kt as f,
837
+ Dt as g,
838
+ Ft as h,
839
+ Tt as i,
840
+ Rt as j,
841
+ Et as k,
842
+ Kt as l,
843
+ Vt as m,
844
+ at as n
845
+ };