@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.
- package/dist/Dashboard/Card/OcCard.js +1 -1
- package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
- package/dist/{OcCard-B3SCzVwn.js → OcCard-D3be6IMj.js} +58 -54
- package/dist/OcCodeBlock-uFQyGnLq.js +37 -0
- package/dist/{OcLottieAnimation-DeMoIDaX.js → OcLottieAnimation-BB7AK2AO.js} +62 -62
- package/dist/{QuillEditor-hFQ0MJZO.js → QuillEditor-DRwC0sgJ.js} +579 -556
- package/dist/index.js +4 -4
- package/package.json +3 -265
- package/dist/AccordionTrigger.vue_vue_type_script_setup_true_lang-BdmLII9i.js +0 -295
- package/dist/CalendarPrevButton.vue_vue_type_script_setup_true_lang-DpJRpFhK.js +0 -891
- package/dist/CardTitle.vue_vue_type_script_setup_true_lang-D2_Bj3jw.js +0 -68
- package/dist/Checkbox.vue_vue_type_script_setup_true_lang-C51LjITJ.js +0 -172
- package/dist/CollapsibleTrigger-fCarY5DJ.js +0 -154
- package/dist/Collection-COudIl-A.js +0 -55
- package/dist/ConfigProvider-7mV0D7Sp.js +0 -6
- package/dist/DialogContent.vue_vue_type_script_setup_true_lang-CdrrrG29.js +0 -68
- package/dist/DialogOverlay-Cj3UTjZ8.js +0 -309
- package/dist/DialogPortal-zAvO8zt4.js +0 -23
- package/dist/DialogTrigger-BIF1A4hk.js +0 -72
- package/dist/DismissableLayer-C7IJliOb.js +0 -151
- package/dist/FocusScope--pJ6bboI.js +0 -121
- package/dist/FormMessage.vue_vue_type_script_setup_true_lang-DwlnFEn2.js +0 -92
- package/dist/Input.vue_vue_type_script_setup_true_lang-BrjsUUvL.js +0 -27
- package/dist/Label.vue_vue_type_script_setup_true_lang-D_LMIKBv.js +0 -51
- package/dist/ListboxItem-CjMk-mEX.js +0 -417
- package/dist/MenuSubTrigger-CUrxnPwO.js +0 -845
- package/dist/OcCodeBlock-CBdVqav7.js +0 -37
- package/dist/PopoverTrigger.vue_vue_type_script_setup_true_lang-DtI_qIyx.js +0 -394
- package/dist/PopperContent-BT3Svcc3.js +0 -1465
- package/dist/Presence-CxfTrw6l.js +0 -133
- package/dist/Primitive-B3twiLO1.js +0 -44
- package/dist/RadioGroupItem.vue_vue_type_script_setup_true_lang-BNfRYIhL.js +0 -297
- package/dist/RovingFocusGroup-0OHdFQl0.js +0 -92
- package/dist/RovingFocusItem-s7Ug6oxb.js +0 -82
- package/dist/SelectValue.vue_vue_type_script_setup_true_lang-CVsYrN1R.js +0 -1255
- package/dist/Separator-DRam5i7g.js +0 -54
- package/dist/Separator.vue_vue_type_script_setup_true_lang-DGPbh6Dt.js +0 -27
- package/dist/Skeleton.vue_vue_type_script_setup_true_lang-k1A7l6Y-.js +0 -17
- package/dist/Switch.vue_vue_type_script_setup_true_lang-94ZKgnTz.js +0 -135
- package/dist/Teleport-DnUewq5H.js +0 -25
- package/dist/Textarea.vue_vue_type_script_setup_true_lang-DKazues9.js +0 -27
- package/dist/TooltipTrigger.vue_vue_type_script_setup_true_lang-CZ3AuN38.js +0 -426
- package/dist/VisuallyHidden-DMAU4heD.js +0 -41
- package/dist/VisuallyHiddenInput-DvJnsVHt.js +0 -59
- package/dist/_commonjsHelpers-B4e78b8K.js +0 -28
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/array-CqVTtuYm.js +0 -6
- package/dist/arrays-4jDZqbdb.js +0 -20
- package/dist/check-C2tzJ0Gk.js +0 -11
- package/dist/chevron-down-CnpAlizg.js +0 -13
- package/dist/chevron-left-BOwFasou.js +0 -13
- package/dist/chevron-right-D308801z.js +0 -13
- package/dist/circle-A-6NpYiX.js +0 -13
- package/dist/clamp-BL1Rb24G.js +0 -22
- package/dist/constant-CuDQlTIy.js +0 -3433
- package/dist/createContext-CZEfaSVa.js +0 -17
- package/dist/createLucideIcon-eXqDwUWj.js +0 -71
- package/dist/ellipsis-CEG9G7eN.js +0 -15
- package/dist/getActiveElement-B-HWdUIb.js +0 -11
- package/dist/handleAndDispatchCustomEvent-Byh08EHr.js +0 -11
- package/dist/index-B3LW8uSH.js +0 -133
- package/dist/index-BIlpXuWX.js +0 -3430
- package/dist/index-BlGEiPHj.js +0 -1246
- package/dist/index-BwPb_idr.js +0 -574
- package/dist/index-C9julNQm.js +0 -173
- package/dist/index-C_aI-Wfj.js +0 -34
- package/dist/index-CumjCvqB.js +0 -5703
- package/dist/index-LqWMCtOd.js +0 -809
- package/dist/index-OpE2oGce.js +0 -110
- package/dist/isValueEqualOrExist-BDSMUv8t.js +0 -8
- package/dist/lib/utils.js +0 -5
- package/dist/nullish-CjWwlQS3.js +0 -6
- package/dist/ohash.D__AXeF1-DX2n0b2C.js +0 -106
- package/dist/plus-CgluTYQY.js +0 -14
- package/dist/text-zwICaAnx.js +0 -743
- package/dist/ui/accordion/index.js +0 -7
- package/dist/ui/alert/index.js +0 -64
- package/dist/ui/alert-dialog/index.js +0 -356
- package/dist/ui/aspect-ratio/index.js +0 -50
- package/dist/ui/auto-form/constant.js +0 -5
- package/dist/ui/auto-form/dependencies.js +0 -61
- package/dist/ui/auto-form/index.js +0 -227
- package/dist/ui/auto-form/interface.js +0 -4
- package/dist/ui/auto-form/utils.js +0 -89
- package/dist/ui/avatar/index.js +0 -189
- package/dist/ui/badge/index.js +0 -37
- package/dist/ui/breadcrumb/index.js +0 -126
- package/dist/ui/button/index.js +0 -55
- package/dist/ui/calendar/index.js +0 -15
- package/dist/ui/card/index.js +0 -38
- package/dist/ui/carousel/index.js +0 -174
- package/dist/ui/carousel/interface.js +0 -1
- package/dist/ui/carousel/useCarousel.js +0 -1288
- package/dist/ui/chart/index.js +0 -8
- package/dist/ui/chart/interface.js +0 -1
- package/dist/ui/chart-area/index.js +0 -331
- package/dist/ui/chart-bar/index.js +0 -490
- package/dist/ui/chart-donut/index.js +0 -509
- package/dist/ui/chart-line/index.js +0 -110
- package/dist/ui/checkbox/index.js +0 -4
- package/dist/ui/collapsible/index.js +0 -60
- package/dist/ui/combobox/index.js +0 -877
- package/dist/ui/command/index.js +0 -323
- package/dist/ui/context-menu/index.js +0 -734
- package/dist/ui/dialog/index.js +0 -169
- package/dist/ui/drawer/index.js +0 -971
- package/dist/ui/dropdown-menu/index.js +0 -723
- package/dist/ui/form/index.js +0 -13
- package/dist/ui/form/injectionKeys.js +0 -4
- package/dist/ui/form/useFormField.js +0 -25
- package/dist/ui/hover-card/index.js +0 -331
- package/dist/ui/input/index.js +0 -4
- package/dist/ui/label/index.js +0 -4
- package/dist/ui/menubar/index.js +0 -862
- package/dist/ui/navigation-menu/index.js +0 -873
- package/dist/ui/number-field/index.js +0 -682
- package/dist/ui/pagination/index.js +0 -444
- package/dist/ui/pin-input/index.js +0 -308
- package/dist/ui/popover/index.js +0 -6
- package/dist/ui/progress/index.js +0 -137
- package/dist/ui/radio-group/index.js +0 -5
- package/dist/ui/range-calendar/index.js +0 -986
- package/dist/ui/resizable/index.js +0 -1432
- package/dist/ui/scroll-area/index.js +0 -775
- package/dist/ui/select/index.js +0 -135
- package/dist/ui/separator/index.js +0 -4
- package/dist/ui/sheet/index.js +0 -188
- package/dist/ui/sidebar/index.js +0 -652
- package/dist/ui/sidebar/utils.js +0 -12
- package/dist/ui/skeleton/index.js +0 -4
- package/dist/ui/slider/index.js +0 -478
- package/dist/ui/sonner/index.js +0 -892
- package/dist/ui/stepper/index.js +0 -442
- package/dist/ui/switch/index.js +0 -4
- package/dist/ui/table/index.js +0 -153
- package/dist/ui/tabs/index.js +0 -280
- package/dist/ui/tags-input/index.js +0 -449
- package/dist/ui/textarea/index.js +0 -4
- package/dist/ui/toast/index.js +0 -738
- package/dist/ui/toast/use-toast.js +0 -85
- package/dist/ui/toggle/index.js +0 -6
- package/dist/ui/toggle-group/index.js +0 -112
- package/dist/ui/tooltip/index.js +0 -29
- package/dist/useArrowNavigation-BRMPveaB.js +0 -49
- package/dist/useBodyScrollLock-CazCRZjZ.js +0 -153
- package/dist/useDirection-C3C_TLKm.js +0 -14
- package/dist/useFocusGuards-CyjC9cG9.js +0 -26
- package/dist/useFormControl-CFVC51Lp.js +0 -11
- package/dist/useForwardExpose-DZT6mL_U.js +0 -37
- package/dist/useForwardPropsEmits-0XKBv1pB.js +0 -33
- package/dist/useGraceArea-D7-GP1ii.js +0 -137
- package/dist/useId-reAg216X.js +0 -13
- package/dist/useKbd-BJNupnml.js +0 -41
- package/dist/useLocale-BfU0LC8Z.js +0 -14
- package/dist/useNonce-C1ZOgOp5.js +0 -14
- package/dist/usePrimitiveElement-BjwUvHih.js +0 -15
- package/dist/useSingleOrMultipleValue-BkTAaaJB.js +0 -43
- package/dist/useSize-BnyQ8FZF.js +0 -37
- package/dist/useTypeahead-oSidjyFF.js +0 -40
- package/dist/utils-DKNaYMZh.js +0 -57
- package/dist/utils-Dx9la83v.js +0 -35
- package/dist/utils-DxQ_ywGa.js +0 -55
- package/dist/utils-SFgRDk1R.js +0 -2748
- package/dist/utils-W-UiqiPE.js +0 -1869
- package/dist/vee-validate-Cf8JDJ_k.js +0 -2232
- package/dist/x-Cl6YllUK.js +0 -14
package/dist/ui/stepper/index.js
DELETED
|
@@ -1,442 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/ui/switch/index.js
DELETED
package/dist/ui/table/index.js
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
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
|
-
};
|