@orchidui/dashboard 1.8.1-95 → 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 (164) 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/TextEditor/QuillEditor.js +1 -1
  10. package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +68 -0
  11. package/dist/DialogOverlay-Cj3UTjZ8.js +309 -0
  12. package/dist/DialogPortal-zAvO8zt4.js +23 -0
  13. package/dist/DialogTrigger-BIF1A4hk.js +72 -0
  14. package/dist/DismissableLayer-C7IJliOb.js +151 -0
  15. package/dist/FocusScope--pJ6bboI.js +121 -0
  16. package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +92 -0
  17. package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +27 -0
  18. package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +51 -0
  19. package/dist/ListboxItem-CjMk-mEX.js +417 -0
  20. package/dist/MenuSubTrigger-CUrxnPwO.js +845 -0
  21. package/dist/{OcCard-D3be6IMj.js → OcCard-B3SCzVwn.js} +54 -58
  22. package/dist/{OcLottieAnimation-0mdksHMn.js → OcLottieAnimation-DeMoIDaX.js} +1 -1
  23. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +394 -0
  24. package/dist/PopperContent-BT3Svcc3.js +1465 -0
  25. package/dist/Presence-CxfTrw6l.js +133 -0
  26. package/dist/Primitive-B3twiLO1.js +44 -0
  27. package/dist/{QuillEditor-DRwC0sgJ.js → QuillEditor-hFQ0MJZO.js} +556 -579
  28. package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +297 -0
  29. package/dist/RovingFocusGroup-0OHdFQl0.js +92 -0
  30. package/dist/RovingFocusItem-s7Ug6oxb.js +82 -0
  31. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +1255 -0
  32. package/dist/Separator-DRam5i7g.js +54 -0
  33. package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +27 -0
  34. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +17 -0
  35. package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +135 -0
  36. package/dist/Teleport-DnUewq5H.js +25 -0
  37. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +27 -0
  38. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +426 -0
  39. package/dist/VisuallyHidden-DMAU4heD.js +41 -0
  40. package/dist/VisuallyHiddenInput-DvJnsVHt.js +59 -0
  41. package/dist/_commonjsHelpers-B4e78b8K.js +28 -0
  42. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  43. package/dist/array-CqVTtuYm.js +6 -0
  44. package/dist/arrays-4jDZqbdb.js +20 -0
  45. package/dist/check-C2tzJ0Gk.js +11 -0
  46. package/dist/chevron-down-CnpAlizg.js +13 -0
  47. package/dist/chevron-left-BOwFasou.js +13 -0
  48. package/dist/chevron-right-D308801z.js +13 -0
  49. package/dist/circle-A-6NpYiX.js +13 -0
  50. package/dist/clamp-BL1Rb24G.js +22 -0
  51. package/dist/constant-CuDQlTIy.js +3433 -0
  52. package/dist/createContext-CZEfaSVa.js +17 -0
  53. package/dist/createLucideIcon-eXqDwUWj.js +71 -0
  54. package/dist/ellipsis-CEG9G7eN.js +15 -0
  55. package/dist/getActiveElement-B-HWdUIb.js +11 -0
  56. package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +11 -0
  57. package/dist/index-B3LW8uSH.js +133 -0
  58. package/dist/index-BIlpXuWX.js +3430 -0
  59. package/dist/index-BlGEiPHj.js +1246 -0
  60. package/dist/index-BwPb_idr.js +574 -0
  61. package/dist/index-C9julNQm.js +173 -0
  62. package/dist/index-C_aI-Wfj.js +34 -0
  63. package/dist/index-CumjCvqB.js +5703 -0
  64. package/dist/index-LqWMCtOd.js +809 -0
  65. package/dist/index-OpE2oGce.js +110 -0
  66. package/dist/index.js +3 -3
  67. package/dist/isValueEqualOrExist-BDSMUv8t.js +8 -0
  68. package/dist/lib/utils.js +5 -0
  69. package/dist/nullish-CjWwlQS3.js +6 -0
  70. package/dist/ohash.D__AXeF1-DX2n0b2C.js +106 -0
  71. package/dist/plus-CgluTYQY.js +14 -0
  72. package/dist/text-zwICaAnx.js +743 -0
  73. package/dist/ui/accordion/index.js +7 -0
  74. package/dist/ui/alert/index.js +64 -0
  75. package/dist/ui/alert-dialog/index.js +356 -0
  76. package/dist/ui/aspect-ratio/index.js +50 -0
  77. package/dist/ui/auto-form/constant.js +5 -0
  78. package/dist/ui/auto-form/dependencies.js +61 -0
  79. package/dist/ui/auto-form/index.js +227 -0
  80. package/dist/ui/auto-form/interface.js +4 -0
  81. package/dist/ui/auto-form/utils.js +89 -0
  82. package/dist/ui/avatar/index.js +189 -0
  83. package/dist/ui/badge/index.js +37 -0
  84. package/dist/ui/breadcrumb/index.js +126 -0
  85. package/dist/ui/button/index.js +55 -0
  86. package/dist/ui/calendar/index.js +15 -0
  87. package/dist/ui/card/index.js +38 -0
  88. package/dist/ui/carousel/index.js +174 -0
  89. package/dist/ui/carousel/interface.js +1 -0
  90. package/dist/ui/carousel/useCarousel.js +1288 -0
  91. package/dist/ui/chart/index.js +8 -0
  92. package/dist/ui/chart/interface.js +1 -0
  93. package/dist/ui/chart-area/index.js +331 -0
  94. package/dist/ui/chart-bar/index.js +490 -0
  95. package/dist/ui/chart-donut/index.js +509 -0
  96. package/dist/ui/chart-line/index.js +110 -0
  97. package/dist/ui/checkbox/index.js +4 -0
  98. package/dist/ui/collapsible/index.js +60 -0
  99. package/dist/ui/combobox/index.js +877 -0
  100. package/dist/ui/command/index.js +323 -0
  101. package/dist/ui/context-menu/index.js +734 -0
  102. package/dist/ui/dialog/index.js +169 -0
  103. package/dist/ui/drawer/index.js +971 -0
  104. package/dist/ui/dropdown-menu/index.js +723 -0
  105. package/dist/ui/form/index.js +13 -0
  106. package/dist/ui/form/injectionKeys.js +4 -0
  107. package/dist/ui/form/useFormField.js +25 -0
  108. package/dist/ui/hover-card/index.js +331 -0
  109. package/dist/ui/input/index.js +4 -0
  110. package/dist/ui/label/index.js +4 -0
  111. package/dist/ui/menubar/index.js +862 -0
  112. package/dist/ui/navigation-menu/index.js +873 -0
  113. package/dist/ui/number-field/index.js +682 -0
  114. package/dist/ui/pagination/index.js +444 -0
  115. package/dist/ui/pin-input/index.js +308 -0
  116. package/dist/ui/popover/index.js +6 -0
  117. package/dist/ui/progress/index.js +137 -0
  118. package/dist/ui/radio-group/index.js +5 -0
  119. package/dist/ui/range-calendar/index.js +986 -0
  120. package/dist/ui/resizable/index.js +1432 -0
  121. package/dist/ui/scroll-area/index.js +775 -0
  122. package/dist/ui/select/index.js +135 -0
  123. package/dist/ui/separator/index.js +4 -0
  124. package/dist/ui/sheet/index.js +188 -0
  125. package/dist/ui/sidebar/index.js +652 -0
  126. package/dist/ui/sidebar/utils.js +12 -0
  127. package/dist/ui/skeleton/index.js +4 -0
  128. package/dist/ui/slider/index.js +478 -0
  129. package/dist/ui/sonner/index.js +892 -0
  130. package/dist/ui/stepper/index.js +442 -0
  131. package/dist/ui/switch/index.js +4 -0
  132. package/dist/ui/table/index.js +153 -0
  133. package/dist/ui/tabs/index.js +280 -0
  134. package/dist/ui/tags-input/index.js +449 -0
  135. package/dist/ui/textarea/index.js +4 -0
  136. package/dist/ui/toast/index.js +738 -0
  137. package/dist/ui/toast/use-toast.js +85 -0
  138. package/dist/ui/toggle/index.js +6 -0
  139. package/dist/ui/toggle-group/index.js +112 -0
  140. package/dist/ui/tooltip/index.js +29 -0
  141. package/dist/useArrowNavigation-BRMPveaB.js +49 -0
  142. package/dist/useBodyScrollLock-CazCRZjZ.js +153 -0
  143. package/dist/useDirection-C3C_TLKm.js +14 -0
  144. package/dist/useFocusGuards-CyjC9cG9.js +26 -0
  145. package/dist/useFormControl-CFVC51Lp.js +11 -0
  146. package/dist/useForwardExpose-DZT6mL_U.js +37 -0
  147. package/dist/useForwardPropsEmits-0XKBv1pB.js +33 -0
  148. package/dist/useGraceArea-D7-GP1ii.js +137 -0
  149. package/dist/useId-reAg216X.js +13 -0
  150. package/dist/useKbd-BJNupnml.js +41 -0
  151. package/dist/useLocale-BfU0LC8Z.js +14 -0
  152. package/dist/useNonce-C1ZOgOp5.js +14 -0
  153. package/dist/usePrimitiveElement-BjwUvHih.js +15 -0
  154. package/dist/useSingleOrMultipleValue-BkTAaaJB.js +43 -0
  155. package/dist/useSize-BnyQ8FZF.js +37 -0
  156. package/dist/useTypeahead-oSidjyFF.js +40 -0
  157. package/dist/utils-DKNaYMZh.js +57 -0
  158. package/dist/utils-Dx9la83v.js +35 -0
  159. package/dist/utils-DxQ_ywGa.js +55 -0
  160. package/dist/utils-SFgRDk1R.js +2748 -0
  161. package/dist/utils-W-UiqiPE.js +1869 -0
  162. package/dist/vee-validate-Cf8JDJ_k.js +2232 -0
  163. package/dist/x-Cl6YllUK.js +14 -0
  164. package/package.json +264 -2
@@ -0,0 +1,734 @@
1
+ import { defineComponent as c, createBlock as d, openBlock as u, unref as e, normalizeProps as h, guardReactiveProps as y, withCtx as i, renderSlot as p, toRefs as V, ref as M, watch as I, mergeProps as x, isRef as T, computed as L, onMounted as G, createElementBlock as D, Fragment as U, createVNode as v, nextTick as k, createElementVNode as j, normalizeClass as W } from "vue";
2
+ import { b as P, u as C, a as E } from "../../useForwardPropsEmits-0XKBv1pB.js";
3
+ import { _ as K, a as N, b as q, c as H, d as X, e as Y, f as J, g as Q, h as Z, i as ee, j as te, k as oe, l as ne, m as se, n as ae } from "../../MenuSubTrigger-CUrxnPwO.js";
4
+ import { c as re } from "../../createContext-CZEfaSVa.js";
5
+ import { u as g } from "../../useForwardExpose-DZT6mL_U.js";
6
+ import { u as le } from "../../useDirection-C3C_TLKm.js";
7
+ import { c as B } from "../../utils-SFgRDk1R.js";
8
+ import { C as ie } from "../../check-C2tzJ0Gk.js";
9
+ import { r as $ } from "../../index-OpE2oGce.js";
10
+ import { C as ce } from "../../circle-A-6NpYiX.js";
11
+ import { u as ue } from "../../index-BwPb_idr.js";
12
+ import { C as pe } from "../../chevron-right-D308801z.js";
13
+ import { P as de } from "../../Primitive-B3twiLO1.js";
14
+ const fe = /* @__PURE__ */ c({
15
+ __name: "ContextMenuCheckboxItem",
16
+ props: {
17
+ modelValue: { type: [Boolean, String] },
18
+ disabled: { type: Boolean },
19
+ textValue: {},
20
+ asChild: { type: Boolean },
21
+ as: {}
22
+ },
23
+ emits: ["select", "update:modelValue"],
24
+ setup(o, { emit: n }) {
25
+ const t = o, s = P(n);
26
+ return g(), (r, l) => (u(), d(e(K), h(y({ ...t, ...e(s) })), {
27
+ default: i(() => [
28
+ p(r.$slots, "default")
29
+ ]),
30
+ _: 3
31
+ }, 16));
32
+ }
33
+ }), [R, me] = re("ContextMenuRoot"), _e = /* @__PURE__ */ c({
34
+ inheritAttrs: !1,
35
+ __name: "ContextMenuRoot",
36
+ props: {
37
+ dir: {},
38
+ modal: { type: Boolean, default: !0 }
39
+ },
40
+ emits: ["update:open"],
41
+ setup(o, { emit: n }) {
42
+ const t = o, a = n, { dir: s, modal: r } = V(t);
43
+ g();
44
+ const l = le(s), _ = M(!1), b = M();
45
+ return me({
46
+ open: _,
47
+ onOpenChange: (m) => {
48
+ _.value = m;
49
+ },
50
+ dir: l,
51
+ modal: r,
52
+ triggerElement: b
53
+ }), I(_, (m) => {
54
+ a("update:open", m);
55
+ }), (m, w) => (u(), d(e(N), {
56
+ open: _.value,
57
+ "onUpdate:open": w[0] || (w[0] = (O) => _.value = O),
58
+ dir: e(l),
59
+ modal: e(r)
60
+ }, {
61
+ default: i(() => [
62
+ p(m.$slots, "default")
63
+ ]),
64
+ _: 3
65
+ }, 8, ["open", "dir", "modal"]));
66
+ }
67
+ }), he = /* @__PURE__ */ c({
68
+ __name: "ContextMenuContent",
69
+ props: {
70
+ forceMount: { type: Boolean },
71
+ loop: { type: Boolean },
72
+ alignOffset: { default: 0 },
73
+ avoidCollisions: { type: Boolean, default: !0 },
74
+ collisionBoundary: { default: () => [] },
75
+ collisionPadding: { default: 0 },
76
+ sticky: { default: "partial" },
77
+ hideWhenDetached: { type: Boolean, default: !1 },
78
+ positionStrategy: {},
79
+ disableUpdateOnLayoutShift: { type: Boolean },
80
+ prioritizePosition: { type: Boolean },
81
+ reference: {},
82
+ asChild: { type: Boolean },
83
+ as: {}
84
+ },
85
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
86
+ setup(o, { emit: n }) {
87
+ const s = C(o, n);
88
+ g();
89
+ const r = R(), l = M(!1);
90
+ return (_, b) => (u(), d(e(q), x(e(s), {
91
+ side: "right",
92
+ "side-offset": 2,
93
+ align: "start",
94
+ "update-position-strategy": "always",
95
+ style: {
96
+ "--reka-context-menu-content-transform-origin": "var(--reka-popper-transform-origin)",
97
+ "--reka-context-menu-content-available-width": "var(--reka-popper-available-width)",
98
+ "--reka-context-menu-content-available-height": "var(--reka-popper-available-height)",
99
+ "--reka-context-menu-trigger-width": "var(--reka-popper-anchor-width)",
100
+ "--reka-context-menu-trigger-height": "var(--reka-popper-anchor-height)"
101
+ },
102
+ onCloseAutoFocus: b[0] || (b[0] = (m) => {
103
+ !m.defaultPrevented && l.value && m.preventDefault(), l.value = !1;
104
+ }),
105
+ onInteractOutside: b[1] || (b[1] = (m) => {
106
+ m.detail.originalEvent.button === 2 && m.target === e(r).triggerElement.value && m.preventDefault(), !m.defaultPrevented && !e(r).modal.value && (l.value = !0);
107
+ })
108
+ }), {
109
+ default: i(() => [
110
+ p(_.$slots, "default")
111
+ ]),
112
+ _: 3
113
+ }, 16));
114
+ }
115
+ }), ye = /* @__PURE__ */ c({
116
+ __name: "ContextMenuGroup",
117
+ props: {
118
+ asChild: { type: Boolean },
119
+ as: {}
120
+ },
121
+ setup(o) {
122
+ const n = o;
123
+ return g(), (t, a) => (u(), d(e(H), h(y(n)), {
124
+ default: i(() => [
125
+ p(t.$slots, "default")
126
+ ]),
127
+ _: 3
128
+ }, 16));
129
+ }
130
+ }), ge = /* @__PURE__ */ c({
131
+ __name: "ContextMenuItem",
132
+ props: {
133
+ disabled: { type: Boolean },
134
+ textValue: {},
135
+ asChild: { type: Boolean },
136
+ as: {}
137
+ },
138
+ emits: ["select"],
139
+ setup(o, { emit: n }) {
140
+ const t = o, s = P(n);
141
+ return g(), (r, l) => (u(), d(e(X), h(y({ ...t, ...e(s) })), {
142
+ default: i(() => [
143
+ p(r.$slots, "default")
144
+ ]),
145
+ _: 3
146
+ }, 16));
147
+ }
148
+ }), A = /* @__PURE__ */ c({
149
+ __name: "ContextMenuItemIndicator",
150
+ props: {
151
+ forceMount: { type: Boolean },
152
+ asChild: { type: Boolean },
153
+ as: {}
154
+ },
155
+ setup(o) {
156
+ const n = o;
157
+ return g(), (t, a) => (u(), d(e(Y), h(y(n)), {
158
+ default: i(() => [
159
+ p(t.$slots, "default")
160
+ ]),
161
+ _: 3
162
+ }, 16));
163
+ }
164
+ }), xe = /* @__PURE__ */ c({
165
+ __name: "ContextMenuLabel",
166
+ props: {
167
+ asChild: { type: Boolean },
168
+ as: {}
169
+ },
170
+ setup(o) {
171
+ const n = o;
172
+ return g(), (t, a) => (u(), d(e(J), h(y(n)), {
173
+ default: i(() => [
174
+ p(t.$slots, "default")
175
+ ]),
176
+ _: 3
177
+ }, 16));
178
+ }
179
+ }), Ce = /* @__PURE__ */ c({
180
+ __name: "ContextMenuPortal",
181
+ props: {
182
+ to: {},
183
+ disabled: { type: Boolean },
184
+ defer: { type: Boolean },
185
+ forceMount: { type: Boolean }
186
+ },
187
+ setup(o) {
188
+ const n = o;
189
+ return (t, a) => (u(), d(e(Q), h(y(n)), {
190
+ default: i(() => [
191
+ p(t.$slots, "default")
192
+ ]),
193
+ _: 3
194
+ }, 16));
195
+ }
196
+ }), be = /* @__PURE__ */ c({
197
+ __name: "ContextMenuRadioGroup",
198
+ props: {
199
+ modelValue: {},
200
+ asChild: { type: Boolean },
201
+ as: {}
202
+ },
203
+ emits: ["update:modelValue"],
204
+ setup(o, { emit: n }) {
205
+ const t = o, s = P(n);
206
+ return g(), (r, l) => (u(), d(e(Z), h(y({ ...t, ...e(s) })), {
207
+ default: i(() => [
208
+ p(r.$slots, "default")
209
+ ]),
210
+ _: 3
211
+ }, 16));
212
+ }
213
+ }), Be = /* @__PURE__ */ c({
214
+ __name: "ContextMenuRadioItem",
215
+ props: {
216
+ value: {},
217
+ disabled: { type: Boolean },
218
+ textValue: {},
219
+ asChild: { type: Boolean },
220
+ as: {}
221
+ },
222
+ emits: ["select"],
223
+ setup(o, { emit: n }) {
224
+ const t = o, s = P(n);
225
+ return g(), (r, l) => (u(), d(e(ee), h(y({ ...t, ...e(s) })), {
226
+ default: i(() => [
227
+ p(r.$slots, "default")
228
+ ]),
229
+ _: 3
230
+ }, 16));
231
+ }
232
+ }), ve = /* @__PURE__ */ c({
233
+ __name: "ContextMenuSeparator",
234
+ props: {
235
+ asChild: { type: Boolean },
236
+ as: {}
237
+ },
238
+ setup(o) {
239
+ const n = o;
240
+ return g(), (t, a) => (u(), d(e(te), h(y(n)), {
241
+ default: i(() => [
242
+ p(t.$slots, "default")
243
+ ]),
244
+ _: 3
245
+ }, 16));
246
+ }
247
+ }), $e = /* @__PURE__ */ c({
248
+ __name: "ContextMenuSub",
249
+ props: {
250
+ defaultOpen: { type: Boolean },
251
+ open: { type: Boolean, default: void 0 }
252
+ },
253
+ emits: ["update:open"],
254
+ setup(o, { emit: n }) {
255
+ const t = o, a = n;
256
+ g();
257
+ const s = ue(t, "open", a, {
258
+ defaultValue: t.defaultOpen,
259
+ passive: t.open === void 0
260
+ });
261
+ return (r, l) => (u(), d(e(oe), {
262
+ open: e(s),
263
+ "onUpdate:open": l[0] || (l[0] = (_) => T(s) ? s.value = _ : null)
264
+ }, {
265
+ default: i(() => [
266
+ p(r.$slots, "default", { open: e(s) })
267
+ ]),
268
+ _: 3
269
+ }, 8, ["open"]));
270
+ }
271
+ }), we = /* @__PURE__ */ c({
272
+ __name: "ContextMenuSubContent",
273
+ props: {
274
+ forceMount: { type: Boolean },
275
+ loop: { type: Boolean },
276
+ sideOffset: {},
277
+ alignOffset: {},
278
+ avoidCollisions: { type: Boolean },
279
+ collisionBoundary: {},
280
+ collisionPadding: {},
281
+ arrowPadding: {},
282
+ sticky: {},
283
+ hideWhenDetached: { type: Boolean },
284
+ positionStrategy: {},
285
+ updatePositionStrategy: {},
286
+ disableUpdateOnLayoutShift: { type: Boolean },
287
+ prioritizePosition: { type: Boolean },
288
+ reference: {},
289
+ asChild: { type: Boolean },
290
+ as: {}
291
+ },
292
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
293
+ setup(o, { emit: n }) {
294
+ const s = C(o, n);
295
+ return g(), (r, l) => (u(), d(e(ne), x(e(s), { style: {
296
+ "--reka-context-menu-content-transform-origin": "var(--reka-popper-transform-origin)",
297
+ "--reka-context-menu-content-available-width": "var(--reka-popper-available-width)",
298
+ "--reka-context-menu-content-available-height": "var(--reka-popper-available-height)",
299
+ "--reka-context-menu-trigger-width": "var(--reka-popper-anchor-width)",
300
+ "--reka-context-menu-trigger-height": "var(--reka-popper-anchor-height)"
301
+ } }), {
302
+ default: i(() => [
303
+ p(r.$slots, "default")
304
+ ]),
305
+ _: 3
306
+ }, 16));
307
+ }
308
+ }), Me = /* @__PURE__ */ c({
309
+ __name: "ContextMenuSubTrigger",
310
+ props: {
311
+ disabled: { type: Boolean },
312
+ textValue: {},
313
+ asChild: { type: Boolean },
314
+ as: {}
315
+ },
316
+ setup(o) {
317
+ const n = o;
318
+ return g(), (t, a) => (u(), d(e(se), h(y(n)), {
319
+ default: i(() => [
320
+ p(t.$slots, "default")
321
+ ]),
322
+ _: 3
323
+ }, 16));
324
+ }
325
+ });
326
+ function F(o) {
327
+ return o.pointerType !== "mouse";
328
+ }
329
+ const Pe = /* @__PURE__ */ c({
330
+ inheritAttrs: !1,
331
+ __name: "ContextMenuTrigger",
332
+ props: {
333
+ disabled: { type: Boolean, default: !1 },
334
+ asChild: { type: Boolean },
335
+ as: { default: "span" }
336
+ },
337
+ setup(o) {
338
+ const n = o, { disabled: t } = V(n), { forwardRef: a, currentElement: s } = g(), r = R(), l = M({ x: 0, y: 0 }), _ = L(() => ({
339
+ getBoundingClientRect: () => ({
340
+ width: 0,
341
+ height: 0,
342
+ left: l.value.x,
343
+ right: l.value.x,
344
+ top: l.value.y,
345
+ bottom: l.value.y,
346
+ ...l.value
347
+ })
348
+ })), b = M(0);
349
+ function m() {
350
+ window.clearTimeout(b.value);
351
+ }
352
+ function w(f) {
353
+ l.value = { x: f.clientX, y: f.clientY }, r.onOpenChange(!0);
354
+ }
355
+ async function O(f) {
356
+ t.value || (await k(), f.defaultPrevented || (m(), w(f), f.preventDefault()));
357
+ }
358
+ async function z(f) {
359
+ t.value || (await k(), F(f) && !f.defaultPrevented && (m(), b.value = window.setTimeout(() => w(f), 700)));
360
+ }
361
+ async function S(f) {
362
+ t.value || (await k(), F(f) && !f.defaultPrevented && m());
363
+ }
364
+ return G(() => {
365
+ s.value && (r.triggerElement.value = s.value);
366
+ }), (f, ke) => (u(), D(U, null, [
367
+ v(e(ae), {
368
+ as: "template",
369
+ reference: _.value
370
+ }, null, 8, ["reference"]),
371
+ v(e(de), x({
372
+ ref: e(a),
373
+ as: f.as,
374
+ "as-child": f.asChild,
375
+ "data-state": e(r).open.value ? "open" : "closed",
376
+ "data-disabled": e(t) ? "" : void 0,
377
+ style: {
378
+ WebkitTouchCallout: "none",
379
+ pointerEvents: "auto"
380
+ }
381
+ }, f.$attrs, {
382
+ onContextmenu: O,
383
+ onPointerdown: z,
384
+ onPointermove: S,
385
+ onPointercancel: S,
386
+ onPointerup: S
387
+ }), {
388
+ default: i(() => [
389
+ p(f.$slots, "default")
390
+ ]),
391
+ _: 3
392
+ }, 16, ["as", "as-child", "data-state", "data-disabled"])
393
+ ], 64));
394
+ }
395
+ }), We = /* @__PURE__ */ c({
396
+ __name: "ContextMenu",
397
+ props: {
398
+ dir: {},
399
+ modal: { type: Boolean }
400
+ },
401
+ emits: ["update:open"],
402
+ setup(o, { emit: n }) {
403
+ const s = C(o, n);
404
+ return (r, l) => (u(), d(e(_e), h(y(e(s))), {
405
+ default: i(() => [
406
+ p(r.$slots, "default")
407
+ ]),
408
+ _: 3
409
+ }, 16));
410
+ }
411
+ }), Oe = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, Ke = /* @__PURE__ */ c({
412
+ __name: "ContextMenuCheckboxItem",
413
+ props: {
414
+ modelValue: { type: [Boolean, String] },
415
+ disabled: { type: Boolean },
416
+ textValue: {},
417
+ asChild: { type: Boolean },
418
+ as: { type: [String, Object, Function] },
419
+ class: {}
420
+ },
421
+ emits: ["select", "update:modelValue"],
422
+ setup(o, { emit: n }) {
423
+ const t = o, a = n, s = $(t, "class"), r = C(s, a);
424
+ return (l, _) => (u(), d(e(fe), x(e(r), {
425
+ class: e(B)(
426
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
427
+ t.class
428
+ )
429
+ }), {
430
+ default: i(() => [
431
+ j("span", Oe, [
432
+ v(e(A), null, {
433
+ default: i(() => [
434
+ v(e(ie), { class: "h-4 w-4" })
435
+ ]),
436
+ _: 1
437
+ })
438
+ ]),
439
+ p(l.$slots, "default")
440
+ ]),
441
+ _: 3
442
+ }, 16, ["class"]));
443
+ }
444
+ }), Ne = /* @__PURE__ */ c({
445
+ __name: "ContextMenuContent",
446
+ props: {
447
+ forceMount: { type: Boolean },
448
+ loop: { type: Boolean },
449
+ alignOffset: {},
450
+ avoidCollisions: { type: Boolean },
451
+ collisionBoundary: {},
452
+ collisionPadding: {},
453
+ sticky: {},
454
+ hideWhenDetached: { type: Boolean },
455
+ positionStrategy: {},
456
+ disableUpdateOnLayoutShift: { type: Boolean },
457
+ prioritizePosition: { type: Boolean },
458
+ reference: {},
459
+ asChild: { type: Boolean },
460
+ as: { type: [String, Object, Function] },
461
+ class: {}
462
+ },
463
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
464
+ setup(o, { emit: n }) {
465
+ const t = o, a = n, s = $(t, "class"), r = C(s, a);
466
+ return (l, _) => (u(), d(e(Ce), null, {
467
+ default: i(() => [
468
+ v(e(he), x(e(r), {
469
+ class: e(B)(
470
+ "z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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",
471
+ t.class
472
+ )
473
+ }), {
474
+ default: i(() => [
475
+ p(l.$slots, "default")
476
+ ]),
477
+ _: 3
478
+ }, 16, ["class"])
479
+ ]),
480
+ _: 3
481
+ }));
482
+ }
483
+ }), qe = /* @__PURE__ */ c({
484
+ __name: "ContextMenuGroup",
485
+ props: {
486
+ asChild: { type: Boolean },
487
+ as: { type: [String, Object, Function] }
488
+ },
489
+ setup(o) {
490
+ const n = o;
491
+ return (t, a) => (u(), d(e(ye), h(y(n)), {
492
+ default: i(() => [
493
+ p(t.$slots, "default")
494
+ ]),
495
+ _: 3
496
+ }, 16));
497
+ }
498
+ }), He = /* @__PURE__ */ c({
499
+ __name: "ContextMenuItem",
500
+ props: {
501
+ disabled: { type: Boolean },
502
+ textValue: {},
503
+ asChild: { type: Boolean },
504
+ as: { type: [String, Object, Function] },
505
+ class: {},
506
+ inset: { type: Boolean }
507
+ },
508
+ emits: ["select"],
509
+ setup(o, { emit: n }) {
510
+ const t = o, a = n, s = $(t, "class"), r = C(s, a);
511
+ return (l, _) => (u(), d(e(ge), x(e(r), {
512
+ class: e(B)(
513
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
514
+ l.inset && "pl-8",
515
+ t.class
516
+ )
517
+ }), {
518
+ default: i(() => [
519
+ p(l.$slots, "default")
520
+ ]),
521
+ _: 3
522
+ }, 16, ["class"]));
523
+ }
524
+ }), Xe = /* @__PURE__ */ c({
525
+ __name: "ContextMenuLabel",
526
+ props: {
527
+ asChild: { type: Boolean },
528
+ as: { type: [String, Object, Function] },
529
+ class: {},
530
+ inset: { type: Boolean }
531
+ },
532
+ setup(o) {
533
+ const n = o, t = $(n, "class");
534
+ return (a, s) => (u(), d(e(xe), x(e(t), {
535
+ class: e(B)(
536
+ "px-2 py-1.5 text-sm font-semibold text-foreground",
537
+ a.inset && "pl-8",
538
+ n.class
539
+ )
540
+ }), {
541
+ default: i(() => [
542
+ p(a.$slots, "default")
543
+ ]),
544
+ _: 3
545
+ }, 16, ["class"]));
546
+ }
547
+ }), Ye = /* @__PURE__ */ c({
548
+ __name: "ContextMenuRadioGroup",
549
+ props: {
550
+ modelValue: {},
551
+ asChild: { type: Boolean },
552
+ as: { type: [String, Object, Function] }
553
+ },
554
+ emits: ["update:modelValue"],
555
+ setup(o, { emit: n }) {
556
+ const s = C(o, n);
557
+ return (r, l) => (u(), d(e(be), h(y(e(s))), {
558
+ default: i(() => [
559
+ p(r.$slots, "default")
560
+ ]),
561
+ _: 3
562
+ }, 16));
563
+ }
564
+ }), Se = { class: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center" }, Je = /* @__PURE__ */ c({
565
+ __name: "ContextMenuRadioItem",
566
+ props: {
567
+ value: {},
568
+ disabled: { type: Boolean },
569
+ textValue: {},
570
+ asChild: { type: Boolean },
571
+ as: { type: [String, Object, Function] },
572
+ class: {}
573
+ },
574
+ emits: ["select"],
575
+ setup(o, { emit: n }) {
576
+ const t = o, a = n, s = $(t, "class"), r = C(s, a);
577
+ return (l, _) => (u(), d(e(Be), x(e(r), {
578
+ class: e(B)(
579
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
580
+ t.class
581
+ )
582
+ }), {
583
+ default: i(() => [
584
+ j("span", Se, [
585
+ v(e(A), null, {
586
+ default: i(() => [
587
+ v(e(ce), { class: "h-2 w-2 fill-current" })
588
+ ]),
589
+ _: 1
590
+ })
591
+ ]),
592
+ p(l.$slots, "default")
593
+ ]),
594
+ _: 3
595
+ }, 16, ["class"]));
596
+ }
597
+ }), Qe = /* @__PURE__ */ c({
598
+ __name: "ContextMenuSeparator",
599
+ props: {
600
+ asChild: { type: Boolean },
601
+ as: { type: [String, Object, Function] },
602
+ class: {}
603
+ },
604
+ setup(o) {
605
+ const n = o, t = $(n, "class");
606
+ return (a, s) => (u(), d(e(ve), x(e(t), {
607
+ class: e(B)("-mx-1 my-1 h-px bg-border", n.class)
608
+ }), null, 16, ["class"]));
609
+ }
610
+ }), Ze = /* @__PURE__ */ c({
611
+ __name: "ContextMenuShortcut",
612
+ props: {
613
+ class: {}
614
+ },
615
+ setup(o) {
616
+ const n = o;
617
+ return (t, a) => (u(), D("span", {
618
+ class: W(e(B)("ml-auto text-xs tracking-widest text-muted-foreground", n.class))
619
+ }, [
620
+ p(t.$slots, "default")
621
+ ], 2));
622
+ }
623
+ }), et = /* @__PURE__ */ c({
624
+ __name: "ContextMenuSub",
625
+ props: {
626
+ defaultOpen: { type: Boolean },
627
+ open: { type: Boolean }
628
+ },
629
+ emits: ["update:open"],
630
+ setup(o, { emit: n }) {
631
+ const s = C(o, n);
632
+ return (r, l) => (u(), d(e($e), h(y(e(s))), {
633
+ default: i(() => [
634
+ p(r.$slots, "default")
635
+ ]),
636
+ _: 3
637
+ }, 16));
638
+ }
639
+ }), tt = /* @__PURE__ */ c({
640
+ __name: "ContextMenuSubContent",
641
+ props: {
642
+ forceMount: { type: Boolean },
643
+ loop: { type: Boolean },
644
+ sideOffset: {},
645
+ alignOffset: {},
646
+ avoidCollisions: { type: Boolean },
647
+ collisionBoundary: {},
648
+ collisionPadding: {},
649
+ arrowPadding: {},
650
+ sticky: {},
651
+ hideWhenDetached: { type: Boolean },
652
+ positionStrategy: {},
653
+ updatePositionStrategy: {},
654
+ disableUpdateOnLayoutShift: { type: Boolean },
655
+ prioritizePosition: { type: Boolean },
656
+ reference: {},
657
+ asChild: { type: Boolean },
658
+ as: { type: [String, Object, Function] },
659
+ class: {}
660
+ },
661
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
662
+ setup(o, { emit: n }) {
663
+ const t = o, a = n, s = $(t, "class"), r = C(s, a);
664
+ return (l, _) => (u(), d(e(we), x(e(r), {
665
+ class: e(B)(
666
+ "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",
667
+ t.class
668
+ )
669
+ }), {
670
+ default: i(() => [
671
+ p(l.$slots, "default")
672
+ ]),
673
+ _: 3
674
+ }, 16, ["class"]));
675
+ }
676
+ }), ot = /* @__PURE__ */ c({
677
+ __name: "ContextMenuSubTrigger",
678
+ props: {
679
+ disabled: { type: Boolean },
680
+ textValue: {},
681
+ asChild: { type: Boolean },
682
+ as: { type: [String, Object, Function] },
683
+ class: {},
684
+ inset: { type: Boolean }
685
+ },
686
+ setup(o) {
687
+ const n = o, t = $(n, "class"), a = E(t);
688
+ return (s, r) => (u(), d(e(Me), x(e(a), {
689
+ class: e(B)(
690
+ "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
691
+ s.inset && "pl-8",
692
+ n.class
693
+ )
694
+ }), {
695
+ default: i(() => [
696
+ p(s.$slots, "default"),
697
+ v(e(pe), { class: "ml-auto h-4 w-4" })
698
+ ]),
699
+ _: 3
700
+ }, 16, ["class"]));
701
+ }
702
+ }), nt = /* @__PURE__ */ c({
703
+ __name: "ContextMenuTrigger",
704
+ props: {
705
+ disabled: { type: Boolean },
706
+ asChild: { type: Boolean },
707
+ as: { type: [String, Object, Function] }
708
+ },
709
+ setup(o) {
710
+ const t = E(o);
711
+ return (a, s) => (u(), d(e(Pe), h(y(e(t))), {
712
+ default: i(() => [
713
+ p(a.$slots, "default")
714
+ ]),
715
+ _: 3
716
+ }, 16));
717
+ }
718
+ });
719
+ export {
720
+ We as ContextMenu,
721
+ Ke as ContextMenuCheckboxItem,
722
+ Ne as ContextMenuContent,
723
+ qe as ContextMenuGroup,
724
+ He as ContextMenuItem,
725
+ Xe as ContextMenuLabel,
726
+ Ye as ContextMenuRadioGroup,
727
+ Je as ContextMenuRadioItem,
728
+ Qe as ContextMenuSeparator,
729
+ Ze as ContextMenuShortcut,
730
+ et as ContextMenuSub,
731
+ tt as ContextMenuSubContent,
732
+ ot as ContextMenuSubTrigger,
733
+ nt as ContextMenuTrigger
734
+ };