@orchidui/dashboard 1.8.1-96 → 1.8.1-98

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 (166) hide show
  1. package/dist/Dashboard/Card/OcCard.js +1 -1
  2. package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
  3. package/dist/{OcCard-B3SCzVwn.js → OcCard-D3be6IMj.js} +58 -54
  4. package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
  5. package/dist/{OcLottieAnimation-DeMoIDaX.js → OcLottieAnimation-BB7AK2AO.js} +62 -62
  6. package/dist/{QuillEditor-hFQ0MJZO.js → QuillEditor-DRwC0sgJ.js} +579 -556
  7. package/dist/index.js +4 -4
  8. package/package.json +3 -265
  9. package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +0 -295
  10. package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +0 -891
  11. package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +0 -68
  12. package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +0 -172
  13. package/dist/CollapsibleTrigger-fCarY5DJ.js +0 -154
  14. package/dist/Collection-COudIl-A.js +0 -55
  15. package/dist/ConfigProvider-7mV0D7Sp.js +0 -6
  16. package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +0 -68
  17. package/dist/DialogOverlay-Cj3UTjZ8.js +0 -309
  18. package/dist/DialogPortal-zAvO8zt4.js +0 -23
  19. package/dist/DialogTrigger-BIF1A4hk.js +0 -72
  20. package/dist/DismissableLayer-C7IJliOb.js +0 -151
  21. package/dist/FocusScope--pJ6bboI.js +0 -121
  22. package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +0 -92
  23. package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +0 -27
  24. package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +0 -51
  25. package/dist/ListboxItem-CjMk-mEX.js +0 -417
  26. package/dist/MenuSubTrigger-CUrxnPwO.js +0 -845
  27. package/dist/OcCodeBlock-CBdVqav7.js +0 -37
  28. package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +0 -394
  29. package/dist/PopperContent-BT3Svcc3.js +0 -1465
  30. package/dist/Presence-CxfTrw6l.js +0 -133
  31. package/dist/Primitive-B3twiLO1.js +0 -44
  32. package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +0 -297
  33. package/dist/RovingFocusGroup-0OHdFQl0.js +0 -92
  34. package/dist/RovingFocusItem-s7Ug6oxb.js +0 -82
  35. package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +0 -1255
  36. package/dist/Separator-DRam5i7g.js +0 -54
  37. package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +0 -27
  38. package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +0 -17
  39. package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +0 -135
  40. package/dist/Teleport-DnUewq5H.js +0 -25
  41. package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +0 -27
  42. package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +0 -426
  43. package/dist/VisuallyHidden-DMAU4heD.js +0 -41
  44. package/dist/VisuallyHiddenInput-DvJnsVHt.js +0 -59
  45. package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
  46. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  47. package/dist/array-CqVTtuYm.js +0 -6
  48. package/dist/arrays-4jDZqbdb.js +0 -20
  49. package/dist/check-C2tzJ0Gk.js +0 -11
  50. package/dist/chevron-down-CnpAlizg.js +0 -13
  51. package/dist/chevron-left-BOwFasou.js +0 -13
  52. package/dist/chevron-right-D308801z.js +0 -13
  53. package/dist/circle-A-6NpYiX.js +0 -13
  54. package/dist/clamp-BL1Rb24G.js +0 -22
  55. package/dist/constant-CuDQlTIy.js +0 -3433
  56. package/dist/createContext-CZEfaSVa.js +0 -17
  57. package/dist/createLucideIcon-eXqDwUWj.js +0 -71
  58. package/dist/ellipsis-CEG9G7eN.js +0 -15
  59. package/dist/getActiveElement-B-HWdUIb.js +0 -11
  60. package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +0 -11
  61. package/dist/index-B3LW8uSH.js +0 -133
  62. package/dist/index-BIlpXuWX.js +0 -3430
  63. package/dist/index-BlGEiPHj.js +0 -1246
  64. package/dist/index-BwPb_idr.js +0 -574
  65. package/dist/index-C9julNQm.js +0 -173
  66. package/dist/index-C_aI-Wfj.js +0 -34
  67. package/dist/index-CumjCvqB.js +0 -5703
  68. package/dist/index-LqWMCtOd.js +0 -809
  69. package/dist/index-OpE2oGce.js +0 -110
  70. package/dist/isValueEqualOrExist-BDSMUv8t.js +0 -8
  71. package/dist/lib/utils.js +0 -5
  72. package/dist/nullish-CjWwlQS3.js +0 -6
  73. package/dist/ohash.D__AXeF1-DX2n0b2C.js +0 -106
  74. package/dist/plus-CgluTYQY.js +0 -14
  75. package/dist/text-zwICaAnx.js +0 -743
  76. package/dist/ui/accordion/index.js +0 -7
  77. package/dist/ui/alert/index.js +0 -64
  78. package/dist/ui/alert-dialog/index.js +0 -356
  79. package/dist/ui/aspect-ratio/index.js +0 -50
  80. package/dist/ui/auto-form/constant.js +0 -5
  81. package/dist/ui/auto-form/dependencies.js +0 -61
  82. package/dist/ui/auto-form/index.js +0 -227
  83. package/dist/ui/auto-form/interface.js +0 -4
  84. package/dist/ui/auto-form/utils.js +0 -89
  85. package/dist/ui/avatar/index.js +0 -189
  86. package/dist/ui/badge/index.js +0 -37
  87. package/dist/ui/breadcrumb/index.js +0 -126
  88. package/dist/ui/button/index.js +0 -55
  89. package/dist/ui/calendar/index.js +0 -15
  90. package/dist/ui/card/index.js +0 -38
  91. package/dist/ui/carousel/index.js +0 -174
  92. package/dist/ui/carousel/interface.js +0 -1
  93. package/dist/ui/carousel/useCarousel.js +0 -1288
  94. package/dist/ui/chart/index.js +0 -8
  95. package/dist/ui/chart/interface.js +0 -1
  96. package/dist/ui/chart-area/index.js +0 -331
  97. package/dist/ui/chart-bar/index.js +0 -490
  98. package/dist/ui/chart-donut/index.js +0 -509
  99. package/dist/ui/chart-line/index.js +0 -110
  100. package/dist/ui/checkbox/index.js +0 -4
  101. package/dist/ui/collapsible/index.js +0 -60
  102. package/dist/ui/combobox/index.js +0 -877
  103. package/dist/ui/command/index.js +0 -323
  104. package/dist/ui/context-menu/index.js +0 -734
  105. package/dist/ui/dialog/index.js +0 -169
  106. package/dist/ui/drawer/index.js +0 -971
  107. package/dist/ui/dropdown-menu/index.js +0 -723
  108. package/dist/ui/form/index.js +0 -13
  109. package/dist/ui/form/injectionKeys.js +0 -4
  110. package/dist/ui/form/useFormField.js +0 -25
  111. package/dist/ui/hover-card/index.js +0 -331
  112. package/dist/ui/input/index.js +0 -4
  113. package/dist/ui/label/index.js +0 -4
  114. package/dist/ui/menubar/index.js +0 -862
  115. package/dist/ui/navigation-menu/index.js +0 -873
  116. package/dist/ui/number-field/index.js +0 -682
  117. package/dist/ui/pagination/index.js +0 -444
  118. package/dist/ui/pin-input/index.js +0 -308
  119. package/dist/ui/popover/index.js +0 -6
  120. package/dist/ui/progress/index.js +0 -137
  121. package/dist/ui/radio-group/index.js +0 -5
  122. package/dist/ui/range-calendar/index.js +0 -986
  123. package/dist/ui/resizable/index.js +0 -1432
  124. package/dist/ui/scroll-area/index.js +0 -775
  125. package/dist/ui/select/index.js +0 -135
  126. package/dist/ui/separator/index.js +0 -4
  127. package/dist/ui/sheet/index.js +0 -188
  128. package/dist/ui/sidebar/index.js +0 -652
  129. package/dist/ui/sidebar/utils.js +0 -12
  130. package/dist/ui/skeleton/index.js +0 -4
  131. package/dist/ui/slider/index.js +0 -478
  132. package/dist/ui/sonner/index.js +0 -892
  133. package/dist/ui/stepper/index.js +0 -442
  134. package/dist/ui/switch/index.js +0 -4
  135. package/dist/ui/table/index.js +0 -153
  136. package/dist/ui/tabs/index.js +0 -280
  137. package/dist/ui/tags-input/index.js +0 -449
  138. package/dist/ui/textarea/index.js +0 -4
  139. package/dist/ui/toast/index.js +0 -738
  140. package/dist/ui/toast/use-toast.js +0 -85
  141. package/dist/ui/toggle/index.js +0 -6
  142. package/dist/ui/toggle-group/index.js +0 -112
  143. package/dist/ui/tooltip/index.js +0 -29
  144. package/dist/useArrowNavigation-BRMPveaB.js +0 -49
  145. package/dist/useBodyScrollLock-CazCRZjZ.js +0 -153
  146. package/dist/useDirection-C3C_TLKm.js +0 -14
  147. package/dist/useFocusGuards-CyjC9cG9.js +0 -26
  148. package/dist/useFormControl-CFVC51Lp.js +0 -11
  149. package/dist/useForwardExpose-DZT6mL_U.js +0 -37
  150. package/dist/useForwardPropsEmits-0XKBv1pB.js +0 -33
  151. package/dist/useGraceArea-D7-GP1ii.js +0 -137
  152. package/dist/useId-reAg216X.js +0 -13
  153. package/dist/useKbd-BJNupnml.js +0 -41
  154. package/dist/useLocale-BfU0LC8Z.js +0 -14
  155. package/dist/useNonce-C1ZOgOp5.js +0 -14
  156. package/dist/usePrimitiveElement-BjwUvHih.js +0 -15
  157. package/dist/useSingleOrMultipleValue-BkTAaaJB.js +0 -43
  158. package/dist/useSize-BnyQ8FZF.js +0 -37
  159. package/dist/useTypeahead-oSidjyFF.js +0 -40
  160. package/dist/utils-DKNaYMZh.js +0 -57
  161. package/dist/utils-Dx9la83v.js +0 -35
  162. package/dist/utils-DxQ_ywGa.js +0 -55
  163. package/dist/utils-SFgRDk1R.js +0 -2748
  164. package/dist/utils-W-UiqiPE.js +0 -1869
  165. package/dist/vee-validate-Cf8JDJ_k.js +0 -2232
  166. package/dist/x-Cl6YllUK.js +0 -14
@@ -1,723 +0,0 @@
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
- };