@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,68 +0,0 @@
1
- import { defineComponent as r, createElementBlock as t, openBlock as c, normalizeClass as n, unref as o, renderSlot as l } from "vue";
2
- import { c as p } from "./utils-SFgRDk1R.js";
3
- const m = /* @__PURE__ */ r({
4
- __name: "Card",
5
- props: {
6
- class: {}
7
- },
8
- setup(s) {
9
- const e = s;
10
- return (a, d) => (c(), t("div", {
11
- class: n(
12
- o(p)(
13
- "rounded-lg border bg-card text-card-foreground shadow-sm",
14
- e.class
15
- )
16
- )
17
- }, [
18
- l(a.$slots, "default")
19
- ], 2));
20
- }
21
- }), f = /* @__PURE__ */ r({
22
- __name: "CardContent",
23
- props: {
24
- class: {}
25
- },
26
- setup(s) {
27
- const e = s;
28
- return (a, d) => (c(), t("div", {
29
- class: n(o(p)("p-6 pt-0", e.class))
30
- }, [
31
- l(a.$slots, "default")
32
- ], 2));
33
- }
34
- }), i = /* @__PURE__ */ r({
35
- __name: "CardHeader",
36
- props: {
37
- class: {}
38
- },
39
- setup(s) {
40
- const e = s;
41
- return (a, d) => (c(), t("div", {
42
- class: n(o(p)("flex flex-col gap-y-1.5 p-6", e.class))
43
- }, [
44
- l(a.$slots, "default")
45
- ], 2));
46
- }
47
- }), g = /* @__PURE__ */ r({
48
- __name: "CardTitle",
49
- props: {
50
- class: {}
51
- },
52
- setup(s) {
53
- const e = s;
54
- return (a, d) => (c(), t("h3", {
55
- class: n(
56
- o(p)("text-2xl font-semibold leading-none tracking-tight", e.class)
57
- )
58
- }, [
59
- l(a.$slots, "default")
60
- ], 2));
61
- }
62
- });
63
- export {
64
- m as _,
65
- f as a,
66
- i as b,
67
- g as c
68
- };
@@ -1,172 +0,0 @@
1
- import { defineComponent as C, computed as h, createBlock as p, openBlock as v, resolveDynamicComponent as j, unref as e, mergeProps as k, withKeys as x, withModifiers as M, withCtx as u, renderSlot as V, createCommentVNode as I, createVNode as y } from "vue";
2
- import { c as K } from "./utils-SFgRDk1R.js";
3
- import { u as N } from "./useForwardPropsEmits-0XKBv1pB.js";
4
- import { u as O } from "./index-BwPb_idr.js";
5
- import { c as q } from "./createContext-CZEfaSVa.js";
6
- import { u as $ } from "./useForwardExpose-DZT6mL_U.js";
7
- import { i as B } from "./nullish-CjWwlQS3.js";
8
- import { i as _ } from "./isValueEqualOrExist-BDSMUv8t.js";
9
- import { u as A } from "./useFormControl-CFVC51Lp.js";
10
- import { _ as D } from "./RovingFocusItem-s7Ug6oxb.js";
11
- import { P as R } from "./Primitive-B3twiLO1.js";
12
- import { _ as L } from "./VisuallyHiddenInput-DvJnsVHt.js";
13
- import { i as T } from "./ohash.D__AXeF1-DX2n0b2C.js";
14
- import { P as z } from "./Presence-CxfTrw6l.js";
15
- import { C as H } from "./check-C2tzJ0Gk.js";
16
- import { r as J } from "./index-OpE2oGce.js";
17
- const [Q, pe] = q("CheckboxGroupRoot");
18
- function b(l) {
19
- return l === "indeterminate";
20
- }
21
- function S(l) {
22
- return b(l) ? "indeterminate" : l ? "checked" : "unchecked";
23
- }
24
- const [U, W] = q("CheckboxRoot"), X = /* @__PURE__ */ C({
25
- inheritAttrs: !1,
26
- __name: "CheckboxRoot",
27
- props: {
28
- defaultValue: { type: [Boolean, String] },
29
- modelValue: { type: [Boolean, String, null], default: void 0 },
30
- disabled: { type: Boolean },
31
- value: { default: "on" },
32
- id: {},
33
- asChild: { type: Boolean },
34
- as: { default: "button" },
35
- name: {},
36
- required: { type: Boolean }
37
- },
38
- emits: ["update:modelValue"],
39
- setup(l, { emit: n }) {
40
- const t = l, r = n, { forwardRef: c, currentElement: m } = $(), o = Q(null), s = O(t, "modelValue", r, {
41
- defaultValue: t.defaultValue,
42
- passive: t.modelValue === void 0
43
- }), d = h(() => (o == null ? void 0 : o.disabled.value) || t.disabled), i = h(() => B(o == null ? void 0 : o.modelValue.value) ? s.value === "indeterminate" ? "indeterminate" : s.value : _(o.modelValue.value, t.value));
44
- function E() {
45
- if (B(o == null ? void 0 : o.modelValue.value))
46
- s.value = b(s.value) ? !0 : !s.value;
47
- else {
48
- const a = [...o.modelValue.value || []];
49
- if (_(a, t.value)) {
50
- const g = a.findIndex((f) => T(f, t.value));
51
- a.splice(g, 1);
52
- } else
53
- a.push(t.value);
54
- o.modelValue.value = a;
55
- }
56
- }
57
- const F = A(m), P = h(() => {
58
- var a;
59
- return t.id && m.value ? (a = document.querySelector(`[for="${t.id}"]`)) == null ? void 0 : a.innerText : void 0;
60
- });
61
- return W({
62
- disabled: d,
63
- state: i
64
- }), (a, g) => {
65
- var f, w;
66
- return v(), p(j((f = e(o)) != null && f.rovingFocus.value ? e(D) : e(R)), k(a.$attrs, {
67
- id: a.id,
68
- ref: e(c),
69
- role: "checkbox",
70
- "as-child": a.asChild,
71
- as: a.as,
72
- type: a.as === "button" ? "button" : void 0,
73
- "aria-checked": e(b)(i.value) ? "mixed" : i.value,
74
- "aria-required": a.required,
75
- "aria-label": a.$attrs["aria-label"] || P.value,
76
- "data-state": e(S)(i.value),
77
- "data-disabled": d.value ? "" : void 0,
78
- disabled: d.value,
79
- focusable: (w = e(o)) != null && w.rovingFocus.value ? !d.value : void 0,
80
- onKeydown: x(M(() => {
81
- }, ["prevent"]), ["enter"]),
82
- onClick: E
83
- }), {
84
- default: u(() => [
85
- V(a.$slots, "default", {
86
- modelValue: e(s),
87
- state: i.value
88
- }),
89
- e(F) && a.name && !e(o) ? (v(), p(e(L), {
90
- key: 0,
91
- type: "checkbox",
92
- checked: !!i.value,
93
- name: a.name,
94
- value: a.value,
95
- disabled: d.value,
96
- required: a.required
97
- }, null, 8, ["checked", "name", "value", "disabled", "required"])) : I("", !0)
98
- ]),
99
- _: 3
100
- }, 16, ["id", "as-child", "as", "type", "aria-checked", "aria-required", "aria-label", "data-state", "data-disabled", "disabled", "focusable", "onKeydown"]);
101
- };
102
- }
103
- }), Y = /* @__PURE__ */ C({
104
- __name: "CheckboxIndicator",
105
- props: {
106
- forceMount: { type: Boolean },
107
- asChild: { type: Boolean },
108
- as: { default: "span" }
109
- },
110
- setup(l) {
111
- const { forwardRef: n } = $(), t = U();
112
- return (r, c) => (v(), p(e(z), {
113
- present: r.forceMount || e(b)(e(t).state.value) || e(t).state.value === !0
114
- }, {
115
- default: u(() => [
116
- y(e(R), k({
117
- ref: e(n),
118
- "data-state": e(S)(e(t).state.value),
119
- "data-disabled": e(t).disabled.value ? "" : void 0,
120
- style: { pointerEvents: "none" },
121
- "as-child": r.asChild,
122
- as: r.as
123
- }, r.$attrs), {
124
- default: u(() => [
125
- V(r.$slots, "default")
126
- ]),
127
- _: 3
128
- }, 16, ["data-state", "data-disabled", "as-child", "as"])
129
- ]),
130
- _: 3
131
- }, 8, ["present"]));
132
- }
133
- }), ve = /* @__PURE__ */ C({
134
- __name: "Checkbox",
135
- props: {
136
- defaultValue: { type: [Boolean, String] },
137
- modelValue: { type: [Boolean, String, null] },
138
- disabled: { type: Boolean },
139
- value: {},
140
- id: {},
141
- asChild: { type: Boolean },
142
- as: { type: [String, Object, Function] },
143
- name: {},
144
- required: { type: Boolean },
145
- class: {}
146
- },
147
- emits: ["update:modelValue"],
148
- setup(l, { emit: n }) {
149
- const t = l, r = n, c = J(t, "class"), m = N(c, r);
150
- return (o, s) => (v(), p(e(X), k(e(m), {
151
- class: e(K)(
152
- "peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
153
- t.class
154
- )
155
- }), {
156
- default: u(() => [
157
- y(e(Y), { class: "flex h-full w-full items-center justify-center text-current" }, {
158
- default: u(() => [
159
- V(o.$slots, "default", {}, () => [
160
- y(e(H), { class: "h-4 w-4" })
161
- ])
162
- ]),
163
- _: 3
164
- })
165
- ]),
166
- _: 3
167
- }, 16, ["class"]));
168
- }
169
- });
170
- export {
171
- ve as _
172
- };
@@ -1,154 +0,0 @@
1
- import { defineComponent as b, toRefs as x, createBlock as y, openBlock as C, unref as e, withCtx as m, renderSlot as _, ref as u, computed as w, watch as P, nextTick as A, onMounted as D, createVNode as F, mergeProps as I, createCommentVNode as M } from "vue";
2
- import { u as T, e as H } from "./index-BwPb_idr.js";
3
- import { u as V } from "./useId-reAg216X.js";
4
- import { u as g } from "./useForwardExpose-DZT6mL_U.js";
5
- import { P as E } from "./Presence-CxfTrw6l.js";
6
- import { P as k } from "./Primitive-B3twiLO1.js";
7
- import { c as q } from "./createContext-CZEfaSVa.js";
8
- const [$, S] = q("CollapsibleRoot"), U = /* @__PURE__ */ b({
9
- __name: "CollapsibleRoot",
10
- props: {
11
- defaultOpen: { type: Boolean, default: !1 },
12
- open: { type: Boolean, default: void 0 },
13
- disabled: { type: Boolean },
14
- unmountOnHide: { type: Boolean, default: !0 },
15
- asChild: { type: Boolean },
16
- as: {}
17
- },
18
- emits: ["update:open"],
19
- setup(l, { expose: d, emit: s }) {
20
- const n = l, o = T(n, "open", s, {
21
- defaultValue: n.defaultOpen,
22
- passive: n.open === void 0
23
- }), { disabled: i, unmountOnHide: p } = x(n);
24
- return S({
25
- contentId: "",
26
- disabled: i,
27
- open: o,
28
- unmountOnHide: p,
29
- onOpenToggle: () => {
30
- i.value || (o.value = !o.value);
31
- }
32
- }), d({ open: o }), g(), (r, f) => (C(), y(e(k), {
33
- as: r.as,
34
- "as-child": n.asChild,
35
- "data-state": e(o) ? "open" : "closed",
36
- "data-disabled": e(i) ? "" : void 0
37
- }, {
38
- default: m(() => [
39
- _(r.$slots, "default", { open: e(o) })
40
- ]),
41
- _: 3
42
- }, 8, ["as", "as-child", "data-state", "data-disabled"]));
43
- }
44
- }), W = /* @__PURE__ */ b({
45
- inheritAttrs: !1,
46
- __name: "CollapsibleContent",
47
- props: {
48
- forceMount: { type: Boolean },
49
- asChild: { type: Boolean },
50
- as: {}
51
- },
52
- emits: ["contentFound"],
53
- setup(l, { emit: d }) {
54
- const s = l, n = d, a = $();
55
- a.contentId || (a.contentId = V(void 0, "reka-collapsible-content"));
56
- const o = u(), { forwardRef: i, currentElement: p } = g(), r = u(0), f = u(0), B = w(() => a.open.value), v = u(B.value), c = u();
57
- P(
58
- () => {
59
- var t;
60
- return [B.value, (t = o.value) == null ? void 0 : t.present];
61
- },
62
- async () => {
63
- await A();
64
- const t = p.value;
65
- if (!t)
66
- return;
67
- c.value = c.value || {
68
- transitionDuration: t.style.transitionDuration,
69
- animationName: t.style.animationName
70
- }, t.style.transitionDuration = "0s", t.style.animationName = "none";
71
- const h = t.getBoundingClientRect();
72
- f.value = h.height, r.value = h.width, v.value || (t.style.transitionDuration = c.value.transitionDuration, t.style.animationName = c.value.animationName);
73
- },
74
- {
75
- immediate: !0
76
- }
77
- );
78
- const N = w(() => v.value && a.open.value);
79
- return D(() => {
80
- requestAnimationFrame(() => {
81
- v.value = !1;
82
- });
83
- }), H(p, "beforematch", (t) => {
84
- requestAnimationFrame(() => {
85
- a.onOpenToggle(), n("contentFound");
86
- });
87
- }), (t, h) => (C(), y(e(E), {
88
- ref_key: "presentRef",
89
- ref: o,
90
- present: t.forceMount || e(a).open.value,
91
- "force-mount": !0
92
- }, {
93
- default: m(({ present: O }) => {
94
- var R;
95
- return [
96
- F(e(k), I(t.$attrs, {
97
- id: e(a).contentId,
98
- ref: e(i),
99
- "as-child": s.asChild,
100
- as: t.as,
101
- hidden: O ? void 0 : e(a).unmountOnHide.value ? "" : "until-found",
102
- "data-state": N.value ? void 0 : e(a).open.value ? "open" : "closed",
103
- "data-disabled": (R = e(a).disabled) != null && R.value ? "" : void 0,
104
- style: {
105
- "--reka-collapsible-content-height": `${f.value}px`,
106
- "--reka-collapsible-content-width": `${r.value}px`
107
- }
108
- }), {
109
- default: m(() => [
110
- !e(a).unmountOnHide.value || O ? _(t.$slots, "default", { key: 0 }) : M("", !0)
111
- ]),
112
- _: 2
113
- }, 1040, ["id", "as-child", "as", "hidden", "data-state", "data-disabled", "style"])
114
- ];
115
- }),
116
- _: 3
117
- }, 8, ["present"]));
118
- }
119
- }), X = /* @__PURE__ */ b({
120
- __name: "CollapsibleTrigger",
121
- props: {
122
- asChild: { type: Boolean },
123
- as: { default: "button" }
124
- },
125
- setup(l) {
126
- const d = l;
127
- g();
128
- const s = $();
129
- return (n, a) => {
130
- var o, i;
131
- return C(), y(e(k), {
132
- type: n.as === "button" ? "button" : void 0,
133
- as: n.as,
134
- "as-child": d.asChild,
135
- "aria-controls": e(s).contentId,
136
- "aria-expanded": e(s).open.value,
137
- "data-state": e(s).open.value ? "open" : "closed",
138
- "data-disabled": (o = e(s).disabled) != null && o.value ? "" : void 0,
139
- disabled: (i = e(s).disabled) == null ? void 0 : i.value,
140
- onClick: e(s).onOpenToggle
141
- }, {
142
- default: m(() => [
143
- _(n.$slots, "default")
144
- ]),
145
- _: 3
146
- }, 8, ["type", "as", "as-child", "aria-controls", "aria-expanded", "data-state", "data-disabled", "disabled", "onClick"]);
147
- };
148
- }
149
- });
150
- export {
151
- U as _,
152
- W as a,
153
- X as b
154
- };
@@ -1,55 +0,0 @@
1
- import { ref as s, provide as h, inject as k, defineComponent as m, watch as w, h as u, watchEffect as x, markRaw as T, computed as f } from "vue";
2
- import { u as v } from "./usePrimitiveElement-BjwUvHih.js";
3
- import { S as p } from "./Primitive-B3twiLO1.js";
4
- const d = "data-reka-collection-item";
5
- function z(M = {}) {
6
- const { key: A = "", isProvider: y = !1 } = M, c = `${A}CollectionProvider`;
7
- let e;
8
- if (y) {
9
- const o = s(/* @__PURE__ */ new Map());
10
- e = {
11
- collectionRef: s(),
12
- itemMap: o
13
- }, h(c, e);
14
- } else
15
- e = k(c);
16
- const C = (o = !1) => {
17
- const t = e.collectionRef.value;
18
- if (!t)
19
- return [];
20
- const r = Array.from(t.querySelectorAll(`[${d}]`)), l = Array.from(e.itemMap.value.values()).sort(
21
- (n, a) => r.indexOf(n.ref) - r.indexOf(a.ref)
22
- );
23
- return o ? l : l.filter((n) => n.ref.dataset.disabled !== "");
24
- }, E = m({
25
- name: "CollectionSlot",
26
- setup(o, { slots: t }) {
27
- const { primitiveElement: r, currentElement: i } = v();
28
- return w(i, () => {
29
- e.collectionRef.value = i.value;
30
- }), () => u(p, { ref: r }, t);
31
- }
32
- }), I = m({
33
- name: "CollectionItem",
34
- inheritAttrs: !1,
35
- props: {
36
- value: {
37
- // It accepts any value
38
- validator: () => !0
39
- }
40
- },
41
- setup(o, { slots: t, attrs: r }) {
42
- const { primitiveElement: i, currentElement: l } = v();
43
- return x((n) => {
44
- if (l.value) {
45
- const a = T(l.value);
46
- e.itemMap.value.set(a, { ref: l.value, value: o.value }), n(() => e.itemMap.value.delete(a));
47
- }
48
- }), () => u(p, { ...r, [d]: "", ref: i }, t);
49
- }
50
- }), R = f(() => Array.from(e.itemMap.value.values())), S = f(() => e.itemMap.value.size);
51
- return { getItems: C, reactiveItems: R, itemMapSize: S, CollectionSlot: E, CollectionItem: I };
52
- }
53
- export {
54
- z as u
55
- };
@@ -1,6 +0,0 @@
1
- import "vue";
2
- import { c as o } from "./createContext-CZEfaSVa.js";
3
- const [e, i] = o("ConfigProvider");
4
- export {
5
- e as i
6
- };
@@ -1,68 +0,0 @@
1
- import { defineComponent as p, createBlock as u, openBlock as m, unref as t, normalizeProps as g, guardReactiveProps as y, withCtx as o, renderSlot as f, createVNode as e, mergeProps as b, createElementVNode as w } from "vue";
2
- import { u as _ } from "./useForwardPropsEmits-0XKBv1pB.js";
3
- import { _ as B, a as $, b as x, c as O } from "./DialogOverlay-Cj3UTjZ8.js";
4
- import { c as h } from "./utils-SFgRDk1R.js";
5
- import { _ as P } from "./DialogPortal-zAvO8zt4.js";
6
- import { X as k } from "./x-Cl6YllUK.js";
7
- import { r as v } from "./index-OpE2oGce.js";
8
- const S = /* @__PURE__ */ p({
9
- __name: "Dialog",
10
- props: {
11
- open: { type: Boolean },
12
- defaultOpen: { type: Boolean },
13
- modal: { type: Boolean }
14
- },
15
- emits: ["update:open"],
16
- setup(a, { emit: s }) {
17
- const r = _(a, s);
18
- return (i, l) => (m(), u(t(B), g(y(t(r))), {
19
- default: o(() => [
20
- f(i.$slots, "default")
21
- ]),
22
- _: 3
23
- }, 16));
24
- }
25
- }), V = /* @__PURE__ */ p({
26
- __name: "DialogContent",
27
- props: {
28
- forceMount: { type: Boolean },
29
- trapFocus: { type: Boolean },
30
- disableOutsidePointerEvents: { type: Boolean },
31
- asChild: { type: Boolean },
32
- as: { type: [String, Object, Function] },
33
- class: {}
34
- },
35
- emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
36
- setup(a, { emit: s }) {
37
- const n = a, d = s, r = v(n, "class"), i = _(r, d);
38
- return (l, c) => (m(), u(t(P), null, {
39
- default: o(() => [
40
- e(t($), { class: "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }),
41
- e(t(x), b(t(i), {
42
- class: t(h)(
43
- "fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
44
- n.class
45
- )
46
- }), {
47
- default: o(() => [
48
- f(l.$slots, "default"),
49
- e(t(O), { class: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, {
50
- default: o(() => [
51
- e(t(k), { class: "w-4 h-4" }),
52
- c[0] || (c[0] = w("span", { class: "sr-only" }, "Close", -1))
53
- ]),
54
- _: 1,
55
- __: [0]
56
- })
57
- ]),
58
- _: 3
59
- }, 16, ["class"])
60
- ]),
61
- _: 3
62
- }));
63
- }
64
- });
65
- export {
66
- S as _,
67
- V as a
68
- };