@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,308 +0,0 @@
1
- import { defineComponent as h, toRefs as T, computed as m, ref as L, watch as z, createBlock as y, openBlock as g, unref as o, mergeProps as k, withCtx as M, renderSlot as C, createVNode as K, onMounted as U, onUnmounted as H, withKeys as A, nextTick as J, normalizeProps as Q, guardReactiveProps as W } from "vue";
2
- import { c as F } from "../../utils-SFgRDk1R.js";
3
- import { u as X, a as R } from "../../useForwardPropsEmits-0XKBv1pB.js";
4
- import { u as Y } from "../../index-BwPb_idr.js";
5
- import { _ as Z } from "../../VisuallyHiddenInput-DvJnsVHt.js";
6
- import { c as ee } from "../../createContext-CZEfaSVa.js";
7
- import { u as te } from "../../useForwardExpose-DZT6mL_U.js";
8
- import { u as ae } from "../../useDirection-C3C_TLKm.js";
9
- import { P as D } from "../../Primitive-B3twiLO1.js";
10
- import { r as j } from "../../index-OpE2oGce.js";
11
- import { c as oe } from "../../createLucideIcon-eXqDwUWj.js";
12
- import { u as le } from "../../usePrimitiveElement-BjwUvHih.js";
13
- import { u as ne } from "../../useArrowNavigation-BRMPveaB.js";
14
- import { g as se } from "../../getActiveElement-B-HWdUIb.js";
15
- const [re, ue] = ee("PinInputRoot"), ie = /* @__PURE__ */ h({
16
- inheritAttrs: !1,
17
- __name: "PinInputRoot",
18
- props: {
19
- modelValue: {},
20
- defaultValue: {},
21
- placeholder: { default: "" },
22
- mask: { type: Boolean },
23
- otp: { type: Boolean },
24
- type: { default: "text" },
25
- dir: {},
26
- disabled: { type: Boolean },
27
- id: {},
28
- asChild: { type: Boolean },
29
- as: {},
30
- name: {},
31
- required: { type: Boolean }
32
- },
33
- emits: ["update:modelValue", "complete"],
34
- setup(r, { emit: l }) {
35
- const t = r, n = l, { mask: u, otp: c, placeholder: b, type: $, disabled: P, dir: _ } = T(t), { forwardRef: S } = te(), V = ae(_), p = Y(t, "modelValue", n, {
36
- defaultValue: t.defaultValue ?? [],
37
- passive: t.modelValue === void 0
38
- }), x = m(() => Array.isArray(p.value) ? [...p.value] : []), v = L(/* @__PURE__ */ new Set());
39
- function N(i) {
40
- v.value.add(i);
41
- }
42
- const E = m(() => t.type === "number"), w = m(() => x.value.filter((f) => !!f || E.value && f === 0).length === v.value.size);
43
- return z(p, () => {
44
- w.value && n("complete", p.value);
45
- }, { deep: !0 }), ue({
46
- modelValue: p,
47
- currentModelValue: x,
48
- mask: u,
49
- otp: c,
50
- placeholder: b,
51
- type: $,
52
- dir: V,
53
- disabled: P,
54
- isCompleted: w,
55
- inputElements: v,
56
- onInputElementChange: N,
57
- isNumericMode: E
58
- }), (i, f) => (g(), y(o(D), k(i.$attrs, {
59
- ref: o(S),
60
- dir: o(V),
61
- "data-complete": w.value ? "" : void 0,
62
- "data-disabled": o(P) ? "" : void 0
63
- }), {
64
- default: M(() => [
65
- C(i.$slots, "default", { modelValue: o(p) }),
66
- K(Z, {
67
- id: i.id,
68
- as: "input",
69
- feature: "focusable",
70
- tabindex: "-1",
71
- value: x.value.join(""),
72
- name: i.name ?? "",
73
- disabled: o(P),
74
- required: i.required,
75
- onFocus: f[0] || (f[0] = (B) => {
76
- var e, a;
77
- return (a = (e = Array.from(v.value)) == null ? void 0 : e[0]) == null ? void 0 : a.focus();
78
- })
79
- }, null, 8, ["id", "value", "name", "disabled", "required"])
80
- ]),
81
- _: 3
82
- }, 16, ["dir", "data-complete", "data-disabled"]));
83
- }
84
- }), de = /* @__PURE__ */ h({
85
- __name: "PinInputInput",
86
- props: {
87
- index: {},
88
- disabled: { type: Boolean },
89
- asChild: { type: Boolean },
90
- as: { default: "input" }
91
- },
92
- setup(r) {
93
- const l = r, t = re(), n = m(() => Array.from(t.inputElements.value)), u = m(() => t.currentModelValue.value[l.index]), c = m(() => l.disabled || t.disabled.value), b = m(() => t.otp.value), $ = m(() => t.mask.value), { primitiveElement: P, currentElement: _ } = le();
94
- function S(e) {
95
- var d;
96
- const a = e.target;
97
- if ((((d = e.data) == null ? void 0 : d.length) ?? 0) > 1) {
98
- i(a.value);
99
- return;
100
- }
101
- if (t.isNumericMode.value && !/^\d*$/.test(a.value)) {
102
- a.value = a.value.replace(/\D/g, "");
103
- return;
104
- }
105
- a.value = a.value.slice(-1), B(l.index, a.value);
106
- const s = n.value[l.index + 1];
107
- s && s.focus();
108
- }
109
- function V() {
110
- const e = _.value;
111
- J(() => {
112
- e && !e.value && (e.placeholder = t.placeholder.value);
113
- });
114
- }
115
- function p(e) {
116
- ne(e, se(), void 0, {
117
- itemsArray: n.value,
118
- focus: !0,
119
- loop: !1,
120
- arrowKeyOptions: "horizontal",
121
- dir: t.dir.value
122
- });
123
- }
124
- function x(e) {
125
- if (e.preventDefault(), e.target.value)
126
- B(l.index, "");
127
- else {
128
- const d = n.value[l.index - 1];
129
- d && (d.focus(), B(l.index - 1, ""));
130
- }
131
- }
132
- function v(e) {
133
- e.key === "Delete" && (e.preventDefault(), B(l.index, ""));
134
- }
135
- function N(e) {
136
- const a = e.target;
137
- a.setSelectionRange(1, 1), a.value || (a.placeholder = "");
138
- }
139
- function E(e) {
140
- V();
141
- }
142
- function w(e) {
143
- e.preventDefault();
144
- const a = e.clipboardData;
145
- if (!a)
146
- return;
147
- const s = a.getData("text");
148
- i(s);
149
- }
150
- function i(e) {
151
- var O;
152
- const a = [...t.currentModelValue.value], s = e.length >= n.value.length ? 0 : l.index, d = Math.min(s + e.length, n.value.length);
153
- for (let I = s; I < d; I++) {
154
- const G = n.value[I], q = e[I - s];
155
- t.isNumericMode.value && !/^\d*$/.test(q) || (a[I] = q, G.focus());
156
- }
157
- t.modelValue.value = a, (O = n.value[d]) == null || O.focus();
158
- }
159
- function f(e) {
160
- let a = e.length - 1;
161
- for (; a >= 0 && e[a] === ""; )
162
- e.pop(), a--;
163
- return e;
164
- }
165
- function B(e, a) {
166
- const s = [...t.currentModelValue.value];
167
- if (t.isNumericMode.value) {
168
- const d = +a;
169
- a === "" || isNaN(d) ? delete s[e] : s[e] = d;
170
- } else
171
- s[e] = a;
172
- t.modelValue.value = f(s);
173
- }
174
- return z(u, () => {
175
- u.value || V();
176
- }), U(() => {
177
- t.onInputElementChange(_.value);
178
- }), H(() => {
179
- var e;
180
- (e = t.inputElements) == null || e.value.delete(_.value);
181
- }), (e, a) => (g(), y(o(D), {
182
- ref_key: "primitiveElement",
183
- ref: P,
184
- autocapitalize: "none",
185
- as: e.as,
186
- "as-child": e.asChild,
187
- autocomplete: b.value ? "one-time-code" : "false",
188
- type: $.value ? "password" : "text",
189
- inputmode: o(t).isNumericMode.value ? "numeric" : "text",
190
- pattern: o(t).isNumericMode.value ? "[0-9]*" : void 0,
191
- placeholder: o(t).placeholder.value,
192
- value: u.value,
193
- disabled: c.value,
194
- "data-disabled": c.value ? "" : void 0,
195
- "data-complete": o(t).isCompleted.value ? "" : void 0,
196
- "aria-label": `pin input ${e.index + 1} of ${n.value.length}`,
197
- onInput: a[0] || (a[0] = (s) => S(s)),
198
- onKeydown: [
199
- A(p, ["left", "right", "up", "down", "home", "end"]),
200
- A(x, ["backspace"]),
201
- A(v, ["delete"])
202
- ],
203
- onFocus: N,
204
- onBlur: E,
205
- onPaste: w
206
- }, {
207
- default: M(() => [
208
- C(e.$slots, "default")
209
- ]),
210
- _: 3
211
- }, 8, ["as", "as-child", "autocomplete", "type", "inputmode", "pattern", "placeholder", "value", "disabled", "data-disabled", "data-complete", "aria-label"]));
212
- }
213
- });
214
- /**
215
- * @license lucide-vue-next v0.514.0 - ISC
216
- *
217
- * This source code is licensed under the ISC license.
218
- * See the LICENSE file in the root directory of this source tree.
219
- */
220
- const ce = oe("dot", [
221
- ["circle", { cx: "12.1", cy: "12.1", r: "1", key: "18d7e5" }]
222
- ]), Ie = /* @__PURE__ */ h({
223
- __name: "PinInput",
224
- props: {
225
- modelValue: { default: () => [] },
226
- defaultValue: {},
227
- placeholder: {},
228
- mask: { type: Boolean },
229
- otp: { type: Boolean },
230
- type: {},
231
- dir: {},
232
- disabled: { type: Boolean },
233
- id: {},
234
- asChild: { type: Boolean },
235
- as: {},
236
- name: {},
237
- required: { type: Boolean },
238
- class: {}
239
- },
240
- emits: ["update:modelValue", "complete"],
241
- setup(r, { emit: l }) {
242
- const t = r, n = l, u = j(t, "class"), c = X(u, n);
243
- return (b, $) => (g(), y(o(ie), k(o(c), {
244
- class: o(F)("flex gap-2 items-center", t.class)
245
- }), {
246
- default: M(() => [
247
- C(b.$slots, "default")
248
- ]),
249
- _: 3
250
- }, 16, ["class"]));
251
- }
252
- }), Me = /* @__PURE__ */ h({
253
- __name: "PinInputGroup",
254
- props: {
255
- asChild: { type: Boolean },
256
- as: { type: [String, Object, Function] },
257
- class: {}
258
- },
259
- setup(r) {
260
- const l = r, t = j(l, "class"), n = R(t);
261
- return (u, c) => (g(), y(o(D), k(o(n), {
262
- class: o(F)("flex items-center", l.class)
263
- }), {
264
- default: M(() => [
265
- C(u.$slots, "default")
266
- ]),
267
- _: 3
268
- }, 16, ["class"]));
269
- }
270
- }), Ce = /* @__PURE__ */ h({
271
- __name: "PinInputSeparator",
272
- props: {
273
- asChild: { type: Boolean },
274
- as: { type: [String, Object, Function] }
275
- },
276
- setup(r) {
277
- const t = R(r);
278
- return (n, u) => (g(), y(o(D), Q(W(o(t))), {
279
- default: M(() => [
280
- C(n.$slots, "default", {}, () => [
281
- K(o(ce))
282
- ])
283
- ]),
284
- _: 3
285
- }, 16));
286
- }
287
- }), $e = /* @__PURE__ */ h({
288
- __name: "PinInputSlot",
289
- props: {
290
- index: {},
291
- disabled: { type: Boolean },
292
- asChild: { type: Boolean },
293
- as: { type: [String, Object, Function] },
294
- class: {}
295
- },
296
- setup(r) {
297
- const l = r, t = j(l, "class"), n = R(t);
298
- return (u, c) => (g(), y(o(de), k(o(n), {
299
- class: o(F)("relative text-center focus:outline-none focus:ring-2 focus:ring-ring focus:relative focus:z-10 flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md", l.class)
300
- }), null, 16, ["class"]));
301
- }
302
- });
303
- export {
304
- Ie as PinInput,
305
- Me as PinInputGroup,
306
- Ce as PinInputSeparator,
307
- $e as PinInputSlot
308
- };
@@ -1,6 +0,0 @@
1
- import { _ as e, a, b as p } from "../../PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js";
2
- export {
3
- e as Popover,
4
- a as PopoverContent,
5
- p as PopoverTrigger
6
- };
@@ -1,137 +0,0 @@
1
- import { defineComponent as m, watch as x, nextTick as C, computed as $, createBlock as p, openBlock as c, unref as a, withCtx as f, renderSlot as h, mergeProps as b, createVNode as w, normalizeStyle as N } from "vue";
2
- import { c as M } from "../../utils-SFgRDk1R.js";
3
- import { u as V } from "../../index-BwPb_idr.js";
4
- import { c as E } from "../../createContext-CZEfaSVa.js";
5
- import { u as P } from "../../useForwardExpose-DZT6mL_U.js";
6
- import { P as y } from "../../Primitive-B3twiLO1.js";
7
- import { i as _ } from "../../nullish-CjWwlQS3.js";
8
- import { r as R } from "../../index-OpE2oGce.js";
9
- const u = 100, [T, B] = E("ProgressRoot"), d = (e) => typeof e == "number";
10
- function L(e, o) {
11
- return _(e) || d(e) && !Number.isNaN(e) && e <= o && e >= 0 ? e : (console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be:
12
- - a positive number
13
- - less than the value passed to \`max\` (or ${u} if no \`max\` prop is set)
14
- - \`null\` or \`undefined\` if the progress is indeterminate.
15
-
16
- Defaulting to \`null\`.`), null);
17
- }
18
- function S(e) {
19
- return d(e) && !Number.isNaN(e) && e > 0 ? e : (console.error(
20
- `Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${u}\`.`
21
- ), u);
22
- }
23
- const k = /* @__PURE__ */ m({
24
- __name: "ProgressRoot",
25
- props: {
26
- modelValue: {},
27
- max: { default: u },
28
- getValueLabel: { type: Function, default: (e, o) => d(e) ? `${Math.round(e / o * u)}%` : void 0 },
29
- getValueText: {},
30
- asChild: { type: Boolean },
31
- as: {}
32
- },
33
- emits: ["update:modelValue", "update:max"],
34
- setup(e, { emit: o }) {
35
- const t = e, n = o;
36
- P();
37
- const r = V(t, "modelValue", n, {
38
- passive: t.modelValue === void 0
39
- }), l = V(t, "max", n, {
40
- passive: t.max === void 0
41
- });
42
- x(
43
- () => r.value,
44
- async (s) => {
45
- const i = L(s, t.max);
46
- i !== s && (await C(), r.value = i);
47
- },
48
- { immediate: !0 }
49
- ), x(
50
- () => t.max,
51
- (s) => {
52
- const i = S(t.max);
53
- i !== s && (l.value = i);
54
- },
55
- { immediate: !0 }
56
- );
57
- const v = $(() => _(r.value) ? "indeterminate" : r.value === l.value ? "complete" : "loading");
58
- return B({
59
- modelValue: r,
60
- max: l,
61
- progressState: v
62
- }), (s, i) => {
63
- var g;
64
- return c(), p(a(y), {
65
- "as-child": s.asChild,
66
- as: s.as,
67
- "aria-valuemax": a(l),
68
- "aria-valuemin": 0,
69
- "aria-valuenow": d(a(r)) ? a(r) : void 0,
70
- "aria-valuetext": (g = s.getValueText) == null ? void 0 : g.call(s, a(r), a(l)),
71
- "aria-label": s.getValueLabel(a(r), a(l)),
72
- role: "progressbar",
73
- "data-state": v.value,
74
- "data-value": a(r) ?? void 0,
75
- "data-max": a(l)
76
- }, {
77
- default: f(() => [
78
- h(s.$slots, "default", { modelValue: a(r) })
79
- ]),
80
- _: 3
81
- }, 8, ["as-child", "as", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-label", "data-state", "data-value", "data-max"]);
82
- };
83
- }
84
- }), D = /* @__PURE__ */ m({
85
- __name: "ProgressIndicator",
86
- props: {
87
- asChild: { type: Boolean },
88
- as: {}
89
- },
90
- setup(e) {
91
- const o = e, t = T();
92
- return P(), (n, r) => {
93
- var l;
94
- return c(), p(a(y), b(o, {
95
- "data-state": a(t).progressState.value,
96
- "data-value": ((l = a(t).modelValue) == null ? void 0 : l.value) ?? void 0,
97
- "data-max": a(t).max.value
98
- }), {
99
- default: f(() => [
100
- h(n.$slots, "default")
101
- ]),
102
- _: 3
103
- }, 16, ["data-state", "data-value", "data-max"]);
104
- };
105
- }
106
- }), q = /* @__PURE__ */ m({
107
- __name: "Progress",
108
- props: {
109
- modelValue: { default: 0 },
110
- max: {},
111
- getValueLabel: {},
112
- getValueText: {},
113
- asChild: { type: Boolean },
114
- as: {},
115
- class: {}
116
- },
117
- setup(e) {
118
- const o = e, t = R(o, "class");
119
- return (n, r) => (c(), p(a(k), b(a(t), {
120
- class: a(M)(
121
- "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
122
- o.class
123
- )
124
- }), {
125
- default: f(() => [
126
- w(a(D), {
127
- class: "h-full w-full flex-1 bg-primary transition-all",
128
- style: N(`transform: translateX(-${100 - (o.modelValue ?? 0)}%);`)
129
- }, null, 8, ["style"])
130
- ]),
131
- _: 1
132
- }, 16, ["class"]));
133
- }
134
- });
135
- export {
136
- q as Progress
137
- };
@@ -1,5 +0,0 @@
1
- import { _ as r, a as p } from "../../RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js";
2
- export {
3
- r as RadioGroup,
4
- p as RadioGroupItem
5
- };