@dendelion/func-ui 0.1.1 → 0.2.0

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