@velocityuikit/velocityui 0.1.14 → 0.1.16
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/components/AnimatedBackground/AnimatedBackground.d.ts +13 -0
- package/dist/components/AnimatedBackground/index.d.ts +2 -0
- package/dist/components/GradientOrbs/GradientOrbs.d.ts +7 -0
- package/dist/components/GradientOrbs/index.d.ts +2 -0
- package/dist/components/GridGlow/GridGlow.d.ts +7 -0
- package/dist/components/GridGlow/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +919 -815
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as h, jsx as e, Fragment as
|
|
2
|
-
import j, { useRef as A, useEffect as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
const
|
|
5
|
-
button:
|
|
6
|
-
loading:
|
|
7
|
-
sm:
|
|
8
|
-
md:
|
|
9
|
-
lg:
|
|
10
|
-
primary:
|
|
11
|
-
secondary:
|
|
12
|
-
outline:
|
|
13
|
-
ghost:
|
|
14
|
-
danger:
|
|
15
|
-
fullWidth:
|
|
16
|
-
spinner:
|
|
17
|
-
spin:
|
|
18
|
-
},
|
|
1
|
+
import { jsxs as h, jsx as e, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
+
import j, { useRef as A, useEffect as he, useState as D, useId as qe, useCallback as $e, useContext as ot, createContext as rt } from "react";
|
|
3
|
+
import { createPortal as ze } from "react-dom";
|
|
4
|
+
const st = "_button_111na_1", at = "_loading_111na_26", it = "_sm_111na_33", lt = "_md_111na_39", ct = "_lg_111na_45", dt = "_primary_111na_52", _t = "_secondary_111na_65", ut = "_outline_111na_78", pt = "_ghost_111na_90", ht = "_danger_111na_101", mt = "_fullWidth_111na_114", ft = "_spinner_111na_119", bt = "_spin_111na_119", le = {
|
|
5
|
+
button: st,
|
|
6
|
+
loading: at,
|
|
7
|
+
sm: it,
|
|
8
|
+
md: lt,
|
|
9
|
+
lg: ct,
|
|
10
|
+
primary: dt,
|
|
11
|
+
secondary: _t,
|
|
12
|
+
outline: ut,
|
|
13
|
+
ghost: pt,
|
|
14
|
+
danger: ht,
|
|
15
|
+
fullWidth: mt,
|
|
16
|
+
spinner: ft,
|
|
17
|
+
spin: bt
|
|
18
|
+
}, gt = j.forwardRef(
|
|
19
19
|
({
|
|
20
20
|
variant: t = "primary",
|
|
21
21
|
size: o = "md",
|
|
@@ -29,11 +29,11 @@ const nt = "_button_111na_1", ot = "_loading_111na_26", rt = "_sm_111na_33", st
|
|
|
29
29
|
..._
|
|
30
30
|
}, p) => {
|
|
31
31
|
const m = [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
r ?
|
|
36
|
-
n ?
|
|
32
|
+
le.button,
|
|
33
|
+
le[t],
|
|
34
|
+
le[o],
|
|
35
|
+
r ? le.fullWidth : "",
|
|
36
|
+
n ? le.loading : "",
|
|
37
37
|
i ?? ""
|
|
38
38
|
].filter(Boolean).join(" ");
|
|
39
39
|
return /* @__PURE__ */ h(
|
|
@@ -45,7 +45,7 @@ const nt = "_button_111na_1", ot = "_loading_111na_26", rt = "_sm_111na_33", st
|
|
|
45
45
|
"aria-busy": n,
|
|
46
46
|
..._,
|
|
47
47
|
children: [
|
|
48
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
48
|
+
n && /* @__PURE__ */ e("span", { className: le.spinner, "aria-hidden": "true" }),
|
|
49
49
|
!n && s && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: s }),
|
|
50
50
|
l,
|
|
51
51
|
!n && a && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: a })
|
|
@@ -54,32 +54,32 @@ const nt = "_button_111na_1", ot = "_loading_111na_26", rt = "_sm_111na_33", st
|
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
wrapper:
|
|
60
|
-
label:
|
|
61
|
-
required:
|
|
62
|
-
inputWrapper:
|
|
63
|
-
input:
|
|
64
|
-
error:
|
|
65
|
-
sm:
|
|
66
|
-
md:
|
|
67
|
-
lg:
|
|
68
|
-
hasLeft:
|
|
69
|
-
hasRight:
|
|
70
|
-
iconLeft:
|
|
71
|
-
iconRight:
|
|
72
|
-
hint:
|
|
73
|
-
errorText:
|
|
74
|
-
floatingWrapper:
|
|
75
|
-
inputFloating:
|
|
76
|
-
floatingLabelEl:
|
|
77
|
-
floatingLabelSm:
|
|
78
|
-
floatingLabelMd:
|
|
79
|
-
floatingLabelLg:
|
|
80
|
-
floatingLabelWithLeft:
|
|
81
|
-
floatingLabelError:
|
|
82
|
-
},
|
|
57
|
+
gt.displayName = "Button";
|
|
58
|
+
const vt = "_wrapper_1r7em_1", wt = "_label_1r7em_8", $t = "_required_1r7em_15", kt = "_inputWrapper_1r7em_20", yt = "_input_1r7em_20", Nt = "_error_1r7em_55", xt = "_sm_1r7em_64", Lt = "_md_1r7em_70", Bt = "_lg_1r7em_76", jt = "_hasLeft_1r7em_83", It = "_hasRight_1r7em_87", Ct = "_iconLeft_1r7em_91", Et = "_iconRight_1r7em_92", qt = "_hint_1r7em_111", Wt = "_errorText_1r7em_117", Tt = "_floatingWrapper_1r7em_125", Rt = "_inputFloating_1r7em_130", Mt = "_floatingLabelEl_1r7em_149", St = "_floatingLabelSm_1r7em_165", zt = "_floatingLabelMd_1r7em_166", Dt = "_floatingLabelLg_1r7em_167", Ft = "_floatingLabelWithLeft_1r7em_170", At = "_floatingLabelError_1r7em_190", B = {
|
|
59
|
+
wrapper: vt,
|
|
60
|
+
label: wt,
|
|
61
|
+
required: $t,
|
|
62
|
+
inputWrapper: kt,
|
|
63
|
+
input: yt,
|
|
64
|
+
error: Nt,
|
|
65
|
+
sm: xt,
|
|
66
|
+
md: Lt,
|
|
67
|
+
lg: Bt,
|
|
68
|
+
hasLeft: jt,
|
|
69
|
+
hasRight: It,
|
|
70
|
+
iconLeft: Ct,
|
|
71
|
+
iconRight: Et,
|
|
72
|
+
hint: qt,
|
|
73
|
+
errorText: Wt,
|
|
74
|
+
floatingWrapper: Tt,
|
|
75
|
+
inputFloating: Rt,
|
|
76
|
+
floatingLabelEl: Mt,
|
|
77
|
+
floatingLabelSm: St,
|
|
78
|
+
floatingLabelMd: zt,
|
|
79
|
+
floatingLabelLg: Dt,
|
|
80
|
+
floatingLabelWithLeft: Ft,
|
|
81
|
+
floatingLabelError: At
|
|
82
|
+
}, Ht = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
|
|
83
83
|
"path",
|
|
84
84
|
{
|
|
85
85
|
strokeLinecap: "round",
|
|
@@ -87,7 +87,7 @@ const ft = "_wrapper_1r7em_1", bt = "_label_1r7em_8", gt = "_required_1r7em_15",
|
|
|
87
87
|
strokeWidth: 2,
|
|
88
88
|
d: "M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
89
89
|
}
|
|
90
|
-
) }),
|
|
90
|
+
) }), Ot = j.forwardRef(
|
|
91
91
|
({
|
|
92
92
|
label: t,
|
|
93
93
|
size: o = "md",
|
|
@@ -108,18 +108,18 @@ const ft = "_wrapper_1r7em_1", bt = "_label_1r7em_8", gt = "_required_1r7em_15",
|
|
|
108
108
|
placeholder: v,
|
|
109
109
|
...w
|
|
110
110
|
}, L) => {
|
|
111
|
-
const $ = u ?? (t ? `vui-input-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), q = $ ? `${$}-error` : void 0,
|
|
112
|
-
let k = s,
|
|
113
|
-
|
|
114
|
-
const
|
|
111
|
+
const $ = u ?? (t ? `vui-input-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), q = $ ? `${$}-error` : void 0, N = $ ? `${$}-hint` : void 0, P = l || !!i, K = i ?? /* @__PURE__ */ e(Ht, {});
|
|
112
|
+
let k = s, y = a, V = !1, J = !1;
|
|
113
|
+
P && (c === "right" ? y || (y = K, J = !0) : k || (k = K, V = !0));
|
|
114
|
+
const ae = [
|
|
115
115
|
B.input,
|
|
116
116
|
B[o],
|
|
117
117
|
f ? B.inputFloating : "",
|
|
118
118
|
n ? B.error : "",
|
|
119
119
|
k ? B.hasLeft : "",
|
|
120
|
-
|
|
120
|
+
y ? B.hasRight : "",
|
|
121
121
|
g ?? ""
|
|
122
|
-
].filter(Boolean).join(" "),
|
|
122
|
+
].filter(Boolean).join(" "), ke = [
|
|
123
123
|
B.floatingLabelEl,
|
|
124
124
|
B[`floatingLabel${o.charAt(0).toUpperCase() + o.slice(1)}`],
|
|
125
125
|
k ? B.floatingLabelWithLeft : "",
|
|
@@ -136,7 +136,7 @@ const ft = "_wrapper_1r7em_1", bt = "_label_1r7em_8", gt = "_required_1r7em_15",
|
|
|
136
136
|
{
|
|
137
137
|
className: [B.iconLeft, _ ?? ""].filter(Boolean).join(" "),
|
|
138
138
|
"data-slot": "left-icon",
|
|
139
|
-
"data-search-icon":
|
|
139
|
+
"data-search-icon": V ? "true" : void 0,
|
|
140
140
|
"aria-hidden": "true",
|
|
141
141
|
children: k
|
|
142
142
|
}
|
|
@@ -146,64 +146,64 @@ const ft = "_wrapper_1r7em_1", bt = "_label_1r7em_8", gt = "_required_1r7em_15",
|
|
|
146
146
|
{
|
|
147
147
|
ref: L,
|
|
148
148
|
id: $,
|
|
149
|
-
className:
|
|
149
|
+
className: ae,
|
|
150
150
|
required: m,
|
|
151
151
|
"aria-invalid": !!n,
|
|
152
|
-
"aria-describedby": [n ? q : null, r ?
|
|
152
|
+
"aria-describedby": [n ? q : null, r ? N : null].filter(Boolean).join(" ") || void 0,
|
|
153
153
|
placeholder: f ? " " : v,
|
|
154
154
|
...w
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
|
-
t && f && /* @__PURE__ */ h("label", { htmlFor: $, className:
|
|
157
|
+
t && f && /* @__PURE__ */ h("label", { htmlFor: $, className: ke, children: [
|
|
158
158
|
t,
|
|
159
159
|
m && /* @__PURE__ */ e("span", { className: B.required, "aria-hidden": "true", children: "*" })
|
|
160
160
|
] }),
|
|
161
|
-
|
|
161
|
+
y && /* @__PURE__ */ e(
|
|
162
162
|
"span",
|
|
163
163
|
{
|
|
164
164
|
className: [B.iconRight, p ?? ""].filter(Boolean).join(" "),
|
|
165
165
|
"data-slot": "right-icon",
|
|
166
|
-
"data-search-icon":
|
|
166
|
+
"data-search-icon": J ? "true" : void 0,
|
|
167
167
|
"aria-hidden": "true",
|
|
168
|
-
children:
|
|
168
|
+
children: y
|
|
169
169
|
}
|
|
170
170
|
)
|
|
171
171
|
] }),
|
|
172
172
|
n && /* @__PURE__ */ e("span", { id: q, className: B.errorText, role: "alert", children: n }),
|
|
173
|
-
r && !n && /* @__PURE__ */ e("span", { id:
|
|
173
|
+
r && !n && /* @__PURE__ */ e("span", { id: N, className: B.hint, children: r })
|
|
174
174
|
] });
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
title:
|
|
180
|
-
xs:
|
|
181
|
-
sm:
|
|
182
|
-
md:
|
|
183
|
-
lg:
|
|
184
|
-
xl:
|
|
185
|
-
xxl:
|
|
186
|
-
light:
|
|
187
|
-
normal:
|
|
188
|
-
medium:
|
|
189
|
-
semibold:
|
|
190
|
-
bold:
|
|
191
|
-
extrabold:
|
|
192
|
-
left:
|
|
193
|
-
center:
|
|
194
|
-
right:
|
|
177
|
+
Ot.displayName = "Input";
|
|
178
|
+
const Ut = "_title_1np0f_1", Pt = "_xs_1np0f_9", Vt = "_sm_1np0f_14", Xt = "_md_1np0f_19", Yt = "_lg_1np0f_24", Gt = "_xl_1np0f_29", Kt = "_xxl_1np0f_34", Jt = "_light_1np0f_40", Qt = "_normal_1np0f_44", Zt = "_medium_1np0f_48", en = "_semibold_1np0f_52", tn = "_bold_1np0f_56", nn = "_extrabold_1np0f_60", on = "_left_1np0f_65", rn = "_center_1np0f_69", sn = "_right_1np0f_73", an = "_muted_1np0f_82", ln = "_primary_1np0f_86", cn = "_gradient_1np0f_90", be = {
|
|
179
|
+
title: Ut,
|
|
180
|
+
xs: Pt,
|
|
181
|
+
sm: Vt,
|
|
182
|
+
md: Xt,
|
|
183
|
+
lg: Yt,
|
|
184
|
+
xl: Gt,
|
|
185
|
+
xxl: Kt,
|
|
186
|
+
light: Jt,
|
|
187
|
+
normal: Qt,
|
|
188
|
+
medium: Zt,
|
|
189
|
+
semibold: en,
|
|
190
|
+
bold: tn,
|
|
191
|
+
extrabold: nn,
|
|
192
|
+
left: on,
|
|
193
|
+
center: rn,
|
|
194
|
+
right: sn,
|
|
195
195
|
default: "_default_1np0f_78",
|
|
196
|
-
muted:
|
|
197
|
-
primary:
|
|
198
|
-
gradient:
|
|
199
|
-
},
|
|
196
|
+
muted: an,
|
|
197
|
+
primary: ln,
|
|
198
|
+
gradient: cn
|
|
199
|
+
}, dn = {
|
|
200
200
|
h1: "xxl",
|
|
201
201
|
h2: "xl",
|
|
202
202
|
h3: "lg",
|
|
203
203
|
h4: "md",
|
|
204
204
|
h5: "sm",
|
|
205
205
|
h6: "xs"
|
|
206
|
-
},
|
|
206
|
+
}, pc = ({
|
|
207
207
|
as: t,
|
|
208
208
|
level: o = "h1",
|
|
209
209
|
size: n,
|
|
@@ -214,28 +214,28 @@ const At = "_title_1np0f_1", Ht = "_xs_1np0f_9", Ot = "_sm_1np0f_14", Ut = "_md_
|
|
|
214
214
|
className: i,
|
|
215
215
|
...c
|
|
216
216
|
}) => {
|
|
217
|
-
const _ = t ?? o, p = n ??
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
217
|
+
const _ = t ?? o, p = n ?? dn[_], m = [
|
|
218
|
+
be.title,
|
|
219
|
+
be[p],
|
|
220
|
+
be[r],
|
|
221
|
+
be[s],
|
|
222
|
+
be[a],
|
|
223
223
|
i ?? ""
|
|
224
224
|
].filter(Boolean).join(" ");
|
|
225
225
|
return j.createElement(_, { className: m, ...c }, l);
|
|
226
|
-
},
|
|
227
|
-
badge:
|
|
228
|
-
sm:
|
|
229
|
-
md:
|
|
230
|
-
lg:
|
|
226
|
+
}, _n = "_badge_8sbva_1", un = "_sm_8sbva_14", pn = "_md_8sbva_19", hn = "_lg_8sbva_24", mn = "_info_8sbva_36", fn = "_success_8sbva_42", bn = "_warning_8sbva_48", gn = "_danger_8sbva_54", vn = "_primary_8sbva_60", wn = "_dot_8sbva_67", Be = {
|
|
227
|
+
badge: _n,
|
|
228
|
+
sm: un,
|
|
229
|
+
md: pn,
|
|
230
|
+
lg: hn,
|
|
231
231
|
default: "_default_8sbva_30",
|
|
232
|
-
info:
|
|
233
|
-
success:
|
|
234
|
-
warning:
|
|
235
|
-
danger:
|
|
236
|
-
primary:
|
|
237
|
-
dot:
|
|
238
|
-
},
|
|
232
|
+
info: mn,
|
|
233
|
+
success: fn,
|
|
234
|
+
warning: bn,
|
|
235
|
+
danger: gn,
|
|
236
|
+
primary: vn,
|
|
237
|
+
dot: wn
|
|
238
|
+
}, hc = ({
|
|
239
239
|
variant: t = "default",
|
|
240
240
|
size: o = "md",
|
|
241
241
|
dot: n = !1,
|
|
@@ -245,36 +245,36 @@ const At = "_title_1np0f_1", Ht = "_xs_1np0f_9", Ot = "_sm_1np0f_14", Ut = "_md_
|
|
|
245
245
|
...l
|
|
246
246
|
}) => {
|
|
247
247
|
const i = [
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
Be.badge,
|
|
249
|
+
Be[t],
|
|
250
|
+
Be[o],
|
|
251
251
|
a ?? ""
|
|
252
252
|
].filter(Boolean).join(" ");
|
|
253
253
|
return /* @__PURE__ */ h("span", { className: i, ...l, children: [
|
|
254
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
254
|
+
n && /* @__PURE__ */ e("span", { className: Be.dot, "aria-hidden": "true" }),
|
|
255
255
|
!n && r && /* @__PURE__ */ e("span", { "aria-hidden": "true", children: r }),
|
|
256
256
|
s
|
|
257
257
|
] });
|
|
258
|
-
},
|
|
259
|
-
card:
|
|
260
|
-
bordered:
|
|
261
|
-
shadow:
|
|
262
|
-
elevated:
|
|
263
|
-
ghost:
|
|
264
|
-
sm:
|
|
265
|
-
cardHeader:
|
|
266
|
-
cardBody:
|
|
267
|
-
cardFooter:
|
|
268
|
-
md:
|
|
269
|
-
lg:
|
|
270
|
-
hoverable:
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
const
|
|
258
|
+
}, $n = "_card_1q61w_1", kn = "_bordered_1q61w_11", yn = "_shadow_1q61w_15", Nn = "_elevated_1q61w_19", xn = "_ghost_1q61w_23", Ln = "_sm_1q61w_29", Bn = "_cardHeader_1q61w_29", jn = "_cardBody_1q61w_30", In = "_cardFooter_1q61w_31", Cn = "_md_1q61w_35", En = "_lg_1q61w_41", qn = "_hoverable_1q61w_72", se = {
|
|
259
|
+
card: $n,
|
|
260
|
+
bordered: kn,
|
|
261
|
+
shadow: yn,
|
|
262
|
+
elevated: Nn,
|
|
263
|
+
ghost: xn,
|
|
264
|
+
sm: Ln,
|
|
265
|
+
cardHeader: Bn,
|
|
266
|
+
cardBody: jn,
|
|
267
|
+
cardFooter: In,
|
|
268
|
+
md: Cn,
|
|
269
|
+
lg: En,
|
|
270
|
+
hoverable: qn
|
|
271
|
+
}, Ve = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${se.cardHeader} ${o ?? ""}`, ...n, children: t });
|
|
272
|
+
Ve.displayName = "Card.Header";
|
|
273
|
+
const Xe = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${se.cardBody} ${o ?? ""}`, ...n, children: t });
|
|
274
|
+
Xe.displayName = "Card.Body";
|
|
275
|
+
const Ye = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${se.cardFooter} ${o ?? ""}`, ...n, children: t });
|
|
276
|
+
Ye.displayName = "Card.Footer";
|
|
277
|
+
const Wn = ({
|
|
278
278
|
variant: t = "bordered",
|
|
279
279
|
size: o = "md",
|
|
280
280
|
hoverable: n = !1,
|
|
@@ -283,36 +283,137 @@ const Cn = ({
|
|
|
283
283
|
...a
|
|
284
284
|
}) => {
|
|
285
285
|
const l = [
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
n ?
|
|
286
|
+
se.card,
|
|
287
|
+
se[t],
|
|
288
|
+
se[o],
|
|
289
|
+
n ? se.hoverable : "",
|
|
290
290
|
s ?? ""
|
|
291
291
|
].filter(Boolean).join(" ");
|
|
292
292
|
return /* @__PURE__ */ e("div", { className: l, ...a, children: r });
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
293
|
+
}, We = Wn;
|
|
294
|
+
We.Header = Ve;
|
|
295
|
+
We.Body = Xe;
|
|
296
|
+
We.Footer = Ye;
|
|
297
|
+
We.displayName = "Card";
|
|
298
|
+
const Tn = "_root_y54b0_1", Rn = "_background_y54b0_12", Mn = "_interactive_y54b0_19", Sn = "_content_y54b0_23", je = {
|
|
299
|
+
root: Tn,
|
|
300
|
+
background: Rn,
|
|
301
|
+
interactive: Mn,
|
|
302
|
+
content: Sn
|
|
303
|
+
}, zn = {
|
|
304
|
+
subtle: {
|
|
305
|
+
"--vui-ambient-opacity": "0.62",
|
|
306
|
+
"--vui-ambient-blur": "88px",
|
|
307
|
+
"--vui-ambient-scale": "0.92"
|
|
308
|
+
},
|
|
309
|
+
medium: {
|
|
310
|
+
"--vui-ambient-opacity": "0.82",
|
|
311
|
+
"--vui-ambient-blur": "112px",
|
|
312
|
+
"--vui-ambient-scale": "1"
|
|
313
|
+
},
|
|
314
|
+
vivid: {
|
|
315
|
+
"--vui-ambient-opacity": "1",
|
|
316
|
+
"--vui-ambient-blur": "136px",
|
|
317
|
+
"--vui-ambient-scale": "1.08"
|
|
318
|
+
}
|
|
319
|
+
}, Dn = {
|
|
320
|
+
slow: {
|
|
321
|
+
"--vui-ambient-duration": "24s",
|
|
322
|
+
"--vui-ambient-speed-multiplier": "0.72"
|
|
323
|
+
},
|
|
324
|
+
medium: {
|
|
325
|
+
"--vui-ambient-duration": "18s",
|
|
326
|
+
"--vui-ambient-speed-multiplier": "1"
|
|
327
|
+
},
|
|
328
|
+
fast: {
|
|
329
|
+
"--vui-ambient-duration": "13s",
|
|
330
|
+
"--vui-ambient-speed-multiplier": "1.25"
|
|
331
|
+
}
|
|
332
|
+
}, mc = ({
|
|
333
|
+
background: t,
|
|
334
|
+
contentClassName: o,
|
|
335
|
+
intensity: n = "medium",
|
|
336
|
+
speed: r = "medium",
|
|
337
|
+
interactive: s = !1,
|
|
338
|
+
className: a,
|
|
339
|
+
style: l,
|
|
340
|
+
children: i,
|
|
341
|
+
...c
|
|
342
|
+
}) => {
|
|
343
|
+
const _ = [
|
|
344
|
+
je.root,
|
|
345
|
+
s ? je.interactive : "",
|
|
346
|
+
a ?? ""
|
|
347
|
+
].filter(Boolean).join(" "), p = [je.content, o ?? ""].filter(Boolean).join(" "), m = {
|
|
348
|
+
...zn[n],
|
|
349
|
+
...Dn[r],
|
|
350
|
+
...l
|
|
351
|
+
};
|
|
352
|
+
return /* @__PURE__ */ h("div", { className: _, style: m, ...c, children: [
|
|
353
|
+
t ? /* @__PURE__ */ e("div", { className: je.background, children: t }) : null,
|
|
354
|
+
/* @__PURE__ */ e("div", { className: p, children: i })
|
|
355
|
+
] });
|
|
356
|
+
}, Fn = "_root_1h0b6_1", An = "_orb_1h0b6_8", Hn = "_floatOrb_1h0b6_1", On = "_primary_1h0b6_19", Un = "_secondary_1h0b6_25", Pn = "_accent_1h0b6_33", Vn = "_highlight_1h0b6_40", Xn = "_hero_1h0b6_48", Yn = "_diagonal_1h0b6_68", Gn = "_spotlight_1h0b6_88", H = {
|
|
357
|
+
root: Fn,
|
|
358
|
+
orb: An,
|
|
359
|
+
floatOrb: Hn,
|
|
360
|
+
primary: On,
|
|
361
|
+
secondary: Un,
|
|
362
|
+
accent: Pn,
|
|
363
|
+
highlight: Vn,
|
|
364
|
+
hero: Xn,
|
|
365
|
+
diagonal: Yn,
|
|
366
|
+
spotlight: Gn
|
|
367
|
+
}, fc = ({
|
|
368
|
+
variant: t = "hero",
|
|
369
|
+
className: o,
|
|
370
|
+
...n
|
|
371
|
+
}) => {
|
|
372
|
+
const r = [H.root, H[t], o ?? ""].filter(Boolean).join(" ");
|
|
373
|
+
return /* @__PURE__ */ h("div", { className: r, "aria-hidden": "true", ...n, children: [
|
|
374
|
+
/* @__PURE__ */ e("span", { className: `${H.orb} ${H.primary}` }),
|
|
375
|
+
/* @__PURE__ */ e("span", { className: `${H.orb} ${H.secondary}` }),
|
|
376
|
+
/* @__PURE__ */ e("span", { className: `${H.orb} ${H.accent}` }),
|
|
377
|
+
/* @__PURE__ */ e("span", { className: `${H.orb} ${H.highlight}` })
|
|
378
|
+
] });
|
|
379
|
+
}, Kn = "_root_3f8d1_1", Jn = "_grid_3f8d1_9", Qn = "_glow_3f8d1_10", Zn = "_beam_3f8d1_11", eo = "_sweepBeam_3f8d1_1", to = "_spotlight_3f8d1_49", no = "_panel_3f8d1_57", ge = {
|
|
380
|
+
root: Kn,
|
|
381
|
+
grid: Jn,
|
|
382
|
+
glow: Qn,
|
|
383
|
+
beam: Zn,
|
|
384
|
+
sweepBeam: eo,
|
|
385
|
+
default: "_default_3f8d1_45",
|
|
386
|
+
spotlight: to,
|
|
387
|
+
panel: no
|
|
388
|
+
}, bc = ({
|
|
389
|
+
variant: t = "default",
|
|
390
|
+
className: o,
|
|
391
|
+
...n
|
|
392
|
+
}) => {
|
|
393
|
+
const r = [ge.root, ge[t], o ?? ""].filter(Boolean).join(" ");
|
|
394
|
+
return /* @__PURE__ */ h("div", { className: r, "aria-hidden": "true", ...n, children: [
|
|
395
|
+
/* @__PURE__ */ e("span", { className: ge.grid }),
|
|
396
|
+
/* @__PURE__ */ e("span", { className: ge.glow }),
|
|
397
|
+
/* @__PURE__ */ e("span", { className: ge.beam })
|
|
398
|
+
] });
|
|
399
|
+
}, oo = "_wrapper_1xu0d_1", ro = "_wrapperFullWidth_1xu0d_7", so = "_label_1xu0d_11", ao = "_required_1xu0d_18", io = "_textarea_1xu0d_23", lo = "_hasError_1xu0d_53", co = "_sm_1xu0d_62", _o = "_md_1xu0d_67", uo = "_lg_1xu0d_72", po = "_none_1xu0d_78", ho = "_vertical_1xu0d_82", mo = "_horizontal_1xu0d_86", fo = "_both_1xu0d_90", bo = "_fullWidth_1xu0d_94", go = "_hint_1xu0d_98", vo = "_errorText_1xu0d_104", F = {
|
|
400
|
+
wrapper: oo,
|
|
401
|
+
wrapperFullWidth: ro,
|
|
402
|
+
label: so,
|
|
403
|
+
required: ao,
|
|
404
|
+
textarea: io,
|
|
405
|
+
hasError: lo,
|
|
406
|
+
sm: co,
|
|
407
|
+
md: _o,
|
|
408
|
+
lg: uo,
|
|
409
|
+
none: po,
|
|
410
|
+
vertical: ho,
|
|
411
|
+
horizontal: mo,
|
|
412
|
+
both: fo,
|
|
413
|
+
fullWidth: bo,
|
|
414
|
+
hint: go,
|
|
415
|
+
errorText: vo
|
|
416
|
+
}, wo = j.forwardRef(
|
|
316
417
|
({
|
|
317
418
|
label: t,
|
|
318
419
|
size: o = "md",
|
|
@@ -355,35 +456,35 @@ const En = "_wrapper_1xu0d_1", qn = "_wrapperFullWidth_1xu0d_7", Wn = "_label_1x
|
|
|
355
456
|
] });
|
|
356
457
|
}
|
|
357
458
|
);
|
|
358
|
-
|
|
359
|
-
const
|
|
360
|
-
wrapper:
|
|
361
|
-
wrapperFullWidth:
|
|
362
|
-
label:
|
|
363
|
-
required:
|
|
364
|
-
selectWrapper:
|
|
365
|
-
hiddenSelect:
|
|
366
|
-
trigger:
|
|
367
|
-
hasError:
|
|
368
|
-
sm:
|
|
369
|
-
md:
|
|
370
|
-
lg:
|
|
371
|
-
fullWidth:
|
|
372
|
-
valueText:
|
|
373
|
-
placeholder:
|
|
374
|
-
chevron:
|
|
375
|
-
isOpen:
|
|
376
|
-
menu:
|
|
377
|
-
option:
|
|
378
|
-
optionFocused:
|
|
379
|
-
optionSelected:
|
|
380
|
-
optionLabel:
|
|
381
|
-
optionCheck:
|
|
382
|
-
optionCheckVisible:
|
|
383
|
-
hint:
|
|
384
|
-
errorText:
|
|
459
|
+
wo.displayName = "Textarea";
|
|
460
|
+
const $o = "_wrapper_1cpn4_1", ko = "_wrapperFullWidth_1cpn4_7", yo = "_label_1cpn4_11", No = "_required_1cpn4_18", xo = "_selectWrapper_1cpn4_23", Lo = "_hiddenSelect_1cpn4_46", Bo = "_trigger_1cpn4_53", jo = "_hasError_1cpn4_103", Io = "_sm_1cpn4_114", Co = "_md_1cpn4_120", Eo = "_lg_1cpn4_126", qo = "_fullWidth_1cpn4_132", Wo = "_valueText_1cpn4_136", To = "_placeholder_1cpn4_144", Ro = "_chevron_1cpn4_148", Mo = "_isOpen_1cpn4_180", So = "_menu_1cpn4_184", zo = "_option_1cpn4_203", Do = "_optionFocused_1cpn4_222", Fo = "_optionSelected_1cpn4_229", Ao = "_optionLabel_1cpn4_238", Ho = "_optionCheck_1cpn4_243", Oo = "_optionCheckVisible_1cpn4_250", Uo = "_hint_1cpn4_260", Po = "_errorText_1cpn4_266", x = {
|
|
461
|
+
wrapper: $o,
|
|
462
|
+
wrapperFullWidth: ko,
|
|
463
|
+
label: yo,
|
|
464
|
+
required: No,
|
|
465
|
+
selectWrapper: xo,
|
|
466
|
+
hiddenSelect: Lo,
|
|
467
|
+
trigger: Bo,
|
|
468
|
+
hasError: jo,
|
|
469
|
+
sm: Io,
|
|
470
|
+
md: Co,
|
|
471
|
+
lg: Eo,
|
|
472
|
+
fullWidth: qo,
|
|
473
|
+
valueText: Wo,
|
|
474
|
+
placeholder: To,
|
|
475
|
+
chevron: Ro,
|
|
476
|
+
isOpen: Mo,
|
|
477
|
+
menu: So,
|
|
478
|
+
option: zo,
|
|
479
|
+
optionFocused: Do,
|
|
480
|
+
optionSelected: Fo,
|
|
481
|
+
optionLabel: Ao,
|
|
482
|
+
optionCheck: Ho,
|
|
483
|
+
optionCheckVisible: Oo,
|
|
484
|
+
hint: Uo,
|
|
485
|
+
errorText: Po
|
|
385
486
|
};
|
|
386
|
-
function
|
|
487
|
+
function Vo(t) {
|
|
387
488
|
return j.Children.toArray(t).flatMap((o) => {
|
|
388
489
|
if (!j.isValidElement(o) || o.type !== "option")
|
|
389
490
|
return [];
|
|
@@ -397,7 +498,7 @@ function wo(t) {
|
|
|
397
498
|
];
|
|
398
499
|
});
|
|
399
500
|
}
|
|
400
|
-
const
|
|
501
|
+
const Xo = j.forwardRef(
|
|
401
502
|
({
|
|
402
503
|
label: t,
|
|
403
504
|
size: o = "md",
|
|
@@ -420,88 +521,88 @@ const $o = j.forwardRef(
|
|
|
420
521
|
name: L,
|
|
421
522
|
autoComplete: $,
|
|
422
523
|
form: q,
|
|
423
|
-
...
|
|
424
|
-
},
|
|
524
|
+
...N
|
|
525
|
+
}, P) => {
|
|
425
526
|
const K = j.useRef(null), k = j.useRef(null);
|
|
426
|
-
j.useImperativeHandle(
|
|
427
|
-
const
|
|
428
|
-
() => l ||
|
|
527
|
+
j.useImperativeHandle(P, () => K.current);
|
|
528
|
+
const y = _ ?? (t ? `vui-select-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), V = y ? `${y}-error` : void 0, J = y ? `${y}-hint` : void 0, ae = y ? `${y}-listbox` : void 0, ke = y ? `${y}-label` : void 0, I = j.useMemo(
|
|
529
|
+
() => l || Vo(p),
|
|
429
530
|
[p, l]
|
|
430
|
-
),
|
|
531
|
+
), ye = m !== void 0, te = I.find((b) => !b.disabled), Ze = String(d ?? (i ? "" : (te == null ? void 0 : te.value) ?? "")), [Re, De] = j.useState(Ze), Ne = String(ye ? m ?? "" : Re), [ne, ie] = j.useState(!1), [me, xe] = j.useState(-1);
|
|
431
532
|
j.useEffect(() => {
|
|
432
|
-
if (
|
|
433
|
-
I.some((C) => C.value ===
|
|
434
|
-
}, [I,
|
|
533
|
+
if (ye || !I.length) return;
|
|
534
|
+
I.some((C) => C.value === Re) || De((te == null ? void 0 : te.value) ?? "");
|
|
535
|
+
}, [I, ye, Re, te]), j.useEffect(() => {
|
|
435
536
|
const b = (C) => {
|
|
436
|
-
k.current && !k.current.contains(C.target) &&
|
|
537
|
+
k.current && !k.current.contains(C.target) && ie(!1);
|
|
437
538
|
};
|
|
438
539
|
return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
|
|
439
540
|
}, []);
|
|
440
|
-
const
|
|
541
|
+
const Le = I.find((b) => b.value === Ne), et = (Le == null ? void 0 : Le.label) ?? i ?? "", tt = [
|
|
441
542
|
x.trigger,
|
|
442
543
|
x[o],
|
|
443
544
|
n ? x.hasError : "",
|
|
444
545
|
a ? x.fullWidth : "",
|
|
445
|
-
|
|
546
|
+
ne ? x.isOpen : "",
|
|
446
547
|
c ?? ""
|
|
447
|
-
].filter(Boolean).join(" "),
|
|
548
|
+
].filter(Boolean).join(" "), Fe = (b) => {
|
|
448
549
|
var W;
|
|
449
|
-
|
|
550
|
+
ye || De(b);
|
|
450
551
|
const C = K.current;
|
|
451
552
|
if (C) {
|
|
452
|
-
const
|
|
553
|
+
const fe = (W = Object.getOwnPropertyDescriptor(
|
|
453
554
|
HTMLSelectElement.prototype,
|
|
454
555
|
"value"
|
|
455
556
|
)) == null ? void 0 : W.set;
|
|
456
|
-
|
|
557
|
+
fe == null || fe.call(C, b), C.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
457
558
|
}
|
|
458
|
-
},
|
|
559
|
+
}, Me = () => {
|
|
459
560
|
if (w || !I.length) return;
|
|
460
|
-
|
|
461
|
-
const b = I.findIndex((W) => W.value ===
|
|
561
|
+
ie(!0);
|
|
562
|
+
const b = I.findIndex((W) => W.value === Ne && !W.disabled);
|
|
462
563
|
if (b >= 0) {
|
|
463
|
-
|
|
564
|
+
xe(b);
|
|
464
565
|
return;
|
|
465
566
|
}
|
|
466
567
|
const C = I.findIndex((W) => !W.disabled);
|
|
467
|
-
|
|
468
|
-
},
|
|
568
|
+
xe(C);
|
|
569
|
+
}, Ae = (b) => {
|
|
469
570
|
if (!I.length) return;
|
|
470
|
-
let C =
|
|
571
|
+
let C = me;
|
|
471
572
|
for (let W = 0; W < I.length; W += 1)
|
|
472
573
|
if (C = (C + b + I.length) % I.length, !I[C].disabled) {
|
|
473
|
-
|
|
574
|
+
xe(C);
|
|
474
575
|
return;
|
|
475
576
|
}
|
|
476
|
-
},
|
|
577
|
+
}, nt = (b) => {
|
|
477
578
|
if (v == null || v(b), !b.defaultPrevented) {
|
|
478
|
-
if (!
|
|
479
|
-
b.preventDefault(),
|
|
579
|
+
if (!ne && (b.key === "ArrowDown" || b.key === "ArrowUp")) {
|
|
580
|
+
b.preventDefault(), Me();
|
|
480
581
|
return;
|
|
481
582
|
}
|
|
482
|
-
if (!
|
|
483
|
-
b.preventDefault(),
|
|
583
|
+
if (!ne && (b.key === "Enter" || b.key === " ")) {
|
|
584
|
+
b.preventDefault(), Me();
|
|
484
585
|
return;
|
|
485
586
|
}
|
|
486
|
-
if (
|
|
587
|
+
if (ne) {
|
|
487
588
|
if (b.key === "Escape") {
|
|
488
|
-
b.preventDefault(),
|
|
589
|
+
b.preventDefault(), ie(!1);
|
|
489
590
|
return;
|
|
490
591
|
}
|
|
491
592
|
if (b.key === "ArrowDown") {
|
|
492
|
-
b.preventDefault(),
|
|
593
|
+
b.preventDefault(), Ae(1);
|
|
493
594
|
return;
|
|
494
595
|
}
|
|
495
596
|
if (b.key === "ArrowUp") {
|
|
496
|
-
b.preventDefault(),
|
|
597
|
+
b.preventDefault(), Ae(-1);
|
|
497
598
|
return;
|
|
498
599
|
}
|
|
499
|
-
(b.key === "Enter" || b.key === " ") && (b.preventDefault(),
|
|
600
|
+
(b.key === "Enter" || b.key === " ") && (b.preventDefault(), me >= 0 && !I[me].disabled && (Fe(I[me].value), ie(!1)));
|
|
500
601
|
}
|
|
501
602
|
}
|
|
502
603
|
};
|
|
503
604
|
return /* @__PURE__ */ h("div", { className: `${x.wrapper}${a ? ` ${x.wrapperFullWidth}` : ""}`, children: [
|
|
504
|
-
t && /* @__PURE__ */ h("label", { id:
|
|
605
|
+
t && /* @__PURE__ */ h("label", { id: ke, className: x.label, children: [
|
|
505
606
|
t,
|
|
506
607
|
s && /* @__PURE__ */ e("span", { className: x.required, "aria-hidden": "true", children: "*" })
|
|
507
608
|
] }),
|
|
@@ -510,21 +611,21 @@ const $o = j.forwardRef(
|
|
|
510
611
|
"select",
|
|
511
612
|
{
|
|
512
613
|
ref: K,
|
|
513
|
-
id:
|
|
614
|
+
id: y,
|
|
514
615
|
className: x.hiddenSelect,
|
|
515
|
-
value:
|
|
616
|
+
value: Ne,
|
|
516
617
|
required: s,
|
|
517
618
|
disabled: w,
|
|
518
619
|
name: L,
|
|
519
620
|
form: q,
|
|
520
621
|
autoComplete: $,
|
|
521
622
|
"aria-invalid": !!n,
|
|
522
|
-
"aria-describedby": [n ?
|
|
623
|
+
"aria-describedby": [n ? V : null, r && !n ? J : null].filter(Boolean).join(" ") || void 0,
|
|
523
624
|
"aria-hidden": "true",
|
|
524
625
|
tabIndex: -1,
|
|
525
626
|
onChange: f ?? (() => {
|
|
526
627
|
}),
|
|
527
|
-
...
|
|
628
|
+
...N,
|
|
528
629
|
children: [
|
|
529
630
|
i && /* @__PURE__ */ e("option", { value: "", disabled: s, children: i }),
|
|
530
631
|
I.map((b) => /* @__PURE__ */ e("option", { value: b.value, disabled: b.disabled, children: b.label }, b.value))
|
|
@@ -535,19 +636,19 @@ const $o = j.forwardRef(
|
|
|
535
636
|
"button",
|
|
536
637
|
{
|
|
537
638
|
type: "button",
|
|
538
|
-
className:
|
|
639
|
+
className: tt,
|
|
539
640
|
disabled: w,
|
|
540
641
|
role: "combobox",
|
|
541
642
|
"aria-invalid": !!n,
|
|
542
|
-
"aria-labelledby":
|
|
643
|
+
"aria-labelledby": ke,
|
|
543
644
|
"aria-haspopup": "listbox",
|
|
544
|
-
"aria-expanded":
|
|
545
|
-
"aria-controls":
|
|
546
|
-
onClick: () =>
|
|
547
|
-
onKeyDown:
|
|
645
|
+
"aria-expanded": ne,
|
|
646
|
+
"aria-controls": ae,
|
|
647
|
+
onClick: () => ne ? ie(!1) : Me(),
|
|
648
|
+
onKeyDown: nt,
|
|
548
649
|
onFocus: (b) => u == null ? void 0 : u(b),
|
|
549
650
|
onBlur: (b) => g == null ? void 0 : g(b),
|
|
550
|
-
children: /* @__PURE__ */ e("span", { className: `${x.valueText}${
|
|
651
|
+
children: /* @__PURE__ */ e("span", { className: `${x.valueText}${Le ? "" : ` ${x.placeholder}`}`, children: et })
|
|
551
652
|
}
|
|
552
653
|
),
|
|
553
654
|
/* @__PURE__ */ e("span", { className: x.chevron, "aria-hidden": "true", children: /* @__PURE__ */ e("svg", { width: "16", height: "16", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
@@ -559,8 +660,8 @@ const $o = j.forwardRef(
|
|
|
559
660
|
d: "M19 9l-7 7-7-7"
|
|
560
661
|
}
|
|
561
662
|
) }) }),
|
|
562
|
-
|
|
563
|
-
const W = b.value ===
|
|
663
|
+
ne && /* @__PURE__ */ e("ul", { id: ae, role: "listbox", className: x.menu, children: I.map((b, C) => {
|
|
664
|
+
const W = b.value === Ne, fe = C === me;
|
|
564
665
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ h(
|
|
565
666
|
"button",
|
|
566
667
|
{
|
|
@@ -570,12 +671,12 @@ const $o = j.forwardRef(
|
|
|
570
671
|
className: [
|
|
571
672
|
x.option,
|
|
572
673
|
W ? x.optionSelected : "",
|
|
573
|
-
|
|
674
|
+
fe ? x.optionFocused : ""
|
|
574
675
|
].filter(Boolean).join(" "),
|
|
575
676
|
disabled: b.disabled,
|
|
576
|
-
onMouseEnter: () =>
|
|
677
|
+
onMouseEnter: () => xe(C),
|
|
577
678
|
onClick: () => {
|
|
578
|
-
|
|
679
|
+
Fe(b.value), ie(!1);
|
|
579
680
|
},
|
|
580
681
|
children: [
|
|
581
682
|
/* @__PURE__ */ e("span", { className: x.optionLabel, children: b.label }),
|
|
@@ -600,33 +701,33 @@ const $o = j.forwardRef(
|
|
|
600
701
|
) }, b.value);
|
|
601
702
|
}) })
|
|
602
703
|
] }),
|
|
603
|
-
n && /* @__PURE__ */ e("span", { id:
|
|
604
|
-
r && !n && /* @__PURE__ */ e("span", { id:
|
|
704
|
+
n && /* @__PURE__ */ e("span", { id: V, className: x.errorText, role: "alert", children: n }),
|
|
705
|
+
r && !n && /* @__PURE__ */ e("span", { id: J, className: x.hint, children: r })
|
|
605
706
|
] });
|
|
606
707
|
}
|
|
607
708
|
);
|
|
608
|
-
|
|
609
|
-
const
|
|
610
|
-
wrapper:
|
|
611
|
-
row:
|
|
612
|
-
checkbox:
|
|
613
|
-
hasError:
|
|
614
|
-
sm:
|
|
615
|
-
md:
|
|
616
|
-
lg:
|
|
617
|
-
label:
|
|
618
|
-
description:
|
|
619
|
-
errorText:
|
|
620
|
-
},
|
|
709
|
+
Xo.displayName = "Select";
|
|
710
|
+
const Yo = "_wrapper_iu9cq_1", Go = "_row_iu9cq_7", Ko = "_checkbox_iu9cq_14", Jo = "_hasError_iu9cq_51", Qo = "_sm_iu9cq_60", Zo = "_md_iu9cq_74", er = "_lg_iu9cq_88", tr = "_label_iu9cq_102", nr = "_description_iu9cq_113", or = "_errorText_iu9cq_123", X = {
|
|
711
|
+
wrapper: Yo,
|
|
712
|
+
row: Go,
|
|
713
|
+
checkbox: Ko,
|
|
714
|
+
hasError: Jo,
|
|
715
|
+
sm: Qo,
|
|
716
|
+
md: Zo,
|
|
717
|
+
lg: er,
|
|
718
|
+
label: tr,
|
|
719
|
+
description: nr,
|
|
720
|
+
errorText: or
|
|
721
|
+
}, rr = j.forwardRef(
|
|
621
722
|
({ label: t, description: o, error: n, size: r = "md", className: s, id: a, ...l }, i) => {
|
|
622
723
|
const c = a ?? (t ? `vui-checkbox-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), _ = c ? `${c}-error` : void 0, p = c && o ? `${c}-desc` : void 0, m = [
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
n ?
|
|
724
|
+
X.checkbox,
|
|
725
|
+
X[r],
|
|
726
|
+
n ? X.hasError : "",
|
|
626
727
|
s ?? ""
|
|
627
728
|
].filter(Boolean).join(" ");
|
|
628
|
-
return /* @__PURE__ */ h("div", { className: `${
|
|
629
|
-
/* @__PURE__ */ h("div", { className:
|
|
729
|
+
return /* @__PURE__ */ h("div", { className: `${X.wrapper} ${X[r]}`, children: [
|
|
730
|
+
/* @__PURE__ */ h("div", { className: X.row, children: [
|
|
630
731
|
/* @__PURE__ */ e(
|
|
631
732
|
"input",
|
|
632
733
|
{
|
|
@@ -639,33 +740,33 @@ const ko = "_wrapper_iu9cq_1", No = "_row_iu9cq_7", yo = "_checkbox_iu9cq_14", x
|
|
|
639
740
|
...l
|
|
640
741
|
}
|
|
641
742
|
),
|
|
642
|
-
t && /* @__PURE__ */ e("label", { htmlFor: c, className:
|
|
743
|
+
t && /* @__PURE__ */ e("label", { htmlFor: c, className: X.label, children: t })
|
|
643
744
|
] }),
|
|
644
|
-
o && !n && /* @__PURE__ */ e("span", { id: p, className:
|
|
645
|
-
n && /* @__PURE__ */ e("span", { id: _, className:
|
|
745
|
+
o && !n && /* @__PURE__ */ e("span", { id: p, className: X.description, children: o }),
|
|
746
|
+
n && /* @__PURE__ */ e("span", { id: _, className: X.errorText, role: "alert", children: n })
|
|
646
747
|
] });
|
|
647
748
|
}
|
|
648
749
|
);
|
|
649
|
-
|
|
650
|
-
const
|
|
651
|
-
fieldset:
|
|
652
|
-
legend:
|
|
653
|
-
required:
|
|
654
|
-
group:
|
|
655
|
-
vertical:
|
|
656
|
-
horizontal:
|
|
657
|
-
option:
|
|
658
|
-
radio:
|
|
659
|
-
hasError:
|
|
660
|
-
sm:
|
|
661
|
-
md:
|
|
662
|
-
lg:
|
|
663
|
-
optionContent:
|
|
664
|
-
optionLabel:
|
|
665
|
-
optionDescription:
|
|
666
|
-
hint:
|
|
667
|
-
errorText:
|
|
668
|
-
},
|
|
750
|
+
rr.displayName = "Checkbox";
|
|
751
|
+
const sr = "_fieldset_nj7or_1", ar = "_legend_nj7or_10", ir = "_required_nj7or_19", lr = "_group_nj7or_24", cr = "_vertical_nj7or_28", dr = "_horizontal_nj7or_33", _r = "_option_nj7or_39", ur = "_radio_nj7or_46", pr = "_hasError_nj7or_81", hr = "_sm_nj7or_86", mr = "_md_nj7or_87", fr = "_lg_nj7or_88", br = "_optionContent_nj7or_90", gr = "_optionLabel_nj7or_96", vr = "_optionDescription_nj7or_107", wr = "_hint_nj7or_113", $r = "_errorText_nj7or_119", T = {
|
|
752
|
+
fieldset: sr,
|
|
753
|
+
legend: ar,
|
|
754
|
+
required: ir,
|
|
755
|
+
group: lr,
|
|
756
|
+
vertical: cr,
|
|
757
|
+
horizontal: dr,
|
|
758
|
+
option: _r,
|
|
759
|
+
radio: ur,
|
|
760
|
+
hasError: pr,
|
|
761
|
+
sm: hr,
|
|
762
|
+
md: mr,
|
|
763
|
+
lg: fr,
|
|
764
|
+
optionContent: br,
|
|
765
|
+
optionLabel: gr,
|
|
766
|
+
optionDescription: vr,
|
|
767
|
+
hint: wr,
|
|
768
|
+
errorText: $r
|
|
769
|
+
}, gc = ({
|
|
669
770
|
name: t,
|
|
670
771
|
label: o,
|
|
671
772
|
options: n,
|
|
@@ -718,23 +819,23 @@ const Wo = "_fieldset_nj7or_1", To = "_legend_nj7or_10", Ro = "_required_nj7or_1
|
|
|
718
819
|
]
|
|
719
820
|
}
|
|
720
821
|
);
|
|
721
|
-
},
|
|
722
|
-
wrapper:
|
|
723
|
-
labelRow:
|
|
724
|
-
track:
|
|
725
|
-
input:
|
|
726
|
-
thumb:
|
|
727
|
-
labelText:
|
|
728
|
-
sm:
|
|
729
|
-
md:
|
|
730
|
-
lg:
|
|
731
|
-
description:
|
|
732
|
-
},
|
|
822
|
+
}, kr = "_wrapper_okiio_1", yr = "_labelRow_okiio_7", Nr = "_track_okiio_15", xr = "_input_okiio_23", Lr = "_thumb_okiio_32", Br = "_labelText_okiio_65", jr = "_sm_okiio_74", Ir = "_md_okiio_80", Cr = "_lg_okiio_86", Er = "_description_okiio_98", Q = {
|
|
823
|
+
wrapper: kr,
|
|
824
|
+
labelRow: yr,
|
|
825
|
+
track: Nr,
|
|
826
|
+
input: xr,
|
|
827
|
+
thumb: Lr,
|
|
828
|
+
labelText: Br,
|
|
829
|
+
sm: jr,
|
|
830
|
+
md: Ir,
|
|
831
|
+
lg: Cr,
|
|
832
|
+
description: Er
|
|
833
|
+
}, qr = j.forwardRef(
|
|
733
834
|
({ label: t, description: o, size: n = "md", className: r, id: s, ...a }, l) => {
|
|
734
835
|
const i = s ?? (t ? `vui-switch-${t.toLowerCase().replace(/\s+/g, "-")}` : void 0), c = i && o ? `${i}-desc` : void 0;
|
|
735
|
-
return /* @__PURE__ */ h("div", { className: `${
|
|
736
|
-
/* @__PURE__ */ h("label", { className:
|
|
737
|
-
/* @__PURE__ */ h("span", { className:
|
|
836
|
+
return /* @__PURE__ */ h("div", { className: `${Q.wrapper} ${Q[n]}`, children: [
|
|
837
|
+
/* @__PURE__ */ h("label", { className: Q.labelRow, htmlFor: i, children: [
|
|
838
|
+
/* @__PURE__ */ h("span", { className: Q.track, children: [
|
|
738
839
|
/* @__PURE__ */ e(
|
|
739
840
|
"input",
|
|
740
841
|
{
|
|
@@ -742,42 +843,42 @@ const Wo = "_fieldset_nj7or_1", To = "_legend_nj7or_10", Ro = "_required_nj7or_1
|
|
|
742
843
|
type: "checkbox",
|
|
743
844
|
role: "switch",
|
|
744
845
|
id: i,
|
|
745
|
-
className: `${
|
|
846
|
+
className: `${Q.input} ${r ?? ""}`,
|
|
746
847
|
"aria-describedby": c || void 0,
|
|
747
848
|
...a
|
|
748
849
|
}
|
|
749
850
|
),
|
|
750
|
-
/* @__PURE__ */ e("span", { className:
|
|
851
|
+
/* @__PURE__ */ e("span", { className: Q.thumb, "aria-hidden": "true" })
|
|
751
852
|
] }),
|
|
752
|
-
t && /* @__PURE__ */ e("span", { className:
|
|
853
|
+
t && /* @__PURE__ */ e("span", { className: Q.labelText, children: t })
|
|
753
854
|
] }),
|
|
754
|
-
o && /* @__PURE__ */ e("span", { id: c, className:
|
|
855
|
+
o && /* @__PURE__ */ e("span", { id: c, className: Q.description, children: o })
|
|
755
856
|
] });
|
|
756
857
|
}
|
|
757
858
|
);
|
|
758
|
-
|
|
759
|
-
const
|
|
760
|
-
overlay:
|
|
761
|
-
overlayFadeIn:
|
|
762
|
-
dialog:
|
|
763
|
-
dialogSlideUp:
|
|
764
|
-
sm:
|
|
765
|
-
md:
|
|
766
|
-
lg:
|
|
767
|
-
xl:
|
|
768
|
-
header:
|
|
769
|
-
title:
|
|
770
|
-
description:
|
|
771
|
-
body:
|
|
772
|
-
footer:
|
|
773
|
-
closeBtn:
|
|
774
|
-
},
|
|
775
|
-
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
const
|
|
779
|
-
|
|
780
|
-
const
|
|
859
|
+
qr.displayName = "Switch";
|
|
860
|
+
const Wr = "_overlay_gedqr_1", Tr = "_overlayFadeIn_gedqr_1", Rr = "_dialog_gedqr_19", Mr = "_dialogSlideUp_gedqr_1", Sr = "_sm_gedqr_39", zr = "_md_gedqr_40", Dr = "_lg_gedqr_41", Fr = "_xl_gedqr_42", Ar = "_header_gedqr_45", Hr = "_title_gedqr_51", Or = "_description_gedqr_59", Ur = "_body_gedqr_66", Pr = "_footer_gedqr_71", Vr = "_closeBtn_gedqr_81", U = {
|
|
861
|
+
overlay: Wr,
|
|
862
|
+
overlayFadeIn: Tr,
|
|
863
|
+
dialog: Rr,
|
|
864
|
+
dialogSlideUp: Mr,
|
|
865
|
+
sm: Sr,
|
|
866
|
+
md: zr,
|
|
867
|
+
lg: Dr,
|
|
868
|
+
xl: Fr,
|
|
869
|
+
header: Ar,
|
|
870
|
+
title: Hr,
|
|
871
|
+
description: Or,
|
|
872
|
+
body: Ur,
|
|
873
|
+
footer: Pr,
|
|
874
|
+
closeBtn: Vr
|
|
875
|
+
}, He = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])', Ge = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${U.header} ${o ?? ""}`, ...n, children: t });
|
|
876
|
+
Ge.displayName = "Dialog.Header";
|
|
877
|
+
const Ke = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${U.body} ${o ?? ""}`, ...n, children: t });
|
|
878
|
+
Ke.displayName = "Dialog.Body";
|
|
879
|
+
const Je = ({ children: t, className: o, ...n }) => /* @__PURE__ */ e("div", { className: `${U.footer} ${o ?? ""}`, ...n, children: t });
|
|
880
|
+
Je.displayName = "Dialog.Footer";
|
|
881
|
+
const Oe = { current: 0 }, Xr = ({
|
|
781
882
|
open: t,
|
|
782
883
|
onClose: o,
|
|
783
884
|
title: n,
|
|
@@ -787,13 +888,13 @@ const Fe = { current: 0 }, $r = ({
|
|
|
787
888
|
className: l,
|
|
788
889
|
closeOnOverlayClick: i = !0
|
|
789
890
|
}) => {
|
|
790
|
-
const c = A(null), _ = A(`vui-dialog-title-${++
|
|
791
|
-
if (
|
|
891
|
+
const c = A(null), _ = A(`vui-dialog-title-${++Oe.current}`).current, p = A(`vui-dialog-desc-${Oe.current}`).current, m = A(null);
|
|
892
|
+
if (he(() => {
|
|
792
893
|
if (!t) return;
|
|
793
894
|
m.current = document.activeElement, document.body.style.overflow = "hidden";
|
|
794
895
|
const g = requestAnimationFrame(() => {
|
|
795
896
|
var w, L;
|
|
796
|
-
const v = (w = c.current) == null ? void 0 : w.querySelectorAll(
|
|
897
|
+
const v = (w = c.current) == null ? void 0 : w.querySelectorAll(He);
|
|
797
898
|
(L = v == null ? void 0 : v[0]) == null || L.focus();
|
|
798
899
|
}), u = (v) => {
|
|
799
900
|
if (v.key === "Escape") {
|
|
@@ -802,7 +903,7 @@ const Fe = { current: 0 }, $r = ({
|
|
|
802
903
|
}
|
|
803
904
|
if (v.key === "Tab" && c.current) {
|
|
804
905
|
const w = Array.from(
|
|
805
|
-
c.current.querySelectorAll(
|
|
906
|
+
c.current.querySelectorAll(He)
|
|
806
907
|
);
|
|
807
908
|
if (w.length === 0) {
|
|
808
909
|
v.preventDefault();
|
|
@@ -823,7 +924,7 @@ const Fe = { current: 0 }, $r = ({
|
|
|
823
924
|
return /* @__PURE__ */ e(
|
|
824
925
|
"div",
|
|
825
926
|
{
|
|
826
|
-
className:
|
|
927
|
+
className: U.overlay,
|
|
827
928
|
onClick: d,
|
|
828
929
|
"aria-modal": "true",
|
|
829
930
|
role: "presentation",
|
|
@@ -834,18 +935,18 @@ const Fe = { current: 0 }, $r = ({
|
|
|
834
935
|
role: "dialog",
|
|
835
936
|
"aria-labelledby": n ? _ : void 0,
|
|
836
937
|
"aria-describedby": r ? p : void 0,
|
|
837
|
-
className: [
|
|
938
|
+
className: [U.dialog, U[s], l ?? ""].filter(Boolean).join(" "),
|
|
838
939
|
children: [
|
|
839
|
-
n && /* @__PURE__ */ h("div", { className:
|
|
840
|
-
/* @__PURE__ */ e("p", { id: _, className:
|
|
841
|
-
r && /* @__PURE__ */ e("p", { id: p, className:
|
|
940
|
+
n && /* @__PURE__ */ h("div", { className: U.header, children: [
|
|
941
|
+
/* @__PURE__ */ e("p", { id: _, className: U.title, children: n }),
|
|
942
|
+
r && /* @__PURE__ */ e("p", { id: p, className: U.description, children: r })
|
|
842
943
|
] }),
|
|
843
944
|
a,
|
|
844
945
|
/* @__PURE__ */ e(
|
|
845
946
|
"button",
|
|
846
947
|
{
|
|
847
948
|
type: "button",
|
|
848
|
-
className:
|
|
949
|
+
className: U.closeBtn,
|
|
849
950
|
onClick: o,
|
|
850
951
|
"aria-label": "Close dialog",
|
|
851
952
|
children: /* @__PURE__ */ e(
|
|
@@ -875,31 +976,31 @@ const Fe = { current: 0 }, $r = ({
|
|
|
875
976
|
)
|
|
876
977
|
}
|
|
877
978
|
);
|
|
878
|
-
},
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
const
|
|
884
|
-
wrapper:
|
|
885
|
-
tooltip:
|
|
886
|
-
visible:
|
|
887
|
-
top:
|
|
888
|
-
bottom:
|
|
889
|
-
left:
|
|
890
|
-
right:
|
|
891
|
-
arrow:
|
|
892
|
-
arrowTop:
|
|
893
|
-
arrowBottom:
|
|
894
|
-
arrowLeft:
|
|
895
|
-
arrowRight:
|
|
896
|
-
},
|
|
979
|
+
}, Te = Xr;
|
|
980
|
+
Te.Header = Ge;
|
|
981
|
+
Te.Body = Ke;
|
|
982
|
+
Te.Footer = Je;
|
|
983
|
+
Te.displayName = "Dialog";
|
|
984
|
+
const Yr = "_wrapper_16e9w_1", Gr = "_tooltip_16e9w_6", Kr = "_visible_16e9w_25", Jr = "_top_16e9w_30", Qr = "_bottom_16e9w_36", Zr = "_left_16e9w_42", es = "_right_16e9w_48", ts = "_arrow_16e9w_55", ns = "_arrowTop_16e9w_61", os = "_arrowBottom_16e9w_70", rs = "_arrowLeft_16e9w_79", ss = "_arrowRight_16e9w_88", ce = {
|
|
985
|
+
wrapper: Yr,
|
|
986
|
+
tooltip: Gr,
|
|
987
|
+
visible: Kr,
|
|
988
|
+
top: Jr,
|
|
989
|
+
bottom: Qr,
|
|
990
|
+
left: Zr,
|
|
991
|
+
right: es,
|
|
992
|
+
arrow: ts,
|
|
993
|
+
arrowTop: ns,
|
|
994
|
+
arrowBottom: os,
|
|
995
|
+
arrowLeft: rs,
|
|
996
|
+
arrowRight: ss
|
|
997
|
+
}, vc = ({
|
|
897
998
|
content: t,
|
|
898
999
|
children: o,
|
|
899
1000
|
placement: n = "top",
|
|
900
1001
|
delay: r = 0
|
|
901
1002
|
}) => {
|
|
902
|
-
const [s, a] =
|
|
1003
|
+
const [s, a] = D(!1), i = `vui-tooltip-${qe().replace(/:/g, "")}`, c = j.useRef(null), _ = () => {
|
|
903
1004
|
r > 0 ? c.current = setTimeout(() => a(!0), r) : a(!0);
|
|
904
1005
|
}, p = () => {
|
|
905
1006
|
c.current && clearTimeout(c.current), a(!1);
|
|
@@ -909,7 +1010,7 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
909
1010
|
return /* @__PURE__ */ h(
|
|
910
1011
|
"span",
|
|
911
1012
|
{
|
|
912
|
-
className:
|
|
1013
|
+
className: ce.wrapper,
|
|
913
1014
|
onMouseEnter: _,
|
|
914
1015
|
onMouseLeave: p,
|
|
915
1016
|
onFocus: _,
|
|
@@ -921,27 +1022,27 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
921
1022
|
{
|
|
922
1023
|
id: i,
|
|
923
1024
|
role: "tooltip",
|
|
924
|
-
className: [
|
|
1025
|
+
className: [ce.tooltip, ce[n], s ? ce.visible : ""].filter(Boolean).join(" "),
|
|
925
1026
|
"aria-hidden": !s,
|
|
926
1027
|
children: [
|
|
927
1028
|
t,
|
|
928
|
-
/* @__PURE__ */ e("span", { className: `${
|
|
1029
|
+
/* @__PURE__ */ e("span", { className: `${ce.arrow} ${ce[`arrow${n.charAt(0).toUpperCase()}${n.slice(1)}`]}`, "aria-hidden": "true" })
|
|
929
1030
|
]
|
|
930
1031
|
}
|
|
931
1032
|
)
|
|
932
1033
|
]
|
|
933
1034
|
}
|
|
934
1035
|
);
|
|
935
|
-
},
|
|
936
|
-
tabs:
|
|
937
|
-
tablist:
|
|
938
|
-
underline:
|
|
939
|
-
tab:
|
|
940
|
-
activeTab:
|
|
941
|
-
pills:
|
|
942
|
-
boxed:
|
|
943
|
-
panel:
|
|
944
|
-
},
|
|
1036
|
+
}, as = "_tabs_16y0p_1", is = "_tablist_16y0p_8", ls = "_underline_16y0p_14", cs = "_tab_16y0p_1", ds = "_activeTab_16y0p_39", _s = "_pills_16y0p_50", us = "_boxed_16y0p_89", ps = "_panel_16y0p_139", de = {
|
|
1037
|
+
tabs: as,
|
|
1038
|
+
tablist: is,
|
|
1039
|
+
underline: ls,
|
|
1040
|
+
tab: cs,
|
|
1041
|
+
activeTab: ds,
|
|
1042
|
+
pills: _s,
|
|
1043
|
+
boxed: us,
|
|
1044
|
+
panel: ps
|
|
1045
|
+
}, wc = ({
|
|
945
1046
|
items: t,
|
|
946
1047
|
defaultValue: o,
|
|
947
1048
|
value: n,
|
|
@@ -949,31 +1050,31 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
949
1050
|
variant: s = "underline"
|
|
950
1051
|
}) => {
|
|
951
1052
|
var g;
|
|
952
|
-
const a = n !== void 0, [l, i] =
|
|
1053
|
+
const a = n !== void 0, [l, i] = D(
|
|
953
1054
|
o ?? ((g = t[0]) == null ? void 0 : g.value) ?? ""
|
|
954
1055
|
), c = a ? n : l, _ = A(null), p = (u) => {
|
|
955
1056
|
a || i(u), r == null || r(u);
|
|
956
1057
|
}, m = (u, v) => {
|
|
957
1058
|
var q;
|
|
958
|
-
const w = t.filter((
|
|
1059
|
+
const w = t.filter((N) => !N.disabled), L = w.findIndex((N) => N.value === t[v].value);
|
|
959
1060
|
let $ = null;
|
|
960
1061
|
if (u.key === "ArrowRight" ? $ = (L + 1) % w.length : u.key === "ArrowLeft" ? $ = (L - 1 + w.length) % w.length : u.key === "Home" ? $ = 0 : u.key === "End" && ($ = w.length - 1), $ !== null) {
|
|
961
1062
|
u.preventDefault();
|
|
962
|
-
const
|
|
963
|
-
p(
|
|
964
|
-
const
|
|
965
|
-
`[data-value="${
|
|
1063
|
+
const N = w[$];
|
|
1064
|
+
p(N.value);
|
|
1065
|
+
const P = (q = _.current) == null ? void 0 : q.querySelector(
|
|
1066
|
+
`[data-value="${N.value}"]`
|
|
966
1067
|
);
|
|
967
|
-
|
|
1068
|
+
P == null || P.focus();
|
|
968
1069
|
}
|
|
969
1070
|
}, d = (u) => `vui-tabpanel-${u}`, f = (u) => `vui-tab-${u}`;
|
|
970
|
-
return /* @__PURE__ */ h("div", { className:
|
|
1071
|
+
return /* @__PURE__ */ h("div", { className: de.tabs, children: [
|
|
971
1072
|
/* @__PURE__ */ e(
|
|
972
1073
|
"div",
|
|
973
1074
|
{
|
|
974
1075
|
ref: _,
|
|
975
1076
|
role: "tablist",
|
|
976
|
-
className: [
|
|
1077
|
+
className: [de.tablist, de[s]].filter(Boolean).join(" "),
|
|
977
1078
|
children: t.map((u, v) => /* @__PURE__ */ e(
|
|
978
1079
|
"button",
|
|
979
1080
|
{
|
|
@@ -986,8 +1087,8 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
986
1087
|
disabled: u.disabled,
|
|
987
1088
|
tabIndex: c === u.value ? 0 : -1,
|
|
988
1089
|
className: [
|
|
989
|
-
|
|
990
|
-
c === u.value ?
|
|
1090
|
+
de.tab,
|
|
1091
|
+
c === u.value ? de.activeTab : ""
|
|
991
1092
|
].filter(Boolean).join(" "),
|
|
992
1093
|
onClick: () => p(u.value),
|
|
993
1094
|
onKeyDown: (w) => m(w, v),
|
|
@@ -1004,25 +1105,25 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1004
1105
|
role: "tabpanel",
|
|
1005
1106
|
"aria-labelledby": f(u.value),
|
|
1006
1107
|
hidden: c !== u.value,
|
|
1007
|
-
className:
|
|
1108
|
+
className: de.panel,
|
|
1008
1109
|
children: u.children
|
|
1009
1110
|
},
|
|
1010
1111
|
u.value
|
|
1011
1112
|
))
|
|
1012
1113
|
] });
|
|
1013
|
-
},
|
|
1014
|
-
accordion:
|
|
1015
|
-
bordered:
|
|
1016
|
-
item:
|
|
1017
|
-
flush:
|
|
1018
|
-
separated:
|
|
1019
|
-
heading:
|
|
1020
|
-
trigger:
|
|
1021
|
-
icon:
|
|
1022
|
-
open:
|
|
1023
|
-
contentOuter:
|
|
1024
|
-
contentInner:
|
|
1025
|
-
},
|
|
1114
|
+
}, hs = "_accordion_wacbm_1", ms = "_bordered_wacbm_7", fs = "_item_wacbm_13", bs = "_flush_wacbm_17", gs = "_separated_wacbm_21", vs = "_heading_wacbm_35", ws = "_trigger_wacbm_40", $s = "_icon_wacbm_72", ks = "_open_wacbm_80", ys = "_contentOuter_wacbm_85", Ns = "_contentInner_wacbm_95", Y = {
|
|
1115
|
+
accordion: hs,
|
|
1116
|
+
bordered: ms,
|
|
1117
|
+
item: fs,
|
|
1118
|
+
flush: bs,
|
|
1119
|
+
separated: gs,
|
|
1120
|
+
heading: vs,
|
|
1121
|
+
trigger: ws,
|
|
1122
|
+
icon: $s,
|
|
1123
|
+
open: ks,
|
|
1124
|
+
contentOuter: ys,
|
|
1125
|
+
contentInner: Ns
|
|
1126
|
+
}, $c = ({
|
|
1026
1127
|
items: t,
|
|
1027
1128
|
defaultValue: o,
|
|
1028
1129
|
value: n,
|
|
@@ -1030,18 +1131,18 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1030
1131
|
multiple: s = !1,
|
|
1031
1132
|
variant: a = "bordered"
|
|
1032
1133
|
}) => {
|
|
1033
|
-
const l = n !== void 0, i = (d) => d ? Array.isArray(d) ? d : [d] : [], [c, _] =
|
|
1134
|
+
const l = n !== void 0, i = (d) => d ? Array.isArray(d) ? d : [d] : [], [c, _] = D(i(o)), p = l ? i(n) : c, m = (d) => {
|
|
1034
1135
|
let f;
|
|
1035
1136
|
p.includes(d) ? f = p.filter((g) => g !== d) : f = s ? [...p, d] : [d], l || _(f), r == null || r(s ? f : f[0] ?? "");
|
|
1036
1137
|
};
|
|
1037
|
-
return /* @__PURE__ */ e("div", { className: [
|
|
1138
|
+
return /* @__PURE__ */ e("div", { className: [Y.accordion, Y[a]].filter(Boolean).join(" "), children: t.map((d) => {
|
|
1038
1139
|
const f = p.includes(d.value), g = `vui-accordion-trigger-${d.value}`, u = `vui-accordion-panel-${d.value}`;
|
|
1039
1140
|
return /* @__PURE__ */ h(
|
|
1040
1141
|
"div",
|
|
1041
1142
|
{
|
|
1042
|
-
className: [
|
|
1143
|
+
className: [Y.item, f ? Y.open : ""].filter(Boolean).join(" "),
|
|
1043
1144
|
children: [
|
|
1044
|
-
/* @__PURE__ */ e("h3", { className:
|
|
1145
|
+
/* @__PURE__ */ e("h3", { className: Y.heading, children: /* @__PURE__ */ h(
|
|
1045
1146
|
"button",
|
|
1046
1147
|
{
|
|
1047
1148
|
id: g,
|
|
@@ -1049,11 +1150,11 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1049
1150
|
"aria-expanded": f,
|
|
1050
1151
|
"aria-controls": u,
|
|
1051
1152
|
disabled: d.disabled,
|
|
1052
|
-
className:
|
|
1153
|
+
className: Y.trigger,
|
|
1053
1154
|
onClick: () => !d.disabled && m(d.value),
|
|
1054
1155
|
children: [
|
|
1055
1156
|
/* @__PURE__ */ e("span", { children: d.title }),
|
|
1056
|
-
/* @__PURE__ */ e("span", { className:
|
|
1157
|
+
/* @__PURE__ */ e("span", { className: Y.icon, "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
1057
1158
|
"svg",
|
|
1058
1159
|
{
|
|
1059
1160
|
width: "16",
|
|
@@ -1081,8 +1182,8 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1081
1182
|
id: u,
|
|
1082
1183
|
role: "region",
|
|
1083
1184
|
"aria-labelledby": g,
|
|
1084
|
-
className:
|
|
1085
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
1185
|
+
className: Y.contentOuter,
|
|
1186
|
+
children: /* @__PURE__ */ e("div", { className: Y.contentInner, children: d.content })
|
|
1086
1187
|
}
|
|
1087
1188
|
)
|
|
1088
1189
|
]
|
|
@@ -1090,18 +1191,18 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1090
1191
|
d.value
|
|
1091
1192
|
);
|
|
1092
1193
|
}) });
|
|
1093
|
-
},
|
|
1094
|
-
alert:
|
|
1095
|
-
icon:
|
|
1096
|
-
content:
|
|
1097
|
-
title:
|
|
1098
|
-
body:
|
|
1099
|
-
closeBtn:
|
|
1100
|
-
info:
|
|
1101
|
-
success:
|
|
1102
|
-
warning:
|
|
1103
|
-
danger:
|
|
1104
|
-
},
|
|
1194
|
+
}, xs = "_alert_b1vtk_1", Ls = "_icon_b1vtk_12", Bs = "_content_b1vtk_19", js = "_title_b1vtk_24", Is = "_body_b1vtk_31", Cs = "_closeBtn_b1vtk_35", Es = "_info_b1vtk_64", qs = "_success_b1vtk_70", Ws = "_warning_b1vtk_76", Ts = "_danger_b1vtk_82", oe = {
|
|
1195
|
+
alert: xs,
|
|
1196
|
+
icon: Ls,
|
|
1197
|
+
content: Bs,
|
|
1198
|
+
title: js,
|
|
1199
|
+
body: Is,
|
|
1200
|
+
closeBtn: Cs,
|
|
1201
|
+
info: Es,
|
|
1202
|
+
success: qs,
|
|
1203
|
+
warning: Ws,
|
|
1204
|
+
danger: Ts
|
|
1205
|
+
}, Rs = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1105
1206
|
"path",
|
|
1106
1207
|
{
|
|
1107
1208
|
strokeLinecap: "round",
|
|
@@ -1109,7 +1210,7 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1109
1210
|
strokeWidth: 2,
|
|
1110
1211
|
d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1111
1212
|
}
|
|
1112
|
-
) }),
|
|
1213
|
+
) }), Ms = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1113
1214
|
"path",
|
|
1114
1215
|
{
|
|
1115
1216
|
strokeLinecap: "round",
|
|
@@ -1117,7 +1218,7 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1117
1218
|
strokeWidth: 2,
|
|
1118
1219
|
d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1119
1220
|
}
|
|
1120
|
-
) }),
|
|
1221
|
+
) }), Ss = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1121
1222
|
"path",
|
|
1122
1223
|
{
|
|
1123
1224
|
strokeLinecap: "round",
|
|
@@ -1125,7 +1226,7 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1125
1226
|
strokeWidth: 2,
|
|
1126
1227
|
d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
|
|
1127
1228
|
}
|
|
1128
|
-
) }),
|
|
1229
|
+
) }), zs = () => /* @__PURE__ */ e("svg", { width: "20", height: "20", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ e(
|
|
1129
1230
|
"path",
|
|
1130
1231
|
{
|
|
1131
1232
|
strokeLinecap: "round",
|
|
@@ -1133,12 +1234,12 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1133
1234
|
strokeWidth: 2,
|
|
1134
1235
|
d: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
1135
1236
|
}
|
|
1136
|
-
) }),
|
|
1137
|
-
info: /* @__PURE__ */ e(
|
|
1138
|
-
success: /* @__PURE__ */ e(
|
|
1139
|
-
warning: /* @__PURE__ */ e(
|
|
1140
|
-
danger: /* @__PURE__ */ e(
|
|
1141
|
-
},
|
|
1237
|
+
) }), Ds = {
|
|
1238
|
+
info: /* @__PURE__ */ e(Rs, {}),
|
|
1239
|
+
success: /* @__PURE__ */ e(Ms, {}),
|
|
1240
|
+
warning: /* @__PURE__ */ e(Ss, {}),
|
|
1241
|
+
danger: /* @__PURE__ */ e(zs, {})
|
|
1242
|
+
}, kc = ({
|
|
1142
1243
|
variant: t = "info",
|
|
1143
1244
|
title: o,
|
|
1144
1245
|
icon: n,
|
|
@@ -1147,18 +1248,18 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1147
1248
|
className: a,
|
|
1148
1249
|
...l
|
|
1149
1250
|
}) => {
|
|
1150
|
-
const i = [
|
|
1251
|
+
const i = [oe.alert, oe[t], a ?? ""].filter(Boolean).join(" "), c = n !== void 0 ? n : Ds[t];
|
|
1151
1252
|
return /* @__PURE__ */ h("div", { className: i, role: "alert", ...l, children: [
|
|
1152
|
-
c && /* @__PURE__ */ e("span", { className:
|
|
1153
|
-
/* @__PURE__ */ h("div", { className:
|
|
1154
|
-
o && /* @__PURE__ */ e("p", { className:
|
|
1155
|
-
/* @__PURE__ */ e("div", { className:
|
|
1253
|
+
c && /* @__PURE__ */ e("span", { className: oe.icon, "aria-hidden": "true", children: c }),
|
|
1254
|
+
/* @__PURE__ */ h("div", { className: oe.content, children: [
|
|
1255
|
+
o && /* @__PURE__ */ e("p", { className: oe.title, children: o }),
|
|
1256
|
+
/* @__PURE__ */ e("div", { className: oe.body, children: s })
|
|
1156
1257
|
] }),
|
|
1157
1258
|
r && /* @__PURE__ */ e(
|
|
1158
1259
|
"button",
|
|
1159
1260
|
{
|
|
1160
1261
|
type: "button",
|
|
1161
|
-
className:
|
|
1262
|
+
className: oe.closeBtn,
|
|
1162
1263
|
onClick: r,
|
|
1163
1264
|
"aria-label": "Dismiss alert",
|
|
1164
1265
|
children: /* @__PURE__ */ e(
|
|
@@ -1184,22 +1285,22 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1184
1285
|
}
|
|
1185
1286
|
)
|
|
1186
1287
|
] });
|
|
1187
|
-
},
|
|
1188
|
-
divider:
|
|
1189
|
-
horizontal:
|
|
1190
|
-
vertical:
|
|
1191
|
-
withLabel:
|
|
1192
|
-
label:
|
|
1193
|
-
},
|
|
1288
|
+
}, Fs = "_divider_vfae1_1", As = "_horizontal_vfae1_6", Hs = "_vertical_vfae1_12", Os = "_withLabel_vfae1_19", Us = "_label_vfae1_33", Ie = {
|
|
1289
|
+
divider: Fs,
|
|
1290
|
+
horizontal: As,
|
|
1291
|
+
vertical: Hs,
|
|
1292
|
+
withLabel: Os,
|
|
1293
|
+
label: Us
|
|
1294
|
+
}, yc = ({
|
|
1194
1295
|
orientation: t = "horizontal",
|
|
1195
1296
|
label: o,
|
|
1196
1297
|
className: n,
|
|
1197
1298
|
...r
|
|
1198
1299
|
}) => {
|
|
1199
1300
|
const s = [
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
o ?
|
|
1301
|
+
Ie.divider,
|
|
1302
|
+
Ie[t],
|
|
1303
|
+
o ? Ie.withLabel : "",
|
|
1203
1304
|
n ?? ""
|
|
1204
1305
|
].filter(Boolean).join(" ");
|
|
1205
1306
|
return /* @__PURE__ */ e(
|
|
@@ -1209,33 +1310,33 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1209
1310
|
"aria-orientation": t,
|
|
1210
1311
|
className: s,
|
|
1211
1312
|
...r,
|
|
1212
|
-
children: o && /* @__PURE__ */ e("span", { className:
|
|
1313
|
+
children: o && /* @__PURE__ */ e("span", { className: Ie.label, children: o })
|
|
1213
1314
|
}
|
|
1214
1315
|
);
|
|
1215
|
-
},
|
|
1216
|
-
spinner:
|
|
1217
|
-
svg:
|
|
1218
|
-
spin:
|
|
1219
|
-
track:
|
|
1220
|
-
arc:
|
|
1221
|
-
sm:
|
|
1222
|
-
md:
|
|
1223
|
-
lg:
|
|
1224
|
-
primary:
|
|
1225
|
-
muted:
|
|
1226
|
-
white:
|
|
1227
|
-
},
|
|
1316
|
+
}, Ps = "_spinner_1232t_1", Vs = "_svg_1232t_8", Xs = "_spin_1232t_1", Ys = "_track_1232t_17", Gs = "_arc_1232t_21", Ks = "_sm_1232t_27", Js = "_md_1232t_33", Qs = "_lg_1232t_39", Zs = "_primary_1232t_46", ea = "_muted_1232t_50", ta = "_white_1232t_54", _e = {
|
|
1317
|
+
spinner: Ps,
|
|
1318
|
+
svg: Vs,
|
|
1319
|
+
spin: Xs,
|
|
1320
|
+
track: Ys,
|
|
1321
|
+
arc: Gs,
|
|
1322
|
+
sm: Ks,
|
|
1323
|
+
md: Js,
|
|
1324
|
+
lg: Qs,
|
|
1325
|
+
primary: Zs,
|
|
1326
|
+
muted: ea,
|
|
1327
|
+
white: ta
|
|
1328
|
+
}, Nc = ({
|
|
1228
1329
|
size: t = "md",
|
|
1229
1330
|
color: o = "primary",
|
|
1230
1331
|
label: n = "Loading…",
|
|
1231
1332
|
className: r,
|
|
1232
1333
|
...s
|
|
1233
1334
|
}) => {
|
|
1234
|
-
const a = [
|
|
1335
|
+
const a = [_e.spinner, _e[t], _e[o], r ?? ""].filter(Boolean).join(" ");
|
|
1235
1336
|
return /* @__PURE__ */ e("span", { className: a, role: "status", "aria-label": n, ...s, children: /* @__PURE__ */ h(
|
|
1236
1337
|
"svg",
|
|
1237
1338
|
{
|
|
1238
|
-
className:
|
|
1339
|
+
className: _e.svg,
|
|
1239
1340
|
viewBox: "0 0 24 24",
|
|
1240
1341
|
fill: "none",
|
|
1241
1342
|
"aria-hidden": "true",
|
|
@@ -1243,7 +1344,7 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1243
1344
|
/* @__PURE__ */ e(
|
|
1244
1345
|
"circle",
|
|
1245
1346
|
{
|
|
1246
|
-
className:
|
|
1347
|
+
className: _e.track,
|
|
1247
1348
|
cx: "12",
|
|
1248
1349
|
cy: "12",
|
|
1249
1350
|
r: "10",
|
|
@@ -1254,7 +1355,7 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1254
1355
|
/* @__PURE__ */ e(
|
|
1255
1356
|
"circle",
|
|
1256
1357
|
{
|
|
1257
|
-
className:
|
|
1358
|
+
className: _e.arc,
|
|
1258
1359
|
cx: "12",
|
|
1259
1360
|
cy: "12",
|
|
1260
1361
|
r: "10",
|
|
@@ -1266,13 +1367,13 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1266
1367
|
]
|
|
1267
1368
|
}
|
|
1268
1369
|
) });
|
|
1269
|
-
},
|
|
1270
|
-
block:
|
|
1271
|
-
stack:
|
|
1272
|
-
},
|
|
1370
|
+
}, na = "_block_tuupu_1", oa = "_stack_tuupu_13", Se = {
|
|
1371
|
+
block: na,
|
|
1372
|
+
stack: oa
|
|
1373
|
+
}, re = (t) => {
|
|
1273
1374
|
if (t !== void 0)
|
|
1274
1375
|
return typeof t == "number" ? `${t}px` : t;
|
|
1275
|
-
},
|
|
1376
|
+
}, xc = ({
|
|
1276
1377
|
width: t,
|
|
1277
1378
|
height: o,
|
|
1278
1379
|
radius: n,
|
|
@@ -1283,11 +1384,11 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1283
1384
|
...i
|
|
1284
1385
|
}) => {
|
|
1285
1386
|
if (r && r > 1) {
|
|
1286
|
-
const c =
|
|
1387
|
+
const c = re(s) ?? "0.5rem";
|
|
1287
1388
|
return /* @__PURE__ */ e(
|
|
1288
1389
|
"span",
|
|
1289
1390
|
{
|
|
1290
|
-
className: [
|
|
1391
|
+
className: [Se.stack, a ?? ""].filter(Boolean).join(" "),
|
|
1291
1392
|
style: { gap: c, ...l },
|
|
1292
1393
|
"aria-hidden": "true",
|
|
1293
1394
|
...i,
|
|
@@ -1296,11 +1397,11 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1296
1397
|
return /* @__PURE__ */ e(
|
|
1297
1398
|
"span",
|
|
1298
1399
|
{
|
|
1299
|
-
className:
|
|
1400
|
+
className: Se.block,
|
|
1300
1401
|
style: {
|
|
1301
|
-
width: m ? "75%" :
|
|
1302
|
-
height:
|
|
1303
|
-
borderRadius:
|
|
1402
|
+
width: m ? "75%" : re(t) ?? "100%",
|
|
1403
|
+
height: re(o) ?? "1rem",
|
|
1404
|
+
borderRadius: re(n) ?? "var(--vui-radius-sm, 0.375rem)"
|
|
1304
1405
|
}
|
|
1305
1406
|
},
|
|
1306
1407
|
p
|
|
@@ -1312,32 +1413,32 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1312
1413
|
return /* @__PURE__ */ e(
|
|
1313
1414
|
"span",
|
|
1314
1415
|
{
|
|
1315
|
-
className: [
|
|
1416
|
+
className: [Se.block, a ?? ""].filter(Boolean).join(" "),
|
|
1316
1417
|
style: {
|
|
1317
|
-
width:
|
|
1318
|
-
height:
|
|
1319
|
-
borderRadius:
|
|
1418
|
+
width: re(t),
|
|
1419
|
+
height: re(o) ?? "1rem",
|
|
1420
|
+
borderRadius: re(n) ?? "var(--vui-radius-sm, 0.375rem)",
|
|
1320
1421
|
...l
|
|
1321
1422
|
},
|
|
1322
1423
|
"aria-hidden": "true",
|
|
1323
1424
|
...i
|
|
1324
1425
|
}
|
|
1325
1426
|
);
|
|
1326
|
-
},
|
|
1327
|
-
wrapper:
|
|
1328
|
-
labelRow:
|
|
1329
|
-
label:
|
|
1330
|
-
value:
|
|
1331
|
-
track:
|
|
1332
|
-
sm:
|
|
1333
|
-
md:
|
|
1334
|
-
lg:
|
|
1335
|
-
bar:
|
|
1336
|
-
primary:
|
|
1337
|
-
success:
|
|
1338
|
-
warning:
|
|
1339
|
-
danger:
|
|
1340
|
-
},
|
|
1427
|
+
}, ra = "_wrapper_xgu51_1", sa = "_labelRow_xgu51_8", aa = "_label_xgu51_8", ia = "_value_xgu51_20", la = "_track_xgu51_26", ca = "_sm_xgu51_33", da = "_md_xgu51_34", _a = "_lg_xgu51_35", ua = "_bar_xgu51_37", pa = "_primary_xgu51_43", ha = "_success_xgu51_44", ma = "_warning_xgu51_45", fa = "_danger_xgu51_46", Z = {
|
|
1428
|
+
wrapper: ra,
|
|
1429
|
+
labelRow: sa,
|
|
1430
|
+
label: aa,
|
|
1431
|
+
value: ia,
|
|
1432
|
+
track: la,
|
|
1433
|
+
sm: ca,
|
|
1434
|
+
md: da,
|
|
1435
|
+
lg: _a,
|
|
1436
|
+
bar: ua,
|
|
1437
|
+
primary: pa,
|
|
1438
|
+
success: ha,
|
|
1439
|
+
warning: ma,
|
|
1440
|
+
danger: fa
|
|
1441
|
+
}, Lc = ({
|
|
1341
1442
|
value: t,
|
|
1342
1443
|
variant: o = "primary",
|
|
1343
1444
|
size: n = "md",
|
|
@@ -1347,10 +1448,10 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1347
1448
|
...l
|
|
1348
1449
|
}) => {
|
|
1349
1450
|
const i = Math.min(100, Math.max(0, t));
|
|
1350
|
-
return /* @__PURE__ */ h("div", { className: [
|
|
1351
|
-
(r || s) && /* @__PURE__ */ h("div", { className:
|
|
1352
|
-
r && /* @__PURE__ */ e("span", { className:
|
|
1353
|
-
s && /* @__PURE__ */ h("span", { className:
|
|
1451
|
+
return /* @__PURE__ */ h("div", { className: [Z.wrapper, a ?? ""].filter(Boolean).join(" "), ...l, children: [
|
|
1452
|
+
(r || s) && /* @__PURE__ */ h("div", { className: Z.labelRow, children: [
|
|
1453
|
+
r && /* @__PURE__ */ e("span", { className: Z.label, children: r }),
|
|
1454
|
+
s && /* @__PURE__ */ h("span", { className: Z.value, children: [
|
|
1354
1455
|
i,
|
|
1355
1456
|
"%"
|
|
1356
1457
|
] })
|
|
@@ -1358,7 +1459,7 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1358
1459
|
/* @__PURE__ */ e(
|
|
1359
1460
|
"div",
|
|
1360
1461
|
{
|
|
1361
|
-
className: [
|
|
1462
|
+
className: [Z.track, Z[n]].filter(Boolean).join(" "),
|
|
1362
1463
|
role: "progressbar",
|
|
1363
1464
|
"aria-valuenow": i,
|
|
1364
1465
|
"aria-valuemin": 0,
|
|
@@ -1367,88 +1468,88 @@ const kr = "_wrapper_16e9w_1", Nr = "_tooltip_16e9w_6", yr = "_visible_16e9w_25"
|
|
|
1367
1468
|
children: /* @__PURE__ */ e(
|
|
1368
1469
|
"div",
|
|
1369
1470
|
{
|
|
1370
|
-
className: [
|
|
1471
|
+
className: [Z.bar, Z[o]].filter(Boolean).join(" "),
|
|
1371
1472
|
style: { width: `${i}%` }
|
|
1372
1473
|
}
|
|
1373
1474
|
)
|
|
1374
1475
|
}
|
|
1375
1476
|
)
|
|
1376
1477
|
] });
|
|
1377
|
-
},
|
|
1378
|
-
container:
|
|
1379
|
-
toast:
|
|
1380
|
-
slideUp:
|
|
1381
|
-
message:
|
|
1382
|
-
close:
|
|
1383
|
-
info:
|
|
1384
|
-
success:
|
|
1385
|
-
warning:
|
|
1386
|
-
danger:
|
|
1387
|
-
},
|
|
1388
|
-
let
|
|
1389
|
-
const
|
|
1478
|
+
}, ba = "_container_2etd3_1", ga = "_toast_2etd3_14", va = "_slideUp_2etd3_1", wa = "_message_2etd3_31", $a = "_close_2etd3_38", ka = "_info_2etd3_63", ya = "_success_2etd3_69", Na = "_warning_2etd3_75", xa = "_danger_2etd3_81", we = {
|
|
1479
|
+
container: ba,
|
|
1480
|
+
toast: ga,
|
|
1481
|
+
slideUp: va,
|
|
1482
|
+
message: wa,
|
|
1483
|
+
close: $a,
|
|
1484
|
+
info: ka,
|
|
1485
|
+
success: ya,
|
|
1486
|
+
warning: Na,
|
|
1487
|
+
danger: xa
|
|
1488
|
+
}, Qe = rt(null);
|
|
1489
|
+
let La = 0;
|
|
1490
|
+
const Ba = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) }), ja = ({ item: t, onRemove: o }) => {
|
|
1390
1491
|
const n = A(null);
|
|
1391
|
-
|
|
1492
|
+
he(() => {
|
|
1392
1493
|
const s = t.duration ?? 4e3;
|
|
1393
1494
|
return s > 0 && (n.current = setTimeout(() => o(t.id), s)), () => {
|
|
1394
1495
|
n.current && clearTimeout(n.current);
|
|
1395
1496
|
};
|
|
1396
1497
|
}, [t.id, t.duration, o]);
|
|
1397
|
-
const r = [
|
|
1498
|
+
const r = [we.toast, we[t.variant ?? "info"]].filter(Boolean).join(" ");
|
|
1398
1499
|
return /* @__PURE__ */ h("div", { className: r, role: "alert", "aria-live": "assertive", children: [
|
|
1399
|
-
/* @__PURE__ */ e("span", { className:
|
|
1500
|
+
/* @__PURE__ */ e("span", { className: we.message, children: t.message }),
|
|
1400
1501
|
/* @__PURE__ */ e(
|
|
1401
1502
|
"button",
|
|
1402
1503
|
{
|
|
1403
1504
|
type: "button",
|
|
1404
|
-
className:
|
|
1505
|
+
className: we.close,
|
|
1405
1506
|
onClick: () => o(t.id),
|
|
1406
1507
|
"aria-label": "Dismiss notification",
|
|
1407
|
-
children: /* @__PURE__ */ e(
|
|
1508
|
+
children: /* @__PURE__ */ e(Ba, {})
|
|
1408
1509
|
}
|
|
1409
1510
|
)
|
|
1410
1511
|
] });
|
|
1411
|
-
},
|
|
1412
|
-
const [o, n] =
|
|
1413
|
-
const l = `toast-${++
|
|
1512
|
+
}, Bc = ({ children: t }) => {
|
|
1513
|
+
const [o, n] = D([]), r = $e((a) => {
|
|
1514
|
+
const l = `toast-${++La}`;
|
|
1414
1515
|
n((i) => [...i, { ...a, id: l }]);
|
|
1415
|
-
}, []), s =
|
|
1516
|
+
}, []), s = $e((a) => {
|
|
1416
1517
|
n((l) => l.filter((i) => i.id !== a));
|
|
1417
1518
|
}, []);
|
|
1418
|
-
return /* @__PURE__ */ h(
|
|
1519
|
+
return /* @__PURE__ */ h(Qe.Provider, { value: { addToast: r, removeToast: s }, children: [
|
|
1419
1520
|
t,
|
|
1420
|
-
typeof document < "u" &&
|
|
1421
|
-
/* @__PURE__ */ e("div", { className:
|
|
1521
|
+
typeof document < "u" && ze(
|
|
1522
|
+
/* @__PURE__ */ e("div", { className: we.container, "aria-label": "Notifications", children: o.map((a) => /* @__PURE__ */ e(ja, { item: a, onRemove: s }, a.id)) }),
|
|
1422
1523
|
document.body
|
|
1423
1524
|
)
|
|
1424
1525
|
] });
|
|
1425
|
-
},
|
|
1426
|
-
const t =
|
|
1526
|
+
}, jc = () => {
|
|
1527
|
+
const t = ot(Qe);
|
|
1427
1528
|
if (!t)
|
|
1428
1529
|
throw new Error("useToast must be used inside <ToastProvider>");
|
|
1429
1530
|
return t;
|
|
1430
|
-
},
|
|
1431
|
-
avatar:
|
|
1432
|
-
xs:
|
|
1433
|
-
sm:
|
|
1434
|
-
md:
|
|
1435
|
-
lg:
|
|
1436
|
-
xl:
|
|
1437
|
-
circle:
|
|
1438
|
-
square:
|
|
1439
|
-
img:
|
|
1440
|
-
initials:
|
|
1441
|
-
fallbackIcon:
|
|
1442
|
-
status:
|
|
1443
|
-
online:
|
|
1444
|
-
away:
|
|
1445
|
-
offline:
|
|
1531
|
+
}, Ia = "_avatar_1ado7_1", Ca = "_xs_1ado7_15", Ea = "_sm_1ado7_16", qa = "_md_1ado7_17", Wa = "_lg_1ado7_18", Ta = "_xl_1ado7_19", Ra = "_circle_1ado7_22", Ma = "_square_1ado7_23", Sa = "_img_1ado7_25", za = "_initials_1ado7_32", Da = "_fallbackIcon_1ado7_37", Fa = "_status_1ado7_44", Aa = "_online_1ado7_56", Ha = "_away_1ado7_57", Oa = "_offline_1ado7_58", ee = {
|
|
1532
|
+
avatar: Ia,
|
|
1533
|
+
xs: Ca,
|
|
1534
|
+
sm: Ea,
|
|
1535
|
+
md: qa,
|
|
1536
|
+
lg: Wa,
|
|
1537
|
+
xl: Ta,
|
|
1538
|
+
circle: Ra,
|
|
1539
|
+
square: Ma,
|
|
1540
|
+
img: Sa,
|
|
1541
|
+
initials: za,
|
|
1542
|
+
fallbackIcon: Da,
|
|
1543
|
+
status: Fa,
|
|
1544
|
+
online: Aa,
|
|
1545
|
+
away: Ha,
|
|
1546
|
+
offline: Oa
|
|
1446
1547
|
};
|
|
1447
|
-
function
|
|
1548
|
+
function Ua(t) {
|
|
1448
1549
|
const o = t.trim().split(/\s+/);
|
|
1449
1550
|
return o.length === 1 ? o[0].charAt(0).toUpperCase() : (o[0].charAt(0) + o[o.length - 1].charAt(0)).toUpperCase();
|
|
1450
1551
|
}
|
|
1451
|
-
const
|
|
1552
|
+
const Ic = ({
|
|
1452
1553
|
src: t,
|
|
1453
1554
|
alt: o,
|
|
1454
1555
|
name: n,
|
|
@@ -1458,34 +1559,34 @@ const ec = ({
|
|
|
1458
1559
|
className: l,
|
|
1459
1560
|
...i
|
|
1460
1561
|
}) => {
|
|
1461
|
-
const [c, _] =
|
|
1562
|
+
const [c, _] = D(!1), p = [ee.avatar, ee[r], ee[s], l ?? ""].filter(Boolean).join(" "), m = t && !c, d = n ? Ua(n) : null;
|
|
1462
1563
|
return /* @__PURE__ */ h("span", { className: p, "aria-label": o ?? n, ...i, children: [
|
|
1463
1564
|
m ? /* @__PURE__ */ e(
|
|
1464
1565
|
"img",
|
|
1465
1566
|
{
|
|
1466
1567
|
src: t,
|
|
1467
1568
|
alt: o ?? n ?? "",
|
|
1468
|
-
className:
|
|
1569
|
+
className: ee.img,
|
|
1469
1570
|
onError: () => _(!0)
|
|
1470
1571
|
}
|
|
1471
|
-
) : d ? /* @__PURE__ */ e("span", { className:
|
|
1472
|
-
a && /* @__PURE__ */ e("span", { className: [
|
|
1572
|
+
) : d ? /* @__PURE__ */ e("span", { className: ee.initials, "aria-hidden": "true", children: d }) : /* @__PURE__ */ e("svg", { className: ee.fallbackIcon, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z" }) }),
|
|
1573
|
+
a && /* @__PURE__ */ e("span", { className: [ee.status, ee[a]].filter(Boolean).join(" "), "aria-label": a })
|
|
1473
1574
|
] });
|
|
1474
|
-
},
|
|
1475
|
-
tag:
|
|
1476
|
-
sm:
|
|
1477
|
-
md:
|
|
1478
|
-
lg:
|
|
1575
|
+
}, Pa = "_tag_13w40_1", Va = "_sm_13w40_14", Xa = "_md_13w40_19", Ya = "_lg_13w40_24", Ga = "_info_13w40_36", Ka = "_success_13w40_42", Ja = "_warning_13w40_48", Qa = "_danger_13w40_54", Za = "_primary_13w40_60", ei = "_label_13w40_66", ti = "_icon_13w40_70", ni = "_close_13w40_75", ue = {
|
|
1576
|
+
tag: Pa,
|
|
1577
|
+
sm: Va,
|
|
1578
|
+
md: Xa,
|
|
1579
|
+
lg: Ya,
|
|
1479
1580
|
default: "_default_13w40_30",
|
|
1480
|
-
info:
|
|
1481
|
-
success:
|
|
1482
|
-
warning:
|
|
1483
|
-
danger:
|
|
1484
|
-
primary:
|
|
1485
|
-
label:
|
|
1486
|
-
icon:
|
|
1487
|
-
close:
|
|
1488
|
-
},
|
|
1581
|
+
info: Ga,
|
|
1582
|
+
success: Ka,
|
|
1583
|
+
warning: Ja,
|
|
1584
|
+
danger: Qa,
|
|
1585
|
+
primary: Za,
|
|
1586
|
+
label: ei,
|
|
1587
|
+
icon: ti,
|
|
1588
|
+
close: ni
|
|
1589
|
+
}, Cc = ({
|
|
1489
1590
|
variant: t = "default",
|
|
1490
1591
|
size: o = "md",
|
|
1491
1592
|
onClose: n,
|
|
@@ -1494,15 +1595,15 @@ const ec = ({
|
|
|
1494
1595
|
className: a,
|
|
1495
1596
|
...l
|
|
1496
1597
|
}) => {
|
|
1497
|
-
const i = [
|
|
1598
|
+
const i = [ue.tag, ue[t], ue[o], a ?? ""].filter(Boolean).join(" ");
|
|
1498
1599
|
return /* @__PURE__ */ h("span", { className: i, ...l, children: [
|
|
1499
|
-
r && /* @__PURE__ */ e("span", { className:
|
|
1500
|
-
/* @__PURE__ */ e("span", { className:
|
|
1600
|
+
r && /* @__PURE__ */ e("span", { className: ue.icon, "aria-hidden": "true", children: r }),
|
|
1601
|
+
/* @__PURE__ */ e("span", { className: ue.label, children: s }),
|
|
1501
1602
|
n && /* @__PURE__ */ e(
|
|
1502
1603
|
"button",
|
|
1503
1604
|
{
|
|
1504
1605
|
type: "button",
|
|
1505
|
-
className:
|
|
1606
|
+
className: ue.close,
|
|
1506
1607
|
onClick: (c) => {
|
|
1507
1608
|
c.stopPropagation(), n();
|
|
1508
1609
|
},
|
|
@@ -1511,73 +1612,73 @@ const ec = ({
|
|
|
1511
1612
|
}
|
|
1512
1613
|
)
|
|
1513
1614
|
] });
|
|
1514
|
-
},
|
|
1515
|
-
root:
|
|
1516
|
-
icon:
|
|
1517
|
-
title:
|
|
1518
|
-
description:
|
|
1519
|
-
action:
|
|
1520
|
-
},
|
|
1615
|
+
}, oi = "_root_6ieqa_1", ri = "_icon_6ieqa_11", si = "_title_6ieqa_23", ai = "_description_6ieqa_31", ii = "_action_6ieqa_39", ve = {
|
|
1616
|
+
root: oi,
|
|
1617
|
+
icon: ri,
|
|
1618
|
+
title: si,
|
|
1619
|
+
description: ai,
|
|
1620
|
+
action: ii
|
|
1621
|
+
}, Ec = ({
|
|
1521
1622
|
icon: t,
|
|
1522
1623
|
title: o,
|
|
1523
1624
|
description: n,
|
|
1524
1625
|
action: r,
|
|
1525
1626
|
className: s,
|
|
1526
1627
|
...a
|
|
1527
|
-
}) => /* @__PURE__ */ h("div", { className: [
|
|
1528
|
-
t && /* @__PURE__ */ e("span", { className:
|
|
1529
|
-
/* @__PURE__ */ e("p", { className:
|
|
1530
|
-
n && /* @__PURE__ */ e("p", { className:
|
|
1531
|
-
r && /* @__PURE__ */ e("div", { className:
|
|
1532
|
-
] }),
|
|
1533
|
-
nav:
|
|
1534
|
-
list:
|
|
1535
|
-
item:
|
|
1536
|
-
separator:
|
|
1537
|
-
crumb:
|
|
1538
|
-
link:
|
|
1539
|
-
current:
|
|
1540
|
-
},
|
|
1628
|
+
}) => /* @__PURE__ */ h("div", { className: [ve.root, s ?? ""].filter(Boolean).join(" "), ...a, children: [
|
|
1629
|
+
t && /* @__PURE__ */ e("span", { className: ve.icon, "aria-hidden": "true", children: t }),
|
|
1630
|
+
/* @__PURE__ */ e("p", { className: ve.title, children: o }),
|
|
1631
|
+
n && /* @__PURE__ */ e("p", { className: ve.description, children: n }),
|
|
1632
|
+
r && /* @__PURE__ */ e("div", { className: ve.action, children: r })
|
|
1633
|
+
] }), li = "_nav_1s2na_1", ci = "_list_1s2na_5", di = "_item_1s2na_15", _i = "_separator_1s2na_20", ui = "_crumb_1s2na_27", pi = "_link_1s2na_33", hi = "_current_1s2na_50", G = {
|
|
1634
|
+
nav: li,
|
|
1635
|
+
list: ci,
|
|
1636
|
+
item: di,
|
|
1637
|
+
separator: _i,
|
|
1638
|
+
crumb: ui,
|
|
1639
|
+
link: pi,
|
|
1640
|
+
current: hi
|
|
1641
|
+
}, mi = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), qc = ({
|
|
1541
1642
|
items: t,
|
|
1542
1643
|
separator: o,
|
|
1543
1644
|
className: n,
|
|
1544
1645
|
...r
|
|
1545
1646
|
}) => {
|
|
1546
|
-
const s = o ?? /* @__PURE__ */ e(
|
|
1547
|
-
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: [
|
|
1647
|
+
const s = o ?? /* @__PURE__ */ e(mi, {});
|
|
1648
|
+
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: [G.nav, n ?? ""].filter(Boolean).join(" "), ...r, children: /* @__PURE__ */ e("ol", { className: G.list, children: t.map((a, l) => {
|
|
1548
1649
|
const i = l === t.length - 1;
|
|
1549
|
-
return /* @__PURE__ */ h("li", { className:
|
|
1550
|
-
l > 0 && /* @__PURE__ */ e("span", { className:
|
|
1650
|
+
return /* @__PURE__ */ h("li", { className: G.item, children: [
|
|
1651
|
+
l > 0 && /* @__PURE__ */ e("span", { className: G.separator, "aria-hidden": "true", children: s }),
|
|
1551
1652
|
i || !a.href ? /* @__PURE__ */ e(
|
|
1552
1653
|
"span",
|
|
1553
1654
|
{
|
|
1554
|
-
className: [
|
|
1655
|
+
className: [G.crumb, i ? G.current : G.link].filter(Boolean).join(" "),
|
|
1555
1656
|
"aria-current": i ? "page" : void 0,
|
|
1556
1657
|
children: a.label
|
|
1557
1658
|
}
|
|
1558
|
-
) : /* @__PURE__ */ e("a", { href: a.href, className: [
|
|
1659
|
+
) : /* @__PURE__ */ e("a", { href: a.href, className: [G.crumb, G.link].filter(Boolean).join(" "), children: a.label })
|
|
1559
1660
|
] }, l);
|
|
1560
1661
|
}) }) });
|
|
1561
|
-
},
|
|
1562
|
-
nav:
|
|
1563
|
-
list:
|
|
1564
|
-
btn:
|
|
1565
|
-
disabled:
|
|
1566
|
-
active:
|
|
1567
|
-
dots:
|
|
1662
|
+
}, fi = "_nav_10kny_1", bi = "_list_10kny_5", gi = "_btn_10kny_14", vi = "_disabled_10kny_32", wi = "_active_10kny_32", $i = "_dots_10kny_54", R = {
|
|
1663
|
+
nav: fi,
|
|
1664
|
+
list: bi,
|
|
1665
|
+
btn: gi,
|
|
1666
|
+
disabled: vi,
|
|
1667
|
+
active: wi,
|
|
1668
|
+
dots: $i
|
|
1568
1669
|
};
|
|
1569
|
-
function
|
|
1670
|
+
function Ce(t, o) {
|
|
1570
1671
|
const n = o - t + 1;
|
|
1571
1672
|
return Array.from({ length: n }, (r, s) => t + s);
|
|
1572
1673
|
}
|
|
1573
|
-
function
|
|
1674
|
+
function ki(t, o, n) {
|
|
1574
1675
|
const r = n * 2 + 5;
|
|
1575
1676
|
if (o <= r)
|
|
1576
|
-
return
|
|
1677
|
+
return Ce(1, o);
|
|
1577
1678
|
const s = Math.max(t - n, 1), a = Math.min(t + n, o), l = s > 2, i = a < o - 1;
|
|
1578
|
-
return !l && i ? [...
|
|
1679
|
+
return !l && i ? [...Ce(1, 3 + n * 2), "...", o] : l && !i ? [1, "...", ...Ce(o - (2 + n * 2), o)] : [1, "...", ...Ce(s, a), "...", o];
|
|
1579
1680
|
}
|
|
1580
|
-
const
|
|
1681
|
+
const yi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 18l-6-6 6-6" }) }), Ni = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 18l6-6-6-6" }) }), xi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M11 17l-5-5 5-5M18 17l-5-5 5-5" }) }), Li = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 17l5-5-5-5M6 17l5-5-5-5" }) }), Wc = ({
|
|
1581
1682
|
page: t,
|
|
1582
1683
|
totalPages: o,
|
|
1583
1684
|
onChange: n,
|
|
@@ -1586,7 +1687,7 @@ const Ja = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1586
1687
|
className: a,
|
|
1587
1688
|
...l
|
|
1588
1689
|
}) => {
|
|
1589
|
-
const i =
|
|
1690
|
+
const i = ki(t, o, r), c = (_) => {
|
|
1590
1691
|
_ < 1 || _ > o || _ === t || n(_);
|
|
1591
1692
|
};
|
|
1592
1693
|
return /* @__PURE__ */ e(
|
|
@@ -1603,7 +1704,7 @@ const Ja = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1603
1704
|
onClick: () => c(1),
|
|
1604
1705
|
disabled: t === 1,
|
|
1605
1706
|
"aria-label": "First page",
|
|
1606
|
-
children: /* @__PURE__ */ e(
|
|
1707
|
+
children: /* @__PURE__ */ e(xi, {})
|
|
1607
1708
|
}
|
|
1608
1709
|
) }),
|
|
1609
1710
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
@@ -1613,7 +1714,7 @@ const Ja = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1613
1714
|
onClick: () => c(t - 1),
|
|
1614
1715
|
disabled: t === 1,
|
|
1615
1716
|
"aria-label": "Previous page",
|
|
1616
|
-
children: /* @__PURE__ */ e(
|
|
1717
|
+
children: /* @__PURE__ */ e(yi, {})
|
|
1617
1718
|
}
|
|
1618
1719
|
) }),
|
|
1619
1720
|
i.map(
|
|
@@ -1635,7 +1736,7 @@ const Ja = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1635
1736
|
onClick: () => c(t + 1),
|
|
1636
1737
|
disabled: t === o,
|
|
1637
1738
|
"aria-label": "Next page",
|
|
1638
|
-
children: /* @__PURE__ */ e(
|
|
1739
|
+
children: /* @__PURE__ */ e(Ni, {})
|
|
1639
1740
|
}
|
|
1640
1741
|
) }),
|
|
1641
1742
|
s && /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
|
|
@@ -1645,27 +1746,27 @@ const Ja = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1645
1746
|
onClick: () => c(o),
|
|
1646
1747
|
disabled: t === o,
|
|
1647
1748
|
"aria-label": "Last page",
|
|
1648
|
-
children: /* @__PURE__ */ e(
|
|
1749
|
+
children: /* @__PURE__ */ e(Li, {})
|
|
1649
1750
|
}
|
|
1650
1751
|
) })
|
|
1651
1752
|
] })
|
|
1652
1753
|
}
|
|
1653
1754
|
);
|
|
1654
|
-
},
|
|
1655
|
-
root:
|
|
1656
|
-
horizontal:
|
|
1657
|
-
vertical:
|
|
1658
|
-
step:
|
|
1659
|
-
connector:
|
|
1660
|
-
indicator:
|
|
1661
|
-
circle:
|
|
1662
|
-
pending:
|
|
1663
|
-
active:
|
|
1664
|
-
completed:
|
|
1665
|
-
content:
|
|
1666
|
-
label:
|
|
1667
|
-
description:
|
|
1668
|
-
},
|
|
1755
|
+
}, Bi = "_root_1wmfi_1", ji = "_horizontal_1wmfi_6", Ii = "_vertical_1wmfi_11", Ci = "_step_1wmfi_16", Ei = "_connector_1wmfi_32", qi = "_indicator_1wmfi_37", Wi = "_circle_1wmfi_55", Ti = "_pending_1wmfi_88", Ri = "_active_1wmfi_94", Mi = "_completed_1wmfi_100", Si = "_content_1wmfi_111", zi = "_label_1wmfi_127", Di = "_description_1wmfi_139", M = {
|
|
1756
|
+
root: Bi,
|
|
1757
|
+
horizontal: ji,
|
|
1758
|
+
vertical: Ii,
|
|
1759
|
+
step: Ci,
|
|
1760
|
+
connector: Ei,
|
|
1761
|
+
indicator: qi,
|
|
1762
|
+
circle: Wi,
|
|
1763
|
+
pending: Ti,
|
|
1764
|
+
active: Ri,
|
|
1765
|
+
completed: Mi,
|
|
1766
|
+
content: Si,
|
|
1767
|
+
label: zi,
|
|
1768
|
+
description: Di
|
|
1769
|
+
}, Fi = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M5 13l4 4L19 7" }) }), Tc = ({
|
|
1669
1770
|
steps: t,
|
|
1670
1771
|
currentStep: o,
|
|
1671
1772
|
orientation: n = "horizontal",
|
|
@@ -1695,7 +1796,7 @@ const Ja = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1695
1796
|
].filter(Boolean).join(" ");
|
|
1696
1797
|
return /* @__PURE__ */ h("div", { className: f, role: "listitem", children: [
|
|
1697
1798
|
/* @__PURE__ */ h("div", { className: M.indicator, children: [
|
|
1698
|
-
/* @__PURE__ */ e("span", { className: M.circle, children: p ? /* @__PURE__ */ e(
|
|
1799
|
+
/* @__PURE__ */ e("span", { className: M.circle, children: p ? /* @__PURE__ */ e(Fi, {}) : /* @__PURE__ */ e("span", { children: _ }) }),
|
|
1699
1800
|
!d && /* @__PURE__ */ e("span", { className: M.connector, "aria-hidden": "true" })
|
|
1700
1801
|
] }),
|
|
1701
1802
|
r !== "compact" && /* @__PURE__ */ h("div", { className: M.content, children: [
|
|
@@ -1706,17 +1807,17 @@ const Ja = () => /* @__PURE__ */ e("svg", { width: "14", height: "14", viewBox:
|
|
|
1706
1807
|
})
|
|
1707
1808
|
}
|
|
1708
1809
|
);
|
|
1709
|
-
},
|
|
1710
|
-
triggerWrapper:
|
|
1711
|
-
popover:
|
|
1712
|
-
fadeIn:
|
|
1713
|
-
arrow:
|
|
1714
|
-
bottom:
|
|
1715
|
-
top:
|
|
1716
|
-
right:
|
|
1717
|
-
left:
|
|
1810
|
+
}, Ai = "_triggerWrapper_v2cko_1", Hi = "_popover_v2cko_6", Oi = "_fadeIn_v2cko_1", Ui = "_arrow_v2cko_24", Pi = "_bottom_v2cko_34", Vi = "_top_v2cko_42", Xi = "_right_v2cko_50", Yi = "_left_v2cko_58", Ee = {
|
|
1811
|
+
triggerWrapper: Ai,
|
|
1812
|
+
popover: Hi,
|
|
1813
|
+
fadeIn: Oi,
|
|
1814
|
+
arrow: Ui,
|
|
1815
|
+
bottom: Pi,
|
|
1816
|
+
top: Vi,
|
|
1817
|
+
right: Xi,
|
|
1818
|
+
left: Yi
|
|
1718
1819
|
};
|
|
1719
|
-
function
|
|
1820
|
+
function Gi(t, o, n) {
|
|
1720
1821
|
const { top: r, left: s, bottom: a, right: l, width: i, height: c } = t, _ = o.offsetWidth, p = o.offsetHeight, m = 8;
|
|
1721
1822
|
switch (n) {
|
|
1722
1823
|
case "top":
|
|
@@ -1729,7 +1830,7 @@ function Ni(t, o, n) {
|
|
|
1729
1830
|
return { top: r + c / 2 - p / 2 + window.scrollY, left: l + m + window.scrollX };
|
|
1730
1831
|
}
|
|
1731
1832
|
}
|
|
1732
|
-
const
|
|
1833
|
+
const Rc = ({
|
|
1733
1834
|
trigger: t,
|
|
1734
1835
|
content: o,
|
|
1735
1836
|
placement: n = "bottom",
|
|
@@ -1737,26 +1838,26 @@ const ac = ({
|
|
|
1737
1838
|
onOpenChange: s,
|
|
1738
1839
|
className: a
|
|
1739
1840
|
}) => {
|
|
1740
|
-
const l = r !== void 0, [i, c] =
|
|
1841
|
+
const l = r !== void 0, [i, c] = D(!1), _ = l ? r : i, p = A(null), m = A(null), [d, f] = D({ top: 0, left: 0 }), g = $e(
|
|
1741
1842
|
(w) => {
|
|
1742
1843
|
l || c(w), s == null || s(w);
|
|
1743
1844
|
},
|
|
1744
1845
|
[l, s]
|
|
1745
|
-
), u =
|
|
1846
|
+
), u = $e(() => {
|
|
1746
1847
|
if (!p.current || !m.current) return;
|
|
1747
1848
|
const w = p.current.getBoundingClientRect();
|
|
1748
|
-
f(
|
|
1849
|
+
f(Gi(w, m.current, n));
|
|
1749
1850
|
}, [n]);
|
|
1750
|
-
|
|
1851
|
+
he(() => {
|
|
1751
1852
|
if (_)
|
|
1752
1853
|
return u(), window.addEventListener("resize", u), window.addEventListener("scroll", u, !0), () => {
|
|
1753
1854
|
window.removeEventListener("resize", u), window.removeEventListener("scroll", u, !0);
|
|
1754
1855
|
};
|
|
1755
|
-
}, [_, u]),
|
|
1856
|
+
}, [_, u]), he(() => {
|
|
1756
1857
|
if (!_) return;
|
|
1757
1858
|
const w = ($) => {
|
|
1758
|
-
var q,
|
|
1759
|
-
!((q = p.current) != null && q.contains($.target)) && !((
|
|
1859
|
+
var q, N;
|
|
1860
|
+
!((q = p.current) != null && q.contains($.target)) && !((N = m.current) != null && N.contains($.target)) && g(!1);
|
|
1760
1861
|
}, L = ($) => {
|
|
1761
1862
|
$.key === "Escape" && g(!1);
|
|
1762
1863
|
};
|
|
@@ -1764,20 +1865,20 @@ const ac = ({
|
|
|
1764
1865
|
document.removeEventListener("mousedown", w), document.removeEventListener("keydown", L);
|
|
1765
1866
|
};
|
|
1766
1867
|
}, [_, g]);
|
|
1767
|
-
const v = [
|
|
1768
|
-
return /* @__PURE__ */ h(
|
|
1868
|
+
const v = [Ee.popover, Ee[n], a ?? ""].filter(Boolean).join(" ");
|
|
1869
|
+
return /* @__PURE__ */ h(Pe, { children: [
|
|
1769
1870
|
/* @__PURE__ */ e(
|
|
1770
1871
|
"span",
|
|
1771
1872
|
{
|
|
1772
1873
|
ref: p,
|
|
1773
|
-
className:
|
|
1874
|
+
className: Ee.triggerWrapper,
|
|
1774
1875
|
onClick: () => g(!_),
|
|
1775
1876
|
"aria-expanded": _,
|
|
1776
1877
|
"aria-haspopup": "true",
|
|
1777
1878
|
children: t
|
|
1778
1879
|
}
|
|
1779
1880
|
),
|
|
1780
|
-
_ && typeof document < "u" &&
|
|
1881
|
+
_ && typeof document < "u" && ze(
|
|
1781
1882
|
/* @__PURE__ */ h(
|
|
1782
1883
|
"div",
|
|
1783
1884
|
{
|
|
@@ -1786,7 +1887,7 @@ const ac = ({
|
|
|
1786
1887
|
style: { top: d.top, left: d.left },
|
|
1787
1888
|
role: "dialog",
|
|
1788
1889
|
children: [
|
|
1789
|
-
/* @__PURE__ */ e("div", { className:
|
|
1890
|
+
/* @__PURE__ */ e("div", { className: Ee.arrow, "aria-hidden": "true" }),
|
|
1790
1891
|
o
|
|
1791
1892
|
]
|
|
1792
1893
|
}
|
|
@@ -1794,15 +1895,15 @@ const ac = ({
|
|
|
1794
1895
|
document.body
|
|
1795
1896
|
)
|
|
1796
1897
|
] });
|
|
1797
|
-
},
|
|
1798
|
-
triggerWrapper:
|
|
1799
|
-
menu:
|
|
1800
|
-
item:
|
|
1801
|
-
itemDisabled:
|
|
1802
|
-
itemIcon:
|
|
1803
|
-
separator:
|
|
1898
|
+
}, Ki = "_triggerWrapper_19rgz_1", Ji = "_menu_19rgz_6", Qi = "_item_19rgz_23", Zi = "_itemDisabled_19rgz_41", el = "_itemIcon_19rgz_56", tl = "_separator_19rgz_63", pe = {
|
|
1899
|
+
triggerWrapper: Ki,
|
|
1900
|
+
menu: Ji,
|
|
1901
|
+
item: Qi,
|
|
1902
|
+
itemDisabled: Zi,
|
|
1903
|
+
itemIcon: el,
|
|
1904
|
+
separator: tl
|
|
1804
1905
|
};
|
|
1805
|
-
function
|
|
1906
|
+
function nl(t, o, n) {
|
|
1806
1907
|
const { top: r, left: s, bottom: a, right: l } = t, i = o.offsetHeight, c = o.offsetWidth, _ = 4;
|
|
1807
1908
|
switch (n) {
|
|
1808
1909
|
case "bottom-start":
|
|
@@ -1817,23 +1918,23 @@ function Ci(t, o, n) {
|
|
|
1817
1918
|
return { top: a + _ + window.scrollY, left: s + window.scrollX };
|
|
1818
1919
|
}
|
|
1819
1920
|
}
|
|
1820
|
-
const
|
|
1921
|
+
const Mc = ({
|
|
1821
1922
|
trigger: t,
|
|
1822
1923
|
items: o,
|
|
1823
1924
|
placement: n = "bottom-start",
|
|
1824
1925
|
className: r
|
|
1825
1926
|
}) => {
|
|
1826
|
-
const [s, a] =
|
|
1927
|
+
const [s, a] = D(!1), l = A(null), i = A(null), [c, _] = D({ top: 0, left: 0 }), p = $e(() => {
|
|
1827
1928
|
if (!l.current || !i.current) return;
|
|
1828
1929
|
const d = l.current.getBoundingClientRect();
|
|
1829
|
-
_(
|
|
1930
|
+
_(nl(d, i.current, n));
|
|
1830
1931
|
}, [n]);
|
|
1831
|
-
|
|
1932
|
+
he(() => {
|
|
1832
1933
|
if (s)
|
|
1833
1934
|
return p(), window.addEventListener("resize", p), window.addEventListener("scroll", p, !0), () => {
|
|
1834
1935
|
window.removeEventListener("resize", p), window.removeEventListener("scroll", p, !0);
|
|
1835
1936
|
};
|
|
1836
|
-
}, [s, p]),
|
|
1937
|
+
}, [s, p]), he(() => {
|
|
1837
1938
|
if (!s) return;
|
|
1838
1939
|
const d = (g) => {
|
|
1839
1940
|
var u, v;
|
|
@@ -1854,36 +1955,36 @@ const ic = ({
|
|
|
1854
1955
|
var f;
|
|
1855
1956
|
d.disabled || ((f = d.onClick) == null || f.call(d), a(!1));
|
|
1856
1957
|
};
|
|
1857
|
-
return /* @__PURE__ */ h(
|
|
1958
|
+
return /* @__PURE__ */ h(Pe, { children: [
|
|
1858
1959
|
/* @__PURE__ */ e(
|
|
1859
1960
|
"span",
|
|
1860
1961
|
{
|
|
1861
1962
|
ref: l,
|
|
1862
|
-
className:
|
|
1963
|
+
className: pe.triggerWrapper,
|
|
1863
1964
|
onClick: () => a((d) => !d),
|
|
1864
1965
|
"aria-haspopup": "menu",
|
|
1865
1966
|
"aria-expanded": s,
|
|
1866
1967
|
children: t
|
|
1867
1968
|
}
|
|
1868
1969
|
),
|
|
1869
|
-
s && typeof document < "u" &&
|
|
1970
|
+
s && typeof document < "u" && ze(
|
|
1870
1971
|
/* @__PURE__ */ e(
|
|
1871
1972
|
"div",
|
|
1872
1973
|
{
|
|
1873
1974
|
ref: i,
|
|
1874
|
-
className: [
|
|
1975
|
+
className: [pe.menu, r ?? ""].filter(Boolean).join(" "),
|
|
1875
1976
|
style: { top: c.top, left: c.left },
|
|
1876
1977
|
role: "menu",
|
|
1877
|
-
children: o.map((d, f) => d.separator ? /* @__PURE__ */ e("div", { className:
|
|
1978
|
+
children: o.map((d, f) => d.separator ? /* @__PURE__ */ e("div", { className: pe.separator, role: "separator" }, f) : /* @__PURE__ */ h(
|
|
1878
1979
|
"button",
|
|
1879
1980
|
{
|
|
1880
1981
|
type: "button",
|
|
1881
1982
|
role: "menuitem",
|
|
1882
|
-
className: [
|
|
1983
|
+
className: [pe.item, d.disabled ? pe.itemDisabled : ""].filter(Boolean).join(" "),
|
|
1883
1984
|
onClick: () => m(d),
|
|
1884
1985
|
disabled: d.disabled,
|
|
1885
1986
|
children: [
|
|
1886
|
-
d.icon && /* @__PURE__ */ e("span", { className:
|
|
1987
|
+
d.icon && /* @__PURE__ */ e("span", { className: pe.itemIcon, "aria-hidden": "true", children: d.icon }),
|
|
1887
1988
|
/* @__PURE__ */ e("span", { children: d.label })
|
|
1888
1989
|
]
|
|
1889
1990
|
},
|
|
@@ -1894,20 +1995,20 @@ const ic = ({
|
|
|
1894
1995
|
document.body
|
|
1895
1996
|
)
|
|
1896
1997
|
] });
|
|
1897
|
-
},
|
|
1898
|
-
wrapper:
|
|
1899
|
-
wrapperDisabled:
|
|
1900
|
-
labelRow:
|
|
1901
|
-
label:
|
|
1902
|
-
valueDisplay:
|
|
1903
|
-
trackWrapper:
|
|
1904
|
-
sm:
|
|
1905
|
-
md:
|
|
1906
|
-
lg:
|
|
1907
|
-
trackBg:
|
|
1908
|
-
trackFill:
|
|
1909
|
-
input:
|
|
1910
|
-
},
|
|
1998
|
+
}, ol = "_wrapper_13j54_1", rl = "_wrapperDisabled_13j54_8", sl = "_labelRow_13j54_13", al = "_label_13j54_13", il = "_valueDisplay_13j54_25", ll = "_trackWrapper_13j54_31", cl = "_sm_13j54_37", dl = "_md_13j54_38", _l = "_lg_13j54_39", ul = "_trackBg_13j54_41", pl = "_trackFill_13j54_51", hl = "_input_13j54_61", O = {
|
|
1999
|
+
wrapper: ol,
|
|
2000
|
+
wrapperDisabled: rl,
|
|
2001
|
+
labelRow: sl,
|
|
2002
|
+
label: al,
|
|
2003
|
+
valueDisplay: il,
|
|
2004
|
+
trackWrapper: ll,
|
|
2005
|
+
sm: cl,
|
|
2006
|
+
md: dl,
|
|
2007
|
+
lg: _l,
|
|
2008
|
+
trackBg: ul,
|
|
2009
|
+
trackFill: pl,
|
|
2010
|
+
input: hl
|
|
2011
|
+
}, Sc = ({
|
|
1911
2012
|
min: t = 0,
|
|
1912
2013
|
max: o = 100,
|
|
1913
2014
|
step: n = 1,
|
|
@@ -1921,15 +2022,15 @@ const ic = ({
|
|
|
1921
2022
|
id: p,
|
|
1922
2023
|
...m
|
|
1923
2024
|
}) => {
|
|
1924
|
-
const d =
|
|
1925
|
-
return /* @__PURE__ */ h("div", { className: [
|
|
1926
|
-
(a || l) && /* @__PURE__ */ h("div", { className:
|
|
1927
|
-
a && /* @__PURE__ */ e("label", { htmlFor: f, className:
|
|
1928
|
-
l && r !== void 0 && /* @__PURE__ */ e("span", { className:
|
|
2025
|
+
const d = qe(), f = p ?? d, g = r !== void 0 ? (r - t) / (o - t) * 100 : 0;
|
|
2026
|
+
return /* @__PURE__ */ h("div", { className: [O.wrapper, c ? O.wrapperDisabled : "", _ ?? ""].filter(Boolean).join(" "), children: [
|
|
2027
|
+
(a || l) && /* @__PURE__ */ h("div", { className: O.labelRow, children: [
|
|
2028
|
+
a && /* @__PURE__ */ e("label", { htmlFor: f, className: O.label, children: a }),
|
|
2029
|
+
l && r !== void 0 && /* @__PURE__ */ e("span", { className: O.valueDisplay, children: r })
|
|
1929
2030
|
] }),
|
|
1930
|
-
/* @__PURE__ */ h("div", { className: [
|
|
1931
|
-
/* @__PURE__ */ e("div", { className:
|
|
1932
|
-
/* @__PURE__ */ e("div", { className:
|
|
2031
|
+
/* @__PURE__ */ h("div", { className: [O.trackWrapper, O[i]].filter(Boolean).join(" "), children: [
|
|
2032
|
+
/* @__PURE__ */ e("div", { className: O.trackBg }),
|
|
2033
|
+
/* @__PURE__ */ e("div", { className: O.trackFill, style: { width: `${g}%` } }),
|
|
1933
2034
|
/* @__PURE__ */ e(
|
|
1934
2035
|
"input",
|
|
1935
2036
|
{
|
|
@@ -1941,7 +2042,7 @@ const ic = ({
|
|
|
1941
2042
|
value: r,
|
|
1942
2043
|
disabled: c,
|
|
1943
2044
|
onChange: (u) => s == null ? void 0 : s(Number(u.target.value)),
|
|
1944
|
-
className:
|
|
2045
|
+
className: O.input,
|
|
1945
2046
|
"aria-valuemin": t,
|
|
1946
2047
|
"aria-valuemax": o,
|
|
1947
2048
|
"aria-valuenow": r,
|
|
@@ -1950,21 +2051,21 @@ const ic = ({
|
|
|
1950
2051
|
)
|
|
1951
2052
|
] })
|
|
1952
2053
|
] });
|
|
1953
|
-
},
|
|
1954
|
-
root:
|
|
1955
|
-
label:
|
|
1956
|
-
required:
|
|
1957
|
-
wrapper:
|
|
1958
|
-
hasError:
|
|
1959
|
-
disabled:
|
|
1960
|
-
sm:
|
|
1961
|
-
md:
|
|
1962
|
-
lg:
|
|
1963
|
-
input:
|
|
1964
|
-
stepBtn:
|
|
1965
|
-
errorMsg:
|
|
1966
|
-
hintMsg:
|
|
1967
|
-
},
|
|
2054
|
+
}, ml = "_root_q5j4f_1", fl = "_label_q5j4f_7", bl = "_required_q5j4f_14", gl = "_wrapper_q5j4f_18", vl = "_hasError_q5j4f_33", wl = "_disabled_q5j4f_41", $l = "_sm_q5j4f_47", kl = "_md_q5j4f_48", yl = "_lg_q5j4f_49", Nl = "_input_q5j4f_51", xl = "_stepBtn_q5j4f_72", Ll = "_errorMsg_q5j4f_96", Bl = "_hintMsg_q5j4f_103", z = {
|
|
2055
|
+
root: ml,
|
|
2056
|
+
label: fl,
|
|
2057
|
+
required: bl,
|
|
2058
|
+
wrapper: gl,
|
|
2059
|
+
hasError: vl,
|
|
2060
|
+
disabled: wl,
|
|
2061
|
+
sm: $l,
|
|
2062
|
+
md: kl,
|
|
2063
|
+
lg: yl,
|
|
2064
|
+
input: Nl,
|
|
2065
|
+
stepBtn: xl,
|
|
2066
|
+
errorMsg: Ll,
|
|
2067
|
+
hintMsg: Bl
|
|
2068
|
+
}, zc = ({
|
|
1968
2069
|
value: t,
|
|
1969
2070
|
onChange: o,
|
|
1970
2071
|
min: n,
|
|
@@ -1980,30 +2081,30 @@ const ic = ({
|
|
|
1980
2081
|
className: d,
|
|
1981
2082
|
...f
|
|
1982
2083
|
}) => {
|
|
1983
|
-
const g =
|
|
1984
|
-
const
|
|
1985
|
-
n !== void 0 &&
|
|
2084
|
+
const g = qe(), u = m ?? g, v = `${u}-hint`, w = `${u}-error`, L = () => {
|
|
2085
|
+
const N = (t ?? 0) - s;
|
|
2086
|
+
n !== void 0 && N < n || o == null || o(N);
|
|
1986
2087
|
}, $ = () => {
|
|
1987
|
-
const
|
|
1988
|
-
r !== void 0 &&
|
|
2088
|
+
const N = (t ?? 0) + s;
|
|
2089
|
+
r !== void 0 && N > r || o == null || o(N);
|
|
1989
2090
|
}, q = [
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
l ?
|
|
1993
|
-
_ ?
|
|
2091
|
+
z.wrapper,
|
|
2092
|
+
z[c],
|
|
2093
|
+
l ? z.hasError : "",
|
|
2094
|
+
_ ? z.disabled : "",
|
|
1994
2095
|
d ?? ""
|
|
1995
2096
|
].filter(Boolean).join(" ");
|
|
1996
|
-
return /* @__PURE__ */ h("div", { className:
|
|
1997
|
-
a && /* @__PURE__ */ h("label", { htmlFor: u, className:
|
|
2097
|
+
return /* @__PURE__ */ h("div", { className: z.root, children: [
|
|
2098
|
+
a && /* @__PURE__ */ h("label", { htmlFor: u, className: z.label, children: [
|
|
1998
2099
|
a,
|
|
1999
|
-
p && /* @__PURE__ */ e("span", { className:
|
|
2100
|
+
p && /* @__PURE__ */ e("span", { className: z.required, "aria-hidden": "true", children: " *" })
|
|
2000
2101
|
] }),
|
|
2001
2102
|
/* @__PURE__ */ h("div", { className: q, children: [
|
|
2002
2103
|
/* @__PURE__ */ e(
|
|
2003
2104
|
"button",
|
|
2004
2105
|
{
|
|
2005
2106
|
type: "button",
|
|
2006
|
-
className:
|
|
2107
|
+
className: z.stepBtn,
|
|
2007
2108
|
onClick: L,
|
|
2008
2109
|
disabled: _ || n !== void 0 && (t ?? 0) <= n,
|
|
2009
2110
|
"aria-label": "Decrease value",
|
|
@@ -2016,7 +2117,7 @@ const ic = ({
|
|
|
2016
2117
|
{
|
|
2017
2118
|
id: u,
|
|
2018
2119
|
type: "number",
|
|
2019
|
-
className:
|
|
2120
|
+
className: z.input,
|
|
2020
2121
|
value: t,
|
|
2021
2122
|
min: n,
|
|
2022
2123
|
max: r,
|
|
@@ -2025,7 +2126,7 @@ const ic = ({
|
|
|
2025
2126
|
required: p,
|
|
2026
2127
|
"aria-invalid": !!l,
|
|
2027
2128
|
"aria-describedby": l ? w : i ? v : void 0,
|
|
2028
|
-
onChange: (
|
|
2129
|
+
onChange: (N) => o == null ? void 0 : o(N.target.valueAsNumber),
|
|
2029
2130
|
...f
|
|
2030
2131
|
}
|
|
2031
2132
|
),
|
|
@@ -2033,7 +2134,7 @@ const ic = ({
|
|
|
2033
2134
|
"button",
|
|
2034
2135
|
{
|
|
2035
2136
|
type: "button",
|
|
2036
|
-
className:
|
|
2137
|
+
className: z.stepBtn,
|
|
2037
2138
|
onClick: $,
|
|
2038
2139
|
disabled: _ || r !== void 0 && (t ?? 0) >= r,
|
|
2039
2140
|
"aria-label": "Increase value",
|
|
@@ -2042,32 +2143,32 @@ const ic = ({
|
|
|
2042
2143
|
}
|
|
2043
2144
|
)
|
|
2044
2145
|
] }),
|
|
2045
|
-
l && /* @__PURE__ */ e("p", { id: w, className:
|
|
2046
|
-
!l && i && /* @__PURE__ */ e("p", { id: v, className:
|
|
2146
|
+
l && /* @__PURE__ */ e("p", { id: w, className: z.errorMsg, role: "alert", children: l }),
|
|
2147
|
+
!l && i && /* @__PURE__ */ e("p", { id: v, className: z.hintMsg, children: i })
|
|
2047
2148
|
] });
|
|
2048
|
-
},
|
|
2049
|
-
root:
|
|
2050
|
-
label:
|
|
2051
|
-
zone:
|
|
2052
|
-
zoneDisabled:
|
|
2053
|
-
dragging:
|
|
2054
|
-
zoneError:
|
|
2055
|
-
hiddenInput:
|
|
2056
|
-
uploadIcon:
|
|
2057
|
-
zoneText:
|
|
2058
|
-
zoneLink:
|
|
2059
|
-
zoneHint:
|
|
2060
|
-
errorMsg:
|
|
2061
|
-
fileList:
|
|
2062
|
-
fileItem:
|
|
2063
|
-
fileName:
|
|
2064
|
-
fileSize:
|
|
2065
|
-
removeBtn:
|
|
2066
|
-
},
|
|
2067
|
-
function
|
|
2149
|
+
}, jl = "_root_10bwd_1", Il = "_label_10bwd_7", Cl = "_zone_10bwd_14", El = "_zoneDisabled_10bwd_29", ql = "_dragging_10bwd_34", Wl = "_zoneError_10bwd_39", Tl = "_hiddenInput_10bwd_48", Rl = "_uploadIcon_10bwd_52", Ml = "_zoneText_10bwd_56", Sl = "_zoneLink_10bwd_61", zl = "_zoneHint_10bwd_68", Dl = "_errorMsg_10bwd_73", Fl = "_fileList_10bwd_79", Al = "_fileItem_10bwd_88", Hl = "_fileName_10bwd_98", Ol = "_fileSize_10bwd_108", Ul = "_removeBtn_10bwd_114", E = {
|
|
2150
|
+
root: jl,
|
|
2151
|
+
label: Il,
|
|
2152
|
+
zone: Cl,
|
|
2153
|
+
zoneDisabled: El,
|
|
2154
|
+
dragging: ql,
|
|
2155
|
+
zoneError: Wl,
|
|
2156
|
+
hiddenInput: Tl,
|
|
2157
|
+
uploadIcon: Rl,
|
|
2158
|
+
zoneText: Ml,
|
|
2159
|
+
zoneLink: Sl,
|
|
2160
|
+
zoneHint: zl,
|
|
2161
|
+
errorMsg: Dl,
|
|
2162
|
+
fileList: Fl,
|
|
2163
|
+
fileItem: Al,
|
|
2164
|
+
fileName: Hl,
|
|
2165
|
+
fileSize: Ol,
|
|
2166
|
+
removeBtn: Ul
|
|
2167
|
+
}, Pl = () => /* @__PURE__ */ e("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" }) });
|
|
2168
|
+
function Ue(t) {
|
|
2068
2169
|
return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
|
|
2069
2170
|
}
|
|
2070
|
-
const
|
|
2171
|
+
const Dc = ({
|
|
2071
2172
|
accept: t,
|
|
2072
2173
|
multiple: o = !1,
|
|
2073
2174
|
maxSize: n,
|
|
@@ -2079,21 +2180,21 @@ const dc = ({
|
|
|
2079
2180
|
className: c,
|
|
2080
2181
|
id: _
|
|
2081
2182
|
}) => {
|
|
2082
|
-
const p =
|
|
2183
|
+
const p = qe(), m = _ ?? p, d = A(null), [f, g] = D(!1), [u, v] = D([]), [w, L] = D(null), $ = l ?? w, q = (k) => {
|
|
2083
2184
|
if (!k) return;
|
|
2084
|
-
const
|
|
2085
|
-
if (n &&
|
|
2086
|
-
L(`File exceeds maximum size of ${
|
|
2185
|
+
const y = Array.from(k);
|
|
2186
|
+
if (n && y.filter((ae) => ae.size > n).length > 0) {
|
|
2187
|
+
L(`File exceeds maximum size of ${Ue(n)}.`);
|
|
2087
2188
|
return;
|
|
2088
2189
|
}
|
|
2089
2190
|
L(null);
|
|
2090
|
-
const
|
|
2091
|
-
v(
|
|
2092
|
-
},
|
|
2191
|
+
const V = o ? y : y.slice(0, 1);
|
|
2192
|
+
v(V), r == null || r(V);
|
|
2193
|
+
}, N = (k) => {
|
|
2093
2194
|
k.preventDefault(), g(!1), i || q(k.dataTransfer.files);
|
|
2094
|
-
},
|
|
2095
|
-
const
|
|
2096
|
-
v(
|
|
2195
|
+
}, P = (k) => {
|
|
2196
|
+
const y = u.filter((V, J) => J !== k);
|
|
2197
|
+
v(y), r == null || r(y);
|
|
2097
2198
|
}, K = [
|
|
2098
2199
|
E.zone,
|
|
2099
2200
|
f ? E.dragging : "",
|
|
@@ -2111,7 +2212,7 @@ const dc = ({
|
|
|
2111
2212
|
k.preventDefault(), i || g(!0);
|
|
2112
2213
|
},
|
|
2113
2214
|
onDragLeave: () => g(!1),
|
|
2114
|
-
onDrop:
|
|
2215
|
+
onDrop: N,
|
|
2115
2216
|
children: [
|
|
2116
2217
|
/* @__PURE__ */ e(
|
|
2117
2218
|
"input",
|
|
@@ -2126,7 +2227,7 @@ const dc = ({
|
|
|
2126
2227
|
onChange: (k) => q(k.target.files)
|
|
2127
2228
|
}
|
|
2128
2229
|
),
|
|
2129
|
-
/* @__PURE__ */ e("span", { className: E.uploadIcon, children: /* @__PURE__ */ e(
|
|
2230
|
+
/* @__PURE__ */ e("span", { className: E.uploadIcon, children: /* @__PURE__ */ e(Pl, {}) }),
|
|
2130
2231
|
/* @__PURE__ */ h("span", { className: E.zoneText, children: [
|
|
2131
2232
|
/* @__PURE__ */ e("span", { className: E.zoneLink, children: "Choose files" }),
|
|
2132
2233
|
" or drag and drop"
|
|
@@ -2136,39 +2237,39 @@ const dc = ({
|
|
|
2136
2237
|
}
|
|
2137
2238
|
),
|
|
2138
2239
|
$ && /* @__PURE__ */ e("p", { className: E.errorMsg, role: "alert", children: $ }),
|
|
2139
|
-
u.length > 0 && /* @__PURE__ */ e("ul", { className: E.fileList, children: u.map((k,
|
|
2240
|
+
u.length > 0 && /* @__PURE__ */ e("ul", { className: E.fileList, children: u.map((k, y) => /* @__PURE__ */ h("li", { className: E.fileItem, children: [
|
|
2140
2241
|
/* @__PURE__ */ e("span", { className: E.fileName, children: k.name }),
|
|
2141
|
-
/* @__PURE__ */ e("span", { className: E.fileSize, children:
|
|
2242
|
+
/* @__PURE__ */ e("span", { className: E.fileSize, children: Ue(k.size) }),
|
|
2142
2243
|
/* @__PURE__ */ e(
|
|
2143
2244
|
"button",
|
|
2144
2245
|
{
|
|
2145
2246
|
type: "button",
|
|
2146
2247
|
className: E.removeBtn,
|
|
2147
|
-
onClick: () =>
|
|
2248
|
+
onClick: () => P(y),
|
|
2148
2249
|
"aria-label": `Remove ${k.name}`,
|
|
2149
2250
|
children: /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2.5, d: "M6 18L18 6M6 6l12 12" }) })
|
|
2150
2251
|
}
|
|
2151
2252
|
)
|
|
2152
|
-
] },
|
|
2253
|
+
] }, y)) })
|
|
2153
2254
|
] });
|
|
2154
|
-
},
|
|
2155
|
-
wrapper:
|
|
2156
|
-
table:
|
|
2157
|
-
sm:
|
|
2158
|
-
th:
|
|
2159
|
-
td:
|
|
2160
|
-
md:
|
|
2161
|
-
lg:
|
|
2162
|
-
thContent:
|
|
2163
|
-
sortable:
|
|
2164
|
-
sortActive:
|
|
2165
|
-
sortIcon:
|
|
2166
|
-
tr:
|
|
2167
|
-
striped:
|
|
2168
|
-
bordered:
|
|
2169
|
-
empty:
|
|
2170
|
-
},
|
|
2171
|
-
function
|
|
2255
|
+
}, Vl = "_wrapper_i5kin_1", Xl = "_table_i5kin_8", Yl = "_sm_i5kin_15", Gl = "_th_i5kin_15", Kl = "_td_i5kin_16", Jl = "_md_i5kin_21", Ql = "_lg_i5kin_27", Zl = "_thContent_i5kin_43", ec = "_sortable_i5kin_49", tc = "_sortActive_i5kin_58", nc = "_sortIcon_i5kin_62", oc = "_tr_i5kin_72", rc = "_striped_i5kin_91", sc = "_bordered_i5kin_100", ac = "_empty_i5kin_105", S = {
|
|
2256
|
+
wrapper: Vl,
|
|
2257
|
+
table: Xl,
|
|
2258
|
+
sm: Yl,
|
|
2259
|
+
th: Gl,
|
|
2260
|
+
td: Kl,
|
|
2261
|
+
md: Jl,
|
|
2262
|
+
lg: Ql,
|
|
2263
|
+
thContent: Zl,
|
|
2264
|
+
sortable: ec,
|
|
2265
|
+
sortActive: tc,
|
|
2266
|
+
sortIcon: nc,
|
|
2267
|
+
tr: oc,
|
|
2268
|
+
striped: rc,
|
|
2269
|
+
bordered: sc,
|
|
2270
|
+
empty: ac
|
|
2271
|
+
}, ic = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 15l7-7 7 7" }) }), lc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M19 9l-7 7-7-7" }) }), cc = () => /* @__PURE__ */ e("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M8 9l4-4 4 4M16 15l-4 4-4-4" }) });
|
|
2272
|
+
function Fc({
|
|
2172
2273
|
columns: t,
|
|
2173
2274
|
data: o,
|
|
2174
2275
|
sortKey: n,
|
|
@@ -2185,22 +2286,22 @@ function _c({
|
|
|
2185
2286
|
const f = n === d.key && r === "asc" ? "desc" : "asc";
|
|
2186
2287
|
s(d.key, f);
|
|
2187
2288
|
}, m = [
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
a ?
|
|
2191
|
-
l ?
|
|
2289
|
+
S.table,
|
|
2290
|
+
S[i],
|
|
2291
|
+
a ? S.striped : "",
|
|
2292
|
+
l ? S.bordered : ""
|
|
2192
2293
|
].filter(Boolean).join(" ");
|
|
2193
2294
|
return /* @__PURE__ */ e(
|
|
2194
2295
|
"div",
|
|
2195
2296
|
{
|
|
2196
|
-
className: [
|
|
2297
|
+
className: [S.wrapper, c ?? ""].filter(Boolean).join(" "),
|
|
2197
2298
|
..._,
|
|
2198
2299
|
children: /* @__PURE__ */ h("table", { className: m, children: [
|
|
2199
2300
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: t.map((d) => {
|
|
2200
2301
|
const f = n === d.key, g = [
|
|
2201
|
-
|
|
2202
|
-
d.sortable ?
|
|
2203
|
-
f ?
|
|
2302
|
+
S.th,
|
|
2303
|
+
d.sortable ? S.sortable : "",
|
|
2304
|
+
f ? S.sortActive : ""
|
|
2204
2305
|
].filter(Boolean).join(" ");
|
|
2205
2306
|
return /* @__PURE__ */ e(
|
|
2206
2307
|
"th",
|
|
@@ -2208,54 +2309,57 @@ function _c({
|
|
|
2208
2309
|
className: g,
|
|
2209
2310
|
onClick: () => p(d),
|
|
2210
2311
|
"aria-sort": f ? r === "asc" ? "ascending" : "descending" : d.sortable ? "none" : void 0,
|
|
2211
|
-
children: /* @__PURE__ */ h("span", { className:
|
|
2312
|
+
children: /* @__PURE__ */ h("span", { className: S.thContent, children: [
|
|
2212
2313
|
d.header,
|
|
2213
|
-
d.sortable && /* @__PURE__ */ e("span", { className:
|
|
2314
|
+
d.sortable && /* @__PURE__ */ e("span", { className: S.sortIcon, children: f ? r === "asc" ? /* @__PURE__ */ e(ic, {}) : /* @__PURE__ */ e(lc, {}) : /* @__PURE__ */ e(cc, {}) })
|
|
2214
2315
|
] })
|
|
2215
2316
|
},
|
|
2216
2317
|
d.key
|
|
2217
2318
|
);
|
|
2218
2319
|
}) }) }),
|
|
2219
|
-
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className:
|
|
2320
|
+
/* @__PURE__ */ e("tbody", { children: o.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length, className: S.empty, children: "No data available." }) }) : o.map((d, f) => /* @__PURE__ */ e("tr", { className: S.tr, children: t.map((g) => {
|
|
2220
2321
|
const u = d[g.key], v = g.render ? g.render(u, d, f) : u;
|
|
2221
|
-
return /* @__PURE__ */ e("td", { className:
|
|
2322
|
+
return /* @__PURE__ */ e("td", { className: S.td, children: v }, g.key);
|
|
2222
2323
|
}) }, f)) })
|
|
2223
2324
|
] })
|
|
2224
2325
|
}
|
|
2225
2326
|
);
|
|
2226
2327
|
}
|
|
2227
2328
|
export {
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2329
|
+
$c as Accordion,
|
|
2330
|
+
kc as Alert,
|
|
2331
|
+
mc as AnimatedBackground,
|
|
2332
|
+
Ic as Avatar,
|
|
2333
|
+
hc as Badge,
|
|
2334
|
+
qc as Breadcrumb,
|
|
2335
|
+
gt as Button,
|
|
2336
|
+
We as Card,
|
|
2337
|
+
rr as Checkbox,
|
|
2338
|
+
Te as Dialog,
|
|
2339
|
+
yc as Divider,
|
|
2340
|
+
Mc as Dropdown,
|
|
2341
|
+
Ec as EmptyState,
|
|
2342
|
+
Dc as FileUpload,
|
|
2343
|
+
fc as GradientOrbs,
|
|
2344
|
+
bc as GridGlow,
|
|
2345
|
+
Ot as Input,
|
|
2346
|
+
zc as NumberInput,
|
|
2347
|
+
Wc as Pagination,
|
|
2348
|
+
Rc as Popover,
|
|
2349
|
+
Lc as Progress,
|
|
2350
|
+
gc as RadioGroup,
|
|
2351
|
+
Xo as Select,
|
|
2352
|
+
xc as Skeleton,
|
|
2353
|
+
Sc as Slider,
|
|
2354
|
+
Nc as Spinner,
|
|
2355
|
+
Tc as Stepper,
|
|
2356
|
+
qr as Switch,
|
|
2357
|
+
Fc as Table,
|
|
2358
|
+
wc as Tabs,
|
|
2359
|
+
Cc as Tag,
|
|
2360
|
+
wo as Textarea,
|
|
2361
|
+
pc as Title,
|
|
2362
|
+
Bc as ToastProvider,
|
|
2363
|
+
vc as Tooltip,
|
|
2364
|
+
jc as useToast
|
|
2261
2365
|
};
|