@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,723 @@
1
+ import { defineComponent as p, createBlock as u, openBlock as d, unref as e, normalizeProps as f, guardReactiveProps as _, withCtx as i, renderSlot as c, ref as S, toRefs as z, isRef as x, mergeProps as g, onMounted as T, createVNode as v, withKeys as K, nextTick as L, createElementVNode as F, createElementBlock as G, normalizeClass as U } from "vue";
2
+ import { b as k, u as w, a as M } from "../../useForwardPropsEmits-0XKBv1pB.js";
3
+ import { u as I } from "../../index-BwPb_idr.js";
4
+ import { _ as W, a as N, b as q, c as H, d as J, e as Q, f as X, g as Y, h as Z, i as ee, j as oe, k as te, l as se, m as ne, n as ae } from "../../MenuSubTrigger-CUrxnPwO.js";
5
+ import { c as re } from "../../createContext-CZEfaSVa.js";
6
+ import { u as y } from "../../useForwardExpose-DZT6mL_U.js";
7
+ import { u as ie } from "../../useDirection-C3C_TLKm.js";
8
+ import { c as B } from "../../utils-SFgRDk1R.js";
9
+ import { C as le } from "../../check-C2tzJ0Gk.js";
10
+ import { r as $ } from "../../index-OpE2oGce.js";
11
+ import { u as V } from "../../useId-reAg216X.js";
12
+ import { C as pe } from "../../circle-A-6NpYiX.js";
13
+ import { C as de } from "../../chevron-right-D308801z.js";
14
+ import { P as ue } from "../../Primitive-B3twiLO1.js";
15
+ const ce = /* @__PURE__ */ p({
16
+ __name: "DropdownMenuCheckboxItem",
17
+ props: {
18
+ modelValue: { type: [Boolean, String] },
19
+ disabled: { type: Boolean },
20
+ textValue: {},
21
+ asChild: { type: Boolean },
22
+ as: {}
23
+ },
24
+ emits: ["select", "update:modelValue"],
25
+ setup(s, { emit: t }) {
26
+ const o = s, n = k(t);
27
+ return y(), (a, l) => (d(), u(e(W), f(_({ ...o, ...e(n) })), {
28
+ default: i(() => [
29
+ c(a.$slots, "default")
30
+ ]),
31
+ _: 3
32
+ }, 16));
33
+ }
34
+ }), [R, me] = re("DropdownMenuRoot"), fe = /* @__PURE__ */ p({
35
+ __name: "DropdownMenuRoot",
36
+ props: {
37
+ defaultOpen: { type: Boolean },
38
+ open: { type: Boolean, default: void 0 },
39
+ dir: {},
40
+ modal: { type: Boolean, default: !0 }
41
+ },
42
+ emits: ["update:open"],
43
+ setup(s, { emit: t }) {
44
+ const o = s, r = t;
45
+ y();
46
+ const n = I(o, "open", r, {
47
+ defaultValue: o.defaultOpen,
48
+ passive: o.open === void 0
49
+ }), a = S(), { modal: l, dir: m } = z(o), h = ie(m);
50
+ return me({
51
+ open: n,
52
+ onOpenChange: (b) => {
53
+ n.value = b;
54
+ },
55
+ onOpenToggle: () => {
56
+ n.value = !n.value;
57
+ },
58
+ triggerId: "",
59
+ triggerElement: a,
60
+ contentId: "",
61
+ modal: l,
62
+ dir: h
63
+ }), (b, C) => (d(), u(e(N), {
64
+ open: e(n),
65
+ "onUpdate:open": C[0] || (C[0] = (D) => x(n) ? n.value = D : null),
66
+ dir: e(h),
67
+ modal: e(l)
68
+ }, {
69
+ default: i(() => [
70
+ c(b.$slots, "default", { open: e(n) })
71
+ ]),
72
+ _: 3
73
+ }, 8, ["open", "dir", "modal"]));
74
+ }
75
+ }), _e = /* @__PURE__ */ p({
76
+ __name: "DropdownMenuContent",
77
+ props: {
78
+ forceMount: { type: Boolean },
79
+ loop: { type: Boolean },
80
+ side: {},
81
+ sideOffset: {},
82
+ align: {},
83
+ alignOffset: {},
84
+ avoidCollisions: { type: Boolean },
85
+ collisionBoundary: {},
86
+ collisionPadding: {},
87
+ arrowPadding: {},
88
+ sticky: {},
89
+ hideWhenDetached: { type: Boolean },
90
+ positionStrategy: {},
91
+ updatePositionStrategy: {},
92
+ disableUpdateOnLayoutShift: { type: Boolean },
93
+ prioritizePosition: { type: Boolean },
94
+ reference: {},
95
+ asChild: { type: Boolean },
96
+ as: {}
97
+ },
98
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
99
+ setup(s, { emit: t }) {
100
+ const n = w(s, t);
101
+ y();
102
+ const a = R(), l = S(!1);
103
+ function m(h) {
104
+ h.defaultPrevented || (l.value || setTimeout(() => {
105
+ var b;
106
+ (b = a.triggerElement.value) == null || b.focus();
107
+ }, 0), l.value = !1, h.preventDefault());
108
+ }
109
+ return a.contentId || (a.contentId = V(void 0, "reka-dropdown-menu-content")), (h, b) => {
110
+ var C;
111
+ return d(), u(e(q), g(e(n), {
112
+ id: e(a).contentId,
113
+ "aria-labelledby": (C = e(a)) == null ? void 0 : C.triggerId,
114
+ style: {
115
+ "--reka-dropdown-menu-content-transform-origin": "var(--reka-popper-transform-origin)",
116
+ "--reka-dropdown-menu-content-available-width": "var(--reka-popper-available-width)",
117
+ "--reka-dropdown-menu-content-available-height": "var(--reka-popper-available-height)",
118
+ "--reka-dropdown-menu-trigger-width": "var(--reka-popper-anchor-width)",
119
+ "--reka-dropdown-menu-trigger-height": "var(--reka-popper-anchor-height)"
120
+ },
121
+ onCloseAutoFocus: m,
122
+ onInteractOutside: b[0] || (b[0] = (D) => {
123
+ var P;
124
+ if (D.defaultPrevented) return;
125
+ const O = D.detail.originalEvent, j = O.button === 0 && O.ctrlKey === !0, A = O.button === 2 || j;
126
+ (!e(a).modal.value || A) && (l.value = !0), (P = e(a).triggerElement.value) != null && P.contains(D.target) && D.preventDefault();
127
+ })
128
+ }), {
129
+ default: i(() => [
130
+ c(h.$slots, "default")
131
+ ]),
132
+ _: 3
133
+ }, 16, ["id", "aria-labelledby"]);
134
+ };
135
+ }
136
+ }), ye = /* @__PURE__ */ p({
137
+ __name: "DropdownMenuGroup",
138
+ props: {
139
+ asChild: { type: Boolean },
140
+ as: {}
141
+ },
142
+ setup(s) {
143
+ const t = s;
144
+ return y(), (o, r) => (d(), u(e(H), f(_(t)), {
145
+ default: i(() => [
146
+ c(o.$slots, "default")
147
+ ]),
148
+ _: 3
149
+ }, 16));
150
+ }
151
+ }), ge = /* @__PURE__ */ p({
152
+ __name: "DropdownMenuItem",
153
+ props: {
154
+ disabled: { type: Boolean },
155
+ textValue: {},
156
+ asChild: { type: Boolean },
157
+ as: {}
158
+ },
159
+ emits: ["select"],
160
+ setup(s, { emit: t }) {
161
+ const o = s, n = k(t);
162
+ return y(), (a, l) => (d(), u(e(J), f(_({ ...o, ...e(n) })), {
163
+ default: i(() => [
164
+ c(a.$slots, "default")
165
+ ]),
166
+ _: 3
167
+ }, 16));
168
+ }
169
+ }), E = /* @__PURE__ */ p({
170
+ __name: "DropdownMenuItemIndicator",
171
+ props: {
172
+ forceMount: { type: Boolean },
173
+ asChild: { type: Boolean },
174
+ as: {}
175
+ },
176
+ setup(s) {
177
+ const t = s;
178
+ return y(), (o, r) => (d(), u(e(Q), f(_(t)), {
179
+ default: i(() => [
180
+ c(o.$slots, "default")
181
+ ]),
182
+ _: 3
183
+ }, 16));
184
+ }
185
+ }), he = /* @__PURE__ */ p({
186
+ __name: "DropdownMenuLabel",
187
+ props: {
188
+ asChild: { type: Boolean },
189
+ as: {}
190
+ },
191
+ setup(s) {
192
+ const t = s;
193
+ return y(), (o, r) => (d(), u(e(X), f(_(t)), {
194
+ default: i(() => [
195
+ c(o.$slots, "default")
196
+ ]),
197
+ _: 3
198
+ }, 16));
199
+ }
200
+ }), we = /* @__PURE__ */ p({
201
+ __name: "DropdownMenuPortal",
202
+ props: {
203
+ to: {},
204
+ disabled: { type: Boolean },
205
+ defer: { type: Boolean },
206
+ forceMount: { type: Boolean }
207
+ },
208
+ setup(s) {
209
+ const t = s;
210
+ return (o, r) => (d(), u(e(Y), f(_(t)), {
211
+ default: i(() => [
212
+ c(o.$slots, "default")
213
+ ]),
214
+ _: 3
215
+ }, 16));
216
+ }
217
+ }), be = /* @__PURE__ */ p({
218
+ __name: "DropdownMenuRadioGroup",
219
+ props: {
220
+ modelValue: {},
221
+ asChild: { type: Boolean },
222
+ as: {}
223
+ },
224
+ emits: ["update:modelValue"],
225
+ setup(s, { emit: t }) {
226
+ const o = s, n = k(t);
227
+ return y(), (a, l) => (d(), u(e(Z), f(_({ ...o, ...e(n) })), {
228
+ default: i(() => [
229
+ c(a.$slots, "default")
230
+ ]),
231
+ _: 3
232
+ }, 16));
233
+ }
234
+ }), Be = /* @__PURE__ */ p({
235
+ __name: "DropdownMenuRadioItem",
236
+ props: {
237
+ value: {},
238
+ disabled: { type: Boolean },
239
+ textValue: {},
240
+ asChild: { type: Boolean },
241
+ as: {}
242
+ },
243
+ emits: ["select"],
244
+ setup(s, { emit: t }) {
245
+ const n = w(s, t);
246
+ return y(), (a, l) => (d(), u(e(ee), f(_(e(n))), {
247
+ default: i(() => [
248
+ c(a.$slots, "default")
249
+ ]),
250
+ _: 3
251
+ }, 16));
252
+ }
253
+ }), $e = /* @__PURE__ */ p({
254
+ __name: "DropdownMenuSeparator",
255
+ props: {
256
+ asChild: { type: Boolean },
257
+ as: {}
258
+ },
259
+ setup(s) {
260
+ const t = s;
261
+ return y(), (o, r) => (d(), u(e(oe), f(_(t)), {
262
+ default: i(() => [
263
+ c(o.$slots, "default")
264
+ ]),
265
+ _: 3
266
+ }, 16));
267
+ }
268
+ }), ve = /* @__PURE__ */ p({
269
+ __name: "DropdownMenuSub",
270
+ props: {
271
+ defaultOpen: { type: Boolean },
272
+ open: { type: Boolean, default: void 0 }
273
+ },
274
+ emits: ["update:open"],
275
+ setup(s, { emit: t }) {
276
+ const o = s, n = I(o, "open", t, {
277
+ passive: o.open === void 0,
278
+ defaultValue: o.defaultOpen ?? !1
279
+ });
280
+ return y(), (a, l) => (d(), u(e(te), {
281
+ open: e(n),
282
+ "onUpdate:open": l[0] || (l[0] = (m) => x(n) ? n.value = m : null)
283
+ }, {
284
+ default: i(() => [
285
+ c(a.$slots, "default", { open: e(n) })
286
+ ]),
287
+ _: 3
288
+ }, 8, ["open"]));
289
+ }
290
+ }), De = /* @__PURE__ */ p({
291
+ __name: "DropdownMenuSubContent",
292
+ props: {
293
+ forceMount: { type: Boolean },
294
+ loop: { type: Boolean },
295
+ sideOffset: {},
296
+ alignOffset: {},
297
+ avoidCollisions: { type: Boolean },
298
+ collisionBoundary: {},
299
+ collisionPadding: {},
300
+ arrowPadding: {},
301
+ sticky: {},
302
+ hideWhenDetached: { type: Boolean },
303
+ positionStrategy: {},
304
+ updatePositionStrategy: {},
305
+ disableUpdateOnLayoutShift: { type: Boolean },
306
+ prioritizePosition: { type: Boolean },
307
+ reference: {},
308
+ asChild: { type: Boolean },
309
+ as: {}
310
+ },
311
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
312
+ setup(s, { emit: t }) {
313
+ const n = w(s, t);
314
+ return y(), (a, l) => (d(), u(e(se), g(e(n), { style: {
315
+ "--reka-dropdown-menu-content-transform-origin": "var(--reka-popper-transform-origin)",
316
+ "--reka-dropdown-menu-content-available-width": "var(--reka-popper-available-width)",
317
+ "--reka-dropdown-menu-content-available-height": "var(--reka-popper-available-height)",
318
+ "--reka-dropdown-menu-trigger-width": "var(--reka-popper-anchor-width)",
319
+ "--reka-dropdown-menu-trigger-height": "var(--reka-popper-anchor-height)"
320
+ } }), {
321
+ default: i(() => [
322
+ c(a.$slots, "default")
323
+ ]),
324
+ _: 3
325
+ }, 16));
326
+ }
327
+ }), Ce = /* @__PURE__ */ p({
328
+ __name: "DropdownMenuSubTrigger",
329
+ props: {
330
+ disabled: { type: Boolean },
331
+ textValue: {},
332
+ asChild: { type: Boolean },
333
+ as: {}
334
+ },
335
+ setup(s) {
336
+ const t = s;
337
+ return y(), (o, r) => (d(), u(e(ne), f(_(t)), {
338
+ default: i(() => [
339
+ c(o.$slots, "default")
340
+ ]),
341
+ _: 3
342
+ }, 16));
343
+ }
344
+ }), Me = /* @__PURE__ */ p({
345
+ __name: "DropdownMenuTrigger",
346
+ props: {
347
+ disabled: { type: Boolean },
348
+ asChild: { type: Boolean },
349
+ as: { default: "button" }
350
+ },
351
+ setup(s) {
352
+ const t = s, o = R(), { forwardRef: r, currentElement: n } = y();
353
+ return T(() => {
354
+ o.triggerElement = n;
355
+ }), o.triggerId || (o.triggerId = V(void 0, "reka-dropdown-menu-trigger")), (a, l) => (d(), u(e(ae), { "as-child": "" }, {
356
+ default: i(() => [
357
+ v(e(ue), {
358
+ id: e(o).triggerId,
359
+ ref: e(r),
360
+ type: a.as === "button" ? "button" : void 0,
361
+ "as-child": t.asChild,
362
+ as: a.as,
363
+ "aria-haspopup": "menu",
364
+ "aria-expanded": e(o).open.value,
365
+ "aria-controls": e(o).open.value ? e(o).contentId : void 0,
366
+ "data-disabled": a.disabled ? "" : void 0,
367
+ disabled: a.disabled,
368
+ "data-state": e(o).open.value ? "open" : "closed",
369
+ onClick: l[0] || (l[0] = async (m) => {
370
+ var h;
371
+ !a.disabled && m.button === 0 && m.ctrlKey === !1 && ((h = e(o)) == null || h.onOpenToggle(), await L(), e(o).open.value && m.preventDefault());
372
+ }),
373
+ onKeydown: l[1] || (l[1] = K(
374
+ (m) => {
375
+ a.disabled || (["Enter", " "].includes(m.key) && e(o).onOpenToggle(), m.key === "ArrowDown" && e(o).onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(m.key) && m.preventDefault());
376
+ },
377
+ ["enter", "space", "arrow-down"]
378
+ ))
379
+ }, {
380
+ default: i(() => [
381
+ c(a.$slots, "default")
382
+ ]),
383
+ _: 3
384
+ }, 8, ["id", "type", "as-child", "as", "aria-expanded", "aria-controls", "data-disabled", "disabled", "data-state"])
385
+ ]),
386
+ _: 3
387
+ }));
388
+ }
389
+ }), Ge = /* @__PURE__ */ p({
390
+ __name: "DropdownMenu",
391
+ props: {
392
+ defaultOpen: { type: Boolean },
393
+ open: { type: Boolean },
394
+ dir: {},
395
+ modal: { type: Boolean }
396
+ },
397
+ emits: ["update:open"],
398
+ setup(s, { emit: t }) {
399
+ const n = w(s, t);
400
+ return (a, l) => (d(), u(e(fe), f(_(e(n))), {
401
+ default: i(() => [
402
+ c(a.$slots, "default")
403
+ ]),
404
+ _: 3
405
+ }, 16));
406
+ }
407
+ }), Oe = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, Ue = /* @__PURE__ */ p({
408
+ __name: "DropdownMenuCheckboxItem",
409
+ props: {
410
+ modelValue: { type: [Boolean, String] },
411
+ disabled: { type: Boolean },
412
+ textValue: {},
413
+ asChild: { type: Boolean },
414
+ as: { type: [String, Object, Function] },
415
+ class: {}
416
+ },
417
+ emits: ["select", "update:modelValue"],
418
+ setup(s, { emit: t }) {
419
+ const o = s, r = t, n = $(o, "class"), a = w(n, r);
420
+ return (l, m) => (d(), u(e(ce), g(e(a), {
421
+ class: e(B)(
422
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
423
+ o.class
424
+ )
425
+ }), {
426
+ default: i(() => [
427
+ F("span", Oe, [
428
+ v(e(E), null, {
429
+ default: i(() => [
430
+ v(e(le), { class: "w-4 h-4" })
431
+ ]),
432
+ _: 1
433
+ })
434
+ ]),
435
+ c(l.$slots, "default")
436
+ ]),
437
+ _: 3
438
+ }, 16, ["class"]));
439
+ }
440
+ }), We = /* @__PURE__ */ p({
441
+ __name: "DropdownMenuContent",
442
+ props: {
443
+ forceMount: { type: Boolean },
444
+ loop: { type: Boolean },
445
+ side: {},
446
+ sideOffset: { default: 4 },
447
+ align: {},
448
+ alignOffset: {},
449
+ avoidCollisions: { type: Boolean },
450
+ collisionBoundary: {},
451
+ collisionPadding: {},
452
+ arrowPadding: {},
453
+ sticky: {},
454
+ hideWhenDetached: { type: Boolean },
455
+ positionStrategy: {},
456
+ updatePositionStrategy: {},
457
+ disableUpdateOnLayoutShift: { type: Boolean },
458
+ prioritizePosition: { type: Boolean },
459
+ reference: {},
460
+ asChild: { type: Boolean },
461
+ as: {},
462
+ class: {}
463
+ },
464
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
465
+ setup(s, { emit: t }) {
466
+ const o = s, r = t, n = $(o, "class"), a = w(n, r);
467
+ return (l, m) => (d(), u(e(we), null, {
468
+ default: i(() => [
469
+ v(e(_e), g(e(a), {
470
+ class: e(B)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", o.class)
471
+ }), {
472
+ default: i(() => [
473
+ c(l.$slots, "default")
474
+ ]),
475
+ _: 3
476
+ }, 16, ["class"])
477
+ ]),
478
+ _: 3
479
+ }));
480
+ }
481
+ }), Ne = /* @__PURE__ */ p({
482
+ __name: "DropdownMenuGroup",
483
+ props: {
484
+ asChild: { type: Boolean },
485
+ as: { type: [String, Object, Function] }
486
+ },
487
+ setup(s) {
488
+ const t = s;
489
+ return (o, r) => (d(), u(e(ye), f(_(t)), {
490
+ default: i(() => [
491
+ c(o.$slots, "default")
492
+ ]),
493
+ _: 3
494
+ }, 16));
495
+ }
496
+ }), qe = /* @__PURE__ */ p({
497
+ __name: "DropdownMenuItem",
498
+ props: {
499
+ disabled: { type: Boolean },
500
+ textValue: {},
501
+ asChild: { type: Boolean },
502
+ as: { type: [String, Object, Function] },
503
+ class: {},
504
+ inset: { type: Boolean }
505
+ },
506
+ setup(s) {
507
+ const t = s, o = $(t, "class"), r = M(o);
508
+ return (n, a) => (d(), u(e(ge), g(e(r), {
509
+ class: e(B)(
510
+ "relative flex cursor-default select-none items-center rounded-sm gap-2 px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
511
+ n.inset && "pl-8",
512
+ t.class
513
+ )
514
+ }), {
515
+ default: i(() => [
516
+ c(n.$slots, "default")
517
+ ]),
518
+ _: 3
519
+ }, 16, ["class"]));
520
+ }
521
+ }), He = /* @__PURE__ */ p({
522
+ __name: "DropdownMenuLabel",
523
+ props: {
524
+ asChild: { type: Boolean },
525
+ as: { type: [String, Object, Function] },
526
+ class: {},
527
+ inset: { type: Boolean }
528
+ },
529
+ setup(s) {
530
+ const t = s, o = $(t, "class"), r = M(o);
531
+ return (n, a) => (d(), u(e(he), g(e(r), {
532
+ class: e(B)("px-2 py-1.5 text-sm font-semibold", n.inset && "pl-8", t.class)
533
+ }), {
534
+ default: i(() => [
535
+ c(n.$slots, "default")
536
+ ]),
537
+ _: 3
538
+ }, 16, ["class"]));
539
+ }
540
+ }), Je = /* @__PURE__ */ p({
541
+ __name: "DropdownMenuRadioGroup",
542
+ props: {
543
+ modelValue: {},
544
+ asChild: { type: Boolean },
545
+ as: { type: [String, Object, Function] }
546
+ },
547
+ emits: ["update:modelValue"],
548
+ setup(s, { emit: t }) {
549
+ const n = w(s, t);
550
+ return (a, l) => (d(), u(e(be), f(_(e(n))), {
551
+ default: i(() => [
552
+ c(a.$slots, "default")
553
+ ]),
554
+ _: 3
555
+ }, 16));
556
+ }
557
+ }), ke = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, Qe = /* @__PURE__ */ p({
558
+ __name: "DropdownMenuRadioItem",
559
+ props: {
560
+ value: {},
561
+ disabled: { type: Boolean },
562
+ textValue: {},
563
+ asChild: { type: Boolean },
564
+ as: { type: [String, Object, Function] },
565
+ class: {}
566
+ },
567
+ emits: ["select"],
568
+ setup(s, { emit: t }) {
569
+ const o = s, r = t, n = $(o, "class"), a = w(n, r);
570
+ return (l, m) => (d(), u(e(Be), g(e(a), {
571
+ class: e(B)(
572
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
573
+ o.class
574
+ )
575
+ }), {
576
+ default: i(() => [
577
+ F("span", ke, [
578
+ v(e(E), null, {
579
+ default: i(() => [
580
+ v(e(pe), { class: "h-2 w-2 fill-current" })
581
+ ]),
582
+ _: 1
583
+ })
584
+ ]),
585
+ c(l.$slots, "default")
586
+ ]),
587
+ _: 3
588
+ }, 16, ["class"]));
589
+ }
590
+ }), Xe = /* @__PURE__ */ p({
591
+ __name: "DropdownMenuSeparator",
592
+ props: {
593
+ asChild: { type: Boolean },
594
+ as: { type: [String, Object, Function] },
595
+ class: {}
596
+ },
597
+ setup(s) {
598
+ const t = s, o = $(t, "class");
599
+ return (r, n) => (d(), u(e($e), g(e(o), {
600
+ class: e(B)("-mx-1 my-1 h-px bg-muted", t.class)
601
+ }), null, 16, ["class"]));
602
+ }
603
+ }), Ye = /* @__PURE__ */ p({
604
+ __name: "DropdownMenuShortcut",
605
+ props: {
606
+ class: {}
607
+ },
608
+ setup(s) {
609
+ const t = s;
610
+ return (o, r) => (d(), G("span", {
611
+ class: U(e(B)("ml-auto text-xs tracking-widest opacity-60", t.class))
612
+ }, [
613
+ c(o.$slots, "default")
614
+ ], 2));
615
+ }
616
+ }), Ze = /* @__PURE__ */ p({
617
+ __name: "DropdownMenuSub",
618
+ props: {
619
+ defaultOpen: { type: Boolean },
620
+ open: { type: Boolean }
621
+ },
622
+ emits: ["update:open"],
623
+ setup(s, { emit: t }) {
624
+ const n = w(s, t);
625
+ return (a, l) => (d(), u(e(ve), f(_(e(n))), {
626
+ default: i(() => [
627
+ c(a.$slots, "default")
628
+ ]),
629
+ _: 3
630
+ }, 16));
631
+ }
632
+ }), eo = /* @__PURE__ */ p({
633
+ __name: "DropdownMenuSubContent",
634
+ props: {
635
+ forceMount: { type: Boolean },
636
+ loop: { type: Boolean },
637
+ sideOffset: {},
638
+ alignOffset: {},
639
+ avoidCollisions: { type: Boolean },
640
+ collisionBoundary: {},
641
+ collisionPadding: {},
642
+ arrowPadding: {},
643
+ sticky: {},
644
+ hideWhenDetached: { type: Boolean },
645
+ positionStrategy: {},
646
+ updatePositionStrategy: {},
647
+ disableUpdateOnLayoutShift: { type: Boolean },
648
+ prioritizePosition: { type: Boolean },
649
+ reference: {},
650
+ asChild: { type: Boolean },
651
+ as: { type: [String, Object, Function] },
652
+ class: {}
653
+ },
654
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
655
+ setup(s, { emit: t }) {
656
+ const o = s, r = t, n = $(o, "class"), a = w(n, r);
657
+ return (l, m) => (d(), u(e(De), g(e(a), {
658
+ class: e(B)("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", o.class)
659
+ }), {
660
+ default: i(() => [
661
+ c(l.$slots, "default")
662
+ ]),
663
+ _: 3
664
+ }, 16, ["class"]));
665
+ }
666
+ }), oo = /* @__PURE__ */ p({
667
+ __name: "DropdownMenuSubTrigger",
668
+ props: {
669
+ disabled: { type: Boolean },
670
+ textValue: {},
671
+ asChild: { type: Boolean },
672
+ as: { type: [String, Object, Function] },
673
+ class: {}
674
+ },
675
+ setup(s) {
676
+ const t = s, o = $(t, "class"), r = M(o);
677
+ return (n, a) => (d(), u(e(Ce), g(e(r), {
678
+ class: e(B)(
679
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",
680
+ t.class
681
+ )
682
+ }), {
683
+ default: i(() => [
684
+ c(n.$slots, "default"),
685
+ v(e(de), { class: "ml-auto h-4 w-4" })
686
+ ]),
687
+ _: 3
688
+ }, 16, ["class"]));
689
+ }
690
+ }), to = /* @__PURE__ */ p({
691
+ __name: "DropdownMenuTrigger",
692
+ props: {
693
+ disabled: { type: Boolean },
694
+ asChild: { type: Boolean },
695
+ as: { type: [String, Object, Function] }
696
+ },
697
+ setup(s) {
698
+ const o = M(s);
699
+ return (r, n) => (d(), u(e(Me), g({ class: "outline-none" }, e(o)), {
700
+ default: i(() => [
701
+ c(r.$slots, "default")
702
+ ]),
703
+ _: 3
704
+ }, 16));
705
+ }
706
+ });
707
+ export {
708
+ Ge as DropdownMenu,
709
+ Ue as DropdownMenuCheckboxItem,
710
+ We as DropdownMenuContent,
711
+ Ne as DropdownMenuGroup,
712
+ qe as DropdownMenuItem,
713
+ He as DropdownMenuLabel,
714
+ we as DropdownMenuPortal,
715
+ Je as DropdownMenuRadioGroup,
716
+ Qe as DropdownMenuRadioItem,
717
+ Xe as DropdownMenuSeparator,
718
+ Ye as DropdownMenuShortcut,
719
+ Ze as DropdownMenuSub,
720
+ eo as DropdownMenuSubContent,
721
+ oo as DropdownMenuSubTrigger,
722
+ to as DropdownMenuTrigger
723
+ };