@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,280 @@
1
+ import { defineComponent as f, toRefs as B, ref as M, createBlock as m, openBlock as v, unref as e, withCtx as u, renderSlot as b, computed as g, onMounted as I, createVNode as _, normalizeStyle as R, createCommentVNode as k, withKeys as F, withModifiers as O, normalizeProps as S, guardReactiveProps as j, mergeProps as C, createElementVNode as L } from "vue";
2
+ import { u as A, a as D } from "../../useForwardPropsEmits-0XKBv1pB.js";
3
+ import { u as E } from "../../index-BwPb_idr.js";
4
+ import { c as H } from "../../createContext-CZEfaSVa.js";
5
+ import { u as z } from "../../useDirection-C3C_TLKm.js";
6
+ import { u as h } from "../../useForwardExpose-DZT6mL_U.js";
7
+ import { u as K } from "../../useId-reAg216X.js";
8
+ import { P as y } from "../../Primitive-B3twiLO1.js";
9
+ import { c as V } from "../../utils-SFgRDk1R.js";
10
+ import { P as N } from "../../Presence-CxfTrw6l.js";
11
+ import { r as $ } from "../../index-OpE2oGce.js";
12
+ import { _ as q } from "../../RovingFocusGroup-0OHdFQl0.js";
13
+ import { _ as G } from "../../RovingFocusItem-s7Ug6oxb.js";
14
+ function w(o, a) {
15
+ return `${o}-trigger-${a}`;
16
+ }
17
+ function P(o, a) {
18
+ return `${o}-content-${a}`;
19
+ }
20
+ const [T, J] = H("TabsRoot"), Q = /* @__PURE__ */ f({
21
+ __name: "TabsRoot",
22
+ props: {
23
+ defaultValue: {},
24
+ orientation: { default: "horizontal" },
25
+ dir: {},
26
+ activationMode: { default: "automatic" },
27
+ modelValue: {},
28
+ unmountOnHide: { type: Boolean, default: !0 },
29
+ asChild: { type: Boolean },
30
+ as: {}
31
+ },
32
+ emits: ["update:modelValue"],
33
+ setup(o, { emit: a }) {
34
+ const n = o, t = a, { orientation: l, unmountOnHide: d, dir: i } = B(n), s = z(i);
35
+ h();
36
+ const r = E(n, "modelValue", t, {
37
+ defaultValue: n.defaultValue,
38
+ passive: n.modelValue === void 0
39
+ }), c = M();
40
+ return J({
41
+ modelValue: r,
42
+ changeModelValue: (p) => {
43
+ r.value = p;
44
+ },
45
+ orientation: l,
46
+ dir: s,
47
+ unmountOnHide: d,
48
+ activationMode: n.activationMode,
49
+ baseId: K(void 0, "reka-tabs"),
50
+ tabsList: c
51
+ }), (p, Z) => (v(), m(e(y), {
52
+ dir: e(s),
53
+ "data-orientation": e(l),
54
+ "as-child": p.asChild,
55
+ as: p.as
56
+ }, {
57
+ default: u(() => [
58
+ b(p.$slots, "default", { modelValue: e(r) })
59
+ ]),
60
+ _: 3
61
+ }, 8, ["dir", "data-orientation", "as-child", "as"]));
62
+ }
63
+ }), U = /* @__PURE__ */ f({
64
+ __name: "TabsContent",
65
+ props: {
66
+ value: {},
67
+ forceMount: { type: Boolean },
68
+ asChild: { type: Boolean },
69
+ as: {}
70
+ },
71
+ setup(o) {
72
+ const a = o, { forwardRef: n } = h(), t = T(), l = g(() => w(t.baseId, a.value)), d = g(() => P(t.baseId, a.value)), i = g(() => a.value === t.modelValue.value), s = M(i.value);
73
+ return I(() => {
74
+ requestAnimationFrame(() => {
75
+ s.value = !1;
76
+ });
77
+ }), (r, c) => (v(), m(e(N), {
78
+ present: r.forceMount || i.value,
79
+ "force-mount": ""
80
+ }, {
81
+ default: u(({ present: p }) => [
82
+ _(e(y), {
83
+ id: d.value,
84
+ ref: e(n),
85
+ "as-child": r.asChild,
86
+ as: r.as,
87
+ role: "tabpanel",
88
+ "data-state": i.value ? "active" : "inactive",
89
+ "data-orientation": e(t).orientation.value,
90
+ "aria-labelledby": l.value,
91
+ hidden: !p,
92
+ tabindex: "0",
93
+ style: R({
94
+ animationDuration: s.value ? "0s" : void 0
95
+ })
96
+ }, {
97
+ default: u(() => [
98
+ !e(t).unmountOnHide.value || p ? b(r.$slots, "default", { key: 0 }) : k("", !0)
99
+ ]),
100
+ _: 2
101
+ }, 1032, ["id", "as-child", "as", "data-state", "data-orientation", "aria-labelledby", "hidden", "style"])
102
+ ]),
103
+ _: 3
104
+ }, 8, ["present"]));
105
+ }
106
+ }), W = /* @__PURE__ */ f({
107
+ __name: "TabsList",
108
+ props: {
109
+ loop: { type: Boolean, default: !0 },
110
+ asChild: { type: Boolean },
111
+ as: {}
112
+ },
113
+ setup(o) {
114
+ const a = o, { loop: n } = B(a), { forwardRef: t, currentElement: l } = h(), d = T();
115
+ return d.tabsList = l, (i, s) => (v(), m(e(q), {
116
+ "as-child": "",
117
+ orientation: e(d).orientation.value,
118
+ dir: e(d).dir.value,
119
+ loop: e(n)
120
+ }, {
121
+ default: u(() => [
122
+ _(e(y), {
123
+ ref: e(t),
124
+ role: "tablist",
125
+ "as-child": i.asChild,
126
+ as: i.as,
127
+ "aria-orientation": e(d).orientation.value
128
+ }, {
129
+ default: u(() => [
130
+ b(i.$slots, "default")
131
+ ]),
132
+ _: 3
133
+ }, 8, ["as-child", "as", "aria-orientation"])
134
+ ]),
135
+ _: 3
136
+ }, 8, ["orientation", "dir", "loop"]));
137
+ }
138
+ }), X = /* @__PURE__ */ f({
139
+ __name: "TabsTrigger",
140
+ props: {
141
+ value: {},
142
+ disabled: { type: Boolean, default: !1 },
143
+ asChild: { type: Boolean },
144
+ as: { default: "button" }
145
+ },
146
+ setup(o) {
147
+ const a = o, { forwardRef: n } = h(), t = T(), l = g(() => w(t.baseId, a.value)), d = g(() => P(t.baseId, a.value)), i = g(() => a.value === t.modelValue.value);
148
+ return (s, r) => (v(), m(e(G), {
149
+ "as-child": "",
150
+ focusable: !s.disabled,
151
+ active: i.value
152
+ }, {
153
+ default: u(() => [
154
+ _(e(y), {
155
+ id: l.value,
156
+ ref: e(n),
157
+ role: "tab",
158
+ type: s.as === "button" ? "button" : void 0,
159
+ as: s.as,
160
+ "as-child": s.asChild,
161
+ "aria-selected": i.value ? "true" : "false",
162
+ "aria-controls": d.value,
163
+ "data-state": i.value ? "active" : "inactive",
164
+ disabled: s.disabled,
165
+ "data-disabled": s.disabled ? "" : void 0,
166
+ "data-orientation": e(t).orientation.value,
167
+ onMousedown: r[0] || (r[0] = O((c) => {
168
+ !s.disabled && c.ctrlKey === !1 ? e(t).changeModelValue(s.value) : c.preventDefault();
169
+ }, ["left"])),
170
+ onKeydown: r[1] || (r[1] = F((c) => e(t).changeModelValue(s.value), ["enter", "space"])),
171
+ onFocus: r[2] || (r[2] = () => {
172
+ const c = e(t).activationMode !== "manual";
173
+ !i.value && !s.disabled && c && e(t).changeModelValue(s.value);
174
+ })
175
+ }, {
176
+ default: u(() => [
177
+ b(s.$slots, "default")
178
+ ]),
179
+ _: 3
180
+ }, 8, ["id", "type", "as", "as-child", "aria-selected", "aria-controls", "data-state", "disabled", "data-disabled", "data-orientation"])
181
+ ]),
182
+ _: 3
183
+ }, 8, ["focusable", "active"]));
184
+ }
185
+ }), pe = /* @__PURE__ */ f({
186
+ __name: "Tabs",
187
+ props: {
188
+ defaultValue: {},
189
+ orientation: {},
190
+ dir: {},
191
+ activationMode: {},
192
+ modelValue: {},
193
+ unmountOnHide: { type: Boolean },
194
+ asChild: { type: Boolean },
195
+ as: { type: [String, Object, Function] }
196
+ },
197
+ emits: ["update:modelValue"],
198
+ setup(o, { emit: a }) {
199
+ const l = A(o, a);
200
+ return (d, i) => (v(), m(e(Q), S(j(e(l))), {
201
+ default: u(() => [
202
+ b(d.$slots, "default")
203
+ ]),
204
+ _: 3
205
+ }, 16));
206
+ }
207
+ }), fe = /* @__PURE__ */ f({
208
+ __name: "TabsContent",
209
+ props: {
210
+ value: {},
211
+ forceMount: { type: Boolean },
212
+ asChild: { type: Boolean },
213
+ as: { type: [String, Object, Function] },
214
+ class: {}
215
+ },
216
+ setup(o) {
217
+ const a = o, n = $(a, "class");
218
+ return (t, l) => (v(), m(e(U), C({
219
+ class: e(V)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", a.class)
220
+ }, e(n)), {
221
+ default: u(() => [
222
+ b(t.$slots, "default")
223
+ ]),
224
+ _: 3
225
+ }, 16, ["class"]));
226
+ }
227
+ }), me = /* @__PURE__ */ f({
228
+ __name: "TabsList",
229
+ props: {
230
+ loop: { type: Boolean },
231
+ asChild: { type: Boolean },
232
+ as: { type: [String, Object, Function] },
233
+ class: {}
234
+ },
235
+ setup(o) {
236
+ const a = o, n = $(a, "class");
237
+ return (t, l) => (v(), m(e(W), C(e(n), {
238
+ class: e(V)(
239
+ "inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
240
+ a.class
241
+ )
242
+ }), {
243
+ default: u(() => [
244
+ b(t.$slots, "default")
245
+ ]),
246
+ _: 3
247
+ }, 16, ["class"]));
248
+ }
249
+ }), Y = { class: "truncate" }, ve = /* @__PURE__ */ f({
250
+ __name: "TabsTrigger",
251
+ props: {
252
+ value: {},
253
+ disabled: { type: Boolean },
254
+ asChild: { type: Boolean },
255
+ as: { type: [String, Object, Function] },
256
+ class: {}
257
+ },
258
+ setup(o) {
259
+ const a = o, n = $(a, "class"), t = D(n);
260
+ return (l, d) => (v(), m(e(X), C(e(t), {
261
+ class: e(V)(
262
+ "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
263
+ a.class
264
+ )
265
+ }), {
266
+ default: u(() => [
267
+ L("span", Y, [
268
+ b(l.$slots, "default")
269
+ ])
270
+ ]),
271
+ _: 3
272
+ }, 16, ["class"]));
273
+ }
274
+ });
275
+ export {
276
+ pe as Tabs,
277
+ fe as TabsContent,
278
+ me as TabsList,
279
+ ve as TabsTrigger
280
+ };