@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.
Files changed (62) hide show
  1. package/README.md +29 -3
  2. package/components/article/article.d.ts +1 -1
  3. package/components/aside/aside.d.ts +1 -1
  4. package/components/avatar/avatar.d.ts +1 -1
  5. package/components/badge/badge.d.ts +1 -1
  6. package/components/base/boxBase/boxBase.d.ts +1 -1
  7. package/components/base/buttonBase/buttonBase.d.ts +1 -1
  8. package/components/base/checkboxBase/checkboxBase.d.ts +2 -2
  9. package/components/base/dialogBase/dialog.d.ts +2 -2
  10. package/components/base/fieldBase/fieldBase.d.ts +1 -1
  11. package/components/base/inlineBase/inlineBase.d.ts +1 -1
  12. package/components/button/button.d.ts +1 -1
  13. package/components/checkbox/checkbox.d.ts +1 -1
  14. package/components/chip/chip.d.ts +1 -1
  15. package/components/content/content.d.ts +1 -1
  16. package/components/dateInput/dateInput.d.ts +1 -1
  17. package/components/dateTimeInput/dateTimeInput.d.ts +1 -1
  18. package/components/dialog/dialogActions.d.ts +1 -1
  19. package/components/dialog/dialogTitle.d.ts +1 -1
  20. package/components/div/div.d.ts +1 -1
  21. package/components/divider/divider.d.ts +1 -2
  22. package/components/divider/divider.guards.d.ts +1 -1
  23. package/components/emailInput/emailInput.d.ts +1 -1
  24. package/components/fab/fab.d.ts +1 -1
  25. package/components/fieldset/fieldset.d.ts +1 -1
  26. package/components/flex/flex.d.ts +1 -1
  27. package/components/footer/footer.d.ts +1 -1
  28. package/components/grid/grid.d.ts +1 -1
  29. package/components/header/header.d.ts +1 -1
  30. package/components/iconButton/iconButton.d.ts +1 -1
  31. package/components/listItem/listItem.d.ts +2 -2
  32. package/components/listItem/listItem.guards.d.ts +1 -1
  33. package/components/main/main.d.ts +1 -1
  34. package/components/menu/menu.d.ts +2 -2
  35. package/components/menu/menu.guards.d.ts +1 -1
  36. package/components/menuItem/menuItem.d.ts +2 -2
  37. package/components/menuItem/menuItem.guards.d.ts +1 -1
  38. package/components/nav/nav.d.ts +1 -1
  39. package/components/numberInput/numberInput.d.ts +1 -1
  40. package/components/option/option.d.ts +1 -1
  41. package/components/option/option.guards.d.ts +1 -1
  42. package/components/radio/radio.d.ts +1 -1
  43. package/components/radiogroup/radioGroup.d.ts +1 -1
  44. package/components/section/section.d.ts +1 -1
  45. package/components/select/select.d.ts +1 -1
  46. package/components/switch/switch.d.ts +1 -1
  47. package/components/telInput/telInput.d.ts +1 -1
  48. package/components/textField/textField.d.ts +1 -1
  49. package/components/timeInput/timeInput.d.ts +1 -1
  50. package/components/toggleButton/toggleButton.d.ts +1 -1
  51. package/components/tooltip/tooltip.d.ts +1 -1
  52. package/components/urlInput/urlInput.d.ts +1 -1
  53. package/context/themeContext.d.ts +2 -2
  54. package/hooks/useTheme.d.ts +1 -1
  55. package/index.d.ts +5 -1
  56. package/index.mjs +1486 -1582
  57. package/internal/inlineTooltip/inlineTooltipManager.d.ts +1 -1
  58. package/package.json +1 -1
  59. package/utils/calculateFloatingPosition.d.ts +1 -1
  60. package/utils/color.d.ts +1 -1
  61. package/utils/generateMaterialColors.d.ts +1 -1
  62. package/utils/generateSchemes.d.ts +1 -1
package/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { jsx as r, jsxs as L, Fragment as et } from "react/jsx-runtime";
2
- import lt, { forwardRef as A, isValidElement as vt, createContext as Ht, useSyncExternalStore as Nn, useState as ee, useRef as ce, useCallback as xt, useEffect as be, useContext as Lt, useLayoutEffect as ln, cloneElement as Ot, useMemo as an } from "react";
3
- import { createPortal as qt } from "react-dom";
4
- import { argbFromHex as bt, themeFromSourceColor as Bn, hexFromArgb as ye, TonalPalette as Ln } from "@material/material-color-utilities";
5
- const un = (e) => ({
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], je = (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
- }, Ct = (e) => ({
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], tt = (e) => {
38
- const t = cn(0, 5, e);
39
- return t === void 0 ? "" : `uui-border-${t}`;
40
- }, at = (e) => {
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
- }, ft = (e) => {
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
- }, $e = (e) => ({
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 mt(...e) {
86
- return (t) => {
87
- e.forEach((n) => {
88
- if (typeof n == "function")
89
- n(t);
90
- else if (n) {
91
- const i = n;
92
- i.current = t;
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 wt = (e, t, n) => {
98
- const i = n ?? e, s = i.querySelector(".ripple-container");
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 = i.getBoundingClientRect(), l = t.clientX - o.left, m = t.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), b = f / 2, g = document.createElement("div");
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 x = document.createElement("span");
105
- x.className = "ripple", x.style.position = "absolute", x.style.width = `${f}px`, x.style.height = `${f}px`, x.style.left = `${c - b}px`, x.style.top = `${a - b}px`, g.appendChild(x), i.appendChild(g), x.addEventListener("animationend", () => {
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
- }, St = (e) => (
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 It(e) {
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 cn(e, t, n, i) {
116
- const s = Number(n);
117
- return Number.isFinite(s) ? Math.min(t, Math.max(e, Math.round(s))) : i;
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
- function In({ variant: e = "circular", inline: t, className: n }) {
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
- ], En = [
174
- ...dn,
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
- ], fn = [
199
- ...En,
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
- ], mn = [
215
- ...fn,
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 Tn(e) {
233
+ function In(e) {
280
234
  return e ? Mt[e] ?? "" : "";
281
235
  }
282
- function Hr() {
236
+ function Wr() {
283
237
  return Object.keys(Mt);
284
238
  }
285
- function Mn(e) {
239
+ function En(e) {
286
240
  return e === "expressive" ? "uui-motion-expressive" : "";
287
241
  }
288
- const Vn = (e) => {
289
- const t = dn.includes(e) ? e : "primary";
242
+ const Tn = (e) => {
243
+ const n = cn.includes(e) ? e : "primary";
290
244
  return {
291
- textColor: `uui-text-${t}`,
292
- borderColor: `uui-border-${t}`,
293
- bgColor: `uui-bg-${t}`,
294
- textOnColor: `uui-text-on-${t}`,
295
- borderOnColor: `uui-border-on-${t}`,
296
- bgOnColor: `uui-bg-on-${t}`,
297
- textContainer: `uui-text-${t}-container`,
298
- borderContainer: `uui-border-${t}-container`,
299
- bgContainer: `uui-bg-${t}-container`,
300
- textOnContainer: `uui-text-on-${t}-container`,
301
- borderOnContainer: `uui-border-on-${t}-container`,
302
- bgOnContainer: `uui-bg-on-${t}-container`,
303
- textFixed: `uui-text-${t}-fixed`,
304
- borderFixed: `uui-border-${t}-fixed`,
305
- bgFixed: `uui-bg-${t}-fixed`,
306
- textOnFixed: `uui-text-on-${t}-fixed`,
307
- borderOnFixed: `uui-border-on-${t}-fixed`,
308
- bgOnFixed: `uui-bg-on-${t}-fixed`,
309
- textFixedDim: `uui-text-${t}-fixed-dim`,
310
- borderFixedDim: `uui-border-${t}-fixed-dim`,
311
- bgFixedDim: `uui-bg-${t}-fixed-dim`,
312
- textOnFixedVariant: `uui-text-on-${t}-fixed-variant`,
313
- borderOnFixedVariant: `uui-border-on-${t}-fixed-variant`,
314
- bgOnFixedVariant: `uui-bg-on-${t}-fixed-variant`
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
- }, Et = {
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 t = fn.includes(e) ? e : "primary", n = It(t), i = It(Et[t]);
338
+ const n = dn.includes(e) ? e : "primary", t = Et(n), r = Et(Tt[n]);
385
339
  return {
386
- textColor: `uui-text-${n}`,
387
- textOnColor: `uui-text-${i}`,
388
- borderColor: `uui-border-${n}`,
389
- borderOnColor: `uui-border-${i}`,
390
- bgColor: `uui-bg-${n}`,
391
- bgOnColor: `uui-bg-${i}`
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
- }, qr = (e) => {
394
- const t = mn.includes(e) ? e : "primary", n = It(t);
347
+ }, Hr = (e) => {
348
+ const n = fn.includes(e) ? e : "primary", t = Et(n);
395
349
  return {
396
- textColor: `uui-text-${n}`,
397
- borderColor: `uui-border-${n}`,
398
- bgColor: `uui-bg-${n}`
350
+ textColor: `uui-text-${t}`,
351
+ borderColor: `uui-border-${t}`,
352
+ bgColor: `uui-bg-${t}`
399
353
  };
400
354
  };
401
- function Zt(e) {
355
+ function Ht(e) {
402
356
  return Vt(e).borderColor;
403
357
  }
404
- const Zr = (e) => {
405
- const t = e.toLowerCase(), n = `--uui-color-${t}`, i = `--uui-color-on-${t}`;
358
+ const qr = (e) => {
359
+ const n = e.toLowerCase(), t = `--uui-color-${n}`, r = `--uui-color-on-${n}`;
406
360
  return {
407
- color: `var(${n})`,
408
- onColor: `var(${i})`,
409
- container: `var(${n}-container)`,
410
- onContainer: `var(${i}-container)`,
411
- fixed: `var(${n}-fixed)`,
412
- fixedDim: `var(${n}-fixed-dim)`,
413
- onFixed: `var(${i}-fixed)`,
414
- onFixedVariant: `var(${i}-fixed-variant)`
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
- }, pn = (e) => {
417
- const t = e.toLowerCase(), n = `--uui-color-${t}`, i = `--uui-color-on-${t}`;
370
+ }, mn = (e) => {
371
+ const n = e.toLowerCase(), t = `--uui-color-${n}`, r = `--uui-color-on-${n}`;
418
372
  return {
419
- color: `var(${n})`,
420
- onColor: `var(${i})`
373
+ color: `var(${t})`,
374
+ onColor: `var(${r})`
421
375
  };
422
- }, Dn = (e) => [parseInt(e.slice(1, 3), 16), parseInt(e.slice(3, 5), 16), parseInt(e.slice(5, 7), 16)], _r = (e) => [
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 Kr(e, t) {
428
- const i = {
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] = Dn(t);
436
- return `rgba(${String(s)}, ${String(o)}, ${String(u)}, ${i})`;
389
+ }[e] ?? 0, [s, o, u] = Mn(n);
390
+ return `rgba(${String(s)}, ${String(o)}, ${String(u)}, ${r})`;
437
391
  }
438
- const Gr = () => {
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
- ], t = {};
463
- for (const n of e) {
464
- const i = n.charAt(0).toUpperCase() + n.slice(1);
465
- t[`text${i}`] = `uui-text-${n}`, t[`border${i}`] = `uui-border-${n}`, t[`outline${i}`] = `uui-outline-${n}`, t[`bg${i}`] = `uui-bg-${n}`;
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 t;
468
- }, Xr = (e) => {
469
- const t = It(e), n = [
470
- ["currentColor", `uui-current-${t}`],
471
- ["currentOnColor", `uui-current-on-${t}`],
472
- ["currentContainer", `uui-current-${t}-container`],
473
- ["currentOnContainer", `uui-current-on-${t}-container`],
474
- ["currentFixed", `uui-current-${t}-fixed`],
475
- ["currentOnFixed", `uui-current-on-${t}-fixed`],
476
- ["currentFixedDim", `uui-current-${t}-fixed-dim`],
477
- ["currentOnFixedVariant", `uui-current-on-${t}-fixed-variant`],
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(n);
452
+ return Object.fromEntries(t);
499
453
  };
500
- function jn(e) {
454
+ function Vn(e) {
501
455
  return e.charAt(0).toUpperCase() + e.slice(1);
502
456
  }
503
457
  function T(e) {
504
- const t = { ...e || {} };
505
- function n(c, a) {
506
- t[c] = a;
458
+ const n = { ...e || {} };
459
+ function t(c, a) {
460
+ n[c] = a;
507
461
  }
508
- const i = (c) => `var(--uui-color-${c.replace(/[A-Z]/g, (a) => "-" + a.toLowerCase())})`, s = (c) => Object.assign(
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(i(a));
464
+ a && c(r(a));
511
465
  },
512
466
  {
513
467
  on(a) {
514
468
  if (a) {
515
- const f = Et[a];
516
- f !== void 0 && c(i(f));
469
+ const f = Tt[a];
470
+ f !== void 0 && c(r(f));
517
471
  }
518
472
  },
519
473
  container(a) {
520
- a && c(i(`${a}Container`));
474
+ a && c(r(`${a}Container`));
521
475
  },
522
476
  onContainer(a) {
523
- a && c(i(`on${jn(a)}Container`));
477
+ a && c(r(`on${Vn(a)}Container`));
524
478
  },
525
479
  fixed(a) {
526
- a && c(i(`${a}Fixed`));
480
+ a && c(r(`${a}Fixed`));
527
481
  },
528
482
  fixedDim(a) {
529
- a && c(i(`${a}FixedDim`));
483
+ a && c(r(`${a}FixedDim`));
530
484
  }
531
485
  }
532
486
  ), o = s((c) => {
533
- n("backgroundColor", c);
487
+ t("backgroundColor", c);
534
488
  }), u = s((c) => {
535
- n("color", c);
489
+ t("color", c);
536
490
  }), l = s((c) => {
537
- n("borderColor", c);
491
+ t("borderColor", c);
538
492
  }), m = s((c) => {
539
- n("outlineColor", c);
493
+ t("outlineColor", c);
540
494
  }), p = s((c) => {
541
- n("--uui-current-color", c);
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: n,
503
+ set: t,
550
504
  get() {
551
- return t;
505
+ return n;
552
506
  },
553
507
  merge(c) {
554
- c && Object.assign(t, c);
508
+ c && Object.assign(n, c);
555
509
  }
556
510
  };
557
511
  }
558
- function ct(e) {
512
+ function mt(e) {
559
513
  return e ?? "outlineVariant";
560
514
  }
561
- const Rn = A(
562
- ({ font: e, size: t = "small", ...n }, i) => /* @__PURE__ */ r(yt, { font: e ?? {
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
- }[t], ref: i, size: t, ...n, elementClass: "uui-button" })
522
+ }[n], ref: r, size: n, ...t, elementClass: "uui-button" })
569
523
  );
570
- Rn.displayName = "Button";
571
- const An = A(
524
+ Dn.displayName = "Button";
525
+ const Rn = P(
572
526
  ({
573
527
  font: e,
574
- size: t = "small",
575
- shape: n = "smooth",
576
- selectedShape: i = "smooth",
528
+ size: n = "small",
529
+ shape: t = "smooth",
530
+ selectedShape: r = "smooth",
577
531
  borderColor: s = "outlineVariant",
578
532
  ...o
579
- }, u) => /* @__PURE__ */ r(
580
- yt,
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
- }[t],
543
+ }[n],
590
544
  ref: u,
591
- selectedShape: i,
545
+ selectedShape: r,
592
546
  ...o,
593
547
  elementClass: "uui-chip",
594
- shape: n,
595
- size: t
548
+ shape: t,
549
+ size: n
596
550
  }
597
551
  )
598
552
  );
599
- An.displayName = "Chip";
600
- const On = (e) => {
553
+ Rn.displayName = "Chip";
554
+ const qt = (e) => {
601
555
  const {
602
- children: t,
603
- className: n,
604
- border: i,
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: b,
568
+ offset: x,
615
569
  ...g
616
- } = e, x = "uui-badge", $ = f ?? (m === "extraLarge" || m === "large" ? "labelMedium" : "labelSmall"), C = [
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
- /* @__PURE__ */ r("span", { className: h, children: k })
628
- ] }) : k;
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
- On.displayName = "Badge";
631
- const zr = (e) => ({
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], Pn = (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
- }, Yr = (e) => {
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
- }, Jr = (e) => ({
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], Un = (e) => {
673
- const t = Hn(0, 5, e);
674
- return t === void 0 ? "" : `uui-border-${t}`;
675
- }, Qr = (e) => +e > 0 || +e < 5 ? `uui-outline-${String(e)}` : "uui-outline-0", Wn = (e) => {
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
- }, ei = (e) => {
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
- }, Tt = (e) => ({
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 ti(...e) {
721
- return (t) => {
722
- e.forEach((n) => {
723
- if (typeof n == "function")
724
- n(t);
725
- else if (n) {
726
- const i = n;
727
- i.current = t;
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 ni = (e, t, n) => {
733
- const i = n ?? e, s = i.querySelector(".ripple-container");
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 = i.getBoundingClientRect(), l = t.clientX - o.left, m = t.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), b = f / 2, g = document.createElement("div");
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 x = document.createElement("span");
740
- x.className = "ripple", x.style.position = "absolute", x.style.width = `${f}px`, x.style.height = `${f}px`, x.style.left = `${c - b}px`, x.style.top = `${a - b}px`, g.appendChild(x), i.appendChild(g), x.addEventListener("animationend", () => {
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
- }, ri = (e) => (
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 ii(e) {
704
+ function ri(e) {
751
705
  if (!vt(e))
752
706
  return;
753
- const t = e.type;
754
- if (typeof t == "function" && "displayName" in t)
755
- return t.displayName;
756
- const n = t;
757
- if (n && typeof n == "object" && "type" in n) {
758
- const i = n.type;
759
- if (typeof i == "function" && "displayName" in i)
760
- return i.displayName;
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 (n && typeof n == "object" && "render" in n) {
763
- const i = n.render;
764
- if (typeof i == "function" && "displayName" in i)
765
- return i.displayName;
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 oi(e) {
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 Hn(e, t, n, i) {
778
- const s = Number(n);
779
- return Number.isFinite(s) ? Math.min(t, Math.max(e, Math.round(s))) : i;
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 qn = A(
735
+ const Un = P(
782
736
  ({
783
737
  children: e,
784
- className: t = "",
785
- color: n = "error",
786
- position: i = "topRight",
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: b, textColor: g } = Vn(n);
796
- return Zt(n), /* @__PURE__ */ r("span", { className: ["uui-card-wrapper"].join(" "), ref: a, ...c, children: e });
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
- qn.displayName = "Card";
800
- const gn = Ht(null), Dt = Ht(null);
801
- let rn = !1, Wt = "pointer";
802
- function Zn() {
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
- Wt = "keyboard";
760
+ Ut = "keyboard";
807
761
  },
808
762
  !0
809
763
  ), window.addEventListener(
810
764
  "pointerdown",
811
765
  () => {
812
- Wt = "pointer";
766
+ Ut = "pointer";
813
767
  },
814
768
  !0
815
769
  ));
816
770
  }
817
- function _n() {
818
- return Wt;
771
+ function qn() {
772
+ return Ut;
819
773
  }
820
- function jt() {
821
- return Zn(), Nn(
774
+ function Dt() {
775
+ return Hn(), kn(
822
776
  () => () => {
823
777
  },
824
- () => _n() === "keyboard",
778
+ () => qn() === "keyboard",
825
779
  () => !1
826
780
  );
827
781
  }
828
- function Kn(e = {}) {
829
- const { action: t = "idle" } = e, [n, i] = 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 = xt(
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 w(k, V) {
785
+ function $(S, M) {
832
786
  c.current = window.setTimeout(() => {
833
- i(k);
834
- }, V);
787
+ r(S);
788
+ }, M);
835
789
  }
836
790
  if (a() && o(!0), m) {
837
- u ? (w("open", u), i("opening")) : i((k) => k === "opening" ? "open" : "opening");
791
+ u ? ($("open", u), r("opening")) : r((S) => S === "opening" ? "open" : "opening");
838
792
  return;
839
793
  }
840
794
  if (u) {
841
- const k = (
795
+ const S = (
842
796
  // eslint-disable-next-line sonarjs/no-nested-conditional,no-nested-ternary
843
- h === "closed" ? !0 : h === "open" ? !1 : n === "open" || n === "opening"
844
- ), V = k ? "closing" : "opening", O = k ? "closed" : "open";
845
- i(V), w(O, O === "open" ? u : p);
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
- i((k) => {
849
- switch (k) {
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 k;
814
+ return S;
861
815
  }
862
816
  });
863
817
  },
864
- [m, n, u, p]
818
+ [m, t, u, p]
865
819
  );
866
- be(() => {
820
+ ye(() => {
867
821
  s && o(!1);
868
- }, [s]), be(() => {
869
- t !== "idle" && f(t === "open" ? "open" : "closed");
822
+ }, [s]), ye(() => {
823
+ n !== "idle" && f(n === "open" ? "open" : "closed");
870
824
  }, []);
871
- const b = n === "closing", g = n === "opening";
825
+ const x = t === "closing", g = t === "opening";
872
826
  return {
873
827
  opening: g,
874
- closing: b,
875
- animating: (g || b) && !s,
876
- idle: n === "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": b ? "reverse" : "normal"
833
+ "--uui-reverse": x ? "reverse" : "normal"
880
834
  },
881
835
  animate: f
882
836
  };
883
837
  }
884
- const _t = A((e, t) => {
838
+ const _t = P((e, n) => {
885
839
  const {
886
- elementClass: n,
887
- density: i,
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: b = ["overlay"],
851
+ hoverEffects: x = ["overlay"],
898
852
  touchEffects: g = ["ripple"],
899
- focusEffects: x = ["ring"],
900
- selectedEffects: $ = [],
901
- pressedEffects: C = ["overlay"],
853
+ focusEffects: w = ["ring"],
854
+ selectedEffects: F = [],
855
+ pressedEffects: b = ["overlay"],
902
856
  id: h,
903
- name: w,
904
- label: F,
905
- font: k,
906
- border: V,
907
- borderColor: O,
857
+ name: $,
858
+ label: k,
859
+ font: S,
860
+ border: M,
861
+ borderColor: A,
908
862
  uncheckedBorder: q,
909
- uncheckedBorderColor: M,
910
- onChange: E,
911
- onClick: v,
912
- type: y,
913
- required: S,
914
- shape: I = "smooth",
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: D,
924
- className: P,
877
+ descriptionFont: V,
878
+ className: O,
925
879
  error: Q,
926
880
  animation: fe,
927
881
  duration: de = 150,
928
- motionStyle: j = "regular",
882
+ motionStyle: D = "regular",
929
883
  focusColor: Ve,
930
- labelColor: Fe,
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: xe, animating: He } = Kn({ t1: de, oneShot: !0 }), _ = Lt(gn), me = y === "radio" ? w ?? (_ == null ? void 0 : _.name) : w, Ee = Lt(Dt), Re = o ?? (Ee == null ? void 0 : Ee.disabled), se = jt(), [Se, Ce] = ee(!1), Ne = ce(null), ke = ce(null), pe = ce(null), qe = ce(St("check")), ge = h ?? qe.current, Be = l !== void 0, [Le, Ze] = ee(a ?? !1);
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
- Be ? le = !!l : (_ == null ? void 0 : _.value) !== void 0 ? le = _.value === X : le = Le;
940
- const N = f ? "indeterminate" : le ? "checked" : "unchecked", [Y, Te] = ee(N), G = We ?? (F ? void 0 : Z), Je = Q ? "error" : !le && !f && c ? c : p, _e = Z ? /* @__PURE__ */ r("div", { id: `${ge}-tip`, children: Z }) : null, H = (Ue) => {
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
- Ue.preventDefault();
896
+ Pe.preventDefault();
943
897
  return;
944
898
  }
945
- const rt = Ue.currentTarget;
946
- Be || (y === "radio" && (_ != null && _.setValue) && _.setValue(rt.value), Ze(rt.checked)), E == null || E(Ue);
947
- }, ae = (Ue) => {
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
- Ue.preventDefault();
903
+ Pe.preventDefault();
950
904
  return;
951
905
  }
952
- g.includes("ripple") && pe.current && ke.current && wt(pe.current, Ue, ke.current), v == null || v(Ue);
953
- }, Ae = (Ue) => {
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, Ue);
956
- }, Oe = (Ue) => {
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, Ue);
912
+ Ce(!1), (rt = e.onBlur) == null || rt.call(e, Pe);
959
913
  };
960
- be(() => {
961
- N !== Y && fe && xe();
962
- }, [N, Y, fe, xe]), be(() => {
963
- He || Te(N);
964
- }, [He, N]);
965
- const Pe = T(), J = [
966
- n,
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
- ft(i),
969
- P,
922
+ dt(r),
923
+ O,
970
924
  Re && "uui-disabled",
971
- ...m ? [] : [Ct(we)]
972
- ].filter(Boolean).join(" "), ze = [
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
- ...b.includes("overlay") && !te ? ["uui-hover-overlay"] : [],
978
- ...x.includes("overlay") && se && Se ? ["uui-focus-overlay"] : [],
979
- ...$.includes("overlay") ? ["uui-selected-overlay"] : [],
980
- ...C.includes("overlay") && !te ? ["uui-pressed-overlay"] : [],
981
- ...m ? [je(I)] : ["uui-round"]
982
- ].filter(Boolean).join(" "), Ie = T();
983
- Ve && se && Se && Ie.set("--uui-focus-color", pn(Ve).color);
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
- x.includes("ring") && se && Se && "uui-focus-visible uui-focus-ring"
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
- at(u),
992
- je(I),
993
- tt(le ? V : q)
994
- ].filter(Boolean).join(" "), nt = T(), pt = Tn(fe), Ke = ["uui-icon", He && pt, Mn(j)].filter(Boolean).join(" "), ue = T();
995
- ue.merge(ne), le || f || c ? (nt.border(Q ? "error" : O), U ? (!le && !he && !f || nt.bg(Je), ue.text.on(Je)) : ue.text(Je)) : (U && he ? (ue.text(Q ? "onError" : "surface"), nt.bg(Q ? "error" : "onSurfaceVariant")) : he && ue.text(Q ? "error" : "onSurfaceVariant"), nt.border(Q ? "error" : M));
996
- let Ye;
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 Ue = ["uui-cb-content uui-overflow-hidden", je(I), tt(V)].filter(Boolean).join(" ");
999
- Ye = /* @__PURE__ */ r("div", { className: Ue, children: m });
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 Ue = (
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
- Ye = /* @__PURE__ */ r("div", { className: ot, style: nt.get(), children: /* @__PURE__ */ r("div", { className: Ke, style: ue.get(), children: Ue }) });
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) ?? Fe ?? z ?? "onSurface");
1009
- const $t = [$e(k ?? "bodyMedium"), "uui-cb-label"].join(" "), Ft = F && /* @__PURE__ */ L("label", { className: $t, htmlFor: ge, style: gt.get(), children: [
1010
- F,
1011
- S && /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
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
- $e(D ?? "bodySmall"),
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(" "), Nt = (Me ?? Q) && /* @__PURE__ */ r("div", { className: Rt, style: st.get(), children: Q ?? Me }), At = (Ft ?? Nt) && /* @__PURE__ */ L(et, { children: [
1019
- Ft,
1020
- Nt
1021
- ] }), dt = T();
1022
- return ie === "end" ? (gt.set("gridColumn", 2), st.set("gridColumn", 2), dt.set("gridColumn", 1)) : ie === "start" ? (gt.set("gridColumn", 1), st.set("gridColumn", 1), dt.set("gridColumn", 2), dt.set("gridRow", 1)) : (Pe.set("gridTemplateColumns", "1fr"), Pe.set("justifyItems", "start")), ie === "top" && (dt.set("order", 1), st.set("order", 2)), /* @__PURE__ */ L("div", { className: J, style: Pe.get(), children: [
1023
- /* @__PURE__ */ r("div", { className: "uui-cb-control-wrapper", style: dt.get(), children: /* @__PURE__ */ L("div", { className: ze, ref: ke, style: Ie.get(), children: [
1024
- /* @__PURE__ */ r(
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: Oe,
988
+ onBlur: Ae,
1035
989
  onChange: H,
1036
990
  onClick: ae,
1037
- onFocus: Ae,
991
+ onFocus: je,
1038
992
  readOnly: te,
1039
- ref: mt(Ne, t),
1040
- type: y,
993
+ ref: ft(Fe, n),
994
+ type: C,
1041
995
  value: X,
1042
996
  ...oe
1043
997
  }
1044
998
  ),
1045
- /* @__PURE__ */ r("div", { className: Qe, ref: pe, style: Ge.get() }),
1046
- Ye
999
+ /* @__PURE__ */ i("div", { className: Qe, ref: pe, style: Ge.get() }),
1000
+ ze
1047
1001
  ] }) }),
1048
- At,
1049
- _e && /* @__PURE__ */ r(kt, { align: W, tooltip: _e, triggerRef: Ne })
1002
+ jt,
1003
+ _e && /* @__PURE__ */ i(kt, { align: W, tooltip: _e, triggerRef: Fe })
1050
1004
  ] });
1051
1005
  });
1052
1006
  _t.displayName = "CheckBoxBase";
1053
- const Gn = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "3 3 18 18", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r("path", { d: "M10 16.4L6 12.4L7.4 11L10 13.6L16.6 7L18 8.4L10 16.4Z", fill: "currentColor" }) }), Xn = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "3 3 18 18", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r("path", { d: "M6 13V11H18V13H6Z", fill: "currentColor" }) }), zn = A(
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: t,
1057
- uncheckedBorder: n,
1058
- color: i,
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
- ...b
1022
+ ...x
1069
1023
  }, g) => {
1070
- const x = i ?? "primary", $ = !c && t === void 0 ? void 0 : t;
1071
- let C;
1072
- return p ? C = t : C = !l && n === void 0 ? t ?? 2 : n, /* @__PURE__ */ r(
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 ?? x,
1078
- color: x,
1030
+ border: F,
1031
+ borderColor: s ?? w,
1032
+ color: w,
1079
1033
  elementClass: "uui-checkbox",
1080
1034
  filled: f,
1081
- icon: c ?? Gn,
1035
+ icon: c ?? _n,
1082
1036
  indeterminate: p,
1083
- indeterminateIcon: m ?? Xn,
1037
+ indeterminateIcon: m ?? Kn,
1084
1038
  ref: g,
1085
1039
  shape: e,
1086
1040
  size: a,
1087
1041
  type: "checkbox",
1088
- uncheckedBorder: C,
1042
+ uncheckedBorder: b,
1089
1043
  uncheckedBorderColor: u ?? s ?? "onSurfaceVariant",
1090
1044
  uncheckedIcon: l,
1091
- ...b
1045
+ ...x
1092
1046
  }
1093
1047
  );
1094
1048
  }
1095
1049
  );
1096
- zn.displayName = "Checkbox";
1097
- function Yn(e) {
1098
- const t = jt(), [n, i] = ee(!1);
1099
- return be(() => {
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: t ?? {
1059
+ font: n ?? {
1284
1060
  extraSmall: "labelLarge",
1285
1061
  small: "titleMedium",
1286
1062
  medium: "titleMedium",
1287
1063
  large: "headlineSmall",
1288
1064
  extraLarge: "headlineLarge"
1289
- }[n],
1065
+ }[t],
1290
1066
  label: s,
1291
- shape: i,
1292
- size: n
1067
+ shape: r,
1068
+ size: t
1293
1069
  }
1294
1070
  )
1295
1071
  );
1296
- Jn.displayName = "Fab";
1297
- const Qn = A(
1072
+ Xn.displayName = "Fab";
1073
+ const zn = P(
1298
1074
  ({
1299
1075
  "aria-label": e,
1300
- endIcon: t,
1301
- trailing: n,
1302
- loading: i,
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__ */ r(
1310
- yt,
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: i,
1092
+ loading: r,
1317
1093
  shape: o,
1318
1094
  size: s,
1319
1095
  title: l,
1320
- children: !i && m
1096
+ children: !r && m
1321
1097
  }
1322
1098
  )
1323
1099
  );
1324
- Qn.displayName = "IconButton";
1325
- const er = A(
1326
- ({ selected: e = !1, shape: t = "rounded", size: n = "medium", ...i }, s) => /* @__PURE__ */ r(
1327
- yt,
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
- ...i,
1106
+ ...r,
1331
1107
  "aria-pressed": e,
1332
1108
  elementClass: `uui-toggle-button${e ? " uui-selected" : ""}`,
1333
1109
  filled: e,
1334
- shape: t,
1335
- size: n
1110
+ shape: n,
1111
+ size: t
1336
1112
  }
1337
1113
  )
1338
1114
  );
1339
- er.displayName = "ToggleButton";
1340
- const Kt = Symbol.for("uui.menuitem");
1341
- function Pt(e) {
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 = i === "auto" ? l[o] : [i, ...l[o]], p = e.current, c = t.current;
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(), b = window.innerWidth, g = window.innerHeight, x = (C) => {
1362
- let h = 0, w = 0;
1363
- switch (C) {
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, w = a.top - f.height - s;
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, w = a.top - f.height - s;
1132
+ h = a.left, $ = a.top - f.height - s;
1369
1133
  break;
1370
1134
  case "topRight":
1371
- h = a.right - f.width, w = a.top - f.height - s;
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, w = a.bottom + s;
1138
+ h = a.left + (a.width - f.width) / 2, $ = a.bottom + s;
1375
1139
  break;
1376
1140
  case "bottomLeft":
1377
- h = a.left, w = a.bottom + s;
1141
+ h = a.left, $ = a.bottom + s;
1378
1142
  break;
1379
1143
  case "bottomRight":
1380
- h = a.right - f.width, w = a.bottom + s;
1144
+ h = a.right - f.width, $ = a.bottom + s;
1381
1145
  break;
1382
1146
  case "centerLeft":
1383
- h = a.left - f.width - s, w = a.top + (a.height - f.height) / 2;
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, w = a.top + (a.height - f.height) / 2;
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, w = a.top + (a.height - f.height) / 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, w = a.top;
1156
+ h = a.right + s, $ = a.top;
1393
1157
  break;
1394
1158
  case "topLeftOut":
1395
- h = a.left - f.width - s, w = a.top;
1159
+ h = a.left - f.width - s, $ = a.top;
1396
1160
  break;
1397
1161
  }
1398
- return { x: h, y: w, placement: C };
1162
+ return { x: h, y: $, placement: b };
1399
1163
  };
1400
- for (const C of m) {
1401
- const h = x(C), w = h.x >= 0 && h.x + f.width <= b, F = h.y >= 0 && h.y + f.height <= g;
1402
- let k = !1;
1403
- if (C === "centerLeft" || C === "centerRight" ? k = w : C === "topCenter" || C === "bottomCenter" || C === "center" ? k = F : k = w && F, k)
1404
- return h.x = Math.max(u, Math.min(h.x, b - f.width - u)), h.y = Math.max(u, Math.min(h.y, g - f.height - u)), h;
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 $ = x(i);
1407
- return $.x = Math.max(u, Math.min($.x, b - f.width - u)), $.y = Math.max(u, Math.min($.y, g - f.height - u)), $;
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 tr(e, t, n, i) {
1410
- be(() => {
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(t)) {
1417
- const a = t.some((b) => {
1180
+ if (Array.isArray(n)) {
1181
+ const a = n.some((x) => {
1418
1182
  var g;
1419
- return (g = b.current) == null ? void 0 : g.contains(u);
1420
- }), f = ((p = i == null ? void 0 : i.current) == null ? void 0 : p.contains(u)) ?? !1;
1421
- !a && !f && n();
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(t), m = ((c = i == null ? void 0 : i.current) == null ? void 0 : c.contains(u)) ?? !1;
1425
- !l && !m && n();
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, t, n, i]);
1194
+ }, [e, n, t, r]);
1431
1195
  }
1432
- const nr = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Gt = A(
1196
+ const Qn = (e) => e === "none" ? "none" : e === "auto" ? "scale" : e, Kt = P(
1433
1197
  ({
1434
1198
  anchorRef: e,
1435
- open: t = !1,
1436
- horizontal: n = !1,
1437
- placement: i = "auto",
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: b,
1211
+ children: x,
1448
1212
  style: g,
1449
- id: x,
1450
- onClose: $,
1451
- variant: C = "classic",
1213
+ id: w,
1214
+ onClose: F,
1215
+ variant: b = "classic",
1452
1216
  animation: h = "scale",
1453
- duration: w,
1454
- motionStyle: F = "regular",
1455
- fixedLeading: k,
1456
- density: V,
1457
- __level: O,
1217
+ duration: $,
1218
+ motionStyle: k = "regular",
1219
+ fixedLeading: S,
1220
+ density: M,
1221
+ __level: A,
1458
1222
  __groupId: q,
1459
- __closeRootMenu: M,
1460
- __navigateHorizontal: E,
1461
- __horizontalDepth: v,
1462
- docked: y,
1463
- textColor: S,
1464
- descriptionColor: I,
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: D,
1474
- itemFocusEffects: P,
1237
+ itemSelectedEffects: V,
1238
+ itemFocusEffects: O,
1475
1239
  closeOnChange: Q = !1,
1476
1240
  openOnHover: fe = !0,
1477
1241
  labelFont: de,
1478
- font: j,
1242
+ font: D,
1479
1243
  descriptionFont: Ve,
1480
- shortcutFont: Fe,
1244
+ shortcutFont: ke,
1481
1245
  ...z
1482
1246
  }, te) => {
1483
- const W = ce("closed"), [ie, We] = ee(-1), [oe, ne] = ee(-1), [xe, He] = ee(!1), _ = jt(), me = O ?? 0, Ee = ce(x ?? St("menu")).current, Re = q ?? Ee, se = ce(null), Se = ce(null), [Ce, Ne] = ee(null), ke = ie === -1, [pe, qe] = ee(!1), [ge, Be] = ee(!1), [Le, Ze] = ee("normal"), [le, N] = ee(!1), [Y, Te] = ee(-1), G = u ?? (C === "modern" ? "surfaceContainerLow" : "surfaceContainer"), Je = (y ? m : void 0) ?? l ?? (C === "modern" ? 3 : 2), [_e, H] = ee(!1), ae = h !== "none" ? w ?? 220 : 0, Ae = y ? 0 : ae, Oe = ce(null), Pe = ce(null), J = ie !== -1;
1484
- function ze(d) {
1485
- return Pt(d) || Ut(d);
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 Ie = lt.Children.toArray(b).filter(ze), re = Ie.reduce((d, B, R) => (Pt(B) && (B.props.disabled || d.push(R)), d), []);
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
- $ == null || $(), !$ && J && (Qe(), ne(-1)), me === 0 && (e != null && e.current) && e.current.focus();
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
- M ? M() : Ge();
1259
+ E ? E() : Ge();
1496
1260
  }
1497
- function nt(d) {
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(Ie[d].props.children).find((it) => ht(it));
1502
- return vt(R) ? lt.Children.toArray(R.props.children).filter((it) => Ut(it) || ze(it)) : void 0;
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 ve = nt(d);
1515
- ve && (Se.current = ve, H(!0), We(d), setTimeout(() => {
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(Ie[d].props.children).some((R) => ht(R));
1284
+ return d < 0 ? !1 : lt.Children.toArray(Ne[d].props.children).some((R) => ht(R));
1521
1285
  }
1522
- function Ye(d) {
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
- be(() => {
1295
+ ye(() => {
1532
1296
  J || setTimeout(() => {
1533
- N(!0);
1297
+ L(!0);
1534
1298
  }, ae * 0.67);
1535
- }, [ae, J]), be(() => {
1299
+ }, [ae, J]), ye(() => {
1536
1300
  var d;
1537
- !J && le && (N(!1), We(-1), Y !== -1 ? (Te(-1), Ke(Y)) : (d = se.current) == null || d.focus(), H(!1));
1538
- }, [le, Y, J]), be(() => {
1539
- t ? (W.current = "opening", H(!0), Ze("normal"), qe(!0), We(-1), Be(!1), ne(-1)) : (W.current = "closing", H(!0), Be(!1), Ze("reverse"));
1540
- }, [t]), be(() => {
1541
- if (!t || !pe || !se.current)
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 ?? (n ? "dropdown" : "menu");
1308
+ const B = s ?? (t ? "dropdown" : "menu");
1545
1309
  if (e != null && e.current) {
1546
- const R = yn(e, se, {
1547
- placement: i,
1310
+ const R = pn(e, se, {
1311
+ placement: r,
1548
1312
  mode: B,
1549
1313
  offset: o
1550
1314
  });
1551
- R && Ne({ x: R.x, y: R.y });
1315
+ R && Fe({ x: R.x, y: R.y });
1552
1316
  }
1553
1317
  };
1554
- return y ? Ne({ x: 0, y: 0 }) : (window.addEventListener("resize", d), d()), Be(!0), () => {
1555
- y || window.removeEventListener("resize", d);
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, y, s, n, o, t, i, pe]), be(() => {
1558
- t && pe && Ce && setTimeout(() => {
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", y || (d = se.current) == null || d.focus(), ne(_ ? re[0] ?? -1 : -1));
1561
- }, Ae);
1562
- }, [t, Ce, pe]), be(() => {
1563
- Le === "reverse" && W.current === "closing" && (Be(!0), ne(-1), setTimeout(() => {
1564
- W.current === "closing" && (W.current = "closed", qe(!1), Ne(null), H(!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, Le]), be(() => {
1567
- if (oe < 0 || !xe || W.current !== "opened")
1330
+ }, [ae, Be]), ye(() => {
1331
+ if (oe < 0 || !ve || W.current !== "opened")
1568
1332
  return;
1569
- const d = nt(oe);
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, xe]), be(() => {
1578
- xe && _ && oe === -1 && W.current === "opened" && re.length > 0 && ne(re[0]);
1579
- }, [oe, _, xe]);
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
- tr(
1584
- t && me === 0,
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 $t(d) {
1592
- var R, ve, it, tn;
1355
+ function Ft(d) {
1356
+ var R, xe, it, en;
1593
1357
  const B = d;
1594
- B !== -1 && (Ie[B].props.disabled || (ne(B), ue(B) ? J && B === ie ? Qe() : Ke(B) : Ie[B].props.type === "radio" || Ie[B].props.type === "checkbox" || Ie[B].props.type === "option" ? ((ve = (R = Ie[B].props).onChange) == null || ve.call(R), Q && ot()) : ((tn = (it = Ie[B].props).onClick) == null || tn.call(it), ot())));
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 Ft(d, B) {
1360
+ function Lt(d, B) {
1597
1361
  if (_e) {
1598
1362
  d == null || d.preventDefault();
1599
1363
  return;
1600
1364
  }
1601
- $t(B);
1365
+ Ft(B);
1602
1366
  }
1603
1367
  function st(d, B) {
1604
- if (!(!fe || _ && xe)) {
1605
- if (Pe.current && (clearTimeout(Pe.current), Pe.current = null), Oe.current && (clearTimeout(Oe.current), Oe.current = null), !ue(B)) {
1606
- J && (Pe.current = window.setTimeout(() => {
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 || (Oe.current = window.setTimeout(() => {
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
- Pe.current && (clearTimeout(Pe.current), Pe.current = null), Oe.current && (clearTimeout(Oe.current), Oe.current = null);
1381
+ Oe.current && (clearTimeout(Oe.current), Oe.current = null), Ae.current && (clearTimeout(Ae.current), Ae.current = null);
1618
1382
  }
1619
- const Nt = Ie.some(
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
- ), At = Ie.map((d, B) => {
1622
- if (Pt(d)) {
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 && xe,
1629
- focusVisible: _ && xe,
1630
- horizontal: n,
1392
+ active: B === oe && ve,
1393
+ focusVisible: _ && ve,
1394
+ horizontal: t,
1631
1395
  expanded: J && ie === B,
1632
- fixedLeading: d.props.fixedLeading ?? (k && Nt),
1633
- variant: d.props.variant ?? C,
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 ?? V,
1400
+ density: d.props.density ?? M,
1637
1401
  shortcutColor: d.props.shortcutColor ?? U,
1638
- textColor: d.props.textColor ?? S,
1402
+ textColor: d.props.textColor ?? v,
1639
1403
  labelColor: d.props.labelColor ?? Z,
1640
- descriptionColor: d.props.descriptionColor ?? I,
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 ?? D,
1646
- focusEffects: d.props.focusEffects ?? P,
1409
+ selectedEffects: d.props.selectedEffects ?? V,
1410
+ focusEffects: d.props.focusEffects ?? O,
1647
1411
  labelFont: d.props.labelFont ?? de,
1648
- font: d.props.font ?? j,
1412
+ font: d.props.font ?? D,
1649
1413
  descriptionFont: d.props.descriptionFont ?? Ve,
1650
- shortcutFont: d.props.shortcutFont ?? Fe,
1651
- onClick: (ve) => {
1652
- Ft(ve, B);
1414
+ shortcutFont: d.props.shortcutFont ?? ke,
1415
+ onClick: (xe) => {
1416
+ Lt(xe, B);
1653
1417
  },
1654
- onMouseEnter: (ve) => {
1655
- st(ve, B);
1418
+ onMouseEnter: (xe) => {
1419
+ st(xe, B);
1656
1420
  },
1657
- onMouseLeave: (ve) => {
1421
+ onMouseLeave: (xe) => {
1658
1422
  Rt();
1659
1423
  }
1660
1424
  };
1661
- return Ot(d, {
1425
+ return At(d, {
1662
1426
  ...d.props,
1663
1427
  ...R
1664
1428
  });
1665
- } else if (Ut(d)) {
1666
- const R = Et[G] === "onSurface" ? "outlineVariant" : Et[G], ve = {
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: n,
1432
+ vertical: t,
1669
1433
  insetSize: d.props.insetSize ?? 8,
1670
- spacing: d.props.spacing ?? (C === "modern" ? 5 : 8),
1671
- inset: d.props.inset ?? (C === "modern" ? "middle" : void 0)
1434
+ spacing: d.props.spacing ?? (b === "modern" ? 5 : 8),
1435
+ inset: d.props.inset ?? (b === "modern" ? "middle" : void 0)
1672
1436
  };
1673
- return Ot(d, { ...d.props, ...ve });
1437
+ return At(d, { ...d.props, ...xe });
1674
1438
  }
1675
- return Ot(d, {
1439
+ return At(d, {
1676
1440
  ...d.props
1677
1441
  });
1678
1442
  });
1679
- function dt(d) {
1443
+ function ct(d) {
1680
1444
  d.target.closest("[data-menu-index]") || J && Qe();
1681
1445
  }
1682
- const Ue = (d) => {
1683
- if (!t || _e)
1446
+ const Pe = (d) => {
1447
+ if (!n || _e)
1684
1448
  return;
1685
1449
  let B = d.key;
1686
- if (n) {
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 ve;
1462
+ let xe;
1699
1463
  switch (B) {
1700
1464
  case "ArrowUp":
1701
- d.preventDefault(), oe === -1 || R === -1 ? ve = re[re.length - 1] : ve = R > 0 ? re[R - 1] : re[re.length - 1], ne(ve), n && ue(ve) && Ke(ve);
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 ? ve = re[0] : ve = re[R + 1 < re.length ? R + 1 : 0], ne(ve), n && ue(ve) && Ke(ve);
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 && $t(re[R]);
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]) : E && E(!0);
1481
+ d.preventDefault(), R >= 0 && ue(re[R]) ? Ke(re[R]) : I && I(!0);
1718
1482
  break;
1719
1483
  case "ArrowLeft":
1720
- d.preventDefault(), E && v === 1 ? E(!1) : Ge();
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
- y || (d.stopPropagation(), d.preventDefault()), ot();
1490
+ C || (d.stopPropagation(), d.preventDefault()), ot();
1727
1491
  break;
1728
1492
  }
1729
1493
  };
1730
- if (!t && !pe || !e && !y)
1494
+ if (!n && !pe || !e && !C)
1731
1495
  return null;
1732
1496
  const rt = {
1733
- "--uui-reverse": Le,
1734
- "--uui-duration": Le === "reverse" ? String(Ae * 0.67) + "ms" : String(Ae) + "ms"
1735
- }, Yt = nr(h), Sn = Yt === "none" ? "" : Mt[Yt], kn = F === "expressive" ? "uui-motion-expressive" : "", Bt = T({ ...g, ...rt });
1736
- Bt.bg(G), Bt.text.on(G), c && +c > 0 && Bt.border(ct(a));
1737
- const $n = [
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
- n && "uui-menu-horizontal",
1741
- ke && "uui-menu-active",
1742
- C === "modern" ? "uui-menu-modern" : "uui-menu-classic",
1743
- ge && Sn,
1744
- kn,
1745
- ft(V),
1746
- je(p ?? (C === "modern" ? "rounded" : "smooth")),
1747
- at(Je),
1748
- c !== void 0 ? tt(c) : null,
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(" "), Jt = /* @__PURE__ */ r(
1514
+ ].filter(Boolean).join(" "), Yt = /* @__PURE__ */ i(
1751
1515
  "div",
1752
1516
  {
1753
- "aria-orientation": n ? "horizontal" : "vertical",
1754
- className: $n,
1517
+ "aria-orientation": t ? "horizontal" : "vertical",
1518
+ className: Sn,
1755
1519
  "data-menu-group": Re,
1756
- id: x,
1520
+ id: w,
1757
1521
  onBlur: () => {
1758
1522
  He(!1);
1759
1523
  },
1760
- onClick: dt,
1524
+ onClick: ct,
1761
1525
  onFocus: gt,
1762
- onKeyDown: Ue,
1763
- ref: mt(te, se),
1526
+ onKeyDown: Pe,
1527
+ ref: ft(te, se),
1764
1528
  role: "menu",
1765
1529
  style: {
1766
- position: y ? "relative" : "fixed",
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
- ...Bt.get()
1535
+ ...Nt.get()
1772
1536
  },
1773
1537
  tabIndex: 0,
1774
1538
  ...z,
1775
- children: /* @__PURE__ */ r("div", { className: "uui-menu-scroll", children: At })
1539
+ children: /* @__PURE__ */ i("div", { className: "uui-menu-scroll", children: jt })
1776
1540
  }
1777
- ), Fn = document.getElementById("menu-root") ?? document.body;
1778
- let Qt = null;
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 && (Qt = d);
1545
+ d && d.length > 0 && (Jt = d);
1782
1546
  }
1783
- const en = qt(
1784
- /* @__PURE__ */ L(et, { children: [
1785
- !y && Jt,
1786
- Se.current && ie !== -1 && /* @__PURE__ */ r(
1787
- Gt,
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: M ?? ot,
1553
+ __closeRootMenu: E ?? ot,
1790
1554
  __groupId: Re,
1791
- __horizontalDepth: n ? 1 : v && v + 1,
1555
+ __horizontalDepth: t ? 1 : y && y + 1,
1792
1556
  __level: me + 1,
1793
- __navigateHorizontal: n ? Ye : E,
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: V,
1803
- descriptionColor: I,
1566
+ density: M,
1567
+ descriptionColor: N,
1804
1568
  descriptionFont: Ve,
1805
- duration: w,
1569
+ duration: $,
1806
1570
  elevation: l,
1807
- fixedLeading: k,
1808
- floatingMode: n ? "menu" : "submenu",
1809
- font: j,
1810
- itemFocusEffects: P,
1811
- itemSelectedEffects: D,
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: F,
1579
+ motionStyle: k,
1816
1580
  offset: 0,
1817
1581
  onClose: Qe,
1818
- open: t && J,
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: Fe,
1828
- textColor: S,
1591
+ shortcutFont: ke,
1592
+ textColor: v,
1829
1593
  uncheckedIcon: X,
1830
- variant: C,
1831
- children: Qt
1594
+ variant: b,
1595
+ children: Jt
1832
1596
  }
1833
1597
  )
1834
1598
  ] }),
1835
- Fn
1599
+ $n
1836
1600
  );
1837
- return y && me === 0 ? /* @__PURE__ */ L(et, { children: [
1838
- Jt,
1839
- en
1840
- ] }) : en;
1601
+ return C && me === 0 ? /* @__PURE__ */ j(tt, { children: [
1602
+ Yt,
1603
+ Qt
1604
+ ] }) : Qt;
1841
1605
  }
1842
1606
  );
1843
- Gt[Cn] = !0;
1844
- Gt.displayName = "Menu";
1845
- const Xt = (e) => {
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
- ) }), or = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
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
- ) }), sr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
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
- ) }), bn = A(
1627
+ ) }), gn = P(
1895
1628
  ({
1896
1629
  shape: e,
1897
- touchEffects: t = ["ripple"],
1898
- focusEffects: n = ["ring", "overlay"],
1899
- selectedEffects: i = ["color"],
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: b,
1642
+ icon: x,
1910
1643
  endIcon: g,
1911
- leading: x,
1912
- trailing: $,
1913
- label: C,
1644
+ leading: w,
1645
+ trailing: F,
1646
+ label: b,
1914
1647
  disabled: h = !1,
1915
- className: w,
1916
- onClick: F,
1917
- badge: k,
1918
- expanded: V,
1919
- active: O,
1648
+ className: $,
1649
+ onClick: k,
1650
+ badge: S,
1651
+ expanded: M,
1652
+ active: A,
1920
1653
  children: q,
1921
- focusVisible: M,
1922
- type: E = "item",
1923
- checked: v,
1924
- description: y,
1925
- shortcut: S,
1926
- density: I,
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: D,
1936
- variant: P = "classic",
1668
+ onChange: V,
1669
+ variant: O = "classic",
1937
1670
  ...Q
1938
1671
  }, fe) => {
1939
- const de = ce(null), j = lt.Children.toArray(q), Ve = j.find((G) => ht(G)), Fe = j.filter((G) => !ht(G)), z = !!Ve;
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
- E !== "item" && (E === "radio" ? te = v ? s ?? sr : o ?? or : E === "checkbox" && (te = v ? s ?? ir : o));
1942
- const W = te ?? x ?? b ?? (a && !Z), ie = W && /* @__PURE__ */ r("div", { className: "uui-icon uui-leading", children: W }), We = $ ?? g;
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
- k && (typeof k == "string" || typeof k == "number" ? oe = /* @__PURE__ */ r(Xt, { value: k }) : oe = k);
1945
- const ne = P === "modern" ? "labelLarge" : "bodyLarge", xe = U ?? X ?? ne, He = we ?? (P === "modern" ? "bodySmall" : "bodyMedium"), _ = he ?? ne, me = T();
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 ? rr : We, Re = S && /* @__PURE__ */ r("div", { className: `uui-menu-item-shortcut ${$e(_)}`, style: me.get(), children: S }), se = (S ?? k ?? Ee) && /* @__PURE__ */ L(et, { children: [
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__ */ r("div", { className: "uui-icon uui-trailing", children: Ee })
1690
+ Ee && /* @__PURE__ */ i("div", { className: "uui-icon uui-trailing", children: Ee })
1951
1691
  ] }), Se = T();
1952
1692
  Se.text(m);
1953
- const Ce = C && /* @__PURE__ */ r("div", { className: `uui-menu-item-label ${$e(xe)}`, style: Se.get(), children: C }), Ne = T();
1954
- (p || !l && P === "classic" && (f != null && f.startsWith("surface"))) && (p ? Ne.text(p) : Ne.text.on("surfaceVariant"));
1955
- const ke = y && /* @__PURE__ */ r(
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 ${$e(He)}`,
1959
- style: Ne.get(),
1960
- children: y
1705
+ className: `uui-menu-item-description ${Ie(He)}`,
1706
+ style: Fe.get(),
1707
+ children: C
1961
1708
  }
1962
- ), pe = (Ce ?? ke) && /* @__PURE__ */ L("div", { className: "uui-menu-item-text", children: [
1709
+ ), pe = (Ce ?? $e) && /* @__PURE__ */ j("div", { className: "uui-menu-item-text", children: [
1963
1710
  Ce,
1964
- ke
1711
+ $e
1965
1712
  ] }), qe = (G) => {
1966
1713
  if (De || h) {
1967
1714
  G == null || G.preventDefault();
1968
1715
  return;
1969
1716
  }
1970
- F == null || F(G), t.includes("ripple") && de.current && G && wt(de.current, G);
1717
+ k == null || k(G), n.includes("ripple") && de.current && G && St(de.current, G);
1971
1718
  };
1972
- let ge = f ?? (P === "modern" ? "surfaceContainerLow" : "surfaceContainer");
1973
- E === "option" && K && i.includes("color") && (ge = u ?? (P === "modern" ? "tertiaryContainer" : "secondaryContainer"));
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(ge), l ? Le.text(l) : Le.text.on(ge);
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
- w,
1981
- ft(I),
1727
+ $,
1728
+ dt(N),
1982
1729
  h && "uui-disabled",
1983
- P === "modern" ? "uui-menu-item-modern" : "uui-menu-item-classic"
1984
- ].filter(Boolean).join(" "), le = je(e ?? (P === "modern" ? "rounded" : "smooth")), N = [
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
- ...n.includes("ring") && O ? ["uui-focus-ring-in"] : [],
1988
- ...n.includes("overlay") && O ? ["uui-focus-overlay"] : [],
1989
- O && "uui-active",
1990
- O && M && "uui-focus-visible"
1991
- ].filter(Boolean).join(" "), Y = /* @__PURE__ */ L("div", { className: N, style: Le.get(), children: [
1992
- Fe.length > 0 ? /* @__PURE__ */ r("div", { className: "uui-menu-item-children", children: Fe }) : /* @__PURE__ */ L(et, { children: [
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__ */ r("div", { className: ["uui-state", le].join(" "), style: Be.get() })
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 (E === "radio" || E === "checkbox") && (Te = E === "radio" ? "menuitemradio" : "menuitemcheckbox"), // eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
2001
- /* @__PURE__ */ r(
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": E === "radio" || E === "checkbox" ? v ?? !1 : void 0,
1760
+ "aria-checked": I === "radio" || I === "checkbox" ? y ?? !1 : void 0,
2006
1761
  "aria-disabled": h ? "true" : void 0,
2007
- "aria-expanded": z ? V : void 0,
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: mt(de, fe),
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
- bn[Kt] = !0;
2020
- bn.displayName = "MenuItem";
2021
- const xn = (e) => {
1774
+ gn[Gt] = !0;
1775
+ gn.displayName = "MenuItem";
1776
+ const hn = (e) => {
2022
1777
  const {
2023
- className: t,
2024
- borderColor: n,
2025
- color: i,
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: b,
1790
+ height: x,
2036
1791
  ...g
2037
- } = e, x = ce(null), [$, C] = ee(!1);
1792
+ } = e, w = ce(null), [F, b] = ee(!1);
2038
1793
  ln(() => {
2039
- const V = x.current;
2040
- if (!(V != null && V.parentElement))
1794
+ const M = w.current;
1795
+ if (!(M != null && M.parentElement))
2041
1796
  return;
2042
- const O = getComputedStyle(V.parentElement).display;
2043
- C(O.includes("flex"));
1797
+ const A = getComputedStyle(M.parentElement).display;
1798
+ b(A.includes("flex"));
2044
1799
  }, []);
2045
- const h = Math.min(4, Math.max(0, s)), w = [
1800
+ const h = Math.min(4, Math.max(0, s)), $ = [
2046
1801
  "uui-divider",
2047
- Un(h === 0 ? 0 : 1),
2048
- t,
2049
- c && Wn(c),
2050
- a && Pn(a)
2051
- ].filter(Boolean).join(" "), F = T(f), k = ct(n ?? i ?? "outlineVariant");
2052
- if (F.border(k), F.bg(k), p !== "strong" && (p === "subtle" ? F.set("opacity", "var(--uui-subtle-opacity)") : F.set("opacity", "var(--uui-medium-opacity)")), $ ? m ? F.merge({
2053
- height: b,
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
- }) : F.merge({ flex: "1 1 auto", height: `${h}px`, marginBlock: `${l}px` }) : m ? F.merge({
2058
- height: b,
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
- }) : F.merge({
1818
+ }) : k.merge({
2064
1819
  height: `${h}px`,
2065
1820
  marginBlock: `${l}px`
2066
1821
  }), o !== "none") {
2067
- const V = o === "left" || o === "top" || o === "middle", O = o === "right" || o === "bottom" || o === "middle";
2068
- V && (m ? F.set("marginBlockStart", `${u}px`) : F.set("marginInlineStart", `${u}px`)), O && (m ? F.set("marginBlockEnd", `${u}px`) : F.set("marginInlineEnd", `${u}px`));
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__ */ r(
1825
+ return /* @__PURE__ */ i(
2071
1826
  "div",
2072
1827
  {
2073
1828
  "aria-hidden": "true",
2074
- className: w,
2075
- ref: x,
1829
+ className: $,
1830
+ ref: w,
2076
1831
  role: "separator",
2077
- style: F.get(),
1832
+ style: k.get(),
2078
1833
  ...g
2079
1834
  }
2080
1835
  );
2081
1836
  };
2082
- xn[hn] = !0;
2083
- xn.displayName = "Divider";
2084
- const ui = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "number", className: "UINumberInput" })), lr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "2 2 20 20", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
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
- ) }), ar = A(
1845
+ ) }), or = P(
2091
1846
  ({
2092
1847
  uncheckedBorder: e,
2093
- border: t,
2094
- color: n,
2095
- borderColor: i,
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 b = n ?? "primary";
2106
- return /* @__PURE__ */ r(
1860
+ const x = t ?? "primary";
1861
+ return /* @__PURE__ */ i(
2107
1862
  _t,
2108
1863
  {
2109
1864
  animation: c ?? "scale",
2110
- border: !m && t === void 0 ? 2 : t,
2111
- borderColor: i ?? b,
2112
- color: b,
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 ?? lr,
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 ?? t ?? (p ? void 0 : 2),
2122
- uncheckedBorderColor: s ?? i ?? "onSurfaceVariant",
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
- ar.displayName = "Radio";
2130
- const ci = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "tel", className: "UITelInput" })), ur = A(({ ...e }, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, elementClass: "uui-field" }));
2131
- ur.displayName = "Field";
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
- }, vn = Ht(null);
2136
- function cr(e = "#6750A4", t, n = {}) {
2137
- var c, a, f, b, g, x, $, C, h, w, F, k, V, O, q, M, E;
2138
- const i = { light: {}, dark: {} }, s = (c = n.light) != null && c.primary ? bt(n.light.primary) : bt(e), o = {
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
- ...t
2076
+ ...n
2143
2077
  }, u = [];
2144
- Object.keys(o).forEach((v) => {
2145
- var S;
2146
- const y = (S = n.light) == null ? void 0 : S[v];
2147
- y ? u.push({ value: bt(y), name: v, blend: !0 }) : u.push({
2148
- value: bt(o[v]),
2149
- name: v,
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((v) => {
2153
- var S;
2154
- const y = (S = n.light) == null ? void 0 : S[v];
2155
- y && u.push({ value: bt(y), name: v, blend: !0 });
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 = Bn(s, u);
2158
- ["light", "dark"].forEach((v) => {
2159
- const y = v;
2160
- mn.forEach((S) => {
2161
- var I;
2162
- (I = n[y]) != null && I[S] ? i[y][S] = n[y][S] : typeof l.schemes[y][S] == "number" && (i[y][S] = ye(
2163
- l.schemes[y][S]
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
- }), i.light.scrim = "#00000052", i.dark.scrim = "#00000052", l.customColors.forEach((v) => {
2167
- const y = v.color.name[0].toUpperCase() + v.color.name.slice(1), S = {
2168
- color: v.color.name,
2169
- onColor: `on${y}`,
2170
- colorContainer: `${v.color.name}Container`,
2171
- onColorContainer: `on${y}Container`
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((I) => {
2174
- const Z = I;
2175
- Object.keys(S).forEach((U) => {
2107
+ ["light", "dark"].forEach((N) => {
2108
+ const Z = N;
2109
+ Object.keys(v).forEach((U) => {
2176
2110
  var X;
2177
- i[I][S[U]] = ((X = n[I]) == null ? void 0 : X[S[U]]) ?? ye(v[Z][U]);
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((v) => {
2181
- const y = v[0].toUpperCase() + v.slice(1);
2182
- ["light", "dark"].forEach((S) => {
2183
- var I, Z, U, X;
2184
- i[S][`${v}Fixed`] = (I = n[S]) != null && I[`${v}Fixed`] ? n[S][`${v}Fixed`] : ye(l.palettes[v].tone(90)), i[S][`${v}FixedDim`] = (Z = n[S]) != null && Z[`${v}FixedDim`] ? n[S][`${v}FixedDim`] : ye(l.palettes[v].tone(80)), i[S][`on${y}Fixed`] = (U = n[S]) != null && U[`on${y}Fixed`] ? n[S][`on${y}Fixed`] : ye(l.palettes[v].tone(10)), i[S][`on${y}FixedVariant`] = (X = n[S]) != null && X[`on${y}FixedVariant`] ? n[S][`on${y}FixedVariant`] : ye(l.palettes[v].tone(30));
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 = (v, y) => {
2188
- const S = Ln.fromInt(v);
2189
- return ye(S.tone(y));
2121
+ const m = (y, C) => {
2122
+ const v = Ln.fromInt(y);
2123
+ return be(v.tone(C));
2190
2124
  };
2191
- l.customColors.forEach((v) => {
2192
- const y = v.color.name, S = y[0].toUpperCase() + y.slice(1);
2193
- ["light", "dark"].forEach((I) => {
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 = v[I].color;
2196
- i[I][`${y}Fixed`] = (U = n[I]) != null && U[`${y}Fixed`] ? n[I][`${y}Fixed`] : m(Z, 90), i[I][`${y}FixedDim`] = (X = n[I]) != null && X[`${y}FixedDim`] ? n[I][`${y}FixedDim`] : m(Z, 80), i[I][`on${S}Fixed`] = (we = n[I]) != null && we[`on${S}Fixed`] ? n[I][`on${S}Fixed`] : m(Z, 10), i[I][`on${S}FixedVariant`] = (he = n[I]) != null && he[`on${S}FixedVariant`] ? n[I][`on${S}FixedVariant`] : m(Z, 30);
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(i.light, p), Object.assign(i.dark, p), i.light.surface = ((a = n.light) == null ? void 0 : a.surface) ?? ye(l.palettes.neutral.tone(99)), i.light.surfaceDim = ((f = n.light) == null ? void 0 : f.surfaceDim) ?? ye(l.palettes.neutral.tone(87)), i.light.surfaceBright = ((b = n.light) == null ? void 0 : b.surfaceBright) ?? ye(l.palettes.neutral.tone(99)), i.light.surfaceContainerLowest = ((g = n.light) == null ? void 0 : g.surfaceContainerLowest) ?? ye(l.palettes.neutral.tone(100)), i.light.surfaceContainerLow = ((x = n.light) == null ? void 0 : x.surfaceContainerLow) ?? ye(l.palettes.neutral.tone(96)), i.light.surfaceContainer = (($ = n.light) == null ? void 0 : $.surfaceContainer) ?? ye(l.palettes.neutral.tone(94)), i.light.surfaceContainerHigh = ((C = n.light) == null ? void 0 : C.surfaceContainerHigh) ?? ye(l.palettes.neutral.tone(92)), i.light.surfaceContainerHighest = ((h = n.light) == null ? void 0 : h.surfaceContainerHighest) ?? ye(l.palettes.neutral.tone(90)), i.dark.surface = ((w = n.dark) == null ? void 0 : w.surface) ?? ye(l.palettes.neutral.tone(6)), i.dark.surfaceDim = ((F = n.dark) == null ? void 0 : F.surfaceDim) ?? ye(l.palettes.neutral.tone(6)), i.dark.surfaceBright = ((k = n.dark) == null ? void 0 : k.surfaceBright) ?? ye(l.palettes.neutral.tone(24)), i.dark.surfaceContainerLowest = ((V = n.dark) == null ? void 0 : V.surfaceContainerLowest) ?? ye(l.palettes.neutral.tone(4)), i.dark.surfaceContainerLow = ((O = n.dark) == null ? void 0 : O.surfaceContainerLow) ?? ye(l.palettes.neutral.tone(10)), i.dark.surfaceContainer = ((q = n.dark) == null ? void 0 : q.surfaceContainer) ?? ye(l.palettes.neutral.tone(12)), i.dark.surfaceContainerHigh = ((M = n.dark) == null ? void 0 : M.surfaceContainerHigh) ?? ye(l.palettes.neutral.tone(17)), i.dark.surfaceContainerHighest = ((E = n.dark) == null ? void 0 : E.surfaceContainerHighest) ?? ye(l.palettes.neutral.tone(22)), i.light.surfaceTint = ye(l.palettes.primary.tone(40)), i.dark.surfaceTint = ye(l.palettes.primary.tone(80)), i;
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 dr(e = "#6750A4", t, n = {}) {
2208
- const i = "ufo-ui-theme";
2209
- let s = document.getElementById(i);
2210
- s || (s = document.createElement("style"), s.id = i, document.head.appendChild(s));
2211
- const o = cr(e, t, n), u = [
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 di = ({ children: e, colorMode: t, seedColor: n, extraColors: i }) => {
2219
- const [s, o] = ee(on), u = xt(
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 = xt(
2158
+ ), l = yt(
2225
2159
  (c) => (s.darkMode ? s.schemes.dark : s.schemes.light)[c] ?? "",
2226
2160
  [s]
2227
- ), m = xt(
2161
+ ), m = yt(
2228
2162
  (c, a) => s.schemes[c][a] ?? "",
2229
2163
  [s]
2230
2164
  );
2231
- be(() => {
2232
- if (t) {
2233
- const c = t === "dark";
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
- }, [t]), be(() => {
2170
+ }, [n]), ye(() => {
2237
2171
  const { schemes: c } = on;
2238
2172
  o((a) => ({
2239
2173
  darkMode: a.darkMode,
2240
- schemes: dr(n, i, c)
2174
+ schemes: ur(t, r, c)
2241
2175
  }));
2242
- }, [i, n]);
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__ */ r(vn.Provider, { value: p, children: e });
2255
- }, fi = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "time", className: "UITimeInput" })), fr = A(
2256
- ({ children: e, className: t = "", title: n = "", align: i = "topRight", value: s, ...o }, u) => {
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__ */ L("span", { className: "uui-tooltip", ref: u, ...o, children: [
2259
- /* @__PURE__ */ r(kt, { align: i, tooltip: /* @__PURE__ */ r("div", { children: n }), triggerRef: l }),
2260
- /* @__PURE__ */ r("div", { ref: l, children: e })
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
- fr.displayName = "Tooltip";
2265
- const mi = A((e, t) => /* @__PURE__ */ r(ut, { ref: t, ...e, type: "url", className: "UIUrlInput" })), Xe = A((e, t) => {
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: n = "flex",
2268
- inline: i = !1,
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: b,
2212
+ className: x,
2279
2213
  style: g,
2280
- fullWidth: x,
2281
- grow: $,
2282
- p: C,
2214
+ fullWidth: w,
2215
+ grow: F,
2216
+ p: b,
2283
2217
  px: h,
2284
- py: w,
2285
- pt: F,
2286
- pb: k,
2287
- pl: V,
2288
- pr: O,
2218
+ py: $,
2219
+ pt: k,
2220
+ pb: S,
2221
+ pl: M,
2222
+ pr: A,
2289
2223
  gap: q,
2290
- gapX: M,
2291
- gapY: E,
2292
- justifyContent: v,
2293
- alignItems: y,
2294
- placeItems: S,
2295
- alignContent: I,
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", D = T(g);
2304
- l && +l > 0 && D.border(ct(c)), D.bg(s), D.text.on(s);
2305
- const P = [];
2306
- n === "flex" ? P.push(i ? "uui-flex-inline" : "uui-flex") : n === "grid" ? P.push(i ? "uui-grid-inline" : "uui-grid") : P.push(i ? "uui-inline-block" : "uui-block"), x && P.push("uui-full"), $ && P.push("uui-grow"), C !== void 0 && D.set("padding", C), h !== void 0 && (D.set("paddingLeft", h), D.set("paddingRight", h)), w !== void 0 && (D.set("paddingTop", w), D.set("paddingBottom", w)), F !== void 0 && D.set("paddingTop", F), k !== void 0 && D.set("paddingBottom", k), V !== void 0 && D.set("paddingLeft", V), O !== void 0 && D.set("paddingRight", O), q !== void 0 && D.set("gap", q), M !== void 0 && D.set("columnGap", M), E !== void 0 && D.set("rowGap", E), v !== void 0 && D.set("justifyContent", v), y !== void 0 && D.set("alignItems", y), S !== void 0 && D.set("placeItems", S), I !== void 0 && D.set("alignContent", I), Z && D.set("flexWrap", "wrap"), n === "grid" && (U !== void 0 && D.set("gridTemplateColumns", typeof U == "number" ? `repeat(${U}, 1fr)` : U), X !== void 0 && D.set("gridTemplateRows", typeof X == "number" ? `repeat(${X}, 1fr)` : X));
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 && n === "flex" && (fe = Q === "col" ? "uui-flex-col" : "uui-flex-row");
2243
+ Q && t === "flex" && (fe = Q === "col" ? "uui-flex-col" : "uui-flex-row");
2310
2244
  let de = "";
2311
- p && n === "grid" && (de = p === "col" ? "uui-grid-flow-col" : "uui-grid-flow-row");
2312
- const j = [
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
- ...P,
2316
- ...u ? [je(u)] : [],
2317
- ...o !== void 0 ? [at(o)] : [],
2318
- ...l !== void 0 ? [tt(l)] : [],
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
- b
2255
+ x
2322
2256
  ].filter(Boolean).join(" ");
2323
- return /* @__PURE__ */ r(De, { className: j, ref: t, ...Me, style: D.get(), children: f });
2257
+ return /* @__PURE__ */ i(De, { className: D, ref: n, ...Me, style: V.get(), children: f });
2324
2258
  });
2325
- Xe.displayName = "BoxBase";
2326
- const mr = A(({ direction: e = "row", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, component: "header", direction: e, elementClass: "uui-header" }));
2327
- mr.displayName = "Header";
2328
- const pr = A(({ direction: e = "row", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, component: "footer", direction: e, elementClass: "uui-footer" }));
2329
- pr.displayName = "Footer";
2330
- const gr = A(({ direction: e = "col", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, component: "main", direction: e, elementClass: "uui-main" }));
2331
- gr.displayName = "Main";
2332
- const hr = A(({ direction: e = "col", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, component: "article", direction: e, elementClass: "uui-article" }));
2333
- hr.displayName = "Article";
2334
- const Cr = A(({ direction: e = "col", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, direction: e, elementClass: "uui-article-content" }));
2335
- Cr.displayName = "Content";
2336
- const yr = A(({ direction: e = "col", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, component: "section", direction: e, elementClass: "uui-section" }));
2337
- yr.displayName = "Section";
2338
- const br = A(({ direction: e = "col", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, component: "aside", direction: e, elementClass: "uui-aside" }));
2339
- br.displayName = "Aside";
2340
- const xr = A(({ direction: e = "row", ...t }, n) => /* @__PURE__ */ r(Xe, { ref: n, ...t, component: "nav", direction: e, elementClass: "uui-nav" }));
2341
- xr.displayName = "Nav";
2342
- const vr = A(({ direction: e = "row", ...t }, n) => /* @__PURE__ */ r(Xe, { ...t, direction: e, ref: n, type: "flex" }));
2343
- vr.displayName = "Flex";
2344
- const wr = A((e, t) => /* @__PURE__ */ r(Xe, { ...e, ref: t, type: "grid" }));
2345
- wr.displayName = "Grid";
2346
- const Sr = A((e, t) => /* @__PURE__ */ r(Xe, { ...e, ref: t, type: "block" }));
2347
- Sr.displayName = "Div";
2348
- function kr(e, t) {
2349
- be(() => {
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 n = (i) => {
2353
- i.key === "Escape" && t();
2286
+ const t = (r) => {
2287
+ r.key === "Escape" && n();
2354
2288
  };
2355
- return document.addEventListener("keydown", n), () => {
2356
- document.removeEventListener("keydown", n);
2289
+ return document.addEventListener("keydown", t), () => {
2290
+ document.removeEventListener("keydown", t);
2357
2291
  };
2358
- }, [e, t]);
2292
+ }, [e, n]);
2359
2293
  }
2360
- const $r = {
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
- }, Fr = (e, t) => e === "auto" ? $r[t] : e, sn = typeof document < "u" ? document.getElementById("dialog-root") ?? document.body : null, Nr = ({
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: t,
2370
- type: n = "basic",
2371
- color: i = "surfaceContainerHigh",
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: b,
2315
+ children: x,
2382
2316
  className: g,
2383
- motionStyle: x = "regular",
2384
- modal: $ = !1
2317
+ motionStyle: w = "regular",
2318
+ modal: F = !1
2385
2319
  }) => {
2386
- const C = ce(null), [h, w] = ee(!1), [F, k] = ee(!1), [V, O] = ee(), [q, M] = ee(!1), [E, v] = ee("normal"), y = ce(null), S = () => C.current ? Array.from(
2387
- C.current.querySelectorAll(
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((j) => !j.hasAttribute("disabled") && j.getAttribute("aria-hidden") !== "true") : [];
2391
- be(() => {
2324
+ ).filter((D) => !D.hasAttribute("disabled") && D.getAttribute("aria-hidden") !== "true") : [];
2325
+ ye(() => {
2392
2326
  if (e)
2393
- w(!0), v("normal"), M(!0), O(!0);
2327
+ $(!0), y("normal"), E(!0), A(!0);
2394
2328
  else {
2395
- v("reverse"), M(!1), O(!1);
2396
- const j = setTimeout(() => {
2397
- w(!1);
2329
+ y("reverse"), E(!1), A(!1);
2330
+ const D = setTimeout(() => {
2331
+ $(!1);
2398
2332
  }, c);
2399
2333
  return () => {
2400
- clearTimeout(j);
2334
+ clearTimeout(D);
2401
2335
  };
2402
2336
  }
2403
- }, [e, c]), be(() => {
2404
- E === "reverse" && M(!0);
2405
- }, [E]), be(() => {
2406
- V === !0 ? k(!0) : V === !1 && k(!1);
2407
- }, [V]), kr(!f && h, () => t == null ? void 0 : t());
2408
- const I = (j) => {
2409
- a || j.target === j.currentTarget && (t == null || t());
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 (be(() => {
2345
+ if (ye(() => {
2412
2346
  if (h) {
2413
- const j = document.body.style.overflow;
2347
+ const D = document.body.style.overflow;
2414
2348
  return document.body.style.overflow = "hidden", () => {
2415
- document.body.style.overflow = j;
2349
+ document.body.style.overflow = D;
2416
2350
  };
2417
2351
  }
2418
- }, [h]), be(() => {
2419
- if (!h || !$)
2352
+ }, [h]), ye(() => {
2353
+ if (!h || !F)
2420
2354
  return;
2421
- const j = S();
2422
- y.current = document.activeElement;
2423
- const Ve = j.length > 0 ? j[0] : C.current;
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 Fe = (z) => {
2359
+ const ke = (z) => {
2426
2360
  if (z.key !== "Tab")
2427
2361
  return;
2428
- const te = S();
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", Fe), () => {
2370
+ return document.addEventListener("keydown", ke), () => {
2437
2371
  var z;
2438
- document.removeEventListener("keydown", Fe), (z = y.current) == null || z.focus();
2372
+ document.removeEventListener("keydown", ke), (z = C.current) == null || z.focus();
2439
2373
  };
2440
- }, [$, h]), !h || !sn)
2374
+ }, [F, h]), !h || !sn)
2441
2375
  return null;
2442
- const Z = je(o), U = tt(u), X = Zt(ct(l)), we = at(s), { bgColor: he, textOnColor: K } = Vt(i), Me = Fr(p, n), De = Me === "none" ? "" : Mt[Me], D = x === "expressive" ? "uui-motion-expressive" : "", P = {
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": E,
2446
- "--uui-duration": E === "reverse" ? String(c * 0.67) + "ms" : String(c) + "ms"
2447
- }, fe = ["uui-dialog-backdrop", F && "uui-open"].filter(Boolean).join(" "), de = [
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-${n}`,
2383
+ `uui-dialog-${t}`,
2450
2384
  Z,
2451
2385
  U,
2452
- Ct(m),
2386
+ wt(m),
2453
2387
  X,
2454
2388
  we,
2455
2389
  he,
2456
2390
  K,
2457
2391
  q && De,
2458
- D,
2392
+ V,
2459
2393
  g
2460
2394
  ].filter(Boolean).join(" ");
2461
- return qt(
2395
+ return Wt(
2462
2396
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
2463
- /* @__PURE__ */ r("div", { className: fe, onClick: I, style: P, children: /* @__PURE__ */ r("div", { className: de, ref: C, style: Q, children: b }) }),
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
- Nr.displayName = "Dialog";
2468
- const Br = ({ icon: e, label: t, children: n, className: i, font: s = "headlineSmall" }) => {
2469
- const o = t ?? n ?? null, u = ["uui-dialog-title", i];
2470
- u.push($e(s));
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__ */ L("div", { className: l, children: [
2473
- e && /* @__PURE__ */ r("div", { className: "uui-icon", children: e }),
2474
- o && /* @__PURE__ */ r("div", { className: "uui-content", children: o })
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
- Br.displayName = "DialogTitle";
2478
- const Lr = ({ children: e, className: t }) => {
2479
- const n = ["uui-dialog-content", t].filter(Boolean).join(" ");
2480
- return e ? /* @__PURE__ */ r("div", { className: n, children: /* @__PURE__ */ r("div", { className: "uui-content", children: e }) }) : null;
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 Ir = ({
2417
+ const Br = ({
2484
2418
  children: e,
2485
- className: t,
2486
- color: n,
2487
- borderTop: i = !1,
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 = n ? Vt(n) : null, l = i ? tt(s) : "", m = i && n ? Zt(ct(o)) : "", p = [
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
- i ? "uui-dialog-actions-border-top" : "",
2431
+ r ? "uui-dialog-actions-border-top" : "",
2498
2432
  l,
2499
2433
  m,
2500
- t
2434
+ n
2501
2435
  ].filter(Boolean).join(" ");
2502
- return /* @__PURE__ */ r("div", { className: p, children: e });
2436
+ return /* @__PURE__ */ i("div", { className: p, children: e });
2503
2437
  };
2504
- Ir.displayName = "DialogActions";
2505
- const Er = A(
2438
+ Br.displayName = "DialogActions";
2439
+ const bn = P(
2506
2440
  ({
2507
2441
  description: e,
2508
- error: t,
2509
- font: n,
2510
- label: i,
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
- }, b) => {
2521
- const g = o ?? i, x = ["uui-fieldset-legend", Tt(n ?? "labelLarge")].filter(Boolean).join(" "), $ = T();
2522
- t ? $.text("error") : p ? $.text(p) : $.text.on("surfaceVariant");
2523
- const C = [
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
- Tt(c ?? "bodySmall"),
2526
- t && "uui-error",
2527
- e && !t && "uui-description"
2528
- ].filter(Boolean).join(" "), h = (e ?? t) && /* @__PURE__ */ r("div", { className: C, style: $.get(), children: t ?? e });
2529
- return /* @__PURE__ */ L(et, { children: [
2530
- /* @__PURE__ */ r(Dt.Provider, { value: { disabled: s }, children: /* @__PURE__ */ L(
2531
- Xe,
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: b,
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__ */ L("legend", { className: x, children: [
2475
+ g && /* @__PURE__ */ j("legend", { className: w, children: [
2542
2476
  g,
2543
- m && /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
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
- Er.displayName = "Fieldset";
2554
- const wn = A(
2555
- ({
2556
- description: e,
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), n == null || n(g);
2492
+ c || p(g), t == null || t(g);
2608
2493
  },
2609
- [c, n]
2610
- ), b = an(
2611
- () => ({ name: e, value: a, setValue: f, disabled: t }),
2612
- [e, a, f, t]
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__ */ r(wn, { disabled: t, ref: l, ...u, children: /* @__PURE__ */ r(gn.Provider, { value: b, children: o }) });
2499
+ return /* @__PURE__ */ i(bn, { disabled: n, ref: l, ...u, children: /* @__PURE__ */ i(jr.Provider, { value: x, children: o }) });
2615
2500
  }
2616
2501
  );
2617
- Tr.displayName = "RadioGroup";
2618
- const Mr = Symbol.for("uui.listItem"), Vr = /* @__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" }) }), Dr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
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
- ) }), jr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
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
- ) }), Rr = /* @__PURE__ */ r("svg", { fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
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
- ) }), zt = A(
2529
+ ) }), Xt = P(
2637
2530
  ({
2638
2531
  shape: e,
2639
- touchEffects: t = ["ripple"],
2640
- focusEffects: n = ["ring", "overlay"],
2641
- selectedEffects: i = ["color"],
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: b,
2544
+ icon: x,
2652
2545
  endIcon: g,
2653
- leading: x,
2654
- trailing: $,
2655
- label: C,
2546
+ leading: w,
2547
+ trailing: F,
2548
+ label: b,
2656
2549
  disabled: h = !1,
2657
- className: w,
2658
- onClick: F,
2659
- badge: k,
2660
- expanded: V,
2661
- active: O,
2550
+ className: $,
2551
+ onClick: k,
2552
+ badge: S,
2553
+ expanded: M,
2554
+ active: A,
2662
2555
  children: q,
2663
- focusVisible: M,
2664
- type: E = "item",
2665
- checked: v,
2666
- description: y,
2667
- shortcut: S,
2668
- density: I,
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: D,
2678
- variant: P = "classic",
2570
+ onChange: V,
2571
+ variant: O = "classic",
2679
2572
  ...Q
2680
2573
  }, fe) => {
2681
- const de = ce(null), j = lt.Children.toArray(q), Ve = j.find((G) => ht(G)), Fe = j.filter((G) => !ht(G)), z = !!Ve;
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
- E !== "item" && (E === "radio" ? te = v ? s ?? Rr : o ?? jr : E === "checkbox" && (te = v ? s ?? Dr : o));
2684
- const W = te ?? x ?? b ?? (a && !Z), ie = W && /* @__PURE__ */ r("div", { className: "uui-icon uui-leading", children: W }), We = $ ?? g;
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
- k && (typeof k == "string" || typeof k == "number" ? oe = /* @__PURE__ */ r(Xt, { value: k }) : oe = k);
2687
- const ne = P === "modern" ? "labelLarge" : "bodyLarge", xe = U ?? X ?? ne, He = we ?? (P === "modern" ? "bodySmall" : "bodyMedium"), _ = he ?? ne, me = T();
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 ? Vr : We, Re = S && /* @__PURE__ */ r("div", { className: `uui-menu-item-shortcut ${$e(_)}`, style: me.get(), children: S }), se = (S ?? k ?? Ee) && /* @__PURE__ */ L(et, { children: [
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__ */ r("div", { className: "uui-icon uui-trailing", children: Ee })
2585
+ Ee && /* @__PURE__ */ i("div", { className: "uui-icon uui-trailing", children: Ee })
2693
2586
  ] }), Se = T();
2694
2587
  Se.text(m);
2695
- const Ce = C && /* @__PURE__ */ r("div", { className: `uui-menu-item-label ${$e(xe)}`, style: Se.get(), children: C }), Ne = T();
2696
- (p || !l && P === "classic" && (f != null && f.startsWith("surface"))) && (p ? Ne.text(p) : Ne.text.on("surfaceVariant"));
2697
- const ke = y && /* @__PURE__ */ r(
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 ${$e(He)}`,
2701
- style: Ne.get(),
2702
- children: y
2593
+ className: `uui-menu-item-description ${Ie(He)}`,
2594
+ style: Fe.get(),
2595
+ children: C
2703
2596
  }
2704
- ), pe = (Ce ?? ke) && /* @__PURE__ */ L("div", { className: "uui-menu-item-text", children: [
2597
+ ), pe = (Ce ?? $e) && /* @__PURE__ */ j("div", { className: "uui-menu-item-text", children: [
2705
2598
  Ce,
2706
- ke
2599
+ $e
2707
2600
  ] }), qe = (G) => {
2708
2601
  if (De || h) {
2709
2602
  G == null || G.preventDefault();
2710
2603
  return;
2711
2604
  }
2712
- F == null || F(G), t.includes("ripple") && de.current && G && wt(de.current, G);
2605
+ k == null || k(G), n.includes("ripple") && de.current && G && St(de.current, G);
2713
2606
  };
2714
- let ge = f ?? (P === "modern" ? "surfaceContainerLow" : "surfaceContainer");
2715
- E === "option" && K && i.includes("color") && (ge = u ?? (P === "modern" ? "tertiaryContainer" : "secondaryContainer"));
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(ge), l ? Le.text(l) : Le.text.on(ge);
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
- w,
2723
- ft(I),
2615
+ $,
2616
+ dt(N),
2724
2617
  h && "uui-disabled",
2725
- P === "modern" ? "uui-menu-item-modern" : "uui-menu-item-classic"
2726
- ].filter(Boolean).join(" "), le = je(e ?? (P === "modern" ? "rounded" : "smooth")), N = [
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
- ...n.includes("ring") && O ? ["uui-focus-ring-in"] : [],
2730
- ...n.includes("overlay") && O ? ["uui-focus-overlay"] : [],
2731
- O && "uui-active",
2732
- O && M && "uui-focus-visible"
2733
- ].filter(Boolean).join(" "), Y = /* @__PURE__ */ L("div", { className: N, style: Le.get(), children: [
2734
- Fe.length > 0 ? /* @__PURE__ */ r("div", { className: "uui-menu-item-children", children: Fe }) : /* @__PURE__ */ L(et, { children: [
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__ */ r("div", { className: ["uui-state", le].join(" "), style: Be.get() })
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__ */ r(
2636
+ /* @__PURE__ */ i(
2744
2637
  "div",
2745
2638
  {
2746
2639
  ...Q,
2747
- "aria-checked": E === "radio" || E === "checkbox" ? v ?? !1 : void 0,
2640
+ "aria-checked": I === "radio" || I === "checkbox" ? y ?? !1 : void 0,
2748
2641
  "aria-disabled": h ? "true" : void 0,
2749
- "aria-expanded": z ? V : void 0,
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: mt(de, fe),
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
- zt[Mr] = !0;
2763
- zt[Kt] = !0;
2764
- zt.displayName = "ListItem";
2765
- const Ar = A((e, t) => {
2655
+ Xt[Ir] = !0;
2656
+ Xt[Gt] = !0;
2657
+ Xt.displayName = "ListItem";
2658
+ const Dr = P((e, n) => {
2766
2659
  const {
2767
- density: n,
2768
- icon: i,
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: b = ["ring"],
2671
+ focusEffects: x = ["ring"],
2779
2672
  selectedEffects: g = [],
2780
- pressedEffects: x = ["overlay", "scale"],
2781
- id: $,
2782
- name: C,
2673
+ pressedEffects: w = ["overlay", "scale"],
2674
+ id: F,
2675
+ name: b,
2783
2676
  label: h,
2784
- font: w,
2785
- border: F,
2786
- borderColor: k,
2787
- uncheckedBorder: V,
2788
- uncheckedBorderColor: O,
2677
+ font: $,
2678
+ border: k,
2679
+ borderColor: S,
2680
+ uncheckedBorder: M,
2681
+ uncheckedBorderColor: A,
2789
2682
  onChange: q,
2790
- onClick: M,
2791
- required: E,
2792
- shape: v = "round",
2793
- title: y,
2794
- value: S,
2795
- size: I = "small",
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: D,
2805
- duration: P = 200,
2697
+ textColor: V,
2698
+ duration: O = 200,
2806
2699
  tooltipAlign: Q = "auto",
2807
2700
  textPlacement: fe = "end",
2808
2701
  "aria-label": de,
2809
- readOnly: j,
2702
+ readOnly: D,
2810
2703
  ...Ve
2811
- } = e, Fe = ce(null), z = Lt(Dt), te = s ?? (z == null ? void 0 : z.disabled), W = jt(), [ie, We] = ee(!1), oe = ce(null), ne = ce(null), xe = ce(null), He = ce(St("check")), _ = $ ?? He.current, me = u !== void 0, [Ee, Re] = ee(c ?? !1), se = me ? !!u : Ee, Se = de ?? (h ? void 0 : y), Ce = K ? "error" : m, Ne = y ? /* @__PURE__ */ r("div", { id: `${_}-tip`, children: y }) : null, ke = (ue) => {
2812
- if (j) {
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 Ye = ue.currentTarget;
2817
- me || Re(Ye.checked), q == null || q(ue);
2709
+ const ze = ue.currentTarget;
2710
+ me || Re(ze.checked), q == null || q(ue);
2818
2711
  }, pe = (ue) => {
2819
- if (j) {
2712
+ if (D) {
2820
2713
  ue.preventDefault();
2821
2714
  return;
2822
2715
  }
2823
- f.includes("ripple") && (Fe.current && clearTimeout(Fe.current), Fe.current = window.setTimeout(() => {
2824
- xe.current && ne.current && (wt(xe.current, ue, ne.current), Fe.current = null);
2825
- }, P)), M == null || M(ue);
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 Ye;
2828
- We(!0), (Ye = e.onFocus) == null || Ye.call(e, ue);
2720
+ var ze;
2721
+ We(!0), (ze = e.onFocus) == null || ze.call(e, ue);
2829
2722
  }, ge = (ue) => {
2830
- var Ye;
2831
- We(!1), (Ye = e.onBlur) == null || Ye.call(e, ue);
2832
- }, Be = T(), Le = [
2723
+ var ze;
2724
+ We(!1), (ze = e.onBlur) == null || ze.call(e, ue);
2725
+ }, Le = T(), Be = [
2833
2726
  "uui-switch",
2834
- ft(n),
2727
+ dt(t),
2835
2728
  he,
2836
2729
  te && "uui-disabled",
2837
- ...l ? [] : [Ct(I)]
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") && !j ? ["uui-hover-overlay"] : [],
2843
- ...b.includes("overlay") && W && ie ? ["uui-focus-overlay"] : [],
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
- ...x.includes("overlay") && !j ? ["uui-pressed-overlay"] : [],
2846
- ...x.includes("scale") && !j ? ["uui-pressed-scale"] : [],
2847
- je(v),
2848
- b.includes("ring") && W && ie && "uui-focus-visible uui-focus-ring"
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", pn(Me).color), le.set("--uui-switch-duration", `${P}ms`);
2851
- const N = ["uui-input"].filter(Boolean).join(" "), Y = ["uui-state", je("round")].filter(Boolean).join(" "), Te = T(), Je = [
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
- tt(se ? F : V ?? F ?? 2),
2854
- je(v),
2855
- at(o)
2856
- ].filter(Boolean).join(" "), _e = T(), H = ["uui-switch-thumb", je(v)].filter(Boolean).join(" "), ae = ["uui-icon"].filter(Boolean).join(" "), Ae = T(), Oe = ["uui-switch-glyph"].filter(Boolean).join(" "), Pe = T(), J = T();
2857
- _e.border(K ? "error" : k ?? "outline"), J.border(K ? "error" : k ?? "outline"), se ? (Te.bg(Ce), _e.bg(K ? "errorContainer" : m), Pe.bg.on(m), Ae.text.onContainer(m)) : (O && (_e.border(K ? "error" : O), J.border(K ? "error" : O)), Te.bg(K ? "error" : p ?? "onSurface"), _e.bg(K ? "errorContainer" : p ?? "surfaceContainerHighest"), p ? (Pe.bg.on(p), Ae.text.onContainer(p)) : (Pe.bg(Z ? "onSurfaceVariant" : "outline"), Ae.text("surfaceContainerHighest")));
2858
- let ze;
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
- je(v),
2863
- tt(F),
2864
- at(o)
2755
+ Ue(y),
2756
+ nt(k),
2757
+ ut(o)
2865
2758
  ].filter(Boolean).join(" ");
2866
- ze = /* @__PURE__ */ L("div", { className: ue, style: J.get(), children: [
2759
+ Xe = /* @__PURE__ */ j("div", { className: ue, style: J.get(), children: [
2867
2760
  l,
2868
- /* @__PURE__ */ r("div", { className: Y, ref: xe, style: Te.get() })
2761
+ /* @__PURE__ */ i("div", { className: Y, ref: ve, style: Te.get() })
2869
2762
  ] });
2870
2763
  } else {
2871
- const ue = se ? i : Z;
2872
- ze = /* @__PURE__ */ L(et, { children: [
2873
- /* @__PURE__ */ r("div", { className: Je, style: _e.get() }),
2874
- /* @__PURE__ */ L("div", { className: H, children: [
2875
- /* @__PURE__ */ r("div", { className: Oe, style: Pe.get(), children: /* @__PURE__ */ r("div", { className: ae, style: Ae.get(), children: ue }) }),
2876
- /* @__PURE__ */ r("div", { className: Y, ref: xe, style: Te.get() })
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 Ie = T();
2881
- Ie.text((K ? "error" : void 0) ?? De ?? D ?? "onSurface");
2882
- const re = [$e(w ?? "bodyMedium"), "uui-switch-label"].join(" "), Qe = h && /* @__PURE__ */ L("label", { className: re, htmlFor: _, style: Ie.get(), children: [
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
- E && /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "uui-required", children: "*" })
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
- $e(we ?? "bodySmall"),
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(" "), nt = (U ?? K) && /* @__PURE__ */ r("div", { className: ot, style: Ge.get(), children: K ?? U }), pt = (Qe ?? nt) && /* @__PURE__ */ L(et, { children: [
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
- nt
2786
+ et
2894
2787
  ] }), Ke = T();
2895
- return fe === "end" ? (Ie.set("gridColumn", 2), Ge.set("gridColumn", 2), Ke.set("gridColumn", 1)) : fe === "start" ? (Ie.set("gridColumn", 1), Ge.set("gridColumn", 1), Ke.set("gridColumn", 2), Ke.set("gridRow", 1)) : (Be.set("gridTemplateColumns", "1fr"), Be.set("justifyItems", "start")), fe === "top" && (Ke.set("order", 1), Ge.set("order", 2)), /* @__PURE__ */ L("div", { className: Le, style: Be.get(), children: [
2896
- /* @__PURE__ */ r("div", { className: "uui-switch-control-wrapper", style: Ke.get(), children: /* @__PURE__ */ L("div", { className: Ze, ref: ne, style: le.get(), children: [
2897
- /* @__PURE__ */ r(
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": j === !0 ? !0 : void 0,
2794
+ "aria-readonly": D === !0 ? !0 : void 0,
2902
2795
  checked: !!se,
2903
- className: N,
2796
+ className: L,
2904
2797
  disabled: te,
2905
2798
  id: _,
2906
- name: C,
2799
+ name: b,
2907
2800
  onBlur: ge,
2908
- onChange: ke,
2801
+ onChange: $e,
2909
2802
  onClick: pe,
2910
2803
  onFocus: qe,
2911
- readOnly: j,
2912
- ref: mt(oe, t),
2804
+ readOnly: D,
2805
+ ref: ft(oe, n),
2913
2806
  type: "checkbox",
2914
- value: S,
2807
+ value: v,
2915
2808
  ...Ve
2916
2809
  }
2917
2810
  ),
2918
- ze
2811
+ Xe
2919
2812
  ] }) }),
2920
2813
  pt,
2921
- Ne && /* @__PURE__ */ r(kt, { align: Q, tooltip: Ne, triggerRef: oe })
2814
+ Fe && /* @__PURE__ */ i(kt, { align: Q, tooltip: Fe, triggerRef: oe })
2922
2815
  ] });
2923
2816
  });
2924
- Ar.displayName = "Switch";
2925
- function pi({ variant: e = "circular", inline: t, className: n }) {
2926
- const i = ["uui-spinner", `uui-spinner-${e}`, t && "uui-spinner-inline", n].filter(Boolean).join(" ");
2927
- 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: [
2928
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", width: "4", x: "22" }),
2929
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-135 33.9 16.9)", width: "4", x: "33.9", y: "16.9" }),
2930
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-90 36 26)", width: "4", x: "36", y: "26" }),
2931
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-45 31.1 33.9)", width: "4", x: "31.1", y: "33.9" }),
2932
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", width: "4", x: "22", y: "36" }),
2933
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-135 8.4 42.4)", width: "4", x: "8.4", y: "42.4" }),
2934
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-90 0 26)", width: "4", y: "26" }),
2935
- /* @__PURE__ */ r("rect", { height: "12", rx: "2", transform: "rotate(-45 5.6 8.4)", width: "4", x: "5.6", y: "8.4" })
2936
- ] }) : e === "orbit" ? /* @__PURE__ */ L("svg", { className: "uui-orbit-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
2937
- /* @__PURE__ */ r("circle", { cx: "24", cy: "4", r: "4" }),
2938
- /* @__PURE__ */ r("circle", { cx: "38.1421", cy: "9.8579", r: "4" }),
2939
- /* @__PURE__ */ r("circle", { cx: "44", cy: "24", r: "4" }),
2940
- /* @__PURE__ */ r("circle", { cx: "38.1421", cy: "38.1421", r: "4" }),
2941
- /* @__PURE__ */ r("circle", { cx: "24", cy: "44", r: "4" }),
2942
- /* @__PURE__ */ r("circle", { cx: "9.8579", cy: "38.1421", r: "4" }),
2943
- /* @__PURE__ */ r("circle", { cx: "4", cy: "24", r: "4" }),
2944
- /* @__PURE__ */ r("circle", { cx: "9.8579", cy: "9.8579", r: "4" })
2945
- ] }) : e === "arc" ? /* @__PURE__ */ L("svg", { className: "uui-ring-spinner", viewBox: "0 0 56 56", xmlns: "http://www.w3.org/2000/svg", children: [
2946
- /* @__PURE__ */ r("circle", { cx: "28", cy: "28", fill: "none", opacity: "0.25", r: "22", stroke: "currentColor", strokeWidth: "8" }),
2947
- /* @__PURE__ */ r(
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__ */ L("svg", { className: "uui-bars-steps", viewBox: "0 0 48 48", children: [
2962
- /* @__PURE__ */ r("rect", { height: "8", rx: "4", width: "8", x: "6", y: "20" }),
2963
- /* @__PURE__ */ r("rect", { height: "8", rx: "4", width: "8", x: "20", y: "20" }),
2964
- /* @__PURE__ */ r("rect", { height: "8", rx: "4", width: "8", x: "34", y: "20" })
2965
- ] }) : /* @__PURE__ */ L("svg", { className: "uui-dots2-spinner", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", children: [
2966
- /* @__PURE__ */ r("circle", { cx: "10", cy: "24", r: "4" }),
2967
- /* @__PURE__ */ r("circle", { cx: "24", cy: "24", r: "4" }),
2968
- /* @__PURE__ */ r("circle", { cx: "38", cy: "24", r: "4" })
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 gi() {
2972
- const e = Lt(vn);
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 kt = ({ tooltip: e, align: t, triggerRef: n }) => {
2978
- const [i, s] = ee(!1), [o, u] = ee(null), l = ce(null), { bgColor: m, textOnColor: p } = Vt("inverseSurface");
2979
- be(() => {
2980
- const f = n.current;
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 b = () => {
2880
+ const x = () => {
2984
2881
  s(!0);
2985
2882
  }, g = () => {
2986
2883
  s(!1), u(null);
2987
- }, x = ($) => {
2988
- $.target.matches(":focus-visible") && s(!0);
2884
+ }, w = (F) => {
2885
+ F.target.matches(":focus-visible") && s(!0);
2989
2886
  };
2990
- return f.addEventListener("mouseenter", b), f.addEventListener("mouseleave", g), f.addEventListener("focus", x), f.addEventListener("blur", g), () => {
2991
- f.removeEventListener("mouseenter", b), f.removeEventListener("mouseleave", g), f.removeEventListener("focus", x), f.removeEventListener("blur", g);
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
- }, [n]), be(() => {
2994
- if (!i)
2890
+ }, [t]), ye(() => {
2891
+ if (!r)
2995
2892
  return;
2996
2893
  const f = requestAnimationFrame(() => {
2997
- if (!l.current || !n.current)
2894
+ if (!l.current || !t.current)
2998
2895
  return;
2999
- const b = yn(n, l, {
3000
- placement: t,
2896
+ const x = pn(t, l, {
2897
+ placement: n,
3001
2898
  offset: 8
3002
2899
  });
3003
- b && u({ x: b.x, y: b.y });
2900
+ x && u({ x: x.x, y: x.y });
3004
2901
  });
3005
2902
  return () => {
3006
2903
  cancelAnimationFrame(f);
3007
2904
  };
3008
- }, [t, i, n]);
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 && i ? "visible" : "hidden"
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 qt(
3028
- /* @__PURE__ */ r("div", { className: a, ref: l, role: "tooltip", style: c, children: e }),
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 yt = A((e, t) => {
2930
+ const Ct = P((e, n) => {
3034
2931
  const {
3035
- color: n,
3036
- selectedColor: i,
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: b = ["ripple"],
2943
+ touchEffects: x = ["ripple"],
3047
2944
  selectedEffects: g = ["morph", "color"],
3048
- focusEffects: x = ["ring", "overlay"],
3049
- children: $,
3050
- outlined: C = !1,
2945
+ focusEffects: w = ["ring", "overlay"],
2946
+ children: F,
2947
+ outlined: b = !1,
3051
2948
  filled: h = !1,
3052
- tonal: w = !1,
3053
- elevated: F = !1,
3054
- flat: k = !1,
3055
- elevation: V,
3056
- disabled: O,
2949
+ tonal: $ = !1,
2950
+ elevated: k = !1,
2951
+ flat: S = !1,
2952
+ elevation: M,
2953
+ disabled: A,
3057
2954
  textColor: q,
3058
- selectedTextColor: M,
3059
- shape: E = "round",
3060
- selectedShape: v = "rounded",
3061
- icon: y,
3062
- selectedIcon: S,
3063
- leading: I,
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: D,
3073
- id: P = "",
2969
+ onUploadChange: V,
2970
+ id: O = "",
3074
2971
  name: Q = "",
3075
2972
  loading: fe,
3076
2973
  fullWidth: de = !1,
3077
- link: j,
2974
+ link: D,
3078
2975
  selected: Ve,
3079
- defaultSelected: Fe,
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, [xe, He] = ee(Fe ?? !1), _ = ne ? Ve : xe, me = ce(null), Ee = ce(null), Re = ce(null), se = ce(St("button")), Se = P || Q || se.current, Ce = j ? lt.cloneElement(j, { ref: Ee, style: { display: "none" } }) : null, Ne = [
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
- ft(W),
2987
+ dt(W),
3091
2988
  ...de ? ["uui-full"] : []
3092
- ].filter(Boolean).join(" "), ke = [
2989
+ ].filter(Boolean).join(" "), $e = [
3093
2990
  "uui-btn-control",
3094
- $e(he),
2991
+ Ie(he),
3095
2992
  ...h ? ["uui-filled"] : [],
3096
- ...F ? ["uui-elevated"] : [],
3097
- ...w ? ["uui-tonal"] : [],
3098
- ...C ? ["uui-outlined"] : [],
3099
- ...x.includes("ring") ? ["uui-focus-ring"] : [],
3100
- ...x.includes("overlay") ? ["uui-focus-overlay"] : [],
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
- ...$ ? [] : [Ct(m)],
3003
+ ...F ? [] : [wt(m)],
3107
3004
  ..._ ? ["uui-selected"] : []
3108
- ], pe = ["uui-state"], qe = z && _ && g.includes("morph") ? je(v) : je(E);
3109
- ke.push(qe), pe.push(qe);
3110
- const ge = "uui-icon", Be = z && _ ? S ?? I ?? y : I ?? y, Le = fe ? /* @__PURE__ */ r("div", { className: ge, children: /* @__PURE__ */ r(In, {}) }) : Be && /* @__PURE__ */ r("div", { className: ge, children: Be }), Ze = (U ?? Z) && /* @__PURE__ */ r("div", { className: ge, children: U ?? Z });
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, $e(he)].filter(Boolean).join(" ");
3114
- le = /* @__PURE__ */ r("div", { className: J, children: $ });
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__ */ L("div", { className: "uui-btn-content", children: [
3117
- Le,
3118
- o && /* @__PURE__ */ r("span", { className: "uui-label " + $e(he), children: o }),
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 N = T(ie), Y = T();
3122
- if (C || p !== void 0) {
3123
- N.border(ct(c));
3124
- const ze = tt(p ?? (C ? 1 : 0));
3125
- ke.push(ze);
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 = V;
3128
- V === void 0 && (w || h ? k || (Te = F ? 1 : 0) : F && (Te = 1));
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") && !k ? ["uui-hover-elevate"] : [],
3131
- ...f.includes("elevate") && !k ? ["uui-pressed-elevate"] : []
3027
+ ...a.includes("elevate") && !S ? ["uui-hover-elevate"] : [],
3028
+ ...f.includes("elevate") && !S ? ["uui-pressed-elevate"] : []
3132
3029
  ];
3133
- ke.push(...G, at(Te));
3030
+ $e.push(...G, ut(Te));
3134
3031
  const Je = () => {
3135
- h ? (N.bg(n ?? "primary"), Y.bg.on(n ?? "primary"), q ? N.text(q) : N.text.on(n ?? "primary")) : w ? (N.bg.container("secondary"), Y.bg.onContainer("secondary"), q ? N.text(q) : N.text.onContainer("secondary")) : F ? (N.bg("surfaceContainerLow"), N.text(q ?? n ?? "primary"), Y.bg(n ?? "primary")) : C && !q ? (N.text.on("surfaceVariant"), Y.bg.on("surfaceVariant")) : (N.text(q ?? n ?? "primary"), Y.bg(q ?? n ?? "primary"));
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
- n ? (N.bg(n), Y.bg.on(n), N.text.on(n)) : h ? (N.bg("surfaceContainer"), Y.bg.on("surfaceContainer"), N.text.on("surfaceVariant")) : F ? (N.bg("surfaceContainerLow"), Y.bg.on("surfaceContainerLow"), N.text("primary")) : w ? (N.bg.container("secondary"), Y.bg("secondary"), N.text.onContainer("secondary")) : C && !q ? (N.text.on("surfaceVariant"), Y.bg.on("surfaceVariant")) : (N.text(q ?? n ?? "primary"), Y.bg(q ?? n ?? "primary")), q && N.text(q);
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 = i ?? n ?? "primary";
3140
- w && !i ? (N.bg("secondary"), Y.bg.on("secondary"), M ? N.text(M) : N.text.on("secondary")) : C && !i ? (N.bg("inverseSurface"), Y.bg.on("inverseSurface"), M ? N.text(M) : N.text.on("inverseSurface")) : (N.bg(J), Y.bg.on(J), M ? N.text(M) : N.text.on(J));
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 ze;
3145
- if (!O) {
3041
+ var Xe;
3042
+ if (!A) {
3146
3043
  if (z) {
3147
- const Ie = !_;
3148
- ne || He(Ie), (ze = e.onChange) == null || ze.call(e, {
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: Ie
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), b.includes("ripple") && wt(J.currentTarget, J);
3062
+ X && X(J), x.includes("ripple") && St(J.currentTarget, J);
3166
3063
  }
3167
- }, Ae = u ? /* @__PURE__ */ r("div", { id: `${Se}-tip`, children: u }) : null;
3168
- let Oe;
3169
- o && $ && (Oe = o), !o && !$ && (Oe = u);
3170
- const Pe = We ?? Oe;
3171
- return /* @__PURE__ */ L("div", { className: Ne, children: [
3172
- K && /* @__PURE__ */ r(
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: D,
3075
+ onChange: V,
3179
3076
  ref: me,
3180
3077
  style: { display: "none" },
3181
3078
  type: "file"
3182
3079
  }
3183
3080
  ),
3184
- /* @__PURE__ */ L(
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": Pe,
3087
+ "aria-label": Oe,
3191
3088
  "aria-pressed": z ? _ : void 0,
3192
- className: ke.join(" "),
3193
- disabled: O,
3089
+ className: $e.join(" "),
3090
+ disabled: A,
3194
3091
  id: Se,
3195
3092
  name: Q || void 0,
3196
3093
  onClick: ae,
3197
- ref: mt(t, Re),
3198
- style: N.get(),
3094
+ ref: ft(n, Re),
3095
+ style: L.get(),
3199
3096
  type: l,
3200
3097
  ...oe,
3201
3098
  children: [
3202
- /* @__PURE__ */ r("div", { className: pe.join(" "), style: Y.get() }),
3099
+ /* @__PURE__ */ i("div", { className: pe.join(" "), style: Y.get() }),
3203
3100
  le
3204
3101
  ]
3205
3102
  }
3206
3103
  ),
3207
3104
  Ce,
3208
- Ae && /* @__PURE__ */ r(kt, { align: te, tooltip: Ae, triggerRef: Re })
3105
+ je && /* @__PURE__ */ i(kt, { align: te, tooltip: je, triggerRef: Re })
3209
3106
  ] });
3210
3107
  });
3211
- yt.displayName = "ButtonBase";
3108
+ Ct.displayName = "ButtonBase";
3212
3109
  export {
3213
- hr as Article,
3214
- br as Aside,
3215
- On as Badge,
3216
- Xe as BoxBase,
3217
- Rn as Button,
3218
- yt as ButtonBase,
3219
- qn as Card,
3220
- zn as Checkbox,
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
- An as Chip,
3223
- Cr as Content,
3119
+ Rn as Chip,
3120
+ gr as Content,
3224
3121
  T as ControlStyle,
3225
- si as DateInput,
3226
- li as DateTimeInput,
3227
- Nr as Dialog,
3228
- Ir as DialogActions,
3122
+ oi as DateInput,
3123
+ si as DateTimeInput,
3124
+ kr as Dialog,
3125
+ Br as DialogActions,
3229
3126
  Lr as DialogContent,
3230
- Br as DialogTitle,
3231
- Sr as Div,
3232
- xn as Divider,
3233
- ai as EmailInput,
3234
- Jn as Fab,
3235
- ut as FieldBase,
3236
- Er as Fieldset,
3237
- vr as Flex,
3238
- pr as Footer,
3239
- wr as Grid,
3240
- mr as Header,
3241
- Qn as IconButton,
3242
- zt as ListItem,
3243
- gr as Main,
3244
- Gt as Menu,
3245
- bn as MenuItem,
3246
- xr as Nav,
3247
- ui as NumberInput,
3248
- ar as Radio,
3249
- Tr as RadioGroup,
3250
- yr as Section,
3251
- pi as Spinner,
3252
- Ar as Switch,
3253
- ci as TelInput,
3254
- ur as TextField,
3255
- En as ThemeExtendedColorKeys,
3256
- di as ThemeProvider,
3257
- mn as ThemeSchemeKeys,
3258
- dn as ThemeSemanticColorKeys,
3259
- fn as ThemeSurfaceColorKeys,
3260
- fi as TimeInput,
3261
- er as ToggleButton,
3262
- fr as Tooltip,
3263
- mi as UrlInput,
3264
- yn as calculateFloatingPosition,
3265
- Hn as clampInt,
3266
- ni as createRipple,
3267
- zr as getAlignClass,
3268
- Tn as getAnimationClass,
3269
- Hr as getAnimationList,
3270
- Yr as getBodySizeClass,
3271
- Un as getBorderClass,
3272
- ct as getBorderColor,
3273
- Zt as getBorderColorClass,
3274
- qr as getColorClasses,
3275
- Xr as getCurrentColorClasses,
3276
- ei as getDensityClass,
3277
- ii as getElementDisplayName,
3278
- Wn as getElevationClass,
3279
- Gr as getFixedColorClasses,
3280
- Tt as getFontClass,
3281
- Mn as getMotionStyleClass,
3282
- Qr as getOutlineClass,
3283
- Vn as getSemanticColorClasses,
3284
- Zr as getSemanticColorVar,
3285
- Pn as getShapeClass,
3286
- Jr as getSizeClass,
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
- pn as getSurfaceColorVar,
3289
- Kr as getTintOverlayColor,
3290
- _r as hexToRgb,
3291
- Dn as hexToRgbValues,
3292
- Et as inverseColorMap,
3293
- Pt as isMenuItem,
3294
- ti as mergeRefs,
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
- oi as setFocusVisible,
3200
+ ii as setFocusVisible,
3297
3201
  nn as toKebabCase,
3298
- ri as uniqueID,
3299
- gi as useTheme
3202
+ ni as uniqueID,
3203
+ mi as useTheme
3300
3204
  };