@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,442 @@
1
+ import { defineComponent as p, toRefs as H, ref as A, computed as b, watch as L, nextTick as U, createBlock as c, openBlock as f, unref as e, withCtx as v, renderSlot as _, createElementVNode as q, toDisplayString as T, mergeProps as g, normalizeProps as R, guardReactiveProps as F, createTextVNode as J, onMounted as Q, onUnmounted as Y, withKeys as Z, withModifiers as ee } from "vue";
2
+ import { c as S } from "../../utils-SFgRDk1R.js";
3
+ import { u as te, a as w } from "../../useForwardPropsEmits-0XKBv1pB.js";
4
+ import { u as ae } from "../../index-BwPb_idr.js";
5
+ import { c as X } from "../../createContext-CZEfaSVa.js";
6
+ import { u as se } from "../../useDirection-C3C_TLKm.js";
7
+ import { u as x } from "../../useForwardExpose-DZT6mL_U.js";
8
+ import { P as $ } from "../../Primitive-B3twiLO1.js";
9
+ import { r as C } from "../../index-OpE2oGce.js";
10
+ import { u as G } from "../../useId-reAg216X.js";
11
+ import { _ as oe } from "../../Separator-DRam5i7g.js";
12
+ import { u as re } from "../../useKbd-BJNupnml.js";
13
+ import { u as le } from "../../useArrowNavigation-BRMPveaB.js";
14
+ import { g as ne } from "../../getActiveElement-B-HWdUIb.js";
15
+ const ie = {
16
+ "aria-live": "polite",
17
+ "aria-atomic": "true",
18
+ role: "status",
19
+ style: {
20
+ transform: "translateX(-100%)",
21
+ position: "absolute",
22
+ pointerEvents: "none",
23
+ opacity: 0,
24
+ margin: 0
25
+ }
26
+ }, [j, ue] = X("StepperRoot"), de = /* @__PURE__ */ p({
27
+ __name: "StepperRoot",
28
+ props: {
29
+ defaultValue: { default: 1 },
30
+ orientation: { default: "horizontal" },
31
+ dir: {},
32
+ modelValue: {},
33
+ linear: { type: Boolean, default: !0 },
34
+ asChild: { type: Boolean },
35
+ as: {}
36
+ },
37
+ emits: ["update:modelValue"],
38
+ setup(l, { expose: a, emit: t }) {
39
+ const s = l, n = t, { dir: d, orientation: u, linear: h } = H(s), y = se(d), o = A(/* @__PURE__ */ new Set()), r = ae(s, "modelValue", n, {
40
+ defaultValue: s.defaultValue,
41
+ passive: s.modelValue === void 0
42
+ }), i = b(() => Array.from(o.value)), D = b(() => r.value === 1), E = b(() => r.value === i.value.length), O = b(() => o.value.size);
43
+ function V(m) {
44
+ m > O.value || m < 1 || o.value.size && i.value[m] && i.value[m].getAttribute("disabled") || h.value && m > (r.value ?? 1) + 1 || (r.value = m);
45
+ }
46
+ function k() {
47
+ V((r.value ?? 1) + 1);
48
+ }
49
+ function K() {
50
+ V((r.value ?? 1) - 1);
51
+ }
52
+ function M() {
53
+ return (r.value ?? 1) < O.value;
54
+ }
55
+ function N() {
56
+ return (r.value ?? 1) > 1;
57
+ }
58
+ const B = A(null), P = A(null), z = b(() => B.value ? B.value.getAttribute("disabled") === "" : !0), W = b(() => P.value ? P.value.getAttribute("disabled") === "" : !0);
59
+ return L(r, async () => {
60
+ await U(() => {
61
+ B.value = i.value.length && r.value < i.value.length ? i.value[r.value] : null, P.value = i.value.length && r.value > 1 ? i.value[r.value - 2] : null;
62
+ });
63
+ }), L(i, async () => {
64
+ await U(() => {
65
+ B.value = i.value.length && r.value < i.value.length ? i.value[r.value] : null, P.value = i.value.length && r.value > 1 ? i.value[r.value - 2] : null;
66
+ });
67
+ }), ue({
68
+ modelValue: r,
69
+ changeModelValue: (m) => {
70
+ r.value = m;
71
+ },
72
+ orientation: u,
73
+ dir: y,
74
+ linear: h,
75
+ totalStepperItems: o
76
+ }), a({
77
+ goToStep: V,
78
+ nextStep: k,
79
+ prevStep: K,
80
+ modelValue: r,
81
+ totalSteps: O,
82
+ isNextDisabled: z,
83
+ isPrevDisabled: W,
84
+ isFirstStep: D,
85
+ isLastStep: E,
86
+ hasNext: M,
87
+ hasPrev: N
88
+ }), x(), (m, be) => (f(), c(e($), {
89
+ role: "group",
90
+ "aria-label": "progress",
91
+ as: m.as,
92
+ "as-child": m.asChild,
93
+ "data-linear": e(h) ? "" : void 0,
94
+ "data-orientation": m.orientation
95
+ }, {
96
+ default: v(() => [
97
+ _(m.$slots, "default", {
98
+ modelValue: e(r),
99
+ totalSteps: o.value.size,
100
+ isNextDisabled: z.value,
101
+ isPrevDisabled: W.value,
102
+ isFirstStep: D.value,
103
+ isLastStep: E.value,
104
+ goToStep: V,
105
+ nextStep: k,
106
+ prevStep: K,
107
+ hasNext: M,
108
+ hasPrev: N
109
+ }),
110
+ q("div", ie, " Step " + T(e(r)) + " of " + T(o.value.size), 1)
111
+ ]),
112
+ _: 3
113
+ }, 8, ["as", "as-child", "data-linear", "data-orientation"]));
114
+ }
115
+ }), [I, pe] = X("StepperItem"), ce = /* @__PURE__ */ p({
116
+ __name: "StepperItem",
117
+ props: {
118
+ step: {},
119
+ disabled: { type: Boolean, default: !1 },
120
+ completed: { type: Boolean, default: !1 },
121
+ asChild: { type: Boolean },
122
+ as: {}
123
+ },
124
+ setup(l) {
125
+ const a = l, { disabled: t, step: s, completed: n } = H(a), { forwardRef: d } = x(), u = j(), h = G(void 0, "reka-stepper-item-title"), y = G(void 0, "reka-stepper-item-description"), o = b(() => n.value ? "completed" : u.modelValue.value === s.value ? "active" : u.modelValue.value > s.value ? "completed" : "inactive"), r = b(() => t.value ? !1 : u.linear.value ? s.value <= u.modelValue.value || s.value === u.modelValue.value + 1 : !0);
126
+ return pe({
127
+ titleId: h,
128
+ descriptionId: y,
129
+ state: o,
130
+ disabled: t,
131
+ step: s,
132
+ isFocusable: r
133
+ }), (i, D) => (f(), c(e($), {
134
+ ref: e(d),
135
+ as: i.as,
136
+ "as-child": i.asChild,
137
+ "aria-current": o.value === "active" ? "true" : void 0,
138
+ "data-state": o.value,
139
+ disabled: e(t) || !r.value ? "" : void 0,
140
+ "data-disabled": e(t) || !r.value ? "" : void 0,
141
+ "data-orientation": e(u).orientation.value
142
+ }, {
143
+ default: v(() => [
144
+ _(i.$slots, "default", { state: o.value })
145
+ ]),
146
+ _: 3
147
+ }, 8, ["as", "as-child", "aria-current", "data-state", "disabled", "data-disabled", "data-orientation"]));
148
+ }
149
+ }), fe = /* @__PURE__ */ p({
150
+ __name: "StepperDescription",
151
+ props: {
152
+ asChild: { type: Boolean },
153
+ as: { default: "p" }
154
+ },
155
+ setup(l) {
156
+ const a = l;
157
+ x();
158
+ const t = I();
159
+ return (s, n) => (f(), c(e($), g(a, {
160
+ id: e(t).descriptionId
161
+ }), {
162
+ default: v(() => [
163
+ _(s.$slots, "default")
164
+ ]),
165
+ _: 3
166
+ }, 16, ["id"]));
167
+ }
168
+ }), me = /* @__PURE__ */ p({
169
+ __name: "StepperIndicator",
170
+ props: {
171
+ asChild: { type: Boolean },
172
+ as: {}
173
+ },
174
+ setup(l) {
175
+ const a = l, t = I();
176
+ return x(), (s, n) => (f(), c(e($), R(F(a)), {
177
+ default: v(() => [
178
+ _(s.$slots, "default", {
179
+ step: e(t).step.value
180
+ }, () => [
181
+ J(" Step " + T(e(t).step.value), 1)
182
+ ])
183
+ ]),
184
+ _: 3
185
+ }, 16));
186
+ }
187
+ }), ve = /* @__PURE__ */ p({
188
+ __name: "StepperSeparator",
189
+ props: {
190
+ orientation: {},
191
+ decorative: { type: Boolean },
192
+ asChild: { type: Boolean },
193
+ as: {}
194
+ },
195
+ setup(l) {
196
+ const a = l, t = j(), s = I();
197
+ return x(), (n, d) => (f(), c(e(oe), g(a, {
198
+ decorative: "",
199
+ orientation: e(t).orientation.value,
200
+ "data-state": e(s).state.value
201
+ }), {
202
+ default: v(() => [
203
+ _(n.$slots, "default")
204
+ ]),
205
+ _: 3
206
+ }, 16, ["orientation", "data-state"]));
207
+ }
208
+ }), _e = /* @__PURE__ */ p({
209
+ __name: "StepperTitle",
210
+ props: {
211
+ asChild: { type: Boolean },
212
+ as: { default: "h4" }
213
+ },
214
+ setup(l) {
215
+ const a = l, t = I();
216
+ return x(), (s, n) => (f(), c(e($), g(a, {
217
+ id: e(t).titleId
218
+ }), {
219
+ default: v(() => [
220
+ _(s.$slots, "default")
221
+ ]),
222
+ _: 3
223
+ }, 16, ["id"]));
224
+ }
225
+ }), ge = /* @__PURE__ */ p({
226
+ __name: "StepperTrigger",
227
+ props: {
228
+ asChild: { type: Boolean },
229
+ as: { default: "button" }
230
+ },
231
+ setup(l) {
232
+ const a = j(), t = I(), s = re(), n = b(() => Array.from(a.totalStepperItems.value));
233
+ function d(o) {
234
+ if (!t.disabled.value) {
235
+ if (a.linear.value) {
236
+ if ((t.step.value <= a.modelValue.value || t.step.value === a.modelValue.value + 1) && o.ctrlKey === !1) {
237
+ a.changeModelValue(t.step.value);
238
+ return;
239
+ }
240
+ } else if (o.ctrlKey === !1) {
241
+ a.changeModelValue(t.step.value);
242
+ return;
243
+ }
244
+ o.preventDefault();
245
+ }
246
+ }
247
+ function u(o) {
248
+ o.preventDefault(), !t.disabled.value && ((o.key === s.ENTER || o.key === s.SPACE) && !o.ctrlKey && !o.shiftKey && a.changeModelValue(t.step.value), [s.ARROW_LEFT, s.ARROW_RIGHT, s.ARROW_UP, s.ARROW_DOWN].includes(o.key) && le(o, ne(), void 0, {
249
+ itemsArray: n.value,
250
+ focus: !0,
251
+ loop: !1,
252
+ arrowKeyOptions: a.orientation.value,
253
+ dir: a.dir.value
254
+ }));
255
+ }
256
+ const { forwardRef: h, currentElement: y } = x();
257
+ return Q(() => {
258
+ a.totalStepperItems.value.add(y.value);
259
+ }), Y(() => {
260
+ a.totalStepperItems.value.delete(y.value);
261
+ }), (o, r) => (f(), c(e($), {
262
+ ref: e(h),
263
+ type: o.as === "button" ? "button" : void 0,
264
+ as: o.as,
265
+ "as-child": o.asChild,
266
+ "data-state": e(t).state.value,
267
+ disabled: e(t).disabled.value || !e(t).isFocusable.value ? "" : void 0,
268
+ "data-disabled": e(t).disabled.value || !e(t).isFocusable.value ? "" : void 0,
269
+ "data-orientation": e(a).orientation.value,
270
+ tabindex: e(t).isFocusable.value ? 0 : -1,
271
+ "aria-describedby": e(t).descriptionId,
272
+ "aria-labelledby": e(t).titleId,
273
+ onMousedown: ee(d, ["left"]),
274
+ onKeydown: Z(u, ["enter", "space", "left", "right", "up", "down"])
275
+ }, {
276
+ default: v(() => [
277
+ _(o.$slots, "default")
278
+ ]),
279
+ _: 3
280
+ }, 8, ["type", "as", "as-child", "data-state", "disabled", "data-disabled", "data-orientation", "tabindex", "aria-describedby", "aria-labelledby"]));
281
+ }
282
+ }), Oe = /* @__PURE__ */ p({
283
+ __name: "Stepper",
284
+ props: {
285
+ defaultValue: {},
286
+ orientation: {},
287
+ dir: {},
288
+ modelValue: {},
289
+ linear: { type: Boolean },
290
+ asChild: { type: Boolean },
291
+ as: { type: [String, Object, Function] },
292
+ class: {}
293
+ },
294
+ emits: ["update:modelValue"],
295
+ setup(l, { emit: a }) {
296
+ const t = l, s = a, n = C(t, "class"), d = te(n, s);
297
+ return (u, h) => (f(), c(e(de), g({
298
+ class: e(S)(
299
+ "flex gap-2",
300
+ t.class
301
+ )
302
+ }, e(d)), {
303
+ default: v((y) => [
304
+ _(u.$slots, "default", R(F(y)))
305
+ ]),
306
+ _: 3
307
+ }, 16, ["class"]));
308
+ }
309
+ }), Ae = /* @__PURE__ */ p({
310
+ __name: "StepperDescription",
311
+ props: {
312
+ asChild: { type: Boolean },
313
+ as: { type: [String, Object, Function] },
314
+ class: {}
315
+ },
316
+ setup(l) {
317
+ const a = l, t = C(a, "class"), s = w(t);
318
+ return (n, d) => (f(), c(e(fe), g(e(s), {
319
+ class: e(S)("text-xs text-muted-foreground", a.class)
320
+ }), {
321
+ default: v((u) => [
322
+ _(n.$slots, "default", R(F(u)))
323
+ ]),
324
+ _: 3
325
+ }, 16, ["class"]));
326
+ }
327
+ }), Te = /* @__PURE__ */ p({
328
+ __name: "StepperIndicator",
329
+ props: {
330
+ asChild: { type: Boolean },
331
+ as: { type: [String, Object, Function] },
332
+ class: {}
333
+ },
334
+ setup(l) {
335
+ const a = l, t = C(a, "class"), s = w(t);
336
+ return (n, d) => (f(), c(e(me), g(e(s), {
337
+ class: e(S)(
338
+ "inline-flex items-center justify-center rounded-full text-muted-foreground/50 w-10 h-10",
339
+ // Disabled
340
+ "group-data-[disabled]:text-muted-foreground group-data-[disabled]:opacity-50",
341
+ // Active
342
+ "group-data-[state=active]:bg-primary group-data-[state=active]:text-primary-foreground",
343
+ // Completed
344
+ "group-data-[state=completed]:bg-accent group-data-[state=completed]:text-accent-foreground",
345
+ a.class
346
+ )
347
+ }), {
348
+ default: v(() => [
349
+ _(n.$slots, "default")
350
+ ]),
351
+ _: 3
352
+ }, 16, ["class"]));
353
+ }
354
+ }), je = /* @__PURE__ */ p({
355
+ __name: "StepperItem",
356
+ props: {
357
+ step: {},
358
+ disabled: { type: Boolean },
359
+ completed: { type: Boolean },
360
+ asChild: { type: Boolean },
361
+ as: { type: [String, Object, Function] },
362
+ class: {}
363
+ },
364
+ setup(l) {
365
+ const a = l, t = C(a, "class"), s = w(t);
366
+ return (n, d) => (f(), c(e(ce), g(e(s), {
367
+ class: e(S)("flex items-center gap-2 group data-[disabled]:pointer-events-none", a.class)
368
+ }), {
369
+ default: v((u) => [
370
+ _(n.$slots, "default", R(F(u)))
371
+ ]),
372
+ _: 3
373
+ }, 16, ["class"]));
374
+ }
375
+ }), Ee = /* @__PURE__ */ p({
376
+ __name: "StepperSeparator",
377
+ props: {
378
+ orientation: {},
379
+ decorative: { type: Boolean },
380
+ asChild: { type: Boolean },
381
+ as: { type: [String, Object, Function] },
382
+ class: {}
383
+ },
384
+ setup(l) {
385
+ const a = l, t = C(a, "class"), s = w(t);
386
+ return (n, d) => (f(), c(e(ve), g(e(s), {
387
+ class: e(S)(
388
+ "bg-muted",
389
+ // Disabled
390
+ "group-data-[disabled]:bg-muted group-data-[disabled]:opacity-50",
391
+ // Completed
392
+ "group-data-[state=completed]:bg-accent-foreground",
393
+ a.class
394
+ )
395
+ }), null, 16, ["class"]));
396
+ }
397
+ }), ke = /* @__PURE__ */ p({
398
+ __name: "StepperTitle",
399
+ props: {
400
+ asChild: { type: Boolean },
401
+ as: { type: [String, Object, Function] },
402
+ class: {}
403
+ },
404
+ setup(l) {
405
+ const a = l, t = C(a, "class"), s = w(t);
406
+ return (n, d) => (f(), c(e(_e), g(e(s), {
407
+ class: e(S)("text-md font-semibold whitespace-nowrap", a.class)
408
+ }), {
409
+ default: v(() => [
410
+ _(n.$slots, "default")
411
+ ]),
412
+ _: 3
413
+ }, 16, ["class"]));
414
+ }
415
+ }), Ke = /* @__PURE__ */ p({
416
+ __name: "StepperTrigger",
417
+ props: {
418
+ asChild: { type: Boolean },
419
+ as: { type: [String, Object, Function] },
420
+ class: {}
421
+ },
422
+ setup(l) {
423
+ const a = l, t = C(a, "class"), s = w(t);
424
+ return (n, d) => (f(), c(e(ge), g(e(s), {
425
+ class: e(S)("p-2 flex flex-col items-center text-center gap-2 rounded-md", a.class)
426
+ }), {
427
+ default: v(() => [
428
+ _(n.$slots, "default")
429
+ ]),
430
+ _: 3
431
+ }, 16, ["class"]));
432
+ }
433
+ });
434
+ export {
435
+ Oe as Stepper,
436
+ Ae as StepperDescription,
437
+ Te as StepperIndicator,
438
+ je as StepperItem,
439
+ Ee as StepperSeparator,
440
+ ke as StepperTitle,
441
+ Ke as StepperTrigger
442
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as t } from "../../Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js";
2
+ export {
3
+ t as Switch
4
+ };
@@ -0,0 +1,153 @@
1
+ import { defineComponent as r, createElementBlock as p, openBlock as l, createElementVNode as _, normalizeClass as d, unref as a, renderSlot as c, createBlock as m, withCtx as u, createVNode as i, mergeProps as f } from "vue";
2
+ import { c as n } from "../../utils-SFgRDk1R.js";
3
+ import { r as b } from "../../index-OpE2oGce.js";
4
+ const h = { class: "relative w-full overflow-auto" }, v = /* @__PURE__ */ r({
5
+ __name: "Table",
6
+ props: {
7
+ class: {}
8
+ },
9
+ setup(e) {
10
+ const s = e;
11
+ return (t, o) => (l(), p("div", h, [
12
+ _("table", {
13
+ class: d(a(n)("w-full caption-bottom text-sm", s.class))
14
+ }, [
15
+ c(t.$slots, "default")
16
+ ], 2)
17
+ ]));
18
+ }
19
+ }), k = /* @__PURE__ */ r({
20
+ __name: "TableBody",
21
+ props: {
22
+ class: {}
23
+ },
24
+ setup(e) {
25
+ const s = e;
26
+ return (t, o) => (l(), p("tbody", {
27
+ class: d(a(n)("[&_tr:last-child]:border-0", s.class))
28
+ }, [
29
+ c(t.$slots, "default")
30
+ ], 2));
31
+ }
32
+ }), B = /* @__PURE__ */ r({
33
+ __name: "TableCaption",
34
+ props: {
35
+ class: {}
36
+ },
37
+ setup(e) {
38
+ const s = e;
39
+ return (t, o) => (l(), p("caption", {
40
+ class: d(a(n)("mt-4 text-sm text-muted-foreground", s.class))
41
+ }, [
42
+ c(t.$slots, "default")
43
+ ], 2));
44
+ }
45
+ }), T = /* @__PURE__ */ r({
46
+ __name: "TableCell",
47
+ props: {
48
+ class: {}
49
+ },
50
+ setup(e) {
51
+ const s = e;
52
+ return (t, o) => (l(), p("td", {
53
+ class: d(
54
+ a(n)(
55
+ "p-4 align-middle [&:has([role=checkbox])]:pr-0",
56
+ s.class
57
+ )
58
+ )
59
+ }, [
60
+ c(t.$slots, "default")
61
+ ], 2));
62
+ }
63
+ }), $ = /* @__PURE__ */ r({
64
+ __name: "TableRow",
65
+ props: {
66
+ class: {}
67
+ },
68
+ setup(e) {
69
+ const s = e;
70
+ return (t, o) => (l(), p("tr", {
71
+ class: d(a(n)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", s.class))
72
+ }, [
73
+ c(t.$slots, "default")
74
+ ], 2));
75
+ }
76
+ }), x = { class: "flex items-center justify-center py-10" }, E = /* @__PURE__ */ r({
77
+ __name: "TableEmpty",
78
+ props: {
79
+ class: {},
80
+ colspan: { default: 1 }
81
+ },
82
+ setup(e) {
83
+ const s = e, t = b(s, "class");
84
+ return (o, g) => (l(), m($, null, {
85
+ default: u(() => [
86
+ i(T, f({
87
+ class: a(n)(
88
+ "p-4 whitespace-nowrap align-middle text-sm text-foreground",
89
+ s.class
90
+ )
91
+ }, a(t)), {
92
+ default: u(() => [
93
+ _("div", x, [
94
+ c(o.$slots, "default")
95
+ ])
96
+ ]),
97
+ _: 3
98
+ }, 16, ["class"])
99
+ ]),
100
+ _: 3
101
+ }));
102
+ }
103
+ }), H = /* @__PURE__ */ r({
104
+ __name: "TableFooter",
105
+ props: {
106
+ class: {}
107
+ },
108
+ setup(e) {
109
+ const s = e;
110
+ return (t, o) => (l(), p("tfoot", {
111
+ class: d(a(n)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", s.class))
112
+ }, [
113
+ c(t.$slots, "default")
114
+ ], 2));
115
+ }
116
+ }), F = /* @__PURE__ */ r({
117
+ __name: "TableHead",
118
+ props: {
119
+ class: {}
120
+ },
121
+ setup(e) {
122
+ const s = e;
123
+ return (t, o) => (l(), p("th", {
124
+ class: d(a(n)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", s.class))
125
+ }, [
126
+ c(t.$slots, "default")
127
+ ], 2));
128
+ }
129
+ }), N = /* @__PURE__ */ r({
130
+ __name: "TableHeader",
131
+ props: {
132
+ class: {}
133
+ },
134
+ setup(e) {
135
+ const s = e;
136
+ return (t, o) => (l(), p("thead", {
137
+ class: d(a(n)("[&_tr]:border-b", s.class))
138
+ }, [
139
+ c(t.$slots, "default")
140
+ ], 2));
141
+ }
142
+ });
143
+ export {
144
+ v as Table,
145
+ k as TableBody,
146
+ B as TableCaption,
147
+ T as TableCell,
148
+ E as TableEmpty,
149
+ H as TableFooter,
150
+ F as TableHead,
151
+ N as TableHeader,
152
+ $ as TableRow
153
+ };