@ufoui/core 0.0.1 → 0.0.2
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/README.md +29 -3
- package/components/article/article.d.ts +1 -1
- package/components/aside/aside.d.ts +1 -1
- package/components/avatar/avatar.d.ts +1 -1
- package/components/badge/badge.d.ts +1 -1
- package/components/base/boxBase/boxBase.d.ts +1 -1
- package/components/base/buttonBase/buttonBase.d.ts +1 -1
- package/components/base/checkboxBase/checkboxBase.d.ts +2 -2
- package/components/base/dialogBase/dialog.d.ts +2 -2
- package/components/base/fieldBase/fieldBase.d.ts +1 -1
- package/components/base/inlineBase/inlineBase.d.ts +1 -1
- package/components/button/button.d.ts +1 -1
- package/components/checkbox/checkbox.d.ts +1 -1
- package/components/chip/chip.d.ts +1 -1
- package/components/content/content.d.ts +1 -1
- package/components/dateInput/dateInput.d.ts +1 -1
- package/components/dateTimeInput/dateTimeInput.d.ts +1 -1
- package/components/dialog/dialogActions.d.ts +1 -1
- package/components/dialog/dialogTitle.d.ts +1 -1
- package/components/div/div.d.ts +1 -1
- package/components/divider/divider.d.ts +1 -2
- package/components/divider/divider.guards.d.ts +1 -1
- package/components/emailInput/emailInput.d.ts +1 -1
- package/components/fab/fab.d.ts +1 -1
- package/components/fieldset/fieldset.d.ts +1 -1
- package/components/flex/flex.d.ts +1 -1
- package/components/footer/footer.d.ts +1 -1
- package/components/grid/grid.d.ts +1 -1
- package/components/header/header.d.ts +1 -1
- package/components/iconButton/iconButton.d.ts +1 -1
- package/components/listItem/listItem.d.ts +2 -2
- package/components/listItem/listItem.guards.d.ts +1 -1
- package/components/main/main.d.ts +1 -1
- package/components/menu/menu.d.ts +2 -2
- package/components/menu/menu.guards.d.ts +1 -1
- package/components/menuItem/menuItem.d.ts +2 -2
- package/components/menuItem/menuItem.guards.d.ts +1 -1
- package/components/nav/nav.d.ts +1 -1
- package/components/numberInput/numberInput.d.ts +1 -1
- package/components/option/option.d.ts +1 -1
- package/components/option/option.guards.d.ts +1 -1
- package/components/radio/radio.d.ts +1 -1
- package/components/radiogroup/radioGroup.d.ts +1 -1
- package/components/section/section.d.ts +1 -1
- package/components/select/select.d.ts +1 -1
- package/components/switch/switch.d.ts +1 -1
- package/components/telInput/telInput.d.ts +1 -1
- package/components/textField/textField.d.ts +1 -1
- package/components/timeInput/timeInput.d.ts +1 -1
- package/components/toggleButton/toggleButton.d.ts +1 -1
- package/components/tooltip/tooltip.d.ts +1 -1
- package/components/urlInput/urlInput.d.ts +1 -1
- package/context/themeContext.d.ts +2 -2
- package/hooks/useTheme.d.ts +1 -1
- package/index.d.ts +5 -1
- package/index.mjs +1486 -1582
- package/internal/inlineTooltip/inlineTooltipManager.d.ts +1 -1
- package/package.json +1 -1
- package/utils/calculateFloatingPosition.d.ts +1 -1
- package/utils/color.d.ts +1 -1
- package/utils/generateMaterialColors.d.ts +1 -1
- package/utils/generateSchemes.d.ts +1 -1
package/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import lt, { forwardRef as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import { argbFromHex as bt, themeFromSourceColor as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as i, jsxs as j, Fragment as tt } from "react/jsx-runtime";
|
|
2
|
+
import lt, { forwardRef as P, isValidElement as vt, createContext as xt, useSyncExternalStore as kn, useState as ee, useRef as ce, useCallback as yt, useEffect as ye, useContext as It, cloneElement as At, useLayoutEffect as ln, useMemo as an } from "react";
|
|
3
|
+
import { createPortal as Wt } from "react-dom";
|
|
4
|
+
import { argbFromHex as bt, themeFromSourceColor as Fn, hexFromArgb as be, TonalPalette as Ln } from "@material/material-color-utilities";
|
|
5
|
+
const Bn = (e) => ({
|
|
6
6
|
topLeft: "uui-top-left",
|
|
7
7
|
topCenter: "uui-top-center",
|
|
8
8
|
topRight: "uui-top-right",
|
|
@@ -15,7 +15,7 @@ const un = (e) => ({
|
|
|
15
15
|
bottomCenter: "uui-bottom-center",
|
|
16
16
|
bottomRight: "uui-bottom-right",
|
|
17
17
|
auto: "uui-top-right"
|
|
18
|
-
})[e],
|
|
18
|
+
})[e], Ue = (e) => {
|
|
19
19
|
switch (e) {
|
|
20
20
|
case "square":
|
|
21
21
|
return "uui-square";
|
|
@@ -28,16 +28,16 @@ const un = (e) => ({
|
|
|
28
28
|
default:
|
|
29
29
|
return "";
|
|
30
30
|
}
|
|
31
|
-
},
|
|
31
|
+
}, wt = (e) => ({
|
|
32
32
|
extraSmall: "uui-extra-small",
|
|
33
33
|
small: "uui-small",
|
|
34
34
|
medium: "uui-medium",
|
|
35
35
|
large: "uui-large",
|
|
36
36
|
extraLarge: "uui-extra-large"
|
|
37
|
-
})[e],
|
|
38
|
-
const
|
|
39
|
-
return
|
|
40
|
-
},
|
|
37
|
+
})[e], nt = (e) => {
|
|
38
|
+
const n = un(0, 5, e);
|
|
39
|
+
return n === void 0 ? "" : `uui-border-${n}`;
|
|
40
|
+
}, ut = (e) => {
|
|
41
41
|
switch (e) {
|
|
42
42
|
case 0:
|
|
43
43
|
return "uui-elevation-0";
|
|
@@ -54,7 +54,7 @@ const un = (e) => ({
|
|
|
54
54
|
default:
|
|
55
55
|
return "";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, dt = (e) => {
|
|
58
58
|
switch (e) {
|
|
59
59
|
case "compact":
|
|
60
60
|
return "uui-compact";
|
|
@@ -63,7 +63,7 @@ const un = (e) => ({
|
|
|
63
63
|
default:
|
|
64
64
|
return "";
|
|
65
65
|
}
|
|
66
|
-
},
|
|
66
|
+
}, Ie = (e) => ({
|
|
67
67
|
displayLarge: "uui-font-display-large",
|
|
68
68
|
displayMedium: "uui-font-display-medium",
|
|
69
69
|
displaySmall: "uui-font-display-small",
|
|
@@ -82,87 +82,41 @@ const un = (e) => ({
|
|
|
82
82
|
caption: "uui-font-caption",
|
|
83
83
|
overline: "uui-font-overline"
|
|
84
84
|
})[e];
|
|
85
|
-
function
|
|
86
|
-
return (
|
|
87
|
-
e.forEach((
|
|
88
|
-
if (typeof
|
|
89
|
-
n
|
|
90
|
-
else if (
|
|
91
|
-
const
|
|
92
|
-
|
|
85
|
+
function ft(...e) {
|
|
86
|
+
return (n) => {
|
|
87
|
+
e.forEach((t) => {
|
|
88
|
+
if (typeof t == "function")
|
|
89
|
+
t(n);
|
|
90
|
+
else if (t) {
|
|
91
|
+
const r = t;
|
|
92
|
+
r.current = n;
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
const
|
|
98
|
-
const
|
|
97
|
+
const St = (e, n, t) => {
|
|
98
|
+
const r = t ?? e, s = r.querySelector(".ripple-container");
|
|
99
99
|
s && s.remove();
|
|
100
|
-
const o = e.getBoundingClientRect(), u =
|
|
100
|
+
const o = e.getBoundingClientRect(), u = r.getBoundingClientRect(), l = n.clientX - o.left, m = n.clientY - o.top, p = l >= 0 && l <= o.width && m >= 0 && m <= o.height, c = p ? l : o.width / 2, a = p ? m : o.height / 2, f = Math.sqrt(o.width * o.width + o.height * o.height), x = f / 2, g = document.createElement("div");
|
|
101
101
|
g.className = "ripple-container", g.style.position = "absolute", g.style.pointerEvents = "none", g.style.overflow = "hidden", g.style.width = `${o.width}px`, g.style.height = `${o.height}px`, g.style.left = `${o.left - u.left}px`, g.style.top = `${o.top - u.top}px`, requestAnimationFrame(() => {
|
|
102
102
|
g.style.borderRadius = getComputedStyle(e).borderRadius;
|
|
103
103
|
});
|
|
104
|
-
const
|
|
105
|
-
|
|
104
|
+
const w = document.createElement("span");
|
|
105
|
+
w.className = "ripple", w.style.position = "absolute", w.style.width = `${f}px`, w.style.height = `${f}px`, w.style.left = `${c - x}px`, w.style.top = `${a - x}px`, g.appendChild(w), r.appendChild(g), w.addEventListener("animationend", () => {
|
|
106
106
|
g.remove();
|
|
107
107
|
});
|
|
108
|
-
},
|
|
108
|
+
}, $t = (e) => (
|
|
109
109
|
// eslint-disable-next-line sonarjs/pseudo-random
|
|
110
110
|
`${e}_${Math.floor((1 + Math.random()) * 65536).toString(16).substring(1)}`
|
|
111
111
|
);
|
|
112
|
-
function
|
|
112
|
+
function Et(e) {
|
|
113
113
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").toLowerCase();
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const s = Number(
|
|
117
|
-
return Number.isFinite(s) ? Math.min(
|
|
115
|
+
function un(e, n, t, r) {
|
|
116
|
+
const s = Number(t);
|
|
117
|
+
return Number.isFinite(s) ? Math.min(n, Math.max(e, Math.round(s))) : r;
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
const i = ["uui-spinner", `uui-spinner-${e}`, t && "uui-spinner-inline", n].filter(Boolean).join(" ");
|
|
121
|
-
return e === "circular" ? /* @__PURE__ */ r("svg", { "aria-hidden": "true", className: i, viewBox: "22 22 44 44", children: /* @__PURE__ */ r("circle", { className: "uui-spinner-circle", cx: "44", cy: "44", fill: "none", r: "19.8", strokeWidth: "4.6" }) }) : e === "bars2" ? /* @__PURE__ */ L("svg", { className: "uui-bars-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
122
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", width: "4", x: "22" }),
|
|
123
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-135 33.9 16.9)", width: "4", x: "33.9", y: "16.9" }),
|
|
124
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-90 36 26)", width: "4", x: "36", y: "26" }),
|
|
125
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-45 31.1 33.9)", width: "4", x: "31.1", y: "33.9" }),
|
|
126
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", width: "4", x: "22", y: "36" }),
|
|
127
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-135 8.4 42.4)", width: "4", x: "8.4", y: "42.4" }),
|
|
128
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-90 0 26)", width: "4", y: "26" }),
|
|
129
|
-
/* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-45 5.6 8.4)", width: "4", x: "5.6", y: "8.4" })
|
|
130
|
-
] }) : e === "orbit" ? /* @__PURE__ */ L("svg", { className: "uui-orbit-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
131
|
-
/* @__PURE__ */ r("circle", { cx: "24", cy: "4", r: "4" }),
|
|
132
|
-
/* @__PURE__ */ r("circle", { cx: "38.1421", cy: "9.8579", r: "4" }),
|
|
133
|
-
/* @__PURE__ */ r("circle", { cx: "44", cy: "24", r: "4" }),
|
|
134
|
-
/* @__PURE__ */ r("circle", { cx: "38.1421", cy: "38.1421", r: "4" }),
|
|
135
|
-
/* @__PURE__ */ r("circle", { cx: "24", cy: "44", r: "4" }),
|
|
136
|
-
/* @__PURE__ */ r("circle", { cx: "9.8579", cy: "38.1421", r: "4" }),
|
|
137
|
-
/* @__PURE__ */ r("circle", { cx: "4", cy: "24", r: "4" }),
|
|
138
|
-
/* @__PURE__ */ r("circle", { cx: "9.8579", cy: "9.8579", r: "4" })
|
|
139
|
-
] }) : e === "arc" ? /* @__PURE__ */ L("svg", { className: "uui-ring-spinner", viewBox: "0 0 56 56", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
140
|
-
/* @__PURE__ */ r("circle", { cx: "28", cy: "28", fill: "none", opacity: "0.25", r: "22", stroke: "currentColor", strokeWidth: "8" }),
|
|
141
|
-
/* @__PURE__ */ r(
|
|
142
|
-
"circle",
|
|
143
|
-
{
|
|
144
|
-
cx: "28",
|
|
145
|
-
cy: "28",
|
|
146
|
-
fill: "none",
|
|
147
|
-
r: "22",
|
|
148
|
-
stroke: "currentColor",
|
|
149
|
-
strokeDasharray: "69 69",
|
|
150
|
-
strokeDashoffset: "0",
|
|
151
|
-
strokeLinecap: "butt",
|
|
152
|
-
strokeWidth: "8"
|
|
153
|
-
}
|
|
154
|
-
)
|
|
155
|
-
] }) : e === "stepBar" ? /* @__PURE__ */ L("svg", { className: "uui-bars-steps", viewBox: "0 0 48 48", children: [
|
|
156
|
-
/* @__PURE__ */ r("rect", { height: "8", rx: "4", width: "8", x: "6", y: "20" }),
|
|
157
|
-
/* @__PURE__ */ r("rect", { height: "8", rx: "4", width: "8", x: "20", y: "20" }),
|
|
158
|
-
/* @__PURE__ */ r("rect", { height: "8", rx: "4", width: "8", x: "34", y: "20" })
|
|
159
|
-
] }) : /* @__PURE__ */ L("svg", { className: "uui-dots2-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
160
|
-
/* @__PURE__ */ r("circle", { cx: "10", cy: "24", r: "4" }),
|
|
161
|
-
/* @__PURE__ */ r("circle", { cx: "24", cy: "24", r: "4" }),
|
|
162
|
-
/* @__PURE__ */ r("circle", { cx: "38", cy: "24", r: "4" })
|
|
163
|
-
] });
|
|
164
|
-
}
|
|
165
|
-
const dn = [
|
|
119
|
+
const cn = [
|
|
166
120
|
"primary",
|
|
167
121
|
"secondary",
|
|
168
122
|
"tertiary",
|
|
@@ -170,8 +124,8 @@ const dn = [
|
|
|
170
124
|
"info",
|
|
171
125
|
"success",
|
|
172
126
|
"error"
|
|
173
|
-
],
|
|
174
|
-
...
|
|
127
|
+
], Nn = [
|
|
128
|
+
...cn,
|
|
175
129
|
"primaryContainer",
|
|
176
130
|
"primaryFixed",
|
|
177
131
|
"primaryFixedDim",
|
|
@@ -195,8 +149,8 @@ const dn = [
|
|
|
195
149
|
"errorFixedDim",
|
|
196
150
|
"black",
|
|
197
151
|
"white"
|
|
198
|
-
],
|
|
199
|
-
...
|
|
152
|
+
], dn = [
|
|
153
|
+
...Nn,
|
|
200
154
|
"outline",
|
|
201
155
|
"outlineVariant",
|
|
202
156
|
"surface",
|
|
@@ -211,8 +165,8 @@ const dn = [
|
|
|
211
165
|
"surfaceContainerLowest",
|
|
212
166
|
"surfaceBright",
|
|
213
167
|
"surfaceDim"
|
|
214
|
-
],
|
|
215
|
-
...
|
|
168
|
+
], fn = [
|
|
169
|
+
...dn,
|
|
216
170
|
"onPrimary",
|
|
217
171
|
"onPrimaryContainer",
|
|
218
172
|
"onPrimaryFixed",
|
|
@@ -276,44 +230,44 @@ const dn = [
|
|
|
276
230
|
popElastic: "uui-motion-pop-elastic",
|
|
277
231
|
jelly: "uui-motion-jelly"
|
|
278
232
|
};
|
|
279
|
-
function
|
|
233
|
+
function In(e) {
|
|
280
234
|
return e ? Mt[e] ?? "" : "";
|
|
281
235
|
}
|
|
282
|
-
function
|
|
236
|
+
function Wr() {
|
|
283
237
|
return Object.keys(Mt);
|
|
284
238
|
}
|
|
285
|
-
function
|
|
239
|
+
function En(e) {
|
|
286
240
|
return e === "expressive" ? "uui-motion-expressive" : "";
|
|
287
241
|
}
|
|
288
|
-
const
|
|
289
|
-
const
|
|
242
|
+
const Tn = (e) => {
|
|
243
|
+
const n = cn.includes(e) ? e : "primary";
|
|
290
244
|
return {
|
|
291
|
-
textColor: `uui-text-${
|
|
292
|
-
borderColor: `uui-border-${
|
|
293
|
-
bgColor: `uui-bg-${
|
|
294
|
-
textOnColor: `uui-text-on-${
|
|
295
|
-
borderOnColor: `uui-border-on-${
|
|
296
|
-
bgOnColor: `uui-bg-on-${
|
|
297
|
-
textContainer: `uui-text-${
|
|
298
|
-
borderContainer: `uui-border-${
|
|
299
|
-
bgContainer: `uui-bg-${
|
|
300
|
-
textOnContainer: `uui-text-on-${
|
|
301
|
-
borderOnContainer: `uui-border-on-${
|
|
302
|
-
bgOnContainer: `uui-bg-on-${
|
|
303
|
-
textFixed: `uui-text-${
|
|
304
|
-
borderFixed: `uui-border-${
|
|
305
|
-
bgFixed: `uui-bg-${
|
|
306
|
-
textOnFixed: `uui-text-on-${
|
|
307
|
-
borderOnFixed: `uui-border-on-${
|
|
308
|
-
bgOnFixed: `uui-bg-on-${
|
|
309
|
-
textFixedDim: `uui-text-${
|
|
310
|
-
borderFixedDim: `uui-border-${
|
|
311
|
-
bgFixedDim: `uui-bg-${
|
|
312
|
-
textOnFixedVariant: `uui-text-on-${
|
|
313
|
-
borderOnFixedVariant: `uui-border-on-${
|
|
314
|
-
bgOnFixedVariant: `uui-bg-on-${
|
|
245
|
+
textColor: `uui-text-${n}`,
|
|
246
|
+
borderColor: `uui-border-${n}`,
|
|
247
|
+
bgColor: `uui-bg-${n}`,
|
|
248
|
+
textOnColor: `uui-text-on-${n}`,
|
|
249
|
+
borderOnColor: `uui-border-on-${n}`,
|
|
250
|
+
bgOnColor: `uui-bg-on-${n}`,
|
|
251
|
+
textContainer: `uui-text-${n}-container`,
|
|
252
|
+
borderContainer: `uui-border-${n}-container`,
|
|
253
|
+
bgContainer: `uui-bg-${n}-container`,
|
|
254
|
+
textOnContainer: `uui-text-on-${n}-container`,
|
|
255
|
+
borderOnContainer: `uui-border-on-${n}-container`,
|
|
256
|
+
bgOnContainer: `uui-bg-on-${n}-container`,
|
|
257
|
+
textFixed: `uui-text-${n}-fixed`,
|
|
258
|
+
borderFixed: `uui-border-${n}-fixed`,
|
|
259
|
+
bgFixed: `uui-bg-${n}-fixed`,
|
|
260
|
+
textOnFixed: `uui-text-on-${n}-fixed`,
|
|
261
|
+
borderOnFixed: `uui-border-on-${n}-fixed`,
|
|
262
|
+
bgOnFixed: `uui-bg-on-${n}-fixed`,
|
|
263
|
+
textFixedDim: `uui-text-${n}-fixed-dim`,
|
|
264
|
+
borderFixedDim: `uui-border-${n}-fixed-dim`,
|
|
265
|
+
bgFixedDim: `uui-bg-${n}-fixed-dim`,
|
|
266
|
+
textOnFixedVariant: `uui-text-on-${n}-fixed-variant`,
|
|
267
|
+
borderOnFixedVariant: `uui-border-on-${n}-fixed-variant`,
|
|
268
|
+
bgOnFixedVariant: `uui-bg-on-${n}-fixed-variant`
|
|
315
269
|
};
|
|
316
|
-
},
|
|
270
|
+
}, Tt = {
|
|
317
271
|
// SURFACE
|
|
318
272
|
surface: "onSurface",
|
|
319
273
|
surfaceVariant: "onSurfaceVariant",
|
|
@@ -381,61 +335,61 @@ const Vn = (e) => {
|
|
|
381
335
|
onSuccessContainer: "successContainer",
|
|
382
336
|
onErrorContainer: "errorContainer"
|
|
383
337
|
}, Vt = (e) => {
|
|
384
|
-
const
|
|
338
|
+
const n = dn.includes(e) ? e : "primary", t = Et(n), r = Et(Tt[n]);
|
|
385
339
|
return {
|
|
386
|
-
textColor: `uui-text-${
|
|
387
|
-
textOnColor: `uui-text-${
|
|
388
|
-
borderColor: `uui-border-${
|
|
389
|
-
borderOnColor: `uui-border-${
|
|
390
|
-
bgColor: `uui-bg-${
|
|
391
|
-
bgOnColor: `uui-bg-${
|
|
340
|
+
textColor: `uui-text-${t}`,
|
|
341
|
+
textOnColor: `uui-text-${r}`,
|
|
342
|
+
borderColor: `uui-border-${t}`,
|
|
343
|
+
borderOnColor: `uui-border-${r}`,
|
|
344
|
+
bgColor: `uui-bg-${t}`,
|
|
345
|
+
bgOnColor: `uui-bg-${r}`
|
|
392
346
|
};
|
|
393
|
-
},
|
|
394
|
-
const
|
|
347
|
+
}, Hr = (e) => {
|
|
348
|
+
const n = fn.includes(e) ? e : "primary", t = Et(n);
|
|
395
349
|
return {
|
|
396
|
-
textColor: `uui-text-${
|
|
397
|
-
borderColor: `uui-border-${
|
|
398
|
-
bgColor: `uui-bg-${
|
|
350
|
+
textColor: `uui-text-${t}`,
|
|
351
|
+
borderColor: `uui-border-${t}`,
|
|
352
|
+
bgColor: `uui-bg-${t}`
|
|
399
353
|
};
|
|
400
354
|
};
|
|
401
|
-
function
|
|
355
|
+
function Ht(e) {
|
|
402
356
|
return Vt(e).borderColor;
|
|
403
357
|
}
|
|
404
|
-
const
|
|
405
|
-
const
|
|
358
|
+
const qr = (e) => {
|
|
359
|
+
const n = e.toLowerCase(), t = `--uui-color-${n}`, r = `--uui-color-on-${n}`;
|
|
406
360
|
return {
|
|
407
|
-
color: `var(${
|
|
408
|
-
onColor: `var(${
|
|
409
|
-
container: `var(${
|
|
410
|
-
onContainer: `var(${
|
|
411
|
-
fixed: `var(${
|
|
412
|
-
fixedDim: `var(${
|
|
413
|
-
onFixed: `var(${
|
|
414
|
-
onFixedVariant: `var(${
|
|
361
|
+
color: `var(${t})`,
|
|
362
|
+
onColor: `var(${r})`,
|
|
363
|
+
container: `var(${t}-container)`,
|
|
364
|
+
onContainer: `var(${r}-container)`,
|
|
365
|
+
fixed: `var(${t}-fixed)`,
|
|
366
|
+
fixedDim: `var(${t}-fixed-dim)`,
|
|
367
|
+
onFixed: `var(${r}-fixed)`,
|
|
368
|
+
onFixedVariant: `var(${r}-fixed-variant)`
|
|
415
369
|
};
|
|
416
|
-
},
|
|
417
|
-
const
|
|
370
|
+
}, mn = (e) => {
|
|
371
|
+
const n = e.toLowerCase(), t = `--uui-color-${n}`, r = `--uui-color-on-${n}`;
|
|
418
372
|
return {
|
|
419
|
-
color: `var(${
|
|
420
|
-
onColor: `var(${
|
|
373
|
+
color: `var(${t})`,
|
|
374
|
+
onColor: `var(${r})`
|
|
421
375
|
};
|
|
422
|
-
},
|
|
376
|
+
}, Mn = (e) => [parseInt(e.slice(1, 3), 16), parseInt(e.slice(3, 5), 16), parseInt(e.slice(5, 7), 16)], Zr = (e) => [
|
|
423
377
|
parseInt(e.slice(1, 3), 16),
|
|
424
378
|
parseInt(e.slice(3, 5), 16),
|
|
425
379
|
parseInt(e.slice(5, 7), 16)
|
|
426
380
|
].join(",");
|
|
427
|
-
function
|
|
428
|
-
const
|
|
381
|
+
function _r(e, n) {
|
|
382
|
+
const r = {
|
|
429
383
|
0: "0",
|
|
430
384
|
1: "0.05",
|
|
431
385
|
2: "0.08",
|
|
432
386
|
3: "0.11",
|
|
433
387
|
4: "0.12",
|
|
434
388
|
5: "0.14"
|
|
435
|
-
}[e] ?? 0, [s, o, u] =
|
|
436
|
-
return `rgba(${String(s)}, ${String(o)}, ${String(u)}, ${
|
|
389
|
+
}[e] ?? 0, [s, o, u] = Mn(n);
|
|
390
|
+
return `rgba(${String(s)}, ${String(o)}, ${String(u)}, ${r})`;
|
|
437
391
|
}
|
|
438
|
-
const
|
|
392
|
+
const Kr = () => {
|
|
439
393
|
const e = [
|
|
440
394
|
"surface",
|
|
441
395
|
"onSurface",
|
|
@@ -459,22 +413,22 @@ const Gr = () => {
|
|
|
459
413
|
"background",
|
|
460
414
|
"onBackground",
|
|
461
415
|
"surfaceTint"
|
|
462
|
-
],
|
|
463
|
-
for (const
|
|
464
|
-
const
|
|
465
|
-
|
|
416
|
+
], n = {};
|
|
417
|
+
for (const t of e) {
|
|
418
|
+
const r = t.charAt(0).toUpperCase() + t.slice(1);
|
|
419
|
+
n[`text${r}`] = `uui-text-${t}`, n[`border${r}`] = `uui-border-${t}`, n[`outline${r}`] = `uui-outline-${t}`, n[`bg${r}`] = `uui-bg-${t}`;
|
|
466
420
|
}
|
|
467
|
-
return
|
|
468
|
-
},
|
|
469
|
-
const
|
|
470
|
-
["currentColor", `uui-current-${
|
|
471
|
-
["currentOnColor", `uui-current-on-${
|
|
472
|
-
["currentContainer", `uui-current-${
|
|
473
|
-
["currentOnContainer", `uui-current-on-${
|
|
474
|
-
["currentFixed", `uui-current-${
|
|
475
|
-
["currentOnFixed", `uui-current-on-${
|
|
476
|
-
["currentFixedDim", `uui-current-${
|
|
477
|
-
["currentOnFixedVariant", `uui-current-on-${
|
|
421
|
+
return n;
|
|
422
|
+
}, Gr = (e) => {
|
|
423
|
+
const n = Et(e), t = [
|
|
424
|
+
["currentColor", `uui-current-${n}`],
|
|
425
|
+
["currentOnColor", `uui-current-on-${n}`],
|
|
426
|
+
["currentContainer", `uui-current-${n}-container`],
|
|
427
|
+
["currentOnContainer", `uui-current-on-${n}-container`],
|
|
428
|
+
["currentFixed", `uui-current-${n}-fixed`],
|
|
429
|
+
["currentOnFixed", `uui-current-on-${n}-fixed`],
|
|
430
|
+
["currentFixedDim", `uui-current-${n}-fixed-dim`],
|
|
431
|
+
["currentOnFixedVariant", `uui-current-on-${n}-fixed-variant`],
|
|
478
432
|
["currentOnSurface", "uui-current-on-surface"],
|
|
479
433
|
["currentSurface", "uui-current-surface"],
|
|
480
434
|
["currentSurfaceDim", "uui-current-surface-dim"],
|
|
@@ -495,50 +449,50 @@ const Gr = () => {
|
|
|
495
449
|
["currentWhite", "uui-current-white"],
|
|
496
450
|
["currentBlack", "uui-current-black"]
|
|
497
451
|
];
|
|
498
|
-
return Object.fromEntries(
|
|
452
|
+
return Object.fromEntries(t);
|
|
499
453
|
};
|
|
500
|
-
function
|
|
454
|
+
function Vn(e) {
|
|
501
455
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
502
456
|
}
|
|
503
457
|
function T(e) {
|
|
504
|
-
const
|
|
505
|
-
function
|
|
506
|
-
|
|
458
|
+
const n = { ...e || {} };
|
|
459
|
+
function t(c, a) {
|
|
460
|
+
n[c] = a;
|
|
507
461
|
}
|
|
508
|
-
const
|
|
462
|
+
const r = (c) => `var(--uui-color-${c.replace(/[A-Z]/g, (a) => "-" + a.toLowerCase())})`, s = (c) => Object.assign(
|
|
509
463
|
(a) => {
|
|
510
|
-
a && c(
|
|
464
|
+
a && c(r(a));
|
|
511
465
|
},
|
|
512
466
|
{
|
|
513
467
|
on(a) {
|
|
514
468
|
if (a) {
|
|
515
|
-
const f =
|
|
516
|
-
f !== void 0 && c(
|
|
469
|
+
const f = Tt[a];
|
|
470
|
+
f !== void 0 && c(r(f));
|
|
517
471
|
}
|
|
518
472
|
},
|
|
519
473
|
container(a) {
|
|
520
|
-
a && c(
|
|
474
|
+
a && c(r(`${a}Container`));
|
|
521
475
|
},
|
|
522
476
|
onContainer(a) {
|
|
523
|
-
a && c(
|
|
477
|
+
a && c(r(`on${Vn(a)}Container`));
|
|
524
478
|
},
|
|
525
479
|
fixed(a) {
|
|
526
|
-
a && c(
|
|
480
|
+
a && c(r(`${a}Fixed`));
|
|
527
481
|
},
|
|
528
482
|
fixedDim(a) {
|
|
529
|
-
a && c(
|
|
483
|
+
a && c(r(`${a}FixedDim`));
|
|
530
484
|
}
|
|
531
485
|
}
|
|
532
486
|
), o = s((c) => {
|
|
533
|
-
|
|
487
|
+
t("backgroundColor", c);
|
|
534
488
|
}), u = s((c) => {
|
|
535
|
-
|
|
489
|
+
t("color", c);
|
|
536
490
|
}), l = s((c) => {
|
|
537
|
-
|
|
491
|
+
t("borderColor", c);
|
|
538
492
|
}), m = s((c) => {
|
|
539
|
-
|
|
493
|
+
t("outlineColor", c);
|
|
540
494
|
}), p = s((c) => {
|
|
541
|
-
|
|
495
|
+
t("--uui-current-color", c);
|
|
542
496
|
});
|
|
543
497
|
return {
|
|
544
498
|
bg: o,
|
|
@@ -546,38 +500,38 @@ function T(e) {
|
|
|
546
500
|
border: l,
|
|
547
501
|
outline: m,
|
|
548
502
|
current: p,
|
|
549
|
-
set:
|
|
503
|
+
set: t,
|
|
550
504
|
get() {
|
|
551
|
-
return
|
|
505
|
+
return n;
|
|
552
506
|
},
|
|
553
507
|
merge(c) {
|
|
554
|
-
c && Object.assign(
|
|
508
|
+
c && Object.assign(n, c);
|
|
555
509
|
}
|
|
556
510
|
};
|
|
557
511
|
}
|
|
558
|
-
function
|
|
512
|
+
function mt(e) {
|
|
559
513
|
return e ?? "outlineVariant";
|
|
560
514
|
}
|
|
561
|
-
const
|
|
562
|
-
({ font: e, size:
|
|
515
|
+
const Dn = P(
|
|
516
|
+
({ font: e, size: n = "small", ...t }, r) => /* @__PURE__ */ i(Ct, { font: e ?? {
|
|
563
517
|
extraSmall: "labelLarge",
|
|
564
518
|
small: "labelLarge",
|
|
565
519
|
medium: "titleMedium",
|
|
566
520
|
large: "headlineSmall",
|
|
567
521
|
extraLarge: "headlineLarge"
|
|
568
|
-
}[
|
|
522
|
+
}[n], ref: r, size: n, ...t, elementClass: "uui-button" })
|
|
569
523
|
);
|
|
570
|
-
|
|
571
|
-
const
|
|
524
|
+
Dn.displayName = "Button";
|
|
525
|
+
const Rn = P(
|
|
572
526
|
({
|
|
573
527
|
font: e,
|
|
574
|
-
size:
|
|
575
|
-
shape:
|
|
576
|
-
selectedShape:
|
|
528
|
+
size: n = "small",
|
|
529
|
+
shape: t = "smooth",
|
|
530
|
+
selectedShape: r = "smooth",
|
|
577
531
|
borderColor: s = "outlineVariant",
|
|
578
532
|
...o
|
|
579
|
-
}, u) => /* @__PURE__ */
|
|
580
|
-
|
|
533
|
+
}, u) => /* @__PURE__ */ i(
|
|
534
|
+
Ct,
|
|
581
535
|
{
|
|
582
536
|
borderColor: s,
|
|
583
537
|
font: e ?? {
|
|
@@ -586,22 +540,22 @@ const An = A(
|
|
|
586
540
|
medium: "titleMedium",
|
|
587
541
|
large: "headlineSmall",
|
|
588
542
|
extraLarge: "headlineLarge"
|
|
589
|
-
}[
|
|
543
|
+
}[n],
|
|
590
544
|
ref: u,
|
|
591
|
-
selectedShape:
|
|
545
|
+
selectedShape: r,
|
|
592
546
|
...o,
|
|
593
547
|
elementClass: "uui-chip",
|
|
594
|
-
shape:
|
|
595
|
-
size:
|
|
548
|
+
shape: t,
|
|
549
|
+
size: n
|
|
596
550
|
}
|
|
597
551
|
)
|
|
598
552
|
);
|
|
599
|
-
|
|
600
|
-
const
|
|
553
|
+
Rn.displayName = "Chip";
|
|
554
|
+
const qt = (e) => {
|
|
601
555
|
const {
|
|
602
|
-
children:
|
|
603
|
-
className:
|
|
604
|
-
border:
|
|
556
|
+
children: n,
|
|
557
|
+
className: t,
|
|
558
|
+
border: r,
|
|
605
559
|
borderColor: s,
|
|
606
560
|
color: o = "error",
|
|
607
561
|
align: u = "topRight",
|
|
@@ -611,24 +565,24 @@ const On = (e) => {
|
|
|
611
565
|
ariaLabel: c,
|
|
612
566
|
value: a,
|
|
613
567
|
font: f,
|
|
614
|
-
offset:
|
|
568
|
+
offset: x,
|
|
615
569
|
...g
|
|
616
|
-
} = e,
|
|
570
|
+
} = e, w = "uui-badge", F = f ?? (m === "extraLarge" || m === "large" ? "labelMedium" : "labelSmall"), b = [
|
|
617
571
|
"uui-badge-control",
|
|
618
|
-
n,
|
|
619
|
-
je(l),
|
|
620
|
-
Ct(m),
|
|
621
|
-
$e($)
|
|
622
|
-
], h = ["uui-badge-slot", un(u)].filter(Boolean).join(" "), w = T();
|
|
623
|
-
w.bg(o), w.text.on(o), b !== void 0 && w.set("--uui-badge-offset", `${b}px`), p !== void 0 && C.push(at(p)), i !== void 0 && (C.push(tt(i)), w.border(ct(s)));
|
|
624
|
-
const F = C.filter(Boolean).join(" "), k = /* @__PURE__ */ r("span", { "aria-label": c, className: F, style: w.get(), children: m !== "small" && m !== "extraSmall" && a });
|
|
625
|
-
return t ? /* @__PURE__ */ L("span", { className: x, ...g, children: [
|
|
626
572
|
t,
|
|
627
|
-
|
|
628
|
-
|
|
573
|
+
Ue(l),
|
|
574
|
+
wt(m),
|
|
575
|
+
Ie(F)
|
|
576
|
+
], h = ["uui-badge-slot", Bn(u)].filter(Boolean).join(" "), $ = T();
|
|
577
|
+
$.bg(o), $.text.on(o), x !== void 0 && $.set("--uui-badge-offset", `${x}px`), p !== void 0 && b.push(ut(p)), r !== void 0 && (b.push(nt(r)), $.border(mt(s)));
|
|
578
|
+
const k = b.filter(Boolean).join(" "), S = /* @__PURE__ */ i("span", { "aria-label": c, className: k, style: $.get(), children: m !== "small" && m !== "extraSmall" && a });
|
|
579
|
+
return n ? /* @__PURE__ */ j("span", { className: w, ...g, children: [
|
|
580
|
+
n,
|
|
581
|
+
/* @__PURE__ */ i("span", { className: h, children: S })
|
|
582
|
+
] }) : S;
|
|
629
583
|
};
|
|
630
|
-
|
|
631
|
-
const
|
|
584
|
+
qt.displayName = "Badge";
|
|
585
|
+
const Xr = (e) => ({
|
|
632
586
|
topLeft: "uui-top-left",
|
|
633
587
|
topCenter: "uui-top-center",
|
|
634
588
|
topRight: "uui-top-right",
|
|
@@ -641,7 +595,7 @@ const zr = (e) => ({
|
|
|
641
595
|
bottomCenter: "uui-bottom-center",
|
|
642
596
|
bottomRight: "uui-bottom-right",
|
|
643
597
|
auto: "uui-top-right"
|
|
644
|
-
})[e],
|
|
598
|
+
})[e], jn = (e) => {
|
|
645
599
|
switch (e) {
|
|
646
600
|
case "square":
|
|
647
601
|
return "uui-square";
|
|
@@ -654,7 +608,7 @@ const zr = (e) => ({
|
|
|
654
608
|
default:
|
|
655
609
|
return "";
|
|
656
610
|
}
|
|
657
|
-
},
|
|
611
|
+
}, zr = (e) => {
|
|
658
612
|
switch (e) {
|
|
659
613
|
case "large":
|
|
660
614
|
return "uui-font-body-large";
|
|
@@ -663,16 +617,16 @@ const zr = (e) => ({
|
|
|
663
617
|
default:
|
|
664
618
|
return "uui-font-body-small";
|
|
665
619
|
}
|
|
666
|
-
},
|
|
620
|
+
}, Yr = (e) => ({
|
|
667
621
|
extraSmall: "uui-extra-small",
|
|
668
622
|
small: "uui-small",
|
|
669
623
|
medium: "uui-medium",
|
|
670
624
|
large: "uui-large",
|
|
671
625
|
extraLarge: "uui-extra-large"
|
|
672
|
-
})[e],
|
|
673
|
-
const
|
|
674
|
-
return
|
|
675
|
-
},
|
|
626
|
+
})[e], An = (e) => {
|
|
627
|
+
const n = Pn(0, 5, e);
|
|
628
|
+
return n === void 0 ? "" : `uui-border-${n}`;
|
|
629
|
+
}, Jr = (e) => +e > 0 || +e < 5 ? `uui-outline-${String(e)}` : "uui-outline-0", On = (e) => {
|
|
676
630
|
switch (e) {
|
|
677
631
|
case 0:
|
|
678
632
|
return "uui-elevation-0";
|
|
@@ -689,7 +643,7 @@ const zr = (e) => ({
|
|
|
689
643
|
default:
|
|
690
644
|
return "";
|
|
691
645
|
}
|
|
692
|
-
},
|
|
646
|
+
}, Qr = (e) => {
|
|
693
647
|
switch (e) {
|
|
694
648
|
case "compact":
|
|
695
649
|
return "uui-compact";
|
|
@@ -698,7 +652,7 @@ const zr = (e) => ({
|
|
|
698
652
|
default:
|
|
699
653
|
return "";
|
|
700
654
|
}
|
|
701
|
-
},
|
|
655
|
+
}, tn = (e) => ({
|
|
702
656
|
displayLarge: "uui-font-display-large",
|
|
703
657
|
displayMedium: "uui-font-display-medium",
|
|
704
658
|
displaySmall: "uui-font-display-small",
|
|
@@ -717,55 +671,55 @@ const zr = (e) => ({
|
|
|
717
671
|
caption: "uui-font-caption",
|
|
718
672
|
overline: "uui-font-overline"
|
|
719
673
|
})[e];
|
|
720
|
-
function
|
|
721
|
-
return (
|
|
722
|
-
e.forEach((
|
|
723
|
-
if (typeof
|
|
724
|
-
n
|
|
725
|
-
else if (
|
|
726
|
-
const
|
|
727
|
-
|
|
674
|
+
function ei(...e) {
|
|
675
|
+
return (n) => {
|
|
676
|
+
e.forEach((t) => {
|
|
677
|
+
if (typeof t == "function")
|
|
678
|
+
t(n);
|
|
679
|
+
else if (t) {
|
|
680
|
+
const r = t;
|
|
681
|
+
r.current = n;
|
|
728
682
|
}
|
|
729
683
|
});
|
|
730
684
|
};
|
|
731
685
|
}
|
|
732
|
-
const
|
|
733
|
-
const
|
|
686
|
+
const ti = (e, n, t) => {
|
|
687
|
+
const r = t ?? e, s = r.querySelector(".ripple-container");
|
|
734
688
|
s && s.remove();
|
|
735
|
-
const o = e.getBoundingClientRect(), u =
|
|
689
|
+
const o = e.getBoundingClientRect(), u = r.getBoundingClientRect(), l = n.clientX - o.left, m = n.clientY - o.top, p = l >= 0 && l <= o.width && m >= 0 && m <= o.height, c = p ? l : o.width / 2, a = p ? m : o.height / 2, f = Math.sqrt(o.width * o.width + o.height * o.height), x = f / 2, g = document.createElement("div");
|
|
736
690
|
g.className = "ripple-container", g.style.position = "absolute", g.style.pointerEvents = "none", g.style.overflow = "hidden", g.style.width = `${o.width}px`, g.style.height = `${o.height}px`, g.style.left = `${o.left - u.left}px`, g.style.top = `${o.top - u.top}px`, requestAnimationFrame(() => {
|
|
737
691
|
g.style.borderRadius = getComputedStyle(e).borderRadius;
|
|
738
692
|
});
|
|
739
|
-
const
|
|
740
|
-
|
|
693
|
+
const w = document.createElement("span");
|
|
694
|
+
w.className = "ripple", w.style.position = "absolute", w.style.width = `${f}px`, w.style.height = `${f}px`, w.style.left = `${c - x}px`, w.style.top = `${a - x}px`, g.appendChild(w), r.appendChild(g), w.addEventListener("animationend", () => {
|
|
741
695
|
g.remove();
|
|
742
696
|
});
|
|
743
|
-
},
|
|
697
|
+
}, ni = (e) => (
|
|
744
698
|
// eslint-disable-next-line sonarjs/pseudo-random
|
|
745
699
|
`${e}_${Math.floor((1 + Math.random()) * 65536).toString(16).substring(1)}`
|
|
746
700
|
);
|
|
747
701
|
function nn(e) {
|
|
748
702
|
return e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1-$2").toLowerCase();
|
|
749
703
|
}
|
|
750
|
-
function
|
|
704
|
+
function ri(e) {
|
|
751
705
|
if (!vt(e))
|
|
752
706
|
return;
|
|
753
|
-
const
|
|
754
|
-
if (typeof
|
|
755
|
-
return
|
|
756
|
-
const
|
|
757
|
-
if (
|
|
758
|
-
const
|
|
759
|
-
if (typeof
|
|
760
|
-
return
|
|
707
|
+
const n = e.type;
|
|
708
|
+
if (typeof n == "function" && "displayName" in n)
|
|
709
|
+
return n.displayName;
|
|
710
|
+
const t = n;
|
|
711
|
+
if (t && typeof t == "object" && "type" in t) {
|
|
712
|
+
const r = t.type;
|
|
713
|
+
if (typeof r == "function" && "displayName" in r)
|
|
714
|
+
return r.displayName;
|
|
761
715
|
}
|
|
762
|
-
if (
|
|
763
|
-
const
|
|
764
|
-
if (typeof
|
|
765
|
-
return
|
|
716
|
+
if (t && typeof t == "object" && "render" in t) {
|
|
717
|
+
const r = t.render;
|
|
718
|
+
if (typeof r == "function" && "displayName" in r)
|
|
719
|
+
return r.displayName;
|
|
766
720
|
}
|
|
767
721
|
}
|
|
768
|
-
function
|
|
722
|
+
function ii(e) {
|
|
769
723
|
e && (e.classList.remove("uui-focus-visible"), e.focus(), e.classList.add("uui-focus-visible"), e.addEventListener(
|
|
770
724
|
"blur",
|
|
771
725
|
() => {
|
|
@@ -774,16 +728,16 @@ function oi(e) {
|
|
|
774
728
|
{ once: !0 }
|
|
775
729
|
));
|
|
776
730
|
}
|
|
777
|
-
function
|
|
778
|
-
const s = Number(
|
|
779
|
-
return Number.isFinite(s) ? Math.min(
|
|
731
|
+
function Pn(e, n, t, r) {
|
|
732
|
+
const s = Number(t);
|
|
733
|
+
return Number.isFinite(s) ? Math.min(n, Math.max(e, Math.round(s))) : r;
|
|
780
734
|
}
|
|
781
|
-
const
|
|
735
|
+
const Un = P(
|
|
782
736
|
({
|
|
783
737
|
children: e,
|
|
784
|
-
className:
|
|
785
|
-
color:
|
|
786
|
-
position:
|
|
738
|
+
className: n = "",
|
|
739
|
+
color: t = "error",
|
|
740
|
+
position: r = "topRight",
|
|
787
741
|
shape: s = "round",
|
|
788
742
|
size: o = "medium",
|
|
789
743
|
outlined: u,
|
|
@@ -792,61 +746,61 @@ const qn = A(
|
|
|
792
746
|
value: p,
|
|
793
747
|
...c
|
|
794
748
|
}, a) => {
|
|
795
|
-
const { bgColor: f, textOnColor:
|
|
796
|
-
return
|
|
749
|
+
const { bgColor: f, textOnColor: x, textColor: g } = Tn(t);
|
|
750
|
+
return Ht(t), /* @__PURE__ */ i("span", { className: ["uui-card-wrapper"].join(" "), ref: a, ...c, children: e });
|
|
797
751
|
}
|
|
798
752
|
);
|
|
799
|
-
|
|
800
|
-
const
|
|
801
|
-
let rn = !1,
|
|
802
|
-
function
|
|
753
|
+
Un.displayName = "Card";
|
|
754
|
+
const Wn = xt(null), Zt = xt(null);
|
|
755
|
+
let rn = !1, Ut = "pointer";
|
|
756
|
+
function Hn() {
|
|
803
757
|
rn || typeof window > "u" || (rn = !0, window.addEventListener(
|
|
804
758
|
"keydown",
|
|
805
759
|
() => {
|
|
806
|
-
|
|
760
|
+
Ut = "keyboard";
|
|
807
761
|
},
|
|
808
762
|
!0
|
|
809
763
|
), window.addEventListener(
|
|
810
764
|
"pointerdown",
|
|
811
765
|
() => {
|
|
812
|
-
|
|
766
|
+
Ut = "pointer";
|
|
813
767
|
},
|
|
814
768
|
!0
|
|
815
769
|
));
|
|
816
770
|
}
|
|
817
|
-
function
|
|
818
|
-
return
|
|
771
|
+
function qn() {
|
|
772
|
+
return Ut;
|
|
819
773
|
}
|
|
820
|
-
function
|
|
821
|
-
return
|
|
774
|
+
function Dt() {
|
|
775
|
+
return Hn(), kn(
|
|
822
776
|
() => () => {
|
|
823
777
|
},
|
|
824
|
-
() =>
|
|
778
|
+
() => qn() === "keyboard",
|
|
825
779
|
() => !1
|
|
826
780
|
);
|
|
827
781
|
}
|
|
828
|
-
function
|
|
829
|
-
const { action:
|
|
782
|
+
function Zn(e = {}) {
|
|
783
|
+
const { action: n = "idle" } = e, [t, r] = ee("idle"), [s, o] = ee(!1), { t1: u = 0, t2: l, oneShot: m = !1 } = e, p = l ?? Math.round(u * 0.67), c = ce(null), a = () => c.current !== null ? (clearTimeout(c.current), c.current = null, !0) : !1, f = yt(
|
|
830
784
|
(h) => {
|
|
831
|
-
function
|
|
785
|
+
function $(S, M) {
|
|
832
786
|
c.current = window.setTimeout(() => {
|
|
833
|
-
|
|
834
|
-
},
|
|
787
|
+
r(S);
|
|
788
|
+
}, M);
|
|
835
789
|
}
|
|
836
790
|
if (a() && o(!0), m) {
|
|
837
|
-
u ? (
|
|
791
|
+
u ? ($("open", u), r("opening")) : r((S) => S === "opening" ? "open" : "opening");
|
|
838
792
|
return;
|
|
839
793
|
}
|
|
840
794
|
if (u) {
|
|
841
|
-
const
|
|
795
|
+
const S = (
|
|
842
796
|
// eslint-disable-next-line sonarjs/no-nested-conditional,no-nested-ternary
|
|
843
|
-
h === "closed" ? !0 : h === "open" ? !1 :
|
|
844
|
-
),
|
|
845
|
-
|
|
797
|
+
h === "closed" ? !0 : h === "open" ? !1 : t === "open" || t === "opening"
|
|
798
|
+
), M = S ? "closing" : "opening", A = S ? "closed" : "open";
|
|
799
|
+
r(M), $(A, A === "open" ? u : p);
|
|
846
800
|
return;
|
|
847
801
|
}
|
|
848
|
-
|
|
849
|
-
switch (
|
|
802
|
+
r((S) => {
|
|
803
|
+
switch (S) {
|
|
850
804
|
case "idle":
|
|
851
805
|
case "closed":
|
|
852
806
|
return "opening";
|
|
@@ -857,34 +811,34 @@ function Kn(e = {}) {
|
|
|
857
811
|
case "closing":
|
|
858
812
|
return "closed";
|
|
859
813
|
default:
|
|
860
|
-
return
|
|
814
|
+
return S;
|
|
861
815
|
}
|
|
862
816
|
});
|
|
863
817
|
},
|
|
864
|
-
[m,
|
|
818
|
+
[m, t, u, p]
|
|
865
819
|
);
|
|
866
|
-
|
|
820
|
+
ye(() => {
|
|
867
821
|
s && o(!1);
|
|
868
|
-
}, [s]),
|
|
869
|
-
|
|
822
|
+
}, [s]), ye(() => {
|
|
823
|
+
n !== "idle" && f(n === "open" ? "open" : "closed");
|
|
870
824
|
}, []);
|
|
871
|
-
const
|
|
825
|
+
const x = t === "closing", g = t === "opening";
|
|
872
826
|
return {
|
|
873
827
|
opening: g,
|
|
874
|
-
closing:
|
|
875
|
-
animating: (g ||
|
|
876
|
-
idle:
|
|
828
|
+
closing: x,
|
|
829
|
+
animating: (g || x) && !s,
|
|
830
|
+
idle: t === "idle",
|
|
877
831
|
animationVars: {
|
|
878
832
|
"--uui-duration": `${g ? u : p}ms`,
|
|
879
|
-
"--uui-reverse":
|
|
833
|
+
"--uui-reverse": x ? "reverse" : "normal"
|
|
880
834
|
},
|
|
881
835
|
animate: f
|
|
882
836
|
};
|
|
883
837
|
}
|
|
884
|
-
const _t =
|
|
838
|
+
const _t = P((e, n) => {
|
|
885
839
|
const {
|
|
886
|
-
elementClass:
|
|
887
|
-
density:
|
|
840
|
+
elementClass: t,
|
|
841
|
+
density: r,
|
|
888
842
|
icon: s,
|
|
889
843
|
disabled: o,
|
|
890
844
|
elevation: u,
|
|
@@ -894,24 +848,24 @@ const _t = A((e, t) => {
|
|
|
894
848
|
uncheckedColor: c,
|
|
895
849
|
defaultChecked: a,
|
|
896
850
|
indeterminate: f,
|
|
897
|
-
hoverEffects:
|
|
851
|
+
hoverEffects: x = ["overlay"],
|
|
898
852
|
touchEffects: g = ["ripple"],
|
|
899
|
-
focusEffects:
|
|
900
|
-
selectedEffects:
|
|
901
|
-
pressedEffects:
|
|
853
|
+
focusEffects: w = ["ring"],
|
|
854
|
+
selectedEffects: F = [],
|
|
855
|
+
pressedEffects: b = ["overlay"],
|
|
902
856
|
id: h,
|
|
903
|
-
name:
|
|
904
|
-
label:
|
|
905
|
-
font:
|
|
906
|
-
border:
|
|
907
|
-
borderColor:
|
|
857
|
+
name: $,
|
|
858
|
+
label: k,
|
|
859
|
+
font: S,
|
|
860
|
+
border: M,
|
|
861
|
+
borderColor: A,
|
|
908
862
|
uncheckedBorder: q,
|
|
909
|
-
uncheckedBorderColor:
|
|
910
|
-
onChange:
|
|
911
|
-
onClick:
|
|
912
|
-
type:
|
|
913
|
-
required:
|
|
914
|
-
shape:
|
|
863
|
+
uncheckedBorderColor: E,
|
|
864
|
+
onChange: I,
|
|
865
|
+
onClick: y,
|
|
866
|
+
type: C,
|
|
867
|
+
required: v,
|
|
868
|
+
shape: N = "smooth",
|
|
915
869
|
title: Z,
|
|
916
870
|
filled: U,
|
|
917
871
|
value: X,
|
|
@@ -920,108 +874,108 @@ const _t = A((e, t) => {
|
|
|
920
874
|
indeterminateIcon: K,
|
|
921
875
|
description: Me,
|
|
922
876
|
descriptionColor: De,
|
|
923
|
-
descriptionFont:
|
|
924
|
-
className:
|
|
877
|
+
descriptionFont: V,
|
|
878
|
+
className: O,
|
|
925
879
|
error: Q,
|
|
926
880
|
animation: fe,
|
|
927
881
|
duration: de = 150,
|
|
928
|
-
motionStyle:
|
|
882
|
+
motionStyle: D = "regular",
|
|
929
883
|
focusColor: Ve,
|
|
930
|
-
labelColor:
|
|
884
|
+
labelColor: ke,
|
|
931
885
|
textColor: z,
|
|
932
886
|
readOnly: te,
|
|
933
887
|
tooltipAlign: W = "auto",
|
|
934
888
|
textPlacement: ie = "end",
|
|
935
889
|
"aria-label": We,
|
|
936
890
|
...oe
|
|
937
|
-
} = e, { animationVars: ne, animate:
|
|
891
|
+
} = e, { animationVars: ne, animate: ve, animating: He } = Zn({ t1: de, oneShot: !0 }), _ = It(Wn), me = C === "radio" ? $ ?? (_ == null ? void 0 : _.name) : $, Ee = It(Zt), Re = o ?? (Ee == null ? void 0 : Ee.disabled), se = Dt(), [Se, Ce] = ee(!1), Fe = ce(null), $e = ce(null), pe = ce(null), qe = ce($t("check")), ge = h ?? qe.current, Le = l !== void 0, [Be, Ze] = ee(a ?? !1);
|
|
938
892
|
let le;
|
|
939
|
-
|
|
940
|
-
const
|
|
893
|
+
Le ? le = !!l : (_ == null ? void 0 : _.value) !== void 0 ? le = _.value === X : le = Be;
|
|
894
|
+
const L = f ? "indeterminate" : le ? "checked" : "unchecked", [Y, Te] = ee(L), G = We ?? (k ? void 0 : Z), Je = Q ? "error" : !le && !f && c ? c : p, _e = Z ? /* @__PURE__ */ i("div", { id: `${ge}-tip`, children: Z }) : null, H = (Pe) => {
|
|
941
895
|
if (te) {
|
|
942
|
-
|
|
896
|
+
Pe.preventDefault();
|
|
943
897
|
return;
|
|
944
898
|
}
|
|
945
|
-
const rt =
|
|
946
|
-
|
|
947
|
-
}, ae = (
|
|
899
|
+
const rt = Pe.currentTarget;
|
|
900
|
+
Le || (C === "radio" && (_ != null && _.setValue) && _.setValue(rt.value), Ze(rt.checked)), I == null || I(Pe);
|
|
901
|
+
}, ae = (Pe) => {
|
|
948
902
|
if (te) {
|
|
949
|
-
|
|
903
|
+
Pe.preventDefault();
|
|
950
904
|
return;
|
|
951
905
|
}
|
|
952
|
-
g.includes("ripple") && pe.current &&
|
|
953
|
-
},
|
|
906
|
+
g.includes("ripple") && pe.current && $e.current && St(pe.current, Pe, $e.current), y == null || y(Pe);
|
|
907
|
+
}, je = (Pe) => {
|
|
954
908
|
var rt;
|
|
955
|
-
Ce(!0), (rt = e.onFocus) == null || rt.call(e,
|
|
956
|
-
},
|
|
909
|
+
Ce(!0), (rt = e.onFocus) == null || rt.call(e, Pe);
|
|
910
|
+
}, Ae = (Pe) => {
|
|
957
911
|
var rt;
|
|
958
|
-
Ce(!1), (rt = e.onBlur) == null || rt.call(e,
|
|
912
|
+
Ce(!1), (rt = e.onBlur) == null || rt.call(e, Pe);
|
|
959
913
|
};
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
}, [
|
|
963
|
-
He || Te(
|
|
964
|
-
}, [He,
|
|
965
|
-
const
|
|
966
|
-
|
|
914
|
+
ye(() => {
|
|
915
|
+
L !== Y && fe && ve();
|
|
916
|
+
}, [L, Y, fe, ve]), ye(() => {
|
|
917
|
+
He || Te(L);
|
|
918
|
+
}, [He, L]);
|
|
919
|
+
const Oe = T(), J = [
|
|
920
|
+
t,
|
|
967
921
|
"uui-cb",
|
|
968
|
-
|
|
969
|
-
|
|
922
|
+
dt(r),
|
|
923
|
+
O,
|
|
970
924
|
Re && "uui-disabled",
|
|
971
|
-
...m ? [] : [
|
|
972
|
-
].filter(Boolean).join(" "),
|
|
925
|
+
...m ? [] : [wt(we)]
|
|
926
|
+
].filter(Boolean).join(" "), Xe = [
|
|
973
927
|
"uui-cb-control",
|
|
974
928
|
le && "uui-checked",
|
|
975
929
|
f && "uui-indeterminate",
|
|
976
930
|
U && "uui-filled",
|
|
977
|
-
...
|
|
978
|
-
...
|
|
979
|
-
|
|
980
|
-
...
|
|
981
|
-
...m ? [
|
|
982
|
-
].filter(Boolean).join(" "),
|
|
983
|
-
Ve && se && Se &&
|
|
931
|
+
...x.includes("overlay") && !te ? ["uui-hover-overlay"] : [],
|
|
932
|
+
...w.includes("overlay") && se && Se ? ["uui-focus-overlay"] : [],
|
|
933
|
+
...F.includes("overlay") ? ["uui-selected-overlay"] : [],
|
|
934
|
+
...b.includes("overlay") && !te ? ["uui-pressed-overlay"] : [],
|
|
935
|
+
...m ? [Ue(N)] : ["uui-round"]
|
|
936
|
+
].filter(Boolean).join(" "), Ne = T();
|
|
937
|
+
Ve && se && Se && Ne.set("--uui-focus-color", mn(Ve).color);
|
|
984
938
|
const re = [
|
|
985
939
|
"uui-input",
|
|
986
|
-
|
|
940
|
+
w.includes("ring") && se && Se && "uui-focus-visible uui-focus-ring"
|
|
987
941
|
].filter(Boolean).join(" "), Qe = ["uui-state"].filter(Boolean).join(" "), Ge = T();
|
|
988
942
|
Ge.bg(Je);
|
|
989
943
|
const ot = [
|
|
990
944
|
"uui-cb-glyph",
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
].filter(Boolean).join(" "),
|
|
995
|
-
ue.merge(ne), le || f || c ? (
|
|
996
|
-
let
|
|
945
|
+
ut(u),
|
|
946
|
+
Ue(N),
|
|
947
|
+
nt(le ? M : q)
|
|
948
|
+
].filter(Boolean).join(" "), et = T(), pt = In(fe), Ke = ["uui-icon", He && pt, En(D)].filter(Boolean).join(" "), ue = T();
|
|
949
|
+
ue.merge(ne), le || f || c ? (et.border(Q ? "error" : A), U ? (!le && !he && !f || et.bg(Je), ue.text.on(Je)) : ue.text(Je)) : (U && he ? (ue.text(Q ? "onError" : "surface"), et.bg(Q ? "error" : "onSurfaceVariant")) : he && ue.text(Q ? "error" : "onSurfaceVariant"), et.border(Q ? "error" : E));
|
|
950
|
+
let ze;
|
|
997
951
|
if (m) {
|
|
998
|
-
const
|
|
999
|
-
|
|
952
|
+
const Pe = ["uui-cb-content uui-overflow-hidden", Ue(N), nt(M)].filter(Boolean).join(" ");
|
|
953
|
+
ze = /* @__PURE__ */ i("div", { className: Pe, children: m });
|
|
1000
954
|
} else {
|
|
1001
|
-
const
|
|
955
|
+
const Pe = (
|
|
1002
956
|
// eslint-disable-next-line sonarjs/no-nested-conditional,no-nested-ternary
|
|
1003
957
|
Y === "indeterminate" ? K : Y === "checked" ? s : he
|
|
1004
958
|
);
|
|
1005
|
-
|
|
959
|
+
ze = /* @__PURE__ */ i("div", { className: ot, style: et.get(), children: /* @__PURE__ */ i("div", { className: Ke, style: ue.get(), children: Pe }) });
|
|
1006
960
|
}
|
|
1007
961
|
const gt = T();
|
|
1008
|
-
gt.text((Q ? "error" : void 0) ??
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
|
|
962
|
+
gt.text((Q ? "error" : void 0) ?? ke ?? z ?? "onSurface");
|
|
963
|
+
const Ft = [Ie(S ?? "bodyMedium"), "uui-cb-label"].join(" "), Lt = k && /* @__PURE__ */ j("label", { className: Ft, htmlFor: ge, style: gt.get(), children: [
|
|
964
|
+
k,
|
|
965
|
+
v && /* @__PURE__ */ i("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
|
|
1012
966
|
] }), st = T();
|
|
1013
967
|
Q ? st.text("error") : De ? st.text(De) : st.text.on("surfaceVariant");
|
|
1014
968
|
const Rt = [
|
|
1015
|
-
|
|
969
|
+
Ie(V ?? "bodySmall"),
|
|
1016
970
|
Q && "uui-error uui-support-text",
|
|
1017
971
|
Me && !Q && "uui-description uui-support-text"
|
|
1018
|
-
].filter(Boolean).join(" "),
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
] }),
|
|
1022
|
-
return ie === "end" ? (gt.set("gridColumn", 2), st.set("gridColumn", 2),
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
-
/* @__PURE__ */
|
|
972
|
+
].filter(Boolean).join(" "), Bt = (Me ?? Q) && /* @__PURE__ */ i("div", { className: Rt, style: st.get(), children: Q ?? Me }), jt = (Lt ?? Bt) && /* @__PURE__ */ j(tt, { children: [
|
|
973
|
+
Lt,
|
|
974
|
+
Bt
|
|
975
|
+
] }), ct = T();
|
|
976
|
+
return ie === "end" ? (gt.set("gridColumn", 2), st.set("gridColumn", 2), ct.set("gridColumn", 1)) : ie === "start" ? (gt.set("gridColumn", 1), st.set("gridColumn", 1), ct.set("gridColumn", 2), ct.set("gridRow", 1)) : (Oe.set("gridTemplateColumns", "1fr"), Oe.set("justifyItems", "start")), ie === "top" && (ct.set("order", 1), st.set("order", 2)), /* @__PURE__ */ j("div", { className: J, style: Oe.get(), children: [
|
|
977
|
+
/* @__PURE__ */ i("div", { className: "uui-cb-control-wrapper", style: ct.get(), children: /* @__PURE__ */ j("div", { className: Xe, ref: $e, style: Ne.get(), children: [
|
|
978
|
+
/* @__PURE__ */ i(
|
|
1025
979
|
"input",
|
|
1026
980
|
{
|
|
1027
981
|
"aria-label": G,
|
|
@@ -1031,31 +985,31 @@ const _t = A((e, t) => {
|
|
|
1031
985
|
disabled: Re,
|
|
1032
986
|
id: ge,
|
|
1033
987
|
name: me,
|
|
1034
|
-
onBlur:
|
|
988
|
+
onBlur: Ae,
|
|
1035
989
|
onChange: H,
|
|
1036
990
|
onClick: ae,
|
|
1037
|
-
onFocus:
|
|
991
|
+
onFocus: je,
|
|
1038
992
|
readOnly: te,
|
|
1039
|
-
ref:
|
|
1040
|
-
type:
|
|
993
|
+
ref: ft(Fe, n),
|
|
994
|
+
type: C,
|
|
1041
995
|
value: X,
|
|
1042
996
|
...oe
|
|
1043
997
|
}
|
|
1044
998
|
),
|
|
1045
|
-
/* @__PURE__ */
|
|
1046
|
-
|
|
999
|
+
/* @__PURE__ */ i("div", { className: Qe, ref: pe, style: Ge.get() }),
|
|
1000
|
+
ze
|
|
1047
1001
|
] }) }),
|
|
1048
|
-
|
|
1049
|
-
_e && /* @__PURE__ */
|
|
1002
|
+
jt,
|
|
1003
|
+
_e && /* @__PURE__ */ i(kt, { align: W, tooltip: _e, triggerRef: Fe })
|
|
1050
1004
|
] });
|
|
1051
1005
|
});
|
|
1052
1006
|
_t.displayName = "CheckBoxBase";
|
|
1053
|
-
const
|
|
1007
|
+
const _n = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "3 3 18 18", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i("path", { d: "M10 16.4L6 12.4L7.4 11L10 13.6L16.6 7L18 8.4L10 16.4Z", fill: "currentColor" }) }), Kn = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "3 3 18 18", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i("path", { d: "M6 13V11H18V13H6Z", fill: "currentColor" }) }), Gn = P(
|
|
1054
1008
|
({
|
|
1055
1009
|
shape: e = "smooth",
|
|
1056
|
-
border:
|
|
1057
|
-
uncheckedBorder:
|
|
1058
|
-
color:
|
|
1010
|
+
border: n,
|
|
1011
|
+
uncheckedBorder: t,
|
|
1012
|
+
color: r,
|
|
1059
1013
|
borderColor: s,
|
|
1060
1014
|
animation: o,
|
|
1061
1015
|
uncheckedBorderColor: u,
|
|
@@ -1065,376 +1019,186 @@ const Gn = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "3 3 18 18", xmlns:
|
|
|
1065
1019
|
icon: c,
|
|
1066
1020
|
size: a = "small",
|
|
1067
1021
|
filled: f = !0,
|
|
1068
|
-
...
|
|
1022
|
+
...x
|
|
1069
1023
|
}, g) => {
|
|
1070
|
-
const
|
|
1071
|
-
let
|
|
1072
|
-
return p ?
|
|
1024
|
+
const w = r ?? "primary", F = !c && n === void 0 ? void 0 : n;
|
|
1025
|
+
let b;
|
|
1026
|
+
return p ? b = n : b = !l && t === void 0 ? n ?? 2 : t, /* @__PURE__ */ i(
|
|
1073
1027
|
_t,
|
|
1074
1028
|
{
|
|
1075
1029
|
animation: o ?? "scale",
|
|
1076
|
-
border:
|
|
1077
|
-
borderColor: s ??
|
|
1078
|
-
color:
|
|
1030
|
+
border: F,
|
|
1031
|
+
borderColor: s ?? w,
|
|
1032
|
+
color: w,
|
|
1079
1033
|
elementClass: "uui-checkbox",
|
|
1080
1034
|
filled: f,
|
|
1081
|
-
icon: c ??
|
|
1035
|
+
icon: c ?? _n,
|
|
1082
1036
|
indeterminate: p,
|
|
1083
|
-
indeterminateIcon: m ??
|
|
1037
|
+
indeterminateIcon: m ?? Kn,
|
|
1084
1038
|
ref: g,
|
|
1085
1039
|
shape: e,
|
|
1086
1040
|
size: a,
|
|
1087
1041
|
type: "checkbox",
|
|
1088
|
-
uncheckedBorder:
|
|
1042
|
+
uncheckedBorder: b,
|
|
1089
1043
|
uncheckedBorderColor: u ?? s ?? "onSurfaceVariant",
|
|
1090
1044
|
uncheckedIcon: l,
|
|
1091
|
-
...
|
|
1045
|
+
...x
|
|
1092
1046
|
}
|
|
1093
1047
|
);
|
|
1094
1048
|
}
|
|
1095
1049
|
);
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
const s = e.current;
|
|
1101
|
-
if (!s)
|
|
1102
|
-
return;
|
|
1103
|
-
const o = () => {
|
|
1104
|
-
i(!0);
|
|
1105
|
-
}, u = () => {
|
|
1106
|
-
i(!1);
|
|
1107
|
-
};
|
|
1108
|
-
return s.addEventListener("focus", o, !0), s.addEventListener("blur", u, !0), () => {
|
|
1109
|
-
s.removeEventListener("focus", o, !0), s.removeEventListener("blur", u, !0);
|
|
1110
|
-
};
|
|
1111
|
-
}, [e]), {
|
|
1112
|
-
isFocused: n,
|
|
1113
|
-
focusVisible: t
|
|
1114
|
-
};
|
|
1115
|
-
}
|
|
1116
|
-
const ut = A((e, t) => {
|
|
1117
|
-
const {
|
|
1118
|
-
elementClass: n,
|
|
1119
|
-
color: i,
|
|
1120
|
-
density: s,
|
|
1121
|
-
label: o,
|
|
1122
|
-
labelColor: u,
|
|
1123
|
-
labelFont: l,
|
|
1124
|
-
id: m,
|
|
1125
|
-
outlined: p,
|
|
1126
|
-
filled: c,
|
|
1127
|
-
classic: a,
|
|
1128
|
-
disabled: f,
|
|
1129
|
-
font: b,
|
|
1130
|
-
placeholderFont: g,
|
|
1131
|
-
placeholderColor: x,
|
|
1132
|
-
border: $,
|
|
1133
|
-
borderColor: C,
|
|
1134
|
-
shape: h,
|
|
1135
|
-
required: w,
|
|
1136
|
-
title: F,
|
|
1137
|
-
description: k,
|
|
1138
|
-
descriptionColor: V,
|
|
1139
|
-
descriptionFont: O,
|
|
1140
|
-
name: q,
|
|
1141
|
-
error: M,
|
|
1142
|
-
className: E,
|
|
1143
|
-
placeholder: v,
|
|
1144
|
-
type: y = "text",
|
|
1145
|
-
icon: S,
|
|
1146
|
-
leading: I,
|
|
1147
|
-
trailing: Z,
|
|
1148
|
-
endIcon: U,
|
|
1149
|
-
variant: X,
|
|
1150
|
-
value: we,
|
|
1151
|
-
textColor: he,
|
|
1152
|
-
defaultValue: K,
|
|
1153
|
-
...Me
|
|
1154
|
-
} = e, [De, D] = ee(K ?? ""), P = we !== void 0, fe = (P ? we : De).length === 0, de = ce(null), j = ce(null), Ve = m ?? St("input"), [Fe, z] = ee(0), te = I ?? S, W = X ?? (c && "filled") ?? (p && "outlined") ?? (a && "classic") ?? "filled", { isFocused: ie } = Yn(de), We = (H) => {
|
|
1155
|
-
var ae;
|
|
1156
|
-
P || D(H.target.value), (ae = e.onChange) == null || ae.call(e, H);
|
|
1157
|
-
}, oe = (H) => {
|
|
1158
|
-
var ae;
|
|
1159
|
-
H.preventDefault(), (ae = de.current) == null || ae.focus();
|
|
1160
|
-
};
|
|
1161
|
-
be(() => {
|
|
1162
|
-
const H = de.current;
|
|
1163
|
-
H && H.value && D(H.value);
|
|
1164
|
-
}, []), ln(() => {
|
|
1165
|
-
const H = j.current, ae = de.current;
|
|
1166
|
-
if (!H || !ae)
|
|
1167
|
-
return;
|
|
1168
|
-
const Ae = H.getBoundingClientRect().left - ae.getBoundingClientRect().left + 16;
|
|
1169
|
-
z((Oe) => Oe === Ae ? Oe : Ae);
|
|
1170
|
-
}, [te]);
|
|
1171
|
-
const ne = [
|
|
1172
|
-
n,
|
|
1173
|
-
E,
|
|
1174
|
-
"uui-field uui-field-wrapper",
|
|
1175
|
-
`uui-${W}`,
|
|
1176
|
-
ft(s)
|
|
1177
|
-
], xe = te && /* @__PURE__ */ r("div", { className: "uui-leading", children: lt.Children.map(
|
|
1178
|
-
te,
|
|
1179
|
-
(H) => H ? /* @__PURE__ */ r(
|
|
1180
|
-
"span",
|
|
1181
|
-
{
|
|
1182
|
-
className: "uui-slot",
|
|
1183
|
-
onClick: (ae) => {
|
|
1184
|
-
ae.stopPropagation();
|
|
1185
|
-
},
|
|
1186
|
-
children: H
|
|
1187
|
-
}
|
|
1188
|
-
) : null
|
|
1189
|
-
) }), He = Z ?? U, _ = He && /* @__PURE__ */ r("div", { className: "uui-trailing", children: lt.Children.map(
|
|
1190
|
-
He,
|
|
1191
|
-
(H) => H ? /* @__PURE__ */ r(
|
|
1192
|
-
"span",
|
|
1193
|
-
{
|
|
1194
|
-
className: "uui-slot",
|
|
1195
|
-
onClick: (ae) => {
|
|
1196
|
-
ae.stopPropagation();
|
|
1197
|
-
},
|
|
1198
|
-
children: H
|
|
1199
|
-
}
|
|
1200
|
-
) : null
|
|
1201
|
-
) }), me = o && /* @__PURE__ */ L(et, { children: [
|
|
1202
|
-
o,
|
|
1203
|
-
w && /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
|
|
1204
|
-
] }), Ee = $ ?? (W !== "filled" ? 1 : void 0), Re = [
|
|
1205
|
-
"uui-field-control",
|
|
1206
|
-
$e(b ?? "bodyLarge"),
|
|
1207
|
-
je(h ?? "rounded"),
|
|
1208
|
-
W !== "outlined" && tt(Ee),
|
|
1209
|
-
M && "uui-error",
|
|
1210
|
-
ie && "uui-active",
|
|
1211
|
-
f && "uui-disabled",
|
|
1212
|
-
xe && "uui-has-leading",
|
|
1213
|
-
_ && "uui-has-trailing"
|
|
1214
|
-
];
|
|
1215
|
-
let se, Se, Ce, Ne;
|
|
1216
|
-
const ke = T(), pe = ["uui-fb-label"];
|
|
1217
|
-
if (me)
|
|
1218
|
-
if (W !== "classic")
|
|
1219
|
-
ie || !fe ? (ke.text((M ? "error" : void 0) ?? i ?? "primary"), pe.push($e(l ?? "bodySmall")), Re.push("uui-fb-label-up")) : (ke.text((M ? "error" : void 0) ?? "onSurfaceVariant"), pe.push($e(b ?? "bodyLarge"))), pe.push("uui-field-float-label"), W === "outlined" ? (Ce = /* @__PURE__ */ r("legend", { className: $e(l ?? "bodySmall"), children: me }), se = /* @__PURE__ */ r("span", { className: pe.join(" "), children: me })) : (Se = /* @__PURE__ */ r("span", { className: $e(l ?? "bodySmall"), children: " " }), se = /* @__PURE__ */ r("span", { className: pe.join(" "), children: me }));
|
|
1220
|
-
else {
|
|
1221
|
-
ke.text((M ? "error" : void 0) ?? "onSurface"), pe.push($e(l ?? "bodyMedium"));
|
|
1222
|
-
const H = pe.filter(Boolean).join(" ");
|
|
1223
|
-
Ne = /* @__PURE__ */ r("label", { className: H, htmlFor: Ve, style: ke.get(), children: me });
|
|
1224
|
-
}
|
|
1225
|
-
let qe;
|
|
1226
|
-
if (W === "outlined") {
|
|
1227
|
-
const H = ["uui-field-fieldset", je(h ?? "rounded")].filter(Boolean).join(" "), ae = T(), Ae = cn(0, 4, $, 1);
|
|
1228
|
-
ae.set("borderWidth", `${Ae}px`), ae.border(C ?? "onSurfaceVariant"), qe = /* @__PURE__ */ r("fieldset", { className: H, style: ae.get(), children: Ce });
|
|
1229
|
-
}
|
|
1230
|
-
const ge = T();
|
|
1231
|
-
ge.set("--uui-label-up-x", `${Fe}px`), W === "classic" && ge.border(C ?? "outline"), W === "filled" && ge.border(C ?? "onSurfaceVariant");
|
|
1232
|
-
const Be = ["uui-field-state"].filter(Boolean).join(" "), Le = T(), Ze = T();
|
|
1233
|
-
M ? Ze.text("error") : V ? Ze.text(V) : Ze.text.on("surfaceVariant");
|
|
1234
|
-
const le = [
|
|
1235
|
-
$e(O ?? "bodySmall"),
|
|
1236
|
-
M && "uui-error uui-support-text",
|
|
1237
|
-
k && !M && "uui-description uui-support-text"
|
|
1238
|
-
].filter(Boolean).join(" "), N = (k ?? M) && /* @__PURE__ */ r("div", { className: le, style: Ze.get(), children: M ?? k }), Y = "uui-field-input", Te = T();
|
|
1239
|
-
Te.text("onSurface"), !ie && se && fe && Te.set("opacity", 0);
|
|
1240
|
-
const G = ["uui-field-input-wrapper"].filter(Boolean).join(" "), Je = ne.filter(Boolean).join(" "), _e = Re.filter(Boolean).join(" ");
|
|
1241
|
-
return /* @__PURE__ */ L("div", { className: Je, title: F, children: [
|
|
1242
|
-
Ne,
|
|
1243
|
-
/* @__PURE__ */ L("div", { className: _e, onPointerDown: oe, ref: j, style: ge.get(), children: [
|
|
1244
|
-
xe,
|
|
1245
|
-
/* @__PURE__ */ L("div", { className: G, children: [
|
|
1246
|
-
Se,
|
|
1247
|
-
se,
|
|
1248
|
-
/* @__PURE__ */ r(
|
|
1249
|
-
"input",
|
|
1250
|
-
{
|
|
1251
|
-
...Me,
|
|
1252
|
-
...P ? { value: we } : { defaultValue: K },
|
|
1253
|
-
"aria-invalid": !!M,
|
|
1254
|
-
autoComplete: "email",
|
|
1255
|
-
className: Y,
|
|
1256
|
-
disabled: f,
|
|
1257
|
-
id: Ve,
|
|
1258
|
-
name: q,
|
|
1259
|
-
onChange: We,
|
|
1260
|
-
placeholder: v,
|
|
1261
|
-
ref: mt(t, de),
|
|
1262
|
-
style: Te.get(),
|
|
1263
|
-
type: y
|
|
1264
|
-
}
|
|
1265
|
-
)
|
|
1266
|
-
] }),
|
|
1267
|
-
_,
|
|
1268
|
-
W === "filled" && /* @__PURE__ */ r("div", { className: Be, style: Le.get() }),
|
|
1269
|
-
qe
|
|
1270
|
-
] }),
|
|
1271
|
-
N
|
|
1272
|
-
] });
|
|
1273
|
-
});
|
|
1274
|
-
ut.displayName = "FieldBase";
|
|
1275
|
-
const si = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "date", className: "UIDateInput" })), li = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "datetime-local", className: "UIDateTimeInput" })), ai = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "email", className: "UIFormEmailInput" })), Jn = A(
|
|
1276
|
-
({ elevation: e = 3, font: t, size: n = "medium", shape: i = "rounded", label: s, ...o }, u) => /* @__PURE__ */ r(
|
|
1277
|
-
yt,
|
|
1050
|
+
Gn.displayName = "Checkbox";
|
|
1051
|
+
const oi = P((e, n) => /* @__PURE__ */ i(at, { ref: n, ...e, type: "date", className: "UIDateInput" })), si = P((e, n) => /* @__PURE__ */ i(at, { ref: n, ...e, type: "datetime-local", className: "UIDateTimeInput" })), li = P((e, n) => /* @__PURE__ */ i(at, { ref: n, ...e, type: "email", className: "UIFormEmailInput" })), Xn = P(
|
|
1052
|
+
({ elevation: e = 3, font: n, size: t = "medium", shape: r = "rounded", label: s, ...o }, u) => /* @__PURE__ */ i(
|
|
1053
|
+
Ct,
|
|
1278
1054
|
{
|
|
1279
1055
|
ref: u,
|
|
1280
1056
|
...o,
|
|
1281
1057
|
elementClass: s ? "uui-fab uui-fab-extended" : "uui-fab",
|
|
1282
1058
|
elevation: e,
|
|
1283
|
-
font:
|
|
1059
|
+
font: n ?? {
|
|
1284
1060
|
extraSmall: "labelLarge",
|
|
1285
1061
|
small: "titleMedium",
|
|
1286
1062
|
medium: "titleMedium",
|
|
1287
1063
|
large: "headlineSmall",
|
|
1288
1064
|
extraLarge: "headlineLarge"
|
|
1289
|
-
}[
|
|
1065
|
+
}[t],
|
|
1290
1066
|
label: s,
|
|
1291
|
-
shape:
|
|
1292
|
-
size:
|
|
1067
|
+
shape: r,
|
|
1068
|
+
size: t
|
|
1293
1069
|
}
|
|
1294
1070
|
)
|
|
1295
1071
|
);
|
|
1296
|
-
|
|
1297
|
-
const
|
|
1072
|
+
Xn.displayName = "Fab";
|
|
1073
|
+
const zn = P(
|
|
1298
1074
|
({
|
|
1299
1075
|
"aria-label": e,
|
|
1300
|
-
endIcon:
|
|
1301
|
-
trailing:
|
|
1302
|
-
loading:
|
|
1076
|
+
endIcon: n,
|
|
1077
|
+
trailing: t,
|
|
1078
|
+
loading: r,
|
|
1303
1079
|
size: s = "small",
|
|
1304
1080
|
shape: o = "round",
|
|
1305
1081
|
label: u,
|
|
1306
1082
|
title: l,
|
|
1307
1083
|
children: m,
|
|
1308
1084
|
...p
|
|
1309
|
-
}, c) => /* @__PURE__ */
|
|
1310
|
-
|
|
1085
|
+
}, c) => /* @__PURE__ */ i(
|
|
1086
|
+
Ct,
|
|
1311
1087
|
{
|
|
1312
1088
|
ref: c,
|
|
1313
1089
|
...p,
|
|
1314
1090
|
"aria-label": e ?? u,
|
|
1315
1091
|
elementClass: "uui-icon-button",
|
|
1316
|
-
loading:
|
|
1092
|
+
loading: r,
|
|
1317
1093
|
shape: o,
|
|
1318
1094
|
size: s,
|
|
1319
1095
|
title: l,
|
|
1320
|
-
children: !
|
|
1096
|
+
children: !r && m
|
|
1321
1097
|
}
|
|
1322
1098
|
)
|
|
1323
1099
|
);
|
|
1324
|
-
|
|
1325
|
-
const
|
|
1326
|
-
({ selected: e = !1, shape:
|
|
1327
|
-
|
|
1100
|
+
zn.displayName = "IconButton";
|
|
1101
|
+
const Yn = P(
|
|
1102
|
+
({ selected: e = !1, shape: n = "rounded", size: t = "medium", ...r }, s) => /* @__PURE__ */ i(
|
|
1103
|
+
Ct,
|
|
1328
1104
|
{
|
|
1329
1105
|
ref: s,
|
|
1330
|
-
...
|
|
1106
|
+
...r,
|
|
1331
1107
|
"aria-pressed": e,
|
|
1332
1108
|
elementClass: `uui-toggle-button${e ? " uui-selected" : ""}`,
|
|
1333
1109
|
filled: e,
|
|
1334
|
-
shape:
|
|
1335
|
-
size:
|
|
1110
|
+
shape: n,
|
|
1111
|
+
size: t
|
|
1336
1112
|
}
|
|
1337
1113
|
)
|
|
1338
1114
|
);
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
return vt(e) && typeof e.type != "string" && !!e.type[Kt];
|
|
1343
|
-
}
|
|
1344
|
-
const hn = Symbol.for("uui.divider");
|
|
1345
|
-
function Ut(e) {
|
|
1346
|
-
return vt(e) && typeof e.type != "string" && !!e.type[hn];
|
|
1347
|
-
}
|
|
1348
|
-
const Cn = Symbol.for("uui.menu");
|
|
1349
|
-
function ht(e) {
|
|
1350
|
-
return vt(e) && typeof e.type != "string" && !!e.type[Cn];
|
|
1351
|
-
}
|
|
1352
|
-
function yn(e, t, n = {}) {
|
|
1353
|
-
const { placement: i = "topCenter", offset: s = 8, mode: o = "tooltip" } = n, u = 12, l = {
|
|
1115
|
+
Yn.displayName = "ToggleButton";
|
|
1116
|
+
function pn(e, n, t = {}) {
|
|
1117
|
+
const { placement: r = "topCenter", offset: s = 8, mode: o = "tooltip" } = t, u = 12, l = {
|
|
1354
1118
|
tooltip: ["topCenter", "bottomCenter", "centerRight", "centerLeft"],
|
|
1355
1119
|
dropdown: ["bottomCenter", "topCenter", "centerRight", "centerLeft"],
|
|
1356
1120
|
menu: ["bottomLeft", "bottomRight", "topLeft", "topRight", "centerRight", "centerLeft"],
|
|
1357
1121
|
submenu: ["topRightOut", "topLeftOut", "centerRight", "centerLeft", "bottomCenter", "topCenter"]
|
|
1358
|
-
}, m =
|
|
1122
|
+
}, m = r === "auto" ? l[o] : [r, ...l[o]], p = e.current, c = n.current;
|
|
1359
1123
|
if (!p || !c)
|
|
1360
1124
|
return null;
|
|
1361
|
-
const a = p.getBoundingClientRect(), f = c.getBoundingClientRect(),
|
|
1362
|
-
let h = 0,
|
|
1363
|
-
switch (
|
|
1125
|
+
const a = p.getBoundingClientRect(), f = c.getBoundingClientRect(), x = window.innerWidth, g = window.innerHeight, w = (b) => {
|
|
1126
|
+
let h = 0, $ = 0;
|
|
1127
|
+
switch (b) {
|
|
1364
1128
|
case "topCenter":
|
|
1365
|
-
h = a.left + (a.width - f.width) / 2,
|
|
1129
|
+
h = a.left + (a.width - f.width) / 2, $ = a.top - f.height - s;
|
|
1366
1130
|
break;
|
|
1367
1131
|
case "topLeft":
|
|
1368
|
-
h = a.left,
|
|
1132
|
+
h = a.left, $ = a.top - f.height - s;
|
|
1369
1133
|
break;
|
|
1370
1134
|
case "topRight":
|
|
1371
|
-
h = a.right - f.width,
|
|
1135
|
+
h = a.right - f.width, $ = a.top - f.height - s;
|
|
1372
1136
|
break;
|
|
1373
1137
|
case "bottomCenter":
|
|
1374
|
-
h = a.left + (a.width - f.width) / 2,
|
|
1138
|
+
h = a.left + (a.width - f.width) / 2, $ = a.bottom + s;
|
|
1375
1139
|
break;
|
|
1376
1140
|
case "bottomLeft":
|
|
1377
|
-
h = a.left,
|
|
1141
|
+
h = a.left, $ = a.bottom + s;
|
|
1378
1142
|
break;
|
|
1379
1143
|
case "bottomRight":
|
|
1380
|
-
h = a.right - f.width,
|
|
1144
|
+
h = a.right - f.width, $ = a.bottom + s;
|
|
1381
1145
|
break;
|
|
1382
1146
|
case "centerLeft":
|
|
1383
|
-
h = a.left - f.width - s,
|
|
1147
|
+
h = a.left - f.width - s, $ = a.top + (a.height - f.height) / 2;
|
|
1384
1148
|
break;
|
|
1385
1149
|
case "centerRight":
|
|
1386
|
-
h = a.right + s,
|
|
1150
|
+
h = a.right + s, $ = a.top + (a.height - f.height) / 2;
|
|
1387
1151
|
break;
|
|
1388
1152
|
case "center":
|
|
1389
|
-
h = a.left + (a.width - f.width) / 2,
|
|
1153
|
+
h = a.left + (a.width - f.width) / 2, $ = a.top + (a.height - f.height) / 2;
|
|
1390
1154
|
break;
|
|
1391
1155
|
case "topRightOut":
|
|
1392
|
-
h = a.right + s,
|
|
1156
|
+
h = a.right + s, $ = a.top;
|
|
1393
1157
|
break;
|
|
1394
1158
|
case "topLeftOut":
|
|
1395
|
-
h = a.left - f.width - s,
|
|
1159
|
+
h = a.left - f.width - s, $ = a.top;
|
|
1396
1160
|
break;
|
|
1397
1161
|
}
|
|
1398
|
-
return { x: h, y:
|
|
1162
|
+
return { x: h, y: $, placement: b };
|
|
1399
1163
|
};
|
|
1400
|
-
for (const
|
|
1401
|
-
const h =
|
|
1402
|
-
let
|
|
1403
|
-
if (
|
|
1404
|
-
return h.x = Math.max(u, Math.min(h.x,
|
|
1164
|
+
for (const b of m) {
|
|
1165
|
+
const h = w(b), $ = h.x >= 0 && h.x + f.width <= x, k = h.y >= 0 && h.y + f.height <= g;
|
|
1166
|
+
let S = !1;
|
|
1167
|
+
if (b === "centerLeft" || b === "centerRight" ? S = $ : b === "topCenter" || b === "bottomCenter" || b === "center" ? S = k : S = $ && k, S)
|
|
1168
|
+
return h.x = Math.max(u, Math.min(h.x, x - f.width - u)), h.y = Math.max(u, Math.min(h.y, g - f.height - u)), h;
|
|
1405
1169
|
}
|
|
1406
|
-
const
|
|
1407
|
-
return
|
|
1170
|
+
const F = w(r);
|
|
1171
|
+
return F.x = Math.max(u, Math.min(F.x, x - f.width - u)), F.y = Math.max(u, Math.min(F.y, g - f.height - u)), F;
|
|
1408
1172
|
}
|
|
1409
|
-
function
|
|
1410
|
-
|
|
1173
|
+
function Jn(e, n, t, r) {
|
|
1174
|
+
ye(() => {
|
|
1411
1175
|
if (!e)
|
|
1412
1176
|
return;
|
|
1413
1177
|
const s = (o) => {
|
|
1414
1178
|
var p, c;
|
|
1415
1179
|
const u = o.target;
|
|
1416
|
-
if (Array.isArray(
|
|
1417
|
-
const a =
|
|
1180
|
+
if (Array.isArray(n)) {
|
|
1181
|
+
const a = n.some((x) => {
|
|
1418
1182
|
var g;
|
|
1419
|
-
return (g =
|
|
1420
|
-
}), f = ((p =
|
|
1421
|
-
!a && !f &&
|
|
1183
|
+
return (g = x.current) == null ? void 0 : g.contains(u);
|
|
1184
|
+
}), f = ((p = r == null ? void 0 : r.current) == null ? void 0 : p.contains(u)) ?? !1;
|
|
1185
|
+
!a && !f && t();
|
|
1422
1186
|
return;
|
|
1423
1187
|
}
|
|
1424
|
-
const l = !!u.closest(
|
|
1425
|
-
!l && !m &&
|
|
1188
|
+
const l = !!u.closest(n), m = ((c = r == null ? void 0 : r.current) == null ? void 0 : c.contains(u)) ?? !1;
|
|
1189
|
+
!l && !m && t();
|
|
1426
1190
|
};
|
|
1427
1191
|
return document.addEventListener("mousedown", s), () => {
|
|
1428
1192
|
document.removeEventListener("mousedown", s);
|
|
1429
1193
|
};
|
|
1430
|
-
}, [e,
|
|
1194
|
+
}, [e, n, t, r]);
|
|
1431
1195
|
}
|
|
1432
|
-
const
|
|
1196
|
+
const Qn = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Kt = P(
|
|
1433
1197
|
({
|
|
1434
1198
|
anchorRef: e,
|
|
1435
|
-
open:
|
|
1436
|
-
horizontal:
|
|
1437
|
-
placement:
|
|
1199
|
+
open: n = !1,
|
|
1200
|
+
horizontal: t = !1,
|
|
1201
|
+
placement: r = "auto",
|
|
1438
1202
|
floatingMode: s,
|
|
1439
1203
|
offset: o = 4,
|
|
1440
1204
|
color: u,
|
|
@@ -1444,24 +1208,24 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1444
1208
|
border: c,
|
|
1445
1209
|
borderColor: a,
|
|
1446
1210
|
className: f,
|
|
1447
|
-
children:
|
|
1211
|
+
children: x,
|
|
1448
1212
|
style: g,
|
|
1449
|
-
id:
|
|
1450
|
-
onClose:
|
|
1451
|
-
variant:
|
|
1213
|
+
id: w,
|
|
1214
|
+
onClose: F,
|
|
1215
|
+
variant: b = "classic",
|
|
1452
1216
|
animation: h = "scale",
|
|
1453
|
-
duration:
|
|
1454
|
-
motionStyle:
|
|
1455
|
-
fixedLeading:
|
|
1456
|
-
density:
|
|
1457
|
-
__level:
|
|
1217
|
+
duration: $,
|
|
1218
|
+
motionStyle: k = "regular",
|
|
1219
|
+
fixedLeading: S,
|
|
1220
|
+
density: M,
|
|
1221
|
+
__level: A,
|
|
1458
1222
|
__groupId: q,
|
|
1459
|
-
__closeRootMenu:
|
|
1460
|
-
__navigateHorizontal:
|
|
1461
|
-
__horizontalDepth:
|
|
1462
|
-
docked:
|
|
1463
|
-
textColor:
|
|
1464
|
-
descriptionColor:
|
|
1223
|
+
__closeRootMenu: E,
|
|
1224
|
+
__navigateHorizontal: I,
|
|
1225
|
+
__horizontalDepth: y,
|
|
1226
|
+
docked: C,
|
|
1227
|
+
textColor: v,
|
|
1228
|
+
descriptionColor: N,
|
|
1465
1229
|
labelColor: Z,
|
|
1466
1230
|
shortcutColor: U,
|
|
1467
1231
|
uncheckedIcon: X,
|
|
@@ -1470,36 +1234,36 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1470
1234
|
radioCheckedIcon: K,
|
|
1471
1235
|
selectedColor: Me,
|
|
1472
1236
|
itemTouchEffects: De,
|
|
1473
|
-
itemSelectedEffects:
|
|
1474
|
-
itemFocusEffects:
|
|
1237
|
+
itemSelectedEffects: V,
|
|
1238
|
+
itemFocusEffects: O,
|
|
1475
1239
|
closeOnChange: Q = !1,
|
|
1476
1240
|
openOnHover: fe = !0,
|
|
1477
1241
|
labelFont: de,
|
|
1478
|
-
font:
|
|
1242
|
+
font: D,
|
|
1479
1243
|
descriptionFont: Ve,
|
|
1480
|
-
shortcutFont:
|
|
1244
|
+
shortcutFont: ke,
|
|
1481
1245
|
...z
|
|
1482
1246
|
}, te) => {
|
|
1483
|
-
const W = ce("closed"), [ie, We] = ee(-1), [oe, ne] = ee(-1), [
|
|
1484
|
-
function
|
|
1485
|
-
return
|
|
1247
|
+
const W = ce("closed"), [ie, We] = ee(-1), [oe, ne] = ee(-1), [ve, He] = ee(!1), _ = Dt(), me = A ?? 0, Ee = ce(w ?? $t("menu")).current, Re = q ?? Ee, se = ce(null), Se = ce(null), [Ce, Fe] = ee(null), $e = ie === -1, [pe, qe] = ee(!1), [ge, Le] = ee(!1), [Be, Ze] = ee("normal"), [le, L] = ee(!1), [Y, Te] = ee(-1), G = u ?? (b === "modern" ? "surfaceContainerLow" : "surfaceContainer"), Je = (C ? m : void 0) ?? l ?? (b === "modern" ? 3 : 2), [_e, H] = ee(!1), ae = h !== "none" ? $ ?? 220 : 0, je = C ? 0 : ae, Ae = ce(null), Oe = ce(null), J = ie !== -1;
|
|
1248
|
+
function Xe(d) {
|
|
1249
|
+
return Ot(d) || Pt(d);
|
|
1486
1250
|
}
|
|
1487
|
-
const
|
|
1251
|
+
const Ne = lt.Children.toArray(x).filter(Xe), re = Ne.reduce((d, B, R) => (Ot(B) && (B.props.disabled || d.push(R)), d), []);
|
|
1488
1252
|
function Qe() {
|
|
1489
1253
|
J && (H(!0), We(-1));
|
|
1490
1254
|
}
|
|
1491
1255
|
function Ge() {
|
|
1492
|
-
|
|
1256
|
+
F == null || F(), !F && J && (Qe(), ne(-1)), me === 0 && (e != null && e.current) && e.current.focus();
|
|
1493
1257
|
}
|
|
1494
1258
|
function ot() {
|
|
1495
|
-
|
|
1259
|
+
E ? E() : Ge();
|
|
1496
1260
|
}
|
|
1497
|
-
function
|
|
1261
|
+
function et(d) {
|
|
1498
1262
|
return !se.current || d === -1 ? null : se.current.querySelector(`[data-menu-index="${String(d)}"]`);
|
|
1499
1263
|
}
|
|
1500
1264
|
function pt(d) {
|
|
1501
|
-
const R = lt.Children.toArray(
|
|
1502
|
-
return vt(R) ? lt.Children.toArray(R.props.children).filter((it) =>
|
|
1265
|
+
const R = lt.Children.toArray(Ne[d].props.children).find((it) => ht(it));
|
|
1266
|
+
return vt(R) ? lt.Children.toArray(R.props.children).filter((it) => Pt(it) || Xe(it)) : void 0;
|
|
1503
1267
|
}
|
|
1504
1268
|
function Ke(d) {
|
|
1505
1269
|
if (d === -1 || re.indexOf(d) === -1)
|
|
@@ -1511,15 +1275,15 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1511
1275
|
const R = pt(d);
|
|
1512
1276
|
if (!R || R.length === 0)
|
|
1513
1277
|
return;
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1278
|
+
const xe = et(d);
|
|
1279
|
+
xe && (Se.current = xe, H(!0), We(d), setTimeout(() => {
|
|
1516
1280
|
H(!1);
|
|
1517
1281
|
}, ae));
|
|
1518
1282
|
}
|
|
1519
1283
|
function ue(d) {
|
|
1520
|
-
return d < 0 ? !1 : lt.Children.toArray(
|
|
1284
|
+
return d < 0 ? !1 : lt.Children.toArray(Ne[d].props.children).some((R) => ht(R));
|
|
1521
1285
|
}
|
|
1522
|
-
function
|
|
1286
|
+
function ze(d) {
|
|
1523
1287
|
if (oe === -1)
|
|
1524
1288
|
return;
|
|
1525
1289
|
const B = re.indexOf(oe);
|
|
@@ -1528,45 +1292,45 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1528
1292
|
let R;
|
|
1529
1293
|
d ? R = re[B + 1 < re.length ? B + 1 : 0] : R = B > 0 ? re[B - 1] : re[re.length - 1], R !== oe && (ne(R), ue(R) ? Ke(R) : Qe());
|
|
1530
1294
|
}
|
|
1531
|
-
|
|
1295
|
+
ye(() => {
|
|
1532
1296
|
J || setTimeout(() => {
|
|
1533
|
-
|
|
1297
|
+
L(!0);
|
|
1534
1298
|
}, ae * 0.67);
|
|
1535
|
-
}, [ae, J]),
|
|
1299
|
+
}, [ae, J]), ye(() => {
|
|
1536
1300
|
var d;
|
|
1537
|
-
!J && le && (
|
|
1538
|
-
}, [le, Y, J]),
|
|
1539
|
-
|
|
1540
|
-
}, [
|
|
1541
|
-
if (!
|
|
1301
|
+
!J && le && (L(!1), We(-1), Y !== -1 ? (Te(-1), Ke(Y)) : (d = se.current) == null || d.focus(), H(!1));
|
|
1302
|
+
}, [le, Y, J]), ye(() => {
|
|
1303
|
+
n ? (W.current = "opening", H(!0), Ze("normal"), qe(!0), We(-1), Le(!1), ne(-1)) : (W.current = "closing", H(!0), Le(!1), Ze("reverse"));
|
|
1304
|
+
}, [n]), ye(() => {
|
|
1305
|
+
if (!n || !pe || !se.current)
|
|
1542
1306
|
return;
|
|
1543
1307
|
const d = () => {
|
|
1544
|
-
const B = s ?? (
|
|
1308
|
+
const B = s ?? (t ? "dropdown" : "menu");
|
|
1545
1309
|
if (e != null && e.current) {
|
|
1546
|
-
const R =
|
|
1547
|
-
placement:
|
|
1310
|
+
const R = pn(e, se, {
|
|
1311
|
+
placement: r,
|
|
1548
1312
|
mode: B,
|
|
1549
1313
|
offset: o
|
|
1550
1314
|
});
|
|
1551
|
-
R &&
|
|
1315
|
+
R && Fe({ x: R.x, y: R.y });
|
|
1552
1316
|
}
|
|
1553
1317
|
};
|
|
1554
|
-
return
|
|
1555
|
-
|
|
1318
|
+
return C ? Fe({ x: 0, y: 0 }) : (window.addEventListener("resize", d), d()), Le(!0), () => {
|
|
1319
|
+
C || window.removeEventListener("resize", d);
|
|
1556
1320
|
};
|
|
1557
|
-
}, [e,
|
|
1558
|
-
|
|
1321
|
+
}, [e, C, s, t, o, n, r, pe]), ye(() => {
|
|
1322
|
+
n && pe && Ce && setTimeout(() => {
|
|
1559
1323
|
var d;
|
|
1560
|
-
W.current === "opening" && (H(!1), W.current = "opened",
|
|
1561
|
-
},
|
|
1562
|
-
}, [
|
|
1563
|
-
|
|
1564
|
-
W.current === "closing" && (W.current = "closed", qe(!1),
|
|
1324
|
+
W.current === "opening" && (H(!1), W.current = "opened", C || (d = se.current) == null || d.focus(), ne(_ ? re[0] ?? -1 : -1));
|
|
1325
|
+
}, je);
|
|
1326
|
+
}, [n, Ce, pe]), ye(() => {
|
|
1327
|
+
Be === "reverse" && W.current === "closing" && (Le(!0), ne(-1), setTimeout(() => {
|
|
1328
|
+
W.current === "closing" && (W.current = "closed", qe(!1), Fe(null), H(!1));
|
|
1565
1329
|
}, ae * 0.67));
|
|
1566
|
-
}, [ae,
|
|
1567
|
-
if (oe < 0 || !
|
|
1330
|
+
}, [ae, Be]), ye(() => {
|
|
1331
|
+
if (oe < 0 || !ve || W.current !== "opened")
|
|
1568
1332
|
return;
|
|
1569
|
-
const d =
|
|
1333
|
+
const d = et(oe);
|
|
1570
1334
|
d && (d.focus({ preventScroll: !0 }), d.scrollIntoView({
|
|
1571
1335
|
block: "nearest",
|
|
1572
1336
|
inline: "nearest"
|
|
@@ -1574,116 +1338,116 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1574
1338
|
var B;
|
|
1575
1339
|
(B = se.current) == null || B.focus({ preventScroll: !0 });
|
|
1576
1340
|
}, 0));
|
|
1577
|
-
}, [oe,
|
|
1578
|
-
|
|
1579
|
-
}, [oe, _,
|
|
1341
|
+
}, [oe, ve]), ye(() => {
|
|
1342
|
+
ve && _ && oe === -1 && W.current === "opened" && re.length > 0 && ne(re[0]);
|
|
1343
|
+
}, [oe, _, ve]);
|
|
1580
1344
|
function gt(d) {
|
|
1581
1345
|
He(!0);
|
|
1582
1346
|
}
|
|
1583
|
-
|
|
1584
|
-
|
|
1347
|
+
Jn(
|
|
1348
|
+
n && me === 0,
|
|
1585
1349
|
`[data-menu-group="${Re}"]`,
|
|
1586
1350
|
() => {
|
|
1587
1351
|
ot();
|
|
1588
1352
|
},
|
|
1589
1353
|
e
|
|
1590
1354
|
);
|
|
1591
|
-
function
|
|
1592
|
-
var R,
|
|
1355
|
+
function Ft(d) {
|
|
1356
|
+
var R, xe, it, en;
|
|
1593
1357
|
const B = d;
|
|
1594
|
-
B !== -1 && (
|
|
1358
|
+
B !== -1 && (Ne[B].props.disabled || (ne(B), ue(B) ? J && B === ie ? Qe() : Ke(B) : Ne[B].props.type === "radio" || Ne[B].props.type === "checkbox" || Ne[B].props.type === "option" ? ((xe = (R = Ne[B].props).onChange) == null || xe.call(R), Q && ot()) : ((en = (it = Ne[B].props).onClick) == null || en.call(it), ot())));
|
|
1595
1359
|
}
|
|
1596
|
-
function
|
|
1360
|
+
function Lt(d, B) {
|
|
1597
1361
|
if (_e) {
|
|
1598
1362
|
d == null || d.preventDefault();
|
|
1599
1363
|
return;
|
|
1600
1364
|
}
|
|
1601
|
-
|
|
1365
|
+
Ft(B);
|
|
1602
1366
|
}
|
|
1603
1367
|
function st(d, B) {
|
|
1604
|
-
if (!(!fe || _ &&
|
|
1605
|
-
if (
|
|
1606
|
-
J && (
|
|
1368
|
+
if (!(!fe || _ && ve)) {
|
|
1369
|
+
if (Oe.current && (clearTimeout(Oe.current), Oe.current = null), Ae.current && (clearTimeout(Ae.current), Ae.current = null), !ue(B)) {
|
|
1370
|
+
J && (Oe.current = window.setTimeout(() => {
|
|
1607
1371
|
Qe();
|
|
1608
1372
|
}, 150));
|
|
1609
1373
|
return;
|
|
1610
1374
|
}
|
|
1611
|
-
J && ie === B || (
|
|
1375
|
+
J && ie === B || (Ae.current = window.setTimeout(() => {
|
|
1612
1376
|
ne(B), Ke(B);
|
|
1613
1377
|
}, 150));
|
|
1614
1378
|
}
|
|
1615
1379
|
}
|
|
1616
1380
|
function Rt() {
|
|
1617
|
-
|
|
1381
|
+
Oe.current && (clearTimeout(Oe.current), Oe.current = null), Ae.current && (clearTimeout(Ae.current), Ae.current = null);
|
|
1618
1382
|
}
|
|
1619
|
-
const
|
|
1383
|
+
const Bt = Ne.some(
|
|
1620
1384
|
(d) => d.props.icon !== void 0 || d.props.leading !== void 0 || d.props.type === "radio" || d.props.type === "checkbox"
|
|
1621
|
-
),
|
|
1622
|
-
if (
|
|
1385
|
+
), jt = Ne.map((d, B) => {
|
|
1386
|
+
if (Ot(d)) {
|
|
1623
1387
|
const R = {
|
|
1624
1388
|
"data-menu-index": B,
|
|
1625
1389
|
__interactionsDisabled: _e,
|
|
1626
1390
|
__index: B,
|
|
1627
1391
|
disabled: d.props.disabled,
|
|
1628
|
-
active: B === oe &&
|
|
1629
|
-
focusVisible: _ &&
|
|
1630
|
-
horizontal:
|
|
1392
|
+
active: B === oe && ve,
|
|
1393
|
+
focusVisible: _ && ve,
|
|
1394
|
+
horizontal: t,
|
|
1631
1395
|
expanded: J && ie === B,
|
|
1632
|
-
fixedLeading: d.props.fixedLeading ?? (
|
|
1633
|
-
variant: d.props.variant ??
|
|
1396
|
+
fixedLeading: d.props.fixedLeading ?? (S && Bt),
|
|
1397
|
+
variant: d.props.variant ?? b,
|
|
1634
1398
|
shape: d.props.shape ?? p,
|
|
1635
1399
|
color: d.props.color ?? u,
|
|
1636
|
-
density: d.props.density ??
|
|
1400
|
+
density: d.props.density ?? M,
|
|
1637
1401
|
shortcutColor: d.props.shortcutColor ?? U,
|
|
1638
|
-
textColor: d.props.textColor ??
|
|
1402
|
+
textColor: d.props.textColor ?? v,
|
|
1639
1403
|
labelColor: d.props.labelColor ?? Z,
|
|
1640
|
-
descriptionColor: d.props.descriptionColor ??
|
|
1404
|
+
descriptionColor: d.props.descriptionColor ?? N,
|
|
1641
1405
|
checkedIcon: d.props.checkedIcon ?? (d.props.type === "checkbox" ? we : K),
|
|
1642
1406
|
uncheckedIcon: d.props.uncheckedIcon ?? (d.props.type === "checkbox" ? X : he),
|
|
1643
1407
|
selectedColor: d.props.selectedColor ?? Me,
|
|
1644
1408
|
touchEffects: d.props.touchEffects ?? De,
|
|
1645
|
-
selectedEffects: d.props.selectedEffects ??
|
|
1646
|
-
focusEffects: d.props.focusEffects ??
|
|
1409
|
+
selectedEffects: d.props.selectedEffects ?? V,
|
|
1410
|
+
focusEffects: d.props.focusEffects ?? O,
|
|
1647
1411
|
labelFont: d.props.labelFont ?? de,
|
|
1648
|
-
font: d.props.font ??
|
|
1412
|
+
font: d.props.font ?? D,
|
|
1649
1413
|
descriptionFont: d.props.descriptionFont ?? Ve,
|
|
1650
|
-
shortcutFont: d.props.shortcutFont ??
|
|
1651
|
-
onClick: (
|
|
1652
|
-
|
|
1414
|
+
shortcutFont: d.props.shortcutFont ?? ke,
|
|
1415
|
+
onClick: (xe) => {
|
|
1416
|
+
Lt(xe, B);
|
|
1653
1417
|
},
|
|
1654
|
-
onMouseEnter: (
|
|
1655
|
-
st(
|
|
1418
|
+
onMouseEnter: (xe) => {
|
|
1419
|
+
st(xe, B);
|
|
1656
1420
|
},
|
|
1657
|
-
onMouseLeave: (
|
|
1421
|
+
onMouseLeave: (xe) => {
|
|
1658
1422
|
Rt();
|
|
1659
1423
|
}
|
|
1660
1424
|
};
|
|
1661
|
-
return
|
|
1425
|
+
return At(d, {
|
|
1662
1426
|
...d.props,
|
|
1663
1427
|
...R
|
|
1664
1428
|
});
|
|
1665
|
-
} else if (
|
|
1666
|
-
const R =
|
|
1429
|
+
} else if (Pt(d)) {
|
|
1430
|
+
const R = Tt[G] === "onSurface" ? "outlineVariant" : Tt[G], xe = {
|
|
1667
1431
|
borderColor: d.props.borderColor ?? d.props.color ?? R,
|
|
1668
|
-
vertical:
|
|
1432
|
+
vertical: t,
|
|
1669
1433
|
insetSize: d.props.insetSize ?? 8,
|
|
1670
|
-
spacing: d.props.spacing ?? (
|
|
1671
|
-
inset: d.props.inset ?? (
|
|
1434
|
+
spacing: d.props.spacing ?? (b === "modern" ? 5 : 8),
|
|
1435
|
+
inset: d.props.inset ?? (b === "modern" ? "middle" : void 0)
|
|
1672
1436
|
};
|
|
1673
|
-
return
|
|
1437
|
+
return At(d, { ...d.props, ...xe });
|
|
1674
1438
|
}
|
|
1675
|
-
return
|
|
1439
|
+
return At(d, {
|
|
1676
1440
|
...d.props
|
|
1677
1441
|
});
|
|
1678
1442
|
});
|
|
1679
|
-
function
|
|
1443
|
+
function ct(d) {
|
|
1680
1444
|
d.target.closest("[data-menu-index]") || J && Qe();
|
|
1681
1445
|
}
|
|
1682
|
-
const
|
|
1683
|
-
if (!
|
|
1446
|
+
const Pe = (d) => {
|
|
1447
|
+
if (!n || _e)
|
|
1684
1448
|
return;
|
|
1685
1449
|
let B = d.key;
|
|
1686
|
-
if (
|
|
1450
|
+
if (t) {
|
|
1687
1451
|
const it = {
|
|
1688
1452
|
ArrowDown: "ArrowRight",
|
|
1689
1453
|
ArrowUp: "ArrowLeft",
|
|
@@ -1695,13 +1459,13 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1695
1459
|
if (re.length === 0 && B !== "Tab")
|
|
1696
1460
|
return;
|
|
1697
1461
|
const R = re.indexOf(oe);
|
|
1698
|
-
let
|
|
1462
|
+
let xe;
|
|
1699
1463
|
switch (B) {
|
|
1700
1464
|
case "ArrowUp":
|
|
1701
|
-
d.preventDefault(), oe === -1 || R === -1 ?
|
|
1465
|
+
d.preventDefault(), oe === -1 || R === -1 ? xe = re[re.length - 1] : xe = R > 0 ? re[R - 1] : re[re.length - 1], ne(xe), t && ue(xe) && Ke(xe);
|
|
1702
1466
|
break;
|
|
1703
1467
|
case "ArrowDown":
|
|
1704
|
-
d.preventDefault(), oe === -1 || R === -1 ?
|
|
1468
|
+
d.preventDefault(), oe === -1 || R === -1 ? xe = re[0] : xe = re[R + 1 < re.length ? R + 1 : 0], ne(xe), t && ue(xe) && Ke(xe);
|
|
1705
1469
|
break;
|
|
1706
1470
|
case "Home":
|
|
1707
1471
|
ne(re[0]);
|
|
@@ -1711,86 +1475,86 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1711
1475
|
break;
|
|
1712
1476
|
case "Enter":
|
|
1713
1477
|
case " ":
|
|
1714
|
-
d.stopPropagation(), d.preventDefault(), R >= 0 &&
|
|
1478
|
+
d.stopPropagation(), d.preventDefault(), R >= 0 && Ft(re[R]);
|
|
1715
1479
|
break;
|
|
1716
1480
|
case "ArrowRight":
|
|
1717
|
-
d.preventDefault(), R >= 0 && ue(re[R]) ? Ke(re[R]) :
|
|
1481
|
+
d.preventDefault(), R >= 0 && ue(re[R]) ? Ke(re[R]) : I && I(!0);
|
|
1718
1482
|
break;
|
|
1719
1483
|
case "ArrowLeft":
|
|
1720
|
-
d.preventDefault(),
|
|
1484
|
+
d.preventDefault(), I && y === 1 ? I(!1) : Ge();
|
|
1721
1485
|
break;
|
|
1722
1486
|
case "Escape":
|
|
1723
1487
|
d.preventDefault(), Ge();
|
|
1724
1488
|
break;
|
|
1725
1489
|
case "Tab":
|
|
1726
|
-
|
|
1490
|
+
C || (d.stopPropagation(), d.preventDefault()), ot();
|
|
1727
1491
|
break;
|
|
1728
1492
|
}
|
|
1729
1493
|
};
|
|
1730
|
-
if (!
|
|
1494
|
+
if (!n && !pe || !e && !C)
|
|
1731
1495
|
return null;
|
|
1732
1496
|
const rt = {
|
|
1733
|
-
"--uui-reverse":
|
|
1734
|
-
"--uui-duration":
|
|
1735
|
-
},
|
|
1736
|
-
|
|
1737
|
-
const
|
|
1497
|
+
"--uui-reverse": Be,
|
|
1498
|
+
"--uui-duration": Be === "reverse" ? String(je * 0.67) + "ms" : String(je) + "ms"
|
|
1499
|
+
}, zt = Qn(h), xn = zt === "none" ? "" : Mt[zt], wn = k === "expressive" ? "uui-motion-expressive" : "", Nt = T({ ...g, ...rt });
|
|
1500
|
+
Nt.bg(G), Nt.text.on(G), c && +c > 0 && Nt.border(mt(a));
|
|
1501
|
+
const Sn = [
|
|
1738
1502
|
"uui-menu",
|
|
1739
1503
|
`uui-menu-level-${String(me)}`,
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
ge &&
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
c !== void 0 ?
|
|
1504
|
+
t && "uui-menu-horizontal",
|
|
1505
|
+
$e && "uui-menu-active",
|
|
1506
|
+
b === "modern" ? "uui-menu-modern" : "uui-menu-classic",
|
|
1507
|
+
ge && xn,
|
|
1508
|
+
wn,
|
|
1509
|
+
dt(M),
|
|
1510
|
+
Ue(p ?? (b === "modern" ? "rounded" : "smooth")),
|
|
1511
|
+
ut(Je),
|
|
1512
|
+
c !== void 0 ? nt(c) : null,
|
|
1749
1513
|
f
|
|
1750
|
-
].filter(Boolean).join(" "),
|
|
1514
|
+
].filter(Boolean).join(" "), Yt = /* @__PURE__ */ i(
|
|
1751
1515
|
"div",
|
|
1752
1516
|
{
|
|
1753
|
-
"aria-orientation":
|
|
1754
|
-
className:
|
|
1517
|
+
"aria-orientation": t ? "horizontal" : "vertical",
|
|
1518
|
+
className: Sn,
|
|
1755
1519
|
"data-menu-group": Re,
|
|
1756
|
-
id:
|
|
1520
|
+
id: w,
|
|
1757
1521
|
onBlur: () => {
|
|
1758
1522
|
He(!1);
|
|
1759
1523
|
},
|
|
1760
|
-
onClick:
|
|
1524
|
+
onClick: ct,
|
|
1761
1525
|
onFocus: gt,
|
|
1762
|
-
onKeyDown:
|
|
1763
|
-
ref:
|
|
1526
|
+
onKeyDown: Pe,
|
|
1527
|
+
ref: ft(te, se),
|
|
1764
1528
|
role: "menu",
|
|
1765
1529
|
style: {
|
|
1766
|
-
position:
|
|
1530
|
+
position: C ? "relative" : "fixed",
|
|
1767
1531
|
left: (Ce == null ? void 0 : Ce.x) ?? 0,
|
|
1768
1532
|
top: (Ce == null ? void 0 : Ce.y) ?? 0,
|
|
1769
1533
|
zIndex: 9999,
|
|
1770
1534
|
visibility: Ce ? "visible" : "hidden",
|
|
1771
|
-
...
|
|
1535
|
+
...Nt.get()
|
|
1772
1536
|
},
|
|
1773
1537
|
tabIndex: 0,
|
|
1774
1538
|
...z,
|
|
1775
|
-
children: /* @__PURE__ */
|
|
1539
|
+
children: /* @__PURE__ */ i("div", { className: "uui-menu-scroll", children: jt })
|
|
1776
1540
|
}
|
|
1777
|
-
),
|
|
1778
|
-
let
|
|
1541
|
+
), $n = document.getElementById("menu-root") ?? document.body;
|
|
1542
|
+
let Jt = null;
|
|
1779
1543
|
if (ie !== -1) {
|
|
1780
1544
|
const d = pt(ie);
|
|
1781
|
-
d && d.length > 0 && (
|
|
1545
|
+
d && d.length > 0 && (Jt = d);
|
|
1782
1546
|
}
|
|
1783
|
-
const
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
!
|
|
1786
|
-
Se.current && ie !== -1 && /* @__PURE__ */
|
|
1787
|
-
|
|
1547
|
+
const Qt = Wt(
|
|
1548
|
+
/* @__PURE__ */ j(tt, { children: [
|
|
1549
|
+
!C && Yt,
|
|
1550
|
+
Se.current && ie !== -1 && /* @__PURE__ */ i(
|
|
1551
|
+
Kt,
|
|
1788
1552
|
{
|
|
1789
|
-
__closeRootMenu:
|
|
1553
|
+
__closeRootMenu: E ?? ot,
|
|
1790
1554
|
__groupId: Re,
|
|
1791
|
-
__horizontalDepth:
|
|
1555
|
+
__horizontalDepth: t ? 1 : y && y + 1,
|
|
1792
1556
|
__level: me + 1,
|
|
1793
|
-
__navigateHorizontal:
|
|
1557
|
+
__navigateHorizontal: t ? ze : I,
|
|
1794
1558
|
anchorRef: Se,
|
|
1795
1559
|
animation: h,
|
|
1796
1560
|
"aria-orientation": "vertical",
|
|
@@ -1799,23 +1563,23 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1799
1563
|
checkedIcon: we,
|
|
1800
1564
|
closeOnChange: Q,
|
|
1801
1565
|
color: G,
|
|
1802
|
-
density:
|
|
1803
|
-
descriptionColor:
|
|
1566
|
+
density: M,
|
|
1567
|
+
descriptionColor: N,
|
|
1804
1568
|
descriptionFont: Ve,
|
|
1805
|
-
duration:
|
|
1569
|
+
duration: $,
|
|
1806
1570
|
elevation: l,
|
|
1807
|
-
fixedLeading:
|
|
1808
|
-
floatingMode:
|
|
1809
|
-
font:
|
|
1810
|
-
itemFocusEffects:
|
|
1811
|
-
itemSelectedEffects:
|
|
1571
|
+
fixedLeading: S,
|
|
1572
|
+
floatingMode: t ? "menu" : "submenu",
|
|
1573
|
+
font: D,
|
|
1574
|
+
itemFocusEffects: O,
|
|
1575
|
+
itemSelectedEffects: V,
|
|
1812
1576
|
itemTouchEffects: De,
|
|
1813
1577
|
labelColor: Z,
|
|
1814
1578
|
labelFont: de,
|
|
1815
|
-
motionStyle:
|
|
1579
|
+
motionStyle: k,
|
|
1816
1580
|
offset: 0,
|
|
1817
1581
|
onClose: Qe,
|
|
1818
|
-
open:
|
|
1582
|
+
open: n && J,
|
|
1819
1583
|
openOnHover: fe,
|
|
1820
1584
|
placement: "auto",
|
|
1821
1585
|
radioCheckedIcon: K,
|
|
@@ -1824,79 +1588,48 @@ const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
|
|
|
1824
1588
|
selectedColor: Me,
|
|
1825
1589
|
shape: p,
|
|
1826
1590
|
shortcutColor: U,
|
|
1827
|
-
shortcutFont:
|
|
1828
|
-
textColor:
|
|
1591
|
+
shortcutFont: ke,
|
|
1592
|
+
textColor: v,
|
|
1829
1593
|
uncheckedIcon: X,
|
|
1830
|
-
variant:
|
|
1831
|
-
children:
|
|
1594
|
+
variant: b,
|
|
1595
|
+
children: Jt
|
|
1832
1596
|
}
|
|
1833
1597
|
)
|
|
1834
1598
|
] }),
|
|
1835
|
-
|
|
1599
|
+
$n
|
|
1836
1600
|
);
|
|
1837
|
-
return
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
] }) :
|
|
1601
|
+
return C && me === 0 ? /* @__PURE__ */ j(tt, { children: [
|
|
1602
|
+
Yt,
|
|
1603
|
+
Qt
|
|
1604
|
+
] }) : Qt;
|
|
1841
1605
|
}
|
|
1842
1606
|
);
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
const
|
|
1846
|
-
const {
|
|
1847
|
-
children: t,
|
|
1848
|
-
className: n,
|
|
1849
|
-
border: i,
|
|
1850
|
-
borderColor: s,
|
|
1851
|
-
color: o = "error",
|
|
1852
|
-
align: u = "topRight",
|
|
1853
|
-
shape: l = "round",
|
|
1854
|
-
size: m = "medium",
|
|
1855
|
-
elevation: p,
|
|
1856
|
-
ariaLabel: c,
|
|
1857
|
-
value: a,
|
|
1858
|
-
font: f,
|
|
1859
|
-
offset: b,
|
|
1860
|
-
...g
|
|
1861
|
-
} = e, x = "uui-badge", $ = f ?? (m === "extraLarge" || m === "large" ? "labelMedium" : "labelSmall"), C = [
|
|
1862
|
-
"uui-badge-control",
|
|
1863
|
-
n,
|
|
1864
|
-
je(l),
|
|
1865
|
-
Ct(m),
|
|
1866
|
-
$e($)
|
|
1867
|
-
], h = ["uui-badge-slot", un(u)].filter(Boolean).join(" "), w = T();
|
|
1868
|
-
w.bg(o), w.text.on(o), b !== void 0 && w.set("--uui-badge-offset", `${b}px`), p !== void 0 && C.push(at(p)), i !== void 0 && (C.push(tt(i)), w.border(ct(s)));
|
|
1869
|
-
const F = C.filter(Boolean).join(" "), k = /* @__PURE__ */ r("span", { "aria-label": c, className: F, style: w.get(), children: m !== "small" && m !== "extraSmall" && a });
|
|
1870
|
-
return t ? /* @__PURE__ */ L("span", { className: x, ...g, children: [
|
|
1871
|
-
t,
|
|
1872
|
-
/* @__PURE__ */ r("span", { className: h, children: k })
|
|
1873
|
-
] }) : k;
|
|
1874
|
-
};
|
|
1875
|
-
Xt.displayName = "Badge";
|
|
1876
|
-
const rr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r("path", { d: "M10 17V7L15 12L10 17Z", fill: "currentColor" }) }), ir = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
|
|
1607
|
+
Kt[yn] = !0;
|
|
1608
|
+
Kt.displayName = "Menu";
|
|
1609
|
+
const er = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i("path", { d: "M10 17V7L15 12L10 17Z", fill: "currentColor" }) }), tr = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
|
|
1877
1610
|
"path",
|
|
1878
1611
|
{
|
|
1879
1612
|
d: "M9.5501 18L3.8501 12.3L5.2751 10.875L9.5501 15.15L18.7251 5.97498L20.1501 7.39998L9.5501 18Z",
|
|
1880
1613
|
fill: "currentColor"
|
|
1881
1614
|
}
|
|
1882
|
-
) }),
|
|
1615
|
+
) }), nr = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
|
|
1883
1616
|
"path",
|
|
1884
1617
|
{
|
|
1885
1618
|
d: "M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",
|
|
1886
1619
|
fill: "currentColor"
|
|
1887
1620
|
}
|
|
1888
|
-
) }),
|
|
1621
|
+
) }), rr = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
|
|
1889
1622
|
"path",
|
|
1890
1623
|
{
|
|
1891
1624
|
d: "M12 17C13.3833 17 14.5625 16.5125 15.5375 15.5375C16.5125 14.5625 17 13.3833 17 12C17 10.6167 16.5125 9.4375 15.5375 8.4625C14.5625 7.4875 13.3833 7 12 7C10.6167 7 9.4375 7.4875 8.4625 8.4625C7.4875 9.4375 7 10.6167 7 12C7 13.3833 7.4875 14.5625 8.4625 15.5375C9.4375 16.5125 10.6167 17 12 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",
|
|
1892
1625
|
fill: "currentColor"
|
|
1893
1626
|
}
|
|
1894
|
-
) }),
|
|
1627
|
+
) }), gn = P(
|
|
1895
1628
|
({
|
|
1896
1629
|
shape: e,
|
|
1897
|
-
touchEffects:
|
|
1898
|
-
focusEffects:
|
|
1899
|
-
selectedEffects:
|
|
1630
|
+
touchEffects: n = ["ripple"],
|
|
1631
|
+
focusEffects: t = ["ring", "overlay"],
|
|
1632
|
+
selectedEffects: r = ["color"],
|
|
1900
1633
|
checkedIcon: s,
|
|
1901
1634
|
uncheckedIcon: o,
|
|
1902
1635
|
selectedColor: u,
|
|
@@ -1906,24 +1639,24 @@ const rr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns:
|
|
|
1906
1639
|
shortcutColor: c,
|
|
1907
1640
|
fixedLeading: a,
|
|
1908
1641
|
color: f,
|
|
1909
|
-
icon:
|
|
1642
|
+
icon: x,
|
|
1910
1643
|
endIcon: g,
|
|
1911
|
-
leading:
|
|
1912
|
-
trailing:
|
|
1913
|
-
label:
|
|
1644
|
+
leading: w,
|
|
1645
|
+
trailing: F,
|
|
1646
|
+
label: b,
|
|
1914
1647
|
disabled: h = !1,
|
|
1915
|
-
className:
|
|
1916
|
-
onClick:
|
|
1917
|
-
badge:
|
|
1918
|
-
expanded:
|
|
1919
|
-
active:
|
|
1648
|
+
className: $,
|
|
1649
|
+
onClick: k,
|
|
1650
|
+
badge: S,
|
|
1651
|
+
expanded: M,
|
|
1652
|
+
active: A,
|
|
1920
1653
|
children: q,
|
|
1921
|
-
focusVisible:
|
|
1922
|
-
type:
|
|
1923
|
-
checked:
|
|
1924
|
-
description:
|
|
1925
|
-
shortcut:
|
|
1926
|
-
density:
|
|
1654
|
+
focusVisible: E,
|
|
1655
|
+
type: I = "item",
|
|
1656
|
+
checked: y,
|
|
1657
|
+
description: C,
|
|
1658
|
+
shortcut: v,
|
|
1659
|
+
density: N,
|
|
1927
1660
|
horizontal: Z,
|
|
1928
1661
|
labelFont: U,
|
|
1929
1662
|
font: X,
|
|
@@ -1932,83 +1665,105 @@ const rr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns:
|
|
|
1932
1665
|
selected: K,
|
|
1933
1666
|
__index: Me,
|
|
1934
1667
|
__interactionsDisabled: De,
|
|
1935
|
-
onChange:
|
|
1936
|
-
variant:
|
|
1668
|
+
onChange: V,
|
|
1669
|
+
variant: O = "classic",
|
|
1937
1670
|
...Q
|
|
1938
1671
|
}, fe) => {
|
|
1939
|
-
const de = ce(null),
|
|
1672
|
+
const de = ce(null), D = lt.Children.toArray(q), Ve = D.find((G) => ht(G)), ke = D.filter((G) => !ht(G)), z = !!Ve;
|
|
1940
1673
|
let te;
|
|
1941
|
-
|
|
1942
|
-
const W = te ??
|
|
1674
|
+
I !== "item" && (I === "radio" ? te = y ? s ?? rr : o ?? nr : I === "checkbox" && (te = y ? s ?? tr : o));
|
|
1675
|
+
const W = te ?? w ?? x ?? (a && !Z), ie = W && /* @__PURE__ */ i("div", { className: "uui-icon uui-leading", children: W }), We = F ?? g;
|
|
1943
1676
|
let oe;
|
|
1944
|
-
|
|
1945
|
-
const ne =
|
|
1677
|
+
S && (typeof S == "string" || typeof S == "number" ? oe = /* @__PURE__ */ i(qt, { value: S }) : oe = S);
|
|
1678
|
+
const ne = O === "modern" ? "labelLarge" : "bodyLarge", ve = U ?? X ?? ne, He = we ?? (O === "modern" ? "bodySmall" : "bodyMedium"), _ = he ?? ne, me = T();
|
|
1946
1679
|
me.text(c);
|
|
1947
|
-
const Ee = z && !Z ?
|
|
1680
|
+
const Ee = z && !Z ? er : We, Re = v && /* @__PURE__ */ i(
|
|
1681
|
+
"div",
|
|
1682
|
+
{
|
|
1683
|
+
className: `uui-menu-item-shortcut ${Ie(_)}`,
|
|
1684
|
+
style: me.get(),
|
|
1685
|
+
children: v
|
|
1686
|
+
}
|
|
1687
|
+
), se = (v ?? S ?? Ee) && /* @__PURE__ */ j(tt, { children: [
|
|
1948
1688
|
Re,
|
|
1949
1689
|
oe,
|
|
1950
|
-
Ee && /* @__PURE__ */
|
|
1690
|
+
Ee && /* @__PURE__ */ i("div", { className: "uui-icon uui-trailing", children: Ee })
|
|
1951
1691
|
] }), Se = T();
|
|
1952
1692
|
Se.text(m);
|
|
1953
|
-
const Ce =
|
|
1954
|
-
|
|
1955
|
-
|
|
1693
|
+
const Ce = b && /* @__PURE__ */ i(
|
|
1694
|
+
"div",
|
|
1695
|
+
{
|
|
1696
|
+
className: `uui-menu-item-label ${Ie(ve)}`,
|
|
1697
|
+
style: Se.get(),
|
|
1698
|
+
children: b
|
|
1699
|
+
}
|
|
1700
|
+
), Fe = T();
|
|
1701
|
+
(p || !l && O === "classic" && (f != null && f.startsWith("surface"))) && (p ? Fe.text(p) : Fe.text.on("surfaceVariant"));
|
|
1702
|
+
const $e = C && /* @__PURE__ */ i(
|
|
1956
1703
|
"div",
|
|
1957
1704
|
{
|
|
1958
|
-
className: `uui-menu-item-description ${
|
|
1959
|
-
style:
|
|
1960
|
-
children:
|
|
1705
|
+
className: `uui-menu-item-description ${Ie(He)}`,
|
|
1706
|
+
style: Fe.get(),
|
|
1707
|
+
children: C
|
|
1961
1708
|
}
|
|
1962
|
-
), pe = (Ce ??
|
|
1709
|
+
), pe = (Ce ?? $e) && /* @__PURE__ */ j("div", { className: "uui-menu-item-text", children: [
|
|
1963
1710
|
Ce,
|
|
1964
|
-
|
|
1711
|
+
$e
|
|
1965
1712
|
] }), qe = (G) => {
|
|
1966
1713
|
if (De || h) {
|
|
1967
1714
|
G == null || G.preventDefault();
|
|
1968
1715
|
return;
|
|
1969
1716
|
}
|
|
1970
|
-
|
|
1717
|
+
k == null || k(G), n.includes("ripple") && de.current && G && St(de.current, G);
|
|
1971
1718
|
};
|
|
1972
|
-
let ge = f ?? (
|
|
1973
|
-
|
|
1974
|
-
const Be = T();
|
|
1975
|
-
Be.bg.on(ge);
|
|
1719
|
+
let ge = f ?? (O === "modern" ? "surfaceContainerLow" : "surfaceContainer");
|
|
1720
|
+
I === "option" && K && r.includes("color") && (ge = u ?? (O === "modern" ? "tertiaryContainer" : "secondaryContainer"));
|
|
1976
1721
|
const Le = T();
|
|
1977
|
-
Le.bg
|
|
1722
|
+
Le.bg.on(ge);
|
|
1723
|
+
const Be = T();
|
|
1724
|
+
Be.bg(ge), l ? Be.text(l) : Be.text.on(ge);
|
|
1978
1725
|
const Ze = [
|
|
1979
1726
|
"uui-menu-item",
|
|
1980
|
-
|
|
1981
|
-
|
|
1727
|
+
$,
|
|
1728
|
+
dt(N),
|
|
1982
1729
|
h && "uui-disabled",
|
|
1983
|
-
|
|
1984
|
-
].filter(Boolean).join(" "), le =
|
|
1730
|
+
O === "modern" ? "uui-menu-item-modern" : "uui-menu-item-classic"
|
|
1731
|
+
].filter(Boolean).join(" "), le = Ue(
|
|
1732
|
+
e ?? (O === "modern" ? "rounded" : "smooth")
|
|
1733
|
+
), L = [
|
|
1985
1734
|
"uui-menu-item-content",
|
|
1986
1735
|
le,
|
|
1987
|
-
...
|
|
1988
|
-
...
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
].filter(Boolean).join(" "), Y = /* @__PURE__ */
|
|
1992
|
-
|
|
1736
|
+
...t.includes("ring") && A ? ["uui-focus-ring-in"] : [],
|
|
1737
|
+
...t.includes("overlay") && A ? ["uui-focus-overlay"] : [],
|
|
1738
|
+
A && "uui-active",
|
|
1739
|
+
A && E && "uui-focus-visible"
|
|
1740
|
+
].filter(Boolean).join(" "), Y = /* @__PURE__ */ j("div", { className: L, style: Be.get(), children: [
|
|
1741
|
+
ke.length > 0 ? /* @__PURE__ */ i("div", { className: "uui-menu-item-children", children: ke }) : /* @__PURE__ */ j(tt, { children: [
|
|
1993
1742
|
ie,
|
|
1994
1743
|
pe,
|
|
1995
1744
|
se
|
|
1996
1745
|
] }),
|
|
1997
|
-
/* @__PURE__ */
|
|
1746
|
+
/* @__PURE__ */ i(
|
|
1747
|
+
"div",
|
|
1748
|
+
{
|
|
1749
|
+
className: ["uui-state", le].join(" "),
|
|
1750
|
+
style: Le.get()
|
|
1751
|
+
}
|
|
1752
|
+
)
|
|
1998
1753
|
] });
|
|
1999
1754
|
let Te = "menuitem";
|
|
2000
|
-
return (
|
|
2001
|
-
/* @__PURE__ */
|
|
1755
|
+
return (I === "radio" || I === "checkbox") && (Te = I === "radio" ? "menuitemradio" : "menuitemcheckbox"), // eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
|
|
1756
|
+
/* @__PURE__ */ i(
|
|
2002
1757
|
"div",
|
|
2003
1758
|
{
|
|
2004
1759
|
...Q,
|
|
2005
|
-
"aria-checked":
|
|
1760
|
+
"aria-checked": I === "radio" || I === "checkbox" ? y ?? !1 : void 0,
|
|
2006
1761
|
"aria-disabled": h ? "true" : void 0,
|
|
2007
|
-
"aria-expanded": z ?
|
|
1762
|
+
"aria-expanded": z ? M : void 0,
|
|
2008
1763
|
"aria-haspopup": z ? "menu" : void 0,
|
|
2009
1764
|
className: Ze,
|
|
2010
1765
|
onClick: qe,
|
|
2011
|
-
ref:
|
|
1766
|
+
ref: ft(de, fe),
|
|
2012
1767
|
role: Te,
|
|
2013
1768
|
tabIndex: -1,
|
|
2014
1769
|
children: Y
|
|
@@ -2016,13 +1771,13 @@ const rr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns:
|
|
|
2016
1771
|
);
|
|
2017
1772
|
}
|
|
2018
1773
|
);
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
const
|
|
1774
|
+
gn[Gt] = !0;
|
|
1775
|
+
gn.displayName = "MenuItem";
|
|
1776
|
+
const hn = (e) => {
|
|
2022
1777
|
const {
|
|
2023
|
-
className:
|
|
2024
|
-
borderColor:
|
|
2025
|
-
color:
|
|
1778
|
+
className: n,
|
|
1779
|
+
borderColor: t,
|
|
1780
|
+
color: r,
|
|
2026
1781
|
border: s = 1,
|
|
2027
1782
|
inset: o = "none",
|
|
2028
1783
|
insetSize: u = 16,
|
|
@@ -2032,67 +1787,67 @@ const xn = (e) => {
|
|
|
2032
1787
|
elevation: c,
|
|
2033
1788
|
shape: a,
|
|
2034
1789
|
style: f,
|
|
2035
|
-
height:
|
|
1790
|
+
height: x,
|
|
2036
1791
|
...g
|
|
2037
|
-
} = e,
|
|
1792
|
+
} = e, w = ce(null), [F, b] = ee(!1);
|
|
2038
1793
|
ln(() => {
|
|
2039
|
-
const
|
|
2040
|
-
if (!(
|
|
1794
|
+
const M = w.current;
|
|
1795
|
+
if (!(M != null && M.parentElement))
|
|
2041
1796
|
return;
|
|
2042
|
-
const
|
|
2043
|
-
|
|
1797
|
+
const A = getComputedStyle(M.parentElement).display;
|
|
1798
|
+
b(A.includes("flex"));
|
|
2044
1799
|
}, []);
|
|
2045
|
-
const h = Math.min(4, Math.max(0, s)),
|
|
1800
|
+
const h = Math.min(4, Math.max(0, s)), $ = [
|
|
2046
1801
|
"uui-divider",
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
c &&
|
|
2050
|
-
a &&
|
|
2051
|
-
].filter(Boolean).join(" "),
|
|
2052
|
-
if (
|
|
2053
|
-
height:
|
|
1802
|
+
An(h === 0 ? 0 : 1),
|
|
1803
|
+
n,
|
|
1804
|
+
c && On(c),
|
|
1805
|
+
a && jn(a)
|
|
1806
|
+
].filter(Boolean).join(" "), k = T(f), S = mt(t ?? r ?? "outlineVariant");
|
|
1807
|
+
if (k.border(S), k.bg(S), p !== "strong" && (p === "subtle" ? k.set("opacity", "var(--uui-subtle-opacity)") : k.set("opacity", "var(--uui-medium-opacity)")), F ? m ? k.merge({
|
|
1808
|
+
height: x,
|
|
2054
1809
|
alignSelf: "stretch",
|
|
2055
1810
|
width: `${h}px`,
|
|
2056
1811
|
marginInline: `${l}px`
|
|
2057
|
-
}) :
|
|
2058
|
-
height:
|
|
1812
|
+
}) : k.merge({ flex: "1 1 auto", height: `${h}px`, marginBlock: `${l}px` }) : m ? k.merge({
|
|
1813
|
+
height: x,
|
|
2059
1814
|
display: "inline-block",
|
|
2060
1815
|
verticalAlign: "middle",
|
|
2061
1816
|
width: `${h}px`,
|
|
2062
1817
|
marginInline: `${l}px`
|
|
2063
|
-
}) :
|
|
1818
|
+
}) : k.merge({
|
|
2064
1819
|
height: `${h}px`,
|
|
2065
1820
|
marginBlock: `${l}px`
|
|
2066
1821
|
}), o !== "none") {
|
|
2067
|
-
const
|
|
2068
|
-
|
|
1822
|
+
const M = o === "left" || o === "top" || o === "middle", A = o === "right" || o === "bottom" || o === "middle";
|
|
1823
|
+
M && (m ? k.set("marginBlockStart", `${u}px`) : k.set("marginInlineStart", `${u}px`)), A && (m ? k.set("marginBlockEnd", `${u}px`) : k.set("marginInlineEnd", `${u}px`));
|
|
2069
1824
|
}
|
|
2070
|
-
return /* @__PURE__ */
|
|
1825
|
+
return /* @__PURE__ */ i(
|
|
2071
1826
|
"div",
|
|
2072
1827
|
{
|
|
2073
1828
|
"aria-hidden": "true",
|
|
2074
|
-
className:
|
|
2075
|
-
ref:
|
|
1829
|
+
className: $,
|
|
1830
|
+
ref: w,
|
|
2076
1831
|
role: "separator",
|
|
2077
|
-
style:
|
|
1832
|
+
style: k.get(),
|
|
2078
1833
|
...g
|
|
2079
1834
|
}
|
|
2080
1835
|
);
|
|
2081
1836
|
};
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
const
|
|
1837
|
+
hn[vn] = !0;
|
|
1838
|
+
hn.displayName = "Divider";
|
|
1839
|
+
const ai = P((e, n) => /* @__PURE__ */ i(at, { ref: n, ...e, type: "number", className: "UINumberInput" })), ir = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "2 2 20 20", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
|
|
2085
1840
|
"path",
|
|
2086
1841
|
{
|
|
2087
1842
|
d: "M12 17C13.3833 17 14.5625 16.5125 15.5375 15.5375C16.5125 14.5625 17 13.3833 17 12C17 10.6167 16.5125 9.4375 15.5375 8.4625C14.5625 7.4875 13.3833 7 12 7C10.6167 7 9.4375 7.4875 8.4625 8.4625C7.4875 9.4375 7 10.6167 7 12C7 13.3833 7.4875 14.5625 8.4625 15.5375C9.4375 16.5125 10.6167 17 12 17Z",
|
|
2088
1843
|
fill: "currentColor"
|
|
2089
1844
|
}
|
|
2090
|
-
) }),
|
|
1845
|
+
) }), or = P(
|
|
2091
1846
|
({
|
|
2092
1847
|
uncheckedBorder: e,
|
|
2093
|
-
border:
|
|
2094
|
-
color:
|
|
2095
|
-
borderColor:
|
|
1848
|
+
border: n,
|
|
1849
|
+
color: t,
|
|
1850
|
+
borderColor: r,
|
|
2096
1851
|
uncheckedBorderColor: s,
|
|
2097
1852
|
shape: o = "round",
|
|
2098
1853
|
size: u = "small",
|
|
@@ -2102,98 +1857,277 @@ const ui = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "number", cla
|
|
|
2102
1857
|
animation: c,
|
|
2103
1858
|
...a
|
|
2104
1859
|
}, f) => {
|
|
2105
|
-
const
|
|
2106
|
-
return /* @__PURE__ */
|
|
1860
|
+
const x = t ?? "primary";
|
|
1861
|
+
return /* @__PURE__ */ i(
|
|
2107
1862
|
_t,
|
|
2108
1863
|
{
|
|
2109
1864
|
animation: c ?? "scale",
|
|
2110
|
-
border: !m &&
|
|
2111
|
-
borderColor:
|
|
2112
|
-
color:
|
|
1865
|
+
border: !m && n === void 0 ? 2 : n,
|
|
1866
|
+
borderColor: r ?? x,
|
|
1867
|
+
color: x,
|
|
2113
1868
|
elementClass: "uui-radio",
|
|
2114
1869
|
filled: l,
|
|
2115
|
-
icon: m ??
|
|
1870
|
+
icon: m ?? ir,
|
|
2116
1871
|
indeterminateIcon: void 0,
|
|
2117
1872
|
ref: f,
|
|
2118
1873
|
shape: o,
|
|
2119
1874
|
size: u,
|
|
2120
1875
|
type: "radio",
|
|
2121
|
-
uncheckedBorder: e ??
|
|
2122
|
-
uncheckedBorderColor: s ??
|
|
1876
|
+
uncheckedBorder: e ?? n ?? (p ? void 0 : 2),
|
|
1877
|
+
uncheckedBorderColor: s ?? r ?? "onSurfaceVariant",
|
|
2123
1878
|
uncheckedIcon: p,
|
|
2124
1879
|
...a
|
|
2125
1880
|
}
|
|
2126
1881
|
);
|
|
2127
1882
|
}
|
|
2128
1883
|
);
|
|
2129
|
-
|
|
2130
|
-
const
|
|
2131
|
-
|
|
1884
|
+
or.displayName = "Radio";
|
|
1885
|
+
const ui = P((e, n) => /* @__PURE__ */ i(at, { ref: n, ...e, type: "tel", className: "UITelInput" }));
|
|
1886
|
+
function sr(e) {
|
|
1887
|
+
const n = Dt(), [t, r] = ee(!1);
|
|
1888
|
+
return ye(() => {
|
|
1889
|
+
const s = e.current;
|
|
1890
|
+
if (!s)
|
|
1891
|
+
return;
|
|
1892
|
+
const o = () => {
|
|
1893
|
+
r(!0);
|
|
1894
|
+
}, u = () => {
|
|
1895
|
+
r(!1);
|
|
1896
|
+
};
|
|
1897
|
+
return s.addEventListener("focus", o, !0), s.addEventListener("blur", u, !0), () => {
|
|
1898
|
+
s.removeEventListener("focus", o, !0), s.removeEventListener("blur", u, !0);
|
|
1899
|
+
};
|
|
1900
|
+
}, [e]), {
|
|
1901
|
+
isFocused: t,
|
|
1902
|
+
focusVisible: n
|
|
1903
|
+
};
|
|
1904
|
+
}
|
|
1905
|
+
const at = P((e, n) => {
|
|
1906
|
+
const {
|
|
1907
|
+
elementClass: t,
|
|
1908
|
+
color: r,
|
|
1909
|
+
density: s,
|
|
1910
|
+
label: o,
|
|
1911
|
+
labelColor: u,
|
|
1912
|
+
labelFont: l,
|
|
1913
|
+
id: m,
|
|
1914
|
+
outlined: p,
|
|
1915
|
+
filled: c,
|
|
1916
|
+
classic: a,
|
|
1917
|
+
disabled: f,
|
|
1918
|
+
font: x,
|
|
1919
|
+
placeholderFont: g,
|
|
1920
|
+
placeholderColor: w,
|
|
1921
|
+
border: F,
|
|
1922
|
+
borderColor: b,
|
|
1923
|
+
shape: h,
|
|
1924
|
+
required: $,
|
|
1925
|
+
title: k,
|
|
1926
|
+
description: S,
|
|
1927
|
+
descriptionColor: M,
|
|
1928
|
+
descriptionFont: A,
|
|
1929
|
+
name: q,
|
|
1930
|
+
error: E,
|
|
1931
|
+
className: I,
|
|
1932
|
+
placeholder: y,
|
|
1933
|
+
type: C = "text",
|
|
1934
|
+
icon: v,
|
|
1935
|
+
leading: N,
|
|
1936
|
+
trailing: Z,
|
|
1937
|
+
endIcon: U,
|
|
1938
|
+
variant: X,
|
|
1939
|
+
value: we,
|
|
1940
|
+
textColor: he,
|
|
1941
|
+
defaultValue: K,
|
|
1942
|
+
...Me
|
|
1943
|
+
} = e, [De, V] = ee(K ?? ""), O = we !== void 0, fe = (O ? we : De).length === 0, de = ce(null), D = ce(null), Ve = m ?? $t("input"), [ke, z] = ee(0), te = N ?? v, W = X ?? (c && "filled") ?? (p && "outlined") ?? (a && "classic") ?? "filled", { isFocused: ie } = sr(de), We = (H) => {
|
|
1944
|
+
var ae;
|
|
1945
|
+
O || V(H.target.value), (ae = e.onChange) == null || ae.call(e, H);
|
|
1946
|
+
}, oe = (H) => {
|
|
1947
|
+
var ae;
|
|
1948
|
+
H.preventDefault(), (ae = de.current) == null || ae.focus();
|
|
1949
|
+
};
|
|
1950
|
+
ye(() => {
|
|
1951
|
+
const H = de.current;
|
|
1952
|
+
H && H.value && V(H.value);
|
|
1953
|
+
}, []), ln(() => {
|
|
1954
|
+
const H = D.current, ae = de.current;
|
|
1955
|
+
if (!H || !ae)
|
|
1956
|
+
return;
|
|
1957
|
+
const je = H.getBoundingClientRect().left - ae.getBoundingClientRect().left + 16;
|
|
1958
|
+
z((Ae) => Ae === je ? Ae : je);
|
|
1959
|
+
}, [te]);
|
|
1960
|
+
const ne = [
|
|
1961
|
+
t,
|
|
1962
|
+
I,
|
|
1963
|
+
"uui-field uui-field-wrapper",
|
|
1964
|
+
`uui-${W}`,
|
|
1965
|
+
dt(s)
|
|
1966
|
+
], ve = te && /* @__PURE__ */ i("div", { className: "uui-leading", children: lt.Children.map(
|
|
1967
|
+
te,
|
|
1968
|
+
(H) => H ? /* @__PURE__ */ i(
|
|
1969
|
+
"span",
|
|
1970
|
+
{
|
|
1971
|
+
className: "uui-slot",
|
|
1972
|
+
onClick: (ae) => {
|
|
1973
|
+
ae.stopPropagation();
|
|
1974
|
+
},
|
|
1975
|
+
children: H
|
|
1976
|
+
}
|
|
1977
|
+
) : null
|
|
1978
|
+
) }), He = Z ?? U, _ = He && /* @__PURE__ */ i("div", { className: "uui-trailing", children: lt.Children.map(
|
|
1979
|
+
He,
|
|
1980
|
+
(H) => H ? /* @__PURE__ */ i(
|
|
1981
|
+
"span",
|
|
1982
|
+
{
|
|
1983
|
+
className: "uui-slot",
|
|
1984
|
+
onClick: (ae) => {
|
|
1985
|
+
ae.stopPropagation();
|
|
1986
|
+
},
|
|
1987
|
+
children: H
|
|
1988
|
+
}
|
|
1989
|
+
) : null
|
|
1990
|
+
) }), me = o && /* @__PURE__ */ j(tt, { children: [
|
|
1991
|
+
o,
|
|
1992
|
+
$ && /* @__PURE__ */ i("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
|
|
1993
|
+
] }), Ee = F ?? (W !== "filled" ? 1 : void 0), Re = [
|
|
1994
|
+
"uui-field-control",
|
|
1995
|
+
Ie(x ?? "bodyLarge"),
|
|
1996
|
+
Ue(h ?? "rounded"),
|
|
1997
|
+
W !== "outlined" && nt(Ee),
|
|
1998
|
+
E && "uui-error",
|
|
1999
|
+
ie && "uui-active",
|
|
2000
|
+
f && "uui-disabled",
|
|
2001
|
+
ve && "uui-has-leading",
|
|
2002
|
+
_ && "uui-has-trailing"
|
|
2003
|
+
];
|
|
2004
|
+
let se, Se, Ce, Fe;
|
|
2005
|
+
const $e = T(), pe = ["uui-fb-label"];
|
|
2006
|
+
if (me)
|
|
2007
|
+
if (W !== "classic")
|
|
2008
|
+
ie || !fe ? ($e.text((E ? "error" : void 0) ?? r ?? "primary"), pe.push(Ie(l ?? "bodySmall")), Re.push("uui-fb-label-up")) : ($e.text((E ? "error" : void 0) ?? "onSurfaceVariant"), pe.push(Ie(x ?? "bodyLarge"))), pe.push("uui-field-float-label"), W === "outlined" ? (Ce = /* @__PURE__ */ i("legend", { className: Ie(l ?? "bodySmall"), children: me }), se = /* @__PURE__ */ i("span", { className: pe.join(" "), children: me })) : (Se = /* @__PURE__ */ i("span", { className: Ie(l ?? "bodySmall"), children: " " }), se = /* @__PURE__ */ i("span", { className: pe.join(" "), children: me }));
|
|
2009
|
+
else {
|
|
2010
|
+
$e.text((E ? "error" : void 0) ?? "onSurface"), pe.push(Ie(l ?? "bodyMedium"));
|
|
2011
|
+
const H = pe.filter(Boolean).join(" ");
|
|
2012
|
+
Fe = /* @__PURE__ */ i("label", { className: H, htmlFor: Ve, style: $e.get(), children: me });
|
|
2013
|
+
}
|
|
2014
|
+
let qe;
|
|
2015
|
+
if (W === "outlined") {
|
|
2016
|
+
const H = ["uui-field-fieldset", Ue(h ?? "rounded")].filter(Boolean).join(" "), ae = T(), je = un(0, 4, F, 1);
|
|
2017
|
+
ae.set("borderWidth", `${je}px`), ae.border(b ?? "onSurfaceVariant"), qe = /* @__PURE__ */ i("fieldset", { className: H, style: ae.get(), children: Ce });
|
|
2018
|
+
}
|
|
2019
|
+
const ge = T();
|
|
2020
|
+
ge.set("--uui-label-up-x", `${ke}px`), W === "classic" && ge.border(b ?? "outline"), W === "filled" && ge.border(b ?? "onSurfaceVariant");
|
|
2021
|
+
const Le = ["uui-field-state"].filter(Boolean).join(" "), Be = T(), Ze = T();
|
|
2022
|
+
E ? Ze.text("error") : M ? Ze.text(M) : Ze.text.on("surfaceVariant");
|
|
2023
|
+
const le = [
|
|
2024
|
+
Ie(A ?? "bodySmall"),
|
|
2025
|
+
E && "uui-error uui-support-text",
|
|
2026
|
+
S && !E && "uui-description uui-support-text"
|
|
2027
|
+
].filter(Boolean).join(" "), L = (S ?? E) && /* @__PURE__ */ i("div", { className: le, style: Ze.get(), children: E ?? S }), Y = "uui-field-input", Te = T();
|
|
2028
|
+
Te.text("onSurface"), !ie && se && fe && Te.set("opacity", 0);
|
|
2029
|
+
const G = ["uui-field-input-wrapper"].filter(Boolean).join(" "), Je = ne.filter(Boolean).join(" "), _e = Re.filter(Boolean).join(" ");
|
|
2030
|
+
return /* @__PURE__ */ j("div", { className: Je, title: k, children: [
|
|
2031
|
+
Fe,
|
|
2032
|
+
/* @__PURE__ */ j("div", { className: _e, onPointerDown: oe, ref: D, style: ge.get(), children: [
|
|
2033
|
+
ve,
|
|
2034
|
+
/* @__PURE__ */ j("div", { className: G, children: [
|
|
2035
|
+
Se,
|
|
2036
|
+
se,
|
|
2037
|
+
/* @__PURE__ */ i(
|
|
2038
|
+
"input",
|
|
2039
|
+
{
|
|
2040
|
+
...Me,
|
|
2041
|
+
...O ? { value: we } : { defaultValue: K },
|
|
2042
|
+
"aria-invalid": !!E,
|
|
2043
|
+
autoComplete: "email",
|
|
2044
|
+
className: Y,
|
|
2045
|
+
disabled: f,
|
|
2046
|
+
id: Ve,
|
|
2047
|
+
name: q,
|
|
2048
|
+
onChange: We,
|
|
2049
|
+
placeholder: y,
|
|
2050
|
+
ref: ft(n, de),
|
|
2051
|
+
style: Te.get(),
|
|
2052
|
+
type: C
|
|
2053
|
+
}
|
|
2054
|
+
)
|
|
2055
|
+
] }),
|
|
2056
|
+
_,
|
|
2057
|
+
W === "filled" && /* @__PURE__ */ i("div", { className: Le, style: Be.get() }),
|
|
2058
|
+
qe
|
|
2059
|
+
] }),
|
|
2060
|
+
L
|
|
2061
|
+
] });
|
|
2062
|
+
});
|
|
2063
|
+
at.displayName = "FieldBase";
|
|
2064
|
+
const lr = P(({ ...e }, n) => /* @__PURE__ */ i(at, { ref: n, ...e, elementClass: "uui-field" }));
|
|
2065
|
+
lr.displayName = "Field";
|
|
2132
2066
|
const on = {
|
|
2133
2067
|
darkMode: !1,
|
|
2134
2068
|
schemes: { light: {}, dark: {} }
|
|
2135
|
-
},
|
|
2136
|
-
function
|
|
2137
|
-
var c, a, f,
|
|
2138
|
-
const
|
|
2069
|
+
}, Cn = xt(null);
|
|
2070
|
+
function ar(e = "#6750A4", n, t = {}) {
|
|
2071
|
+
var c, a, f, x, g, w, F, b, h, $, k, S, M, A, q, E, I;
|
|
2072
|
+
const r = { light: {}, dark: {} }, s = (c = t.light) != null && c.primary ? bt(t.light.primary) : bt(e), o = {
|
|
2139
2073
|
info: "#03a9f4",
|
|
2140
2074
|
warning: "#ffd600",
|
|
2141
2075
|
success: "#689f38",
|
|
2142
|
-
...
|
|
2076
|
+
...n
|
|
2143
2077
|
}, u = [];
|
|
2144
|
-
Object.keys(o).forEach((
|
|
2145
|
-
var
|
|
2146
|
-
const
|
|
2147
|
-
|
|
2148
|
-
value: bt(o[
|
|
2149
|
-
name:
|
|
2078
|
+
Object.keys(o).forEach((y) => {
|
|
2079
|
+
var v;
|
|
2080
|
+
const C = (v = t.light) == null ? void 0 : v[y];
|
|
2081
|
+
C ? u.push({ value: bt(C), name: y, blend: !0 }) : u.push({
|
|
2082
|
+
value: bt(o[y]),
|
|
2083
|
+
name: y,
|
|
2150
2084
|
blend: !0
|
|
2151
2085
|
});
|
|
2152
|
-
}), ["secondary", "tertiary", "error"].forEach((
|
|
2153
|
-
var
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2086
|
+
}), ["secondary", "tertiary", "error"].forEach((y) => {
|
|
2087
|
+
var v;
|
|
2088
|
+
const C = (v = t.light) == null ? void 0 : v[y];
|
|
2089
|
+
C && u.push({ value: bt(C), name: y, blend: !0 });
|
|
2156
2090
|
});
|
|
2157
|
-
const l =
|
|
2158
|
-
["light", "dark"].forEach((
|
|
2159
|
-
const
|
|
2160
|
-
|
|
2161
|
-
var
|
|
2162
|
-
(
|
|
2163
|
-
l.schemes[
|
|
2091
|
+
const l = Fn(s, u);
|
|
2092
|
+
["light", "dark"].forEach((y) => {
|
|
2093
|
+
const C = y;
|
|
2094
|
+
fn.forEach((v) => {
|
|
2095
|
+
var N;
|
|
2096
|
+
(N = t[C]) != null && N[v] ? r[C][v] = t[C][v] : typeof l.schemes[C][v] == "number" && (r[C][v] = be(
|
|
2097
|
+
l.schemes[C][v]
|
|
2164
2098
|
));
|
|
2165
2099
|
});
|
|
2166
|
-
}),
|
|
2167
|
-
const
|
|
2168
|
-
color:
|
|
2169
|
-
onColor: `on${
|
|
2170
|
-
colorContainer: `${
|
|
2171
|
-
onColorContainer: `on${
|
|
2100
|
+
}), r.light.scrim = "#00000052", r.dark.scrim = "#00000052", l.customColors.forEach((y) => {
|
|
2101
|
+
const C = y.color.name[0].toUpperCase() + y.color.name.slice(1), v = {
|
|
2102
|
+
color: y.color.name,
|
|
2103
|
+
onColor: `on${C}`,
|
|
2104
|
+
colorContainer: `${y.color.name}Container`,
|
|
2105
|
+
onColorContainer: `on${C}Container`
|
|
2172
2106
|
};
|
|
2173
|
-
["light", "dark"].forEach((
|
|
2174
|
-
const Z =
|
|
2175
|
-
Object.keys(
|
|
2107
|
+
["light", "dark"].forEach((N) => {
|
|
2108
|
+
const Z = N;
|
|
2109
|
+
Object.keys(v).forEach((U) => {
|
|
2176
2110
|
var X;
|
|
2177
|
-
|
|
2111
|
+
r[N][v[U]] = ((X = t[N]) == null ? void 0 : X[v[U]]) ?? be(y[Z][U]);
|
|
2178
2112
|
});
|
|
2179
2113
|
});
|
|
2180
|
-
}), ["primary", "secondary", "tertiary", "error"].forEach((
|
|
2181
|
-
const
|
|
2182
|
-
["light", "dark"].forEach((
|
|
2183
|
-
var
|
|
2184
|
-
|
|
2114
|
+
}), ["primary", "secondary", "tertiary", "error"].forEach((y) => {
|
|
2115
|
+
const C = y[0].toUpperCase() + y.slice(1);
|
|
2116
|
+
["light", "dark"].forEach((v) => {
|
|
2117
|
+
var N, Z, U, X;
|
|
2118
|
+
r[v][`${y}Fixed`] = (N = t[v]) != null && N[`${y}Fixed`] ? t[v][`${y}Fixed`] : be(l.palettes[y].tone(90)), r[v][`${y}FixedDim`] = (Z = t[v]) != null && Z[`${y}FixedDim`] ? t[v][`${y}FixedDim`] : be(l.palettes[y].tone(80)), r[v][`on${C}Fixed`] = (U = t[v]) != null && U[`on${C}Fixed`] ? t[v][`on${C}Fixed`] : be(l.palettes[y].tone(10)), r[v][`on${C}FixedVariant`] = (X = t[v]) != null && X[`on${C}FixedVariant`] ? t[v][`on${C}FixedVariant`] : be(l.palettes[y].tone(30));
|
|
2185
2119
|
});
|
|
2186
2120
|
});
|
|
2187
|
-
const m = (
|
|
2188
|
-
const
|
|
2189
|
-
return
|
|
2121
|
+
const m = (y, C) => {
|
|
2122
|
+
const v = Ln.fromInt(y);
|
|
2123
|
+
return be(v.tone(C));
|
|
2190
2124
|
};
|
|
2191
|
-
l.customColors.forEach((
|
|
2192
|
-
const
|
|
2193
|
-
["light", "dark"].forEach((
|
|
2125
|
+
l.customColors.forEach((y) => {
|
|
2126
|
+
const C = y.color.name, v = C[0].toUpperCase() + C.slice(1);
|
|
2127
|
+
["light", "dark"].forEach((N) => {
|
|
2194
2128
|
var U, X, we, he;
|
|
2195
|
-
const Z =
|
|
2196
|
-
|
|
2129
|
+
const Z = y[N].color;
|
|
2130
|
+
r[N][`${C}Fixed`] = (U = t[N]) != null && U[`${C}Fixed`] ? t[N][`${C}Fixed`] : m(Z, 90), r[N][`${C}FixedDim`] = (X = t[N]) != null && X[`${C}FixedDim`] ? t[N][`${C}FixedDim`] : m(Z, 80), r[N][`on${v}Fixed`] = (we = t[N]) != null && we[`on${v}Fixed`] ? t[N][`on${v}Fixed`] : m(Z, 10), r[N][`on${v}FixedVariant`] = (he = t[N]) != null && he[`on${v}FixedVariant`] ? t[N][`on${v}FixedVariant`] : m(Z, 30);
|
|
2197
2131
|
});
|
|
2198
2132
|
});
|
|
2199
2133
|
const p = {
|
|
@@ -2202,44 +2136,44 @@ function cr(e = "#6750A4", t, n = {}) {
|
|
|
2202
2136
|
white: "#ffffff",
|
|
2203
2137
|
onWhite: "#000000"
|
|
2204
2138
|
};
|
|
2205
|
-
return Object.assign(
|
|
2139
|
+
return Object.assign(r.light, p), Object.assign(r.dark, p), r.light.surface = ((a = t.light) == null ? void 0 : a.surface) ?? be(l.palettes.neutral.tone(99)), r.light.surfaceDim = ((f = t.light) == null ? void 0 : f.surfaceDim) ?? be(l.palettes.neutral.tone(87)), r.light.surfaceBright = ((x = t.light) == null ? void 0 : x.surfaceBright) ?? be(l.palettes.neutral.tone(99)), r.light.surfaceContainerLowest = ((g = t.light) == null ? void 0 : g.surfaceContainerLowest) ?? be(l.palettes.neutral.tone(100)), r.light.surfaceContainerLow = ((w = t.light) == null ? void 0 : w.surfaceContainerLow) ?? be(l.palettes.neutral.tone(96)), r.light.surfaceContainer = ((F = t.light) == null ? void 0 : F.surfaceContainer) ?? be(l.palettes.neutral.tone(94)), r.light.surfaceContainerHigh = ((b = t.light) == null ? void 0 : b.surfaceContainerHigh) ?? be(l.palettes.neutral.tone(92)), r.light.surfaceContainerHighest = ((h = t.light) == null ? void 0 : h.surfaceContainerHighest) ?? be(l.palettes.neutral.tone(90)), r.dark.surface = (($ = t.dark) == null ? void 0 : $.surface) ?? be(l.palettes.neutral.tone(6)), r.dark.surfaceDim = ((k = t.dark) == null ? void 0 : k.surfaceDim) ?? be(l.palettes.neutral.tone(6)), r.dark.surfaceBright = ((S = t.dark) == null ? void 0 : S.surfaceBright) ?? be(l.palettes.neutral.tone(24)), r.dark.surfaceContainerLowest = ((M = t.dark) == null ? void 0 : M.surfaceContainerLowest) ?? be(l.palettes.neutral.tone(4)), r.dark.surfaceContainerLow = ((A = t.dark) == null ? void 0 : A.surfaceContainerLow) ?? be(l.palettes.neutral.tone(10)), r.dark.surfaceContainer = ((q = t.dark) == null ? void 0 : q.surfaceContainer) ?? be(l.palettes.neutral.tone(12)), r.dark.surfaceContainerHigh = ((E = t.dark) == null ? void 0 : E.surfaceContainerHigh) ?? be(l.palettes.neutral.tone(17)), r.dark.surfaceContainerHighest = ((I = t.dark) == null ? void 0 : I.surfaceContainerHighest) ?? be(l.palettes.neutral.tone(22)), r.light.surfaceTint = be(l.palettes.primary.tone(40)), r.dark.surfaceTint = be(l.palettes.primary.tone(80)), r;
|
|
2206
2140
|
}
|
|
2207
|
-
function
|
|
2208
|
-
const
|
|
2209
|
-
let s = document.getElementById(
|
|
2210
|
-
s || (s = document.createElement("style"), s.id =
|
|
2211
|
-
const o =
|
|
2141
|
+
function ur(e = "#6750A4", n, t = {}) {
|
|
2142
|
+
const r = "ufo-ui-theme";
|
|
2143
|
+
let s = document.getElementById(r);
|
|
2144
|
+
s || (s = document.createElement("style"), s.id = r, document.head.appendChild(s));
|
|
2145
|
+
const o = ar(e, n, t), u = [
|
|
2212
2146
|
...Object.entries(o.light).map(
|
|
2213
2147
|
([m, p]) => `--uui-color-${nn(m)}: ${p};`
|
|
2214
2148
|
)
|
|
2215
2149
|
].join(""), l = Object.entries(o.dark).map(([m, p]) => `--uui-color-${nn(m)}: ${p};`).join("");
|
|
2216
2150
|
return s.textContent = `:root{${u}}.dark{${l}}`, o;
|
|
2217
2151
|
}
|
|
2218
|
-
const
|
|
2219
|
-
const [s, o] = ee(on), u =
|
|
2152
|
+
const ci = ({ children: e, colorMode: n, seedColor: t, extraColors: r }) => {
|
|
2153
|
+
const [s, o] = ee(on), u = yt(
|
|
2220
2154
|
(c) => {
|
|
2221
2155
|
c ? document.body.classList.add("dark") : document.body.classList.remove("dark"), o((a) => ({ ...a, darkMode: c }));
|
|
2222
2156
|
},
|
|
2223
2157
|
[o]
|
|
2224
|
-
), l =
|
|
2158
|
+
), l = yt(
|
|
2225
2159
|
(c) => (s.darkMode ? s.schemes.dark : s.schemes.light)[c] ?? "",
|
|
2226
2160
|
[s]
|
|
2227
|
-
), m =
|
|
2161
|
+
), m = yt(
|
|
2228
2162
|
(c, a) => s.schemes[c][a] ?? "",
|
|
2229
2163
|
[s]
|
|
2230
2164
|
);
|
|
2231
|
-
|
|
2232
|
-
if (
|
|
2233
|
-
const c =
|
|
2165
|
+
ye(() => {
|
|
2166
|
+
if (n) {
|
|
2167
|
+
const c = n === "dark";
|
|
2234
2168
|
document.body.classList.toggle("dark", c), o((a) => ({ ...a, darkMode: c }));
|
|
2235
2169
|
}
|
|
2236
|
-
}, [
|
|
2170
|
+
}, [n]), ye(() => {
|
|
2237
2171
|
const { schemes: c } = on;
|
|
2238
2172
|
o((a) => ({
|
|
2239
2173
|
darkMode: a.darkMode,
|
|
2240
|
-
schemes:
|
|
2174
|
+
schemes: ur(t, r, c)
|
|
2241
2175
|
}));
|
|
2242
|
-
}, [
|
|
2176
|
+
}, [r, t]);
|
|
2243
2177
|
const p = an(
|
|
2244
2178
|
() => ({
|
|
2245
2179
|
theme: s,
|
|
@@ -2251,21 +2185,21 @@ const di = ({ children: e, colorMode: t, seedColor: n, extraColors: i }) => {
|
|
|
2251
2185
|
}),
|
|
2252
2186
|
[l, m, u, s]
|
|
2253
2187
|
);
|
|
2254
|
-
return /* @__PURE__ */
|
|
2255
|
-
},
|
|
2256
|
-
({ children: e, className:
|
|
2188
|
+
return /* @__PURE__ */ i(Cn.Provider, { value: p, children: e });
|
|
2189
|
+
}, di = P((e, n) => /* @__PURE__ */ i(at, { ref: n, ...e, type: "time", className: "UITimeInput" })), cr = P(
|
|
2190
|
+
({ children: e, className: n = "", title: t = "", align: r = "topRight", value: s, ...o }, u) => {
|
|
2257
2191
|
const l = ce(null);
|
|
2258
|
-
return /* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
2260
|
-
/* @__PURE__ */
|
|
2192
|
+
return /* @__PURE__ */ j("span", { className: "uui-tooltip", ref: u, ...o, children: [
|
|
2193
|
+
/* @__PURE__ */ i(kt, { align: r, tooltip: /* @__PURE__ */ i("div", { children: t }), triggerRef: l }),
|
|
2194
|
+
/* @__PURE__ */ i("div", { ref: l, children: e })
|
|
2261
2195
|
] });
|
|
2262
2196
|
}
|
|
2263
2197
|
);
|
|
2264
|
-
|
|
2265
|
-
const
|
|
2198
|
+
cr.displayName = "Tooltip";
|
|
2199
|
+
const fi = P((e, n) => /* @__PURE__ */ i(at, { ref: n, ...e, type: "url", className: "UIUrlInput" })), Ye = P((e, n) => {
|
|
2266
2200
|
const {
|
|
2267
|
-
type:
|
|
2268
|
-
inline:
|
|
2201
|
+
type: t = "flex",
|
|
2202
|
+
inline: r = !1,
|
|
2269
2203
|
color: s,
|
|
2270
2204
|
elevation: o,
|
|
2271
2205
|
shape: u,
|
|
@@ -2275,24 +2209,24 @@ const mi = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "url", classN
|
|
|
2275
2209
|
borderColor: c,
|
|
2276
2210
|
elementClass: a,
|
|
2277
2211
|
children: f,
|
|
2278
|
-
className:
|
|
2212
|
+
className: x,
|
|
2279
2213
|
style: g,
|
|
2280
|
-
fullWidth:
|
|
2281
|
-
grow:
|
|
2282
|
-
p:
|
|
2214
|
+
fullWidth: w,
|
|
2215
|
+
grow: F,
|
|
2216
|
+
p: b,
|
|
2283
2217
|
px: h,
|
|
2284
|
-
py:
|
|
2285
|
-
pt:
|
|
2286
|
-
pb:
|
|
2287
|
-
pl:
|
|
2288
|
-
pr:
|
|
2218
|
+
py: $,
|
|
2219
|
+
pt: k,
|
|
2220
|
+
pb: S,
|
|
2221
|
+
pl: M,
|
|
2222
|
+
pr: A,
|
|
2289
2223
|
gap: q,
|
|
2290
|
-
gapX:
|
|
2291
|
-
gapY:
|
|
2292
|
-
justifyContent:
|
|
2293
|
-
alignItems:
|
|
2294
|
-
placeItems:
|
|
2295
|
-
alignContent:
|
|
2224
|
+
gapX: E,
|
|
2225
|
+
gapY: I,
|
|
2226
|
+
justifyContent: y,
|
|
2227
|
+
alignItems: C,
|
|
2228
|
+
placeItems: v,
|
|
2229
|
+
alignContent: N,
|
|
2296
2230
|
wrap: Z,
|
|
2297
2231
|
cols: U,
|
|
2298
2232
|
rows: X,
|
|
@@ -2300,75 +2234,75 @@ const mi = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "url", classN
|
|
|
2300
2234
|
row: he,
|
|
2301
2235
|
col: K,
|
|
2302
2236
|
...Me
|
|
2303
|
-
} = e, De = we ?? "div",
|
|
2304
|
-
l && +l > 0 &&
|
|
2305
|
-
const
|
|
2306
|
-
|
|
2237
|
+
} = e, De = we ?? "div", V = T(g);
|
|
2238
|
+
l && +l > 0 && V.border(mt(c)), V.bg(s), V.text.on(s);
|
|
2239
|
+
const O = [];
|
|
2240
|
+
t === "flex" ? O.push(r ? "uui-flex-inline" : "uui-flex") : t === "grid" ? O.push(r ? "uui-grid-inline" : "uui-grid") : O.push(r ? "uui-inline-block" : "uui-block"), w && O.push("uui-full"), F && O.push("uui-grow"), b !== void 0 && V.set("padding", b), h !== void 0 && (V.set("paddingLeft", h), V.set("paddingRight", h)), $ !== void 0 && (V.set("paddingTop", $), V.set("paddingBottom", $)), k !== void 0 && V.set("paddingTop", k), S !== void 0 && V.set("paddingBottom", S), M !== void 0 && V.set("paddingLeft", M), A !== void 0 && V.set("paddingRight", A), q !== void 0 && V.set("gap", q), E !== void 0 && V.set("columnGap", E), I !== void 0 && V.set("rowGap", I), y !== void 0 && V.set("justifyContent", y), C !== void 0 && V.set("alignItems", C), v !== void 0 && V.set("placeItems", v), N !== void 0 && V.set("alignContent", N), Z && V.set("flexWrap", "wrap"), t === "grid" && (U !== void 0 && V.set("gridTemplateColumns", typeof U == "number" ? `repeat(${U}, 1fr)` : U), X !== void 0 && V.set("gridTemplateRows", typeof X == "number" ? `repeat(${X}, 1fr)` : X));
|
|
2307
2241
|
const Q = (he ? "row" : void 0) ?? (K ? "col" : void 0) ?? m;
|
|
2308
2242
|
let fe = "";
|
|
2309
|
-
Q &&
|
|
2243
|
+
Q && t === "flex" && (fe = Q === "col" ? "uui-flex-col" : "uui-flex-row");
|
|
2310
2244
|
let de = "";
|
|
2311
|
-
p &&
|
|
2312
|
-
const
|
|
2245
|
+
p && t === "grid" && (de = p === "col" ? "uui-grid-flow-col" : "uui-grid-flow-row");
|
|
2246
|
+
const D = [
|
|
2313
2247
|
"uui-box",
|
|
2314
2248
|
a,
|
|
2315
|
-
...
|
|
2316
|
-
...u ? [
|
|
2317
|
-
...o !== void 0 ? [
|
|
2318
|
-
...l !== void 0 ? [
|
|
2249
|
+
...O,
|
|
2250
|
+
...u ? [Ue(u)] : [],
|
|
2251
|
+
...o !== void 0 ? [ut(o)] : [],
|
|
2252
|
+
...l !== void 0 ? [nt(l)] : [],
|
|
2319
2253
|
fe,
|
|
2320
2254
|
de,
|
|
2321
|
-
|
|
2255
|
+
x
|
|
2322
2256
|
].filter(Boolean).join(" ");
|
|
2323
|
-
return /* @__PURE__ */
|
|
2257
|
+
return /* @__PURE__ */ i(De, { className: D, ref: n, ...Me, style: V.get(), children: f });
|
|
2324
2258
|
});
|
|
2325
|
-
|
|
2326
|
-
const
|
|
2327
|
-
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2330
|
-
const
|
|
2331
|
-
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2334
|
-
const
|
|
2335
|
-
|
|
2336
|
-
const
|
|
2337
|
-
|
|
2338
|
-
const
|
|
2339
|
-
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2344
|
-
const
|
|
2345
|
-
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2348
|
-
function
|
|
2349
|
-
|
|
2259
|
+
Ye.displayName = "BoxBase";
|
|
2260
|
+
const dr = P(({ direction: e = "row", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, component: "header", direction: e, elementClass: "uui-header" }));
|
|
2261
|
+
dr.displayName = "Header";
|
|
2262
|
+
const fr = P(({ direction: e = "row", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, component: "footer", direction: e, elementClass: "uui-footer" }));
|
|
2263
|
+
fr.displayName = "Footer";
|
|
2264
|
+
const mr = P(({ direction: e = "col", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, component: "main", direction: e, elementClass: "uui-main" }));
|
|
2265
|
+
mr.displayName = "Main";
|
|
2266
|
+
const pr = P(({ direction: e = "col", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, component: "article", direction: e, elementClass: "uui-article" }));
|
|
2267
|
+
pr.displayName = "Article";
|
|
2268
|
+
const gr = P(({ direction: e = "col", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, direction: e, elementClass: "uui-article-content" }));
|
|
2269
|
+
gr.displayName = "Content";
|
|
2270
|
+
const hr = P(({ direction: e = "col", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, component: "section", direction: e, elementClass: "uui-section" }));
|
|
2271
|
+
hr.displayName = "Section";
|
|
2272
|
+
const Cr = P(({ direction: e = "col", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, component: "aside", direction: e, elementClass: "uui-aside" }));
|
|
2273
|
+
Cr.displayName = "Aside";
|
|
2274
|
+
const br = P(({ direction: e = "row", ...n }, t) => /* @__PURE__ */ i(Ye, { ref: t, ...n, component: "nav", direction: e, elementClass: "uui-nav" }));
|
|
2275
|
+
br.displayName = "Nav";
|
|
2276
|
+
const yr = P(({ direction: e = "row", ...n }, t) => /* @__PURE__ */ i(Ye, { ...n, direction: e, ref: t, type: "flex" }));
|
|
2277
|
+
yr.displayName = "Flex";
|
|
2278
|
+
const vr = P((e, n) => /* @__PURE__ */ i(Ye, { ...e, ref: n, type: "grid" }));
|
|
2279
|
+
vr.displayName = "Grid";
|
|
2280
|
+
const xr = P((e, n) => /* @__PURE__ */ i(Ye, { ...e, ref: n, type: "block" }));
|
|
2281
|
+
xr.displayName = "Div";
|
|
2282
|
+
function wr(e, n) {
|
|
2283
|
+
ye(() => {
|
|
2350
2284
|
if (!e)
|
|
2351
2285
|
return;
|
|
2352
|
-
const
|
|
2353
|
-
|
|
2286
|
+
const t = (r) => {
|
|
2287
|
+
r.key === "Escape" && n();
|
|
2354
2288
|
};
|
|
2355
|
-
return document.addEventListener("keydown",
|
|
2356
|
-
document.removeEventListener("keydown",
|
|
2289
|
+
return document.addEventListener("keydown", t), () => {
|
|
2290
|
+
document.removeEventListener("keydown", t);
|
|
2357
2291
|
};
|
|
2358
|
-
}, [e,
|
|
2292
|
+
}, [e, n]);
|
|
2359
2293
|
}
|
|
2360
|
-
const
|
|
2294
|
+
const Sr = {
|
|
2361
2295
|
basic: "scale",
|
|
2362
2296
|
fullscreen: "fade",
|
|
2363
2297
|
dockBottom: "slideUp",
|
|
2364
2298
|
dockTop: "slideDown",
|
|
2365
2299
|
dockRight: "slideRight",
|
|
2366
2300
|
dockLeft: "slideLeft"
|
|
2367
|
-
},
|
|
2301
|
+
}, $r = (e, n) => e === "auto" ? Sr[n] : e, sn = typeof document < "u" ? document.getElementById("dialog-root") ?? document.body : null, kr = ({
|
|
2368
2302
|
open: e,
|
|
2369
|
-
onClose:
|
|
2370
|
-
type:
|
|
2371
|
-
color:
|
|
2303
|
+
onClose: n,
|
|
2304
|
+
type: t = "basic",
|
|
2305
|
+
color: r = "surfaceContainerHigh",
|
|
2372
2306
|
elevation: s = 3,
|
|
2373
2307
|
shape: o = "rounded",
|
|
2374
2308
|
border: u = 0,
|
|
@@ -2378,54 +2312,54 @@ const $r = {
|
|
|
2378
2312
|
duration: c = 250,
|
|
2379
2313
|
disableBackdropClose: a,
|
|
2380
2314
|
disableEscapeKey: f,
|
|
2381
|
-
children:
|
|
2315
|
+
children: x,
|
|
2382
2316
|
className: g,
|
|
2383
|
-
motionStyle:
|
|
2384
|
-
modal:
|
|
2317
|
+
motionStyle: w = "regular",
|
|
2318
|
+
modal: F = !1
|
|
2385
2319
|
}) => {
|
|
2386
|
-
const
|
|
2387
|
-
|
|
2320
|
+
const b = ce(null), [h, $] = ee(!1), [k, S] = ee(!1), [M, A] = ee(), [q, E] = ee(!1), [I, y] = ee("normal"), C = ce(null), v = () => b.current ? Array.from(
|
|
2321
|
+
b.current.querySelectorAll(
|
|
2388
2322
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2389
2323
|
)
|
|
2390
|
-
).filter((
|
|
2391
|
-
|
|
2324
|
+
).filter((D) => !D.hasAttribute("disabled") && D.getAttribute("aria-hidden") !== "true") : [];
|
|
2325
|
+
ye(() => {
|
|
2392
2326
|
if (e)
|
|
2393
|
-
|
|
2327
|
+
$(!0), y("normal"), E(!0), A(!0);
|
|
2394
2328
|
else {
|
|
2395
|
-
|
|
2396
|
-
const
|
|
2397
|
-
|
|
2329
|
+
y("reverse"), E(!1), A(!1);
|
|
2330
|
+
const D = setTimeout(() => {
|
|
2331
|
+
$(!1);
|
|
2398
2332
|
}, c);
|
|
2399
2333
|
return () => {
|
|
2400
|
-
clearTimeout(
|
|
2334
|
+
clearTimeout(D);
|
|
2401
2335
|
};
|
|
2402
2336
|
}
|
|
2403
|
-
}, [e, c]),
|
|
2404
|
-
|
|
2405
|
-
}, [
|
|
2406
|
-
|
|
2407
|
-
}, [
|
|
2408
|
-
const
|
|
2409
|
-
a ||
|
|
2337
|
+
}, [e, c]), ye(() => {
|
|
2338
|
+
I === "reverse" && E(!0);
|
|
2339
|
+
}, [I]), ye(() => {
|
|
2340
|
+
M === !0 ? S(!0) : M === !1 && S(!1);
|
|
2341
|
+
}, [M]), wr(!f && h, () => n == null ? void 0 : n());
|
|
2342
|
+
const N = (D) => {
|
|
2343
|
+
a || D.target === D.currentTarget && (n == null || n());
|
|
2410
2344
|
};
|
|
2411
|
-
if (
|
|
2345
|
+
if (ye(() => {
|
|
2412
2346
|
if (h) {
|
|
2413
|
-
const
|
|
2347
|
+
const D = document.body.style.overflow;
|
|
2414
2348
|
return document.body.style.overflow = "hidden", () => {
|
|
2415
|
-
document.body.style.overflow =
|
|
2349
|
+
document.body.style.overflow = D;
|
|
2416
2350
|
};
|
|
2417
2351
|
}
|
|
2418
|
-
}, [h]),
|
|
2419
|
-
if (!h ||
|
|
2352
|
+
}, [h]), ye(() => {
|
|
2353
|
+
if (!h || !F)
|
|
2420
2354
|
return;
|
|
2421
|
-
const
|
|
2422
|
-
|
|
2423
|
-
const Ve =
|
|
2355
|
+
const D = v();
|
|
2356
|
+
C.current = document.activeElement;
|
|
2357
|
+
const Ve = D.length > 0 ? D[0] : b.current;
|
|
2424
2358
|
Ve && Ve.focus();
|
|
2425
|
-
const
|
|
2359
|
+
const ke = (z) => {
|
|
2426
2360
|
if (z.key !== "Tab")
|
|
2427
2361
|
return;
|
|
2428
|
-
const te =
|
|
2362
|
+
const te = v();
|
|
2429
2363
|
if (te.length === 0) {
|
|
2430
2364
|
z.preventDefault();
|
|
2431
2365
|
return;
|
|
@@ -2433,81 +2367,81 @@ const $r = {
|
|
|
2433
2367
|
const W = te[0], ie = te[te.length - 1];
|
|
2434
2368
|
z.shiftKey && document.activeElement === W && (z.preventDefault(), ie.focus()), !z.shiftKey && document.activeElement === ie && (z.preventDefault(), W.focus());
|
|
2435
2369
|
};
|
|
2436
|
-
return document.addEventListener("keydown",
|
|
2370
|
+
return document.addEventListener("keydown", ke), () => {
|
|
2437
2371
|
var z;
|
|
2438
|
-
document.removeEventListener("keydown",
|
|
2372
|
+
document.removeEventListener("keydown", ke), (z = C.current) == null || z.focus();
|
|
2439
2373
|
};
|
|
2440
|
-
}, [
|
|
2374
|
+
}, [F, h]), !h || !sn)
|
|
2441
2375
|
return null;
|
|
2442
|
-
const Z =
|
|
2376
|
+
const Z = Ue(o), U = nt(u), X = Ht(mt(l)), we = ut(s), { bgColor: he, textOnColor: K } = Vt(r), Me = $r(p, t), De = Me === "none" ? "" : Mt[Me], V = w === "expressive" ? "uui-motion-expressive" : "", O = {
|
|
2443
2377
|
"--uui-duration": String(c * 0.65) + "ms"
|
|
2444
2378
|
}, Q = {
|
|
2445
|
-
"--uui-reverse":
|
|
2446
|
-
"--uui-duration":
|
|
2447
|
-
}, fe = ["uui-dialog-backdrop",
|
|
2379
|
+
"--uui-reverse": I,
|
|
2380
|
+
"--uui-duration": I === "reverse" ? String(c * 0.67) + "ms" : String(c) + "ms"
|
|
2381
|
+
}, fe = ["uui-dialog-backdrop", k && "uui-open"].filter(Boolean).join(" "), de = [
|
|
2448
2382
|
"uui-db",
|
|
2449
|
-
`uui-dialog-${
|
|
2383
|
+
`uui-dialog-${t}`,
|
|
2450
2384
|
Z,
|
|
2451
2385
|
U,
|
|
2452
|
-
|
|
2386
|
+
wt(m),
|
|
2453
2387
|
X,
|
|
2454
2388
|
we,
|
|
2455
2389
|
he,
|
|
2456
2390
|
K,
|
|
2457
2391
|
q && De,
|
|
2458
|
-
|
|
2392
|
+
V,
|
|
2459
2393
|
g
|
|
2460
2394
|
].filter(Boolean).join(" ");
|
|
2461
|
-
return
|
|
2395
|
+
return Wt(
|
|
2462
2396
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
2463
|
-
/* @__PURE__ */
|
|
2397
|
+
/* @__PURE__ */ i("div", { className: fe, onClick: N, style: O, children: /* @__PURE__ */ i("div", { className: de, ref: b, style: Q, children: x }) }),
|
|
2464
2398
|
sn
|
|
2465
2399
|
);
|
|
2466
2400
|
};
|
|
2467
|
-
|
|
2468
|
-
const
|
|
2469
|
-
const o =
|
|
2470
|
-
u.push(
|
|
2401
|
+
kr.displayName = "Dialog";
|
|
2402
|
+
const Fr = ({ icon: e, label: n, children: t, className: r, font: s = "headlineSmall" }) => {
|
|
2403
|
+
const o = n ?? t ?? null, u = ["uui-dialog-title", r];
|
|
2404
|
+
u.push(Ie(s));
|
|
2471
2405
|
const l = u.filter(Boolean).join(" ");
|
|
2472
|
-
return o ? /* @__PURE__ */
|
|
2473
|
-
e && /* @__PURE__ */
|
|
2474
|
-
o && /* @__PURE__ */
|
|
2406
|
+
return o ? /* @__PURE__ */ j("div", { className: l, children: [
|
|
2407
|
+
e && /* @__PURE__ */ i("div", { className: "uui-icon", children: e }),
|
|
2408
|
+
o && /* @__PURE__ */ i("div", { className: "uui-content", children: o })
|
|
2475
2409
|
] }) : null;
|
|
2476
2410
|
};
|
|
2477
|
-
|
|
2478
|
-
const Lr = ({ children: e, className:
|
|
2479
|
-
const
|
|
2480
|
-
return e ? /* @__PURE__ */
|
|
2411
|
+
Fr.displayName = "DialogTitle";
|
|
2412
|
+
const Lr = ({ children: e, className: n }) => {
|
|
2413
|
+
const t = ["uui-dialog-content", n].filter(Boolean).join(" ");
|
|
2414
|
+
return e ? /* @__PURE__ */ i("div", { className: t, children: /* @__PURE__ */ i("div", { className: "uui-content", children: e }) }) : null;
|
|
2481
2415
|
};
|
|
2482
2416
|
Lr.displayName = "DialogContent";
|
|
2483
|
-
const
|
|
2417
|
+
const Br = ({
|
|
2484
2418
|
children: e,
|
|
2485
|
-
className:
|
|
2486
|
-
color:
|
|
2487
|
-
borderTop:
|
|
2419
|
+
className: n,
|
|
2420
|
+
color: t,
|
|
2421
|
+
borderTop: r = !1,
|
|
2488
2422
|
borderTopWidth: s = 1,
|
|
2489
2423
|
borderColor: o
|
|
2490
2424
|
}) => {
|
|
2491
2425
|
if (!e)
|
|
2492
2426
|
return null;
|
|
2493
|
-
const u =
|
|
2427
|
+
const u = t ? Vt(t) : null, l = r ? nt(s) : "", m = r && t ? Ht(mt(o)) : "", p = [
|
|
2494
2428
|
"uui-dialog-actions",
|
|
2495
2429
|
u == null ? void 0 : u.bgColor,
|
|
2496
2430
|
u == null ? void 0 : u.textOnColor,
|
|
2497
|
-
|
|
2431
|
+
r ? "uui-dialog-actions-border-top" : "",
|
|
2498
2432
|
l,
|
|
2499
2433
|
m,
|
|
2500
|
-
|
|
2434
|
+
n
|
|
2501
2435
|
].filter(Boolean).join(" ");
|
|
2502
|
-
return /* @__PURE__ */
|
|
2436
|
+
return /* @__PURE__ */ i("div", { className: p, children: e });
|
|
2503
2437
|
};
|
|
2504
|
-
|
|
2505
|
-
const
|
|
2438
|
+
Br.displayName = "DialogActions";
|
|
2439
|
+
const bn = P(
|
|
2506
2440
|
({
|
|
2507
2441
|
description: e,
|
|
2508
|
-
error:
|
|
2509
|
-
font:
|
|
2510
|
-
label:
|
|
2442
|
+
error: n,
|
|
2443
|
+
font: t,
|
|
2444
|
+
label: r,
|
|
2511
2445
|
disabled: s,
|
|
2512
2446
|
legend: o,
|
|
2513
2447
|
children: u,
|
|
@@ -2517,20 +2451,20 @@ const Er = A(
|
|
|
2517
2451
|
descriptionFont: c,
|
|
2518
2452
|
alignItems: a = "start",
|
|
2519
2453
|
...f
|
|
2520
|
-
},
|
|
2521
|
-
const g = o ??
|
|
2522
|
-
|
|
2523
|
-
const
|
|
2454
|
+
}, x) => {
|
|
2455
|
+
const g = o ?? r, w = ["uui-fieldset-legend", tn(t ?? "labelLarge")].filter(Boolean).join(" "), F = T();
|
|
2456
|
+
n ? F.text("error") : p ? F.text(p) : F.text.on("surfaceVariant");
|
|
2457
|
+
const b = [
|
|
2524
2458
|
"uui-support-text",
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
e && !
|
|
2528
|
-
].filter(Boolean).join(" "), h = (e ??
|
|
2529
|
-
return /* @__PURE__ */
|
|
2530
|
-
/* @__PURE__ */
|
|
2531
|
-
|
|
2459
|
+
tn(c ?? "bodySmall"),
|
|
2460
|
+
n && "uui-error",
|
|
2461
|
+
e && !n && "uui-description"
|
|
2462
|
+
].filter(Boolean).join(" "), h = (e ?? n) && /* @__PURE__ */ i("div", { className: b, style: F.get(), children: n ?? e });
|
|
2463
|
+
return /* @__PURE__ */ j(tt, { children: [
|
|
2464
|
+
/* @__PURE__ */ i(Zt.Provider, { value: { disabled: s }, children: /* @__PURE__ */ j(
|
|
2465
|
+
Ye,
|
|
2532
2466
|
{
|
|
2533
|
-
ref:
|
|
2467
|
+
ref: x,
|
|
2534
2468
|
...f,
|
|
2535
2469
|
alignItems: a,
|
|
2536
2470
|
component: "fieldset",
|
|
@@ -2538,9 +2472,9 @@ const Er = A(
|
|
|
2538
2472
|
disabled: s,
|
|
2539
2473
|
elementClass: "uui-fieldset",
|
|
2540
2474
|
children: [
|
|
2541
|
-
g && /* @__PURE__ */
|
|
2475
|
+
g && /* @__PURE__ */ j("legend", { className: w, children: [
|
|
2542
2476
|
g,
|
|
2543
|
-
m && /* @__PURE__ */
|
|
2477
|
+
m && /* @__PURE__ */ i("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
|
|
2544
2478
|
] }),
|
|
2545
2479
|
u
|
|
2546
2480
|
]
|
|
@@ -2550,95 +2484,54 @@ const Er = A(
|
|
|
2550
2484
|
] });
|
|
2551
2485
|
}
|
|
2552
2486
|
);
|
|
2553
|
-
|
|
2554
|
-
const
|
|
2555
|
-
({
|
|
2556
|
-
|
|
2557
|
-
error: t,
|
|
2558
|
-
font: n,
|
|
2559
|
-
label: i,
|
|
2560
|
-
disabled: s,
|
|
2561
|
-
legend: o,
|
|
2562
|
-
children: u,
|
|
2563
|
-
direction: l = "col",
|
|
2564
|
-
required: m,
|
|
2565
|
-
descriptionColor: p,
|
|
2566
|
-
descriptionFont: c,
|
|
2567
|
-
alignItems: a = "start",
|
|
2568
|
-
...f
|
|
2569
|
-
}, b) => {
|
|
2570
|
-
const g = o ?? i, x = ["uui-fieldset-legend", Tt(n ?? "labelLarge")].filter(Boolean).join(" "), $ = T();
|
|
2571
|
-
t ? $.text("error") : p ? $.text(p) : $.text.on("surfaceVariant");
|
|
2572
|
-
const C = [
|
|
2573
|
-
"uui-support-text",
|
|
2574
|
-
Tt(c ?? "bodySmall"),
|
|
2575
|
-
t && "uui-error",
|
|
2576
|
-
e && !t && "uui-description"
|
|
2577
|
-
].filter(Boolean).join(" "), h = (e ?? t) && /* @__PURE__ */ r("div", { className: C, style: $.get(), children: t ?? e });
|
|
2578
|
-
return /* @__PURE__ */ L(et, { children: [
|
|
2579
|
-
/* @__PURE__ */ r(Dt.Provider, { value: { disabled: s }, children: /* @__PURE__ */ L(
|
|
2580
|
-
Xe,
|
|
2581
|
-
{
|
|
2582
|
-
ref: b,
|
|
2583
|
-
...f,
|
|
2584
|
-
alignItems: a,
|
|
2585
|
-
component: "fieldset",
|
|
2586
|
-
direction: l,
|
|
2587
|
-
disabled: s,
|
|
2588
|
-
elementClass: "uui-fieldset",
|
|
2589
|
-
children: [
|
|
2590
|
-
g && /* @__PURE__ */ L("legend", { className: x, children: [
|
|
2591
|
-
g,
|
|
2592
|
-
m && /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
|
|
2593
|
-
] }),
|
|
2594
|
-
u
|
|
2595
|
-
]
|
|
2596
|
-
}
|
|
2597
|
-
) }),
|
|
2598
|
-
h
|
|
2599
|
-
] });
|
|
2600
|
-
}
|
|
2601
|
-
);
|
|
2602
|
-
wn.displayName = "Fieldset";
|
|
2603
|
-
const Tr = A(
|
|
2604
|
-
({ name: e, disabled: t, onChange: n, value: i, defaultValue: s, children: o, ...u }, l) => {
|
|
2605
|
-
const [m, p] = ee(s), c = i !== void 0, a = c ? i : m, f = xt(
|
|
2487
|
+
bn.displayName = "Fieldset";
|
|
2488
|
+
const Nr = P(
|
|
2489
|
+
({ name: e, disabled: n, onChange: t, value: r, defaultValue: s, children: o, ...u }, l) => {
|
|
2490
|
+
const [m, p] = ee(s), c = r !== void 0, a = c ? r : m, f = yt(
|
|
2606
2491
|
(g) => {
|
|
2607
|
-
c || p(g),
|
|
2492
|
+
c || p(g), t == null || t(g);
|
|
2608
2493
|
},
|
|
2609
|
-
[c,
|
|
2610
|
-
),
|
|
2611
|
-
() => ({ name: e, value: a, setValue: f, disabled:
|
|
2612
|
-
[e, a, f,
|
|
2494
|
+
[c, t]
|
|
2495
|
+
), x = an(
|
|
2496
|
+
() => ({ name: e, value: a, setValue: f, disabled: n }),
|
|
2497
|
+
[e, a, f, n]
|
|
2613
2498
|
);
|
|
2614
|
-
return /* @__PURE__ */
|
|
2499
|
+
return /* @__PURE__ */ i(bn, { disabled: n, ref: l, ...u, children: /* @__PURE__ */ i(jr.Provider, { value: x, children: o }) });
|
|
2615
2500
|
}
|
|
2616
2501
|
);
|
|
2617
|
-
|
|
2618
|
-
const
|
|
2502
|
+
Nr.displayName = "RadioGroup";
|
|
2503
|
+
const Ir = Symbol.for("uui.listItem"), Gt = Symbol.for("uui.menuitem");
|
|
2504
|
+
function Ot(e) {
|
|
2505
|
+
return vt(e) && typeof e.type != "string" && !!e.type[Gt];
|
|
2506
|
+
}
|
|
2507
|
+
const yn = Symbol.for("uui.menu");
|
|
2508
|
+
function ht(e) {
|
|
2509
|
+
return vt(e) && typeof e.type != "string" && !!e.type[yn];
|
|
2510
|
+
}
|
|
2511
|
+
const Er = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i("path", { d: "M10 17V7L15 12L10 17Z", fill: "currentColor" }) }), Tr = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
|
|
2619
2512
|
"path",
|
|
2620
2513
|
{
|
|
2621
2514
|
d: "M9.5501 18L3.8501 12.3L5.2751 10.875L9.5501 15.15L18.7251 5.97498L20.1501 7.39998L9.5501 18Z",
|
|
2622
2515
|
fill: "currentColor"
|
|
2623
2516
|
}
|
|
2624
|
-
) }),
|
|
2517
|
+
) }), Mr = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
|
|
2625
2518
|
"path",
|
|
2626
2519
|
{
|
|
2627
2520
|
d: "M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",
|
|
2628
2521
|
fill: "currentColor"
|
|
2629
2522
|
}
|
|
2630
|
-
) }),
|
|
2523
|
+
) }), Vr = /* @__PURE__ */ i("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
|
|
2631
2524
|
"path",
|
|
2632
2525
|
{
|
|
2633
2526
|
d: "M12 17C13.3833 17 14.5625 16.5125 15.5375 15.5375C16.5125 14.5625 17 13.3833 17 12C17 10.6167 16.5125 9.4375 15.5375 8.4625C14.5625 7.4875 13.3833 7 12 7C10.6167 7 9.4375 7.4875 8.4625 8.4625C7.4875 9.4375 7 10.6167 7 12C7 13.3833 7.4875 14.5625 8.4625 15.5375C9.4375 16.5125 10.6167 17 12 17ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",
|
|
2634
2527
|
fill: "currentColor"
|
|
2635
2528
|
}
|
|
2636
|
-
) }),
|
|
2529
|
+
) }), Xt = P(
|
|
2637
2530
|
({
|
|
2638
2531
|
shape: e,
|
|
2639
|
-
touchEffects:
|
|
2640
|
-
focusEffects:
|
|
2641
|
-
selectedEffects:
|
|
2532
|
+
touchEffects: n = ["ripple"],
|
|
2533
|
+
focusEffects: t = ["ring", "overlay"],
|
|
2534
|
+
selectedEffects: r = ["color"],
|
|
2642
2535
|
checkedIcon: s,
|
|
2643
2536
|
uncheckedIcon: o,
|
|
2644
2537
|
selectedColor: u,
|
|
@@ -2648,24 +2541,24 @@ const Mr = Symbol.for("uui.listItem"), Vr = /* @__PURE__ */ r("svg", { fill: "no
|
|
|
2648
2541
|
shortcutColor: c,
|
|
2649
2542
|
fixedLeading: a,
|
|
2650
2543
|
color: f,
|
|
2651
|
-
icon:
|
|
2544
|
+
icon: x,
|
|
2652
2545
|
endIcon: g,
|
|
2653
|
-
leading:
|
|
2654
|
-
trailing:
|
|
2655
|
-
label:
|
|
2546
|
+
leading: w,
|
|
2547
|
+
trailing: F,
|
|
2548
|
+
label: b,
|
|
2656
2549
|
disabled: h = !1,
|
|
2657
|
-
className:
|
|
2658
|
-
onClick:
|
|
2659
|
-
badge:
|
|
2660
|
-
expanded:
|
|
2661
|
-
active:
|
|
2550
|
+
className: $,
|
|
2551
|
+
onClick: k,
|
|
2552
|
+
badge: S,
|
|
2553
|
+
expanded: M,
|
|
2554
|
+
active: A,
|
|
2662
2555
|
children: q,
|
|
2663
|
-
focusVisible:
|
|
2664
|
-
type:
|
|
2665
|
-
checked:
|
|
2666
|
-
description:
|
|
2667
|
-
shortcut:
|
|
2668
|
-
density:
|
|
2556
|
+
focusVisible: E,
|
|
2557
|
+
type: I = "item",
|
|
2558
|
+
checked: y,
|
|
2559
|
+
description: C,
|
|
2560
|
+
shortcut: v,
|
|
2561
|
+
density: N,
|
|
2669
2562
|
horizontal: Z,
|
|
2670
2563
|
labelFont: U,
|
|
2671
2564
|
font: X,
|
|
@@ -2674,83 +2567,83 @@ const Mr = Symbol.for("uui.listItem"), Vr = /* @__PURE__ */ r("svg", { fill: "no
|
|
|
2674
2567
|
selected: K,
|
|
2675
2568
|
__index: Me,
|
|
2676
2569
|
__interactionsDisabled: De,
|
|
2677
|
-
onChange:
|
|
2678
|
-
variant:
|
|
2570
|
+
onChange: V,
|
|
2571
|
+
variant: O = "classic",
|
|
2679
2572
|
...Q
|
|
2680
2573
|
}, fe) => {
|
|
2681
|
-
const de = ce(null),
|
|
2574
|
+
const de = ce(null), D = lt.Children.toArray(q), Ve = D.find((G) => ht(G)), ke = D.filter((G) => !ht(G)), z = !!Ve;
|
|
2682
2575
|
let te;
|
|
2683
|
-
|
|
2684
|
-
const W = te ??
|
|
2576
|
+
I !== "item" && (I === "radio" ? te = y ? s ?? Vr : o ?? Mr : I === "checkbox" && (te = y ? s ?? Tr : o));
|
|
2577
|
+
const W = te ?? w ?? x ?? (a && !Z), ie = W && /* @__PURE__ */ i("div", { className: "uui-icon uui-leading", children: W }), We = F ?? g;
|
|
2685
2578
|
let oe;
|
|
2686
|
-
|
|
2687
|
-
const ne =
|
|
2579
|
+
S && (typeof S == "string" || typeof S == "number" ? oe = /* @__PURE__ */ i(qt, { value: S }) : oe = S);
|
|
2580
|
+
const ne = O === "modern" ? "labelLarge" : "bodyLarge", ve = U ?? X ?? ne, He = we ?? (O === "modern" ? "bodySmall" : "bodyMedium"), _ = he ?? ne, me = T();
|
|
2688
2581
|
me.text(c);
|
|
2689
|
-
const Ee = z && !Z ?
|
|
2582
|
+
const Ee = z && !Z ? Er : We, Re = v && /* @__PURE__ */ i("div", { className: `uui-menu-item-shortcut ${Ie(_)}`, style: me.get(), children: v }), se = (v ?? S ?? Ee) && /* @__PURE__ */ j(tt, { children: [
|
|
2690
2583
|
Re,
|
|
2691
2584
|
oe,
|
|
2692
|
-
Ee && /* @__PURE__ */
|
|
2585
|
+
Ee && /* @__PURE__ */ i("div", { className: "uui-icon uui-trailing", children: Ee })
|
|
2693
2586
|
] }), Se = T();
|
|
2694
2587
|
Se.text(m);
|
|
2695
|
-
const Ce =
|
|
2696
|
-
(p || !l &&
|
|
2697
|
-
const
|
|
2588
|
+
const Ce = b && /* @__PURE__ */ i("div", { className: `uui-menu-item-label ${Ie(ve)}`, style: Se.get(), children: b }), Fe = T();
|
|
2589
|
+
(p || !l && O === "classic" && (f != null && f.startsWith("surface"))) && (p ? Fe.text(p) : Fe.text.on("surfaceVariant"));
|
|
2590
|
+
const $e = C && /* @__PURE__ */ i(
|
|
2698
2591
|
"div",
|
|
2699
2592
|
{
|
|
2700
|
-
className: `uui-menu-item-description ${
|
|
2701
|
-
style:
|
|
2702
|
-
children:
|
|
2593
|
+
className: `uui-menu-item-description ${Ie(He)}`,
|
|
2594
|
+
style: Fe.get(),
|
|
2595
|
+
children: C
|
|
2703
2596
|
}
|
|
2704
|
-
), pe = (Ce ??
|
|
2597
|
+
), pe = (Ce ?? $e) && /* @__PURE__ */ j("div", { className: "uui-menu-item-text", children: [
|
|
2705
2598
|
Ce,
|
|
2706
|
-
|
|
2599
|
+
$e
|
|
2707
2600
|
] }), qe = (G) => {
|
|
2708
2601
|
if (De || h) {
|
|
2709
2602
|
G == null || G.preventDefault();
|
|
2710
2603
|
return;
|
|
2711
2604
|
}
|
|
2712
|
-
|
|
2605
|
+
k == null || k(G), n.includes("ripple") && de.current && G && St(de.current, G);
|
|
2713
2606
|
};
|
|
2714
|
-
let ge = f ?? (
|
|
2715
|
-
|
|
2716
|
-
const Be = T();
|
|
2717
|
-
Be.bg.on(ge);
|
|
2607
|
+
let ge = f ?? (O === "modern" ? "surfaceContainerLow" : "surfaceContainer");
|
|
2608
|
+
I === "option" && K && r.includes("color") && (ge = u ?? (O === "modern" ? "tertiaryContainer" : "secondaryContainer"));
|
|
2718
2609
|
const Le = T();
|
|
2719
|
-
Le.bg
|
|
2610
|
+
Le.bg.on(ge);
|
|
2611
|
+
const Be = T();
|
|
2612
|
+
Be.bg(ge), l ? Be.text(l) : Be.text.on(ge);
|
|
2720
2613
|
const Ze = [
|
|
2721
2614
|
"uui-menu-item",
|
|
2722
|
-
|
|
2723
|
-
|
|
2615
|
+
$,
|
|
2616
|
+
dt(N),
|
|
2724
2617
|
h && "uui-disabled",
|
|
2725
|
-
|
|
2726
|
-
].filter(Boolean).join(" "), le =
|
|
2618
|
+
O === "modern" ? "uui-menu-item-modern" : "uui-menu-item-classic"
|
|
2619
|
+
].filter(Boolean).join(" "), le = Ue(e ?? (O === "modern" ? "rounded" : "smooth")), L = [
|
|
2727
2620
|
"uui-menu-item-content",
|
|
2728
2621
|
le,
|
|
2729
|
-
...
|
|
2730
|
-
...
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
].filter(Boolean).join(" "), Y = /* @__PURE__ */
|
|
2734
|
-
|
|
2622
|
+
...t.includes("ring") && A ? ["uui-focus-ring-in"] : [],
|
|
2623
|
+
...t.includes("overlay") && A ? ["uui-focus-overlay"] : [],
|
|
2624
|
+
A && "uui-active",
|
|
2625
|
+
A && E && "uui-focus-visible"
|
|
2626
|
+
].filter(Boolean).join(" "), Y = /* @__PURE__ */ j("div", { className: L, style: Be.get(), children: [
|
|
2627
|
+
ke.length > 0 ? /* @__PURE__ */ i("div", { className: "uui-menu-item-children", children: ke }) : /* @__PURE__ */ j(tt, { children: [
|
|
2735
2628
|
ie,
|
|
2736
2629
|
pe,
|
|
2737
2630
|
se
|
|
2738
2631
|
] }),
|
|
2739
|
-
/* @__PURE__ */
|
|
2632
|
+
/* @__PURE__ */ i("div", { className: ["uui-state", le].join(" "), style: Le.get() })
|
|
2740
2633
|
] });
|
|
2741
2634
|
return (
|
|
2742
2635
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
|
|
2743
|
-
/* @__PURE__ */
|
|
2636
|
+
/* @__PURE__ */ i(
|
|
2744
2637
|
"div",
|
|
2745
2638
|
{
|
|
2746
2639
|
...Q,
|
|
2747
|
-
"aria-checked":
|
|
2640
|
+
"aria-checked": I === "radio" || I === "checkbox" ? y ?? !1 : void 0,
|
|
2748
2641
|
"aria-disabled": h ? "true" : void 0,
|
|
2749
|
-
"aria-expanded": z ?
|
|
2642
|
+
"aria-expanded": z ? M : void 0,
|
|
2750
2643
|
"aria-haspopup": z ? "menu" : void 0,
|
|
2751
2644
|
className: Ze,
|
|
2752
2645
|
onClick: qe,
|
|
2753
|
-
ref:
|
|
2646
|
+
ref: ft(de, fe),
|
|
2754
2647
|
role: "option",
|
|
2755
2648
|
tabIndex: -1,
|
|
2756
2649
|
children: Y
|
|
@@ -2759,13 +2652,13 @@ const Mr = Symbol.for("uui.listItem"), Vr = /* @__PURE__ */ r("svg", { fill: "no
|
|
|
2759
2652
|
);
|
|
2760
2653
|
}
|
|
2761
2654
|
);
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
const
|
|
2655
|
+
Xt[Ir] = !0;
|
|
2656
|
+
Xt[Gt] = !0;
|
|
2657
|
+
Xt.displayName = "ListItem";
|
|
2658
|
+
const Dr = P((e, n) => {
|
|
2766
2659
|
const {
|
|
2767
|
-
density:
|
|
2768
|
-
icon:
|
|
2660
|
+
density: t,
|
|
2661
|
+
icon: r,
|
|
2769
2662
|
disabled: s,
|
|
2770
2663
|
elevation: o,
|
|
2771
2664
|
checked: u,
|
|
@@ -2775,24 +2668,24 @@ const Ar = A((e, t) => {
|
|
|
2775
2668
|
defaultChecked: c,
|
|
2776
2669
|
hoverEffects: a = ["overlay"],
|
|
2777
2670
|
touchEffects: f = ["ripple"],
|
|
2778
|
-
focusEffects:
|
|
2671
|
+
focusEffects: x = ["ring"],
|
|
2779
2672
|
selectedEffects: g = [],
|
|
2780
|
-
pressedEffects:
|
|
2781
|
-
id:
|
|
2782
|
-
name:
|
|
2673
|
+
pressedEffects: w = ["overlay", "scale"],
|
|
2674
|
+
id: F,
|
|
2675
|
+
name: b,
|
|
2783
2676
|
label: h,
|
|
2784
|
-
font:
|
|
2785
|
-
border:
|
|
2786
|
-
borderColor:
|
|
2787
|
-
uncheckedBorder:
|
|
2788
|
-
uncheckedBorderColor:
|
|
2677
|
+
font: $,
|
|
2678
|
+
border: k,
|
|
2679
|
+
borderColor: S,
|
|
2680
|
+
uncheckedBorder: M,
|
|
2681
|
+
uncheckedBorderColor: A,
|
|
2789
2682
|
onChange: q,
|
|
2790
|
-
onClick:
|
|
2791
|
-
required:
|
|
2792
|
-
shape:
|
|
2793
|
-
title:
|
|
2794
|
-
value:
|
|
2795
|
-
size:
|
|
2683
|
+
onClick: E,
|
|
2684
|
+
required: I,
|
|
2685
|
+
shape: y = "round",
|
|
2686
|
+
title: C,
|
|
2687
|
+
value: v,
|
|
2688
|
+
size: N = "small",
|
|
2796
2689
|
uncheckedIcon: Z,
|
|
2797
2690
|
description: U,
|
|
2798
2691
|
descriptionColor: X,
|
|
@@ -2801,150 +2694,150 @@ const Ar = A((e, t) => {
|
|
|
2801
2694
|
error: K,
|
|
2802
2695
|
focusColor: Me,
|
|
2803
2696
|
labelColor: De,
|
|
2804
|
-
textColor:
|
|
2805
|
-
duration:
|
|
2697
|
+
textColor: V,
|
|
2698
|
+
duration: O = 200,
|
|
2806
2699
|
tooltipAlign: Q = "auto",
|
|
2807
2700
|
textPlacement: fe = "end",
|
|
2808
2701
|
"aria-label": de,
|
|
2809
|
-
readOnly:
|
|
2702
|
+
readOnly: D,
|
|
2810
2703
|
...Ve
|
|
2811
|
-
} = e,
|
|
2812
|
-
if (
|
|
2704
|
+
} = e, ke = ce(null), z = It(Zt), te = s ?? (z == null ? void 0 : z.disabled), W = Dt(), [ie, We] = ee(!1), oe = ce(null), ne = ce(null), ve = ce(null), He = ce($t("check")), _ = F ?? He.current, me = u !== void 0, [Ee, Re] = ee(c ?? !1), se = me ? !!u : Ee, Se = de ?? (h ? void 0 : C), Ce = K ? "error" : m, Fe = C ? /* @__PURE__ */ i("div", { id: `${_}-tip`, children: C }) : null, $e = (ue) => {
|
|
2705
|
+
if (D) {
|
|
2813
2706
|
ue.preventDefault();
|
|
2814
2707
|
return;
|
|
2815
2708
|
}
|
|
2816
|
-
const
|
|
2817
|
-
me || Re(
|
|
2709
|
+
const ze = ue.currentTarget;
|
|
2710
|
+
me || Re(ze.checked), q == null || q(ue);
|
|
2818
2711
|
}, pe = (ue) => {
|
|
2819
|
-
if (
|
|
2712
|
+
if (D) {
|
|
2820
2713
|
ue.preventDefault();
|
|
2821
2714
|
return;
|
|
2822
2715
|
}
|
|
2823
|
-
f.includes("ripple") && (
|
|
2824
|
-
|
|
2825
|
-
},
|
|
2716
|
+
f.includes("ripple") && (ke.current && clearTimeout(ke.current), ke.current = window.setTimeout(() => {
|
|
2717
|
+
ve.current && ne.current && (St(ve.current, ue, ne.current), ke.current = null);
|
|
2718
|
+
}, O)), E == null || E(ue);
|
|
2826
2719
|
}, qe = (ue) => {
|
|
2827
|
-
var
|
|
2828
|
-
We(!0), (
|
|
2720
|
+
var ze;
|
|
2721
|
+
We(!0), (ze = e.onFocus) == null || ze.call(e, ue);
|
|
2829
2722
|
}, ge = (ue) => {
|
|
2830
|
-
var
|
|
2831
|
-
We(!1), (
|
|
2832
|
-
},
|
|
2723
|
+
var ze;
|
|
2724
|
+
We(!1), (ze = e.onBlur) == null || ze.call(e, ue);
|
|
2725
|
+
}, Le = T(), Be = [
|
|
2833
2726
|
"uui-switch",
|
|
2834
|
-
|
|
2727
|
+
dt(t),
|
|
2835
2728
|
he,
|
|
2836
2729
|
te && "uui-disabled",
|
|
2837
|
-
...l ? [] : [
|
|
2730
|
+
...l ? [] : [wt(N)]
|
|
2838
2731
|
].filter(Boolean).join(" "), Ze = [
|
|
2839
2732
|
"uui-switch-control",
|
|
2840
2733
|
se && "uui-checked",
|
|
2841
2734
|
Z && "uui-symmetric-thumb",
|
|
2842
|
-
...a.includes("overlay") && !
|
|
2843
|
-
...
|
|
2735
|
+
...a.includes("overlay") && !D ? ["uui-hover-overlay"] : [],
|
|
2736
|
+
...x.includes("overlay") && W && ie ? ["uui-focus-overlay"] : [],
|
|
2844
2737
|
...g.includes("overlay") ? ["uui-selected-overlay"] : [],
|
|
2845
|
-
...
|
|
2846
|
-
...
|
|
2847
|
-
|
|
2848
|
-
|
|
2738
|
+
...w.includes("overlay") && !D ? ["uui-pressed-overlay"] : [],
|
|
2739
|
+
...w.includes("scale") && !D ? ["uui-pressed-scale"] : [],
|
|
2740
|
+
Ue(y),
|
|
2741
|
+
x.includes("ring") && W && ie && "uui-focus-visible uui-focus-ring"
|
|
2849
2742
|
].filter(Boolean).join(" "), le = T();
|
|
2850
|
-
Me && W && ie && le.set("--uui-focus-color",
|
|
2851
|
-
const
|
|
2743
|
+
Me && W && ie && le.set("--uui-focus-color", mn(Me).color), le.set("--uui-switch-duration", `${O}ms`);
|
|
2744
|
+
const L = ["uui-input"].filter(Boolean).join(" "), Y = ["uui-state", Ue("round")].filter(Boolean).join(" "), Te = T(), Je = [
|
|
2852
2745
|
"uui-switch-track",
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
].filter(Boolean).join(" "), _e = T(), H = ["uui-switch-thumb",
|
|
2857
|
-
_e.border(K ? "error" :
|
|
2858
|
-
let
|
|
2746
|
+
nt(se ? k : M ?? k ?? 2),
|
|
2747
|
+
Ue(y),
|
|
2748
|
+
ut(o)
|
|
2749
|
+
].filter(Boolean).join(" "), _e = T(), H = ["uui-switch-thumb", Ue(y)].filter(Boolean).join(" "), ae = ["uui-icon"].filter(Boolean).join(" "), je = T(), Ae = ["uui-switch-glyph"].filter(Boolean).join(" "), Oe = T(), J = T();
|
|
2750
|
+
_e.border(K ? "error" : S ?? "outline"), J.border(K ? "error" : S ?? "outline"), se ? (Te.bg(Ce), _e.bg(K ? "errorContainer" : m), Oe.bg.on(m), je.text.onContainer(m)) : (A && (_e.border(K ? "error" : A), J.border(K ? "error" : A)), Te.bg(K ? "error" : p ?? "onSurface"), _e.bg(K ? "errorContainer" : p ?? "surfaceContainerHighest"), p ? (Oe.bg.on(p), je.text.onContainer(p)) : (Oe.bg(Z ? "onSurfaceVariant" : "outline"), je.text("surfaceContainerHighest")));
|
|
2751
|
+
let Xe;
|
|
2859
2752
|
if (l) {
|
|
2860
2753
|
const ue = [
|
|
2861
2754
|
"uui-switch-content uui-overflow-hidden",
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2755
|
+
Ue(y),
|
|
2756
|
+
nt(k),
|
|
2757
|
+
ut(o)
|
|
2865
2758
|
].filter(Boolean).join(" ");
|
|
2866
|
-
|
|
2759
|
+
Xe = /* @__PURE__ */ j("div", { className: ue, style: J.get(), children: [
|
|
2867
2760
|
l,
|
|
2868
|
-
/* @__PURE__ */
|
|
2761
|
+
/* @__PURE__ */ i("div", { className: Y, ref: ve, style: Te.get() })
|
|
2869
2762
|
] });
|
|
2870
2763
|
} else {
|
|
2871
|
-
const ue = se ?
|
|
2872
|
-
|
|
2873
|
-
/* @__PURE__ */
|
|
2874
|
-
/* @__PURE__ */
|
|
2875
|
-
/* @__PURE__ */
|
|
2876
|
-
/* @__PURE__ */
|
|
2764
|
+
const ue = se ? r : Z;
|
|
2765
|
+
Xe = /* @__PURE__ */ j(tt, { children: [
|
|
2766
|
+
/* @__PURE__ */ i("div", { className: Je, style: _e.get() }),
|
|
2767
|
+
/* @__PURE__ */ j("div", { className: H, children: [
|
|
2768
|
+
/* @__PURE__ */ i("div", { className: Ae, style: Oe.get(), children: /* @__PURE__ */ i("div", { className: ae, style: je.get(), children: ue }) }),
|
|
2769
|
+
/* @__PURE__ */ i("div", { className: Y, ref: ve, style: Te.get() })
|
|
2877
2770
|
] })
|
|
2878
2771
|
] });
|
|
2879
2772
|
}
|
|
2880
|
-
const
|
|
2881
|
-
|
|
2882
|
-
const re = [$
|
|
2773
|
+
const Ne = T();
|
|
2774
|
+
Ne.text((K ? "error" : void 0) ?? De ?? V ?? "onSurface");
|
|
2775
|
+
const re = [Ie($ ?? "bodyMedium"), "uui-switch-label"].join(" "), Qe = h && /* @__PURE__ */ j("label", { className: re, htmlFor: _, style: Ne.get(), children: [
|
|
2883
2776
|
h,
|
|
2884
|
-
|
|
2777
|
+
I && /* @__PURE__ */ i("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
|
|
2885
2778
|
] }), Ge = T();
|
|
2886
2779
|
K ? Ge.text("error") : X ? Ge.text(X) : Ge.text.on("surfaceVariant");
|
|
2887
2780
|
const ot = [
|
|
2888
|
-
|
|
2781
|
+
Ie(we ?? "bodySmall"),
|
|
2889
2782
|
K && "uui-error uui-support-text",
|
|
2890
2783
|
U && !K && "uui-description uui-support-text"
|
|
2891
|
-
].filter(Boolean).join(" "),
|
|
2784
|
+
].filter(Boolean).join(" "), et = (U ?? K) && /* @__PURE__ */ i("div", { className: ot, style: Ge.get(), children: K ?? U }), pt = (Qe ?? et) && /* @__PURE__ */ j(tt, { children: [
|
|
2892
2785
|
Qe,
|
|
2893
|
-
|
|
2786
|
+
et
|
|
2894
2787
|
] }), Ke = T();
|
|
2895
|
-
return fe === "end" ? (
|
|
2896
|
-
/* @__PURE__ */
|
|
2897
|
-
/* @__PURE__ */
|
|
2788
|
+
return fe === "end" ? (Ne.set("gridColumn", 2), Ge.set("gridColumn", 2), Ke.set("gridColumn", 1)) : fe === "start" ? (Ne.set("gridColumn", 1), Ge.set("gridColumn", 1), Ke.set("gridColumn", 2), Ke.set("gridRow", 1)) : (Le.set("gridTemplateColumns", "1fr"), Le.set("justifyItems", "start")), fe === "top" && (Ke.set("order", 1), Ge.set("order", 2)), /* @__PURE__ */ j("div", { className: Be, style: Le.get(), children: [
|
|
2789
|
+
/* @__PURE__ */ i("div", { className: "uui-switch-control-wrapper", style: Ke.get(), children: /* @__PURE__ */ j("div", { className: Ze, ref: ne, style: le.get(), children: [
|
|
2790
|
+
/* @__PURE__ */ i(
|
|
2898
2791
|
"input",
|
|
2899
2792
|
{
|
|
2900
2793
|
"aria-label": Se,
|
|
2901
|
-
"aria-readonly":
|
|
2794
|
+
"aria-readonly": D === !0 ? !0 : void 0,
|
|
2902
2795
|
checked: !!se,
|
|
2903
|
-
className:
|
|
2796
|
+
className: L,
|
|
2904
2797
|
disabled: te,
|
|
2905
2798
|
id: _,
|
|
2906
|
-
name:
|
|
2799
|
+
name: b,
|
|
2907
2800
|
onBlur: ge,
|
|
2908
|
-
onChange:
|
|
2801
|
+
onChange: $e,
|
|
2909
2802
|
onClick: pe,
|
|
2910
2803
|
onFocus: qe,
|
|
2911
|
-
readOnly:
|
|
2912
|
-
ref:
|
|
2804
|
+
readOnly: D,
|
|
2805
|
+
ref: ft(oe, n),
|
|
2913
2806
|
type: "checkbox",
|
|
2914
|
-
value:
|
|
2807
|
+
value: v,
|
|
2915
2808
|
...Ve
|
|
2916
2809
|
}
|
|
2917
2810
|
),
|
|
2918
|
-
|
|
2811
|
+
Xe
|
|
2919
2812
|
] }) }),
|
|
2920
2813
|
pt,
|
|
2921
|
-
|
|
2814
|
+
Fe && /* @__PURE__ */ i(kt, { align: Q, tooltip: Fe, triggerRef: oe })
|
|
2922
2815
|
] });
|
|
2923
2816
|
});
|
|
2924
|
-
|
|
2925
|
-
function
|
|
2926
|
-
const
|
|
2927
|
-
return e === "circular" ? /* @__PURE__ */
|
|
2928
|
-
/* @__PURE__ */
|
|
2929
|
-
/* @__PURE__ */
|
|
2930
|
-
/* @__PURE__ */
|
|
2931
|
-
/* @__PURE__ */
|
|
2932
|
-
/* @__PURE__ */
|
|
2933
|
-
/* @__PURE__ */
|
|
2934
|
-
/* @__PURE__ */
|
|
2935
|
-
/* @__PURE__ */
|
|
2936
|
-
] }) : e === "orbit" ? /* @__PURE__ */
|
|
2937
|
-
/* @__PURE__ */
|
|
2938
|
-
/* @__PURE__ */
|
|
2939
|
-
/* @__PURE__ */
|
|
2940
|
-
/* @__PURE__ */
|
|
2941
|
-
/* @__PURE__ */
|
|
2942
|
-
/* @__PURE__ */
|
|
2943
|
-
/* @__PURE__ */
|
|
2944
|
-
/* @__PURE__ */
|
|
2945
|
-
] }) : e === "arc" ? /* @__PURE__ */
|
|
2946
|
-
/* @__PURE__ */
|
|
2947
|
-
/* @__PURE__ */
|
|
2817
|
+
Dr.displayName = "Switch";
|
|
2818
|
+
function Rr({ variant: e = "circular", inline: n, className: t }) {
|
|
2819
|
+
const r = ["uui-spinner", `uui-spinner-${e}`, n && "uui-spinner-inline", t].filter(Boolean).join(" ");
|
|
2820
|
+
return e === "circular" ? /* @__PURE__ */ i("svg", { "aria-hidden": "true", className: r, viewBox: "22 22 44 44", children: /* @__PURE__ */ i("circle", { className: "uui-spinner-circle", cx: "44", cy: "44", fill: "none", r: "19.8", strokeWidth: "4.6" }) }) : e === "bars2" ? /* @__PURE__ */ j("svg", { className: "uui-bars-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2821
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", width: "4", x: "22" }),
|
|
2822
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", transform: "rotate(-135 33.9 16.9)", width: "4", x: "33.9", y: "16.9" }),
|
|
2823
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", transform: "rotate(-90 36 26)", width: "4", x: "36", y: "26" }),
|
|
2824
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", transform: "rotate(-45 31.1 33.9)", width: "4", x: "31.1", y: "33.9" }),
|
|
2825
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", width: "4", x: "22", y: "36" }),
|
|
2826
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", transform: "rotate(-135 8.4 42.4)", width: "4", x: "8.4", y: "42.4" }),
|
|
2827
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", transform: "rotate(-90 0 26)", width: "4", y: "26" }),
|
|
2828
|
+
/* @__PURE__ */ i("rect", { height: "12", rx: "2", transform: "rotate(-45 5.6 8.4)", width: "4", x: "5.6", y: "8.4" })
|
|
2829
|
+
] }) : e === "orbit" ? /* @__PURE__ */ j("svg", { className: "uui-orbit-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2830
|
+
/* @__PURE__ */ i("circle", { cx: "24", cy: "4", r: "4" }),
|
|
2831
|
+
/* @__PURE__ */ i("circle", { cx: "38.1421", cy: "9.8579", r: "4" }),
|
|
2832
|
+
/* @__PURE__ */ i("circle", { cx: "44", cy: "24", r: "4" }),
|
|
2833
|
+
/* @__PURE__ */ i("circle", { cx: "38.1421", cy: "38.1421", r: "4" }),
|
|
2834
|
+
/* @__PURE__ */ i("circle", { cx: "24", cy: "44", r: "4" }),
|
|
2835
|
+
/* @__PURE__ */ i("circle", { cx: "9.8579", cy: "38.1421", r: "4" }),
|
|
2836
|
+
/* @__PURE__ */ i("circle", { cx: "4", cy: "24", r: "4" }),
|
|
2837
|
+
/* @__PURE__ */ i("circle", { cx: "9.8579", cy: "9.8579", r: "4" })
|
|
2838
|
+
] }) : e === "arc" ? /* @__PURE__ */ j("svg", { className: "uui-ring-spinner", viewBox: "0 0 56 56", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2839
|
+
/* @__PURE__ */ i("circle", { cx: "28", cy: "28", fill: "none", opacity: "0.25", r: "22", stroke: "currentColor", strokeWidth: "8" }),
|
|
2840
|
+
/* @__PURE__ */ i(
|
|
2948
2841
|
"circle",
|
|
2949
2842
|
{
|
|
2950
2843
|
cx: "28",
|
|
@@ -2958,54 +2851,58 @@ function pi({ variant: e = "circular", inline: t, className: n }) {
|
|
|
2958
2851
|
strokeWidth: "8"
|
|
2959
2852
|
}
|
|
2960
2853
|
)
|
|
2961
|
-
] }) : e === "stepBar" ? /* @__PURE__ */
|
|
2962
|
-
/* @__PURE__ */
|
|
2963
|
-
/* @__PURE__ */
|
|
2964
|
-
/* @__PURE__ */
|
|
2965
|
-
] }) : /* @__PURE__ */
|
|
2966
|
-
/* @__PURE__ */
|
|
2967
|
-
/* @__PURE__ */
|
|
2968
|
-
/* @__PURE__ */
|
|
2854
|
+
] }) : e === "stepBar" ? /* @__PURE__ */ j("svg", { className: "uui-bars-steps", viewBox: "0 0 48 48", children: [
|
|
2855
|
+
/* @__PURE__ */ i("rect", { height: "8", rx: "4", width: "8", x: "6", y: "20" }),
|
|
2856
|
+
/* @__PURE__ */ i("rect", { height: "8", rx: "4", width: "8", x: "20", y: "20" }),
|
|
2857
|
+
/* @__PURE__ */ i("rect", { height: "8", rx: "4", width: "8", x: "34", y: "20" })
|
|
2858
|
+
] }) : /* @__PURE__ */ j("svg", { className: "uui-dots2-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2859
|
+
/* @__PURE__ */ i("circle", { cx: "10", cy: "24", r: "4" }),
|
|
2860
|
+
/* @__PURE__ */ i("circle", { cx: "24", cy: "24", r: "4" }),
|
|
2861
|
+
/* @__PURE__ */ i("circle", { cx: "38", cy: "24", r: "4" })
|
|
2969
2862
|
] });
|
|
2970
2863
|
}
|
|
2971
|
-
function
|
|
2972
|
-
const e =
|
|
2864
|
+
function mi() {
|
|
2865
|
+
const e = It(Cn);
|
|
2973
2866
|
if (!e)
|
|
2974
2867
|
throw new Error("useTheme must be used within a <ThemeProvider>");
|
|
2975
2868
|
return e;
|
|
2976
2869
|
}
|
|
2977
|
-
const
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2870
|
+
const vn = Symbol.for("uui.divider");
|
|
2871
|
+
function Pt(e) {
|
|
2872
|
+
return vt(e) && typeof e.type != "string" && !!e.type[vn];
|
|
2873
|
+
}
|
|
2874
|
+
const jr = xt(null), pi = xt(null), kt = ({ tooltip: e, align: n, triggerRef: t }) => {
|
|
2875
|
+
const [r, s] = ee(!1), [o, u] = ee(null), l = ce(null), { bgColor: m, textOnColor: p } = Vt("inverseSurface");
|
|
2876
|
+
ye(() => {
|
|
2877
|
+
const f = t.current;
|
|
2981
2878
|
if (!f)
|
|
2982
2879
|
return;
|
|
2983
|
-
const
|
|
2880
|
+
const x = () => {
|
|
2984
2881
|
s(!0);
|
|
2985
2882
|
}, g = () => {
|
|
2986
2883
|
s(!1), u(null);
|
|
2987
|
-
},
|
|
2988
|
-
|
|
2884
|
+
}, w = (F) => {
|
|
2885
|
+
F.target.matches(":focus-visible") && s(!0);
|
|
2989
2886
|
};
|
|
2990
|
-
return f.addEventListener("mouseenter",
|
|
2991
|
-
f.removeEventListener("mouseenter",
|
|
2887
|
+
return f.addEventListener("mouseenter", x), f.addEventListener("mouseleave", g), f.addEventListener("focus", w), f.addEventListener("blur", g), () => {
|
|
2888
|
+
f.removeEventListener("mouseenter", x), f.removeEventListener("mouseleave", g), f.removeEventListener("focus", w), f.removeEventListener("blur", g);
|
|
2992
2889
|
};
|
|
2993
|
-
}, [
|
|
2994
|
-
if (!
|
|
2890
|
+
}, [t]), ye(() => {
|
|
2891
|
+
if (!r)
|
|
2995
2892
|
return;
|
|
2996
2893
|
const f = requestAnimationFrame(() => {
|
|
2997
|
-
if (!l.current || !
|
|
2894
|
+
if (!l.current || !t.current)
|
|
2998
2895
|
return;
|
|
2999
|
-
const
|
|
3000
|
-
placement:
|
|
2896
|
+
const x = pn(t, l, {
|
|
2897
|
+
placement: n,
|
|
3001
2898
|
offset: 8
|
|
3002
2899
|
});
|
|
3003
|
-
|
|
2900
|
+
x && u({ x: x.x, y: x.y });
|
|
3004
2901
|
});
|
|
3005
2902
|
return () => {
|
|
3006
2903
|
cancelAnimationFrame(f);
|
|
3007
2904
|
};
|
|
3008
|
-
}, [
|
|
2905
|
+
}, [n, r, t]);
|
|
3009
2906
|
const c = {
|
|
3010
2907
|
position: "absolute",
|
|
3011
2908
|
top: (o == null ? void 0 : o.y) ?? -9999,
|
|
@@ -3013,7 +2910,7 @@ const kt = ({ tooltip: e, align: t, triggerRef: n }) => {
|
|
|
3013
2910
|
zIndex: 1e3,
|
|
3014
2911
|
opacity: o ? 1 : 0,
|
|
3015
2912
|
pointerEvents: "none",
|
|
3016
|
-
visibility: o &&
|
|
2913
|
+
visibility: o && r ? "visible" : "hidden"
|
|
3017
2914
|
}, a = [
|
|
3018
2915
|
p,
|
|
3019
2916
|
m,
|
|
@@ -3024,16 +2921,16 @@ const kt = ({ tooltip: e, align: t, triggerRef: n }) => {
|
|
|
3024
2921
|
"uui-py-1",
|
|
3025
2922
|
"uui-corner-small"
|
|
3026
2923
|
].join(" ");
|
|
3027
|
-
return
|
|
3028
|
-
/* @__PURE__ */
|
|
2924
|
+
return Wt(
|
|
2925
|
+
/* @__PURE__ */ i("div", { className: a, ref: l, role: "tooltip", style: c, children: e }),
|
|
3029
2926
|
document.body
|
|
3030
2927
|
);
|
|
3031
2928
|
};
|
|
3032
2929
|
kt.displayName = "InlineTooltipManager";
|
|
3033
|
-
const
|
|
2930
|
+
const Ct = P((e, n) => {
|
|
3034
2931
|
const {
|
|
3035
|
-
color:
|
|
3036
|
-
selectedColor:
|
|
2932
|
+
color: t,
|
|
2933
|
+
selectedColor: r,
|
|
3037
2934
|
className: s,
|
|
3038
2935
|
label: o,
|
|
3039
2936
|
title: u,
|
|
@@ -3043,24 +2940,24 @@ const yt = A((e, t) => {
|
|
|
3043
2940
|
borderColor: c,
|
|
3044
2941
|
hoverEffects: a = ["overlay", "elevate"],
|
|
3045
2942
|
pressedEffects: f = ["overlay", "elevate"],
|
|
3046
|
-
touchEffects:
|
|
2943
|
+
touchEffects: x = ["ripple"],
|
|
3047
2944
|
selectedEffects: g = ["morph", "color"],
|
|
3048
|
-
focusEffects:
|
|
3049
|
-
children:
|
|
3050
|
-
outlined:
|
|
2945
|
+
focusEffects: w = ["ring", "overlay"],
|
|
2946
|
+
children: F,
|
|
2947
|
+
outlined: b = !1,
|
|
3051
2948
|
filled: h = !1,
|
|
3052
|
-
tonal:
|
|
3053
|
-
elevated:
|
|
3054
|
-
flat:
|
|
3055
|
-
elevation:
|
|
3056
|
-
disabled:
|
|
2949
|
+
tonal: $ = !1,
|
|
2950
|
+
elevated: k = !1,
|
|
2951
|
+
flat: S = !1,
|
|
2952
|
+
elevation: M,
|
|
2953
|
+
disabled: A,
|
|
3057
2954
|
textColor: q,
|
|
3058
|
-
selectedTextColor:
|
|
3059
|
-
shape:
|
|
3060
|
-
selectedShape:
|
|
3061
|
-
icon:
|
|
3062
|
-
selectedIcon:
|
|
3063
|
-
leading:
|
|
2955
|
+
selectedTextColor: E,
|
|
2956
|
+
shape: I = "round",
|
|
2957
|
+
selectedShape: y = "rounded",
|
|
2958
|
+
icon: C,
|
|
2959
|
+
selectedIcon: v,
|
|
2960
|
+
leading: N,
|
|
3064
2961
|
endIcon: Z,
|
|
3065
2962
|
trailing: U,
|
|
3066
2963
|
onClick: X,
|
|
@@ -3069,88 +2966,88 @@ const yt = A((e, t) => {
|
|
|
3069
2966
|
upload: K,
|
|
3070
2967
|
uploadAccept: Me,
|
|
3071
2968
|
uploadMultiple: De,
|
|
3072
|
-
onUploadChange:
|
|
3073
|
-
id:
|
|
2969
|
+
onUploadChange: V,
|
|
2970
|
+
id: O = "",
|
|
3074
2971
|
name: Q = "",
|
|
3075
2972
|
loading: fe,
|
|
3076
2973
|
fullWidth: de = !1,
|
|
3077
|
-
link:
|
|
2974
|
+
link: D,
|
|
3078
2975
|
selected: Ve,
|
|
3079
|
-
defaultSelected:
|
|
2976
|
+
defaultSelected: ke,
|
|
3080
2977
|
toggle: z = !1,
|
|
3081
2978
|
tooltipAlign: te = "auto",
|
|
3082
2979
|
density: W,
|
|
3083
2980
|
style: ie,
|
|
3084
2981
|
"aria-label": We,
|
|
3085
2982
|
...oe
|
|
3086
|
-
} = e, ne = Ve !== void 0, [
|
|
2983
|
+
} = e, ne = Ve !== void 0, [ve, He] = ee(ke ?? !1), _ = ne ? Ve : ve, me = ce(null), Ee = ce(null), Re = ce(null), se = ce($t("button")), Se = O || Q || se.current, Ce = D ? lt.cloneElement(D, { ref: Ee, style: { display: "none" } }) : null, Fe = [
|
|
3087
2984
|
we,
|
|
3088
2985
|
s,
|
|
3089
2986
|
"uui-wrapper uui-bb",
|
|
3090
|
-
|
|
2987
|
+
dt(W),
|
|
3091
2988
|
...de ? ["uui-full"] : []
|
|
3092
|
-
].filter(Boolean).join(" "),
|
|
2989
|
+
].filter(Boolean).join(" "), $e = [
|
|
3093
2990
|
"uui-btn-control",
|
|
3094
|
-
|
|
2991
|
+
Ie(he),
|
|
3095
2992
|
...h ? ["uui-filled"] : [],
|
|
3096
|
-
...
|
|
3097
|
-
|
|
3098
|
-
...
|
|
3099
|
-
...
|
|
3100
|
-
...
|
|
2993
|
+
...k ? ["uui-elevated"] : [],
|
|
2994
|
+
...$ ? ["uui-tonal"] : [],
|
|
2995
|
+
...b ? ["uui-outlined"] : [],
|
|
2996
|
+
...w.includes("ring") ? ["uui-focus-ring"] : [],
|
|
2997
|
+
...w.includes("overlay") ? ["uui-focus-overlay"] : [],
|
|
3101
2998
|
...a.includes("overlay") ? ["uui-hover-overlay"] : [],
|
|
3102
2999
|
...f.includes("overlay") ? ["uui-pressed-overlay"] : [],
|
|
3103
3000
|
...g.includes("overlay") ? ["uui-selected-overlay"] : [],
|
|
3104
3001
|
...fe ? ["uui-loading"] : [],
|
|
3105
3002
|
...de ? ["uui-full"] : [],
|
|
3106
|
-
|
|
3003
|
+
...F ? [] : [wt(m)],
|
|
3107
3004
|
..._ ? ["uui-selected"] : []
|
|
3108
|
-
], pe = ["uui-state"], qe = z && _ && g.includes("morph") ?
|
|
3109
|
-
|
|
3110
|
-
const ge = "uui-icon",
|
|
3005
|
+
], pe = ["uui-state"], qe = z && _ && g.includes("morph") ? Ue(y) : Ue(I);
|
|
3006
|
+
$e.push(qe), pe.push(qe);
|
|
3007
|
+
const ge = "uui-icon", Le = z && _ ? v ?? N ?? C : N ?? C, Be = fe ? /* @__PURE__ */ i("div", { className: ge, children: /* @__PURE__ */ i(Rr, {}) }) : Le && /* @__PURE__ */ i("div", { className: ge, children: Le }), Ze = (U ?? Z) && /* @__PURE__ */ i("div", { className: ge, children: U ?? Z });
|
|
3111
3008
|
let le;
|
|
3112
|
-
if (
|
|
3113
|
-
const J = ["uui-btn-content uui-overflow-hidden", qe,
|
|
3114
|
-
le = /* @__PURE__ */
|
|
3009
|
+
if (F) {
|
|
3010
|
+
const J = ["uui-btn-content uui-overflow-hidden", qe, Ie(he)].filter(Boolean).join(" ");
|
|
3011
|
+
le = /* @__PURE__ */ i("div", { className: J, children: F });
|
|
3115
3012
|
} else
|
|
3116
|
-
le = /* @__PURE__ */
|
|
3117
|
-
|
|
3118
|
-
o && /* @__PURE__ */
|
|
3013
|
+
le = /* @__PURE__ */ j("div", { className: "uui-btn-content", children: [
|
|
3014
|
+
Be,
|
|
3015
|
+
o && /* @__PURE__ */ i("span", { className: "uui-label " + Ie(he), children: o }),
|
|
3119
3016
|
Ze
|
|
3120
3017
|
] });
|
|
3121
|
-
const
|
|
3122
|
-
if (
|
|
3123
|
-
|
|
3124
|
-
const
|
|
3125
|
-
|
|
3018
|
+
const L = T(ie), Y = T();
|
|
3019
|
+
if (b || p !== void 0) {
|
|
3020
|
+
L.border(mt(c));
|
|
3021
|
+
const Xe = nt(p ?? (b ? 1 : 0));
|
|
3022
|
+
$e.push(Xe);
|
|
3126
3023
|
}
|
|
3127
|
-
let Te =
|
|
3128
|
-
|
|
3024
|
+
let Te = M;
|
|
3025
|
+
M === void 0 && ($ || h ? S || (Te = k ? 1 : 0) : k && (Te = 1));
|
|
3129
3026
|
const G = [
|
|
3130
|
-
...a.includes("elevate") && !
|
|
3131
|
-
...f.includes("elevate") && !
|
|
3027
|
+
...a.includes("elevate") && !S ? ["uui-hover-elevate"] : [],
|
|
3028
|
+
...f.includes("elevate") && !S ? ["uui-pressed-elevate"] : []
|
|
3132
3029
|
];
|
|
3133
|
-
|
|
3030
|
+
$e.push(...G, ut(Te));
|
|
3134
3031
|
const Je = () => {
|
|
3135
|
-
h ? (
|
|
3032
|
+
h ? (L.bg(t ?? "primary"), Y.bg.on(t ?? "primary"), q ? L.text(q) : L.text.on(t ?? "primary")) : $ ? (L.bg.container("secondary"), Y.bg.onContainer("secondary"), q ? L.text(q) : L.text.onContainer("secondary")) : k ? (L.bg("surfaceContainerLow"), L.text(q ?? t ?? "primary"), Y.bg(t ?? "primary")) : b && !q ? (L.text.on("surfaceVariant"), Y.bg.on("surfaceVariant")) : (L.text(q ?? t ?? "primary"), Y.bg(q ?? t ?? "primary"));
|
|
3136
3033
|
}, _e = () => {
|
|
3137
|
-
|
|
3034
|
+
t ? (L.bg(t), Y.bg.on(t), L.text.on(t)) : h ? (L.bg("surfaceContainer"), Y.bg.on("surfaceContainer"), L.text.on("surfaceVariant")) : k ? (L.bg("surfaceContainerLow"), Y.bg.on("surfaceContainerLow"), L.text("primary")) : $ ? (L.bg.container("secondary"), Y.bg("secondary"), L.text.onContainer("secondary")) : b && !q ? (L.text.on("surfaceVariant"), Y.bg.on("surfaceVariant")) : (L.text(q ?? t ?? "primary"), Y.bg(q ?? t ?? "primary")), q && L.text(q);
|
|
3138
3035
|
}, H = () => {
|
|
3139
|
-
const J =
|
|
3140
|
-
|
|
3036
|
+
const J = r ?? t ?? "primary";
|
|
3037
|
+
$ && !r ? (L.bg("secondary"), Y.bg.on("secondary"), E ? L.text(E) : L.text.on("secondary")) : b && !r ? (L.bg("inverseSurface"), Y.bg.on("inverseSurface"), E ? L.text(E) : L.text.on("inverseSurface")) : (L.bg(J), Y.bg.on(J), E ? L.text(E) : L.text.on(J));
|
|
3141
3038
|
};
|
|
3142
3039
|
z && g.includes("color") ? _ ? H() : _e() : Je();
|
|
3143
3040
|
const ae = (J) => {
|
|
3144
|
-
var
|
|
3145
|
-
if (!
|
|
3041
|
+
var Xe;
|
|
3042
|
+
if (!A) {
|
|
3146
3043
|
if (z) {
|
|
3147
|
-
const
|
|
3148
|
-
ne || He(
|
|
3044
|
+
const Ne = !_;
|
|
3045
|
+
ne || He(Ne), (Xe = e.onChange) == null || Xe.call(e, {
|
|
3149
3046
|
...J,
|
|
3150
3047
|
target: {
|
|
3151
3048
|
...J.target,
|
|
3152
3049
|
name: Q,
|
|
3153
|
-
value:
|
|
3050
|
+
value: Ne
|
|
3154
3051
|
}
|
|
3155
3052
|
});
|
|
3156
3053
|
}
|
|
@@ -3162,139 +3059,146 @@ const yt = A((e, t) => {
|
|
|
3162
3059
|
me.current.click();
|
|
3163
3060
|
return;
|
|
3164
3061
|
}
|
|
3165
|
-
X && X(J),
|
|
3062
|
+
X && X(J), x.includes("ripple") && St(J.currentTarget, J);
|
|
3166
3063
|
}
|
|
3167
|
-
},
|
|
3168
|
-
let
|
|
3169
|
-
o &&
|
|
3170
|
-
const
|
|
3171
|
-
return /* @__PURE__ */
|
|
3172
|
-
K && /* @__PURE__ */
|
|
3064
|
+
}, je = u ? /* @__PURE__ */ i("div", { id: `${Se}-tip`, children: u }) : null;
|
|
3065
|
+
let Ae;
|
|
3066
|
+
o && F && (Ae = o), !o && !F && (Ae = u);
|
|
3067
|
+
const Oe = We ?? Ae;
|
|
3068
|
+
return /* @__PURE__ */ j("div", { className: Fe, children: [
|
|
3069
|
+
K && /* @__PURE__ */ i(
|
|
3173
3070
|
"input",
|
|
3174
3071
|
{
|
|
3175
3072
|
accept: Me,
|
|
3176
3073
|
"aria-labelledby": Se,
|
|
3177
3074
|
multiple: De,
|
|
3178
|
-
onChange:
|
|
3075
|
+
onChange: V,
|
|
3179
3076
|
ref: me,
|
|
3180
3077
|
style: { display: "none" },
|
|
3181
3078
|
type: "file"
|
|
3182
3079
|
}
|
|
3183
3080
|
),
|
|
3184
|
-
/* @__PURE__ */
|
|
3081
|
+
/* @__PURE__ */ j(
|
|
3185
3082
|
"button",
|
|
3186
3083
|
{
|
|
3187
3084
|
"aria-busy": fe,
|
|
3188
3085
|
"aria-describedby": u ? `${Se}-tip` : void 0,
|
|
3189
3086
|
"aria-haspopup": K ? "dialog" : void 0,
|
|
3190
|
-
"aria-label":
|
|
3087
|
+
"aria-label": Oe,
|
|
3191
3088
|
"aria-pressed": z ? _ : void 0,
|
|
3192
|
-
className:
|
|
3193
|
-
disabled:
|
|
3089
|
+
className: $e.join(" "),
|
|
3090
|
+
disabled: A,
|
|
3194
3091
|
id: Se,
|
|
3195
3092
|
name: Q || void 0,
|
|
3196
3093
|
onClick: ae,
|
|
3197
|
-
ref:
|
|
3198
|
-
style:
|
|
3094
|
+
ref: ft(n, Re),
|
|
3095
|
+
style: L.get(),
|
|
3199
3096
|
type: l,
|
|
3200
3097
|
...oe,
|
|
3201
3098
|
children: [
|
|
3202
|
-
/* @__PURE__ */
|
|
3099
|
+
/* @__PURE__ */ i("div", { className: pe.join(" "), style: Y.get() }),
|
|
3203
3100
|
le
|
|
3204
3101
|
]
|
|
3205
3102
|
}
|
|
3206
3103
|
),
|
|
3207
3104
|
Ce,
|
|
3208
|
-
|
|
3105
|
+
je && /* @__PURE__ */ i(kt, { align: te, tooltip: je, triggerRef: Re })
|
|
3209
3106
|
] });
|
|
3210
3107
|
});
|
|
3211
|
-
|
|
3108
|
+
Ct.displayName = "ButtonBase";
|
|
3212
3109
|
export {
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3110
|
+
pr as Article,
|
|
3111
|
+
Cr as Aside,
|
|
3112
|
+
qt as Badge,
|
|
3113
|
+
Ye as BoxBase,
|
|
3114
|
+
Dn as Button,
|
|
3115
|
+
Ct as ButtonBase,
|
|
3116
|
+
Un as Card,
|
|
3117
|
+
Gn as Checkbox,
|
|
3221
3118
|
_t as CheckboxBase,
|
|
3222
|
-
|
|
3223
|
-
|
|
3119
|
+
Rn as Chip,
|
|
3120
|
+
gr as Content,
|
|
3224
3121
|
T as ControlStyle,
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3122
|
+
oi as DateInput,
|
|
3123
|
+
si as DateTimeInput,
|
|
3124
|
+
kr as Dialog,
|
|
3125
|
+
Br as DialogActions,
|
|
3229
3126
|
Lr as DialogContent,
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
Gt as
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3127
|
+
Fr as DialogTitle,
|
|
3128
|
+
xr as Div,
|
|
3129
|
+
hn as Divider,
|
|
3130
|
+
li as EmailInput,
|
|
3131
|
+
Xn as Fab,
|
|
3132
|
+
at as FieldBase,
|
|
3133
|
+
bn as Fieldset,
|
|
3134
|
+
pi as FieldsetContext,
|
|
3135
|
+
yr as Flex,
|
|
3136
|
+
fr as Footer,
|
|
3137
|
+
vr as Grid,
|
|
3138
|
+
dr as Header,
|
|
3139
|
+
vn as IS_DIVIDER,
|
|
3140
|
+
yn as IS_MENU,
|
|
3141
|
+
Gt as IS_MENU_ITEM,
|
|
3142
|
+
zn as IconButton,
|
|
3143
|
+
Xt as ListItem,
|
|
3144
|
+
mr as Main,
|
|
3145
|
+
Kt as Menu,
|
|
3146
|
+
gn as MenuItem,
|
|
3147
|
+
br as Nav,
|
|
3148
|
+
ai as NumberInput,
|
|
3149
|
+
or as Radio,
|
|
3150
|
+
Nr as RadioGroup,
|
|
3151
|
+
jr as RadioGroupContext,
|
|
3152
|
+
hr as Section,
|
|
3153
|
+
Rr as Spinner,
|
|
3154
|
+
Dr as Switch,
|
|
3155
|
+
ui as TelInput,
|
|
3156
|
+
lr as TextField,
|
|
3157
|
+
Nn as ThemeExtendedColorKeys,
|
|
3158
|
+
ci as ThemeProvider,
|
|
3159
|
+
fn as ThemeSchemeKeys,
|
|
3160
|
+
cn as ThemeSemanticColorKeys,
|
|
3161
|
+
dn as ThemeSurfaceColorKeys,
|
|
3162
|
+
di as TimeInput,
|
|
3163
|
+
Yn as ToggleButton,
|
|
3164
|
+
cr as Tooltip,
|
|
3165
|
+
fi as UrlInput,
|
|
3166
|
+
pn as calculateFloatingPosition,
|
|
3167
|
+
Pn as clampInt,
|
|
3168
|
+
ti as createRipple,
|
|
3169
|
+
Xr as getAlignClass,
|
|
3170
|
+
In as getAnimationClass,
|
|
3171
|
+
Wr as getAnimationList,
|
|
3172
|
+
zr as getBodySizeClass,
|
|
3173
|
+
An as getBorderClass,
|
|
3174
|
+
mt as getBorderColor,
|
|
3175
|
+
Ht as getBorderColorClass,
|
|
3176
|
+
Hr as getColorClasses,
|
|
3177
|
+
Gr as getCurrentColorClasses,
|
|
3178
|
+
Qr as getDensityClass,
|
|
3179
|
+
ri as getElementDisplayName,
|
|
3180
|
+
On as getElevationClass,
|
|
3181
|
+
Kr as getFixedColorClasses,
|
|
3182
|
+
tn as getFontClass,
|
|
3183
|
+
En as getMotionStyleClass,
|
|
3184
|
+
Jr as getOutlineClass,
|
|
3185
|
+
Tn as getSemanticColorClasses,
|
|
3186
|
+
qr as getSemanticColorVar,
|
|
3187
|
+
jn as getShapeClass,
|
|
3188
|
+
Yr as getSizeClass,
|
|
3287
3189
|
Vt as getSurfaceColorClasses,
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
Pt as
|
|
3294
|
-
|
|
3190
|
+
mn as getSurfaceColorVar,
|
|
3191
|
+
_r as getTintOverlayColor,
|
|
3192
|
+
Zr as hexToRgb,
|
|
3193
|
+
Mn as hexToRgbValues,
|
|
3194
|
+
Tt as inverseColorMap,
|
|
3195
|
+
Pt as isDivider,
|
|
3196
|
+
ht as isMenu,
|
|
3197
|
+
Ot as isMenuItem,
|
|
3198
|
+
ei as mergeRefs,
|
|
3295
3199
|
Mt as motionClassMap,
|
|
3296
|
-
|
|
3200
|
+
ii as setFocusVisible,
|
|
3297
3201
|
nn as toKebabCase,
|
|
3298
|
-
|
|
3299
|
-
|
|
3202
|
+
ni as uniqueID,
|
|
3203
|
+
mi as useTheme
|
|
3300
3204
|
};
|