@dendelion/func-ui 0.4.0 → 0.5.0
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/CHANGELOG.md +11 -0
- package/README.md +26 -4
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/list-item/list-item.d.ts +1 -0
- package/dist/components/list-item/list-item.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts +9 -1
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.d.ts.map +1 -1
- package/dist/components/tabs/tabs.d.ts +4 -1
- package/dist/components/tabs/tabs.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1504 -1446
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
- package/src/globals.scss +5 -18
- package/src/styles/_lamp.scss +14 -5
- package/src/styles/_tokens.scss +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { twMerge as
|
|
4
|
-
import { jsx as e, jsxs as
|
|
5
|
-
import { useId as R, useState as
|
|
6
|
-
import { createPortal as
|
|
7
|
-
function
|
|
8
|
-
return Je(
|
|
2
|
+
import { clsx as Je } from "clsx";
|
|
3
|
+
import { twMerge as Qe } from "tailwind-merge";
|
|
4
|
+
import { jsx as e, jsxs as b, Fragment as P } from "react/jsx-runtime";
|
|
5
|
+
import { useId as R, useState as Y, useMemo as Re, forwardRef as z, useRef as E, useCallback as Pe, useEffect as le, useLayoutEffect as et, Children as tt, cloneElement as He, createContext as ot, useContext as nt, isValidElement as lt } from "react";
|
|
6
|
+
import { createPortal as ze } from "react-dom";
|
|
7
|
+
function _(...o) {
|
|
8
|
+
return Qe(Je(o));
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
grain:
|
|
10
|
+
const st = "grain-module__grain___sp9ca", at = {
|
|
11
|
+
grain: st
|
|
12
12
|
};
|
|
13
|
-
function
|
|
14
|
-
const
|
|
13
|
+
function ct({ opacity: o, className: t, style: n, ...l }) {
|
|
14
|
+
const s = o != null ? { "--fui-grain-opacity": String(o) } : void 0;
|
|
15
15
|
return /* @__PURE__ */ e(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
18
|
"aria-hidden": !0,
|
|
19
|
-
className:
|
|
20
|
-
style: { ...
|
|
21
|
-
...
|
|
19
|
+
className: _(at.grain, t),
|
|
20
|
+
style: { ...s, ...n },
|
|
21
|
+
...l
|
|
22
22
|
}
|
|
23
23
|
);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
glow:
|
|
27
|
-
blob:
|
|
28
|
-
wobble:
|
|
29
|
-
botBlob:
|
|
25
|
+
const rt = "glow-module__glow___kEcKf", _t = "glow-module__blob___b1llZ", dt = "glow-module__wobble___kfp96", it = "glow-module__botBlob___XG8Xf", Ne = {
|
|
26
|
+
glow: rt,
|
|
27
|
+
blob: _t,
|
|
28
|
+
wobble: dt,
|
|
29
|
+
botBlob: it
|
|
30
30
|
};
|
|
31
|
-
function
|
|
31
|
+
function ut(o) {
|
|
32
32
|
let t = o | 0;
|
|
33
33
|
return () => {
|
|
34
34
|
t = t + 1831565813 | 0;
|
|
@@ -36,94 +36,94 @@ function it(o) {
|
|
|
36
36
|
return n = n + Math.imul(n ^ n >>> 7, 61 | n) ^ n, ((n ^ n >>> 14) >>> 0) / 4294967296;
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function Ge(o, t, n,
|
|
40
|
-
const
|
|
41
|
-
for (let
|
|
42
|
-
const
|
|
43
|
-
m.push([t + Math.cos(
|
|
39
|
+
function Ge(o, t, n, l) {
|
|
40
|
+
const s = 6 + Math.floor(o() * 4), a = 0.12 + o() * 0.28, d = 0.85 + o() * 0.4, r = 0.85 + o() * 0.4, u = o() * Math.PI * 2, m = [];
|
|
41
|
+
for (let p = 0; p < s; p++) {
|
|
42
|
+
const i = u + p / s * Math.PI * 2, v = l * (1 - a + o() * a * 2);
|
|
43
|
+
m.push([t + Math.cos(i) * v * d, n + Math.sin(i) * v * r]);
|
|
44
44
|
}
|
|
45
|
-
let
|
|
46
|
-
for (let
|
|
47
|
-
const
|
|
48
|
-
|
|
45
|
+
let c = `M${m[0][0].toFixed(1)},${m[0][1].toFixed(1)}`;
|
|
46
|
+
for (let p = 0; p < s; p++) {
|
|
47
|
+
const i = m[(p - 1 + s) % s], v = m[p], h = m[(p + 1) % s], g = m[(p + 2) % s], y = v[0] + (h[0] - i[0]) / 6, N = v[1] + (h[1] - i[1]) / 6, $ = h[0] - (g[0] - v[0]) / 6, M = h[1] - (g[1] - v[1]) / 6;
|
|
48
|
+
c += `C${y.toFixed(1)},${N.toFixed(1)} ${$.toFixed(1)},${M.toFixed(1)} ${h[0].toFixed(1)},${h[1].toFixed(1)}`;
|
|
49
49
|
}
|
|
50
|
-
return `${
|
|
50
|
+
return `${c}Z`;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const t =
|
|
54
|
-
for (let
|
|
55
|
-
const r = 13 + t() * 8,
|
|
56
|
-
|
|
57
|
-
d: Ge(t,
|
|
52
|
+
function mt(o) {
|
|
53
|
+
const t = ut(o), n = 4 + Math.floor(t() * 2), l = [];
|
|
54
|
+
for (let d = 0; d < n; d++) {
|
|
55
|
+
const r = 13 + t() * 8, u = 270 + t() * 50, m = 350 + t() * 24, c = 24 + t() * 28, p = 6 + t() * 8, i = 196 + t() * 42;
|
|
56
|
+
l.push({
|
|
57
|
+
d: Ge(t, u, m, r),
|
|
58
58
|
opacity: 0.6 + t() * 0.4,
|
|
59
|
-
dur:
|
|
59
|
+
dur: c,
|
|
60
60
|
// Stratified phases: blob i starts i/count of the way through its
|
|
61
61
|
// cycle (± jitter), so the wax stays spread through the lamp instead
|
|
62
62
|
// of randomly clumping into one goo column mid-flight.
|
|
63
|
-
delay: -((
|
|
64
|
-
rise: m -
|
|
65
|
-
wobbleDur:
|
|
66
|
-
wobbleDelay: -(t() *
|
|
63
|
+
delay: -((d + t() * 0.6) / n * c),
|
|
64
|
+
rise: m - i,
|
|
65
|
+
wobbleDur: p,
|
|
66
|
+
wobbleDelay: -(t() * p),
|
|
67
67
|
sway: 3 + t() * 5
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
for (let
|
|
72
|
-
const r = 12 + t() * 6,
|
|
70
|
+
const s = 3 + Math.floor(t() * 2), a = [];
|
|
71
|
+
for (let d = 0; d < s; d++) {
|
|
72
|
+
const r = 12 + t() * 6, u = 268 + t() * 54, m = 352 + t() * 24, c = 36 + t() * 30, p = 9 + t() * 8, i = 205 + t() * 45;
|
|
73
73
|
a.push({
|
|
74
|
-
d: Ge(t,
|
|
74
|
+
d: Ge(t, u, m, r),
|
|
75
75
|
// Near-full alpha INTO the filter — the goo threshold erases dim input.
|
|
76
76
|
// The layer is faded as a whole, after filtering, in the JSX.
|
|
77
77
|
opacity: 0.85 + t() * 0.15,
|
|
78
|
-
dur:
|
|
79
|
-
delay: -((
|
|
80
|
-
rise: m -
|
|
81
|
-
wobbleDur:
|
|
82
|
-
wobbleDelay: -(t() *
|
|
78
|
+
dur: c,
|
|
79
|
+
delay: -((d + t() * 0.6) / s * c),
|
|
80
|
+
rise: m - i,
|
|
81
|
+
wobbleDur: p,
|
|
82
|
+
wobbleDelay: -(t() * p),
|
|
83
83
|
sway: 2 + t() * 3
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
|
-
return { blobs:
|
|
86
|
+
return { blobs: l, depthBlobs: a };
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const n = R().replace(/:/g, ""),
|
|
90
|
-
() =>
|
|
88
|
+
function pt({ className: o, seed: t }) {
|
|
89
|
+
const n = R().replace(/:/g, ""), l = `goo-${n}`, s = `goo-soft-${n}`, a = `clip-${n}`, d = `grad-${n}`, [r] = Y(() => Math.floor(Math.random() * 2 ** 31)), { blobs: u, depthBlobs: m } = Re(
|
|
90
|
+
() => mt(t ?? r),
|
|
91
91
|
[t, r]
|
|
92
|
-
),
|
|
92
|
+
), c = (p) => p.map((i) => /* @__PURE__ */ e(
|
|
93
93
|
"g",
|
|
94
94
|
{
|
|
95
|
-
className:
|
|
95
|
+
className: Ne.blob,
|
|
96
96
|
style: {
|
|
97
|
-
opacity:
|
|
98
|
-
"--lava-dur": `${
|
|
99
|
-
"--lava-delay": `${
|
|
100
|
-
"--lava-rise": `${
|
|
97
|
+
opacity: i.opacity,
|
|
98
|
+
"--lava-dur": `${i.dur.toFixed(1)}s`,
|
|
99
|
+
"--lava-delay": `${i.delay.toFixed(1)}s`,
|
|
100
|
+
"--lava-rise": `${i.rise.toFixed(0)}px`
|
|
101
101
|
},
|
|
102
102
|
children: /* @__PURE__ */ e(
|
|
103
103
|
"path",
|
|
104
104
|
{
|
|
105
|
-
className:
|
|
106
|
-
d:
|
|
105
|
+
className: Ne.wobble,
|
|
106
|
+
d: i.d,
|
|
107
107
|
style: {
|
|
108
|
-
"--lava-wdur": `${
|
|
109
|
-
"--lava-wdelay": `${
|
|
110
|
-
"--lava-sway": `${
|
|
108
|
+
"--lava-wdur": `${i.wobbleDur.toFixed(1)}s`,
|
|
109
|
+
"--lava-wdelay": `${i.wobbleDelay.toFixed(1)}s`,
|
|
110
|
+
"--lava-sway": `${i.sway.toFixed(1)}px`
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
i.d
|
|
116
116
|
));
|
|
117
|
-
return /* @__PURE__ */
|
|
117
|
+
return /* @__PURE__ */ b(
|
|
118
118
|
"svg",
|
|
119
119
|
{
|
|
120
|
-
className:
|
|
120
|
+
className: _(Ne.glow, o),
|
|
121
121
|
viewBox: "0 0 600 600",
|
|
122
122
|
"aria-hidden": !0,
|
|
123
123
|
role: "presentation",
|
|
124
124
|
children: [
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ b("defs", { children: [
|
|
126
|
+
/* @__PURE__ */ b("filter", { id: l, colorInterpolationFilters: "sRGB", children: [
|
|
127
127
|
/* @__PURE__ */ e("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "8", result: "blur" }),
|
|
128
128
|
/* @__PURE__ */ e(
|
|
129
129
|
"feColorMatrix",
|
|
@@ -136,7 +136,7 @@ function mt({ className: o, seed: t }) {
|
|
|
136
136
|
),
|
|
137
137
|
/* @__PURE__ */ e("feBlend", {})
|
|
138
138
|
] }),
|
|
139
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ b("filter", { id: s, colorInterpolationFilters: "sRGB", children: [
|
|
140
140
|
/* @__PURE__ */ e("feGaussianBlur", { in: "SourceGraphic", stdDeviation: "10", result: "blur" }),
|
|
141
141
|
/* @__PURE__ */ e(
|
|
142
142
|
"feColorMatrix",
|
|
@@ -148,7 +148,7 @@ function mt({ className: o, seed: t }) {
|
|
|
148
148
|
)
|
|
149
149
|
] }),
|
|
150
150
|
/* @__PURE__ */ e("clipPath", { id: a, children: /* @__PURE__ */ e("path", { d: "M262,174h60l33.5,182.3c0,0,2.7,12.8,2.5,22.8c-7.5,0-131,0-131,0s-0.7-9.3,0-18C227.6,352.9,262,174,262,174z" }) }),
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ b("radialGradient", { id: d, cx: "300", cy: "300", r: "400", gradientUnits: "userSpaceOnUse", children: [
|
|
152
152
|
/* @__PURE__ */ e("stop", { offset: "0.0714", stopColor: "currentColor", stopOpacity: "0.19" }),
|
|
153
153
|
/* @__PURE__ */ e("stop", { offset: "0.3107", stopColor: "currentColor", stopOpacity: "0.13" }),
|
|
154
154
|
/* @__PURE__ */ e("stop", { offset: "0.553", stopColor: "currentColor", stopOpacity: "0.06" }),
|
|
@@ -156,14 +156,14 @@ function mt({ className: o, seed: t }) {
|
|
|
156
156
|
/* @__PURE__ */ e("stop", { offset: "0.9847", stopColor: "currentColor", stopOpacity: "0" })
|
|
157
157
|
] })
|
|
158
158
|
] }),
|
|
159
|
-
/* @__PURE__ */ e("rect", { fill: `url(#${
|
|
160
|
-
/* @__PURE__ */ e("g", { filter: `url(#${
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
|
|
159
|
+
/* @__PURE__ */ e("rect", { fill: `url(#${d})`, width: "600", height: "600" }),
|
|
160
|
+
/* @__PURE__ */ e("g", { filter: `url(#${s})`, clipPath: `url(#${a})`, fill: "currentColor", opacity: 0.2, children: c(m) }),
|
|
161
|
+
/* @__PURE__ */ b("g", { filter: `url(#${l})`, clipPath: `url(#${a})`, fill: "currentColor", children: [
|
|
162
|
+
c(u),
|
|
163
163
|
/* @__PURE__ */ e(
|
|
164
164
|
"path",
|
|
165
165
|
{
|
|
166
|
-
className:
|
|
166
|
+
className: Ne.botBlob,
|
|
167
167
|
d: "M354,381.2c6.8,3.4,5.4,7.4-5.6,10.4c-10.7,3.1-31.1,5.1-54.4,8.4c-23.3,3.3-43.7,0.8-54.4-2.4c-11-3.4-12.4-7.6-5.6-13.8c6.8-7,18.9-14.6,29.6-17.4c11-3.3,20.6-1.8,30.4-1.4c9.8,0.4,19.4,5.1,30.4,8.3C335.1,376.8,347.2,378.6,354,381.2z"
|
|
168
168
|
}
|
|
169
169
|
)
|
|
@@ -172,327 +172,328 @@ function mt({ className: o, seed: t }) {
|
|
|
172
172
|
}
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
backdrop:
|
|
177
|
-
glowLayer:
|
|
178
|
-
grainLayer:
|
|
179
|
-
content:
|
|
175
|
+
const ht = "backdrop-module__backdrop___CoxJ-", bt = "backdrop-module__glowLayer___esKR8", ft = "backdrop-module__grainLayer___44u-y", vt = "backdrop-module__content___W2hOD", xe = {
|
|
176
|
+
backdrop: ht,
|
|
177
|
+
glowLayer: bt,
|
|
178
|
+
grainLayer: ft,
|
|
179
|
+
content: vt
|
|
180
180
|
};
|
|
181
|
-
function
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
t && /* @__PURE__ */ e("div", { className:
|
|
184
|
-
o && /* @__PURE__ */ e(
|
|
185
|
-
/* @__PURE__ */ e("div", { className:
|
|
181
|
+
function h_({ grain: o = !0, glow: t = !0, className: n, children: l }) {
|
|
182
|
+
return /* @__PURE__ */ b("div", { className: _(xe.backdrop, n), children: [
|
|
183
|
+
t && /* @__PURE__ */ e("div", { className: xe.glowLayer, children: /* @__PURE__ */ e(pt, {}) }),
|
|
184
|
+
o && /* @__PURE__ */ e(ct, { className: xe.grainLayer }),
|
|
185
|
+
/* @__PURE__ */ e("div", { className: xe.content, children: l })
|
|
186
186
|
] });
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
glass:
|
|
190
|
-
},
|
|
188
|
+
const gt = "glass-module__glass___Z6fy2", yt = {
|
|
189
|
+
glass: gt
|
|
190
|
+
}, b_ = z(function({ blur: t, className: n, style: l, children: s, ...a }, d) {
|
|
191
191
|
const r = t === 0 ? { "--fui-glass-backdrop": "none" } : t != null ? { "--fui-glass-blur": `${t}px` } : void 0;
|
|
192
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
193
|
-
}),
|
|
194
|
-
button:
|
|
195
|
-
active:
|
|
196
|
-
primary:
|
|
197
|
-
secondary:
|
|
198
|
-
ghost:
|
|
199
|
-
danger:
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
192
|
+
return /* @__PURE__ */ e("div", { ref: d, className: _(yt.glass, n), style: { ...r, ...l }, ...a, children: s });
|
|
193
|
+
}), $t = "button-module__button___Z331g", wt = "button-module__active___weXhI", kt = "button-module__primary___ppbyq", Nt = "button-module__secondary___esy5L", xt = "button-module__ghost___NisA0", Mt = "button-module__danger___Wnvuq", Dt = "button-module__lit___gDeak", It = "button-module__md___REpcP", Bt = "button-module__sm___QYj0l", Lt = "button-module__fullWidth___H0P0F", St = "button-module__iconSlot___BGOaK", ce = {
|
|
194
|
+
button: $t,
|
|
195
|
+
active: wt,
|
|
196
|
+
primary: kt,
|
|
197
|
+
secondary: Nt,
|
|
198
|
+
ghost: xt,
|
|
199
|
+
danger: Mt,
|
|
200
|
+
lit: Dt,
|
|
201
|
+
md: It,
|
|
202
|
+
sm: Bt,
|
|
203
|
+
fullWidth: Lt,
|
|
204
|
+
iconSlot: St
|
|
205
|
+
}, f_ = z(function({
|
|
205
206
|
variant: t = "primary",
|
|
206
207
|
size: n = "md",
|
|
207
|
-
fullWidth:
|
|
208
|
-
icon:
|
|
208
|
+
fullWidth: l = !1,
|
|
209
|
+
icon: s,
|
|
209
210
|
iconRight: a,
|
|
210
|
-
isActive:
|
|
211
|
+
isActive: d = !1,
|
|
211
212
|
className: r,
|
|
212
|
-
children:
|
|
213
|
+
children: u,
|
|
213
214
|
...m
|
|
214
|
-
},
|
|
215
|
-
return /* @__PURE__ */
|
|
215
|
+
}, c) {
|
|
216
|
+
return /* @__PURE__ */ b(
|
|
216
217
|
"button",
|
|
217
218
|
{
|
|
218
|
-
ref:
|
|
219
|
+
ref: c,
|
|
219
220
|
type: "button",
|
|
220
|
-
"aria-pressed":
|
|
221
|
-
className:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
221
|
+
"aria-pressed": d || void 0,
|
|
222
|
+
className: _(
|
|
223
|
+
ce.button,
|
|
224
|
+
ce[t],
|
|
225
|
+
ce[n],
|
|
226
|
+
l && ce.fullWidth,
|
|
227
|
+
d && ce.active,
|
|
227
228
|
r
|
|
228
229
|
),
|
|
229
230
|
...m,
|
|
230
231
|
children: [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
a && /* @__PURE__ */ e("span", { className:
|
|
232
|
+
s && /* @__PURE__ */ e("span", { className: ce.iconSlot, children: s }),
|
|
233
|
+
u,
|
|
234
|
+
a && /* @__PURE__ */ e("span", { className: ce.iconSlot, children: a })
|
|
234
235
|
]
|
|
235
236
|
}
|
|
236
237
|
);
|
|
237
|
-
}),
|
|
238
|
-
iconButton:
|
|
238
|
+
}), Ct = "icon-button-module__iconButton___avg6i", Et = "icon-button-module__active___XaJ4h", zt = "icon-button-module__ghost___Wbxog", Tt = "icon-button-module__danger___p0Xz5", Ft = "icon-button-module__sm___4l7PX", Kt = "icon-button-module__md___48iuw", Me = {
|
|
239
|
+
iconButton: Ct,
|
|
239
240
|
default: "icon-button-module__default___9frNR",
|
|
240
|
-
active:
|
|
241
|
-
ghost:
|
|
242
|
-
danger:
|
|
243
|
-
sm:
|
|
244
|
-
md:
|
|
245
|
-
},
|
|
241
|
+
active: Et,
|
|
242
|
+
ghost: zt,
|
|
243
|
+
danger: Tt,
|
|
244
|
+
sm: Ft,
|
|
245
|
+
md: Kt
|
|
246
|
+
}, v_ = z(function({ icon: t, label: n, variant: l = "default", size: s = "md", isActive: a = !1, className: d, ...r }, u) {
|
|
246
247
|
return /* @__PURE__ */ e(
|
|
247
248
|
"button",
|
|
248
249
|
{
|
|
249
|
-
ref:
|
|
250
|
+
ref: u,
|
|
250
251
|
type: "button",
|
|
251
252
|
"aria-label": n,
|
|
252
253
|
title: n,
|
|
253
254
|
"aria-pressed": a || void 0,
|
|
254
|
-
className:
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
a &&
|
|
259
|
-
|
|
255
|
+
className: _(
|
|
256
|
+
Me.iconButton,
|
|
257
|
+
Me[l],
|
|
258
|
+
Me[s],
|
|
259
|
+
a && Me.active,
|
|
260
|
+
d
|
|
260
261
|
),
|
|
261
262
|
...r,
|
|
262
263
|
children: t
|
|
263
264
|
}
|
|
264
265
|
);
|
|
265
|
-
}),
|
|
266
|
-
lampButton:
|
|
267
|
-
bezel:
|
|
268
|
-
socket:
|
|
269
|
-
surface:
|
|
270
|
-
green:
|
|
271
|
-
yellow:
|
|
272
|
-
gray:
|
|
273
|
-
red:
|
|
274
|
-
dark:
|
|
275
|
-
content:
|
|
276
|
-
inkLight:
|
|
277
|
-
inkDark:
|
|
278
|
-
icon:
|
|
279
|
-
sm:
|
|
280
|
-
full:
|
|
281
|
-
half:
|
|
282
|
-
md:
|
|
283
|
-
lg:
|
|
284
|
-
},
|
|
285
|
-
const
|
|
286
|
-
return /* @__PURE__ */
|
|
266
|
+
}), Pt = "lamp-button-module__lampButton___vLS18", Rt = "lamp-button-module__bezel___U-EXI", Ot = "lamp-button-module__socket___Jyed-", At = "lamp-button-module__surface___8dOFO", Gt = "lamp-button-module__green___GAW2z", jt = "lamp-button-module__yellow___-edHR", Yt = "lamp-button-module__gray___m7yXy", Ht = "lamp-button-module__red___4wFVi", qt = "lamp-button-module__dark___ZKc5R", Ut = "lamp-button-module__content___YGpBr", Wt = "lamp-button-module__inkLight___6beGg", Zt = "lamp-button-module__inkDark___tnNFq", Vt = "lamp-button-module__icon___IBRdm", Xt = "lamp-button-module__sm___bjzzW", Jt = "lamp-button-module__full___pf8ue", Qt = "lamp-button-module__half___VL0GN", eo = "lamp-button-module__md___Hwseh", to = "lamp-button-module__lg___-yjxW", H = {
|
|
267
|
+
lampButton: Pt,
|
|
268
|
+
bezel: Rt,
|
|
269
|
+
socket: Ot,
|
|
270
|
+
surface: At,
|
|
271
|
+
green: Gt,
|
|
272
|
+
yellow: jt,
|
|
273
|
+
gray: Yt,
|
|
274
|
+
red: Ht,
|
|
275
|
+
dark: qt,
|
|
276
|
+
content: Ut,
|
|
277
|
+
inkLight: Wt,
|
|
278
|
+
inkDark: Zt,
|
|
279
|
+
icon: Vt,
|
|
280
|
+
sm: Xt,
|
|
281
|
+
full: Jt,
|
|
282
|
+
half: Qt,
|
|
283
|
+
md: eo,
|
|
284
|
+
lg: to
|
|
285
|
+
}, g_ = z(function({ tone: t = "gray", size: n = "md", rounded: l = "full", icon: s, className: a, children: d, disabled: r, ...u }, m) {
|
|
286
|
+
const c = r ? "dark" : t;
|
|
287
|
+
return /* @__PURE__ */ b(
|
|
287
288
|
"button",
|
|
288
289
|
{
|
|
289
290
|
ref: m,
|
|
290
291
|
type: "button",
|
|
291
292
|
disabled: r,
|
|
292
|
-
className:
|
|
293
|
-
...
|
|
293
|
+
className: _(H.lampButton, H[n], H[l], a),
|
|
294
|
+
...u,
|
|
294
295
|
children: [
|
|
295
|
-
/* @__PURE__ */ e("span", { className:
|
|
296
|
-
/* @__PURE__ */ e("span", { className:
|
|
297
|
-
/* @__PURE__ */ e("span", { className:
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
|
|
300
|
-
|
|
296
|
+
/* @__PURE__ */ e("span", { className: H.bezel }),
|
|
297
|
+
/* @__PURE__ */ e("span", { className: H.socket }),
|
|
298
|
+
/* @__PURE__ */ e("span", { className: _(H.surface, H[c]) }),
|
|
299
|
+
/* @__PURE__ */ b("span", { className: _(H.content, c === "gray" ? H.inkDark : H.inkLight), children: [
|
|
300
|
+
s && /* @__PURE__ */ e("span", { className: H.icon, children: s }),
|
|
301
|
+
d
|
|
301
302
|
] })
|
|
302
303
|
]
|
|
303
304
|
}
|
|
304
305
|
);
|
|
305
|
-
}),
|
|
306
|
-
lampIconButton:
|
|
307
|
-
bezel:
|
|
308
|
-
socket:
|
|
309
|
-
surface:
|
|
310
|
-
green:
|
|
311
|
-
yellow:
|
|
312
|
-
gray:
|
|
313
|
-
red:
|
|
314
|
-
dark:
|
|
315
|
-
icon:
|
|
316
|
-
inkLight:
|
|
317
|
-
inkDark:
|
|
318
|
-
sm:
|
|
319
|
-
md:
|
|
320
|
-
lg:
|
|
321
|
-
},
|
|
322
|
-
function({ icon: t, label: n, tone:
|
|
323
|
-
const m =
|
|
324
|
-
return /* @__PURE__ */
|
|
306
|
+
}), oo = "lamp-icon-button-module__lampIconButton___1xZo8", no = "lamp-icon-button-module__bezel___Z9Kq8", lo = "lamp-icon-button-module__socket___OzfA4", so = "lamp-icon-button-module__surface___Eabnu", ao = "lamp-icon-button-module__green___Bc3bQ", co = "lamp-icon-button-module__yellow___9j8ol", ro = "lamp-icon-button-module__gray___NgxOh", _o = "lamp-icon-button-module__red___2yAmf", io = "lamp-icon-button-module__dark___2KgXc", uo = "lamp-icon-button-module__icon___NglMS", mo = "lamp-icon-button-module__inkLight___Ea5Is", po = "lamp-icon-button-module__inkDark___5F-Vy", ho = "lamp-icon-button-module__sm___HpAmU", bo = "lamp-icon-button-module__md___xYNb1", fo = "lamp-icon-button-module__lg___V4xGx", ee = {
|
|
307
|
+
lampIconButton: oo,
|
|
308
|
+
bezel: no,
|
|
309
|
+
socket: lo,
|
|
310
|
+
surface: so,
|
|
311
|
+
green: ao,
|
|
312
|
+
yellow: co,
|
|
313
|
+
gray: ro,
|
|
314
|
+
red: _o,
|
|
315
|
+
dark: io,
|
|
316
|
+
icon: uo,
|
|
317
|
+
inkLight: mo,
|
|
318
|
+
inkDark: po,
|
|
319
|
+
sm: ho,
|
|
320
|
+
md: bo,
|
|
321
|
+
lg: fo
|
|
322
|
+
}, y_ = z(
|
|
323
|
+
function({ icon: t, label: n, tone: l = "gray", size: s = "md", className: a, disabled: d, ...r }, u) {
|
|
324
|
+
const m = d ? "dark" : l;
|
|
325
|
+
return /* @__PURE__ */ b(
|
|
325
326
|
"button",
|
|
326
327
|
{
|
|
327
|
-
ref:
|
|
328
|
+
ref: u,
|
|
328
329
|
type: "button",
|
|
329
330
|
"aria-label": n,
|
|
330
331
|
title: n,
|
|
331
|
-
disabled:
|
|
332
|
-
className:
|
|
332
|
+
disabled: d,
|
|
333
|
+
className: _(ee.lampIconButton, ee[s], a),
|
|
333
334
|
...r,
|
|
334
335
|
children: [
|
|
335
|
-
/* @__PURE__ */ e("span", { className:
|
|
336
|
-
/* @__PURE__ */ e("span", { className:
|
|
337
|
-
/* @__PURE__ */ e("span", { className:
|
|
338
|
-
/* @__PURE__ */ e("span", { className:
|
|
336
|
+
/* @__PURE__ */ e("span", { className: ee.bezel }),
|
|
337
|
+
/* @__PURE__ */ e("span", { className: ee.socket }),
|
|
338
|
+
/* @__PURE__ */ e("span", { className: _(ee.surface, ee[m]) }),
|
|
339
|
+
/* @__PURE__ */ e("span", { className: _(ee.icon, m === "gray" ? ee.inkDark : ee.inkLight), children: t })
|
|
339
340
|
]
|
|
340
341
|
}
|
|
341
342
|
);
|
|
342
343
|
}
|
|
343
|
-
),
|
|
344
|
-
control:
|
|
345
|
-
disabled:
|
|
346
|
-
input:
|
|
344
|
+
), vo = "lamp-switch-module__control___WEQSl", go = "lamp-switch-module__disabled___TUW9S", yo = "lamp-switch-module__input___WYweb", $o = "lamp-switch-module__bezel___pZzrv", wo = "lamp-switch-module__socket___BIITV", ko = "lamp-switch-module__glow___IwjxL", No = "lamp-switch-module__knob___L-MKD", xo = "lamp-switch-module__labels___DRwFx", Mo = "lamp-switch-module__off___fk-7m", Do = "lamp-switch-module__on___heTFC", Io = "lamp-switch-module__divider___KxXb9", Bo = "lamp-switch-module__text___xb6i5", Lo = "lamp-switch-module__green___o-64B", So = "lamp-switch-module__yellow___68h4h", Co = "lamp-switch-module__gray___omIlV", Eo = "lamp-switch-module__red___1NqKe", zo = "lamp-switch-module__dark___muS53", To = "lamp-switch-module__sm___iu8wH", Fo = "lamp-switch-module__md___xcpKC", Ko = "lamp-switch-module__lg___vpOur", K = {
|
|
345
|
+
control: vo,
|
|
346
|
+
disabled: go,
|
|
347
|
+
input: yo,
|
|
347
348
|
switch: "lamp-switch-module__switch___kZ7oI",
|
|
348
|
-
bezel:
|
|
349
|
-
socket:
|
|
350
|
-
glow:
|
|
351
|
-
knob:
|
|
352
|
-
labels:
|
|
353
|
-
off:
|
|
354
|
-
on:
|
|
355
|
-
divider:
|
|
356
|
-
text:
|
|
357
|
-
green:
|
|
358
|
-
yellow:
|
|
359
|
-
gray:
|
|
360
|
-
red:
|
|
361
|
-
dark:
|
|
362
|
-
sm:
|
|
363
|
-
md:
|
|
364
|
-
lg:
|
|
365
|
-
},
|
|
366
|
-
const m = R(),
|
|
367
|
-
return /* @__PURE__ */
|
|
349
|
+
bezel: $o,
|
|
350
|
+
socket: wo,
|
|
351
|
+
glow: ko,
|
|
352
|
+
knob: No,
|
|
353
|
+
labels: xo,
|
|
354
|
+
off: Mo,
|
|
355
|
+
on: Do,
|
|
356
|
+
divider: Io,
|
|
357
|
+
text: Bo,
|
|
358
|
+
green: Lo,
|
|
359
|
+
yellow: So,
|
|
360
|
+
gray: Co,
|
|
361
|
+
red: Eo,
|
|
362
|
+
dark: zo,
|
|
363
|
+
sm: To,
|
|
364
|
+
md: Fo,
|
|
365
|
+
lg: Ko
|
|
366
|
+
}, $_ = z(function({ tone: t = "green", size: n = "md", label: l, id: s, className: a, disabled: d, ...r }, u) {
|
|
367
|
+
const m = R(), c = s ?? `fui-lamp-switch-${m}`;
|
|
368
|
+
return /* @__PURE__ */ b("label", { htmlFor: c, className: _(K.control, d && K.disabled, a), children: [
|
|
368
369
|
/* @__PURE__ */ e(
|
|
369
370
|
"input",
|
|
370
371
|
{
|
|
371
|
-
ref:
|
|
372
|
-
id:
|
|
372
|
+
ref: u,
|
|
373
|
+
id: c,
|
|
373
374
|
type: "checkbox",
|
|
374
|
-
className:
|
|
375
|
-
disabled:
|
|
375
|
+
className: K.input,
|
|
376
|
+
disabled: d,
|
|
376
377
|
...r
|
|
377
378
|
}
|
|
378
379
|
),
|
|
379
|
-
/* @__PURE__ */
|
|
380
|
-
/* @__PURE__ */ e("span", { className:
|
|
381
|
-
/* @__PURE__ */ e("span", { className:
|
|
382
|
-
/* @__PURE__ */ e("span", { className:
|
|
383
|
-
/* @__PURE__ */ e("span", { className:
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
/* @__PURE__ */ e("span", { className:
|
|
386
|
-
/* @__PURE__ */ e("span", { className:
|
|
380
|
+
/* @__PURE__ */ b("span", { className: _(K.switch, K[n], K[t]), "aria-hidden": "true", children: [
|
|
381
|
+
/* @__PURE__ */ e("span", { className: K.bezel }),
|
|
382
|
+
/* @__PURE__ */ e("span", { className: K.socket }),
|
|
383
|
+
/* @__PURE__ */ e("span", { className: K.glow }),
|
|
384
|
+
/* @__PURE__ */ e("span", { className: K.knob }),
|
|
385
|
+
/* @__PURE__ */ b("span", { className: K.labels, children: [
|
|
386
|
+
/* @__PURE__ */ e("span", { className: K.off, children: "O" }),
|
|
387
|
+
/* @__PURE__ */ e("span", { className: K.on, children: "I" })
|
|
387
388
|
] }),
|
|
388
|
-
/* @__PURE__ */ e("span", { className:
|
|
389
|
+
/* @__PURE__ */ e("span", { className: K.divider })
|
|
389
390
|
] }),
|
|
390
|
-
|
|
391
|
+
l && /* @__PURE__ */ e("span", { className: K.text, children: l })
|
|
391
392
|
] });
|
|
392
|
-
}),
|
|
393
|
-
lampStatus:
|
|
394
|
-
lamp:
|
|
395
|
-
bezel:
|
|
396
|
-
socket:
|
|
397
|
-
surface:
|
|
398
|
-
green:
|
|
399
|
-
yellow:
|
|
400
|
-
red:
|
|
401
|
-
dark:
|
|
402
|
-
pulse:
|
|
403
|
-
fuiLampPulse:
|
|
404
|
-
text:
|
|
405
|
-
},
|
|
393
|
+
}), Po = "lamp-status-module__lampStatus___RQuyf", Ro = "lamp-status-module__lamp___4-Pqb", Oo = "lamp-status-module__bezel___iW-i1", Ao = "lamp-status-module__socket___XVX5p", Go = "lamp-status-module__surface___s0XbK", jo = "lamp-status-module__green___2Ftjw", Yo = "lamp-status-module__yellow___UPxo-", Ho = "lamp-status-module__red___DEvbK", qo = "lamp-status-module__dark___mc6PP", Uo = "lamp-status-module__pulse___j6DB9", Wo = "lamp-status-module__fui-lamp-pulse___d9PZT", Zo = "lamp-status-module__text___2b1w4", te = {
|
|
394
|
+
lampStatus: Po,
|
|
395
|
+
lamp: Ro,
|
|
396
|
+
bezel: Oo,
|
|
397
|
+
socket: Ao,
|
|
398
|
+
surface: Go,
|
|
399
|
+
green: jo,
|
|
400
|
+
yellow: Yo,
|
|
401
|
+
red: Ho,
|
|
402
|
+
dark: qo,
|
|
403
|
+
pulse: Uo,
|
|
404
|
+
fuiLampPulse: Wo,
|
|
405
|
+
text: Zo
|
|
406
|
+
}, Vo = {
|
|
406
407
|
running: { tone: "green", label: "Running", pulse: !0 },
|
|
407
408
|
stopped: { tone: "dark", label: "Stopped", pulse: !1 },
|
|
408
409
|
error: { tone: "red", label: "Error", pulse: !1 },
|
|
409
410
|
initializing: { tone: "yellow", label: "Starting", pulse: !0 }
|
|
410
411
|
};
|
|
411
|
-
function
|
|
412
|
-
const
|
|
413
|
-
return /* @__PURE__ */
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */ e("span", { className:
|
|
416
|
-
/* @__PURE__ */ e("span", { className:
|
|
417
|
-
/* @__PURE__ */ e("span", { className:
|
|
412
|
+
function w_({ status: o, label: t, className: n, ...l }) {
|
|
413
|
+
const s = Vo[o];
|
|
414
|
+
return /* @__PURE__ */ b("output", { className: _(te.lampStatus, n), ...l, children: [
|
|
415
|
+
/* @__PURE__ */ b("span", { className: te.lamp, children: [
|
|
416
|
+
/* @__PURE__ */ e("span", { className: te.bezel }),
|
|
417
|
+
/* @__PURE__ */ e("span", { className: te.socket }),
|
|
418
|
+
/* @__PURE__ */ e("span", { className: _(te.surface, te[s.tone], s.pulse && te.pulse) })
|
|
418
419
|
] }),
|
|
419
|
-
/* @__PURE__ */ e("span", { className:
|
|
420
|
+
/* @__PURE__ */ e("span", { className: _(te.text, te[s.tone]), children: t ?? s.label })
|
|
420
421
|
] });
|
|
421
422
|
}
|
|
422
|
-
const
|
|
423
|
-
lampMeter:
|
|
424
|
-
header:
|
|
425
|
-
label:
|
|
426
|
-
value:
|
|
427
|
-
bar:
|
|
428
|
-
bezel:
|
|
429
|
-
track:
|
|
430
|
-
lamps:
|
|
431
|
-
lamp:
|
|
432
|
-
green:
|
|
433
|
-
lit:
|
|
434
|
-
partial:
|
|
435
|
-
yellow:
|
|
436
|
-
gray:
|
|
437
|
-
red:
|
|
438
|
-
dark:
|
|
439
|
-
sm:
|
|
440
|
-
md:
|
|
441
|
-
lg:
|
|
442
|
-
fullWidth:
|
|
423
|
+
const Xo = "lamp-meter-module__lampMeter___KJEsA", Jo = "lamp-meter-module__header___mcKTY", Qo = "lamp-meter-module__label___8YEo9", en = "lamp-meter-module__value___kL376", tn = "lamp-meter-module__bar___tYmz5", on = "lamp-meter-module__bezel___yUT9m", nn = "lamp-meter-module__track___qwoyr", ln = "lamp-meter-module__lamps___nE9i-", sn = "lamp-meter-module__lamp___jRJoT", an = "lamp-meter-module__green___Vz-8B", cn = "lamp-meter-module__lit___WUO1g", rn = "lamp-meter-module__partial___3-Om7", _n = "lamp-meter-module__yellow___xzkCV", dn = "lamp-meter-module__gray___EyYCs", un = "lamp-meter-module__red___jhoIm", mn = "lamp-meter-module__dark___Dcxyc", pn = "lamp-meter-module__sm___iYqDJ", hn = "lamp-meter-module__md___XPzch", bn = "lamp-meter-module__lg___NJDT4", fn = "lamp-meter-module__fullWidth___qlY91", G = {
|
|
424
|
+
lampMeter: Xo,
|
|
425
|
+
header: Jo,
|
|
426
|
+
label: Qo,
|
|
427
|
+
value: en,
|
|
428
|
+
bar: tn,
|
|
429
|
+
bezel: on,
|
|
430
|
+
track: nn,
|
|
431
|
+
lamps: ln,
|
|
432
|
+
lamp: sn,
|
|
433
|
+
green: an,
|
|
434
|
+
lit: cn,
|
|
435
|
+
partial: rn,
|
|
436
|
+
yellow: _n,
|
|
437
|
+
gray: dn,
|
|
438
|
+
red: un,
|
|
439
|
+
dark: mn,
|
|
440
|
+
sm: pn,
|
|
441
|
+
md: hn,
|
|
442
|
+
lg: bn,
|
|
443
|
+
fullWidth: fn
|
|
443
444
|
};
|
|
444
|
-
function
|
|
445
|
+
function k_({
|
|
445
446
|
value: o,
|
|
446
447
|
max: t = 100,
|
|
447
448
|
tone: n = "green",
|
|
448
|
-
size:
|
|
449
|
-
lampCount:
|
|
449
|
+
size: l = "md",
|
|
450
|
+
lampCount: s = 10,
|
|
450
451
|
label: a,
|
|
451
|
-
showValue:
|
|
452
|
+
showValue: d = !1,
|
|
452
453
|
fullWidth: r = !1,
|
|
453
|
-
className:
|
|
454
|
+
className: u,
|
|
454
455
|
style: m,
|
|
455
|
-
...
|
|
456
|
+
...c
|
|
456
457
|
}) {
|
|
457
|
-
const
|
|
458
|
-
id: `lamp-${
|
|
459
|
-
index:
|
|
458
|
+
const p = t > 0 ? Math.max(0, Math.min(o, t)) : 0, i = t > 0 ? p / t : 0, v = Math.round(i * 100), h = i * s, g = Math.floor(h), y = h - g, N = Array.from({ length: s }, ($, M) => ({
|
|
459
|
+
id: `lamp-${M}`,
|
|
460
|
+
index: M
|
|
460
461
|
}));
|
|
461
|
-
return /* @__PURE__ */
|
|
462
|
+
return /* @__PURE__ */ b(
|
|
462
463
|
"span",
|
|
463
464
|
{
|
|
464
465
|
role: "progressbar",
|
|
465
466
|
"aria-label": a ?? "Progress",
|
|
466
467
|
"aria-valuemin": 0,
|
|
467
468
|
"aria-valuemax": t,
|
|
468
|
-
"aria-valuenow":
|
|
469
|
-
className:
|
|
470
|
-
style: { "--fui-lamp-count":
|
|
471
|
-
...
|
|
469
|
+
"aria-valuenow": p,
|
|
470
|
+
className: _(G.lampMeter, r && G.fullWidth, u),
|
|
471
|
+
style: { "--fui-lamp-count": s, ...m },
|
|
472
|
+
...c,
|
|
472
473
|
children: [
|
|
473
|
-
(a != null ||
|
|
474
|
-
/* @__PURE__ */ e("span", { className:
|
|
475
|
-
|
|
474
|
+
(a != null || d) && /* @__PURE__ */ b("span", { className: G.header, children: [
|
|
475
|
+
/* @__PURE__ */ e("span", { className: G.label, children: a }),
|
|
476
|
+
d && /* @__PURE__ */ b("span", { className: G.value, children: [
|
|
476
477
|
v,
|
|
477
478
|
"%"
|
|
478
479
|
] })
|
|
479
480
|
] }),
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
/* @__PURE__ */ e("span", { className:
|
|
482
|
-
/* @__PURE__ */ e("span", { className:
|
|
483
|
-
const
|
|
481
|
+
/* @__PURE__ */ b("span", { className: _(G.bar, G[l]), children: [
|
|
482
|
+
/* @__PURE__ */ e("span", { className: G.bezel }),
|
|
483
|
+
/* @__PURE__ */ e("span", { className: G.track, children: /* @__PURE__ */ e("span", { className: G.lamps, children: N.map(($) => {
|
|
484
|
+
const M = $.index === g && y > 0;
|
|
484
485
|
return /* @__PURE__ */ e(
|
|
485
486
|
"span",
|
|
486
487
|
{
|
|
487
|
-
className:
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
488
|
+
className: _(
|
|
489
|
+
G.lamp,
|
|
490
|
+
G[n],
|
|
491
|
+
$.index < g && G.lit,
|
|
492
|
+
M && G.partial
|
|
492
493
|
),
|
|
493
|
-
style:
|
|
494
|
+
style: M ? { opacity: 0.3 + y * 0.7 } : void 0
|
|
494
495
|
},
|
|
495
|
-
|
|
496
|
+
$.id
|
|
496
497
|
);
|
|
497
498
|
}) }) })
|
|
498
499
|
] })
|
|
@@ -500,136 +501,136 @@ function f_({
|
|
|
500
501
|
}
|
|
501
502
|
);
|
|
502
503
|
}
|
|
503
|
-
const
|
|
504
|
-
linkButton:
|
|
505
|
-
inherit:
|
|
506
|
-
accent:
|
|
507
|
-
sm:
|
|
508
|
-
md:
|
|
509
|
-
lg:
|
|
510
|
-
iconSlot:
|
|
511
|
-
},
|
|
512
|
-
return /* @__PURE__ */
|
|
504
|
+
const vn = "link-button-module__linkButton___q-Uot", gn = "link-button-module__inherit___7pKrk", yn = "link-button-module__accent___rgB7A", $n = "link-button-module__sm___zPqj6", wn = "link-button-module__md___M0cWx", kn = "link-button-module__lg___ZoNuc", Nn = "link-button-module__iconSlot___-fGhm", be = {
|
|
505
|
+
linkButton: vn,
|
|
506
|
+
inherit: gn,
|
|
507
|
+
accent: yn,
|
|
508
|
+
sm: $n,
|
|
509
|
+
md: wn,
|
|
510
|
+
lg: kn,
|
|
511
|
+
iconSlot: Nn
|
|
512
|
+
}, N_ = z(function({ color: t = "accent", size: n = "md", icon: l, iconRight: s, className: a, children: d, ...r }, u) {
|
|
513
|
+
return /* @__PURE__ */ b(
|
|
513
514
|
"button",
|
|
514
515
|
{
|
|
515
|
-
ref:
|
|
516
|
+
ref: u,
|
|
516
517
|
type: "button",
|
|
517
|
-
className:
|
|
518
|
+
className: _(be.linkButton, be[t], be[n], a),
|
|
518
519
|
...r,
|
|
519
520
|
children: [
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
521
|
+
l && /* @__PURE__ */ e("span", { className: be.iconSlot, children: l }),
|
|
522
|
+
d,
|
|
523
|
+
s && /* @__PURE__ */ e("span", { className: be.iconSlot, children: s })
|
|
523
524
|
]
|
|
524
525
|
}
|
|
525
526
|
);
|
|
526
|
-
}),
|
|
527
|
-
stamp:
|
|
528
|
-
dot:
|
|
529
|
-
neutral:
|
|
530
|
-
info:
|
|
531
|
-
success:
|
|
532
|
-
warning:
|
|
533
|
-
error:
|
|
534
|
-
sm:
|
|
535
|
-
md:
|
|
527
|
+
}), xn = "stamp-module__stamp___5qaNY", Mn = "stamp-module__dot___qZyCR", Dn = "stamp-module__neutral___6CXei", In = "stamp-module__info___hH0OA", Bn = "stamp-module__success___vtscx", Ln = "stamp-module__warning___H6sZS", Sn = "stamp-module__error___G-HEQ", Cn = "stamp-module__sm___N-jia", En = "stamp-module__md___Cz5Vg", De = {
|
|
528
|
+
stamp: xn,
|
|
529
|
+
dot: Mn,
|
|
530
|
+
neutral: Dn,
|
|
531
|
+
info: In,
|
|
532
|
+
success: Bn,
|
|
533
|
+
warning: Ln,
|
|
534
|
+
error: Sn,
|
|
535
|
+
sm: Cn,
|
|
536
|
+
md: En
|
|
536
537
|
};
|
|
537
|
-
function
|
|
538
|
+
function x_({
|
|
538
539
|
variant: o = "neutral",
|
|
539
540
|
size: t = "sm",
|
|
540
541
|
dot: n = !1,
|
|
541
|
-
fillColor:
|
|
542
|
-
textColor:
|
|
542
|
+
fillColor: l,
|
|
543
|
+
textColor: s,
|
|
543
544
|
onClick: a,
|
|
544
|
-
className:
|
|
545
|
+
className: d,
|
|
545
546
|
style: r,
|
|
546
|
-
children:
|
|
547
|
+
children: u,
|
|
547
548
|
...m
|
|
548
549
|
}) {
|
|
549
|
-
const
|
|
550
|
-
return /* @__PURE__ */
|
|
551
|
-
|
|
550
|
+
const c = a ? "button" : "span", p = l || s ? { backgroundColor: l, color: s } : void 0;
|
|
551
|
+
return /* @__PURE__ */ b(
|
|
552
|
+
c,
|
|
552
553
|
{
|
|
553
554
|
type: a ? "button" : void 0,
|
|
554
555
|
onClick: a,
|
|
555
|
-
className:
|
|
556
|
-
style: { ...
|
|
556
|
+
className: _(De.stamp, De[o], De[t], d),
|
|
557
|
+
style: { ...p, ...r },
|
|
557
558
|
...m,
|
|
558
559
|
children: [
|
|
559
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
560
|
-
|
|
560
|
+
n && /* @__PURE__ */ e("span", { className: De.dot, "aria-hidden": !0 }),
|
|
561
|
+
u
|
|
561
562
|
]
|
|
562
563
|
}
|
|
563
564
|
);
|
|
564
565
|
}
|
|
565
|
-
const
|
|
566
|
-
tooltip:
|
|
567
|
-
ready:
|
|
568
|
-
},
|
|
569
|
-
function
|
|
566
|
+
const zn = "tooltip-module__tooltip___e-rkz", Tn = "tooltip-module__ready___LI2J6", je = {
|
|
567
|
+
tooltip: zn,
|
|
568
|
+
ready: Tn
|
|
569
|
+
}, Ie = 8, Be = 8;
|
|
570
|
+
function Le(o, t) {
|
|
570
571
|
return (n) => {
|
|
571
572
|
typeof o == "function" && o(n), t(n);
|
|
572
573
|
};
|
|
573
574
|
}
|
|
574
|
-
function
|
|
575
|
-
const
|
|
576
|
-
window.clearTimeout(
|
|
575
|
+
function M_({ content: o, children: t, placement: n = "top", delay: l = 300 }) {
|
|
576
|
+
const s = R(), [a, d] = Y(!1), [r, u] = Y(null), m = E(null), c = E(null), p = E(void 0), i = Pe(() => {
|
|
577
|
+
window.clearTimeout(p.current), d(!1), u(null);
|
|
577
578
|
}, []);
|
|
578
|
-
|
|
579
|
+
le(() => () => window.clearTimeout(p.current), []), le(() => {
|
|
579
580
|
if (!a) return;
|
|
580
|
-
const
|
|
581
|
-
|
|
581
|
+
const $ = (M) => {
|
|
582
|
+
M.key === "Escape" && i();
|
|
582
583
|
};
|
|
583
|
-
return window.addEventListener("keydown",
|
|
584
|
-
window.removeEventListener("keydown",
|
|
584
|
+
return window.addEventListener("keydown", $), window.addEventListener("scroll", i, !0), window.addEventListener("resize", i), () => {
|
|
585
|
+
window.removeEventListener("keydown", $), window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
|
|
585
586
|
};
|
|
586
|
-
}, [a,
|
|
587
|
+
}, [a, i]), et(() => {
|
|
587
588
|
if (!a) return;
|
|
588
|
-
const
|
|
589
|
-
if (
|
|
590
|
-
const D =
|
|
591
|
-
let
|
|
589
|
+
const $ = c.current, M = m.current;
|
|
590
|
+
if (!$ || !M) return;
|
|
591
|
+
const D = M.getBoundingClientRect();
|
|
592
|
+
let S, C;
|
|
592
593
|
switch (n) {
|
|
593
594
|
case "bottom":
|
|
594
|
-
|
|
595
|
+
S = $.bottom + Ie, C = $.left + $.width / 2 - D.width / 2;
|
|
595
596
|
break;
|
|
596
597
|
case "left":
|
|
597
|
-
|
|
598
|
+
S = $.top + $.height / 2 - D.height / 2, C = $.left - D.width - Ie;
|
|
598
599
|
break;
|
|
599
600
|
case "right":
|
|
600
|
-
|
|
601
|
+
S = $.top + $.height / 2 - D.height / 2, C = $.right + Ie;
|
|
601
602
|
break;
|
|
602
603
|
default:
|
|
603
|
-
|
|
604
|
+
S = $.top - D.height - Ie, C = $.left + $.width / 2 - D.width / 2;
|
|
604
605
|
}
|
|
605
|
-
|
|
606
|
+
C = Math.min(Math.max(C, Be), window.innerWidth - D.width - Be), S = Math.min(Math.max(S, Be), window.innerHeight - D.height - Be), u({ top: S, left: C });
|
|
606
607
|
}, [a, n]);
|
|
607
|
-
const v = o == null || o === !1 || o === "",
|
|
608
|
-
|
|
608
|
+
const v = o == null || o === !1 || o === "", h = tt.only(t), g = h.props, y = ($) => {
|
|
609
|
+
c.current = $.getBoundingClientRect(), d(!0);
|
|
609
610
|
};
|
|
610
611
|
if (v) return t;
|
|
611
|
-
const
|
|
612
|
-
onMouseEnter:
|
|
613
|
-
const
|
|
614
|
-
window.clearTimeout(
|
|
612
|
+
const N = He(h, {
|
|
613
|
+
onMouseEnter: Le(g.onMouseEnter, ($) => {
|
|
614
|
+
const M = $.currentTarget;
|
|
615
|
+
window.clearTimeout(p.current), p.current = window.setTimeout(() => y(M), l);
|
|
615
616
|
}),
|
|
616
|
-
onMouseLeave:
|
|
617
|
-
onFocus:
|
|
618
|
-
|
|
617
|
+
onMouseLeave: Le(g.onMouseLeave, i),
|
|
618
|
+
onFocus: Le(g.onFocus, ($) => {
|
|
619
|
+
y($.currentTarget);
|
|
619
620
|
}),
|
|
620
|
-
onBlur:
|
|
621
|
-
"aria-describedby": a ?
|
|
621
|
+
onBlur: Le(g.onBlur, i),
|
|
622
|
+
"aria-describedby": a ? s : g["aria-describedby"]
|
|
622
623
|
});
|
|
623
|
-
return /* @__PURE__ */
|
|
624
|
-
|
|
625
|
-
a &&
|
|
624
|
+
return /* @__PURE__ */ b(P, { children: [
|
|
625
|
+
N,
|
|
626
|
+
a && ze(
|
|
626
627
|
/* @__PURE__ */ e(
|
|
627
628
|
"div",
|
|
628
629
|
{
|
|
629
630
|
ref: m,
|
|
630
|
-
id:
|
|
631
|
+
id: s,
|
|
631
632
|
role: "tooltip",
|
|
632
|
-
className:
|
|
633
|
+
className: _(je.tooltip, r && je.ready),
|
|
633
634
|
style: r ? { top: r.top, left: r.left } : void 0,
|
|
634
635
|
children: o
|
|
635
636
|
}
|
|
@@ -638,576 +639,576 @@ function y_({ content: o, children: t, placement: n = "top", delay: s = 300 }) {
|
|
|
638
639
|
)
|
|
639
640
|
] });
|
|
640
641
|
}
|
|
641
|
-
const
|
|
642
|
-
stack:
|
|
643
|
-
topLeft:
|
|
644
|
-
topCenter:
|
|
645
|
-
topRight:
|
|
646
|
-
bottomLeft:
|
|
647
|
-
bottomCenter:
|
|
648
|
-
bottomRight:
|
|
649
|
-
toast:
|
|
650
|
-
toastIn:
|
|
651
|
-
title:
|
|
652
|
-
description:
|
|
653
|
-
close:
|
|
654
|
-
info:
|
|
655
|
-
success:
|
|
656
|
-
warning:
|
|
657
|
-
error:
|
|
642
|
+
const qe = ot(null), Fn = "toast-module__stack___hDi0s", Kn = "toast-module__top-left___rIwtH", Pn = "toast-module__top-center___OapVt", Rn = "toast-module__top-right___Ci4Ki", On = "toast-module__bottom-left___y6xhK", An = "toast-module__bottom-center___yYVrc", Gn = "toast-module__bottom-right___JeMil", jn = "toast-module__toast___y1lVX", Yn = "toast-module__toast-in___TYYwQ", Hn = "toast-module__title___1Oqh8", qn = "toast-module__description___eiUSB", Un = "toast-module__close___IDukn", Wn = "toast-module__info___Nh8S9", Zn = "toast-module__success___hlKLc", Vn = "toast-module__warning___XUMJt", Xn = "toast-module__error___pSFFC", re = {
|
|
643
|
+
stack: Fn,
|
|
644
|
+
topLeft: Kn,
|
|
645
|
+
topCenter: Pn,
|
|
646
|
+
topRight: Rn,
|
|
647
|
+
bottomLeft: On,
|
|
648
|
+
bottomCenter: An,
|
|
649
|
+
bottomRight: Gn,
|
|
650
|
+
toast: jn,
|
|
651
|
+
toastIn: Yn,
|
|
652
|
+
title: Hn,
|
|
653
|
+
description: qn,
|
|
654
|
+
close: Un,
|
|
655
|
+
info: Wn,
|
|
656
|
+
success: Zn,
|
|
657
|
+
warning: Vn,
|
|
658
|
+
error: Xn
|
|
658
659
|
};
|
|
659
|
-
function
|
|
660
|
+
function D_({
|
|
660
661
|
children: o,
|
|
661
662
|
position: t = "bottom-right",
|
|
662
663
|
defaultDuration: n = 5e3
|
|
663
664
|
}) {
|
|
664
|
-
const [
|
|
665
|
-
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
}, []),
|
|
669
|
-
(
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
|
|
665
|
+
const [l, s] = Y([]), a = E(/* @__PURE__ */ new Map()), d = E(0), r = Pe((c) => {
|
|
666
|
+
s((i) => i.filter((v) => v.id !== c));
|
|
667
|
+
const p = a.current.get(c);
|
|
668
|
+
p !== void 0 && (window.clearTimeout(p), a.current.delete(c));
|
|
669
|
+
}, []), u = Pe(
|
|
670
|
+
(c) => {
|
|
671
|
+
d.current += 1;
|
|
672
|
+
const p = `fui-toast-${d.current}`;
|
|
673
|
+
s((v) => [
|
|
673
674
|
...v,
|
|
674
675
|
{
|
|
675
|
-
id:
|
|
676
|
-
title:
|
|
677
|
-
description:
|
|
678
|
-
variant:
|
|
676
|
+
id: p,
|
|
677
|
+
title: c.title,
|
|
678
|
+
description: c.description,
|
|
679
|
+
variant: c.variant ?? "info"
|
|
679
680
|
}
|
|
680
681
|
]);
|
|
681
|
-
const
|
|
682
|
-
return
|
|
683
|
-
|
|
684
|
-
window.setTimeout(() => r(
|
|
685
|
-
),
|
|
682
|
+
const i = c.duration ?? n;
|
|
683
|
+
return i > 0 && a.current.set(
|
|
684
|
+
p,
|
|
685
|
+
window.setTimeout(() => r(p), i)
|
|
686
|
+
), p;
|
|
686
687
|
},
|
|
687
688
|
[n, r]
|
|
688
689
|
);
|
|
689
|
-
|
|
690
|
-
const
|
|
690
|
+
le(() => {
|
|
691
|
+
const c = a.current;
|
|
691
692
|
return () => {
|
|
692
|
-
for (const
|
|
693
|
+
for (const p of c.values()) window.clearTimeout(p);
|
|
693
694
|
};
|
|
694
695
|
}, []);
|
|
695
|
-
const m = Re(() => ({ toast:
|
|
696
|
-
return /* @__PURE__ */
|
|
696
|
+
const m = Re(() => ({ toast: u, dismiss: r }), [u, r]);
|
|
697
|
+
return /* @__PURE__ */ b(qe.Provider, { value: m, children: [
|
|
697
698
|
o,
|
|
698
|
-
|
|
699
|
-
/* @__PURE__ */ e("div", { className:
|
|
699
|
+
ze(
|
|
700
|
+
/* @__PURE__ */ e("div", { className: _(re.stack, re[t]), children: l.map((c) => /* @__PURE__ */ b(
|
|
700
701
|
"div",
|
|
701
702
|
{
|
|
702
|
-
role:
|
|
703
|
-
className:
|
|
703
|
+
role: c.variant === "error" ? "alert" : "status",
|
|
704
|
+
className: _(re.toast, re[c.variant]),
|
|
704
705
|
children: [
|
|
705
|
-
|
|
706
|
-
|
|
706
|
+
c.title && /* @__PURE__ */ e("p", { className: re.title, children: c.title }),
|
|
707
|
+
c.description && /* @__PURE__ */ e("p", { className: re.description, children: c.description }),
|
|
707
708
|
/* @__PURE__ */ e(
|
|
708
709
|
"button",
|
|
709
710
|
{
|
|
710
711
|
type: "button",
|
|
711
712
|
"aria-label": "Dismiss",
|
|
712
|
-
className:
|
|
713
|
-
onClick: () => r(
|
|
713
|
+
className: re.close,
|
|
714
|
+
onClick: () => r(c.id),
|
|
714
715
|
children: "×"
|
|
715
716
|
}
|
|
716
717
|
)
|
|
717
718
|
]
|
|
718
719
|
},
|
|
719
|
-
|
|
720
|
+
c.id
|
|
720
721
|
)) }),
|
|
721
722
|
document.body
|
|
722
723
|
)
|
|
723
724
|
] });
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
-
const o = nt(
|
|
726
|
+
function I_() {
|
|
727
|
+
const o = nt(qe);
|
|
727
728
|
if (!o) throw new Error("useToast must be used within a <ToastProvider>");
|
|
728
729
|
return o;
|
|
729
730
|
}
|
|
730
|
-
const
|
|
731
|
-
card:
|
|
732
|
-
interactive:
|
|
733
|
-
sm:
|
|
734
|
-
md:
|
|
735
|
-
title:
|
|
736
|
-
body:
|
|
731
|
+
const Jn = "card-module__card___HG0v6", Qn = "card-module__interactive___lCSFj", el = "card-module__sm___ug17X", tl = "card-module__md___BAzpC", ol = "card-module__title___9LIjW", nl = "card-module__body___b17cz", ye = {
|
|
732
|
+
card: Jn,
|
|
733
|
+
interactive: Qn,
|
|
734
|
+
sm: el,
|
|
735
|
+
md: tl,
|
|
736
|
+
title: ol,
|
|
737
|
+
body: nl
|
|
737
738
|
};
|
|
738
|
-
function
|
|
739
|
+
function ll(o) {
|
|
739
740
|
o.target === o.currentTarget && (o.key === "Enter" || o.key === " ") && (o.preventDefault(), o.currentTarget.click());
|
|
740
741
|
}
|
|
741
|
-
function
|
|
742
|
+
function sl({ size: o = "md", onClick: t, className: n, children: l, ...s }) {
|
|
742
743
|
const a = t != null;
|
|
743
744
|
return /* @__PURE__ */ e(
|
|
744
745
|
"div",
|
|
745
746
|
{
|
|
746
|
-
className:
|
|
747
|
+
className: _(ye.card, ye[o], a && ye.interactive, n),
|
|
747
748
|
onClick: t,
|
|
748
|
-
...a ? { role: "button", tabIndex: 0, onKeyDown:
|
|
749
|
-
...
|
|
750
|
-
children:
|
|
749
|
+
...a ? { role: "button", tabIndex: 0, onKeyDown: ll } : void 0,
|
|
750
|
+
...s,
|
|
751
|
+
children: l
|
|
751
752
|
}
|
|
752
753
|
);
|
|
753
754
|
}
|
|
754
|
-
function
|
|
755
|
-
return /* @__PURE__ */ e("h3", { className:
|
|
755
|
+
function al({ className: o, children: t, ...n }) {
|
|
756
|
+
return /* @__PURE__ */ e("h3", { className: _(ye.title, o), ...n, children: t });
|
|
756
757
|
}
|
|
757
|
-
function
|
|
758
|
-
return /* @__PURE__ */ e("p", { className:
|
|
758
|
+
function cl({ className: o, children: t, ...n }) {
|
|
759
|
+
return /* @__PURE__ */ e("p", { className: _(ye.body, o), ...n, children: t });
|
|
759
760
|
}
|
|
760
|
-
const
|
|
761
|
-
field:
|
|
762
|
-
label:
|
|
763
|
-
input:
|
|
764
|
-
invalid:
|
|
765
|
-
md:
|
|
766
|
-
sm:
|
|
767
|
-
message:
|
|
768
|
-
error:
|
|
769
|
-
},
|
|
770
|
-
const m = R(),
|
|
771
|
-
return /* @__PURE__ */
|
|
772
|
-
t && /* @__PURE__ */ e("label", { htmlFor:
|
|
761
|
+
const B_ = Object.assign(sl, { Title: al, Body: cl }), rl = "input-module__field___khFpX", _l = "input-module__label___lu7R1", dl = "input-module__input___h7K-F", il = "input-module__invalid___Iaiq7", ul = "input-module__md___-HF8v", ml = "input-module__sm___YZFhc", pl = "input-module__message___0KmBb", hl = "input-module__error___QDqga", _e = {
|
|
762
|
+
field: rl,
|
|
763
|
+
label: _l,
|
|
764
|
+
input: dl,
|
|
765
|
+
invalid: il,
|
|
766
|
+
md: ul,
|
|
767
|
+
sm: ml,
|
|
768
|
+
message: pl,
|
|
769
|
+
error: hl
|
|
770
|
+
}, L_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, ...r }, u) {
|
|
771
|
+
const m = R(), c = a ?? `fui-input-${m}`, p = `fui-input-message-${m}`, i = l != null, v = i ? l : n;
|
|
772
|
+
return /* @__PURE__ */ b("div", { className: _(_e.field, d), children: [
|
|
773
|
+
t && /* @__PURE__ */ e("label", { htmlFor: c, className: _e.label, children: t }),
|
|
773
774
|
/* @__PURE__ */ e(
|
|
774
775
|
"input",
|
|
775
776
|
{
|
|
776
|
-
ref:
|
|
777
|
-
id:
|
|
778
|
-
className:
|
|
779
|
-
"aria-invalid":
|
|
780
|
-
"aria-describedby": v != null ?
|
|
777
|
+
ref: u,
|
|
778
|
+
id: c,
|
|
779
|
+
className: _(_e.input, _e[s], i && _e.invalid),
|
|
780
|
+
"aria-invalid": i || void 0,
|
|
781
|
+
"aria-describedby": v != null ? p : void 0,
|
|
781
782
|
...r
|
|
782
783
|
}
|
|
783
784
|
),
|
|
784
|
-
v != null && /* @__PURE__ */ e("p", { id:
|
|
785
|
+
v != null && /* @__PURE__ */ e("p", { id: p, className: _(_e.message, i && _e.error), children: v })
|
|
785
786
|
] });
|
|
786
|
-
}),
|
|
787
|
-
field:
|
|
788
|
-
label:
|
|
789
|
-
textarea:
|
|
790
|
-
invalid:
|
|
791
|
-
md:
|
|
792
|
-
sm:
|
|
793
|
-
message:
|
|
794
|
-
error:
|
|
795
|
-
},
|
|
796
|
-
const m = R(),
|
|
797
|
-
return /* @__PURE__ */
|
|
798
|
-
t && /* @__PURE__ */ e("label", { htmlFor:
|
|
787
|
+
}), bl = "textarea-module__field___KluQf", fl = "textarea-module__label___ejhyZ", vl = "textarea-module__textarea___0y-7v", gl = "textarea-module__invalid___71TQR", yl = "textarea-module__md___88VHx", $l = "textarea-module__sm___W7F60", wl = "textarea-module__message___G-p-4", kl = "textarea-module__error___EkXKJ", de = {
|
|
788
|
+
field: bl,
|
|
789
|
+
label: fl,
|
|
790
|
+
textarea: vl,
|
|
791
|
+
invalid: gl,
|
|
792
|
+
md: yl,
|
|
793
|
+
sm: $l,
|
|
794
|
+
message: wl,
|
|
795
|
+
error: kl
|
|
796
|
+
}, S_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, ...r }, u) {
|
|
797
|
+
const m = R(), c = a ?? `fui-textarea-${m}`, p = `fui-textarea-message-${m}`, i = l != null, v = i ? l : n;
|
|
798
|
+
return /* @__PURE__ */ b("div", { className: _(de.field, d), children: [
|
|
799
|
+
t && /* @__PURE__ */ e("label", { htmlFor: c, className: de.label, children: t }),
|
|
799
800
|
/* @__PURE__ */ e(
|
|
800
801
|
"textarea",
|
|
801
802
|
{
|
|
802
|
-
ref:
|
|
803
|
-
id:
|
|
804
|
-
className:
|
|
805
|
-
"aria-invalid":
|
|
806
|
-
"aria-describedby": v != null ?
|
|
803
|
+
ref: u,
|
|
804
|
+
id: c,
|
|
805
|
+
className: _(de.textarea, de[s], i && de.invalid),
|
|
806
|
+
"aria-invalid": i || void 0,
|
|
807
|
+
"aria-describedby": v != null ? p : void 0,
|
|
807
808
|
...r
|
|
808
809
|
}
|
|
809
810
|
),
|
|
810
|
-
v != null && /* @__PURE__ */ e("p", { id:
|
|
811
|
+
v != null && /* @__PURE__ */ e("p", { id: p, className: _(de.message, i && de.error), children: v })
|
|
811
812
|
] });
|
|
812
|
-
}),
|
|
813
|
-
field:
|
|
814
|
-
label:
|
|
815
|
-
control:
|
|
816
|
-
trigger:
|
|
817
|
-
placeholder:
|
|
818
|
-
value:
|
|
819
|
-
arrow:
|
|
820
|
-
invalid:
|
|
821
|
-
md:
|
|
822
|
-
sm:
|
|
823
|
-
list:
|
|
824
|
-
option:
|
|
825
|
-
active:
|
|
826
|
-
optionDisabled:
|
|
827
|
-
native:
|
|
828
|
-
message:
|
|
829
|
-
error:
|
|
830
|
-
},
|
|
813
|
+
}), Nl = "select-module__field___8gAFH", xl = "select-module__label___ay-3s", Ml = "select-module__control___gJhql", Dl = "select-module__trigger___xMYHi", Il = "select-module__placeholder___0VOFP", Bl = "select-module__value___S3Cae", Ll = "select-module__arrow___i1IUe", Sl = "select-module__invalid___xa4uh", Cl = "select-module__md___R2uu2", El = "select-module__sm___cCEld", zl = "select-module__list___o8hVj", Tl = "select-module__option___vNnue", Fl = "select-module__active___055r4", Kl = "select-module__optionDisabled___ex2zq", Pl = "select-module__native___O1NJL", Rl = "select-module__message___9ddQu", Ol = "select-module__error___P5RBk", T = {
|
|
814
|
+
field: Nl,
|
|
815
|
+
label: xl,
|
|
816
|
+
control: Ml,
|
|
817
|
+
trigger: Dl,
|
|
818
|
+
placeholder: Il,
|
|
819
|
+
value: Bl,
|
|
820
|
+
arrow: Ll,
|
|
821
|
+
invalid: Sl,
|
|
822
|
+
md: Cl,
|
|
823
|
+
sm: El,
|
|
824
|
+
list: zl,
|
|
825
|
+
option: Tl,
|
|
826
|
+
active: Fl,
|
|
827
|
+
optionDisabled: Kl,
|
|
828
|
+
native: Pl,
|
|
829
|
+
message: Rl,
|
|
830
|
+
error: Ol
|
|
831
|
+
}, C_ = z(function({
|
|
831
832
|
options: t,
|
|
832
833
|
value: n,
|
|
833
|
-
defaultValue:
|
|
834
|
-
onChange:
|
|
834
|
+
defaultValue: l,
|
|
835
|
+
onChange: s,
|
|
835
836
|
label: a,
|
|
836
|
-
helperText:
|
|
837
|
+
helperText: d,
|
|
837
838
|
error: r,
|
|
838
|
-
size:
|
|
839
|
+
size: u = "md",
|
|
839
840
|
placeholder: m = "Select…",
|
|
840
|
-
disabled:
|
|
841
|
-
name:
|
|
842
|
-
required:
|
|
841
|
+
disabled: c = !1,
|
|
842
|
+
name: p,
|
|
843
|
+
required: i,
|
|
843
844
|
id: v,
|
|
844
|
-
className:
|
|
845
|
-
},
|
|
846
|
-
const
|
|
847
|
-
for (let
|
|
845
|
+
className: h
|
|
846
|
+
}, g) {
|
|
847
|
+
const y = R(), N = v ?? `fui-select-${y}`, $ = `fui-select-list-${y}`, M = `fui-select-message-${y}`, D = (x) => `${N}-option-${x}`, S = n !== void 0, [C, O] = Y(l ?? ""), j = S ? n : C, [I, w] = Y(!1), [B, f] = Y(-1), k = E(null), A = E(null), ae = r != null, W = ae ? r : d, $e = t.findIndex((x) => x.value === j), we = $e >= 0 ? t[$e] : void 0, Oe = () => t.findIndex((x) => !x.disabled), We = () => {
|
|
848
|
+
for (let x = t.length - 1; x >= 0; x--) if (!t[x].disabled) return x;
|
|
848
849
|
return -1;
|
|
849
|
-
},
|
|
850
|
-
for (let
|
|
851
|
-
return
|
|
852
|
-
},
|
|
853
|
-
for (let
|
|
854
|
-
return
|
|
850
|
+
}, Ze = (x) => {
|
|
851
|
+
for (let L = x + 1; L < t.length; L++) if (!t[L].disabled) return L;
|
|
852
|
+
return x;
|
|
853
|
+
}, Ve = (x) => {
|
|
854
|
+
for (let L = x - 1; L >= 0; L--) if (!t[L].disabled) return L;
|
|
855
|
+
return x;
|
|
855
856
|
};
|
|
856
|
-
|
|
857
|
-
if (!
|
|
858
|
-
const
|
|
859
|
-
var
|
|
860
|
-
(
|
|
857
|
+
le(() => {
|
|
858
|
+
if (!I) return;
|
|
859
|
+
const x = (L) => {
|
|
860
|
+
var Ae;
|
|
861
|
+
(Ae = k.current) != null && Ae.contains(L.target) || w(!1);
|
|
861
862
|
};
|
|
862
|
-
return window.addEventListener("pointerdown",
|
|
863
|
-
}, [
|
|
864
|
-
const
|
|
865
|
-
|
|
866
|
-
},
|
|
867
|
-
var
|
|
868
|
-
|
|
869
|
-
}, Xe = (
|
|
870
|
-
switch (
|
|
863
|
+
return window.addEventListener("pointerdown", x), () => window.removeEventListener("pointerdown", x);
|
|
864
|
+
}, [I]);
|
|
865
|
+
const ke = () => {
|
|
866
|
+
f($e >= 0 ? $e : Oe()), w(!0);
|
|
867
|
+
}, Te = (x) => {
|
|
868
|
+
var L;
|
|
869
|
+
S || O(x), s == null || s(x), w(!1), (L = A.current) == null || L.focus();
|
|
870
|
+
}, Xe = (x) => {
|
|
871
|
+
switch (x.key) {
|
|
871
872
|
case "ArrowDown":
|
|
872
|
-
|
|
873
|
+
x.preventDefault(), I ? f((L) => Ze(L)) : ke();
|
|
873
874
|
break;
|
|
874
875
|
case "ArrowUp":
|
|
875
|
-
|
|
876
|
+
x.preventDefault(), I ? f((L) => Ve(L)) : ke();
|
|
876
877
|
break;
|
|
877
878
|
case "Home":
|
|
878
|
-
|
|
879
|
+
I && (x.preventDefault(), f(Oe()));
|
|
879
880
|
break;
|
|
880
881
|
case "End":
|
|
881
|
-
|
|
882
|
+
I && (x.preventDefault(), f(We()));
|
|
882
883
|
break;
|
|
883
884
|
case "Enter":
|
|
884
885
|
case " ":
|
|
885
|
-
|
|
886
|
+
x.preventDefault(), I && B >= 0 ? Te(t[B].value) : ke();
|
|
886
887
|
break;
|
|
887
888
|
case "Escape":
|
|
888
|
-
|
|
889
|
+
I && (x.preventDefault(), w(!1));
|
|
889
890
|
break;
|
|
890
891
|
case "Tab":
|
|
891
|
-
|
|
892
|
+
I && w(!1);
|
|
892
893
|
break;
|
|
893
894
|
}
|
|
894
895
|
};
|
|
895
|
-
return /* @__PURE__ */
|
|
896
|
-
a && /* @__PURE__ */ e("label", { htmlFor:
|
|
897
|
-
/* @__PURE__ */
|
|
898
|
-
/* @__PURE__ */
|
|
896
|
+
return /* @__PURE__ */ b("div", { ref: k, className: _(T.field, h), children: [
|
|
897
|
+
a && /* @__PURE__ */ e("label", { htmlFor: N, className: T.label, children: a }),
|
|
898
|
+
/* @__PURE__ */ b("div", { className: T.control, children: [
|
|
899
|
+
/* @__PURE__ */ b(
|
|
899
900
|
"button",
|
|
900
901
|
{
|
|
901
|
-
ref:
|
|
902
|
+
ref: A,
|
|
902
903
|
type: "button",
|
|
903
|
-
id:
|
|
904
|
+
id: N,
|
|
904
905
|
role: "combobox",
|
|
905
906
|
"aria-haspopup": "listbox",
|
|
906
|
-
"aria-expanded":
|
|
907
|
-
"aria-controls":
|
|
908
|
-
"aria-activedescendant":
|
|
909
|
-
"aria-invalid":
|
|
910
|
-
"aria-describedby":
|
|
911
|
-
disabled:
|
|
912
|
-
className:
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
!
|
|
907
|
+
"aria-expanded": I,
|
|
908
|
+
"aria-controls": $,
|
|
909
|
+
"aria-activedescendant": I && B >= 0 ? D(B) : void 0,
|
|
910
|
+
"aria-invalid": ae || void 0,
|
|
911
|
+
"aria-describedby": W != null ? M : void 0,
|
|
912
|
+
disabled: c,
|
|
913
|
+
className: _(
|
|
914
|
+
T.trigger,
|
|
915
|
+
T[u],
|
|
916
|
+
ae && T.invalid,
|
|
917
|
+
!we && T.placeholder
|
|
917
918
|
),
|
|
918
|
-
onClick: () =>
|
|
919
|
+
onClick: () => I ? w(!1) : ke(),
|
|
919
920
|
onKeyDown: Xe,
|
|
920
921
|
children: [
|
|
921
|
-
/* @__PURE__ */ e("span", { className:
|
|
922
|
-
/* @__PURE__ */ e("span", { className:
|
|
922
|
+
/* @__PURE__ */ e("span", { className: T.value, children: we ? we.label : m }),
|
|
923
|
+
/* @__PURE__ */ e("span", { className: T.arrow, "aria-hidden": "true" })
|
|
923
924
|
]
|
|
924
925
|
}
|
|
925
926
|
),
|
|
926
|
-
|
|
927
|
+
I && /* @__PURE__ */ e("div", { id: $, role: "listbox", tabIndex: -1, className: T.list, children: t.map((x, L) => /* @__PURE__ */ e(
|
|
927
928
|
"button",
|
|
928
929
|
{
|
|
929
930
|
type: "button",
|
|
930
|
-
id: D(
|
|
931
|
+
id: D(L),
|
|
931
932
|
role: "option",
|
|
932
933
|
tabIndex: -1,
|
|
933
|
-
"aria-selected":
|
|
934
|
-
disabled:
|
|
935
|
-
className:
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
934
|
+
"aria-selected": x.value === j,
|
|
935
|
+
disabled: x.disabled,
|
|
936
|
+
className: _(
|
|
937
|
+
T.option,
|
|
938
|
+
L === B && T.active,
|
|
939
|
+
x.disabled && T.optionDisabled
|
|
939
940
|
),
|
|
940
|
-
onPointerMove: () => !
|
|
941
|
-
onClick: () =>
|
|
942
|
-
children:
|
|
941
|
+
onPointerMove: () => !x.disabled && f(L),
|
|
942
|
+
onClick: () => Te(x.value),
|
|
943
|
+
children: x.label
|
|
943
944
|
},
|
|
944
|
-
|
|
945
|
+
x.value
|
|
945
946
|
)) })
|
|
946
947
|
] }),
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ b(
|
|
948
949
|
"select",
|
|
949
950
|
{
|
|
950
|
-
ref:
|
|
951
|
-
name:
|
|
952
|
-
value:
|
|
953
|
-
required:
|
|
954
|
-
disabled:
|
|
951
|
+
ref: g,
|
|
952
|
+
name: p,
|
|
953
|
+
value: j,
|
|
954
|
+
required: i,
|
|
955
|
+
disabled: c,
|
|
955
956
|
"aria-hidden": "true",
|
|
956
957
|
tabIndex: -1,
|
|
957
|
-
className:
|
|
958
|
-
onChange: (
|
|
958
|
+
className: T.native,
|
|
959
|
+
onChange: (x) => Te(x.target.value),
|
|
959
960
|
children: [
|
|
960
|
-
!
|
|
961
|
-
t.map((
|
|
961
|
+
!we && /* @__PURE__ */ e("option", { value: j }),
|
|
962
|
+
t.map((x) => /* @__PURE__ */ e("option", { value: x.value, disabled: x.disabled, children: x.label }, x.value))
|
|
962
963
|
]
|
|
963
964
|
}
|
|
964
965
|
),
|
|
965
|
-
|
|
966
|
+
W != null && /* @__PURE__ */ e("p", { id: M, className: _(T.message, ae && T.error), children: W })
|
|
966
967
|
] });
|
|
967
|
-
}),
|
|
968
|
-
field:
|
|
969
|
-
control:
|
|
970
|
-
disabled:
|
|
971
|
-
input:
|
|
972
|
-
box:
|
|
973
|
-
text:
|
|
974
|
-
invalid:
|
|
975
|
-
md:
|
|
976
|
-
sm:
|
|
977
|
-
message:
|
|
978
|
-
error:
|
|
979
|
-
},
|
|
980
|
-
const
|
|
981
|
-
return /* @__PURE__ */
|
|
982
|
-
/* @__PURE__ */
|
|
968
|
+
}), Al = "checkbox-module__field___RelhS", Gl = "checkbox-module__control___byZMh", jl = "checkbox-module__disabled___Ba3GC", Yl = "checkbox-module__input___Ptgt7", Hl = "checkbox-module__box___yAh-r", ql = "checkbox-module__text___YbsL3", Ul = "checkbox-module__invalid___-QWUO", Wl = "checkbox-module__md___b-TNq", Zl = "checkbox-module__sm___uCkXv", Vl = "checkbox-module__message___CKZrQ", Xl = "checkbox-module__error___9UaCv", Z = {
|
|
969
|
+
field: Al,
|
|
970
|
+
control: Gl,
|
|
971
|
+
disabled: jl,
|
|
972
|
+
input: Yl,
|
|
973
|
+
box: Hl,
|
|
974
|
+
text: ql,
|
|
975
|
+
invalid: Ul,
|
|
976
|
+
md: Wl,
|
|
977
|
+
sm: Zl,
|
|
978
|
+
message: Vl,
|
|
979
|
+
error: Xl
|
|
980
|
+
}, E_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, disabled: r, ...u }, m) {
|
|
981
|
+
const c = R(), p = a ?? `fui-checkbox-${c}`, i = `fui-checkbox-message-${c}`, v = l != null, h = v ? l : n;
|
|
982
|
+
return /* @__PURE__ */ b("div", { className: _(Z.field, d), children: [
|
|
983
|
+
/* @__PURE__ */ b(
|
|
983
984
|
"label",
|
|
984
985
|
{
|
|
985
|
-
htmlFor:
|
|
986
|
-
className:
|
|
986
|
+
htmlFor: p,
|
|
987
|
+
className: _(Z.control, Z[s], r && Z.disabled),
|
|
987
988
|
children: [
|
|
988
989
|
/* @__PURE__ */ e(
|
|
989
990
|
"input",
|
|
990
991
|
{
|
|
991
992
|
ref: m,
|
|
992
|
-
id:
|
|
993
|
+
id: p,
|
|
993
994
|
type: "checkbox",
|
|
994
|
-
className:
|
|
995
|
+
className: Z.input,
|
|
995
996
|
disabled: r,
|
|
996
997
|
"aria-invalid": v || void 0,
|
|
997
|
-
"aria-describedby":
|
|
998
|
-
...
|
|
998
|
+
"aria-describedby": h != null ? i : void 0,
|
|
999
|
+
...u
|
|
999
1000
|
}
|
|
1000
1001
|
),
|
|
1001
|
-
/* @__PURE__ */ e("span", { className:
|
|
1002
|
-
t && /* @__PURE__ */ e("span", { className:
|
|
1002
|
+
/* @__PURE__ */ e("span", { className: _(Z.box, v && Z.invalid), "aria-hidden": "true" }),
|
|
1003
|
+
t && /* @__PURE__ */ e("span", { className: Z.text, children: t })
|
|
1003
1004
|
]
|
|
1004
1005
|
}
|
|
1005
1006
|
),
|
|
1006
|
-
|
|
1007
|
+
h != null && /* @__PURE__ */ e("p", { id: i, className: _(Z.message, v && Z.error), children: h })
|
|
1007
1008
|
] });
|
|
1008
|
-
}),
|
|
1009
|
-
field:
|
|
1010
|
-
control:
|
|
1011
|
-
disabled:
|
|
1012
|
-
input:
|
|
1013
|
-
dot:
|
|
1014
|
-
text:
|
|
1015
|
-
invalid:
|
|
1016
|
-
md:
|
|
1017
|
-
sm:
|
|
1018
|
-
message:
|
|
1019
|
-
error:
|
|
1020
|
-
},
|
|
1021
|
-
const
|
|
1022
|
-
return /* @__PURE__ */
|
|
1023
|
-
/* @__PURE__ */
|
|
1009
|
+
}), Jl = "radio-module__field___zfiOx", Ql = "radio-module__control___E2qkU", es = "radio-module__disabled___cBUku", ts = "radio-module__input___M2nFJ", os = "radio-module__dot___jVJ-d", ns = "radio-module__text___wcXr-", ls = "radio-module__invalid___wV1rf", ss = "radio-module__md___UQmih", as = "radio-module__sm___7xAyp", cs = "radio-module__message___WSx2O", rs = "radio-module__error___Mi15v", V = {
|
|
1010
|
+
field: Jl,
|
|
1011
|
+
control: Ql,
|
|
1012
|
+
disabled: es,
|
|
1013
|
+
input: ts,
|
|
1014
|
+
dot: os,
|
|
1015
|
+
text: ns,
|
|
1016
|
+
invalid: ls,
|
|
1017
|
+
md: ss,
|
|
1018
|
+
sm: as,
|
|
1019
|
+
message: cs,
|
|
1020
|
+
error: rs
|
|
1021
|
+
}, _s = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, disabled: r, ...u }, m) {
|
|
1022
|
+
const c = R(), p = a ?? `fui-radio-${c}`, i = `fui-radio-message-${c}`, v = l != null, h = v ? l : n;
|
|
1023
|
+
return /* @__PURE__ */ b("div", { className: _(V.field, d), children: [
|
|
1024
|
+
/* @__PURE__ */ b(
|
|
1024
1025
|
"label",
|
|
1025
1026
|
{
|
|
1026
|
-
htmlFor:
|
|
1027
|
-
className:
|
|
1027
|
+
htmlFor: p,
|
|
1028
|
+
className: _(V.control, V[s], r && V.disabled),
|
|
1028
1029
|
children: [
|
|
1029
1030
|
/* @__PURE__ */ e(
|
|
1030
1031
|
"input",
|
|
1031
1032
|
{
|
|
1032
1033
|
ref: m,
|
|
1033
|
-
id:
|
|
1034
|
+
id: p,
|
|
1034
1035
|
type: "radio",
|
|
1035
|
-
className:
|
|
1036
|
+
className: V.input,
|
|
1036
1037
|
disabled: r,
|
|
1037
1038
|
"aria-invalid": v || void 0,
|
|
1038
|
-
"aria-describedby":
|
|
1039
|
-
...
|
|
1039
|
+
"aria-describedby": h != null ? i : void 0,
|
|
1040
|
+
...u
|
|
1040
1041
|
}
|
|
1041
1042
|
),
|
|
1042
|
-
/* @__PURE__ */ e("span", { className:
|
|
1043
|
-
t && /* @__PURE__ */ e("span", { className:
|
|
1043
|
+
/* @__PURE__ */ e("span", { className: _(V.dot, v && V.invalid), "aria-hidden": "true" }),
|
|
1044
|
+
t && /* @__PURE__ */ e("span", { className: V.text, children: t })
|
|
1044
1045
|
]
|
|
1045
1046
|
}
|
|
1046
1047
|
),
|
|
1047
|
-
|
|
1048
|
+
h != null && /* @__PURE__ */ e("p", { id: i, className: _(V.message, v && V.error), children: h })
|
|
1048
1049
|
] });
|
|
1049
|
-
}),
|
|
1050
|
-
group:
|
|
1051
|
-
legend:
|
|
1052
|
-
options:
|
|
1053
|
-
vertical:
|
|
1054
|
-
horizontal:
|
|
1055
|
-
message:
|
|
1056
|
-
error:
|
|
1050
|
+
}), ds = "radio-group-module__group___PqCH0", is = "radio-group-module__legend___PlUYS", us = "radio-group-module__options___5BrnU", ms = "radio-group-module__vertical___3Vhsy", ps = "radio-group-module__horizontal___Y5vdI", hs = "radio-group-module__message___R5JZm", bs = "radio-group-module__error___NRRJw", pe = {
|
|
1051
|
+
group: ds,
|
|
1052
|
+
legend: is,
|
|
1053
|
+
options: us,
|
|
1054
|
+
vertical: ms,
|
|
1055
|
+
horizontal: ps,
|
|
1056
|
+
message: hs,
|
|
1057
|
+
error: bs
|
|
1057
1058
|
};
|
|
1058
|
-
function
|
|
1059
|
+
function z_({
|
|
1059
1060
|
options: o,
|
|
1060
1061
|
value: t,
|
|
1061
1062
|
onChange: n,
|
|
1062
|
-
name:
|
|
1063
|
-
legend:
|
|
1063
|
+
name: l,
|
|
1064
|
+
legend: s,
|
|
1064
1065
|
orientation: a = "vertical",
|
|
1065
|
-
size:
|
|
1066
|
+
size: d = "md",
|
|
1066
1067
|
helperText: r,
|
|
1067
|
-
error:
|
|
1068
|
+
error: u,
|
|
1068
1069
|
disabled: m,
|
|
1069
|
-
className:
|
|
1070
|
-
...
|
|
1070
|
+
className: c,
|
|
1071
|
+
...p
|
|
1071
1072
|
}) {
|
|
1072
|
-
const
|
|
1073
|
-
return /* @__PURE__ */
|
|
1073
|
+
const i = R(), v = l ?? `fui-radio-group-${i}`, h = `fui-radio-group-message-${i}`, g = u != null, y = g ? u : r;
|
|
1074
|
+
return /* @__PURE__ */ b(
|
|
1074
1075
|
"fieldset",
|
|
1075
1076
|
{
|
|
1076
|
-
className:
|
|
1077
|
+
className: _(pe.group, c),
|
|
1077
1078
|
disabled: m,
|
|
1078
|
-
"aria-invalid":
|
|
1079
|
-
"aria-describedby":
|
|
1080
|
-
...
|
|
1079
|
+
"aria-invalid": g || void 0,
|
|
1080
|
+
"aria-describedby": y != null ? h : void 0,
|
|
1081
|
+
...p,
|
|
1081
1082
|
children: [
|
|
1082
|
-
|
|
1083
|
-
/* @__PURE__ */ e("div", { className:
|
|
1084
|
-
|
|
1083
|
+
s != null && /* @__PURE__ */ e("legend", { className: pe.legend, children: s }),
|
|
1084
|
+
/* @__PURE__ */ e("div", { className: _(pe.options, pe[a]), children: o.map((N) => /* @__PURE__ */ e(
|
|
1085
|
+
_s,
|
|
1085
1086
|
{
|
|
1086
1087
|
name: v,
|
|
1087
|
-
value:
|
|
1088
|
-
checked:
|
|
1089
|
-
disabled:
|
|
1090
|
-
label:
|
|
1091
|
-
helperText:
|
|
1092
|
-
size:
|
|
1093
|
-
onChange: () => n(
|
|
1088
|
+
value: N.value,
|
|
1089
|
+
checked: N.value === t,
|
|
1090
|
+
disabled: N.disabled,
|
|
1091
|
+
label: N.label,
|
|
1092
|
+
helperText: N.helperText,
|
|
1093
|
+
size: d,
|
|
1094
|
+
onChange: () => n(N.value)
|
|
1094
1095
|
},
|
|
1095
|
-
|
|
1096
|
+
N.value
|
|
1096
1097
|
)) }),
|
|
1097
|
-
|
|
1098
|
+
y != null && /* @__PURE__ */ e("p", { id: h, className: _(pe.message, g && pe.error), children: y })
|
|
1098
1099
|
]
|
|
1099
1100
|
}
|
|
1100
1101
|
);
|
|
1101
1102
|
}
|
|
1102
|
-
const
|
|
1103
|
-
field:
|
|
1104
|
-
control:
|
|
1105
|
-
disabled:
|
|
1106
|
-
input:
|
|
1107
|
-
track:
|
|
1108
|
-
knob:
|
|
1109
|
-
text:
|
|
1110
|
-
invalid:
|
|
1111
|
-
md:
|
|
1112
|
-
sm:
|
|
1113
|
-
message:
|
|
1114
|
-
error:
|
|
1115
|
-
},
|
|
1116
|
-
const
|
|
1117
|
-
return /* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */
|
|
1103
|
+
const fs = "switch-module__field___zh7DJ", vs = "switch-module__control___g0N-0", gs = "switch-module__disabled___LQtR1", ys = "switch-module__input___YKZRj", $s = "switch-module__track___QNvnO", ws = "switch-module__knob___ayTTe", ks = "switch-module__text___RCdR5", Ns = "switch-module__invalid___9wtmg", xs = "switch-module__md___bJSQP", Ms = "switch-module__sm___TIccZ", Ds = "switch-module__message___X9193", Is = "switch-module__error___brY-r", q = {
|
|
1104
|
+
field: fs,
|
|
1105
|
+
control: vs,
|
|
1106
|
+
disabled: gs,
|
|
1107
|
+
input: ys,
|
|
1108
|
+
track: $s,
|
|
1109
|
+
knob: ws,
|
|
1110
|
+
text: ks,
|
|
1111
|
+
invalid: Ns,
|
|
1112
|
+
md: xs,
|
|
1113
|
+
sm: Ms,
|
|
1114
|
+
message: Ds,
|
|
1115
|
+
error: Is
|
|
1116
|
+
}, T_ = z(function({ label: t, helperText: n, error: l, size: s = "md", id: a, className: d, disabled: r, ...u }, m) {
|
|
1117
|
+
const c = R(), p = a ?? `fui-switch-${c}`, i = `fui-switch-message-${c}`, v = l != null, h = v ? l : n;
|
|
1118
|
+
return /* @__PURE__ */ b("div", { className: _(q.field, d), children: [
|
|
1119
|
+
/* @__PURE__ */ b(
|
|
1119
1120
|
"label",
|
|
1120
1121
|
{
|
|
1121
|
-
htmlFor:
|
|
1122
|
-
className:
|
|
1122
|
+
htmlFor: p,
|
|
1123
|
+
className: _(q.control, q[s], r && q.disabled),
|
|
1123
1124
|
children: [
|
|
1124
1125
|
/* @__PURE__ */ e(
|
|
1125
1126
|
"input",
|
|
1126
1127
|
{
|
|
1127
1128
|
ref: m,
|
|
1128
|
-
id:
|
|
1129
|
+
id: p,
|
|
1129
1130
|
type: "checkbox",
|
|
1130
|
-
className:
|
|
1131
|
+
className: q.input,
|
|
1131
1132
|
disabled: r,
|
|
1132
1133
|
"aria-invalid": v || void 0,
|
|
1133
|
-
"aria-describedby":
|
|
1134
|
-
...
|
|
1134
|
+
"aria-describedby": h != null ? i : void 0,
|
|
1135
|
+
...u
|
|
1135
1136
|
}
|
|
1136
1137
|
),
|
|
1137
|
-
/* @__PURE__ */ e("span", { className:
|
|
1138
|
-
t && /* @__PURE__ */ e("span", { className:
|
|
1138
|
+
/* @__PURE__ */ e("span", { className: _(q.track, v && q.invalid), "aria-hidden": "true", children: /* @__PURE__ */ e("span", { className: q.knob }) }),
|
|
1139
|
+
t && /* @__PURE__ */ e("span", { className: q.text, children: t })
|
|
1139
1140
|
]
|
|
1140
1141
|
}
|
|
1141
1142
|
),
|
|
1142
|
-
|
|
1143
|
+
h != null && /* @__PURE__ */ e("p", { id: i, className: _(q.message, v && q.error), children: h })
|
|
1143
1144
|
] });
|
|
1144
|
-
}),
|
|
1145
|
-
overlay:
|
|
1146
|
-
backdrop:
|
|
1147
|
-
panel:
|
|
1148
|
-
sm:
|
|
1149
|
-
md:
|
|
1150
|
-
lg:
|
|
1151
|
-
header:
|
|
1152
|
-
title:
|
|
1153
|
-
close:
|
|
1154
|
-
body:
|
|
1155
|
-
footer:
|
|
1156
|
-
errorText:
|
|
1157
|
-
},
|
|
1158
|
-
function
|
|
1159
|
-
const r = `fui-modal-title-${R()}`,
|
|
1160
|
-
return
|
|
1145
|
+
}), Bs = "modal-module__overlay___a52Ni", Ls = "modal-module__backdrop___RS4yj", Ss = "modal-module__panel___uPXuE", Cs = "modal-module__sm___DOlEI", Es = "modal-module__md___-evKM", zs = "modal-module__lg___AvEqd", Ts = "modal-module__header___iP09B", Fs = "modal-module__title___nj06m", Ks = "modal-module__close___gQou9", Ps = "modal-module__body___Y-EdA", Rs = "modal-module__footer___z9JqA", Os = "modal-module__errorText___cjMEM", Q = {
|
|
1146
|
+
overlay: Bs,
|
|
1147
|
+
backdrop: Ls,
|
|
1148
|
+
panel: Ss,
|
|
1149
|
+
sm: Cs,
|
|
1150
|
+
md: Es,
|
|
1151
|
+
lg: zs,
|
|
1152
|
+
header: Ts,
|
|
1153
|
+
title: Fs,
|
|
1154
|
+
close: Ks,
|
|
1155
|
+
body: Ps,
|
|
1156
|
+
footer: Rs,
|
|
1157
|
+
errorText: Os
|
|
1158
|
+
}, As = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1159
|
+
function Gs({ open: o, onClose: t, title: n, size: l = "md", children: s, className: a }) {
|
|
1160
|
+
const r = `fui-modal-title-${R()}`, u = E(null), m = E(null), c = E(t);
|
|
1161
|
+
return c.current = t, le(() => {
|
|
1161
1162
|
var v;
|
|
1162
1163
|
if (!o) return;
|
|
1163
|
-
m.current = document.activeElement, (v =
|
|
1164
|
-
const
|
|
1165
|
-
var
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1164
|
+
m.current = document.activeElement, (v = u.current) == null || v.focus();
|
|
1165
|
+
const p = (h) => {
|
|
1166
|
+
var $, M;
|
|
1167
|
+
if (h.key === "Escape") {
|
|
1168
|
+
h.preventDefault(), c.current();
|
|
1168
1169
|
return;
|
|
1169
1170
|
}
|
|
1170
|
-
if (
|
|
1171
|
-
const
|
|
1172
|
-
if (!
|
|
1173
|
-
|
|
1171
|
+
if (h.key !== "Tab") return;
|
|
1172
|
+
const g = ($ = u.current) == null ? void 0 : $.querySelectorAll(As);
|
|
1173
|
+
if (!g || g.length === 0) {
|
|
1174
|
+
h.preventDefault(), (M = u.current) == null || M.focus();
|
|
1174
1175
|
return;
|
|
1175
1176
|
}
|
|
1176
|
-
const
|
|
1177
|
-
|
|
1177
|
+
const y = g[0], N = g[g.length - 1];
|
|
1178
|
+
h.shiftKey && document.activeElement === y ? (h.preventDefault(), N.focus()) : !h.shiftKey && document.activeElement === N && (h.preventDefault(), y.focus());
|
|
1178
1179
|
};
|
|
1179
|
-
document.addEventListener("keydown",
|
|
1180
|
-
const
|
|
1180
|
+
document.addEventListener("keydown", p);
|
|
1181
|
+
const i = document.body.style.overflow;
|
|
1181
1182
|
return document.body.style.overflow = "hidden", () => {
|
|
1182
|
-
var
|
|
1183
|
-
document.removeEventListener("keydown",
|
|
1183
|
+
var h;
|
|
1184
|
+
document.removeEventListener("keydown", p), document.body.style.overflow = i, (h = m.current) == null || h.focus();
|
|
1184
1185
|
};
|
|
1185
|
-
}, [o]), !o || typeof document > "u" ? null :
|
|
1186
|
-
/* @__PURE__ */
|
|
1186
|
+
}, [o]), !o || typeof document > "u" ? null : ze(
|
|
1187
|
+
/* @__PURE__ */ b("div", { className: Q.overlay, children: [
|
|
1187
1188
|
/* @__PURE__ */ e(
|
|
1188
1189
|
"button",
|
|
1189
1190
|
{
|
|
1190
1191
|
type: "button",
|
|
1191
|
-
className:
|
|
1192
|
+
className: Q.backdrop,
|
|
1192
1193
|
"aria-label": "Close modal",
|
|
1193
1194
|
onClick: t
|
|
1194
1195
|
}
|
|
1195
1196
|
),
|
|
1196
|
-
/* @__PURE__ */
|
|
1197
|
+
/* @__PURE__ */ b(
|
|
1197
1198
|
"div",
|
|
1198
1199
|
{
|
|
1199
|
-
ref:
|
|
1200
|
-
className:
|
|
1200
|
+
ref: u,
|
|
1201
|
+
className: _(Q.panel, Q[l], a),
|
|
1201
1202
|
role: "dialog",
|
|
1202
1203
|
"aria-modal": "true",
|
|
1203
1204
|
"aria-labelledby": n ? r : void 0,
|
|
1204
1205
|
tabIndex: -1,
|
|
1205
1206
|
children: [
|
|
1206
|
-
/* @__PURE__ */
|
|
1207
|
-
n && /* @__PURE__ */ e("h2", { id: r, className:
|
|
1208
|
-
/* @__PURE__ */ e("button", { type: "button", className:
|
|
1207
|
+
/* @__PURE__ */ b("div", { className: Q.header, children: [
|
|
1208
|
+
n && /* @__PURE__ */ e("h2", { id: r, className: Q.title, children: n }),
|
|
1209
|
+
/* @__PURE__ */ e("button", { type: "button", className: Q.close, "aria-label": "Close modal", onClick: t, children: "×" })
|
|
1209
1210
|
] }),
|
|
1210
|
-
|
|
1211
|
+
s
|
|
1211
1212
|
]
|
|
1212
1213
|
}
|
|
1213
1214
|
)
|
|
@@ -1215,104 +1216,104 @@ function As({ open: o, onClose: t, title: n, size: s = "md", children: l, classN
|
|
|
1215
1216
|
document.body
|
|
1216
1217
|
);
|
|
1217
1218
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return /* @__PURE__ */ e("div", { className:
|
|
1219
|
+
function js({ children: o, className: t }) {
|
|
1220
|
+
return /* @__PURE__ */ e("div", { className: _(Q.body, t), children: o });
|
|
1220
1221
|
}
|
|
1221
|
-
function
|
|
1222
|
-
return /* @__PURE__ */ e("div", { className:
|
|
1222
|
+
function Ys({ children: o, className: t }) {
|
|
1223
|
+
return /* @__PURE__ */ e("div", { className: _(Q.footer, t), children: o });
|
|
1223
1224
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return o ? /* @__PURE__ */ e("p", { role: "alert", className:
|
|
1225
|
+
function Hs({ children: o, className: t }) {
|
|
1226
|
+
return o ? /* @__PURE__ */ e("p", { role: "alert", className: _(Q.errorText, t), children: o }) : null;
|
|
1226
1227
|
}
|
|
1227
|
-
const
|
|
1228
|
-
Body:
|
|
1229
|
-
Footer:
|
|
1230
|
-
Error:
|
|
1231
|
-
}),
|
|
1232
|
-
overlay:
|
|
1233
|
-
left:
|
|
1234
|
-
right:
|
|
1235
|
-
top:
|
|
1236
|
-
bottom:
|
|
1237
|
-
backdrop:
|
|
1238
|
-
fuiDrawerFade:
|
|
1239
|
-
panel:
|
|
1240
|
-
sm:
|
|
1241
|
-
md:
|
|
1242
|
-
lg:
|
|
1243
|
-
fuiDrawerInLeft:
|
|
1244
|
-
fuiDrawerInRight:
|
|
1245
|
-
fuiDrawerInTop:
|
|
1246
|
-
fuiDrawerInBottom:
|
|
1247
|
-
header:
|
|
1248
|
-
title:
|
|
1249
|
-
close:
|
|
1250
|
-
body:
|
|
1251
|
-
footer:
|
|
1252
|
-
},
|
|
1253
|
-
function
|
|
1228
|
+
const F_ = Object.assign(Gs, {
|
|
1229
|
+
Body: js,
|
|
1230
|
+
Footer: Ys,
|
|
1231
|
+
Error: Hs
|
|
1232
|
+
}), qs = "drawer-module__overlay___Cv-ju", Us = "drawer-module__left___4tJTY", Ws = "drawer-module__right___NA7oF", Zs = "drawer-module__top___SiK4I", Vs = "drawer-module__bottom___RBjGY", Xs = "drawer-module__backdrop___kai--", Js = "drawer-module__fui-drawer-fade___YtfHP", Qs = "drawer-module__panel___WEKZm", ea = "drawer-module__sm___KAlYn", ta = "drawer-module__md___waKLn", oa = "drawer-module__lg___DTfq5", na = "drawer-module__fui-drawer-in-left___PN8lB", la = "drawer-module__fui-drawer-in-right___eQ9wk", sa = "drawer-module__fui-drawer-in-top___ax1Au", aa = "drawer-module__fui-drawer-in-bottom___Cyf5m", ca = "drawer-module__header___IrV2g", ra = "drawer-module__title___-Oex-", _a = "drawer-module__close___9urOR", da = "drawer-module__body___fGi7v", ia = "drawer-module__footer___avfH-", U = {
|
|
1233
|
+
overlay: qs,
|
|
1234
|
+
left: Us,
|
|
1235
|
+
right: Ws,
|
|
1236
|
+
top: Zs,
|
|
1237
|
+
bottom: Vs,
|
|
1238
|
+
backdrop: Xs,
|
|
1239
|
+
fuiDrawerFade: Js,
|
|
1240
|
+
panel: Qs,
|
|
1241
|
+
sm: ea,
|
|
1242
|
+
md: ta,
|
|
1243
|
+
lg: oa,
|
|
1244
|
+
fuiDrawerInLeft: na,
|
|
1245
|
+
fuiDrawerInRight: la,
|
|
1246
|
+
fuiDrawerInTop: sa,
|
|
1247
|
+
fuiDrawerInBottom: aa,
|
|
1248
|
+
header: ca,
|
|
1249
|
+
title: ra,
|
|
1250
|
+
close: _a,
|
|
1251
|
+
body: da,
|
|
1252
|
+
footer: ia
|
|
1253
|
+
}, ua = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
1254
|
+
function ma({
|
|
1254
1255
|
open: o,
|
|
1255
1256
|
onClose: t,
|
|
1256
1257
|
side: n = "right",
|
|
1257
|
-
title:
|
|
1258
|
-
size:
|
|
1258
|
+
title: l,
|
|
1259
|
+
size: s = "md",
|
|
1259
1260
|
children: a,
|
|
1260
|
-
className:
|
|
1261
|
+
className: d
|
|
1261
1262
|
}) {
|
|
1262
|
-
const
|
|
1263
|
-
return
|
|
1264
|
-
var
|
|
1263
|
+
const u = `fui-drawer-title-${R()}`, m = E(null), c = E(null), p = E(t);
|
|
1264
|
+
return p.current = t, le(() => {
|
|
1265
|
+
var h;
|
|
1265
1266
|
if (!o) return;
|
|
1266
|
-
|
|
1267
|
-
const
|
|
1268
|
-
var
|
|
1269
|
-
if (
|
|
1270
|
-
|
|
1267
|
+
c.current = document.activeElement, (h = m.current) == null || h.focus();
|
|
1268
|
+
const i = (g) => {
|
|
1269
|
+
var M, D;
|
|
1270
|
+
if (g.key === "Escape") {
|
|
1271
|
+
g.preventDefault(), p.current();
|
|
1271
1272
|
return;
|
|
1272
1273
|
}
|
|
1273
|
-
if (
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1276
|
-
|
|
1274
|
+
if (g.key !== "Tab") return;
|
|
1275
|
+
const y = (M = m.current) == null ? void 0 : M.querySelectorAll(ua);
|
|
1276
|
+
if (!y || y.length === 0) {
|
|
1277
|
+
g.preventDefault(), (D = m.current) == null || D.focus();
|
|
1277
1278
|
return;
|
|
1278
1279
|
}
|
|
1279
|
-
const
|
|
1280
|
-
|
|
1280
|
+
const N = y[0], $ = y[y.length - 1];
|
|
1281
|
+
g.shiftKey && document.activeElement === N ? (g.preventDefault(), $.focus()) : !g.shiftKey && document.activeElement === $ && (g.preventDefault(), N.focus());
|
|
1281
1282
|
};
|
|
1282
|
-
document.addEventListener("keydown",
|
|
1283
|
+
document.addEventListener("keydown", i);
|
|
1283
1284
|
const v = document.body.style.overflow;
|
|
1284
1285
|
return document.body.style.overflow = "hidden", () => {
|
|
1285
|
-
var
|
|
1286
|
-
document.removeEventListener("keydown",
|
|
1286
|
+
var g;
|
|
1287
|
+
document.removeEventListener("keydown", i), document.body.style.overflow = v, (g = c.current) == null || g.focus();
|
|
1287
1288
|
};
|
|
1288
|
-
}, [o]), !o || typeof document > "u" ? null :
|
|
1289
|
-
/* @__PURE__ */
|
|
1289
|
+
}, [o]), !o || typeof document > "u" ? null : ze(
|
|
1290
|
+
/* @__PURE__ */ b("div", { className: _(U.overlay, U[n]), children: [
|
|
1290
1291
|
/* @__PURE__ */ e(
|
|
1291
1292
|
"button",
|
|
1292
1293
|
{
|
|
1293
1294
|
type: "button",
|
|
1294
|
-
className:
|
|
1295
|
+
className: U.backdrop,
|
|
1295
1296
|
"aria-label": "Close drawer",
|
|
1296
1297
|
onClick: t
|
|
1297
1298
|
}
|
|
1298
1299
|
),
|
|
1299
|
-
/* @__PURE__ */
|
|
1300
|
+
/* @__PURE__ */ b(
|
|
1300
1301
|
"div",
|
|
1301
1302
|
{
|
|
1302
1303
|
ref: m,
|
|
1303
|
-
className:
|
|
1304
|
+
className: _(U.panel, U[n], U[s], d),
|
|
1304
1305
|
role: "dialog",
|
|
1305
1306
|
"aria-modal": "true",
|
|
1306
|
-
"aria-labelledby":
|
|
1307
|
+
"aria-labelledby": l ? u : void 0,
|
|
1307
1308
|
tabIndex: -1,
|
|
1308
1309
|
children: [
|
|
1309
|
-
/* @__PURE__ */
|
|
1310
|
-
|
|
1310
|
+
/* @__PURE__ */ b("div", { className: U.header, children: [
|
|
1311
|
+
l && /* @__PURE__ */ e("h2", { id: u, className: U.title, children: l }),
|
|
1311
1312
|
/* @__PURE__ */ e(
|
|
1312
1313
|
"button",
|
|
1313
1314
|
{
|
|
1314
1315
|
type: "button",
|
|
1315
|
-
className:
|
|
1316
|
+
className: U.close,
|
|
1316
1317
|
"aria-label": "Close drawer",
|
|
1317
1318
|
onClick: t,
|
|
1318
1319
|
children: "×"
|
|
@@ -1327,938 +1328,995 @@ function ia({
|
|
|
1327
1328
|
document.body
|
|
1328
1329
|
);
|
|
1329
1330
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return /* @__PURE__ */ e("div", { className:
|
|
1331
|
+
function pa({ children: o, className: t }) {
|
|
1332
|
+
return /* @__PURE__ */ e("div", { className: _(U.body, t), children: o });
|
|
1332
1333
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return /* @__PURE__ */ e("div", { className:
|
|
1334
|
+
function ha({ children: o, className: t }) {
|
|
1335
|
+
return /* @__PURE__ */ e("div", { className: _(U.footer, t), children: o });
|
|
1335
1336
|
}
|
|
1336
|
-
const
|
|
1337
|
-
Body:
|
|
1338
|
-
Footer:
|
|
1339
|
-
}),
|
|
1340
|
-
item:
|
|
1341
|
-
active:
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1337
|
+
const K_ = Object.assign(ma, {
|
|
1338
|
+
Body: pa,
|
|
1339
|
+
Footer: ha
|
|
1340
|
+
}), ba = "list-item-module__item___KvZj7", fa = "list-item-module__active___UsL8O", va = "list-item-module__warn___LRPus", ga = "list-item-module__alert___OroeF", ya = "list-item-module__icon___2b4wU", $a = "list-item-module__content___e9u66", wa = "list-item-module__action___qGh0-", ka = "list-item-module__md___dpf7n", Na = "list-item-module__sm___6fwmf", ie = {
|
|
1341
|
+
item: ba,
|
|
1342
|
+
active: fa,
|
|
1343
|
+
warn: va,
|
|
1344
|
+
alert: ga,
|
|
1345
|
+
icon: ya,
|
|
1346
|
+
content: $a,
|
|
1347
|
+
action: wa,
|
|
1348
|
+
md: ka,
|
|
1349
|
+
sm: Na
|
|
1350
|
+
}, P_ = z(function({ size: t = "md", active: n = !1, tone: l = "default", icon: s, action: a, className: d, children: r, ...u }, m) {
|
|
1351
|
+
return /* @__PURE__ */ b(
|
|
1349
1352
|
"button",
|
|
1350
1353
|
{
|
|
1351
|
-
ref:
|
|
1354
|
+
ref: m,
|
|
1352
1355
|
type: "button",
|
|
1353
1356
|
"aria-current": n || void 0,
|
|
1354
|
-
className:
|
|
1355
|
-
|
|
1357
|
+
className: _(
|
|
1358
|
+
ie.item,
|
|
1359
|
+
ie[t],
|
|
1360
|
+
n && ie.active,
|
|
1361
|
+
l !== "default" && ie[l],
|
|
1362
|
+
d
|
|
1363
|
+
),
|
|
1364
|
+
...u,
|
|
1356
1365
|
children: [
|
|
1357
1366
|
s && /* @__PURE__ */ e("span", { className: ie.icon, children: s }),
|
|
1358
|
-
/* @__PURE__ */ e("span", { className: ie.content, children:
|
|
1359
|
-
|
|
1367
|
+
/* @__PURE__ */ e("span", { className: ie.content, children: r }),
|
|
1368
|
+
a && /* @__PURE__ */ e("span", { className: ie.action, children: a })
|
|
1360
1369
|
]
|
|
1361
1370
|
}
|
|
1362
1371
|
);
|
|
1363
|
-
}),
|
|
1364
|
-
alert:
|
|
1365
|
-
icon:
|
|
1366
|
-
message:
|
|
1367
|
-
dismiss:
|
|
1368
|
-
info:
|
|
1369
|
-
success:
|
|
1370
|
-
warning:
|
|
1371
|
-
error:
|
|
1372
|
-
},
|
|
1372
|
+
}), xa = "alert-module__alert___j7ZRS", Ma = "alert-module__icon___vbZHd", Da = "alert-module__message___klR2U", Ia = "alert-module__dismiss___f2uoG", Ba = "alert-module__info___PBo1l", La = "alert-module__success___AVBKS", Sa = "alert-module__warning___zkMaJ", Ca = "alert-module__error___cxg96", fe = {
|
|
1373
|
+
alert: xa,
|
|
1374
|
+
icon: Ma,
|
|
1375
|
+
message: Da,
|
|
1376
|
+
dismiss: Ia,
|
|
1377
|
+
info: Ba,
|
|
1378
|
+
success: La,
|
|
1379
|
+
warning: Sa,
|
|
1380
|
+
error: Ca
|
|
1381
|
+
}, Ea = {
|
|
1373
1382
|
info: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8 0a8 8 0 100 16A8 8 0 008 0zm1 12H7V7h2v5zM8 5.5A1.25 1.25 0 118 3a1.25 1.25 0 010 2.5z" }) }),
|
|
1374
1383
|
success: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.7l-4.4 4.4a1 1 0 01-1.4 0L3.7 8.3l1.4-1.4L6.6 8.4l3.7-3.7 1.4 1z" }) }),
|
|
1375
1384
|
warning: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M7.1 1.5a1 1 0 011.8 0l6.4 12A1 1 0 0114.4 15H1.6a1 1 0 01-.9-1.5l6.4-12zM7 6v4h2V6H7zm0 5v2h2v-2H7z" }) }),
|
|
1376
1385
|
error: /* @__PURE__ */ e("svg", { viewBox: "0 0 16 16", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ e("path", { d: "M8 0a8 8 0 100 16A8 8 0 008 0zm3 10.6L9.4 12 8 10.6 6.6 12 5 10.6 6.6 9 5 7.4 6.6 6 8 7.4 9.4 6 11 7.4 9.4 9 11 10.6z" }) })
|
|
1377
1386
|
};
|
|
1378
|
-
function
|
|
1387
|
+
function R_({
|
|
1379
1388
|
variant: o = "info",
|
|
1380
1389
|
dismissible: t = !1,
|
|
1381
1390
|
onDismiss: n,
|
|
1382
|
-
className:
|
|
1383
|
-
children:
|
|
1391
|
+
className: l,
|
|
1392
|
+
children: s,
|
|
1384
1393
|
...a
|
|
1385
1394
|
}) {
|
|
1386
|
-
return /* @__PURE__ */
|
|
1395
|
+
return /* @__PURE__ */ b(
|
|
1387
1396
|
"div",
|
|
1388
1397
|
{
|
|
1389
1398
|
role: o === "error" || o === "warning" ? "alert" : "status",
|
|
1390
|
-
className:
|
|
1399
|
+
className: _(fe.alert, fe[o], l),
|
|
1391
1400
|
...a,
|
|
1392
1401
|
children: [
|
|
1393
|
-
/* @__PURE__ */ e("span", { className:
|
|
1394
|
-
/* @__PURE__ */ e("div", { className:
|
|
1395
|
-
t && /* @__PURE__ */ e("button", { type: "button", "aria-label": "Dismiss", className:
|
|
1402
|
+
/* @__PURE__ */ e("span", { className: fe.icon, children: Ea[o] }),
|
|
1403
|
+
/* @__PURE__ */ e("div", { className: fe.message, children: s }),
|
|
1404
|
+
t && /* @__PURE__ */ e("button", { type: "button", "aria-label": "Dismiss", className: fe.dismiss, onClick: n, children: "×" })
|
|
1396
1405
|
]
|
|
1397
1406
|
}
|
|
1398
1407
|
);
|
|
1399
1408
|
}
|
|
1400
|
-
const
|
|
1401
|
-
divider:
|
|
1402
|
-
horizontal:
|
|
1403
|
-
vertical:
|
|
1404
|
-
labelled:
|
|
1405
|
-
line:
|
|
1406
|
-
label:
|
|
1409
|
+
const za = "divider-module__divider___0NYwg", Ta = "divider-module__horizontal___tP3rG", Fa = "divider-module__vertical___wBSrT", Ka = "divider-module__labelled___KyGIY", Pa = "divider-module__line___KnBes", Ra = "divider-module__label___WiUwZ", ue = {
|
|
1410
|
+
divider: za,
|
|
1411
|
+
horizontal: Ta,
|
|
1412
|
+
vertical: Fa,
|
|
1413
|
+
labelled: Ka,
|
|
1414
|
+
line: Pa,
|
|
1415
|
+
label: Ra
|
|
1407
1416
|
};
|
|
1408
|
-
function
|
|
1409
|
-
return o === "horizontal" && t != null ? /* @__PURE__ */
|
|
1410
|
-
/* @__PURE__ */ e("hr", { className:
|
|
1411
|
-
/* @__PURE__ */ e("span", { className:
|
|
1412
|
-
/* @__PURE__ */ e("hr", { className:
|
|
1417
|
+
function O_({ orientation: o = "horizontal", label: t, className: n, ...l }) {
|
|
1418
|
+
return o === "horizontal" && t != null ? /* @__PURE__ */ b("div", { className: _(ue.divider, ue.labelled, n), ...l, children: [
|
|
1419
|
+
/* @__PURE__ */ e("hr", { className: ue.line }),
|
|
1420
|
+
/* @__PURE__ */ e("span", { className: ue.label, children: t }),
|
|
1421
|
+
/* @__PURE__ */ e("hr", { className: ue.line })
|
|
1413
1422
|
] }) : /* @__PURE__ */ e(
|
|
1414
1423
|
"hr",
|
|
1415
1424
|
{
|
|
1416
1425
|
"aria-orientation": o,
|
|
1417
|
-
className:
|
|
1418
|
-
...
|
|
1426
|
+
className: _(ue.divider, ue[o], n),
|
|
1427
|
+
...l
|
|
1419
1428
|
}
|
|
1420
1429
|
);
|
|
1421
1430
|
}
|
|
1422
|
-
const
|
|
1423
|
-
spinner:
|
|
1424
|
-
ring:
|
|
1425
|
-
fuiSpin:
|
|
1426
|
-
sm:
|
|
1427
|
-
md:
|
|
1428
|
-
lg:
|
|
1431
|
+
const Oa = "spinner-module__spinner___FDTk2", Aa = "spinner-module__ring___nRx6n", Ga = "spinner-module__fui-spin___YstYB", ja = "spinner-module__sm___kDPMi", Ya = "spinner-module__md___6Pg-i", Ha = "spinner-module__lg___zIxGh", Fe = {
|
|
1432
|
+
spinner: Oa,
|
|
1433
|
+
ring: Aa,
|
|
1434
|
+
fuiSpin: Ga,
|
|
1435
|
+
sm: ja,
|
|
1436
|
+
md: Ya,
|
|
1437
|
+
lg: Ha
|
|
1429
1438
|
};
|
|
1430
|
-
function
|
|
1431
|
-
return /* @__PURE__ */ e("output", { "aria-label": t, className:
|
|
1439
|
+
function qa({ size: o = "md", label: t = "Loading", className: n, ...l }) {
|
|
1440
|
+
return /* @__PURE__ */ e("output", { "aria-label": t, className: _(Fe.spinner, Fe[o], n), ...l, children: /* @__PURE__ */ e("span", { className: Fe.ring }) });
|
|
1432
1441
|
}
|
|
1433
|
-
const
|
|
1434
|
-
progress:
|
|
1442
|
+
const Ua = "progress-module__progress___ubcWE", Wa = {
|
|
1443
|
+
progress: Ua
|
|
1435
1444
|
};
|
|
1436
|
-
function
|
|
1445
|
+
function A_({
|
|
1437
1446
|
value: o,
|
|
1438
1447
|
max: t = 100,
|
|
1439
1448
|
color: n,
|
|
1440
|
-
height:
|
|
1441
|
-
className:
|
|
1449
|
+
height: l = 8,
|
|
1450
|
+
className: s,
|
|
1442
1451
|
style: a,
|
|
1443
|
-
...
|
|
1452
|
+
...d
|
|
1444
1453
|
}) {
|
|
1445
|
-
const r = t > 0 ? Math.max(0, Math.min(o, t)) : 0,
|
|
1454
|
+
const r = t > 0 ? Math.max(0, Math.min(o, t)) : 0, u = n ? { "--fui-progress-fill": n } : void 0;
|
|
1446
1455
|
return /* @__PURE__ */ e(
|
|
1447
1456
|
"progress",
|
|
1448
1457
|
{
|
|
1449
1458
|
value: r,
|
|
1450
1459
|
max: t,
|
|
1451
|
-
className:
|
|
1452
|
-
style: { height:
|
|
1453
|
-
...
|
|
1460
|
+
className: _(Wa.progress, s),
|
|
1461
|
+
style: { height: l, ...u, ...a },
|
|
1462
|
+
...d
|
|
1454
1463
|
}
|
|
1455
1464
|
);
|
|
1456
1465
|
}
|
|
1457
|
-
const
|
|
1458
|
-
field:
|
|
1459
|
-
vertical:
|
|
1460
|
-
header:
|
|
1461
|
-
label:
|
|
1462
|
-
value:
|
|
1463
|
-
input:
|
|
1464
|
-
sm:
|
|
1465
|
-
md:
|
|
1466
|
-
invalid:
|
|
1467
|
-
message:
|
|
1468
|
-
error:
|
|
1469
|
-
},
|
|
1466
|
+
const Za = "slider-module__field___b0KsE", Va = "slider-module__vertical___AAIJT", Xa = "slider-module__header___KTPLs", Ja = "slider-module__label___5Ygr5", Qa = "slider-module__value___SK9Q0", ec = "slider-module__input___jU-Oj", tc = "slider-module__sm___caMde", oc = "slider-module__md___rW4JV", nc = "slider-module__invalid___U5heB", lc = "slider-module__message___PTD43", sc = "slider-module__error___ZOqs4", X = {
|
|
1467
|
+
field: Za,
|
|
1468
|
+
vertical: Va,
|
|
1469
|
+
header: Xa,
|
|
1470
|
+
label: Ja,
|
|
1471
|
+
value: Qa,
|
|
1472
|
+
input: ec,
|
|
1473
|
+
sm: tc,
|
|
1474
|
+
md: oc,
|
|
1475
|
+
invalid: nc,
|
|
1476
|
+
message: lc,
|
|
1477
|
+
error: sc
|
|
1478
|
+
}, G_ = z(function({
|
|
1470
1479
|
value: t,
|
|
1471
1480
|
onChange: n,
|
|
1472
|
-
min:
|
|
1473
|
-
max:
|
|
1481
|
+
min: l = 0,
|
|
1482
|
+
max: s = 100,
|
|
1474
1483
|
step: a = 1,
|
|
1475
|
-
orientation:
|
|
1484
|
+
orientation: d = "horizontal",
|
|
1476
1485
|
length: r,
|
|
1477
|
-
label:
|
|
1486
|
+
label: u,
|
|
1478
1487
|
helperText: m,
|
|
1479
|
-
error:
|
|
1480
|
-
size:
|
|
1481
|
-
showValue:
|
|
1488
|
+
error: c,
|
|
1489
|
+
size: p = "md",
|
|
1490
|
+
showValue: i = !1,
|
|
1482
1491
|
formatValue: v,
|
|
1483
|
-
id:
|
|
1484
|
-
className:
|
|
1485
|
-
style:
|
|
1486
|
-
disabled:
|
|
1487
|
-
|
|
1488
|
-
},
|
|
1489
|
-
const D = R(),
|
|
1490
|
-
return /* @__PURE__ */
|
|
1492
|
+
id: h,
|
|
1493
|
+
className: g,
|
|
1494
|
+
style: y,
|
|
1495
|
+
disabled: N,
|
|
1496
|
+
...$
|
|
1497
|
+
}, M) {
|
|
1498
|
+
const D = R(), S = h ?? `fui-slider-${D}`, C = `fui-slider-message-${D}`, O = c != null, j = O ? c : m, I = d === "vertical", w = Math.max(l, Math.min(t, s)), B = s > l ? (w - l) / (s - l) : 0, f = r != null ? typeof r == "number" ? `${r}px` : r : void 0;
|
|
1499
|
+
return /* @__PURE__ */ b(
|
|
1491
1500
|
"div",
|
|
1492
1501
|
{
|
|
1493
|
-
className:
|
|
1494
|
-
style: { "--fui-slider-length":
|
|
1502
|
+
className: _(X.field, I && X.vertical, g),
|
|
1503
|
+
style: { "--fui-slider-length": f, ...y },
|
|
1495
1504
|
children: [
|
|
1496
|
-
(
|
|
1497
|
-
|
|
1498
|
-
|
|
1505
|
+
(u || i) && /* @__PURE__ */ b("div", { className: X.header, children: [
|
|
1506
|
+
u && /* @__PURE__ */ e("label", { htmlFor: S, className: X.label, children: u }),
|
|
1507
|
+
i && /* @__PURE__ */ e("span", { className: X.value, children: v ? v(w) : w })
|
|
1499
1508
|
] }),
|
|
1500
1509
|
/* @__PURE__ */ e(
|
|
1501
1510
|
"input",
|
|
1502
1511
|
{
|
|
1503
|
-
ref:
|
|
1504
|
-
id:
|
|
1512
|
+
ref: M,
|
|
1513
|
+
id: S,
|
|
1505
1514
|
type: "range",
|
|
1506
|
-
min:
|
|
1507
|
-
max:
|
|
1515
|
+
min: l,
|
|
1516
|
+
max: s,
|
|
1508
1517
|
step: a,
|
|
1509
|
-
value:
|
|
1510
|
-
disabled:
|
|
1511
|
-
"aria-invalid":
|
|
1512
|
-
"aria-describedby":
|
|
1513
|
-
"aria-orientation":
|
|
1514
|
-
className:
|
|
1515
|
-
style: { "--fui-slider-fill": `${
|
|
1516
|
-
onChange: (
|
|
1517
|
-
|
|
1518
|
+
value: w,
|
|
1519
|
+
disabled: N,
|
|
1520
|
+
"aria-invalid": O || void 0,
|
|
1521
|
+
"aria-describedby": j != null ? C : void 0,
|
|
1522
|
+
"aria-orientation": I ? "vertical" : void 0,
|
|
1523
|
+
className: _(X.input, X[p], O && X.invalid),
|
|
1524
|
+
style: { "--fui-slider-fill": `${B * 100}%` },
|
|
1525
|
+
onChange: (k) => n(k.target.valueAsNumber),
|
|
1526
|
+
...$
|
|
1518
1527
|
}
|
|
1519
1528
|
),
|
|
1520
|
-
|
|
1529
|
+
j != null && /* @__PURE__ */ e("p", { id: C, className: _(X.message, O && X.error), children: j })
|
|
1521
1530
|
]
|
|
1522
1531
|
}
|
|
1523
1532
|
);
|
|
1524
|
-
}),
|
|
1525
|
-
root:
|
|
1526
|
-
svg:
|
|
1527
|
-
track:
|
|
1528
|
-
value:
|
|
1529
|
-
glow:
|
|
1530
|
-
indeterminate:
|
|
1531
|
-
text:
|
|
1533
|
+
}), ac = "circular-progress-module__root___aWkwH", cc = "circular-progress-module__svg___r2eFj", rc = "circular-progress-module__track___bnGG2", _c = "circular-progress-module__value___kfD8M", dc = "circular-progress-module__glow___GB6Sf", ic = "circular-progress-module__indeterminate___y-ZZh", uc = "circular-progress-module__text___KMVXP", me = {
|
|
1534
|
+
root: ac,
|
|
1535
|
+
svg: cc,
|
|
1536
|
+
track: rc,
|
|
1537
|
+
value: _c,
|
|
1538
|
+
glow: dc,
|
|
1539
|
+
indeterminate: ic,
|
|
1540
|
+
text: uc
|
|
1532
1541
|
};
|
|
1533
|
-
function
|
|
1542
|
+
function j_({
|
|
1534
1543
|
value: o,
|
|
1535
1544
|
max: t = 100,
|
|
1536
1545
|
size: n = 48,
|
|
1537
|
-
strokeWidth:
|
|
1538
|
-
color:
|
|
1546
|
+
strokeWidth: l = 4,
|
|
1547
|
+
color: s,
|
|
1539
1548
|
label: a = "Loading",
|
|
1540
|
-
showValue:
|
|
1549
|
+
showValue: d = !1,
|
|
1541
1550
|
glow: r = !1,
|
|
1542
|
-
formatValue:
|
|
1551
|
+
formatValue: u,
|
|
1543
1552
|
className: m,
|
|
1544
|
-
style:
|
|
1545
|
-
...
|
|
1553
|
+
style: c,
|
|
1554
|
+
...p
|
|
1546
1555
|
}) {
|
|
1547
|
-
const
|
|
1548
|
-
return /* @__PURE__ */
|
|
1556
|
+
const i = o == null, v = i || t <= 0 ? 0 : Math.max(0, Math.min(o, t)), h = i || t <= 0 ? 0 : v / t, g = Math.round(h * 100), y = (n - l) / 2, N = 2 * Math.PI * y, $ = i ? `${N * 0.25} ${N * 0.75}` : `${N * h} ${N}`, M = s ? { "--fui-circular-fill": s } : void 0;
|
|
1557
|
+
return /* @__PURE__ */ b(
|
|
1549
1558
|
"span",
|
|
1550
1559
|
{
|
|
1551
1560
|
role: "progressbar",
|
|
1552
1561
|
"aria-label": a,
|
|
1553
|
-
"aria-valuemin":
|
|
1554
|
-
"aria-valuemax":
|
|
1555
|
-
"aria-valuenow":
|
|
1556
|
-
className:
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
r &&
|
|
1562
|
+
"aria-valuemin": i ? void 0 : 0,
|
|
1563
|
+
"aria-valuemax": i ? void 0 : t,
|
|
1564
|
+
"aria-valuenow": i ? void 0 : v,
|
|
1565
|
+
className: _(
|
|
1566
|
+
me.root,
|
|
1567
|
+
i && me.indeterminate,
|
|
1568
|
+
r && me.glow,
|
|
1560
1569
|
m
|
|
1561
1570
|
),
|
|
1562
|
-
style: { width: n, height: n, ...
|
|
1563
|
-
...
|
|
1571
|
+
style: { width: n, height: n, ...M, ...c },
|
|
1572
|
+
...p,
|
|
1564
1573
|
children: [
|
|
1565
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ b("svg", { className: me.svg, viewBox: `0 0 ${n} ${n}`, "aria-hidden": "true", children: [
|
|
1566
1575
|
/* @__PURE__ */ e(
|
|
1567
1576
|
"circle",
|
|
1568
1577
|
{
|
|
1569
|
-
className:
|
|
1578
|
+
className: me.track,
|
|
1570
1579
|
cx: n / 2,
|
|
1571
1580
|
cy: n / 2,
|
|
1572
|
-
r:
|
|
1573
|
-
strokeWidth:
|
|
1581
|
+
r: y,
|
|
1582
|
+
strokeWidth: l
|
|
1574
1583
|
}
|
|
1575
1584
|
),
|
|
1576
1585
|
/* @__PURE__ */ e(
|
|
1577
1586
|
"circle",
|
|
1578
1587
|
{
|
|
1579
|
-
className:
|
|
1588
|
+
className: me.value,
|
|
1580
1589
|
cx: n / 2,
|
|
1581
1590
|
cy: n / 2,
|
|
1582
|
-
r:
|
|
1583
|
-
strokeWidth:
|
|
1584
|
-
strokeDasharray:
|
|
1591
|
+
r: y,
|
|
1592
|
+
strokeWidth: l,
|
|
1593
|
+
strokeDasharray: $
|
|
1585
1594
|
}
|
|
1586
1595
|
)
|
|
1587
1596
|
] }),
|
|
1588
|
-
|
|
1597
|
+
d && !i && /* @__PURE__ */ e("span", { className: me.text, children: u ? u(g, v) : `${g}%` })
|
|
1589
1598
|
]
|
|
1590
1599
|
}
|
|
1591
1600
|
);
|
|
1592
1601
|
}
|
|
1593
|
-
const
|
|
1594
|
-
skeleton:
|
|
1595
|
-
fuiSkeletonShimmer:
|
|
1596
|
-
text:
|
|
1597
|
-
rect:
|
|
1598
|
-
circle:
|
|
1602
|
+
const mc = "skeleton-module__skeleton___HCSvg", pc = "skeleton-module__fui-skeleton-shimmer___nfepz", hc = "skeleton-module__text___v17Nv", bc = "skeleton-module__rect___wqIJy", fc = "skeleton-module__circle___RCmyR", Ye = {
|
|
1603
|
+
skeleton: mc,
|
|
1604
|
+
fuiSkeletonShimmer: pc,
|
|
1605
|
+
text: hc,
|
|
1606
|
+
rect: bc,
|
|
1607
|
+
circle: fc
|
|
1599
1608
|
};
|
|
1600
|
-
function
|
|
1609
|
+
function vc({
|
|
1601
1610
|
variant: o = "text",
|
|
1602
1611
|
width: t,
|
|
1603
1612
|
height: n,
|
|
1604
|
-
className:
|
|
1605
|
-
style:
|
|
1613
|
+
className: l,
|
|
1614
|
+
style: s,
|
|
1606
1615
|
...a
|
|
1607
1616
|
}) {
|
|
1608
1617
|
return /* @__PURE__ */ e(
|
|
1609
1618
|
"span",
|
|
1610
1619
|
{
|
|
1611
1620
|
"aria-hidden": "true",
|
|
1612
|
-
className:
|
|
1613
|
-
style: { width: t, height: n, ...
|
|
1621
|
+
className: _(Ye.skeleton, Ye[o], l),
|
|
1622
|
+
style: { width: t, height: n, ...s },
|
|
1614
1623
|
...a
|
|
1615
1624
|
}
|
|
1616
1625
|
);
|
|
1617
1626
|
}
|
|
1618
|
-
const
|
|
1619
|
-
emptyState:
|
|
1620
|
-
visual:
|
|
1621
|
-
title:
|
|
1622
|
-
description:
|
|
1623
|
-
action:
|
|
1624
|
-
loading:
|
|
1625
|
-
error:
|
|
1626
|
-
},
|
|
1627
|
+
const gc = "empty-state-module__emptyState___3o3ah", yc = "empty-state-module__visual___cNQYf", $c = "empty-state-module__title___U2LkM", wc = "empty-state-module__description___WwXjp", kc = "empty-state-module__action___y0erA", Nc = "empty-state-module__loading___kI0uT", xc = "empty-state-module__error___vXXTm", he = {
|
|
1628
|
+
emptyState: gc,
|
|
1629
|
+
visual: yc,
|
|
1630
|
+
title: $c,
|
|
1631
|
+
description: wc,
|
|
1632
|
+
action: kc,
|
|
1633
|
+
loading: Nc,
|
|
1634
|
+
error: xc
|
|
1635
|
+
}, Mc = {
|
|
1627
1636
|
loading: "status",
|
|
1628
1637
|
empty: "status",
|
|
1629
1638
|
error: "alert"
|
|
1630
1639
|
};
|
|
1631
|
-
function
|
|
1640
|
+
function Y_({
|
|
1632
1641
|
status: o = "empty",
|
|
1633
1642
|
icon: t,
|
|
1634
1643
|
title: n,
|
|
1635
|
-
description:
|
|
1636
|
-
action:
|
|
1644
|
+
description: l,
|
|
1645
|
+
action: s,
|
|
1637
1646
|
className: a,
|
|
1638
|
-
children:
|
|
1647
|
+
children: d,
|
|
1639
1648
|
...r
|
|
1640
1649
|
}) {
|
|
1641
|
-
const
|
|
1642
|
-
return /* @__PURE__ */
|
|
1650
|
+
const u = t ?? (o === "loading" ? /* @__PURE__ */ e(qa, { size: "lg" }) : null);
|
|
1651
|
+
return /* @__PURE__ */ b(
|
|
1643
1652
|
"div",
|
|
1644
1653
|
{
|
|
1645
|
-
role:
|
|
1654
|
+
role: Mc[o],
|
|
1646
1655
|
"aria-busy": o === "loading" || void 0,
|
|
1647
|
-
className:
|
|
1656
|
+
className: _(he.emptyState, he[o], a),
|
|
1648
1657
|
...r,
|
|
1649
1658
|
children: [
|
|
1650
|
-
|
|
1651
|
-
n && /* @__PURE__ */ e("p", { className:
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1659
|
+
u && /* @__PURE__ */ e("div", { className: he.visual, children: u }),
|
|
1660
|
+
n && /* @__PURE__ */ e("p", { className: he.title, children: n }),
|
|
1661
|
+
l && /* @__PURE__ */ e("p", { className: he.description, children: l }),
|
|
1662
|
+
d,
|
|
1663
|
+
s && /* @__PURE__ */ e("div", { className: he.action, children: s })
|
|
1655
1664
|
]
|
|
1656
1665
|
}
|
|
1657
1666
|
);
|
|
1658
1667
|
}
|
|
1659
|
-
const
|
|
1660
|
-
statusDot:
|
|
1661
|
-
sm:
|
|
1662
|
-
md:
|
|
1663
|
-
pulse:
|
|
1664
|
-
fuiStatusPulse:
|
|
1665
|
-
neutral:
|
|
1666
|
-
info:
|
|
1667
|
-
success:
|
|
1668
|
-
warning:
|
|
1669
|
-
error:
|
|
1668
|
+
const Dc = "status-dot-module__statusDot___ohD-u", Ic = "status-dot-module__sm___OB37e", Bc = "status-dot-module__md___gx9L0", Lc = "status-dot-module__pulse___ck8O4", Sc = "status-dot-module__fui-status-pulse___N3Zei", Cc = "status-dot-module__neutral___OHH9F", Ec = "status-dot-module__info___M48Xe", zc = "status-dot-module__success___UiZOI", Tc = "status-dot-module__warning___5i46X", Fc = "status-dot-module__error___lDxeD", Se = {
|
|
1669
|
+
statusDot: Dc,
|
|
1670
|
+
sm: Ic,
|
|
1671
|
+
md: Bc,
|
|
1672
|
+
pulse: Lc,
|
|
1673
|
+
fuiStatusPulse: Sc,
|
|
1674
|
+
neutral: Cc,
|
|
1675
|
+
info: Ec,
|
|
1676
|
+
success: zc,
|
|
1677
|
+
warning: Tc,
|
|
1678
|
+
error: Fc
|
|
1670
1679
|
};
|
|
1671
|
-
function
|
|
1680
|
+
function H_({
|
|
1672
1681
|
variant: o = "neutral",
|
|
1673
1682
|
size: t = "sm",
|
|
1674
1683
|
pulse: n = !1,
|
|
1675
|
-
label:
|
|
1676
|
-
className:
|
|
1684
|
+
label: l,
|
|
1685
|
+
className: s,
|
|
1677
1686
|
...a
|
|
1678
1687
|
}) {
|
|
1679
1688
|
return /* @__PURE__ */ e(
|
|
1680
1689
|
"span",
|
|
1681
1690
|
{
|
|
1682
|
-
role:
|
|
1683
|
-
"aria-label":
|
|
1684
|
-
"aria-hidden":
|
|
1685
|
-
className:
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
n &&
|
|
1690
|
-
|
|
1691
|
+
role: l ? "status" : void 0,
|
|
1692
|
+
"aria-label": l,
|
|
1693
|
+
"aria-hidden": l ? void 0 : !0,
|
|
1694
|
+
className: _(
|
|
1695
|
+
Se.statusDot,
|
|
1696
|
+
Se[o],
|
|
1697
|
+
Se[t],
|
|
1698
|
+
n && Se.pulse,
|
|
1699
|
+
s
|
|
1691
1700
|
),
|
|
1692
1701
|
...a
|
|
1693
1702
|
}
|
|
1694
1703
|
);
|
|
1695
1704
|
}
|
|
1696
|
-
const
|
|
1697
|
-
chip:
|
|
1698
|
-
selected:
|
|
1699
|
-
sm:
|
|
1700
|
-
md:
|
|
1701
|
-
icon:
|
|
1702
|
-
},
|
|
1703
|
-
return /* @__PURE__ */
|
|
1705
|
+
const Kc = "chip-module__chip___U3kfP", Pc = "chip-module__selected___n8qWx", Rc = "chip-module__sm___lA7fZ", Oc = "chip-module__md___1W8-i", Ac = "chip-module__icon___folVQ", Ce = {
|
|
1706
|
+
chip: Kc,
|
|
1707
|
+
selected: Pc,
|
|
1708
|
+
sm: Rc,
|
|
1709
|
+
md: Oc,
|
|
1710
|
+
icon: Ac
|
|
1711
|
+
}, q_ = z(function({ selected: t = !1, size: n = "md", icon: l, onToggle: s, onClick: a, className: d, children: r, ...u }, m) {
|
|
1712
|
+
return /* @__PURE__ */ b(
|
|
1704
1713
|
"button",
|
|
1705
1714
|
{
|
|
1706
1715
|
ref: m,
|
|
1707
1716
|
type: "button",
|
|
1708
1717
|
"aria-pressed": t,
|
|
1709
|
-
className:
|
|
1710
|
-
onClick: (
|
|
1711
|
-
a == null || a(
|
|
1718
|
+
className: _(Ce.chip, Ce[n], t && Ce.selected, d),
|
|
1719
|
+
onClick: (c) => {
|
|
1720
|
+
a == null || a(c), s == null || s(!t);
|
|
1712
1721
|
},
|
|
1713
|
-
...
|
|
1722
|
+
...u,
|
|
1714
1723
|
children: [
|
|
1715
|
-
|
|
1724
|
+
l && /* @__PURE__ */ e("span", { className: Ce.icon, "aria-hidden": "true", children: l }),
|
|
1716
1725
|
r
|
|
1717
1726
|
]
|
|
1718
1727
|
}
|
|
1719
1728
|
);
|
|
1720
|
-
}),
|
|
1721
|
-
group:
|
|
1722
|
-
segment:
|
|
1723
|
-
active:
|
|
1724
|
-
sm:
|
|
1725
|
-
md:
|
|
1726
|
-
icon:
|
|
1729
|
+
}), Gc = "segmented-control-module__group___Sme2r", jc = "segmented-control-module__segment___NMDSl", Yc = "segmented-control-module__active___V3sJ9", Hc = "segmented-control-module__sm___D7s4Q", qc = "segmented-control-module__md___C1BNb", Uc = "segmented-control-module__icon___pYElm", ve = {
|
|
1730
|
+
group: Gc,
|
|
1731
|
+
segment: jc,
|
|
1732
|
+
active: Yc,
|
|
1733
|
+
sm: Hc,
|
|
1734
|
+
md: qc,
|
|
1735
|
+
icon: Uc
|
|
1727
1736
|
};
|
|
1728
|
-
function
|
|
1737
|
+
function U_({
|
|
1729
1738
|
options: o,
|
|
1730
1739
|
value: t,
|
|
1731
1740
|
onChange: n,
|
|
1732
|
-
size:
|
|
1733
|
-
className:
|
|
1741
|
+
size: l = "md",
|
|
1742
|
+
className: s,
|
|
1734
1743
|
...a
|
|
1735
1744
|
}) {
|
|
1736
|
-
return /* @__PURE__ */ e("fieldset", { className:
|
|
1737
|
-
const r =
|
|
1738
|
-
return /* @__PURE__ */
|
|
1745
|
+
return /* @__PURE__ */ e("fieldset", { className: _(ve.group, ve[l], s), ...a, children: o.map((d) => {
|
|
1746
|
+
const r = d.value === t;
|
|
1747
|
+
return /* @__PURE__ */ b(
|
|
1739
1748
|
"button",
|
|
1740
1749
|
{
|
|
1741
1750
|
type: "button",
|
|
1742
1751
|
"aria-pressed": r,
|
|
1743
|
-
disabled:
|
|
1744
|
-
className:
|
|
1745
|
-
onClick: () => n(
|
|
1752
|
+
disabled: d.disabled,
|
|
1753
|
+
className: _(ve.segment, r && ve.active),
|
|
1754
|
+
onClick: () => n(d.value),
|
|
1746
1755
|
children: [
|
|
1747
|
-
|
|
1748
|
-
|
|
1756
|
+
d.icon && /* @__PURE__ */ e("span", { className: ve.icon, "aria-hidden": "true", children: d.icon }),
|
|
1757
|
+
d.label
|
|
1749
1758
|
]
|
|
1750
1759
|
},
|
|
1751
|
-
|
|
1760
|
+
d.value
|
|
1752
1761
|
);
|
|
1753
1762
|
}) });
|
|
1754
1763
|
}
|
|
1755
|
-
const
|
|
1756
|
-
tabs:
|
|
1757
|
-
horizontal:
|
|
1758
|
-
vertical:
|
|
1759
|
-
tablist:
|
|
1760
|
-
tab:
|
|
1761
|
-
active:
|
|
1762
|
-
sm:
|
|
1763
|
-
md:
|
|
1764
|
-
icon:
|
|
1765
|
-
panel:
|
|
1764
|
+
const Wc = "tabs-module__tabs___UMeM9", Zc = "tabs-module__horizontal___BEa1a", Vc = "tabs-module__vertical___knHVr", Xc = "tabs-module__tablist___sKiEs", Jc = "tabs-module__tab___qi523", Qc = "tabs-module__active___PvUYu", er = "tabs-module__sm___kb5rQ", tr = "tabs-module__md___0kG2U", or = "tabs-module__icon___YnQYW", nr = "tabs-module__panel___G8tI0", lr = "tabs-module__ghost___zy5eg", oe = {
|
|
1765
|
+
tabs: Wc,
|
|
1766
|
+
horizontal: Zc,
|
|
1767
|
+
vertical: Vc,
|
|
1768
|
+
tablist: Xc,
|
|
1769
|
+
tab: Jc,
|
|
1770
|
+
active: Qc,
|
|
1771
|
+
sm: er,
|
|
1772
|
+
md: tr,
|
|
1773
|
+
icon: or,
|
|
1774
|
+
panel: nr,
|
|
1775
|
+
ghost: lr
|
|
1766
1776
|
};
|
|
1767
|
-
function
|
|
1777
|
+
function W_({
|
|
1768
1778
|
items: o,
|
|
1769
1779
|
value: t,
|
|
1770
1780
|
defaultValue: n,
|
|
1771
|
-
onChange:
|
|
1772
|
-
orientation:
|
|
1781
|
+
onChange: l,
|
|
1782
|
+
orientation: s = "horizontal",
|
|
1773
1783
|
size: a = "md",
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1784
|
+
variant: d = "underline",
|
|
1785
|
+
activation: r = "automatic",
|
|
1786
|
+
tablistLabel: u,
|
|
1787
|
+
className: m,
|
|
1788
|
+
...c
|
|
1778
1789
|
}) {
|
|
1779
|
-
var
|
|
1780
|
-
const
|
|
1781
|
-
t == null && y(
|
|
1782
|
-
},
|
|
1783
|
-
for (let
|
|
1784
|
-
const
|
|
1785
|
-
if (!o[
|
|
1790
|
+
var I;
|
|
1791
|
+
const p = R(), i = (w) => `fui-tab-${p}-${w.value}`, v = (w) => `fui-tabpanel-${p}-${w.value}`, h = (I = o.find((w) => !w.disabled)) == null ? void 0 : I.value, [g, y] = Y(n ?? h ?? ""), N = t ?? g, $ = o.find((w) => w.value === N), M = E(/* @__PURE__ */ new Map()), D = (w) => {
|
|
1792
|
+
t == null && y(w), w !== N && (l == null || l(w));
|
|
1793
|
+
}, S = (w, B) => {
|
|
1794
|
+
for (let f = 1; f <= o.length; f++) {
|
|
1795
|
+
const k = (w + B * f + o.length * f) % o.length;
|
|
1796
|
+
if (!o[k].disabled) return k;
|
|
1786
1797
|
}
|
|
1787
|
-
return
|
|
1788
|
-
},
|
|
1789
|
-
const
|
|
1790
|
-
return
|
|
1791
|
-
},
|
|
1792
|
-
var
|
|
1793
|
-
const
|
|
1794
|
-
|
|
1795
|
-
},
|
|
1796
|
-
const
|
|
1797
|
-
switch (
|
|
1798
|
-
case
|
|
1799
|
-
|
|
1798
|
+
return w;
|
|
1799
|
+
}, C = (w) => {
|
|
1800
|
+
const f = (w ? [...o].reverse() : o).find((k) => !k.disabled);
|
|
1801
|
+
return f ? o.indexOf(f) : -1;
|
|
1802
|
+
}, O = (w) => {
|
|
1803
|
+
var f;
|
|
1804
|
+
const B = o[w];
|
|
1805
|
+
B && ((f = M.current.get(B.value)) == null || f.focus(), r === "automatic" && D(B.value));
|
|
1806
|
+
}, j = (w, B) => {
|
|
1807
|
+
const f = s === "vertical", k = f ? "ArrowUp" : "ArrowLeft", A = f ? "ArrowDown" : "ArrowRight";
|
|
1808
|
+
switch (w.key) {
|
|
1809
|
+
case k:
|
|
1810
|
+
w.preventDefault(), O(S(B, -1));
|
|
1800
1811
|
break;
|
|
1801
|
-
case
|
|
1802
|
-
|
|
1812
|
+
case A:
|
|
1813
|
+
w.preventDefault(), O(S(B, 1));
|
|
1803
1814
|
break;
|
|
1804
1815
|
case "Home":
|
|
1805
|
-
|
|
1816
|
+
w.preventDefault(), O(C(!1));
|
|
1806
1817
|
break;
|
|
1807
1818
|
case "End":
|
|
1808
|
-
|
|
1819
|
+
w.preventDefault(), O(C(!0));
|
|
1809
1820
|
break;
|
|
1810
1821
|
case "Enter":
|
|
1811
1822
|
case " ":
|
|
1812
|
-
|
|
1823
|
+
r === "manual" && (w.preventDefault(), D(o[B].value));
|
|
1813
1824
|
break;
|
|
1814
1825
|
}
|
|
1815
1826
|
};
|
|
1816
|
-
return /* @__PURE__ */
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
"
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1827
|
+
return /* @__PURE__ */ b(
|
|
1828
|
+
"div",
|
|
1829
|
+
{
|
|
1830
|
+
className: _(
|
|
1831
|
+
oe.tabs,
|
|
1832
|
+
oe[s],
|
|
1833
|
+
d === "ghost" && oe.ghost,
|
|
1834
|
+
m
|
|
1835
|
+
),
|
|
1836
|
+
...c,
|
|
1837
|
+
children: [
|
|
1838
|
+
/* @__PURE__ */ e(
|
|
1839
|
+
"div",
|
|
1840
|
+
{
|
|
1841
|
+
role: "tablist",
|
|
1842
|
+
"aria-label": u,
|
|
1843
|
+
"aria-orientation": s,
|
|
1844
|
+
className: _(oe.tablist, oe[a]),
|
|
1845
|
+
children: o.map((w, B) => {
|
|
1846
|
+
const f = w.value === N;
|
|
1847
|
+
return /* @__PURE__ */ b(
|
|
1848
|
+
"button",
|
|
1849
|
+
{
|
|
1850
|
+
ref: (k) => {
|
|
1851
|
+
k ? M.current.set(w.value, k) : M.current.delete(w.value);
|
|
1852
|
+
},
|
|
1853
|
+
type: "button",
|
|
1854
|
+
role: "tab",
|
|
1855
|
+
id: i(w),
|
|
1856
|
+
"aria-selected": f,
|
|
1857
|
+
"aria-controls": w.content != null ? v(w) : void 0,
|
|
1858
|
+
tabIndex: f ? 0 : -1,
|
|
1859
|
+
disabled: w.disabled,
|
|
1860
|
+
className: _(oe.tab, f && oe.active),
|
|
1861
|
+
onClick: () => D(w.value),
|
|
1862
|
+
onKeyDown: (k) => j(k, B),
|
|
1863
|
+
children: [
|
|
1864
|
+
w.icon && /* @__PURE__ */ e("span", { className: oe.icon, "aria-hidden": "true", children: w.icon }),
|
|
1865
|
+
w.label
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1868
|
+
w.value
|
|
1869
|
+
);
|
|
1870
|
+
})
|
|
1871
|
+
}
|
|
1872
|
+
),
|
|
1873
|
+
($ == null ? void 0 : $.content) != null && /* @__PURE__ */ e(
|
|
1874
|
+
"div",
|
|
1875
|
+
{
|
|
1876
|
+
role: "tabpanel",
|
|
1877
|
+
id: v($),
|
|
1878
|
+
"aria-labelledby": i($),
|
|
1879
|
+
tabIndex: 0,
|
|
1880
|
+
className: oe.panel,
|
|
1881
|
+
children: $.content
|
|
1882
|
+
}
|
|
1883
|
+
)
|
|
1884
|
+
]
|
|
1885
|
+
}
|
|
1886
|
+
);
|
|
1864
1887
|
}
|
|
1865
|
-
const
|
|
1866
|
-
kbd:
|
|
1888
|
+
const sr = "kbd-module__kbd___dYNx-", ar = {
|
|
1889
|
+
kbd: sr
|
|
1867
1890
|
};
|
|
1868
|
-
function
|
|
1869
|
-
return /* @__PURE__ */ e("kbd", { className:
|
|
1891
|
+
function Z_({ className: o, children: t, ...n }) {
|
|
1892
|
+
return /* @__PURE__ */ e("kbd", { className: _(ar.kbd, o), ...n, children: t });
|
|
1870
1893
|
}
|
|
1871
|
-
const
|
|
1872
|
-
inlineCode:
|
|
1894
|
+
const cr = "inline-code-module__inlineCode___JoxCb", rr = {
|
|
1895
|
+
inlineCode: cr
|
|
1873
1896
|
};
|
|
1874
|
-
function
|
|
1875
|
-
return /* @__PURE__ */ e("code", { className:
|
|
1897
|
+
function V_({ className: o, children: t, ...n }) {
|
|
1898
|
+
return /* @__PURE__ */ e("code", { className: _(rr.inlineCode, o), ...n, children: t });
|
|
1876
1899
|
}
|
|
1877
|
-
const
|
|
1878
|
-
codeBlock:
|
|
1879
|
-
header:
|
|
1880
|
-
filename:
|
|
1881
|
-
copy:
|
|
1882
|
-
pre:
|
|
1883
|
-
line:
|
|
1884
|
-
marker:
|
|
1885
|
-
content:
|
|
1886
|
-
add:
|
|
1887
|
-
remove:
|
|
1888
|
-
},
|
|
1889
|
-
function
|
|
1900
|
+
const _r = "code-block-module__codeBlock___dq28o", dr = "code-block-module__header___42Fek", ir = "code-block-module__filename___TowWy", ur = "code-block-module__copy___zsnCK", mr = "code-block-module__pre___zXzLZ", pr = "code-block-module__line___wmWd9", hr = "code-block-module__marker___M0q-B", br = "code-block-module__content___-zI10", fr = "code-block-module__add___4rhem", vr = "code-block-module__remove___5a-wi", ne = {
|
|
1901
|
+
codeBlock: _r,
|
|
1902
|
+
header: dr,
|
|
1903
|
+
filename: ir,
|
|
1904
|
+
copy: ur,
|
|
1905
|
+
pre: mr,
|
|
1906
|
+
line: pr,
|
|
1907
|
+
marker: hr,
|
|
1908
|
+
content: br,
|
|
1909
|
+
add: fr,
|
|
1910
|
+
remove: vr
|
|
1911
|
+
}, gr = { add: "+", remove: "-" };
|
|
1912
|
+
function X_({
|
|
1890
1913
|
code: o,
|
|
1891
1914
|
lines: t,
|
|
1892
1915
|
filename: n,
|
|
1893
|
-
copyable:
|
|
1894
|
-
className:
|
|
1916
|
+
copyable: l = !0,
|
|
1917
|
+
className: s,
|
|
1895
1918
|
...a
|
|
1896
1919
|
}) {
|
|
1897
|
-
const [
|
|
1898
|
-
`).map((
|
|
1899
|
-
`),
|
|
1900
|
-
var
|
|
1901
|
-
const
|
|
1902
|
-
|
|
1920
|
+
const [d, r] = Y(!1), u = t ?? (o != null ? o.split(`
|
|
1921
|
+
`).map((h) => ({ content: h })) : []), m = u.map((h) => h.content).join(`
|
|
1922
|
+
`), c = u.some((h) => h.diff != null), p = () => {
|
|
1923
|
+
var g;
|
|
1924
|
+
const h = (g = navigator.clipboard) == null ? void 0 : g.writeText(m);
|
|
1925
|
+
h && h.then(
|
|
1903
1926
|
() => {
|
|
1904
1927
|
r(!0), window.setTimeout(() => r(!1), 2e3);
|
|
1905
1928
|
},
|
|
1906
1929
|
() => r(!1)
|
|
1907
1930
|
);
|
|
1908
|
-
},
|
|
1909
|
-
const
|
|
1910
|
-
return
|
|
1931
|
+
}, i = /* @__PURE__ */ new Map(), v = u.map((h) => {
|
|
1932
|
+
const g = `${h.diff ?? ""}\0${h.content}`, y = i.get(g) ?? 0;
|
|
1933
|
+
return i.set(g, y + 1), { line: h, key: `${g}\0${y}` };
|
|
1911
1934
|
});
|
|
1912
|
-
return /* @__PURE__ */
|
|
1913
|
-
(n ||
|
|
1914
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
1915
|
-
|
|
1935
|
+
return /* @__PURE__ */ b("div", { className: _(ne.codeBlock, s), ...a, children: [
|
|
1936
|
+
(n || l) && /* @__PURE__ */ b("div", { className: ne.header, children: [
|
|
1937
|
+
n && /* @__PURE__ */ e("span", { className: ne.filename, children: n }),
|
|
1938
|
+
l && /* @__PURE__ */ e(
|
|
1916
1939
|
"button",
|
|
1917
1940
|
{
|
|
1918
1941
|
type: "button",
|
|
1919
|
-
className:
|
|
1920
|
-
"aria-label":
|
|
1921
|
-
onClick:
|
|
1922
|
-
children:
|
|
1942
|
+
className: ne.copy,
|
|
1943
|
+
"aria-label": d ? "Copied" : "Copy code",
|
|
1944
|
+
onClick: p,
|
|
1945
|
+
children: d ? "copied" : "copy"
|
|
1923
1946
|
}
|
|
1924
1947
|
)
|
|
1925
1948
|
] }),
|
|
1926
|
-
/* @__PURE__ */ e("pre", { className:
|
|
1927
|
-
|
|
1928
|
-
/* @__PURE__ */ e("span", { className:
|
|
1929
|
-
] },
|
|
1949
|
+
/* @__PURE__ */ e("pre", { className: ne.pre, children: /* @__PURE__ */ e("code", { children: v.map(({ line: h, key: g }) => /* @__PURE__ */ b("span", { className: _(ne.line, h.diff && ne[h.diff]), children: [
|
|
1950
|
+
c && /* @__PURE__ */ e("span", { className: ne.marker, "aria-hidden": "true", children: h.diff ? gr[h.diff] : "" }),
|
|
1951
|
+
/* @__PURE__ */ e("span", { className: ne.content, children: h.content })
|
|
1952
|
+
] }, g)) }) })
|
|
1930
1953
|
] });
|
|
1931
1954
|
}
|
|
1932
|
-
const
|
|
1933
|
-
copyButton:
|
|
1934
|
-
copied:
|
|
1935
|
-
icon:
|
|
1936
|
-
},
|
|
1955
|
+
const yr = "copy-button-module__copyButton___-hTo4", $r = "copy-button-module__copied___XlHFr", wr = "copy-button-module__icon___4B9mp", Ke = {
|
|
1956
|
+
copyButton: yr,
|
|
1957
|
+
copied: $r,
|
|
1958
|
+
icon: wr
|
|
1959
|
+
}, J_ = z(function({
|
|
1937
1960
|
value: t,
|
|
1938
1961
|
label: n = "copy",
|
|
1939
|
-
copiedLabel:
|
|
1940
|
-
icon:
|
|
1962
|
+
copiedLabel: l = "copied",
|
|
1963
|
+
icon: s,
|
|
1941
1964
|
copiedIcon: a,
|
|
1942
|
-
timeout:
|
|
1965
|
+
timeout: d = 2e3,
|
|
1943
1966
|
onCopy: r,
|
|
1944
|
-
onClick:
|
|
1967
|
+
onClick: u,
|
|
1945
1968
|
className: m,
|
|
1946
|
-
...
|
|
1947
|
-
},
|
|
1948
|
-
const [
|
|
1949
|
-
|
|
1950
|
-
const
|
|
1969
|
+
...c
|
|
1970
|
+
}, p) {
|
|
1971
|
+
const [i, v] = Y(!1), h = E();
|
|
1972
|
+
le(() => () => window.clearTimeout(h.current), []);
|
|
1973
|
+
const g = ($) => {
|
|
1951
1974
|
var D;
|
|
1952
|
-
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1975
|
+
u == null || u($);
|
|
1976
|
+
const M = (D = navigator.clipboard) == null ? void 0 : D.writeText(t);
|
|
1977
|
+
M && M.then(
|
|
1955
1978
|
() => {
|
|
1956
|
-
v(!0), r == null || r(), window.clearTimeout(
|
|
1979
|
+
v(!0), r == null || r(), window.clearTimeout(h.current), h.current = window.setTimeout(() => v(!1), d);
|
|
1957
1980
|
},
|
|
1958
1981
|
() => v(!1)
|
|
1959
1982
|
);
|
|
1960
|
-
},
|
|
1961
|
-
return /* @__PURE__ */
|
|
1983
|
+
}, y = i ? a ?? s : s, N = i ? l : n;
|
|
1984
|
+
return /* @__PURE__ */ b(
|
|
1962
1985
|
"button",
|
|
1963
1986
|
{
|
|
1964
|
-
ref:
|
|
1987
|
+
ref: p,
|
|
1965
1988
|
type: "button",
|
|
1966
|
-
"aria-label":
|
|
1967
|
-
className:
|
|
1968
|
-
onClick:
|
|
1969
|
-
...
|
|
1989
|
+
"aria-label": N,
|
|
1990
|
+
className: _(Ke.copyButton, i && Ke.copied, m),
|
|
1991
|
+
onClick: g,
|
|
1992
|
+
...c,
|
|
1970
1993
|
children: [
|
|
1971
|
-
|
|
1972
|
-
/* @__PURE__ */ e("span", { children:
|
|
1994
|
+
y && /* @__PURE__ */ e("span", { className: Ke.icon, "aria-hidden": "true", children: y }),
|
|
1995
|
+
/* @__PURE__ */ e("span", { children: N })
|
|
1973
1996
|
]
|
|
1974
1997
|
}
|
|
1975
1998
|
);
|
|
1976
|
-
}),
|
|
1977
|
-
wrapper:
|
|
1978
|
-
table:
|
|
1979
|
-
caption:
|
|
1980
|
-
head:
|
|
1981
|
-
th:
|
|
1982
|
-
td:
|
|
1983
|
-
row:
|
|
1984
|
-
striped:
|
|
1985
|
-
hoverable:
|
|
1986
|
-
clickable:
|
|
1987
|
-
empty:
|
|
1988
|
-
left:
|
|
1989
|
-
center:
|
|
1990
|
-
right:
|
|
1991
|
-
compact:
|
|
1999
|
+
}), kr = "data-table-module__wrapper___UTyMr", Nr = "data-table-module__table___Fuoei", xr = "data-table-module__caption___QjcZG", Mr = "data-table-module__head___g-ix3", Dr = "data-table-module__th___GLSnD", Ir = "data-table-module__td___Z6bns", Br = "data-table-module__row___ZyAGw", Lr = "data-table-module__striped___QXV4j", Sr = "data-table-module__hoverable___zuaEp", Cr = "data-table-module__clickable___npv-C", Er = "data-table-module__empty___vSmGc", zr = "data-table-module__left___H3aIX", Tr = "data-table-module__center___OEedB", Fr = "data-table-module__right___d0MIh", Kr = "data-table-module__compact___R6xaO", F = {
|
|
2000
|
+
wrapper: kr,
|
|
2001
|
+
table: Nr,
|
|
2002
|
+
caption: xr,
|
|
2003
|
+
head: Mr,
|
|
2004
|
+
th: Dr,
|
|
2005
|
+
td: Ir,
|
|
2006
|
+
row: Br,
|
|
2007
|
+
striped: Lr,
|
|
2008
|
+
hoverable: Sr,
|
|
2009
|
+
clickable: Cr,
|
|
2010
|
+
empty: Er,
|
|
2011
|
+
left: zr,
|
|
2012
|
+
center: Tr,
|
|
2013
|
+
right: Fr,
|
|
2014
|
+
compact: Kr
|
|
1992
2015
|
};
|
|
1993
|
-
function
|
|
2016
|
+
function Q_({
|
|
1994
2017
|
data: o,
|
|
1995
2018
|
columns: t,
|
|
1996
2019
|
keyExtractor: n,
|
|
1997
|
-
striped:
|
|
1998
|
-
hoverable:
|
|
2020
|
+
striped: l = !0,
|
|
2021
|
+
hoverable: s = !0,
|
|
1999
2022
|
compact: a = !1,
|
|
2000
|
-
loading:
|
|
2023
|
+
loading: d = !1,
|
|
2001
2024
|
loadingRows: r = 3,
|
|
2002
|
-
emptyMessage:
|
|
2025
|
+
emptyMessage: u = "No data",
|
|
2003
2026
|
caption: m,
|
|
2004
|
-
rowClassName:
|
|
2005
|
-
onRowClick:
|
|
2006
|
-
className:
|
|
2027
|
+
rowClassName: c,
|
|
2028
|
+
onRowClick: p,
|
|
2029
|
+
className: i,
|
|
2007
2030
|
...v
|
|
2008
2031
|
}) {
|
|
2009
|
-
const
|
|
2010
|
-
() => Array.from({ length: r }, (
|
|
2032
|
+
const h = (y) => y ? F[y] : void 0, g = Re(
|
|
2033
|
+
() => Array.from({ length: r }, (y, N) => `fui-data-table-loading-${N}`),
|
|
2011
2034
|
[r]
|
|
2012
2035
|
);
|
|
2013
|
-
return /* @__PURE__ */ e("div", { className:
|
|
2014
|
-
m != null && /* @__PURE__ */ e("caption", { className:
|
|
2015
|
-
/* @__PURE__ */ e("thead", { className:
|
|
2036
|
+
return /* @__PURE__ */ e("div", { className: _(F.wrapper, i), ...v, children: /* @__PURE__ */ b("table", { className: _(F.table, a && F.compact), children: [
|
|
2037
|
+
m != null && /* @__PURE__ */ e("caption", { className: F.caption, children: m }),
|
|
2038
|
+
/* @__PURE__ */ e("thead", { className: F.head, children: /* @__PURE__ */ e("tr", { children: t.map((y) => /* @__PURE__ */ e(
|
|
2016
2039
|
"th",
|
|
2017
2040
|
{
|
|
2018
2041
|
scope: "col",
|
|
2019
|
-
className:
|
|
2020
|
-
style: { width:
|
|
2021
|
-
children:
|
|
2042
|
+
className: _(F.th, h(y.align)),
|
|
2043
|
+
style: { width: y.width },
|
|
2044
|
+
children: y.header
|
|
2022
2045
|
},
|
|
2023
|
-
|
|
2046
|
+
y.key
|
|
2024
2047
|
)) }) }),
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
|
|
2027
|
-
!
|
|
2028
|
-
!
|
|
2029
|
-
const
|
|
2048
|
+
/* @__PURE__ */ b("tbody", { children: [
|
|
2049
|
+
d && g.map((y) => /* @__PURE__ */ e("tr", { className: F.row, children: t.map((N) => /* @__PURE__ */ e("td", { className: _(F.td, h(N.align)), children: /* @__PURE__ */ e(vc, { width: "70%" }) }, N.key)) }, y)),
|
|
2050
|
+
!d && o.length === 0 && /* @__PURE__ */ e("tr", { className: F.row, children: /* @__PURE__ */ e("td", { colSpan: t.length, className: F.empty, children: u }) }),
|
|
2051
|
+
!d && o.map((y, N) => {
|
|
2052
|
+
const $ = n(y);
|
|
2030
2053
|
return /* @__PURE__ */ e(
|
|
2031
2054
|
"tr",
|
|
2032
2055
|
{
|
|
2033
|
-
className:
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
typeof
|
|
2056
|
+
className: _(
|
|
2057
|
+
F.row,
|
|
2058
|
+
l && N % 2 === 1 && F.striped,
|
|
2059
|
+
s && F.hoverable,
|
|
2060
|
+
p && F.clickable,
|
|
2061
|
+
typeof c == "function" ? c(y) : c
|
|
2039
2062
|
),
|
|
2040
|
-
tabIndex:
|
|
2041
|
-
onClick:
|
|
2042
|
-
onKeyDown:
|
|
2043
|
-
(
|
|
2063
|
+
tabIndex: p ? 0 : void 0,
|
|
2064
|
+
onClick: p ? () => p(y) : void 0,
|
|
2065
|
+
onKeyDown: p ? (M) => {
|
|
2066
|
+
(M.key === "Enter" || M.key === " ") && (M.preventDefault(), p(y));
|
|
2044
2067
|
} : void 0,
|
|
2045
|
-
children: t.map((
|
|
2068
|
+
children: t.map((M) => /* @__PURE__ */ e(
|
|
2046
2069
|
"td",
|
|
2047
2070
|
{
|
|
2048
|
-
className:
|
|
2049
|
-
children:
|
|
2071
|
+
className: _(F.td, h(M.align)),
|
|
2072
|
+
children: M.cell(y)
|
|
2050
2073
|
},
|
|
2051
|
-
`${
|
|
2074
|
+
`${$}-${M.key}`
|
|
2052
2075
|
))
|
|
2053
2076
|
},
|
|
2054
|
-
|
|
2077
|
+
$
|
|
2055
2078
|
);
|
|
2056
2079
|
})
|
|
2057
2080
|
] })
|
|
2058
2081
|
] }) });
|
|
2059
2082
|
}
|
|
2060
|
-
const
|
|
2061
|
-
breadcrumb:
|
|
2062
|
-
list:
|
|
2063
|
-
item:
|
|
2064
|
-
link:
|
|
2065
|
-
current:
|
|
2066
|
-
separator:
|
|
2083
|
+
const Pr = "breadcrumb-module__breadcrumb___r-ILp", Rr = "breadcrumb-module__list___V3YFy", Or = "breadcrumb-module__item___dDwYf", Ar = "breadcrumb-module__link___CHC9k", Gr = "breadcrumb-module__current___dprI9", jr = "breadcrumb-module__separator___uLhtn", se = {
|
|
2084
|
+
breadcrumb: Pr,
|
|
2085
|
+
list: Rr,
|
|
2086
|
+
item: Or,
|
|
2087
|
+
link: Ar,
|
|
2088
|
+
current: Gr,
|
|
2089
|
+
separator: jr
|
|
2067
2090
|
};
|
|
2068
|
-
function
|
|
2069
|
-
return t ? /* @__PURE__ */ e("span", { className:
|
|
2091
|
+
function Yr({ item: o, current: t }) {
|
|
2092
|
+
return t ? /* @__PURE__ */ e("span", { className: se.current, "aria-current": "page", children: o.label }) : o.href ? /* @__PURE__ */ e("a", { className: se.link, href: o.href, onClick: o.onClick, children: o.label }) : o.onClick ? /* @__PURE__ */ e("button", { type: "button", className: se.link, onClick: o.onClick, children: o.label }) : /* @__PURE__ */ e("span", { className: se.link, children: o.label });
|
|
2070
2093
|
}
|
|
2071
|
-
function
|
|
2072
|
-
const
|
|
2073
|
-
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className:
|
|
2074
|
-
const r =
|
|
2075
|
-
return
|
|
2076
|
-
/* @__PURE__ */ e(
|
|
2077
|
-
!r && /* @__PURE__ */ e("span", { className:
|
|
2078
|
-
] }, `${m} ${
|
|
2094
|
+
function ed({ items: o, separator: t = "/", className: n, ...l }) {
|
|
2095
|
+
const s = /* @__PURE__ */ new Map();
|
|
2096
|
+
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: _(se.breadcrumb, n), ...l, children: /* @__PURE__ */ e("ol", { className: se.list, children: o.map((a, d) => {
|
|
2097
|
+
const r = d === o.length - 1, u = a.current ?? r, m = a.href ?? (typeof a.label == "string" ? a.label : ""), c = s.get(m) ?? 0;
|
|
2098
|
+
return s.set(m, c + 1), /* @__PURE__ */ b("li", { className: se.item, children: [
|
|
2099
|
+
/* @__PURE__ */ e(Yr, { item: a, current: u }),
|
|
2100
|
+
!r && /* @__PURE__ */ e("span", { className: se.separator, "aria-hidden": "true", children: t })
|
|
2101
|
+
] }, `${m} ${c}`);
|
|
2079
2102
|
}) }) });
|
|
2080
2103
|
}
|
|
2081
|
-
const
|
|
2082
|
-
menu:
|
|
2083
|
-
trigger:
|
|
2084
|
-
list:
|
|
2085
|
-
start:
|
|
2086
|
-
end:
|
|
2087
|
-
item:
|
|
2088
|
-
active:
|
|
2089
|
-
danger:
|
|
2090
|
-
icon:
|
|
2091
|
-
separator:
|
|
2092
|
-
selected:
|
|
2104
|
+
const Hr = "menu-module__menu___i40Wj", qr = "menu-module__trigger___FBppm", Ur = "menu-module__list___YjCfD", Wr = "menu-module__start___fmDPf", Zr = "menu-module__end___a7S-M", Vr = "menu-module__item___aqcgg", Xr = "menu-module__active___JMLGb", Jr = "menu-module__danger___p9oZo", Qr = "menu-module__icon___1qUvA", e_ = "menu-module__separator___g2uay", t_ = "menu-module__selected___YvGDq", J = {
|
|
2105
|
+
menu: Hr,
|
|
2106
|
+
trigger: qr,
|
|
2107
|
+
list: Ur,
|
|
2108
|
+
start: Wr,
|
|
2109
|
+
end: Zr,
|
|
2110
|
+
item: Vr,
|
|
2111
|
+
active: Xr,
|
|
2112
|
+
danger: Jr,
|
|
2113
|
+
icon: Qr,
|
|
2114
|
+
separator: e_,
|
|
2115
|
+
selected: t_
|
|
2093
2116
|
};
|
|
2094
|
-
function
|
|
2117
|
+
function Ue(o) {
|
|
2095
2118
|
return "separator" in o;
|
|
2096
2119
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return !
|
|
2120
|
+
function ge(o) {
|
|
2121
|
+
return !Ue(o) && !o.disabled;
|
|
2099
2122
|
}
|
|
2100
|
-
function
|
|
2101
|
-
|
|
2102
|
-
for (
|
|
2123
|
+
function o_(...o) {
|
|
2124
|
+
return (t) => {
|
|
2125
|
+
for (const n of o)
|
|
2126
|
+
typeof n == "function" ? n(t) : n && (n.current = t);
|
|
2127
|
+
};
|
|
2128
|
+
}
|
|
2129
|
+
function td({
|
|
2130
|
+
trigger: o,
|
|
2131
|
+
items: t,
|
|
2132
|
+
asChild: n,
|
|
2133
|
+
triggerLabel: l,
|
|
2134
|
+
align: s = "start",
|
|
2135
|
+
className: a
|
|
2136
|
+
}) {
|
|
2137
|
+
const d = R(), r = `fui-menu-trigger-${d}`, u = `fui-menu-${d}`, m = (f) => `${u}-item-${f}`, [c, p] = Y(!1), [i, v] = Y(-1), h = E(null), g = E(null), y = E(null), N = () => t.findIndex(ge), $ = () => {
|
|
2138
|
+
for (let f = t.length - 1; f >= 0; f--) if (ge(t[f])) return f;
|
|
2103
2139
|
return -1;
|
|
2104
|
-
},
|
|
2105
|
-
for (let
|
|
2106
|
-
return
|
|
2107
|
-
},
|
|
2108
|
-
for (let
|
|
2109
|
-
return
|
|
2140
|
+
}, M = (f) => {
|
|
2141
|
+
for (let k = f + 1; k < t.length; k++) if (ge(t[k])) return k;
|
|
2142
|
+
return f;
|
|
2143
|
+
}, D = (f) => {
|
|
2144
|
+
for (let k = f - 1; k >= 0; k--) if (ge(t[k])) return k;
|
|
2145
|
+
return f;
|
|
2110
2146
|
};
|
|
2111
|
-
|
|
2112
|
-
var
|
|
2113
|
-
|
|
2114
|
-
}, [
|
|
2115
|
-
if (!
|
|
2116
|
-
const
|
|
2117
|
-
var
|
|
2118
|
-
(
|
|
2147
|
+
le(() => {
|
|
2148
|
+
var f;
|
|
2149
|
+
c && ((f = y.current) == null || f.focus());
|
|
2150
|
+
}, [c]), le(() => {
|
|
2151
|
+
if (!c) return;
|
|
2152
|
+
const f = (k) => {
|
|
2153
|
+
var A;
|
|
2154
|
+
(A = h.current) != null && A.contains(k.target) || p(!1);
|
|
2119
2155
|
};
|
|
2120
|
-
return window.addEventListener("pointerdown",
|
|
2121
|
-
}, [
|
|
2122
|
-
const
|
|
2123
|
-
|
|
2124
|
-
},
|
|
2125
|
-
var
|
|
2126
|
-
|
|
2127
|
-
},
|
|
2128
|
-
var
|
|
2129
|
-
const
|
|
2130
|
-
|
|
2131
|
-
},
|
|
2132
|
-
|
|
2156
|
+
return window.addEventListener("pointerdown", f), () => window.removeEventListener("pointerdown", f);
|
|
2157
|
+
}, [c]);
|
|
2158
|
+
const S = (f) => {
|
|
2159
|
+
v(f), p(!0);
|
|
2160
|
+
}, C = (f = !0) => {
|
|
2161
|
+
var k;
|
|
2162
|
+
p(!1), f && ((k = g.current) == null || k.focus());
|
|
2163
|
+
}, O = (f) => {
|
|
2164
|
+
var A;
|
|
2165
|
+
const k = t[f];
|
|
2166
|
+
!k || !ge(k) || ((A = k.onSelect) == null || A.call(k), C());
|
|
2167
|
+
}, j = () => {
|
|
2168
|
+
c ? C() : S(N());
|
|
2169
|
+
}, I = (f) => {
|
|
2170
|
+
switch (f.key) {
|
|
2133
2171
|
case "ArrowDown":
|
|
2134
2172
|
case "Enter":
|
|
2135
2173
|
case " ":
|
|
2136
|
-
|
|
2174
|
+
f.preventDefault(), c || S(N());
|
|
2137
2175
|
break;
|
|
2138
2176
|
case "ArrowUp":
|
|
2139
|
-
|
|
2177
|
+
f.preventDefault(), c || S($());
|
|
2140
2178
|
break;
|
|
2141
2179
|
}
|
|
2142
|
-
},
|
|
2143
|
-
switch (
|
|
2180
|
+
}, w = (f) => {
|
|
2181
|
+
switch (f.key) {
|
|
2144
2182
|
case "ArrowDown":
|
|
2145
|
-
|
|
2183
|
+
f.preventDefault(), v((k) => M(k));
|
|
2146
2184
|
break;
|
|
2147
2185
|
case "ArrowUp":
|
|
2148
|
-
|
|
2186
|
+
f.preventDefault(), v((k) => D(k));
|
|
2149
2187
|
break;
|
|
2150
2188
|
case "Home":
|
|
2151
|
-
|
|
2189
|
+
f.preventDefault(), v(N());
|
|
2152
2190
|
break;
|
|
2153
2191
|
case "End":
|
|
2154
|
-
|
|
2192
|
+
f.preventDefault(), v($());
|
|
2155
2193
|
break;
|
|
2156
2194
|
case "Enter":
|
|
2157
2195
|
case " ":
|
|
2158
|
-
|
|
2196
|
+
f.preventDefault(), i >= 0 && O(i);
|
|
2159
2197
|
break;
|
|
2160
2198
|
case "Escape":
|
|
2161
|
-
|
|
2199
|
+
f.preventDefault(), C();
|
|
2162
2200
|
break;
|
|
2163
2201
|
case "Tab":
|
|
2164
|
-
|
|
2202
|
+
p(!1);
|
|
2165
2203
|
break;
|
|
2166
2204
|
}
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
|
|
2205
|
+
}, B = () => {
|
|
2206
|
+
if (n && lt(o)) {
|
|
2207
|
+
const f = o, { onClick: k, onKeyDown: A } = f.props, ae = {
|
|
2208
|
+
ref: o_(g, f.ref),
|
|
2209
|
+
id: r,
|
|
2210
|
+
"aria-haspopup": "menu",
|
|
2211
|
+
"aria-expanded": c,
|
|
2212
|
+
"aria-controls": c ? u : void 0,
|
|
2213
|
+
onClick: (W) => {
|
|
2214
|
+
k == null || k(W), W.defaultPrevented || j();
|
|
2215
|
+
},
|
|
2216
|
+
onKeyDown: (W) => {
|
|
2217
|
+
A == null || A(W), W.defaultPrevented || I(W);
|
|
2218
|
+
}
|
|
2219
|
+
};
|
|
2220
|
+
return l != null && (ae["aria-label"] = l), He(f, ae);
|
|
2221
|
+
}
|
|
2222
|
+
return /* @__PURE__ */ e(
|
|
2170
2223
|
"button",
|
|
2171
2224
|
{
|
|
2172
|
-
ref:
|
|
2225
|
+
ref: (f) => {
|
|
2226
|
+
g.current = f;
|
|
2227
|
+
},
|
|
2173
2228
|
type: "button",
|
|
2174
|
-
id:
|
|
2229
|
+
id: r,
|
|
2175
2230
|
"aria-haspopup": "menu",
|
|
2176
|
-
"aria-expanded":
|
|
2177
|
-
"aria-controls":
|
|
2178
|
-
"aria-label":
|
|
2179
|
-
className:
|
|
2180
|
-
onClick:
|
|
2181
|
-
onKeyDown:
|
|
2231
|
+
"aria-expanded": c,
|
|
2232
|
+
"aria-controls": c ? u : void 0,
|
|
2233
|
+
"aria-label": l,
|
|
2234
|
+
className: J.trigger,
|
|
2235
|
+
onClick: j,
|
|
2236
|
+
onKeyDown: I,
|
|
2182
2237
|
children: o
|
|
2183
2238
|
}
|
|
2184
|
-
)
|
|
2185
|
-
|
|
2239
|
+
);
|
|
2240
|
+
};
|
|
2241
|
+
return /* @__PURE__ */ b("div", { ref: h, className: _(J.menu, a), children: [
|
|
2242
|
+
B(),
|
|
2243
|
+
c && /* @__PURE__ */ e(
|
|
2186
2244
|
"div",
|
|
2187
2245
|
{
|
|
2188
2246
|
ref: y,
|
|
2189
|
-
id:
|
|
2247
|
+
id: u,
|
|
2190
2248
|
role: "menu",
|
|
2191
|
-
"aria-labelledby":
|
|
2192
|
-
"aria-activedescendant":
|
|
2249
|
+
"aria-labelledby": r,
|
|
2250
|
+
"aria-activedescendant": i >= 0 ? m(i) : void 0,
|
|
2193
2251
|
tabIndex: -1,
|
|
2194
|
-
className:
|
|
2195
|
-
onKeyDown:
|
|
2252
|
+
className: _(J.list, J[s]),
|
|
2253
|
+
onKeyDown: w,
|
|
2196
2254
|
children: t.map(
|
|
2197
|
-
(
|
|
2255
|
+
(f, k) => Ue(f) ? /* @__PURE__ */ e("hr", { className: J.separator }, m(k)) : /* @__PURE__ */ b(
|
|
2198
2256
|
"button",
|
|
2199
2257
|
{
|
|
2200
2258
|
type: "button",
|
|
2201
|
-
id:
|
|
2202
|
-
role:
|
|
2203
|
-
"aria-checked":
|
|
2259
|
+
id: m(k),
|
|
2260
|
+
role: f.selected == null ? "menuitem" : "menuitemradio",
|
|
2261
|
+
"aria-checked": f.selected,
|
|
2204
2262
|
tabIndex: -1,
|
|
2205
|
-
disabled:
|
|
2206
|
-
className:
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2263
|
+
disabled: f.disabled,
|
|
2264
|
+
className: _(
|
|
2265
|
+
J.item,
|
|
2266
|
+
f.danger && J.danger,
|
|
2267
|
+
f.selected && J.selected,
|
|
2268
|
+
k === i && J.active
|
|
2211
2269
|
),
|
|
2212
|
-
onPointerMove: () => !
|
|
2213
|
-
onClick: () =>
|
|
2270
|
+
onPointerMove: () => !f.disabled && v(k),
|
|
2271
|
+
onClick: () => O(k),
|
|
2214
2272
|
children: [
|
|
2215
|
-
|
|
2216
|
-
|
|
2273
|
+
f.icon && /* @__PURE__ */ e("span", { className: J.icon, "aria-hidden": "true", children: f.icon }),
|
|
2274
|
+
f.label
|
|
2217
2275
|
]
|
|
2218
2276
|
},
|
|
2219
|
-
|
|
2277
|
+
m(k)
|
|
2220
2278
|
)
|
|
2221
2279
|
)
|
|
2222
2280
|
}
|
|
2223
2281
|
)
|
|
2224
2282
|
] });
|
|
2225
2283
|
}
|
|
2226
|
-
const
|
|
2227
|
-
fileButton:
|
|
2228
|
-
disabled:
|
|
2229
|
-
input:
|
|
2230
|
-
icon:
|
|
2231
|
-
},
|
|
2232
|
-
return /* @__PURE__ */
|
|
2284
|
+
const n_ = "file-button-module__fileButton___aK91Q", l_ = "file-button-module__disabled___RF3Ox", s_ = "file-button-module__input___Z5bit", a_ = "file-button-module__icon___Tkeo1", Ee = {
|
|
2285
|
+
fileButton: n_,
|
|
2286
|
+
disabled: l_,
|
|
2287
|
+
input: s_,
|
|
2288
|
+
icon: a_
|
|
2289
|
+
}, od = z(function({ onFiles: t, icon: n, children: l, disabled: s, className: a, ...d }, r) {
|
|
2290
|
+
return /* @__PURE__ */ b("label", { className: _(Ee.fileButton, s && Ee.disabled, a), children: [
|
|
2233
2291
|
/* @__PURE__ */ e(
|
|
2234
2292
|
"input",
|
|
2235
2293
|
{
|
|
2236
2294
|
ref: r,
|
|
2237
2295
|
type: "file",
|
|
2238
|
-
className:
|
|
2239
|
-
disabled:
|
|
2240
|
-
onChange: (
|
|
2241
|
-
const { files: m } =
|
|
2296
|
+
className: Ee.input,
|
|
2297
|
+
disabled: s,
|
|
2298
|
+
onChange: (u) => {
|
|
2299
|
+
const { files: m } = u.target;
|
|
2242
2300
|
m && m.length > 0 && t(m);
|
|
2243
2301
|
},
|
|
2244
|
-
...
|
|
2302
|
+
...d
|
|
2245
2303
|
}
|
|
2246
2304
|
),
|
|
2247
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
2248
|
-
|
|
2305
|
+
n && /* @__PURE__ */ e("span", { className: Ee.icon, "aria-hidden": "true", children: n }),
|
|
2306
|
+
l
|
|
2249
2307
|
] });
|
|
2250
|
-
}),
|
|
2251
|
-
icon:
|
|
2252
|
-
},
|
|
2308
|
+
}), c_ = "icon-module__icon___2vrJz", r_ = {
|
|
2309
|
+
icon: c_
|
|
2310
|
+
}, __ = {
|
|
2253
2311
|
close: /* @__PURE__ */ e("path", { d: "M6 6l12 12M18 6L6 18" }),
|
|
2254
2312
|
check: /* @__PURE__ */ e("path", { d: "M5 13l4 4L19 7" }),
|
|
2255
|
-
copy: /* @__PURE__ */
|
|
2313
|
+
copy: /* @__PURE__ */ b(P, { children: [
|
|
2256
2314
|
/* @__PURE__ */ e("rect", { x: "8", y: "8", width: "12", height: "12", rx: "2" }),
|
|
2257
2315
|
/* @__PURE__ */ e("path", { d: "M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2" })
|
|
2258
2316
|
] }),
|
|
2259
2317
|
plus: /* @__PURE__ */ e("path", { d: "M12 5v14M5 12h14" }),
|
|
2260
2318
|
folder: /* @__PURE__ */ e("path", { d: "M3 6a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V6z" }),
|
|
2261
|
-
lightbulb: /* @__PURE__ */
|
|
2319
|
+
lightbulb: /* @__PURE__ */ b(P, { children: [
|
|
2262
2320
|
/* @__PURE__ */ e("path", { d: "M9 18h6" }),
|
|
2263
2321
|
/* @__PURE__ */ e("path", { d: "M10 21h4" }),
|
|
2264
2322
|
/* @__PURE__ */ e("path", { d: "M12 3a6 6 0 00-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0012 3z" })
|
|
@@ -2268,58 +2326,58 @@ const Vr = "file-button-module__fileButton___aK91Q", Jr = "file-button-module__d
|
|
|
2268
2326
|
"chevron-left": /* @__PURE__ */ e("path", { d: "M15 6l-6 6 6 6" }),
|
|
2269
2327
|
"chevron-right": /* @__PURE__ */ e("path", { d: "M9 6l6 6-6 6" }),
|
|
2270
2328
|
play: /* @__PURE__ */ e("path", { d: "M8 5v14l11-7z" }),
|
|
2271
|
-
flag: /* @__PURE__ */
|
|
2329
|
+
flag: /* @__PURE__ */ b(P, { children: [
|
|
2272
2330
|
/* @__PURE__ */ e("path", { d: "M5 21V4" }),
|
|
2273
2331
|
/* @__PURE__ */ e("path", { d: "M5 4h11l-2 4 2 4H5" })
|
|
2274
2332
|
] }),
|
|
2275
|
-
"sort-asc": /* @__PURE__ */
|
|
2333
|
+
"sort-asc": /* @__PURE__ */ b(P, { children: [
|
|
2276
2334
|
/* @__PURE__ */ e("path", { d: "M12 5v14" }),
|
|
2277
2335
|
/* @__PURE__ */ e("path", { d: "M8 9l4-4 4 4" })
|
|
2278
2336
|
] }),
|
|
2279
|
-
"sort-desc": /* @__PURE__ */
|
|
2337
|
+
"sort-desc": /* @__PURE__ */ b(P, { children: [
|
|
2280
2338
|
/* @__PURE__ */ e("path", { d: "M12 5v14" }),
|
|
2281
2339
|
/* @__PURE__ */ e("path", { d: "M8 15l4 4 4-4" })
|
|
2282
2340
|
] }),
|
|
2283
|
-
refresh: /* @__PURE__ */
|
|
2341
|
+
refresh: /* @__PURE__ */ b(P, { children: [
|
|
2284
2342
|
/* @__PURE__ */ e("path", { d: "M3 12a9 9 0 019-9 9 9 0 016.7 3L21 8" }),
|
|
2285
2343
|
/* @__PURE__ */ e("path", { d: "M21 3v5h-5" }),
|
|
2286
2344
|
/* @__PURE__ */ e("path", { d: "M21 12a9 9 0 01-9 9 9 9 0 01-6.7-3L3 16" }),
|
|
2287
2345
|
/* @__PURE__ */ e("path", { d: "M3 21v-5h5" })
|
|
2288
2346
|
] }),
|
|
2289
|
-
more: /* @__PURE__ */
|
|
2347
|
+
more: /* @__PURE__ */ b(P, { children: [
|
|
2290
2348
|
/* @__PURE__ */ e("circle", { cx: "5", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" }),
|
|
2291
2349
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" }),
|
|
2292
2350
|
/* @__PURE__ */ e("circle", { cx: "19", cy: "12", r: "1.6", fill: "currentColor", stroke: "none" })
|
|
2293
2351
|
] }),
|
|
2294
|
-
wand: /* @__PURE__ */
|
|
2352
|
+
wand: /* @__PURE__ */ b(P, { children: [
|
|
2295
2353
|
/* @__PURE__ */ e("path", { d: "M3 21l12-12" }),
|
|
2296
2354
|
/* @__PURE__ */ e("path", { d: "M12.5 6.5l5 5" }),
|
|
2297
2355
|
/* @__PURE__ */ e("path", { d: "M18 3v4M16 5h4" })
|
|
2298
2356
|
] }),
|
|
2299
|
-
merge: /* @__PURE__ */
|
|
2357
|
+
merge: /* @__PURE__ */ b(P, { children: [
|
|
2300
2358
|
/* @__PURE__ */ e("circle", { cx: "6", cy: "6", r: "3" }),
|
|
2301
2359
|
/* @__PURE__ */ e("circle", { cx: "18", cy: "18", r: "3" }),
|
|
2302
2360
|
/* @__PURE__ */ e("path", { d: "M6 9v12" }),
|
|
2303
2361
|
/* @__PURE__ */ e("path", { d: "M6 9a9 9 0 009 9" })
|
|
2304
2362
|
] }),
|
|
2305
|
-
push: /* @__PURE__ */
|
|
2363
|
+
push: /* @__PURE__ */ b(P, { children: [
|
|
2306
2364
|
/* @__PURE__ */ e("path", { d: "M5 4h14" }),
|
|
2307
2365
|
/* @__PURE__ */ e("path", { d: "M12 19V8" }),
|
|
2308
2366
|
/* @__PURE__ */ e("path", { d: "M7 13l5-5 5 5" })
|
|
2309
2367
|
] }),
|
|
2310
|
-
pull: /* @__PURE__ */
|
|
2368
|
+
pull: /* @__PURE__ */ b(P, { children: [
|
|
2311
2369
|
/* @__PURE__ */ e("path", { d: "M5 20h14" }),
|
|
2312
2370
|
/* @__PURE__ */ e("path", { d: "M12 5v11" }),
|
|
2313
2371
|
/* @__PURE__ */ e("path", { d: "M7 11l5 5 5-5" })
|
|
2314
2372
|
] }),
|
|
2315
|
-
shuffle: /* @__PURE__ */
|
|
2373
|
+
shuffle: /* @__PURE__ */ b(P, { children: [
|
|
2316
2374
|
/* @__PURE__ */ e("path", { d: "M16 3h5v5" }),
|
|
2317
2375
|
/* @__PURE__ */ e("path", { d: "M4 20L21 3" }),
|
|
2318
2376
|
/* @__PURE__ */ e("path", { d: "M21 16v5h-5" }),
|
|
2319
2377
|
/* @__PURE__ */ e("path", { d: "M15 15l6 6" }),
|
|
2320
2378
|
/* @__PURE__ */ e("path", { d: "M4 4l5 5" })
|
|
2321
2379
|
] }),
|
|
2322
|
-
commit: /* @__PURE__ */
|
|
2380
|
+
commit: /* @__PURE__ */ b(P, { children: [
|
|
2323
2381
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "4" }),
|
|
2324
2382
|
/* @__PURE__ */ e("path", { d: "M2 12h6" }),
|
|
2325
2383
|
/* @__PURE__ */ e("path", { d: "M16 12h6" })
|
|
@@ -2332,14 +2390,14 @@ const Vr = "file-button-module__fileButton___aK91Q", Jr = "file-button-module__d
|
|
|
2332
2390
|
d: "M12 .5C5.37.5 0 5.78 0 12.29c0 5.2 3.44 9.6 8.2 11.16.6.1.82-.25.82-.56v-2c-3.34.72-4.04-1.6-4.04-1.6-.55-1.37-1.34-1.74-1.34-1.74-1.1-.74.08-.73.08-.73 1.2.08 1.84 1.22 1.84 1.22 1.07 1.8 2.8 1.29 3.5.98.1-.77.42-1.3.76-1.6-2.67-.3-5.47-1.31-5.47-5.83 0-1.29.47-2.34 1.24-3.17-.13-.3-.54-1.52.12-3.17 0 0 1.01-.32 3.3 1.21a11.5 11.5 0 016 0c2.28-1.53 3.29-1.21 3.29-1.21.66 1.65.25 2.87.12 3.17.77.83 1.24 1.88 1.24 3.17 0 4.53-2.81 5.53-5.49 5.82.43.37.81 1.1.81 2.22v3.29c0 .32.21.68.82.56A12.02 12.02 0 0024 12.29C24 5.78 18.63.5 12 .5z"
|
|
2333
2391
|
}
|
|
2334
2392
|
),
|
|
2335
|
-
note: /* @__PURE__ */
|
|
2393
|
+
note: /* @__PURE__ */ b(P, { children: [
|
|
2336
2394
|
/* @__PURE__ */ e("path", { d: "M6 3h9l4 4v13a1 1 0 01-1 1H6a1 1 0 01-1-1V4a1 1 0 011-1z" }),
|
|
2337
2395
|
/* @__PURE__ */ e("path", { d: "M14 3v5h5" }),
|
|
2338
2396
|
/* @__PURE__ */ e("path", { d: "M9 13h6M9 17h6" })
|
|
2339
2397
|
] })
|
|
2340
2398
|
};
|
|
2341
|
-
function
|
|
2342
|
-
return /* @__PURE__ */
|
|
2399
|
+
function nd({ name: o, size: t = 24, title: n, className: l, ...s }) {
|
|
2400
|
+
return /* @__PURE__ */ b(
|
|
2343
2401
|
"svg",
|
|
2344
2402
|
{
|
|
2345
2403
|
viewBox: "0 0 24 24",
|
|
@@ -2353,64 +2411,64 @@ function V_({ name: o, size: t = 24, title: n, className: s, ...l }) {
|
|
|
2353
2411
|
role: n ? "img" : void 0,
|
|
2354
2412
|
"aria-hidden": n ? void 0 : !0,
|
|
2355
2413
|
"aria-label": n,
|
|
2356
|
-
className:
|
|
2357
|
-
...
|
|
2414
|
+
className: _(r_.icon, l),
|
|
2415
|
+
...s,
|
|
2358
2416
|
children: [
|
|
2359
2417
|
n && /* @__PURE__ */ e("title", { children: n }),
|
|
2360
|
-
|
|
2418
|
+
__[o]
|
|
2361
2419
|
]
|
|
2362
2420
|
}
|
|
2363
2421
|
);
|
|
2364
2422
|
}
|
|
2365
2423
|
export {
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2424
|
+
R_ as Alert,
|
|
2425
|
+
h_ as Backdrop,
|
|
2426
|
+
ed as Breadcrumb,
|
|
2427
|
+
f_ as Button,
|
|
2428
|
+
B_ as Card,
|
|
2429
|
+
E_ as Checkbox,
|
|
2430
|
+
q_ as Chip,
|
|
2431
|
+
j_ as CircularProgress,
|
|
2432
|
+
X_ as CodeBlock,
|
|
2433
|
+
J_ as CopyButton,
|
|
2434
|
+
Q_ as DataTable,
|
|
2435
|
+
O_ as Divider,
|
|
2436
|
+
K_ as Drawer,
|
|
2437
|
+
Y_ as EmptyState,
|
|
2438
|
+
od as FileButton,
|
|
2439
|
+
b_ as Glass,
|
|
2440
|
+
pt as Glow,
|
|
2441
|
+
ct as Grain,
|
|
2442
|
+
nd as Icon,
|
|
2443
|
+
v_ as IconButton,
|
|
2444
|
+
V_ as InlineCode,
|
|
2445
|
+
L_ as Input,
|
|
2446
|
+
Z_ as Kbd,
|
|
2447
|
+
g_ as LampButton,
|
|
2448
|
+
y_ as LampIconButton,
|
|
2449
|
+
k_ as LampMeter,
|
|
2450
|
+
w_ as LampStatus,
|
|
2451
|
+
$_ as LampSwitch,
|
|
2452
|
+
N_ as LinkButton,
|
|
2453
|
+
P_ as ListItem,
|
|
2454
|
+
td as Menu,
|
|
2455
|
+
F_ as Modal,
|
|
2456
|
+
A_ as Progress,
|
|
2457
|
+
_s as Radio,
|
|
2458
|
+
z_ as RadioGroup,
|
|
2459
|
+
U_ as SegmentedControl,
|
|
2460
|
+
C_ as Select,
|
|
2461
|
+
vc as Skeleton,
|
|
2462
|
+
G_ as Slider,
|
|
2463
|
+
qa as Spinner,
|
|
2464
|
+
x_ as Stamp,
|
|
2465
|
+
H_ as StatusDot,
|
|
2466
|
+
T_ as Switch,
|
|
2467
|
+
W_ as Tabs,
|
|
2468
|
+
S_ as Textarea,
|
|
2469
|
+
D_ as ToastProvider,
|
|
2470
|
+
M_ as Tooltip,
|
|
2471
|
+
_ as cn,
|
|
2472
|
+
I_ as useToast
|
|
2415
2473
|
};
|
|
2416
2474
|
//# sourceMappingURL=index.mjs.map
|