@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,227 +0,0 @@
1
- import { defineComponent as Z, toRefs as v, computed as d, createBlock as D, openBlock as h, resolveDynamicComponent as B, normalizeProps as V, guardReactiveProps as $, withCtx as T, renderSlot as p, createElementBlock as q, Fragment as I, renderList as w, createVNode as x } from "vue";
2
- import { i as L, h as R, F as K } from "../../vee-validate-Cf8JDJ_k.js";
3
- import { Z as b, a as M, b as j, _ as U } from "../../constant-CuDQlTIy.js";
4
- import { c as fe, d as le, e as me, f as de, g as pe, h as he, i as be, j as Fe, k as ge } from "../../constant-CuDQlTIy.js";
5
- import { provideDependencies as G } from "./dependencies.js";
6
- import { getObjectFormSchema as H, getBaseSchema as J, getDefaultValueInZodStack as Q, getBaseType as W } from "./utils.js";
7
- /**
8
- * vee-validate v4.15.1
9
- * (c) 2025 Abdelrahman Awad
10
- * @license MIT
11
- */
12
- const F = (e) => e !== null && !!e && typeof e == "object" && !Array.isArray(e);
13
- function A(e) {
14
- return Number(e) >= 0;
15
- }
16
- function X(e) {
17
- return typeof e == "object" && e !== null;
18
- }
19
- function Y(e) {
20
- return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
21
- }
22
- function g(e) {
23
- if (!X(e) || Y(e) !== "[object Object]")
24
- return !1;
25
- if (Object.getPrototypeOf(e) === null)
26
- return !0;
27
- let n = e;
28
- for (; Object.getPrototypeOf(n) !== null; )
29
- n = Object.getPrototypeOf(n);
30
- return Object.getPrototypeOf(e) === n;
31
- }
32
- function y(e, n) {
33
- return Object.keys(n).forEach((t) => {
34
- if (g(n[t]) && g(e[t])) {
35
- e[t] || (e[t] = {}), y(e[t], n[t]);
36
- return;
37
- }
38
- e[t] = n[t];
39
- }), e;
40
- }
41
- function z(e) {
42
- const n = e.split(".");
43
- if (!n.length)
44
- return "";
45
- let t = String(n[0]);
46
- for (let r = 1; r < n.length; r++) {
47
- if (A(n[r])) {
48
- t += `[${n[r]}]`;
49
- continue;
50
- }
51
- t += `.${n[r]}`;
52
- }
53
- return t;
54
- }
55
- function k(e, n) {
56
- return {
57
- __type: "VVTypedSchema",
58
- async parse(r) {
59
- const o = await e.safeParseAsync(r, n);
60
- if (o.success)
61
- return {
62
- value: o.data,
63
- errors: []
64
- };
65
- const i = {};
66
- return S(o.error.issues, i), {
67
- errors: Object.values(i)
68
- };
69
- },
70
- cast(r) {
71
- try {
72
- return e.parse(r);
73
- } catch {
74
- const i = _(e);
75
- return F(i) && F(r) ? y(i, r) : r;
76
- }
77
- },
78
- describe(r) {
79
- try {
80
- if (!r)
81
- return {
82
- required: !e.isOptional(),
83
- exists: !0
84
- };
85
- const o = ee(r, e);
86
- return o ? {
87
- required: !o.isOptional(),
88
- exists: !0
89
- } : {
90
- required: !1,
91
- exists: !1
92
- };
93
- } catch {
94
- return process.env.NODE_ENV !== "production" && console.warn(`Failed to describe path ${r} on the schema, returning a default description.`), {
95
- required: !1,
96
- exists: !1
97
- };
98
- }
99
- }
100
- };
101
- }
102
- function S(e, n) {
103
- e.forEach((t) => {
104
- const r = z(t.path.join("."));
105
- t.code === "invalid_union" && (S(t.unionErrors.flatMap((o) => o.issues), n), !r) || (n[r] || (n[r] = { errors: [], path: r }), n[r].errors.push(t.message));
106
- });
107
- }
108
- function _(e) {
109
- if (e instanceof b)
110
- return Object.fromEntries(Object.entries(e.shape).map(([n, t]) => t instanceof M ? [n, t._def.defaultValue()] : t instanceof b ? [n, _(t)] : [n, void 0]));
111
- }
112
- function ee(e, n) {
113
- if (!O(n))
114
- return null;
115
- if (L(e))
116
- return n.shape[R(e)];
117
- const t = (e || "").split(/\.|\[(\d+)\]/).filter(Boolean);
118
- let r = n;
119
- for (let o = 0; o <= t.length; o++) {
120
- const i = t[o];
121
- if (!i || !r)
122
- return r;
123
- if (O(r)) {
124
- r = r.shape[i] || null;
125
- continue;
126
- }
127
- A(i) && te(r) && (r = r._def.type);
128
- }
129
- return null;
130
- }
131
- function N(e) {
132
- return e._def.typeName;
133
- }
134
- function te(e) {
135
- return N(e) === j.ZodArray;
136
- }
137
- function O(e) {
138
- return N(e) === j.ZodObject;
139
- }
140
- const ae = /* @__PURE__ */ Z({
141
- __name: "AutoForm",
142
- props: {
143
- schema: {},
144
- form: {},
145
- fieldConfig: {},
146
- dependencies: {}
147
- },
148
- emits: ["submit"],
149
- setup(e, { emit: n }) {
150
- const t = e, r = n, { dependencies: o } = v(t);
151
- G(o);
152
- const i = d(() => {
153
- const s = {}, u = H(t.schema).shape;
154
- return Object.keys(u).forEach((a) => {
155
- const c = u[a], f = J(c);
156
- let m = f && "values" in f._def ? f._def.values : void 0;
157
- !Array.isArray(m) && typeof m == "object" && (m = Object.values(m)), s[a] = {
158
- type: W(c),
159
- default: Q(c),
160
- options: m,
161
- required: !["ZodOptional", "ZodNullable"].includes(c._def.typeName),
162
- schema: f
163
- };
164
- }), s;
165
- }), P = d(() => {
166
- var l;
167
- const s = {};
168
- for (const u in i.value) {
169
- const a = i.value[u];
170
- s[u] = {
171
- shape: a,
172
- config: (l = t.fieldConfig) == null ? void 0 : l[u],
173
- fieldName: u
174
- };
175
- }
176
- return s;
177
- }), C = d(() => t.form ? "form" : K), E = d(() => t.form ? {
178
- onSubmit: t.form.handleSubmit((s) => r("submit", s))
179
- } : {
180
- keepValues: !0,
181
- validationSchema: k(t.schema),
182
- onSubmit: (l) => r("submit", l)
183
- });
184
- return (s, l) => (h(), D(B(C.value), V($(E.value)), {
185
- default: T(() => [
186
- p(s.$slots, "customAutoForm", { fields: P.value }, () => [
187
- (h(!0), q(I, null, w(i.value, (u, a) => {
188
- var c;
189
- return p(s.$slots, a.toString(), {
190
- key: a,
191
- shape: u,
192
- fieldName: a.toString(),
193
- config: (c = s.fieldConfig) == null ? void 0 : c[a]
194
- }, () => {
195
- var f;
196
- return [
197
- x(U, {
198
- config: (f = s.fieldConfig) == null ? void 0 : f[a],
199
- "field-name": a.toString(),
200
- shape: u
201
- }, null, 8, ["config", "field-name", "shape"])
202
- ];
203
- });
204
- }), 128))
205
- ]),
206
- p(s.$slots, "default", { shapes: i.value })
207
- ]),
208
- _: 3
209
- }, 16));
210
- }
211
- });
212
- export {
213
- ae as AutoForm,
214
- U as AutoFormField,
215
- fe as AutoFormFieldArray,
216
- le as AutoFormFieldBoolean,
217
- me as AutoFormFieldDate,
218
- de as AutoFormFieldEnum,
219
- pe as AutoFormFieldFile,
220
- he as AutoFormFieldInput,
221
- be as AutoFormFieldNumber,
222
- Fe as AutoFormFieldObject,
223
- ge as AutoFormLabel,
224
- J as getBaseSchema,
225
- W as getBaseType,
226
- H as getObjectFormSchema
227
- };
@@ -1,4 +0,0 @@
1
- var E = /* @__PURE__ */ ((S) => (S[S.DISABLES = 0] = "DISABLES", S[S.REQUIRES = 1] = "REQUIRES", S[S.HIDES = 2] = "HIDES", S[S.SETS_OPTIONS = 3] = "SETS_OPTIONS", S))(E || {});
2
- export {
3
- E as DependencyType
4
- };
@@ -1,89 +0,0 @@
1
- function g(e) {
2
- let n = e.replace(/\[\d+\]/g, "").replace(/([A-Z])/g, " $1");
3
- return n = n.charAt(0).toUpperCase() + n.slice(1), n;
4
- }
5
- function m(e) {
6
- const n = /\[(\d+)\]/, t = e.match(n);
7
- return t ? Number.parseInt(t[1]) : void 0;
8
- }
9
- function i(e) {
10
- return e ? "innerType" in e._def ? i(e._def.innerType) : "schema" in e._def ? i(e._def.schema) : e : null;
11
- }
12
- function _(e) {
13
- const n = i(e);
14
- return n ? n._def.typeName : "";
15
- }
16
- function o(e) {
17
- const n = e;
18
- if (n._def.typeName === "ZodDefault")
19
- return n._def.defaultValue();
20
- if ("innerType" in n._def)
21
- return o(
22
- n._def.innerType
23
- );
24
- if ("schema" in n._def)
25
- return o(
26
- n._def.schema
27
- );
28
- }
29
- function c(e) {
30
- return (e == null ? void 0 : e._def.typeName) === "ZodEffects" ? c(e._def.schema) : e;
31
- }
32
- function d(e) {
33
- return Number(e) >= 0;
34
- }
35
- function h(e) {
36
- const n = e.split(".");
37
- if (!n.length)
38
- return "";
39
- let t = String(n[0]);
40
- for (let r = 1; r < n.length; r++) {
41
- if (d(n[r])) {
42
- t += `[${n[r]}]`;
43
- continue;
44
- }
45
- t += `.${n[r]}`;
46
- }
47
- return t;
48
- }
49
- function a(e) {
50
- return /^\[.+\]$/.test(e);
51
- }
52
- function l(e) {
53
- return e !== null && !!e && typeof e == "object" && !Array.isArray(e);
54
- }
55
- function s(e) {
56
- return l(e) || Array.isArray(e);
57
- }
58
- function p(e) {
59
- return a(e) ? e.replace(/\[|\]/g, "") : e;
60
- }
61
- function N(e, n, t) {
62
- return e ? a(n) ? e[p(n)] : (n || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((u, f) => s(u) && f in u ? u[f] : t, e) : t;
63
- }
64
- function y(e) {
65
- switch (e) {
66
- case "true":
67
- case !0:
68
- return !0;
69
- case "false":
70
- case !1:
71
- return !1;
72
- }
73
- }
74
- function A(e) {
75
- return e ? y(e) : void 0;
76
- }
77
- export {
78
- g as beautifyObjectName,
79
- y as booleanishToBoolean,
80
- i as getBaseSchema,
81
- _ as getBaseType,
82
- o as getDefaultValueInZodStack,
83
- N as getFromPath,
84
- m as getIndexIfArray,
85
- c as getObjectFormSchema,
86
- a as isNotNestedPath,
87
- A as maybeBooleanishToBoolean,
88
- h as normalizeFormPath
89
- };
@@ -1,189 +0,0 @@
1
- import { c as $ } from "../../index-C_aI-Wfj.js";
2
- import { defineComponent as u, ref as v, createBlock as d, openBlock as c, unref as n, withCtx as p, renderSlot as f, watchEffect as S, createCommentVNode as b, computed as x, onMounted as R, onUnmounted as k, toRefs as B, watch as E, withDirectives as M, vShow as z, normalizeClass as F, normalizeProps as I, guardReactiveProps as j, mergeProps as P } from "vue";
3
- import { c as T } from "../../utils-SFgRDk1R.js";
4
- import { i as A } from "../../index-BwPb_idr.js";
5
- import { c as q } from "../../createContext-CZEfaSVa.js";
6
- import { u as g } from "../../useForwardExpose-DZT6mL_U.js";
7
- import { P as C } from "../../Primitive-B3twiLO1.js";
8
- const [L, D] = q("AvatarRoot"), N = /* @__PURE__ */ u({
9
- __name: "AvatarRoot",
10
- props: {
11
- asChild: { type: Boolean },
12
- as: { default: "span" }
13
- },
14
- setup(a) {
15
- return g(), D({
16
- imageLoadingStatus: v("idle")
17
- }), (e, t) => (c(), d(n(C), {
18
- "as-child": e.asChild,
19
- as: e.as
20
- }, {
21
- default: p(() => [
22
- f(e.$slots, "default")
23
- ]),
24
- _: 3
25
- }, 8, ["as-child", "as"]));
26
- }
27
- }), O = /* @__PURE__ */ u({
28
- __name: "AvatarFallback",
29
- props: {
30
- delayMs: {},
31
- asChild: { type: Boolean },
32
- as: { default: "span" }
33
- },
34
- setup(a) {
35
- const e = a, t = L();
36
- g();
37
- const o = v(e.delayMs === void 0);
38
- return S((r) => {
39
- if (e.delayMs && A) {
40
- const l = window.setTimeout(() => {
41
- o.value = !0;
42
- }, e.delayMs);
43
- r(() => {
44
- window.clearTimeout(l);
45
- });
46
- }
47
- }), (r, l) => o.value && n(t).imageLoadingStatus.value !== "loaded" ? (c(), d(n(C), {
48
- key: 0,
49
- "as-child": r.asChild,
50
- as: r.as
51
- }, {
52
- default: p(() => [
53
- f(r.$slots, "default")
54
- ]),
55
- _: 3
56
- }, 8, ["as-child", "as"])) : b("", !0);
57
- }
58
- });
59
- function w(a, e) {
60
- return a ? e ? (a.src !== e && (a.src = e), a.complete && a.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
61
- }
62
- function U(a, { referrerPolicy: e, crossOrigin: t } = {}) {
63
- const o = v(!1), r = v(null), l = x(() => o.value ? (!r.value && A && (r.value = new window.Image()), r.value) : null), m = v(w(l.value, a.value)), h = (i) => () => {
64
- o.value && (m.value = i);
65
- };
66
- return R(() => {
67
- o.value = !0, S((i) => {
68
- const s = l.value;
69
- if (!s)
70
- return;
71
- m.value = w(s, a.value);
72
- const _ = h("loaded"), y = h("error");
73
- s.addEventListener("load", _), s.addEventListener("error", y), e != null && e.value && (s.referrerPolicy = e.value), typeof (t == null ? void 0 : t.value) == "string" && (s.crossOrigin = t.value), i(() => {
74
- s.removeEventListener("load", _), s.removeEventListener("error", y);
75
- });
76
- });
77
- }), k(() => {
78
- o.value = !1;
79
- }), m;
80
- }
81
- const W = /* @__PURE__ */ u({
82
- __name: "AvatarImage",
83
- props: {
84
- src: {},
85
- referrerPolicy: {},
86
- crossOrigin: {},
87
- asChild: { type: Boolean },
88
- as: { default: "img" }
89
- },
90
- emits: ["loadingStatusChange"],
91
- setup(a, { emit: e }) {
92
- const t = a, o = e, { src: r, referrerPolicy: l, crossOrigin: m } = B(t);
93
- g();
94
- const h = L(), i = U(r, { referrerPolicy: l, crossOrigin: m });
95
- return E(
96
- i,
97
- (s) => {
98
- o("loadingStatusChange", s), s !== "idle" && (h.imageLoadingStatus.value = s);
99
- },
100
- { immediate: !0 }
101
- ), (s, _) => M((c(), d(n(C), {
102
- role: "img",
103
- "as-child": s.asChild,
104
- as: s.as,
105
- src: n(r),
106
- "referrer-policy": n(l)
107
- }, {
108
- default: p(() => [
109
- f(s.$slots, "default")
110
- ]),
111
- _: 3
112
- }, 8, ["as-child", "as", "src", "referrer-policy"])), [
113
- [z, n(i) === "loaded"]
114
- ]);
115
- }
116
- }), Z = /* @__PURE__ */ u({
117
- __name: "Avatar",
118
- props: {
119
- class: {},
120
- size: { default: "sm" },
121
- shape: { default: "circle" }
122
- },
123
- setup(a) {
124
- const e = a;
125
- return (t, o) => (c(), d(n(N), {
126
- class: F(n(T)(n(G)({ size: t.size, shape: t.shape }), e.class))
127
- }, {
128
- default: p(() => [
129
- f(t.$slots, "default")
130
- ]),
131
- _: 3
132
- }, 8, ["class"]));
133
- }
134
- }), ee = /* @__PURE__ */ u({
135
- __name: "AvatarFallback",
136
- props: {
137
- delayMs: {},
138
- asChild: { type: Boolean },
139
- as: { type: [String, Object, Function] }
140
- },
141
- setup(a) {
142
- const e = a;
143
- return (t, o) => (c(), d(n(O), I(j(e)), {
144
- default: p(() => [
145
- f(t.$slots, "default")
146
- ]),
147
- _: 3
148
- }, 16));
149
- }
150
- }), ae = /* @__PURE__ */ u({
151
- __name: "AvatarImage",
152
- props: {
153
- src: {},
154
- referrerPolicy: {},
155
- crossOrigin: {},
156
- asChild: { type: Boolean },
157
- as: { type: [String, Object, Function] }
158
- },
159
- setup(a) {
160
- const e = a;
161
- return (t, o) => (c(), d(n(W), P(e, { class: "h-full w-full object-cover" }), {
162
- default: p(() => [
163
- f(t.$slots, "default")
164
- ]),
165
- _: 3
166
- }, 16));
167
- }
168
- }), G = $(
169
- "inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",
170
- {
171
- variants: {
172
- size: {
173
- sm: "h-10 w-10 text-xs",
174
- base: "h-16 w-16 text-2xl",
175
- lg: "h-32 w-32 text-5xl"
176
- },
177
- shape: {
178
- circle: "rounded-full",
179
- square: "rounded-md"
180
- }
181
- }
182
- }
183
- );
184
- export {
185
- Z as Avatar,
186
- ee as AvatarFallback,
187
- ae as AvatarImage,
188
- G as avatarVariant
189
- };
@@ -1,37 +0,0 @@
1
- import { c as o } from "../../index-C_aI-Wfj.js";
2
- import { defineComponent as a, createElementBlock as s, openBlock as i, normalizeClass as c, unref as e, renderSlot as d } from "vue";
3
- import { c as u } from "../../utils-SFgRDk1R.js";
4
- const v = /* @__PURE__ */ a({
5
- __name: "Badge",
6
- props: {
7
- variant: {},
8
- class: {}
9
- },
10
- setup(t) {
11
- const n = t;
12
- return (r, l) => (i(), s("div", {
13
- class: c(e(u)(e(f)({ variant: r.variant }), n.class))
14
- }, [
15
- d(r.$slots, "default")
16
- ], 2));
17
- }
18
- }), f = o(
19
- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
20
- {
21
- variants: {
22
- variant: {
23
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
24
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
25
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
26
- outline: "text-foreground"
27
- }
28
- },
29
- defaultVariants: {
30
- variant: "default"
31
- }
32
- }
33
- );
34
- export {
35
- v as Badge,
36
- f as badgeVariants
37
- };
@@ -1,126 +0,0 @@
1
- import { defineComponent as c, createElementBlock as p, openBlock as n, normalizeClass as o, renderSlot as l, unref as a, createElementVNode as m, createVNode as u, createBlock as d, withCtx as f } from "vue";
2
- import { c as i } from "../../utils-SFgRDk1R.js";
3
- import { E as _ } from "../../ellipsis-CEG9G7eN.js";
4
- import { P as b } from "../../Primitive-B3twiLO1.js";
5
- import { C as h } from "../../chevron-right-D308801z.js";
6
- const C = /* @__PURE__ */ c({
7
- __name: "Breadcrumb",
8
- props: {
9
- class: {}
10
- },
11
- setup(e) {
12
- const r = e;
13
- return (s, t) => (n(), p("nav", {
14
- "aria-label": "breadcrumb",
15
- class: o(r.class)
16
- }, [
17
- l(s.$slots, "default")
18
- ], 2));
19
- }
20
- }), v = /* @__PURE__ */ c({
21
- __name: "BreadcrumbEllipsis",
22
- props: {
23
- class: {}
24
- },
25
- setup(e) {
26
- const r = e;
27
- return (s, t) => (n(), p("span", {
28
- role: "presentation",
29
- "aria-hidden": "true",
30
- class: o(a(i)("flex h-9 w-9 items-center justify-center", r.class))
31
- }, [
32
- l(s.$slots, "default", {}, () => [
33
- u(a(_), { class: "h-4 w-4" })
34
- ]),
35
- t[0] || (t[0] = m("span", { class: "sr-only" }, "More", -1))
36
- ], 2));
37
- }
38
- }), w = /* @__PURE__ */ c({
39
- __name: "BreadcrumbItem",
40
- props: {
41
- class: {}
42
- },
43
- setup(e) {
44
- const r = e;
45
- return (s, t) => (n(), p("li", {
46
- class: o(a(i)("inline-flex items-center gap-1.5", r.class))
47
- }, [
48
- l(s.$slots, "default")
49
- ], 2));
50
- }
51
- }), E = /* @__PURE__ */ c({
52
- __name: "BreadcrumbLink",
53
- props: {
54
- asChild: { type: Boolean },
55
- as: { type: [String, Object, Function], default: "a" },
56
- class: {}
57
- },
58
- setup(e) {
59
- const r = e;
60
- return (s, t) => (n(), d(a(b), {
61
- as: s.as,
62
- "as-child": s.asChild,
63
- class: o(a(i)("transition-colors hover:text-foreground", r.class))
64
- }, {
65
- default: f(() => [
66
- l(s.$slots, "default")
67
- ]),
68
- _: 3
69
- }, 8, ["as", "as-child", "class"]));
70
- }
71
- }), y = /* @__PURE__ */ c({
72
- __name: "BreadcrumbList",
73
- props: {
74
- class: {}
75
- },
76
- setup(e) {
77
- const r = e;
78
- return (s, t) => (n(), p("ol", {
79
- class: o(a(i)("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", r.class))
80
- }, [
81
- l(s.$slots, "default")
82
- ], 2));
83
- }
84
- }), L = /* @__PURE__ */ c({
85
- __name: "BreadcrumbPage",
86
- props: {
87
- class: {}
88
- },
89
- setup(e) {
90
- const r = e;
91
- return (s, t) => (n(), p("span", {
92
- role: "link",
93
- "aria-disabled": "true",
94
- "aria-current": "page",
95
- class: o(a(i)("font-normal text-foreground", r.class))
96
- }, [
97
- l(s.$slots, "default")
98
- ], 2));
99
- }
100
- }), P = /* @__PURE__ */ c({
101
- __name: "BreadcrumbSeparator",
102
- props: {
103
- class: {}
104
- },
105
- setup(e) {
106
- const r = e;
107
- return (s, t) => (n(), p("li", {
108
- role: "presentation",
109
- "aria-hidden": "true",
110
- class: o(a(i)("[&>svg]:w-3.5 [&>svg]:h-3.5", r.class))
111
- }, [
112
- l(s.$slots, "default", {}, () => [
113
- u(a(h))
114
- ])
115
- ], 2));
116
- }
117
- });
118
- export {
119
- C as Breadcrumb,
120
- v as BreadcrumbEllipsis,
121
- w as BreadcrumbItem,
122
- E as BreadcrumbLink,
123
- y as BreadcrumbList,
124
- L as BreadcrumbPage,
125
- P as BreadcrumbSeparator
126
- };