@goliapkg/gds 1.4.3 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dist/index.js +15 -15
  2. package/dist/l3-atoms/animated-border.d.ts +9 -0
  3. package/dist/l3-atoms/animated-border.d.ts.map +1 -0
  4. package/dist/l3-atoms/index.d.ts +12 -0
  5. package/dist/l3-atoms/index.d.ts.map +1 -1
  6. package/dist/l3-atoms/index.js +6 -6
  7. package/dist/l3-atoms/number-flow.d.ts +8 -0
  8. package/dist/l3-atoms/number-flow.d.ts.map +1 -0
  9. package/dist/l3-atoms/orbit.d.ts +10 -0
  10. package/dist/l3-atoms/orbit.d.ts.map +1 -0
  11. package/dist/l3-atoms/stagger.d.ts +10 -0
  12. package/dist/l3-atoms/stagger.d.ts.map +1 -0
  13. package/dist/l3-atoms/trend-indicator.d.ts +9 -0
  14. package/dist/l3-atoms/trend-indicator.d.ts.map +1 -0
  15. package/dist/l3-atoms/volume-slider.d.ts +8 -0
  16. package/dist/l3-atoms/volume-slider.d.ts.map +1 -0
  17. package/dist/{l3-atoms-BxDg3rXt.js → l3-atoms-LtIFAn9Y.js} +553 -421
  18. package/dist/l3-atoms-LtIFAn9Y.js.map +1 -0
  19. package/dist/l4-molecules/activity-log.d.ts +13 -0
  20. package/dist/l4-molecules/activity-log.d.ts.map +1 -0
  21. package/dist/l4-molecules/bottom-bar.d.ts +7 -0
  22. package/dist/l4-molecules/bottom-bar.d.ts.map +1 -0
  23. package/dist/l4-molecules/circular-menu.d.ts +14 -0
  24. package/dist/l4-molecules/circular-menu.d.ts.map +1 -0
  25. package/dist/l4-molecules/collapsible.d.ts +12 -2
  26. package/dist/l4-molecules/collapsible.d.ts.map +1 -1
  27. package/dist/l4-molecules/command-bar-float.d.ts +13 -0
  28. package/dist/l4-molecules/command-bar-float.d.ts.map +1 -0
  29. package/dist/l4-molecules/command-bar.d.ts +16 -0
  30. package/dist/l4-molecules/command-bar.d.ts.map +1 -0
  31. package/dist/l4-molecules/comparison-bar.d.ts +13 -0
  32. package/dist/l4-molecules/comparison-bar.d.ts.map +1 -0
  33. package/dist/l4-molecules/countdown-timer.d.ts +8 -0
  34. package/dist/l4-molecules/countdown-timer.d.ts.map +1 -0
  35. package/dist/l4-molecules/feature-flag.d.ts +8 -0
  36. package/dist/l4-molecules/feature-flag.d.ts.map +1 -0
  37. package/dist/l4-molecules/flip-card.d.ts +9 -0
  38. package/dist/l4-molecules/flip-card.d.ts.map +1 -0
  39. package/dist/l4-molecules/glitch-text.d.ts +8 -0
  40. package/dist/l4-molecules/glitch-text.d.ts.map +1 -0
  41. package/dist/l4-molecules/index.d.ts +54 -2
  42. package/dist/l4-molecules/index.d.ts.map +1 -1
  43. package/dist/l4-molecules/index.js +3 -3
  44. package/dist/l4-molecules/live-metric.d.ts +9 -0
  45. package/dist/l4-molecules/live-metric.d.ts.map +1 -0
  46. package/dist/l4-molecules/matrix-rain.d.ts +9 -0
  47. package/dist/l4-molecules/matrix-rain.d.ts.map +1 -0
  48. package/dist/l4-molecules/media-container.d.ts +11 -0
  49. package/dist/l4-molecules/media-container.d.ts.map +1 -0
  50. package/dist/l4-molecules/morphing-shape.d.ts +8 -0
  51. package/dist/l4-molecules/morphing-shape.d.ts.map +1 -0
  52. package/dist/l4-molecules/network-status.d.ts +7 -0
  53. package/dist/l4-molecules/network-status.d.ts.map +1 -0
  54. package/dist/l4-molecules/noise-overlay.d.ts +7 -0
  55. package/dist/l4-molecules/noise-overlay.d.ts.map +1 -0
  56. package/dist/l4-molecules/num-table.d.ts +19 -0
  57. package/dist/l4-molecules/num-table.d.ts.map +1 -0
  58. package/dist/l4-molecules/otp-input.d.ts +9 -0
  59. package/dist/l4-molecules/otp-input.d.ts.map +1 -0
  60. package/dist/l4-molecules/particle-field.d.ts +9 -0
  61. package/dist/l4-molecules/particle-field.d.ts.map +1 -0
  62. package/dist/l4-molecules/reveal.d.ts +9 -0
  63. package/dist/l4-molecules/reveal.d.ts.map +1 -0
  64. package/dist/l4-molecules/scoreboard.d.ts +8 -0
  65. package/dist/l4-molecules/scoreboard.d.ts.map +1 -0
  66. package/dist/l4-molecules/stat-trend.d.ts +9 -0
  67. package/dist/l4-molecules/stat-trend.d.ts.map +1 -0
  68. package/dist/l4-molecules/text-reveal.d.ts +8 -0
  69. package/dist/l4-molecules/text-reveal.d.ts.map +1 -0
  70. package/dist/l4-molecules/text-scramble.d.ts +8 -0
  71. package/dist/l4-molecules/text-scramble.d.ts.map +1 -0
  72. package/dist/l4-molecules/tilt-card.d.ts +9 -0
  73. package/dist/l4-molecules/tilt-card.d.ts.map +1 -0
  74. package/dist/l4-molecules/upload-progress.d.ts +14 -0
  75. package/dist/l4-molecules/upload-progress.d.ts.map +1 -0
  76. package/dist/{l4-molecules-DftsX-gO.js → l4-molecules-Bnt38HxY.js} +1077 -197
  77. package/dist/l4-molecules-Bnt38HxY.js.map +1 -0
  78. package/dist/l5-organisms/index.d.ts +4 -4
  79. package/dist/l5-organisms/index.d.ts.map +1 -1
  80. package/dist/l5-organisms/index.js +2 -2
  81. package/dist/l5-organisms/kanban.d.ts +13 -0
  82. package/dist/l5-organisms/kanban.d.ts.map +1 -1
  83. package/dist/l5-organisms/timeline.d.ts +16 -0
  84. package/dist/l5-organisms/timeline.d.ts.map +1 -1
  85. package/dist/{l5-organisms-Di1Bm_R6.js → l5-organisms-C7LXv0jT.js} +205 -125
  86. package/dist/l5-organisms-C7LXv0jT.js.map +1 -0
  87. package/dist/l6-charts/choropleth-map.d.ts +14 -0
  88. package/dist/l6-charts/choropleth-map.d.ts.map +1 -0
  89. package/dist/l6-charts/index.d.ts +6 -0
  90. package/dist/l6-charts/index.d.ts.map +1 -1
  91. package/dist/l6-charts/index.js +2 -2
  92. package/dist/l6-charts/polar-area-chart.d.ts +13 -0
  93. package/dist/l6-charts/polar-area-chart.d.ts.map +1 -0
  94. package/dist/l6-charts/stock-ticker.d.ts +12 -0
  95. package/dist/l6-charts/stock-ticker.d.ts.map +1 -0
  96. package/dist/{l6-charts-Bn9RQLbe.js → l6-charts-DPMj1m0E.js} +345 -148
  97. package/dist/l6-charts-DPMj1m0E.js.map +1 -0
  98. package/dist/l7-patterns/index.d.ts +2 -0
  99. package/dist/l7-patterns/index.d.ts.map +1 -1
  100. package/dist/l7-patterns/index.js +2 -2
  101. package/dist/l7-patterns/stat.d.ts +22 -0
  102. package/dist/l7-patterns/stat.d.ts.map +1 -0
  103. package/dist/{l7-patterns-BCpw0-CS.js → l7-patterns-8fc4b3eE.js} +605 -462
  104. package/dist/l7-patterns-8fc4b3eE.js.map +1 -0
  105. package/package.json +1 -1
  106. package/dist/l3-atoms-BxDg3rXt.js.map +0 -1
  107. package/dist/l4-molecules-DftsX-gO.js.map +0 -1
  108. package/dist/l5-organisms-Di1Bm_R6.js.map +0 -1
  109. package/dist/l6-charts-Bn9RQLbe.js.map +0 -1
  110. package/dist/l7-patterns-BCpw0-CS.js.map +0 -1
@@ -8,12 +8,33 @@ import { t as l } from "./avatar-l3SaMCmU.js";
8
8
  import { n as u } from "./resize-handle-ilSc7QRM.js";
9
9
  import { t as d } from "./switch-DC85Os9r.js";
10
10
  import { r as f } from "./dom-17XgfxMq.js";
11
- import { forwardRef as p, useCallback as m, useEffect as h, useMemo as g, useRef as _, useState as v } from "react";
12
- import { jsx as y, jsxs as b } from "react/jsx-runtime";
11
+ import { Children as p, forwardRef as m, useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
12
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
13
+ //#region src/l3-atoms/animated-border.tsx
14
+ var S = {
15
+ dash: "border-2 border-dashed border-accent/40 animate-[dash-march_1s_linear_infinite]",
16
+ gradient: "border-0 bg-gradient-to-r from-accent via-success to-accent bg-[length:200%_100%] animate-[gradient-shift_3s_ease_infinite] p-[2px]",
17
+ pulse: "border-2 border-accent animate-[border-pulse_2s_ease-in-out_infinite]"
18
+ };
19
+ function ee({ children: t, className: n, variant: r = "gradient" }) {
20
+ return r === "gradient" ? /* @__PURE__ */ b("div", {
21
+ className: e("rounded-lg", S.gradient, n),
22
+ "data-component": "animated-border",
23
+ children: /* @__PURE__ */ b("div", {
24
+ className: "rounded-[calc(0.5rem-2px)] bg-bg",
25
+ children: t
26
+ })
27
+ }) : /* @__PURE__ */ b("div", {
28
+ className: e("rounded-lg", S[r], n),
29
+ "data-component": "animated-border",
30
+ children: t
31
+ });
32
+ }
33
+ //#endregion
13
34
  //#region src/l3-atoms/animated-counter.tsx
14
- var x = (e) => Number.isInteger(e) ? e.toLocaleString() : e.toLocaleString(void 0, { maximumFractionDigits: 2 }), S = p(function({ className: t, duration: n = 500, format: r = x, prefix: i, suffix: a, value: o, ...s }, c) {
15
- let [l, u] = v(o), d = _(o), f = _(0);
16
- return h(() => {
35
+ var C = (e) => Number.isInteger(e) ? e.toLocaleString() : e.toLocaleString(void 0, { maximumFractionDigits: 2 }), w = m(function({ className: t, duration: n = 500, format: r = C, prefix: i, suffix: a, value: o, ...s }, c) {
36
+ let [l, u] = y(o), d = v(o), f = v(0);
37
+ return g(() => {
17
38
  let e = d.current, t = o;
18
39
  if (d.current = t, e === t) return;
19
40
  let r = performance.now(), i = t - e, a = (o) => {
@@ -21,29 +42,29 @@ var x = (e) => Number.isInteger(e) ? e.toLocaleString() : e.toLocaleString(void
21
42
  u(e + i * (1 - (1 - c) ** 3)), c < 1 ? f.current = requestAnimationFrame(a) : u(t);
22
43
  };
23
44
  return f.current = requestAnimationFrame(a), () => cancelAnimationFrame(f.current);
24
- }, [o, n]), /* @__PURE__ */ b("span", {
45
+ }, [o, n]), /* @__PURE__ */ x("span", {
25
46
  className: e("tabular-nums select-none", t),
26
47
  "data-component": "animated-counter",
27
48
  ref: c,
28
49
  ...s,
29
50
  children: [
30
- i !== void 0 && /* @__PURE__ */ y("span", { children: i }),
51
+ i !== void 0 && /* @__PURE__ */ b("span", { children: i }),
31
52
  r(l),
32
- a !== void 0 && /* @__PURE__ */ y("span", { children: a })
53
+ a !== void 0 && /* @__PURE__ */ b("span", { children: a })
33
54
  ]
34
55
  });
35
56
  });
36
57
  //#endregion
37
58
  //#region src/l3-atoms/animated-number.tsx
38
- function ee(e) {
59
+ function T(e) {
39
60
  return e.toLocaleString();
40
61
  }
41
62
  function te(e) {
42
63
  return 1 - (1 - e) ** 3;
43
64
  }
44
- var ne = p(function({ value: t, duration: n = 500, format: r = ee, className: i }, a) {
45
- let [o, s] = v(t), c = _(t);
46
- return h(() => {
65
+ var ne = m(function({ value: t, duration: n = 500, format: r = T, className: i }, a) {
66
+ let [o, s] = y(t), c = v(t);
67
+ return g(() => {
47
68
  let e = c.current;
48
69
  if (c.current = t, n <= 0) {
49
70
  s(t);
@@ -55,19 +76,19 @@ var ne = p(function({ value: t, duration: n = 500, format: r = ee, className: i
55
76
  s(e + (t - e) * te(l)), l < 1 && (i = requestAnimationFrame(a));
56
77
  }
57
78
  return i = requestAnimationFrame(a), () => cancelAnimationFrame(i);
58
- }, [t, n]), /* @__PURE__ */ y("span", {
79
+ }, [t, n]), /* @__PURE__ */ b("span", {
59
80
  ref: a,
60
81
  className: e("tabular-nums", i),
61
82
  "data-component": "animated-number",
62
83
  children: r(o)
63
84
  });
64
- }), re = p(function({ count: t, maxCount: n = 99, className: r, ...i }, o) {
85
+ }), re = m(function({ count: t, maxCount: n = 99, className: r, ...i }, o) {
65
86
  let s = t !== void 0 && t > 0;
66
- return /* @__PURE__ */ b("span", {
87
+ return /* @__PURE__ */ x("span", {
67
88
  className: e("relative inline-flex", r),
68
89
  "data-component": "avatar-badge",
69
90
  ref: o,
70
- children: [/* @__PURE__ */ y(l, { ...i }), s && /* @__PURE__ */ y(a, {
91
+ children: [/* @__PURE__ */ b(l, { ...i }), s && /* @__PURE__ */ b(a, {
71
92
  className: "absolute -top-1 -right-1 z-10",
72
93
  count: t,
73
94
  countMax: n
@@ -85,8 +106,8 @@ function ie(e) {
85
106
  }
86
107
  return t.push(3, 1, 1, 1, 3), t;
87
108
  }
88
- var ae = p(function({ value: t, width: n = 200, height: r = 60, showValue: i = !0, color: a = "currentColor", className: o }, s) {
89
- let c = g(() => ie(t), [t]), l = c.reduce((e, t) => e + t, 0), u = i ? r - 16 : r, d = n / l, f = 0, p = [];
109
+ var ae = m(function({ value: t, width: n = 200, height: r = 60, showValue: i = !0, color: a = "currentColor", className: o }, s) {
110
+ let c = _(() => ie(t), [t]), l = c.reduce((e, t) => e + t, 0), u = i ? r - 16 : r, d = n / l, f = 0, p = [];
90
111
  for (let e = 0; e < c.length; e++) {
91
112
  let t = c[e] * d;
92
113
  e % 2 == 0 && p.push({
@@ -94,7 +115,7 @@ var ae = p(function({ value: t, width: n = 200, height: r = 60, showValue: i = !
94
115
  w: t
95
116
  }), f += t;
96
117
  }
97
- return /* @__PURE__ */ b("svg", {
118
+ return /* @__PURE__ */ x("svg", {
98
119
  ref: s,
99
120
  width: n,
100
121
  height: r,
@@ -104,13 +125,13 @@ var ae = p(function({ value: t, width: n = 200, height: r = 60, showValue: i = !
104
125
  "data-testid": "barcode-svg",
105
126
  role: "img",
106
127
  "aria-label": `Barcode: ${t}`,
107
- children: [p.map((e, t) => /* @__PURE__ */ y("rect", {
128
+ children: [p.map((e, t) => /* @__PURE__ */ b("rect", {
108
129
  x: e.x,
109
130
  y: 0,
110
131
  width: e.w,
111
132
  height: u,
112
133
  fill: a
113
- }, t)), i && /* @__PURE__ */ y("text", {
134
+ }, t)), i && /* @__PURE__ */ b("text", {
114
135
  x: n / 2,
115
136
  y: r - 2,
116
137
  textAnchor: "middle",
@@ -125,145 +146,145 @@ var ae = p(function({ value: t, width: n = 200, height: r = 60, showValue: i = !
125
146
  default: "animate-pulse",
126
147
  fast: "animate-pulse [animation-duration:0.5s]",
127
148
  slow: "animate-pulse [animation-duration:3s]"
128
- }, C = p(function({ active: t = !0, children: n, className: r, speed: i = "default", ...a }, o) {
129
- return /* @__PURE__ */ y("span", {
149
+ }, se = m(function({ active: t = !0, children: n, className: r, speed: i = "default", ...a }, o) {
150
+ return /* @__PURE__ */ b("span", {
130
151
  className: e(t && oe[i], r),
131
152
  "data-component": "blinking",
132
153
  ref: o,
133
154
  ...a,
134
155
  children: n
135
156
  });
136
- }), se = {
157
+ }), ce = {
137
158
  default: "h-2 w-2",
138
159
  lg: "h-3 w-3",
139
160
  sm: "h-1.5 w-1.5"
140
- }, ce = p(function({ className: t, color: n, count: r = 3, size: i = "default", ...a }, o) {
161
+ }, le = m(function({ className: t, color: n, count: r = 3, size: i = "default", ...a }, o) {
141
162
  let s = Array.from({ length: r }, (e, t) => t);
142
- return /* @__PURE__ */ y("div", {
163
+ return /* @__PURE__ */ b("div", {
143
164
  className: e("inline-flex items-center gap-1", t),
144
165
  "data-component": "bounce-dot",
145
166
  ref: o,
146
167
  role: "status",
147
168
  ...a,
148
- children: s.map((t) => /* @__PURE__ */ y("span", {
149
- className: e("animate-[bounce-dot_1.4s_ease-in-out_infinite] rounded-full bg-fg-muted", se[i]),
169
+ children: s.map((t) => /* @__PURE__ */ b("span", {
170
+ className: e("animate-[bounce-dot_1.4s_ease-in-out_infinite] rounded-full bg-fg-muted", ce[i]),
150
171
  style: {
151
172
  animationDelay: `${t * 160}ms`,
152
173
  ...n === void 0 ? {} : { backgroundColor: n }
153
174
  }
154
175
  }, t))
155
176
  });
156
- }), le = p(function({ className: t, disabled: n = !1, onChange: r, options: i, selectAll: a = !1, value: o, ...s }, c) {
177
+ }), ue = m(function({ className: t, disabled: n = !1, onChange: r, options: i, selectAll: a = !1, value: o, ...s }, c) {
157
178
  let l = i.length > 0 && i.every((e) => o.includes(e.value)), d = (e, t) => {
158
179
  r(t ? [...o, e] : o.filter((t) => t !== e));
159
180
  }, f = (e) => {
160
181
  r(e ? i.map((e) => e.value) : []);
161
182
  };
162
- return /* @__PURE__ */ b("div", {
183
+ return /* @__PURE__ */ x("div", {
163
184
  ref: c,
164
185
  className: e("flex flex-col gds-gap", t),
165
186
  "data-component": "checkbox-group",
166
187
  role: "group",
167
188
  ...s,
168
- children: [a && /* @__PURE__ */ y(u, {
189
+ children: [a && /* @__PURE__ */ b(u, {
169
190
  checked: l,
170
191
  disabled: n,
171
192
  label: "Select all",
172
193
  onChange: f
173
- }), i.map((e) => /* @__PURE__ */ y(u, {
194
+ }), i.map((e) => /* @__PURE__ */ b(u, {
174
195
  checked: o.includes(e.value),
175
196
  disabled: n,
176
197
  label: e.label,
177
198
  onChange: (t) => d(e.value, t)
178
199
  }, e.value))]
179
200
  });
180
- }), w = n("rounded-md", {
201
+ }), E = n("rounded-md", {
181
202
  defaultVariants: { size: "default" },
182
203
  variants: { size: {
183
204
  default: "h-10 w-10",
184
205
  lg: "h-14 w-14",
185
206
  sm: "h-7 w-7"
186
207
  } }
187
- }), T = p(function({ className: t, color: n, copyable: r = !1, label: a, size: o, ...s }, c) {
188
- let [l, u] = v(!1), d = _(null), f = m(async () => {
208
+ }), de = m(function({ className: t, color: n, copyable: r = !1, label: a, size: o, ...s }, c) {
209
+ let [l, u] = y(!1), d = v(null), f = h(async () => {
189
210
  r && (await navigator.clipboard.writeText(n), u(!0), d.current !== null && clearTimeout(d.current), d.current = setTimeout(() => {
190
211
  u(!1), d.current = null;
191
212
  }, 2e3));
192
- }, [n, r]), p = /* @__PURE__ */ y("span", {
193
- className: e(w({ size: o }), "block"),
213
+ }, [n, r]), p = /* @__PURE__ */ b("span", {
214
+ className: e(E({ size: o }), "block"),
194
215
  style: { backgroundColor: n }
195
216
  });
196
- return /* @__PURE__ */ b("span", {
217
+ return /* @__PURE__ */ x("span", {
197
218
  className: e("inline-flex flex-col items-center gap-1", t),
198
219
  "data-component": "color-swatch",
199
220
  ref: c,
200
221
  ...s,
201
222
  children: [
202
- r ? /* @__PURE__ */ y("button", {
223
+ r ? /* @__PURE__ */ b("button", {
203
224
  "aria-label": `Copy ${n}`,
204
225
  className: e("rounded-md select-none", i),
205
226
  onClick: f,
206
227
  type: "button",
207
228
  children: p
208
229
  }) : p,
209
- /* @__PURE__ */ y("span", {
230
+ /* @__PURE__ */ b("span", {
210
231
  className: "font-mono text-[10px] text-fg-muted",
211
232
  children: l ? "Copied!" : n
212
233
  }),
213
- a !== void 0 && /* @__PURE__ */ y("span", {
234
+ a !== void 0 && /* @__PURE__ */ b("span", {
214
235
  className: "text-[10px] text-fg-muted/60",
215
236
  children: a
216
237
  })
217
238
  ]
218
239
  });
219
- }), ue = p(function({ text: t, label: n = "Copy", copiedLabel: i = "Copied!", variant: a = "default", size: o = "default", className: s }, c) {
220
- let [l, u] = v(!1), d = _(null);
221
- h(() => () => {
240
+ }), fe = m(function({ text: t, label: n = "Copy", copiedLabel: i = "Copied!", variant: a = "default", size: o = "default", className: s }, c) {
241
+ let [l, u] = y(!1), d = v(null);
242
+ g(() => () => {
222
243
  d.current !== null && clearTimeout(d.current);
223
244
  }, []);
224
- let f = m(() => {
245
+ let f = h(() => {
225
246
  navigator.clipboard.writeText(t).catch(() => {}), u(!0), d.current !== null && clearTimeout(d.current), d.current = setTimeout(() => u(!1), 1500);
226
247
  }, [t]);
227
- return /* @__PURE__ */ y(r, {
248
+ return /* @__PURE__ */ b(r, {
228
249
  ref: c,
229
250
  variant: a === "ghost" ? "ghost" : "secondary",
230
251
  size: o,
231
252
  className: e(s),
232
253
  onClick: f,
233
254
  "data-component": "copy-button",
234
- icon: l ? /* @__PURE__ */ y("svg", {
255
+ icon: l ? /* @__PURE__ */ b("svg", {
235
256
  width: "14",
236
257
  height: "14",
237
258
  viewBox: "0 0 14 14",
238
259
  fill: "none",
239
260
  stroke: "currentColor",
240
261
  strokeWidth: "2",
241
- children: /* @__PURE__ */ y("path", { d: "M2 7l3 3 7-7" })
242
- }) : /* @__PURE__ */ b("svg", {
262
+ children: /* @__PURE__ */ b("path", { d: "M2 7l3 3 7-7" })
263
+ }) : /* @__PURE__ */ x("svg", {
243
264
  width: "14",
244
265
  height: "14",
245
266
  viewBox: "0 0 14 14",
246
267
  fill: "none",
247
268
  stroke: "currentColor",
248
269
  strokeWidth: "1.5",
249
- children: [/* @__PURE__ */ y("rect", {
270
+ children: [/* @__PURE__ */ b("rect", {
250
271
  x: "4",
251
272
  y: "4",
252
273
  width: "8",
253
274
  height: "8",
254
275
  rx: "1.5"
255
- }), /* @__PURE__ */ y("path", { d: "M10 4V2.5A1.5 1.5 0 008.5 1h-6A1.5 1.5 0 001 2.5v6A1.5 1.5 0 002.5 10H4" })]
276
+ }), /* @__PURE__ */ b("path", { d: "M10 4V2.5A1.5 1.5 0 008.5 1h-6A1.5 1.5 0 001 2.5v6A1.5 1.5 0 002.5 10H4" })]
256
277
  }),
257
278
  children: l ? i : n
258
279
  });
259
- }), de = {
280
+ }), pe = {
260
281
  accent: "bg-accent text-accent-fg",
261
282
  danger: "bg-danger text-white",
262
283
  success: "bg-success text-white"
263
- }, fe = p(function({ className: t, count: n, max: r = 99, variant: i = "danger", ...a }, o) {
284
+ }, me = m(function({ className: t, count: n, max: r = 99, variant: i = "danger", ...a }, o) {
264
285
  let s = n > r ? `${r}+` : String(n);
265
- return /* @__PURE__ */ y("span", {
266
- className: e("inline-flex min-w-5 select-none items-center justify-center rounded-full px-1.5 py-0.5 text-[10px] font-bold leading-none", de[i], t),
286
+ return /* @__PURE__ */ b("span", {
287
+ className: e("inline-flex min-w-5 select-none items-center justify-center rounded-full px-1.5 py-0.5 text-[10px] font-bold leading-none", pe[i], t),
267
288
  "data-component": "count-badge",
268
289
  "data-variant": i,
269
290
  ref: o,
@@ -273,19 +294,19 @@ var ae = p(function({ value: t, width: n = 200, height: r = 60, showValue: i = !
273
294
  });
274
295
  //#endregion
275
296
  //#region src/l3-atoms/count-up.tsx
276
- function pe(e, t, n) {
297
+ function he(e, t, n) {
277
298
  let r = e.toFixed(t);
278
299
  if (n === "") return r;
279
300
  let [i, a] = r.split("."), o = i.replace(/\B(?=(\d{3})+(?!\d))/g, n);
280
301
  return a === void 0 ? o : `${o}.${a}`;
281
302
  }
282
- function me(e) {
303
+ function ge(e) {
283
304
  let t = e - 1;
284
305
  return t * t * t + 1;
285
306
  }
286
- var he = p(function({ value: t, duration: n = 1500, decimals: r = 0, prefix: i, suffix: a, separator: o = ",", className: s }, c) {
287
- let [l, u] = v(0);
288
- return h(() => {
307
+ var _e = m(function({ value: t, duration: n = 1500, decimals: r = 0, prefix: i, suffix: a, separator: o = ",", className: s }, c) {
308
+ let [l, u] = y(0);
309
+ return g(() => {
289
310
  if (n <= 0) {
290
311
  u(t);
291
312
  return;
@@ -293,23 +314,23 @@ var he = p(function({ value: t, duration: n = 1500, decimals: r = 0, prefix: i,
293
314
  let e = performance.now(), r;
294
315
  function i(a) {
295
316
  let o = a - e, s = Math.min(o / n, 1);
296
- u(me(s) * t), s < 1 && (r = requestAnimationFrame(i));
317
+ u(ge(s) * t), s < 1 && (r = requestAnimationFrame(i));
297
318
  }
298
319
  return r = requestAnimationFrame(i), () => cancelAnimationFrame(r);
299
- }, [t, n]), /* @__PURE__ */ b("span", {
320
+ }, [t, n]), /* @__PURE__ */ x("span", {
300
321
  ref: c,
301
322
  className: e("tabular-nums", s),
302
323
  "data-component": "count-up",
303
324
  children: [
304
325
  i ?? "",
305
- pe(l, r, o),
326
+ he(l, r, o),
306
327
  a ?? ""
307
328
  ]
308
329
  });
309
330
  });
310
331
  //#endregion
311
332
  //#region src/l3-atoms/countdown.tsx
312
- function E(e) {
333
+ function D(e) {
313
334
  let t = Math.max(0, e - Date.now()), n = Math.floor(t / 1e3 % 60), r = Math.floor(t / 1e3 / 60 % 60), i = Math.floor(t / 1e3 / 60 / 60 % 24);
314
335
  return {
315
336
  days: Math.floor(t / 1e3 / 60 / 60 / 24),
@@ -319,15 +340,15 @@ function E(e) {
319
340
  total: t
320
341
  };
321
342
  }
322
- function D(e) {
343
+ function O(e) {
323
344
  return e.toString().padStart(2, "0");
324
345
  }
325
- var O = p(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds: i = !0, className: a }, o) {
326
- let s = new Date(t).getTime(), [c, l] = v(() => E(s));
327
- h(() => {
346
+ var k = m(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds: i = !0, className: a }, o) {
347
+ let s = new Date(t).getTime(), [c, l] = y(() => D(s));
348
+ g(() => {
328
349
  if (c.total <= 0) return;
329
350
  let e = setInterval(() => {
330
- let t = E(s);
351
+ let t = D(s);
331
352
  l(t), t.total <= 0 && (clearInterval(e), n !== void 0 && n());
332
353
  }, 1e3);
333
354
  return () => clearInterval(e);
@@ -339,67 +360,67 @@ var O = p(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds
339
360
  let u = [];
340
361
  return r && u.push({
341
362
  label: "D",
342
- value: D(c.days)
363
+ value: O(c.days)
343
364
  }), u.push({
344
365
  label: "H",
345
- value: D(c.hours)
366
+ value: O(c.hours)
346
367
  }), u.push({
347
368
  label: "M",
348
- value: D(c.minutes)
369
+ value: O(c.minutes)
349
370
  }), i && u.push({
350
371
  label: "S",
351
- value: D(c.seconds)
352
- }), /* @__PURE__ */ y("div", {
372
+ value: O(c.seconds)
373
+ }), /* @__PURE__ */ b("div", {
353
374
  ref: o,
354
375
  className: e("inline-flex items-center gap-1", a),
355
376
  "data-component": "countdown",
356
- children: u.map((e, t) => /* @__PURE__ */ b("div", {
377
+ children: u.map((e, t) => /* @__PURE__ */ x("div", {
357
378
  className: "flex items-center gap-1",
358
- children: [t > 0 && /* @__PURE__ */ y("span", {
379
+ children: [t > 0 && /* @__PURE__ */ b("span", {
359
380
  className: "text-fg-muted gds-text-body",
360
381
  "data-testid": "separator",
361
382
  children: ":"
362
- }), /* @__PURE__ */ y("span", {
383
+ }), /* @__PURE__ */ b("span", {
363
384
  className: "inline-flex items-center justify-center rounded bg-bg-tertiary px-1.5 py-0.5 tabular-nums gds-radius-button gds-text-body text-fg",
364
385
  "data-testid": `segment-${e.label}`,
365
386
  children: e.value
366
387
  })]
367
388
  }, e.label))
368
389
  });
369
- }), k = n("inline-flex select-none items-center justify-center rounded-full text-[10px] font-bold text-accent-fg min-w-[18px] h-[18px] px-1", {
390
+ }), A = n("inline-flex select-none items-center justify-center rounded-full text-[10px] font-bold text-accent-fg min-w-[18px] h-[18px] px-1", {
370
391
  defaultVariants: { variant: "default" },
371
392
  variants: { variant: {
372
393
  danger: "bg-danger animate-pulse",
373
394
  default: "bg-accent"
374
395
  } }
375
- }), A = p(function({ className: t, count: n, max: r = 99, variant: i, ...a }, o) {
396
+ }), j = m(function({ className: t, count: n, max: r = 99, variant: i, ...a }, o) {
376
397
  if (n <= 0) return null;
377
398
  let s = n > r ? `${r}+` : String(n);
378
- return /* @__PURE__ */ y("span", {
379
- className: e(k({ variant: i }), t),
399
+ return /* @__PURE__ */ b("span", {
400
+ className: e(A({ variant: i }), t),
380
401
  "data-component": "countdown-badge",
381
402
  ref: o,
382
403
  ...a,
383
404
  children: s
384
405
  });
385
- }), j = p(function({ children: t, className: n, offset: r, smooth: i = !0, ...a }, o) {
386
- let s = _(null), [c, l] = v({
406
+ }), M = m(function({ children: t, className: n, offset: r, smooth: i = !0, ...a }, o) {
407
+ let s = v(null), [c, l] = y({
387
408
  x: 0,
388
409
  y: 0
389
- }), u = r?.x ?? 0, d = r?.y ?? 0, p = m((e) => {
410
+ }), u = r?.x ?? 0, d = r?.y ?? 0, p = h((e) => {
390
411
  let t = s.current?.getBoundingClientRect();
391
412
  t !== void 0 && l({
392
413
  x: e.clientX - t.left + u,
393
414
  y: e.clientY - t.top + d
394
415
  });
395
416
  }, [u, d]);
396
- return /* @__PURE__ */ y("div", {
417
+ return /* @__PURE__ */ b("div", {
397
418
  className: e("relative", n),
398
419
  "data-component": "cursor-follow",
399
420
  onMouseMove: p,
400
421
  ref: f(s, o),
401
422
  ...a,
402
- children: /* @__PURE__ */ y("div", {
423
+ children: /* @__PURE__ */ b("div", {
403
424
  className: "pointer-events-none absolute",
404
425
  style: {
405
426
  transform: `translate(${c.x}px, ${c.y}px)`,
@@ -408,9 +429,9 @@ var O = p(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds
408
429
  children: t
409
430
  })
410
431
  });
411
- }), M = p(function({ className: t, inverted: n = !1, unit: r, value: i, ...a }, o) {
432
+ }), N = m(function({ className: t, inverted: n = !1, unit: r, value: i, ...a }, o) {
412
433
  let s = i > 0, c = i < 0, l = (n ? c : s) ? "text-success" : (n ? s : c) ? "text-danger" : "text-fg-muted", u = `${s ? "↑" : c ? "↓" : ""}${s ? "+" : ""}${i}${r === void 0 ? "" : r}`;
413
- return /* @__PURE__ */ y("span", {
434
+ return /* @__PURE__ */ b("span", {
414
435
  className: e("inline-flex items-center gap-0.5 text-sm font-medium tabular-nums", l, t),
415
436
  "data-component": "diff-indicator",
416
437
  "data-direction": s ? "up" : c ? "down" : "neutral",
@@ -418,25 +439,25 @@ var O = p(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds
418
439
  ...a,
419
440
  children: u
420
441
  });
421
- }), N = {
442
+ }), P = {
422
443
  accent: "bg-accent shadow-[0_0_6px_var(--color-accent)]",
423
444
  success: "bg-success shadow-[0_0_6px_var(--color-success)]",
424
445
  warning: "bg-warning shadow-[0_0_6px_var(--color-warning)]",
425
446
  danger: "bg-danger shadow-[0_0_6px_var(--color-danger)]"
426
- }, P = {
447
+ }, F = {
427
448
  sm: "h-1.5 w-1.5",
428
449
  default: "h-2.5 w-2.5",
429
450
  lg: "h-3.5 w-3.5"
430
- }, F = p(function({ color: t = "accent", size: n = "default", className: r, ...i }, a) {
431
- return /* @__PURE__ */ y("span", {
451
+ }, I = m(function({ color: t = "accent", size: n = "default", className: r, ...i }, a) {
452
+ return /* @__PURE__ */ b("span", {
432
453
  ref: a,
433
- className: e("inline-block rounded-full", N[t], P[n], r),
454
+ className: e("inline-block rounded-full", P[t], F[n], r),
434
455
  "data-component": "glow-dot",
435
456
  "data-variant": t,
436
457
  ...i
437
458
  });
438
- }), I = p(function({ children: t, className: n, from: r = "#6366f1", to: i = "#ec4899", ...a }, o) {
439
- return /* @__PURE__ */ y("span", {
459
+ }), ve = m(function({ children: t, className: n, from: r = "#6366f1", to: i = "#ec4899", ...a }, o) {
460
+ return /* @__PURE__ */ b("span", {
440
461
  className: e("inline-block bg-clip-text text-transparent", n),
441
462
  "data-component": "gradient-text",
442
463
  ref: o,
@@ -444,9 +465,9 @@ var O = p(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds
444
465
  ...a,
445
466
  children: t
446
467
  });
447
- }), L = p(function({ className: t, color: n = "var(--color-accent)", max: r = 100, showValue: i = !1, size: a = 32, value: o, ...s }, c) {
468
+ }), ye = m(function({ className: t, color: n = "var(--color-accent)", max: r = 100, showValue: i = !1, size: a = 32, value: o, ...s }, c) {
448
469
  let l = r > 0 ? Math.min(Math.max(o / r, 0), 1) : 0;
449
- return /* @__PURE__ */ y("div", {
470
+ return /* @__PURE__ */ b("div", {
450
471
  className: e("inline-flex items-center justify-center rounded text-[10px] font-medium", t),
451
472
  "data-component": "heat-cell",
452
473
  ref: c,
@@ -457,98 +478,98 @@ var O = p(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds
457
478
  width: a
458
479
  },
459
480
  ...s,
460
- children: i && /* @__PURE__ */ y("span", {
481
+ children: i && /* @__PURE__ */ b("span", {
461
482
  className: "text-white mix-blend-difference",
462
483
  children: o
463
484
  })
464
485
  });
465
- }), R = p(function({ className: t, keys: n, ...r }, i) {
466
- return /* @__PURE__ */ y("span", {
486
+ }), be = m(function({ className: t, keys: n, ...r }, i) {
487
+ return /* @__PURE__ */ b("span", {
467
488
  className: e("inline-flex items-center gap-1", t),
468
489
  "data-component": "hotkey",
469
490
  ref: i,
470
491
  ...r,
471
- children: n.map((e, t) => /* @__PURE__ */ b("span", {
492
+ children: n.map((e, t) => /* @__PURE__ */ x("span", {
472
493
  className: "contents",
473
- children: [t > 0 && /* @__PURE__ */ y("span", {
494
+ children: [t > 0 && /* @__PURE__ */ b("span", {
474
495
  className: "text-[10px] text-fg-muted",
475
496
  children: "+"
476
- }), /* @__PURE__ */ y(o, { children: e })]
497
+ }), /* @__PURE__ */ b(o, { children: e })]
477
498
  }, t))
478
499
  });
479
- }), ge = {
500
+ }), xe = {
480
501
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
481
502
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
482
503
  right: "left-full top-1/2 -translate-y-1/2 ml-2",
483
504
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2"
484
- }, _e = {
505
+ }, Se = {
485
506
  bottom: "bottom-full left-1/2 -translate-x-1/2 border-b-bg-tertiary border-x-transparent border-t-transparent border-4",
486
507
  left: "left-full top-1/2 -translate-y-1/2 border-l-bg-tertiary border-y-transparent border-r-transparent border-4",
487
508
  right: "right-full top-1/2 -translate-y-1/2 border-r-bg-tertiary border-y-transparent border-l-transparent border-4",
488
509
  top: "top-full left-1/2 -translate-x-1/2 border-t-bg-tertiary border-x-transparent border-b-transparent border-4"
489
- }, z = p(function({ children: n, className: r, content: i, delay: a = 300, glass: o, interactive: s = !1, maxWidth: c, placement: l = "top", ...u }, d) {
490
- let [f, p] = v(!1), h = _(void 0), g = _(void 0), x = m(() => {
491
- clearTimeout(g.current), h.current = setTimeout(() => p(!0), a);
492
- }, [a]), S = m(() => {
493
- clearTimeout(h.current), s ? g.current = setTimeout(() => p(!1), 150) : p(!1);
510
+ }, L = m(function({ children: n, className: r, content: i, delay: a = 300, glass: o, interactive: s = !1, maxWidth: c, placement: l = "top", ...u }, d) {
511
+ let [f, p] = y(!1), m = v(void 0), g = v(void 0), _ = h(() => {
512
+ clearTimeout(g.current), m.current = setTimeout(() => p(!0), a);
513
+ }, [a]), S = h(() => {
514
+ clearTimeout(m.current), s ? g.current = setTimeout(() => p(!1), 150) : p(!1);
494
515
  }, [s]);
495
- return /* @__PURE__ */ b("div", {
516
+ return /* @__PURE__ */ x("div", {
496
517
  className: e("relative inline-flex", r),
497
518
  "data-component": "tooltip",
498
519
  "data-state": f ? "open" : "closed",
499
- onMouseEnter: x,
520
+ onMouseEnter: _,
500
521
  onMouseLeave: S,
501
522
  ref: d,
502
523
  ...u,
503
- children: [n, f && /* @__PURE__ */ b("div", {
524
+ children: [n, f && /* @__PURE__ */ x("div", {
504
525
  className: e("pointer-events-none absolute z-50 animate-popup whitespace-nowrap gds-radius-tooltip gds-pad-x-sm gds-pad-y-sm gds-text-label text-fg", s && "pointer-events-auto", o === !0 ? t(o) : "bg-bg-tertiary", o === !0 && "border border-white/10"),
505
- onMouseEnter: s ? x : void 0,
526
+ onMouseEnter: s ? _ : void 0,
506
527
  onMouseLeave: s ? S : void 0,
507
528
  style: c === void 0 ? void 0 : {
508
529
  maxWidth: c,
509
530
  whiteSpace: "normal"
510
531
  },
511
- children: [/* @__PURE__ */ y("span", { className: e("absolute", _e[l]) }), /* @__PURE__ */ y("span", {
512
- className: (ge[l], ""),
532
+ children: [/* @__PURE__ */ b("span", { className: e("absolute", Se[l]) }), /* @__PURE__ */ b("span", {
533
+ className: (xe[l], ""),
513
534
  children: i
514
535
  })]
515
536
  })]
516
537
  });
517
- }), ve = {
538
+ }), Ce = {
518
539
  default: "h-4 w-4",
519
540
  sm: "h-3.5 w-3.5"
520
- }, ye = p(function({ className: t, content: n, size: r = "default", ...i }, a) {
521
- return /* @__PURE__ */ y(z, {
541
+ }, we = m(function({ className: t, content: n, size: r = "default", ...i }, a) {
542
+ return /* @__PURE__ */ b(L, {
522
543
  content: n,
523
544
  ref: a,
524
545
  ...i,
525
- children: /* @__PURE__ */ y("span", {
546
+ children: /* @__PURE__ */ b("span", {
526
547
  className: e("inline-flex cursor-help items-center text-fg-muted/60 hover:text-fg-muted", t),
527
548
  "data-component": "info-tip",
528
- children: /* @__PURE__ */ b("svg", {
529
- className: ve[r],
549
+ children: /* @__PURE__ */ x("svg", {
550
+ className: Ce[r],
530
551
  fill: "none",
531
552
  stroke: "currentColor",
532
553
  strokeWidth: "2",
533
554
  viewBox: "0 0 24 24",
534
- children: [/* @__PURE__ */ y("circle", {
555
+ children: [/* @__PURE__ */ b("circle", {
535
556
  cx: "12",
536
557
  cy: "12",
537
558
  r: "10"
538
- }), /* @__PURE__ */ y("path", { d: "M12 16v-4M12 8h.01" })]
559
+ }), /* @__PURE__ */ b("path", { d: "M12 16v-4M12 8h.01" })]
539
560
  })
540
561
  })
541
562
  });
542
- }), be = p(function({ label: t, value: n, mono: r = !1, className: i, ...a }, o) {
543
- return /* @__PURE__ */ b("div", {
563
+ }), Te = m(function({ label: t, value: n, mono: r = !1, className: i, ...a }, o) {
564
+ return /* @__PURE__ */ x("div", {
544
565
  ref: o,
545
566
  className: e("inline-flex items-baseline gap-1.5 gds-text-body", i),
546
567
  "data-component": "key-value",
547
568
  ...a,
548
- children: [/* @__PURE__ */ y("span", {
569
+ children: [/* @__PURE__ */ b("span", {
549
570
  className: "shrink-0 text-fg-muted gds-text-caption",
550
571
  children: t
551
- }), /* @__PURE__ */ y("span", {
572
+ }), /* @__PURE__ */ b("span", {
552
573
  className: e("text-fg", r && "font-mono"),
553
574
  children: n
554
575
  })]
@@ -556,7 +577,7 @@ var O = p(function({ targetDate: t, onComplete: n, showDays: r = !0, showSeconds
556
577
  });
557
578
  //#endregion
558
579
  //#region src/l3-atoms/keyboard-shortcut.tsx
559
- function xe(e) {
580
+ function Ee(e) {
560
581
  let t = e.toLowerCase().split("+"), n = {
561
582
  ctrl: !1,
562
583
  meta: !1,
@@ -569,7 +590,7 @@ function xe(e) {
569
590
  mainKey: r
570
591
  };
571
592
  }
572
- function Se(e) {
593
+ function De(e) {
573
594
  return {
574
595
  ctrl: "Ctrl",
575
596
  meta: "⌘",
@@ -578,8 +599,8 @@ function Se(e) {
578
599
  alt: "Alt"
579
600
  }[e.toLowerCase()] ?? e.toUpperCase();
580
601
  }
581
- var Ce = p(function({ keys: t, onTrigger: n, showBadge: r = !1, disabled: i = !1, className: a }, s) {
582
- let { modifiers: c, mainKey: l } = xe(t), u = m((e) => {
602
+ var Oe = m(function({ keys: t, onTrigger: n, showBadge: r = !1, disabled: i = !1, className: a }, s) {
603
+ let { modifiers: c, mainKey: l } = Ee(t), u = h((e) => {
583
604
  i || e.ctrlKey === c.ctrl && e.metaKey === c.meta && e.shiftKey === c.shift && e.altKey === c.alt && e.key.toLowerCase() === l && (e.preventDefault(), n());
584
605
  }, [
585
606
  i,
@@ -590,33 +611,33 @@ var Ce = p(function({ keys: t, onTrigger: n, showBadge: r = !1, disabled: i = !1
590
611
  l,
591
612
  n
592
613
  ]);
593
- if (h(() => (window.addEventListener("keydown", u), () => window.removeEventListener("keydown", u)), [u]), !r) return null;
594
- let d = t.split("+").map((e, t) => /* @__PURE__ */ y(o, { children: Se(e) }, t));
595
- return /* @__PURE__ */ y("span", {
614
+ if (g(() => (window.addEventListener("keydown", u), () => window.removeEventListener("keydown", u)), [u]), !r) return null;
615
+ let d = t.split("+").map((e, t) => /* @__PURE__ */ b(o, { children: De(e) }, t));
616
+ return /* @__PURE__ */ b("span", {
596
617
  ref: s,
597
618
  className: e("inline-flex items-center gap-1", a),
598
619
  "data-component": "keyboard-shortcut",
599
620
  children: d
600
621
  });
601
- }), we = p(function({ className: t, label: n = "LIVE", ...r }, i) {
602
- return /* @__PURE__ */ b("span", {
622
+ }), ke = m(function({ className: t, label: n = "LIVE", ...r }, i) {
623
+ return /* @__PURE__ */ x("span", {
603
624
  className: e("inline-flex items-center gap-1.5", t),
604
625
  "data-component": "live-dot",
605
626
  ref: i,
606
627
  ...r,
607
- children: [/* @__PURE__ */ b("span", {
628
+ children: [/* @__PURE__ */ x("span", {
608
629
  className: "relative flex h-2 w-2",
609
- children: [/* @__PURE__ */ y("span", { className: "absolute inline-flex h-full w-full animate-ping rounded-full bg-danger opacity-75" }), /* @__PURE__ */ y("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-danger" })]
610
- }), /* @__PURE__ */ y("span", {
630
+ children: [/* @__PURE__ */ b("span", { className: "absolute inline-flex h-full w-full animate-ping rounded-full bg-danger opacity-75" }), /* @__PURE__ */ b("span", { className: "relative inline-flex h-2 w-2 rounded-full bg-danger" })]
631
+ }), /* @__PURE__ */ b("span", {
611
632
  className: "text-xs font-bold uppercase tracking-wide text-danger",
612
633
  children: n
613
634
  })]
614
635
  });
615
- }), Te = p(function({ children: t, strength: n = .3, radius: r = 100, className: i }, a) {
616
- let o = _(null), [s, c] = v({
636
+ }), Ae = m(function({ children: t, strength: n = .3, radius: r = 100, className: i }, a) {
637
+ let o = v(null), [s, c] = y({
617
638
  x: 0,
618
639
  y: 0
619
- }), l = m((e) => {
640
+ }), l = h((e) => {
620
641
  let t = o.current;
621
642
  if (t === null) return;
622
643
  let i = t.getBoundingClientRect(), a = i.left + i.width / 2, s = i.top + i.height / 2, l = e.clientX - a, u = e.clientY - s;
@@ -631,13 +652,13 @@ var Ce = p(function({ keys: t, onTrigger: n, showBadge: r = !1, disabled: i = !1
631
652
  x: l * n,
632
653
  y: u * n
633
654
  });
634
- }, [n, r]), u = m(() => {
655
+ }, [n, r]), u = h(() => {
635
656
  c({
636
657
  x: 0,
637
658
  y: 0
638
659
  });
639
660
  }, []);
640
- return /* @__PURE__ */ y("div", {
661
+ return /* @__PURE__ */ b("div", {
641
662
  ref: f(o, a),
642
663
  "data-component": "magnetic-button",
643
664
  className: e("inline-block", i),
@@ -649,19 +670,19 @@ var Ce = p(function({ keys: t, onTrigger: n, showBadge: r = !1, disabled: i = !1
649
670
  onMouseLeave: u,
650
671
  children: t
651
672
  });
652
- }), Ee = p(function({ children: t, speed: n = 30, direction: r = "left", pauseOnHover: i = !0, className: a }, o) {
653
- let s = _(null), [c, l] = v(10);
654
- h(() => {
673
+ }), je = m(function({ children: t, speed: n = 30, direction: r = "left", pauseOnHover: i = !0, className: a }, o) {
674
+ let s = v(null), [c, l] = y(10);
675
+ g(() => {
655
676
  if (s.current === null) return;
656
677
  let e = s.current.scrollWidth / 2;
657
678
  e > 0 && l(e / n);
658
679
  }, [n, t]);
659
680
  let u = r === "left" ? "0%" : "-50%", d = r === "left" ? "-50%" : "0%";
660
- return /* @__PURE__ */ y("div", {
681
+ return /* @__PURE__ */ b("div", {
661
682
  ref: o,
662
683
  className: e("overflow-hidden", a),
663
684
  "data-component": "marquee",
664
- children: /* @__PURE__ */ b("div", {
685
+ children: /* @__PURE__ */ x("div", {
665
686
  ref: s,
666
687
  className: e("inline-flex will-change-transform", i && "hover:[animation-play-state:paused]"),
667
688
  style: {
@@ -669,109 +690,157 @@ var Ce = p(function({ keys: t, onTrigger: n, showBadge: r = !1, disabled: i = !1
669
690
  "--marquee-from": u,
670
691
  "--marquee-to": d
671
692
  },
672
- children: [/* @__PURE__ */ y("div", {
693
+ children: [/* @__PURE__ */ b("div", {
673
694
  className: "flex shrink-0",
674
695
  children: t
675
- }), /* @__PURE__ */ y("div", {
696
+ }), /* @__PURE__ */ b("div", {
676
697
  className: "flex shrink-0",
677
698
  "aria-hidden": !0,
678
699
  children: t
679
700
  })]
680
701
  })
681
702
  });
682
- }), B = n("overflow-hidden gds-radius-badge bg-bg-tertiary", {
703
+ }), R = n("overflow-hidden gds-radius-badge bg-bg-tertiary", {
683
704
  defaultVariants: { size: "default" },
684
705
  variants: { size: {
685
706
  default: "h-2.5",
686
707
  lg: "h-4",
687
708
  sm: "h-1.5"
688
709
  } }
689
- }), De = {
710
+ }), Me = {
690
711
  danger: "bg-danger",
691
712
  default: "bg-accent",
692
713
  success: "bg-success",
693
714
  warning: "bg-warning"
694
715
  };
695
- function Oe(e) {
716
+ function Ne(e) {
696
717
  return e >= .8 ? "bg-danger" : e >= .6 ? "bg-warning" : e >= .4 ? "bg-accent" : "bg-success";
697
718
  }
698
- var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValue: a = !0, size: o, value: s, variant: c = "auto", ...l }, u) {
699
- let d = r - i, f = d > 0 ? Math.max(0, Math.min(1, (s - i) / d)) : 0, p = c === "auto" ? Oe(f) : De[c] ?? "bg-accent";
700
- return /* @__PURE__ */ b("div", {
719
+ var Pe = m(function({ className: t, label: n, max: r = 100, min: i = 0, showValue: a = !0, size: o, value: s, variant: c = "auto", ...l }, u) {
720
+ let d = r - i, f = d > 0 ? Math.max(0, Math.min(1, (s - i) / d)) : 0, p = c === "auto" ? Ne(f) : Me[c] ?? "bg-accent";
721
+ return /* @__PURE__ */ x("div", {
701
722
  className: e("w-full", t),
702
723
  "data-component": "meter",
703
724
  ref: u,
704
725
  ...l,
705
- children: [(n !== void 0 || a) && /* @__PURE__ */ b("div", {
726
+ children: [(n !== void 0 || a) && /* @__PURE__ */ x("div", {
706
727
  className: "mb-1 flex items-center justify-between",
707
- children: [n !== void 0 && /* @__PURE__ */ y("span", {
728
+ children: [n !== void 0 && /* @__PURE__ */ b("span", {
708
729
  className: "gds-text-body font-medium text-fg",
709
730
  children: n
710
- }), a && /* @__PURE__ */ b("span", {
731
+ }), a && /* @__PURE__ */ x("span", {
711
732
  className: "font-mono gds-text-label text-fg-muted tabular-nums",
712
733
  children: [Math.round(f * 100), "%"]
713
734
  })]
714
- }), /* @__PURE__ */ y("div", {
735
+ }), /* @__PURE__ */ b("div", {
715
736
  "aria-label": n,
716
737
  "aria-valuemax": r,
717
738
  "aria-valuemin": i,
718
739
  "aria-valuenow": s,
719
- className: B({ size: o }),
740
+ className: R({ size: o }),
720
741
  role: "meter",
721
- children: /* @__PURE__ */ y("div", {
742
+ children: /* @__PURE__ */ b("div", {
722
743
  className: e("h-full gds-radius-badge transition-all duration-500", p),
723
744
  style: { width: `${f * 100}%` }
724
745
  })
725
746
  })]
726
747
  });
727
- }), Ae = p(function({ className: t, label: n, online: r, ...i }, a) {
728
- let o = r ? "bg-success" : "bg-fg-muted/40", s = n ?? (r ? "Online" : "Offline");
748
+ }), Fe = m(function({ className: t, format: n = String, value: r }, i) {
749
+ let a = _(() => n(r).split(""), [r, n]);
729
750
  return /* @__PURE__ */ b("span", {
751
+ className: e("inline-flex items-center tabular-nums select-none", t),
752
+ "data-component": "number-flow",
753
+ ref: i,
754
+ children: a.map((e, t) => e >= "0" && e <= "9" ? /* @__PURE__ */ b("span", {
755
+ className: "inline-block overflow-hidden",
756
+ style: { lineHeight: 1 },
757
+ children: /* @__PURE__ */ b("span", {
758
+ className: "inline-block transition-transform duration-300 ease-out",
759
+ children: e
760
+ })
761
+ }, `${t}-slot`) : /* @__PURE__ */ b("span", { children: e }, `${t}-static`))
762
+ });
763
+ }), Ie = m(function({ className: t, label: n, online: r, ...i }, a) {
764
+ let o = r ? "bg-success" : "bg-fg-muted/40", s = n ?? (r ? "Online" : "Offline");
765
+ return /* @__PURE__ */ x("span", {
730
766
  className: e("inline-flex items-center gds-gap-sm", t),
731
767
  "data-component": "online-indicator",
732
768
  ref: a,
733
769
  ...i,
734
- children: [/* @__PURE__ */ y("span", { className: e("h-2 w-2 shrink-0 rounded-full", o) }), /* @__PURE__ */ y("span", {
770
+ children: [/* @__PURE__ */ b("span", { className: e("h-2 w-2 shrink-0 rounded-full", o) }), /* @__PURE__ */ b("span", {
735
771
  className: "gds-text-label text-fg-muted",
736
772
  children: s
737
773
  })]
738
774
  });
739
- }), je = p(function({ className: t, precision: n = 1, showSign: r = !1, value: i, ...a }, o) {
775
+ });
776
+ //#endregion
777
+ //#region src/l3-atoms/orbit.tsx
778
+ function Le({ children: t, className: n, duration: r = 10, radius: i = 100 }) {
779
+ let a = t.length;
780
+ return /* @__PURE__ */ b("div", {
781
+ className: e("relative select-none", n),
782
+ "data-component": "orbit",
783
+ style: {
784
+ height: i * 2,
785
+ width: i * 2
786
+ },
787
+ children: t.map((e, t) => {
788
+ let n = 360 / a * t;
789
+ return /* @__PURE__ */ b("div", {
790
+ className: "absolute top-1/2 left-1/2",
791
+ style: {
792
+ animation: `orbit-spin ${r}s linear infinite`,
793
+ animationDelay: `${-(r / a) * t}s`,
794
+ height: 0,
795
+ width: 0
796
+ },
797
+ children: /* @__PURE__ */ b("div", {
798
+ className: "-translate-x-1/2 -translate-y-1/2",
799
+ style: { transform: `rotate(${n}deg) translateX(${i}px) rotate(-${n}deg)` },
800
+ children: e
801
+ })
802
+ }, t);
803
+ })
804
+ });
805
+ }
806
+ //#endregion
807
+ //#region src/l3-atoms/percentage.tsx
808
+ var Re = m(function({ className: t, precision: n = 1, showSign: r = !1, value: i, ...a }, o) {
740
809
  let s = i > 0, c = s ? "text-success" : i < 0 ? "text-danger" : "text-fg-muted", l = `${r && s ? "+" : ""}${i.toFixed(n)}%`;
741
- return /* @__PURE__ */ y("span", {
810
+ return /* @__PURE__ */ b("span", {
742
811
  className: e("inline-flex tabular-nums text-sm font-medium", c, t),
743
812
  "data-component": "percentage",
744
813
  ref: o,
745
814
  ...a,
746
815
  children: l
747
816
  });
748
- }), Me = {
817
+ }), ze = {
749
818
  default: "h-16 w-16 text-lg",
750
819
  lg: "h-20 w-20 text-xl",
751
820
  sm: "h-12 w-12 text-sm"
752
- }, V = {
821
+ }, z = {
753
822
  default: 3,
754
823
  lg: 3.5,
755
824
  sm: 2.5
756
- }, Ne = p(function({ className: t, size: n = "default", value: r, ...i }, a) {
757
- let o = Math.max(0, Math.min(100, r)), s = g(() => o >= 80 ? "text-success" : o >= 50 ? "text-warning" : "text-danger", [o]), c = 2 * Math.PI * 18, l = c - o / 100 * c;
758
- return /* @__PURE__ */ b("div", {
759
- className: e("relative inline-flex items-center justify-center select-none", Me[n], t),
825
+ }, Be = m(function({ className: t, size: n = "default", value: r, ...i }, a) {
826
+ let o = Math.max(0, Math.min(100, r)), s = _(() => o >= 80 ? "text-success" : o >= 50 ? "text-warning" : "text-danger", [o]), c = 2 * Math.PI * 18, l = c - o / 100 * c;
827
+ return /* @__PURE__ */ x("div", {
828
+ className: e("relative inline-flex items-center justify-center select-none", ze[n], t),
760
829
  "data-component": "percentage-circle",
761
830
  ref: a,
762
831
  ...i,
763
- children: [/* @__PURE__ */ b("svg", {
832
+ children: [/* @__PURE__ */ x("svg", {
764
833
  className: "absolute inset-0 h-full w-full -rotate-90",
765
834
  viewBox: "0 0 40 40",
766
- children: [/* @__PURE__ */ y("circle", {
835
+ children: [/* @__PURE__ */ b("circle", {
767
836
  className: "text-fg-muted/10",
768
837
  cx: "20",
769
838
  cy: "20",
770
839
  fill: "none",
771
840
  r: 18,
772
841
  stroke: "currentColor",
773
- strokeWidth: V[n]
774
- }), /* @__PURE__ */ y("circle", {
842
+ strokeWidth: z[n]
843
+ }), /* @__PURE__ */ b("circle", {
775
844
  className: e("transition-all duration-500", s),
776
845
  cx: "20",
777
846
  cy: "20",
@@ -781,16 +850,16 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
781
850
  strokeDasharray: c,
782
851
  strokeDashoffset: l,
783
852
  strokeLinecap: "round",
784
- strokeWidth: V[n]
853
+ strokeWidth: z[n]
785
854
  })]
786
- }), /* @__PURE__ */ b("span", {
855
+ }), /* @__PURE__ */ x("span", {
787
856
  className: e("font-mono font-bold", s),
788
857
  children: [o, "%"]
789
858
  })]
790
859
  });
791
- }), Pe = p(function({ className: t, currency: n = "¥", showSign: r = !1, value: i, ...a }, o) {
860
+ }), Ve = m(function({ className: t, currency: n = "¥", showSign: r = !1, value: i, ...a }, o) {
792
861
  let s = i < 0, c = i > 0, l = s ? "text-danger" : c ? "text-success" : "text-fg", u = r && c ? "+" : "", d = Math.abs(i).toLocaleString();
793
- return /* @__PURE__ */ b("span", {
862
+ return /* @__PURE__ */ x("span", {
794
863
  className: e("tabular-nums", l, t),
795
864
  "data-component": "price",
796
865
  ref: o,
@@ -801,14 +870,14 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
801
870
  d
802
871
  ]
803
872
  });
804
- }), Fe = {
873
+ }), He = {
805
874
  accent: "stroke-accent",
806
875
  danger: "stroke-danger",
807
876
  success: "stroke-success",
808
877
  warning: "stroke-warning"
809
- }, Ie = p(function({ value: t, size: n = 64, strokeWidth: r = 4, showValue: i = !0, variant: a = "accent", className: o }, s) {
810
- let c = (n - r) / 2, l = 2 * Math.PI * c, u = Math.max(0, Math.min(100, t)), d = l * (1 - u / 100), f = n / 2, p = Fe[a] ?? "stroke-accent";
811
- return /* @__PURE__ */ b("svg", {
878
+ }, Ue = m(function({ value: t, size: n = 64, strokeWidth: r = 4, showValue: i = !0, variant: a = "accent", className: o }, s) {
879
+ let c = (n - r) / 2, l = 2 * Math.PI * c, u = Math.max(0, Math.min(100, t)), d = l * (1 - u / 100), f = n / 2, p = He[a] ?? "stroke-accent";
880
+ return /* @__PURE__ */ x("svg", {
812
881
  ref: s,
813
882
  className: e("shrink-0", o),
814
883
  "data-component": "progress-circle",
@@ -816,7 +885,7 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
816
885
  viewBox: `0 0 ${n} ${n}`,
817
886
  width: n,
818
887
  children: [
819
- /* @__PURE__ */ y("circle", {
888
+ /* @__PURE__ */ b("circle", {
820
889
  className: "stroke-border/30",
821
890
  cx: f,
822
891
  cy: f,
@@ -824,7 +893,7 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
824
893
  r: c,
825
894
  strokeWidth: r
826
895
  }),
827
- /* @__PURE__ */ y("circle", {
896
+ /* @__PURE__ */ b("circle", {
828
897
  className: e("transition-all duration-500", p),
829
898
  cx: f,
830
899
  cy: f,
@@ -839,7 +908,7 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
839
908
  transformOrigin: "center"
840
909
  }
841
910
  }),
842
- i && /* @__PURE__ */ b("text", {
911
+ i && /* @__PURE__ */ x("text", {
843
912
  className: "fill-fg font-medium",
844
913
  dominantBaseline: "central",
845
914
  fontSize: n * .22,
@@ -850,9 +919,9 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
850
919
  })
851
920
  ]
852
921
  });
853
- }), Le = p(function({ className: t, size: n = 48, strokeWidth: r = 4, value: i, ...a }, o) {
922
+ }), We = m(function({ className: t, size: n = 48, strokeWidth: r = 4, value: i, ...a }, o) {
854
923
  let s = Math.max(0, Math.min(100, i)), c = (n - r) / 2, l = 2 * Math.PI * c, u = l * (1 - s / 100), d = n / 2;
855
- return /* @__PURE__ */ b("div", {
924
+ return /* @__PURE__ */ x("div", {
856
925
  "aria-valuemax": 100,
857
926
  "aria-valuemin": 0,
858
927
  "aria-valuenow": s,
@@ -861,19 +930,19 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
861
930
  ref: o,
862
931
  role: "progressbar",
863
932
  ...a,
864
- children: [/* @__PURE__ */ b("svg", {
933
+ children: [/* @__PURE__ */ x("svg", {
865
934
  className: "rotate-[-90deg]",
866
935
  height: n,
867
936
  viewBox: `0 0 ${n} ${n}`,
868
937
  width: n,
869
- children: [/* @__PURE__ */ y("circle", {
938
+ children: [/* @__PURE__ */ b("circle", {
870
939
  className: "stroke-bg-tertiary",
871
940
  cx: d,
872
941
  cy: d,
873
942
  fill: "none",
874
943
  r: c,
875
944
  strokeWidth: r
876
- }), /* @__PURE__ */ y("circle", {
945
+ }), /* @__PURE__ */ b("circle", {
877
946
  className: "stroke-accent transition-all duration-500",
878
947
  cx: d,
879
948
  cy: d,
@@ -884,44 +953,44 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
884
953
  strokeLinecap: "round",
885
954
  strokeWidth: r
886
955
  })]
887
- }), /* @__PURE__ */ b("span", {
956
+ }), /* @__PURE__ */ x("span", {
888
957
  className: "absolute font-mono text-xs font-bold text-fg",
889
958
  style: { fontSize: n * .22 },
890
959
  children: [s, "%"]
891
960
  })]
892
961
  });
893
- }), H = {
962
+ }), B = {
894
963
  accent: "bg-accent",
895
964
  danger: "bg-danger",
896
965
  success: "bg-success",
897
966
  warning: "bg-warning"
898
- }, Re = {
967
+ }, Ge = {
899
968
  default: "h-2.5 w-2.5",
900
969
  lg: "h-3.5 w-3.5",
901
970
  sm: "h-2 w-2"
902
- }, ze = p(function({ className: t, color: n = "success", label: r, size: i = "default", ...a }, o) {
903
- return /* @__PURE__ */ b("span", {
971
+ }, Ke = m(function({ className: t, color: n = "success", label: r, size: i = "default", ...a }, o) {
972
+ return /* @__PURE__ */ x("span", {
904
973
  className: e("inline-flex items-center", r !== void 0 && "gds-gap-sm", t),
905
974
  "data-component": "pulse-indicator",
906
975
  ref: o,
907
976
  ...a,
908
- children: [/* @__PURE__ */ b("span", {
977
+ children: [/* @__PURE__ */ x("span", {
909
978
  className: "relative inline-flex",
910
- children: [/* @__PURE__ */ y("span", { className: e("rounded-full", H[n], Re[i]) }), /* @__PURE__ */ y("span", { className: e("absolute inset-0 animate-ping rounded-full opacity-50", H[n]) })]
911
- }), r !== void 0 && /* @__PURE__ */ y("span", {
979
+ children: [/* @__PURE__ */ b("span", { className: e("rounded-full", B[n], Ge[i]) }), /* @__PURE__ */ b("span", { className: e("absolute inset-0 animate-ping rounded-full opacity-50", B[n]) })]
980
+ }), r !== void 0 && /* @__PURE__ */ b("span", {
912
981
  className: "gds-text-label text-fg-muted",
913
982
  children: r
914
983
  })]
915
984
  });
916
- }), Be = p(function({ active: t = !0, className: n, color: r, count: i = 3, size: a = 80, ...o }, s) {
917
- if (!t) return /* @__PURE__ */ y("div", {
985
+ }), qe = m(function({ active: t = !0, className: n, color: r, count: i = 3, size: a = 80, ...o }, s) {
986
+ if (!t) return /* @__PURE__ */ b("div", {
918
987
  className: e("relative inline-flex", n),
919
988
  "data-component": "pulse-ring",
920
989
  ref: s,
921
990
  ...o
922
991
  });
923
992
  let c = Array.from({ length: i }, (e, t) => t);
924
- return /* @__PURE__ */ b("div", {
993
+ return /* @__PURE__ */ x("div", {
925
994
  className: e("relative inline-flex items-center justify-center", n),
926
995
  "data-component": "pulse-ring",
927
996
  ref: s,
@@ -930,28 +999,28 @@ var ke = p(function({ className: t, label: n, max: r = 100, min: i = 0, showValu
930
999
  width: a
931
1000
  },
932
1001
  ...o,
933
- children: [c.map((e) => /* @__PURE__ */ y("span", {
1002
+ children: [c.map((e) => /* @__PURE__ */ b("span", {
934
1003
  className: "absolute inset-0 rounded-full border-2 opacity-0",
935
1004
  style: {
936
1005
  animation: `gds-pulse-ring ${1.5 + i * .2}s ease-out ${1.5 / i * e}s infinite`,
937
1006
  borderColor: r ?? "var(--color-accent)"
938
1007
  }
939
- }, e)), /* @__PURE__ */ y("style", { children: "\n @keyframes gds-pulse-ring {\n 0% { transform: scale(0.3); opacity: 0.8; }\n 100% { transform: scale(1); opacity: 0; }\n }\n " })]
1008
+ }, e)), /* @__PURE__ */ b("style", { children: "\n @keyframes gds-pulse-ring {\n 0% { transform: scale(0.3); opacity: 0.8; }\n 100% { transform: scale(1); opacity: 0; }\n }\n " })]
940
1009
  });
941
1010
  });
942
1011
  //#endregion
943
1012
  //#region src/l3-atoms/qr-code.tsx
944
- function Ve(e) {
1013
+ function Je(e) {
945
1014
  let t = 5381;
946
1015
  for (let n = 0; n < e.length; n++) t = (t << 5) + t + e.charCodeAt(n) | 0;
947
1016
  return Math.abs(t);
948
1017
  }
949
- function He(e) {
1018
+ function Ye(e) {
950
1019
  let t = e;
951
1020
  return () => (t = t * 1103515245 + 12345 & 2147483647, t / 2147483647);
952
1021
  }
953
- var U = 21, W = 1;
954
- function G(e, t) {
1022
+ var V = 21, H = 1;
1023
+ function U(e, t) {
955
1024
  let n = [];
956
1025
  for (let r = 0; r < 7; r++) for (let i = 0; i < 7; i++) (r === 0 || r === 6 || i === 0 || i === 6 || r >= 2 && r <= 4 && i >= 2 && i <= 4) && n.push({
957
1026
  x: e + i,
@@ -959,40 +1028,40 @@ function G(e, t) {
959
1028
  });
960
1029
  return n;
961
1030
  }
962
- var Ue = p(function({ value: t, size: n = 128, color: r = "currentColor", bgColor: i = "transparent", className: a }, o) {
963
- let s = g(() => {
1031
+ var Xe = m(function({ value: t, size: n = 128, color: r = "currentColor", bgColor: i = "transparent", className: a }, o) {
1032
+ let s = _(() => {
964
1033
  let e = [];
965
- e.push(...G(0, 0)), e.push(...G(U - 7, 0)), e.push(...G(0, U - 7));
966
- let n = He(Ve(t));
967
- for (let t = 0; t < U; t++) for (let r = 0; r < U; r++) t < 8 && r < 8 || t < 8 && r >= U - 8 || t >= U - 8 && r < 8 || n() > .55 && e.push({
1034
+ e.push(...U(0, 0)), e.push(...U(V - 7, 0)), e.push(...U(0, V - 7));
1035
+ let n = Ye(Je(t));
1036
+ for (let t = 0; t < V; t++) for (let r = 0; r < V; r++) t < 8 && r < 8 || t < 8 && r >= V - 8 || t >= V - 8 && r < 8 || n() > .55 && e.push({
968
1037
  x: r,
969
1038
  y: t
970
1039
  });
971
1040
  return e;
972
1041
  }, [t]);
973
- return /* @__PURE__ */ b("svg", {
1042
+ return /* @__PURE__ */ x("svg", {
974
1043
  ref: o,
975
1044
  width: n,
976
1045
  height: n,
977
- viewBox: `0 0 ${U} ${U}`,
1046
+ viewBox: `0 0 ${V} ${V}`,
978
1047
  className: e("shrink-0", a),
979
1048
  "data-component": "qr-code",
980
1049
  "data-testid": "qr-code-svg",
981
1050
  role: "img",
982
1051
  "aria-label": `QR code for: ${t}`,
983
- children: [/* @__PURE__ */ y("rect", {
984
- width: U,
985
- height: U,
1052
+ children: [/* @__PURE__ */ b("rect", {
1053
+ width: V,
1054
+ height: V,
986
1055
  fill: i
987
- }), s.map((e, t) => /* @__PURE__ */ y("rect", {
1056
+ }), s.map((e, t) => /* @__PURE__ */ b("rect", {
988
1057
  x: e.x,
989
1058
  y: e.y,
990
- width: W,
991
- height: W,
1059
+ width: H,
1060
+ height: H,
992
1061
  fill: r
993
1062
  }, t))]
994
1063
  });
995
- }), K = n("inline-flex shrink-0 select-none items-center justify-center rounded-full transition-transform active:scale-95 hover:scale-105", {
1064
+ }), W = n("inline-flex shrink-0 select-none items-center justify-center rounded-full transition-transform active:scale-95 hover:scale-105", {
996
1065
  defaultVariants: {
997
1066
  size: "default",
998
1067
  variant: "primary"
@@ -1008,11 +1077,11 @@ var Ue = p(function({ value: t, size: n = 128, color: r = "currentColor", bgColo
1008
1077
  sm: "h-9 w-9"
1009
1078
  }
1010
1079
  }
1011
- }), We = p(function({ className: t, disabled: n, icon: r, label: a, onClick: o, size: s, variant: c, ...l }, u) {
1012
- return /* @__PURE__ */ b("div", {
1080
+ }), Ze = m(function({ className: t, disabled: n, icon: r, label: a, onClick: o, size: s, variant: c, ...l }, u) {
1081
+ return /* @__PURE__ */ x("div", {
1013
1082
  className: "inline-flex flex-col items-center gap-1",
1014
- children: [/* @__PURE__ */ y("button", {
1015
- className: e(K({
1083
+ children: [/* @__PURE__ */ b("button", {
1084
+ className: e(W({
1016
1085
  size: s,
1017
1086
  variant: c
1018
1087
  }), i, n === !0 && "pointer-events-none opacity-40", t),
@@ -1023,17 +1092,17 @@ var Ue = p(function({ value: t, size: n = 128, color: r = "currentColor", bgColo
1023
1092
  ref: u,
1024
1093
  type: "button",
1025
1094
  ...l,
1026
- children: /* @__PURE__ */ y("span", {
1095
+ children: /* @__PURE__ */ b("span", {
1027
1096
  className: "gds-icon-child",
1028
1097
  children: r
1029
1098
  })
1030
- }), a !== void 0 && /* @__PURE__ */ y("span", {
1099
+ }), a !== void 0 && /* @__PURE__ */ b("span", {
1031
1100
  className: "select-none text-[10px] text-fg-muted",
1032
1101
  children: a
1033
1102
  })]
1034
1103
  });
1035
- }), Ge = p(function({ className: t, direction: n = "vertical", disabled: r = !1, onChange: a, options: o, value: s, ...c }, l) {
1036
- return /* @__PURE__ */ y("div", {
1104
+ }), Qe = m(function({ className: t, direction: n = "vertical", disabled: r = !1, onChange: a, options: o, value: s, ...c }, l) {
1105
+ return /* @__PURE__ */ b("div", {
1037
1106
  className: e("flex gds-gap", n === "vertical" ? "flex-col" : "flex-row flex-wrap", t),
1038
1107
  "data-component": "radio-group",
1039
1108
  ref: l,
@@ -1041,45 +1110,45 @@ var Ue = p(function({ value: t, size: n = 128, color: r = "currentColor", bgColo
1041
1110
  ...c,
1042
1111
  children: o.map((t) => {
1043
1112
  let n = t.value === s, o = r || t.disabled === !0;
1044
- return /* @__PURE__ */ b("button", {
1113
+ return /* @__PURE__ */ x("button", {
1045
1114
  "aria-checked": n,
1046
1115
  className: e("inline-flex select-none items-center gds-gap-sm gds-text-body", i, o && "cursor-not-allowed opacity-50"),
1047
1116
  disabled: o,
1048
1117
  onClick: () => a?.(t.value),
1049
1118
  role: "radio",
1050
1119
  type: "button",
1051
- children: [/* @__PURE__ */ y("span", {
1120
+ children: [/* @__PURE__ */ b("span", {
1052
1121
  className: e("inline-flex gds-icon shrink-0 items-center justify-center gds-radius-badge border transition-colors", n ? "border-accent" : "border-border hover:border-accent/50"),
1053
- children: n && /* @__PURE__ */ y("span", { className: "h-2 w-2 gds-radius-badge bg-accent" })
1054
- }), /* @__PURE__ */ y("span", {
1122
+ children: n && /* @__PURE__ */ b("span", { className: "h-2 w-2 gds-radius-badge bg-accent" })
1123
+ }), /* @__PURE__ */ b("span", {
1055
1124
  className: "text-fg",
1056
1125
  children: t.label
1057
1126
  })]
1058
1127
  }, t.value);
1059
1128
  })
1060
1129
  });
1061
- }), q = {
1130
+ }), G = {
1062
1131
  default: "gds-sq-xs",
1063
1132
  lg: "gds-sq-sm",
1064
1133
  sm: "gds-icon"
1065
1134
  };
1066
- function J({ filled: t }) {
1067
- return /* @__PURE__ */ y("svg", {
1068
- className: e(q.default, t ? "fill-warning text-warning" : "text-fg-muted/20"),
1135
+ function K({ filled: t }) {
1136
+ return /* @__PURE__ */ b("svg", {
1137
+ className: e(G.default, t ? "fill-warning text-warning" : "text-fg-muted/20"),
1069
1138
  fill: t ? "currentColor" : "none",
1070
1139
  stroke: "currentColor",
1071
1140
  strokeWidth: 1.5,
1072
1141
  viewBox: "0 0 24 24",
1073
- children: /* @__PURE__ */ y("path", {
1142
+ children: /* @__PURE__ */ b("path", {
1074
1143
  d: "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",
1075
1144
  strokeLinecap: "round",
1076
1145
  strokeLinejoin: "round"
1077
1146
  })
1078
1147
  });
1079
1148
  }
1080
- var Ke = p(function({ className: t, max: n = 5, onChange: r, readonly: a = !1, renderStar: o, size: s = "default", value: c, ...l }, u) {
1081
- let [d, f] = v(null), p = m(() => f(null), []);
1082
- return /* @__PURE__ */ y("div", {
1149
+ var $e = m(function({ className: t, max: n = 5, onChange: r, readonly: a = !1, renderStar: o, size: s = "default", value: c, ...l }, u) {
1150
+ let [d, f] = y(null), p = h(() => f(null), []);
1151
+ return /* @__PURE__ */ b("div", {
1083
1152
  className: e("inline-flex gds-gap-xs", t),
1084
1153
  "data-component": "rating",
1085
1154
  onMouseLeave: a ? void 0 : p,
@@ -1088,17 +1157,17 @@ var Ke = p(function({ className: t, max: n = 5, onChange: r, readonly: a = !1, r
1088
1157
  ...l,
1089
1158
  children: Array.from({ length: n }, (t, n) => {
1090
1159
  let l = n + 1, u = d === null ? l <= c : l <= d;
1091
- return a ? /* @__PURE__ */ y("span", {
1092
- className: q[s],
1093
- children: o === void 0 ? /* @__PURE__ */ y(J, { filled: u }) : o(u, n)
1094
- }, n) : /* @__PURE__ */ y("button", {
1160
+ return a ? /* @__PURE__ */ b("span", {
1161
+ className: G[s],
1162
+ children: o === void 0 ? /* @__PURE__ */ b(K, { filled: u }) : o(u, n)
1163
+ }, n) : /* @__PURE__ */ b("button", {
1095
1164
  className: e("transition-transform hover:scale-110", i),
1096
1165
  onClick: () => r?.(l),
1097
1166
  onMouseEnter: () => f(l),
1098
1167
  type: "button",
1099
- children: /* @__PURE__ */ y("span", {
1100
- className: q[s],
1101
- children: o === void 0 ? /* @__PURE__ */ y(J, { filled: u }) : o(u, n)
1168
+ children: /* @__PURE__ */ b("span", {
1169
+ className: G[s],
1170
+ children: o === void 0 ? /* @__PURE__ */ b(K, { filled: u }) : o(u, n)
1102
1171
  })
1103
1172
  }, n);
1104
1173
  })
@@ -1106,7 +1175,7 @@ var Ke = p(function({ className: t, max: n = 5, onChange: r, readonly: a = !1, r
1106
1175
  });
1107
1176
  //#endregion
1108
1177
  //#region src/l3-atoms/relative-time.tsx
1109
- function Y(e) {
1178
+ function q(e) {
1110
1179
  let t = e instanceof Date ? e : new Date(e), n = Date.now() - t.getTime(), r = Math.floor(n / 1e3);
1111
1180
  if (r < 60) return "just now";
1112
1181
  let i = Math.floor(r / 60);
@@ -1119,18 +1188,18 @@ function Y(e) {
1119
1188
  let s = Math.floor(o / 30);
1120
1189
  return s < 12 ? `${s}mo ago` : `${Math.floor(s / 12)}y ago`;
1121
1190
  }
1122
- function qe(e) {
1191
+ function et(e) {
1123
1192
  return e.toLocaleString();
1124
1193
  }
1125
- var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1126
- let [o, s] = v(() => Y(n)), c = _(null);
1127
- h(() => (s(Y(n)), c.current = setInterval(() => {
1128
- s(Y(n));
1194
+ var tt = m(function({ className: t, date: n, prefix: r, ...i }, a) {
1195
+ let [o, s] = y(() => q(n)), c = v(null);
1196
+ g(() => (s(q(n)), c.current = setInterval(() => {
1197
+ s(q(n));
1129
1198
  }, 3e4), () => {
1130
1199
  c.current !== null && clearInterval(c.current);
1131
1200
  }), [n]);
1132
- let l = n instanceof Date ? n : new Date(n), u = qe(l);
1133
- return /* @__PURE__ */ y("time", {
1201
+ let l = n instanceof Date ? n : new Date(n), u = et(l);
1202
+ return /* @__PURE__ */ b("time", {
1134
1203
  className: e("font-mono text-fg-muted", t),
1135
1204
  "data-component": "relative-time",
1136
1205
  dateTime: l.toISOString(),
@@ -1139,26 +1208,26 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1139
1208
  ...i,
1140
1209
  children: r === void 0 ? o : `${r} ${o}`
1141
1210
  });
1142
- }), Ye = {
1211
+ }), nt = {
1143
1212
  accent: "bg-accent text-accent-fg",
1144
1213
  danger: "bg-danger text-white",
1145
1214
  success: "bg-success text-white",
1146
1215
  warning: "bg-warning text-white"
1147
- }, Xe = p(function({ children: t, label: n, variant: r = "accent", position: i = "top-right", className: a, ...o }, s) {
1216
+ }, rt = m(function({ children: t, label: n, variant: r = "accent", position: i = "top-right", className: a, ...o }, s) {
1148
1217
  let c = i === "top-right";
1149
- return /* @__PURE__ */ b("div", {
1218
+ return /* @__PURE__ */ x("div", {
1150
1219
  ref: s,
1151
1220
  className: e("relative overflow-hidden", a),
1152
1221
  "data-component": "ribbon",
1153
1222
  ...o,
1154
- children: [/* @__PURE__ */ y("div", {
1155
- className: e("pointer-events-none absolute top-3 z-10 px-6 py-0.5 text-[10px] font-bold uppercase tracking-wider shadow-sm", Ye[r], c ? "-right-6 rotate-45" : "-left-6 -rotate-45"),
1223
+ children: [/* @__PURE__ */ b("div", {
1224
+ className: e("pointer-events-none absolute top-3 z-10 px-6 py-0.5 text-[10px] font-bold uppercase tracking-wider shadow-sm", nt[r], c ? "-right-6 rotate-45" : "-left-6 -rotate-45"),
1156
1225
  children: n
1157
1226
  }), t]
1158
1227
  });
1159
- }), Ze = p(function({ className: t, color: n, position: r = "top-right", text: i, ...a }, o) {
1228
+ }), it = m(function({ className: t, color: n, position: r = "top-right", text: i, ...a }, o) {
1160
1229
  let s = r === "top-right";
1161
- return /* @__PURE__ */ y("div", {
1230
+ return /* @__PURE__ */ b("div", {
1162
1231
  className: e("absolute top-0 z-10 overflow-hidden", s ? "right-0" : "left-0", t),
1163
1232
  "data-component": "ribbon-banner",
1164
1233
  ref: o,
@@ -1167,7 +1236,7 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1167
1236
  width: 80
1168
1237
  },
1169
1238
  ...a,
1170
- children: /* @__PURE__ */ y("div", {
1239
+ children: /* @__PURE__ */ b("div", {
1171
1240
  className: "flex items-center justify-center text-xs font-bold text-accent-fg select-none",
1172
1241
  style: {
1173
1242
  backgroundColor: n ?? "var(--color-accent)",
@@ -1181,25 +1250,25 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1181
1250
  children: i
1182
1251
  })
1183
1252
  });
1184
- }), Qe = 0, $e = p(function({ children: t, color: n = "currentColor", disabled: r = !1, className: i }, a) {
1185
- let [o, s] = v([]), c = m((e) => {
1253
+ }), at = 0, ot = m(function({ children: t, color: n = "currentColor", disabled: r = !1, className: i }, a) {
1254
+ let [o, s] = y([]), c = h((e) => {
1186
1255
  if (r) return;
1187
1256
  let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, i = e.clientY - t.top, a = Math.max(t.width, t.height) * 2;
1188
1257
  s((e) => [...e, {
1189
- id: Qe++,
1258
+ id: at++,
1190
1259
  x: n,
1191
1260
  y: i,
1192
1261
  size: a
1193
1262
  }]);
1194
- }, [r]), l = m((e) => {
1263
+ }, [r]), l = h((e) => {
1195
1264
  s((t) => t.filter((t) => t.id !== e));
1196
1265
  }, []);
1197
- return /* @__PURE__ */ b("div", {
1266
+ return /* @__PURE__ */ x("div", {
1198
1267
  ref: a,
1199
1268
  "data-component": "ripple-effect",
1200
1269
  className: e("relative overflow-hidden", i),
1201
1270
  onPointerDown: c,
1202
- children: [t, o.map((e) => /* @__PURE__ */ y("span", {
1271
+ children: [t, o.map((e) => /* @__PURE__ */ b("span", {
1203
1272
  className: "pointer-events-none absolute animate-ripple rounded-full",
1204
1273
  style: {
1205
1274
  left: e.x - e.size / 2,
@@ -1211,18 +1280,18 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1211
1280
  onAnimationEnd: () => l(e.id)
1212
1281
  }, e.id))]
1213
1282
  });
1214
- }), et = p(function({ className: t, color: n, height: r = 3, ...i }, a) {
1215
- let [o, s] = v(0), c = m(() => {
1283
+ }), st = m(function({ className: t, color: n, height: r = 3, ...i }, a) {
1284
+ let [o, s] = y(0), c = h(() => {
1216
1285
  let e = document.documentElement.scrollTop, t = document.documentElement.scrollHeight - document.documentElement.clientHeight;
1217
1286
  t > 0 && s(e / t * 100);
1218
1287
  }, []);
1219
- return h(() => (window.addEventListener("scroll", c, { passive: !0 }), () => window.removeEventListener("scroll", c)), [c]), /* @__PURE__ */ y("div", {
1288
+ return g(() => (window.addEventListener("scroll", c, { passive: !0 }), () => window.removeEventListener("scroll", c)), [c]), /* @__PURE__ */ b("div", {
1220
1289
  className: e("fixed top-0 right-0 left-0 z-50", t),
1221
1290
  "data-component": "scroll-progress",
1222
1291
  ref: a,
1223
1292
  style: { height: `${r}px` },
1224
1293
  ...i,
1225
- children: /* @__PURE__ */ y("div", {
1294
+ children: /* @__PURE__ */ b("div", {
1226
1295
  className: "h-full bg-accent transition-[width] duration-100 ease-out",
1227
1296
  style: {
1228
1297
  width: `${o}%`,
@@ -1230,12 +1299,12 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1230
1299
  }
1231
1300
  })
1232
1301
  });
1233
- }), tt = p(function({ threshold: t = 300, smooth: n = !0, className: r }, a) {
1234
- let [o, s] = v(() => typeof window > "u" ? !1 : window.scrollY >= t);
1235
- return h(() => {
1302
+ }), ct = m(function({ threshold: t = 300, smooth: n = !0, className: r }, a) {
1303
+ let [o, s] = y(() => typeof window > "u" ? !1 : window.scrollY >= t);
1304
+ return g(() => {
1236
1305
  let e = () => s(window.scrollY >= t);
1237
1306
  return window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
1238
- }, [t]), o ? /* @__PURE__ */ y("button", {
1307
+ }, [t]), o ? /* @__PURE__ */ b("button", {
1239
1308
  ref: a,
1240
1309
  type: "button",
1241
1310
  "aria-label": "Scroll to top",
@@ -1245,7 +1314,7 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1245
1314
  }),
1246
1315
  className: e("fixed bottom-6 right-6 z-40 flex h-10 w-10 items-center justify-center rounded-full bg-accent text-accent-fg shadow-lg transition-opacity hover:bg-accent/90", i, r),
1247
1316
  "data-component": "scroll-to-top",
1248
- children: /* @__PURE__ */ y("svg", {
1317
+ children: /* @__PURE__ */ b("svg", {
1249
1318
  width: "16",
1250
1319
  height: "16",
1251
1320
  viewBox: "0 0 16 16",
@@ -1254,14 +1323,14 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1254
1323
  strokeWidth: "2",
1255
1324
  strokeLinecap: "round",
1256
1325
  strokeLinejoin: "round",
1257
- children: /* @__PURE__ */ y("path", { d: "M8 12V4M4 7l4-3 4 3" })
1326
+ children: /* @__PURE__ */ b("path", { d: "M8 12V4M4 7l4-3 4 3" })
1258
1327
  })
1259
1328
  }) : null;
1260
- }), nt = {
1329
+ }), lt = {
1261
1330
  default: "px-3 py-1.5 text-xs",
1262
1331
  sm: "px-2 py-1 text-[11px]"
1263
- }, rt = p(function({ options: n, value: r, onChange: a, size: o = "default", disabled: s, glass: c, className: l, ...u }, d) {
1264
- return /* @__PURE__ */ y("div", {
1332
+ }, ut = m(function({ options: n, value: r, onChange: a, size: o = "default", disabled: s, glass: c, className: l, ...u }, d) {
1333
+ return /* @__PURE__ */ b("div", {
1265
1334
  ref: d,
1266
1335
  className: e("inline-flex select-none gds-radius-button bg-bg-tertiary p-0.5", c === !0 && t(c), s === !0 && "pointer-events-none opacity-50", l),
1267
1336
  "data-component": "segmented-control",
@@ -1270,7 +1339,7 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1270
1339
  ...u,
1271
1340
  children: n.map((t) => {
1272
1341
  let n = t.value === r;
1273
- return /* @__PURE__ */ y("button", {
1342
+ return /* @__PURE__ */ b("button", {
1274
1343
  type: "button",
1275
1344
  role: "radio",
1276
1345
  "aria-checked": n,
@@ -1278,75 +1347,75 @@ var Je = p(function({ className: t, date: n, prefix: r, ...i }, a) {
1278
1347
  onClick: () => {
1279
1348
  n || a(t.value);
1280
1349
  },
1281
- className: e("gds-radius-button transition-all", nt[o ?? "default"], i, n ? "bg-bg font-medium text-fg gds-shadow-sm" : "text-fg-muted hover:text-fg"),
1350
+ className: e("gds-radius-button transition-all", lt[o ?? "default"], i, n ? "bg-bg font-medium text-fg gds-shadow-sm" : "text-fg-muted hover:text-fg"),
1282
1351
  children: t.label
1283
1352
  }, t.value);
1284
1353
  })
1285
1354
  });
1286
- }), it = p(function({ className: t, description: n, keys: r, ...i }, a) {
1287
- return /* @__PURE__ */ b("span", {
1355
+ }), dt = m(function({ className: t, description: n, keys: r, ...i }, a) {
1356
+ return /* @__PURE__ */ x("span", {
1288
1357
  className: e("inline-flex items-center gap-2", t),
1289
1358
  "data-component": "shortcut-display",
1290
1359
  ref: a,
1291
1360
  ...i,
1292
- children: [/* @__PURE__ */ y("span", {
1361
+ children: [/* @__PURE__ */ b("span", {
1293
1362
  className: "inline-flex items-center gap-0.5",
1294
- children: r.map((e, t) => /* @__PURE__ */ y(o, { children: e }, t))
1295
- }), n !== void 0 && /* @__PURE__ */ y("span", {
1363
+ children: r.map((e, t) => /* @__PURE__ */ b(o, { children: e }, t))
1364
+ }), n !== void 0 && /* @__PURE__ */ b("span", {
1296
1365
  className: "text-xs text-fg-muted",
1297
1366
  children: n
1298
1367
  })]
1299
1368
  });
1300
- }), at = {
1301
- "avatar-text": () => /* @__PURE__ */ b("div", {
1369
+ }), ft = {
1370
+ "avatar-text": () => /* @__PURE__ */ x("div", {
1302
1371
  className: "flex items-center gap-3",
1303
- children: [/* @__PURE__ */ y(c, { variant: "circle" }), /* @__PURE__ */ b("div", {
1372
+ children: [/* @__PURE__ */ b(c, { variant: "circle" }), /* @__PURE__ */ x("div", {
1304
1373
  className: "flex flex-1 flex-col gap-2",
1305
- children: [/* @__PURE__ */ y(c, {
1374
+ children: [/* @__PURE__ */ b(c, {
1306
1375
  variant: "text",
1307
1376
  width: "60%"
1308
- }), /* @__PURE__ */ y(c, {
1377
+ }), /* @__PURE__ */ b(c, {
1309
1378
  variant: "text",
1310
1379
  width: "40%"
1311
1380
  })]
1312
1381
  })]
1313
1382
  }),
1314
- card: () => /* @__PURE__ */ b("div", {
1383
+ card: () => /* @__PURE__ */ x("div", {
1315
1384
  className: "flex flex-col gap-3",
1316
1385
  children: [
1317
- /* @__PURE__ */ y(c, { variant: "rect" }),
1318
- /* @__PURE__ */ y(c, { variant: "text" }),
1319
- /* @__PURE__ */ y(c, {
1386
+ /* @__PURE__ */ b(c, { variant: "rect" }),
1387
+ /* @__PURE__ */ b(c, { variant: "text" }),
1388
+ /* @__PURE__ */ b(c, {
1320
1389
  variant: "text",
1321
1390
  width: "80%"
1322
1391
  }),
1323
- /* @__PURE__ */ y(c, {
1392
+ /* @__PURE__ */ b(c, {
1324
1393
  variant: "text",
1325
1394
  width: "50%"
1326
1395
  })
1327
1396
  ]
1328
1397
  }),
1329
- "form-field": () => /* @__PURE__ */ b("div", {
1398
+ "form-field": () => /* @__PURE__ */ x("div", {
1330
1399
  className: "flex flex-col gap-2",
1331
- children: [/* @__PURE__ */ y(c, {
1400
+ children: [/* @__PURE__ */ b(c, {
1332
1401
  variant: "text",
1333
1402
  width: "30%"
1334
- }), /* @__PURE__ */ y(c, {
1403
+ }), /* @__PURE__ */ b(c, {
1335
1404
  variant: "rect",
1336
1405
  height: 36
1337
1406
  })]
1338
1407
  })
1339
- }, ot = p(function({ className: t, count: n = 1, variant: r = "avatar-text" }, i) {
1340
- let a = at[r];
1341
- return /* @__PURE__ */ y("div", {
1408
+ }, pt = m(function({ className: t, count: n = 1, variant: r = "avatar-text" }, i) {
1409
+ let a = ft[r];
1410
+ return /* @__PURE__ */ b("div", {
1342
1411
  ref: i,
1343
1412
  className: e("flex flex-col gap-4", t),
1344
1413
  "data-component": "skeleton-group",
1345
1414
  "data-variant": r,
1346
- children: Array.from({ length: n }, (e, t) => /* @__PURE__ */ y("div", { children: a() }, t))
1415
+ children: Array.from({ length: n }, (e, t) => /* @__PURE__ */ b("div", { children: a() }, t))
1347
1416
  });
1348
- }), st = "M12 0l3 9 9 3-9 3-3 9-3-9-9-3 9-3z";
1349
- function ct(e, t) {
1417
+ }), mt = "M12 0l3 9 9 3-9 3-3 9-3-9-9-3 9-3z";
1418
+ function ht(e, t) {
1350
1419
  let n = 360 / t * e * Math.PI / 180, r = 70 + e % 3 * 15;
1351
1420
  return {
1352
1421
  position: "absolute",
@@ -1359,66 +1428,85 @@ function ct(e, t) {
1359
1428
  opacity: 0
1360
1429
  };
1361
1430
  }
1362
- var lt = p(function({ children: t, active: n = !0, count: r = 3, color: i = "var(--gds-accent)", className: a }, o) {
1431
+ var gt = m(function({ children: t, active: n = !0, count: r = 3, color: i = "var(--gds-accent)", className: a }, o) {
1363
1432
  let s = Array.from({ length: r }, (e, t) => t);
1364
- return /* @__PURE__ */ b("span", {
1433
+ return /* @__PURE__ */ x("span", {
1365
1434
  ref: o,
1366
1435
  className: e("relative inline-block", a),
1367
1436
  "data-component": "sparkle",
1368
1437
  children: [
1369
1438
  t,
1370
- n && s.map((e) => /* @__PURE__ */ y("svg", {
1439
+ n && s.map((e) => /* @__PURE__ */ b("svg", {
1371
1440
  viewBox: "0 0 24 24",
1372
1441
  fill: i,
1373
- style: ct(e, r),
1442
+ style: ht(e, r),
1374
1443
  "aria-hidden": "true",
1375
- children: /* @__PURE__ */ y("path", { d: st })
1444
+ children: /* @__PURE__ */ b("path", { d: mt })
1376
1445
  }, e)),
1377
- n && /* @__PURE__ */ y("style", { children: "\n @keyframes gds-sparkle {\n 0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }\n 50% { opacity: 1; transform: scale(1) rotate(180deg); }\n }\n " })
1446
+ n && /* @__PURE__ */ b("style", { children: "\n @keyframes gds-sparkle {\n 0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }\n 50% { opacity: 1; transform: scale(1) rotate(180deg); }\n }\n " })
1378
1447
  ]
1379
1448
  });
1380
- }), ut = {
1449
+ }), _t = {
1450
+ fade: "animate-[stagger-fade_0.4s_ease_both]",
1451
+ scale: "animate-[stagger-scale_0.4s_ease_both]",
1452
+ "slide-up": "animate-[stagger-slide-up_0.4s_ease_both]"
1453
+ };
1454
+ function vt({ animation: t = "fade", children: n, className: r, delay: i = 80 }) {
1455
+ let a = p.toArray(n);
1456
+ return /* @__PURE__ */ b("div", {
1457
+ className: e("", r),
1458
+ "data-component": "stagger",
1459
+ children: a.map((e, n) => /* @__PURE__ */ b("div", {
1460
+ className: _t[t],
1461
+ style: { animationDelay: `${n * i}ms` },
1462
+ children: e
1463
+ }, n))
1464
+ });
1465
+ }
1466
+ //#endregion
1467
+ //#region src/l3-atoms/star-rating.tsx
1468
+ var yt = {
1381
1469
  sm: 14,
1382
1470
  default: 18,
1383
1471
  lg: 24
1384
- }, X = "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z";
1385
- function dt({ fill: e, s: t, color: n }) {
1472
+ }, J = "M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z";
1473
+ function bt({ fill: e, s: t, color: n }) {
1386
1474
  let r = `half-${Math.random().toString(36).slice(2, 8)}`;
1387
- return e === "full" ? /* @__PURE__ */ y("svg", {
1475
+ return e === "full" ? /* @__PURE__ */ b("svg", {
1388
1476
  width: t,
1389
1477
  height: t,
1390
1478
  viewBox: "0 0 24 24",
1391
1479
  fill: n,
1392
1480
  stroke: n,
1393
1481
  strokeWidth: 1,
1394
- children: /* @__PURE__ */ y("path", { d: X })
1395
- }) : e === "half" ? /* @__PURE__ */ b("svg", {
1482
+ children: /* @__PURE__ */ b("path", { d: J })
1483
+ }) : e === "half" ? /* @__PURE__ */ x("svg", {
1396
1484
  width: t,
1397
1485
  height: t,
1398
1486
  viewBox: "0 0 24 24",
1399
1487
  stroke: n,
1400
1488
  strokeWidth: 1,
1401
1489
  children: [
1402
- /* @__PURE__ */ y("defs", { children: /* @__PURE__ */ y("clipPath", {
1490
+ /* @__PURE__ */ b("defs", { children: /* @__PURE__ */ b("clipPath", {
1403
1491
  id: r,
1404
- children: /* @__PURE__ */ y("rect", {
1492
+ children: /* @__PURE__ */ b("rect", {
1405
1493
  x: "0",
1406
1494
  y: "0",
1407
1495
  width: "12",
1408
1496
  height: "24"
1409
1497
  })
1410
1498
  }) }),
1411
- /* @__PURE__ */ y("path", {
1412
- d: X,
1499
+ /* @__PURE__ */ b("path", {
1500
+ d: J,
1413
1501
  fill: "none"
1414
1502
  }),
1415
- /* @__PURE__ */ y("path", {
1416
- d: X,
1503
+ /* @__PURE__ */ b("path", {
1504
+ d: J,
1417
1505
  fill: n,
1418
1506
  clipPath: `url(#${r})`
1419
1507
  })
1420
1508
  ]
1421
- }) : /* @__PURE__ */ y("svg", {
1509
+ }) : /* @__PURE__ */ b("svg", {
1422
1510
  width: t,
1423
1511
  height: t,
1424
1512
  viewBox: "0 0 24 24",
@@ -1426,12 +1514,12 @@ function dt({ fill: e, s: t, color: n }) {
1426
1514
  stroke: "currentColor",
1427
1515
  strokeWidth: 1,
1428
1516
  className: "text-fg-muted/30",
1429
- children: /* @__PURE__ */ y("path", { d: X })
1517
+ children: /* @__PURE__ */ b("path", { d: J })
1430
1518
  });
1431
1519
  }
1432
- var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "currentColor", className: a }, o) {
1433
- let s = ut[r], c = i === "currentColor" ? "var(--color-warning)" : i;
1434
- return /* @__PURE__ */ y("div", {
1520
+ var xt = m(function({ value: t, max: n = 5, size: r = "default", color: i = "currentColor", className: a }, o) {
1521
+ let s = yt[r], c = i === "currentColor" ? "var(--color-warning)" : i;
1522
+ return /* @__PURE__ */ b("div", {
1435
1523
  ref: o,
1436
1524
  className: e("inline-flex items-center gap-0.5", a),
1437
1525
  "data-component": "star-rating",
@@ -1439,100 +1527,100 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1439
1527
  "aria-label": `${t} out of ${n} stars`,
1440
1528
  children: Array.from({ length: n }, (e, n) => {
1441
1529
  let r = t - n;
1442
- return /* @__PURE__ */ y(dt, {
1530
+ return /* @__PURE__ */ b(bt, {
1443
1531
  fill: r >= 1 ? "full" : r >= .5 ? "half" : "empty",
1444
1532
  s,
1445
1533
  color: c
1446
1534
  }, n);
1447
1535
  })
1448
1536
  });
1449
- }), Z = {
1537
+ }), Y = {
1450
1538
  active: "bg-success/10 text-success",
1451
1539
  draft: "bg-fg-muted/10 text-fg-muted",
1452
1540
  error: "bg-danger/10 text-danger",
1453
1541
  inactive: "bg-fg-muted/10 text-fg-muted",
1454
1542
  pending: "bg-warning/10 text-warning",
1455
1543
  warning: "bg-warning/10 text-warning"
1456
- }, pt = p(function({ className: n, glass: r, icon: i, label: a, size: o = "default", status: s, ...c }, l) {
1544
+ }, St = m(function({ className: n, glass: r, icon: i, label: a, size: o = "default", status: s, ...c }, l) {
1457
1545
  let u = a ?? s;
1458
- return /* @__PURE__ */ b("span", {
1459
- className: e("inline-flex select-none items-center gds-gap-xs gds-radius-badge font-medium", o === "sm" ? "gds-pad-x-sm py-px gds-text-caption" : "gds-pad-x-sm gds-pad-y-sm gds-text-body", Z[s], t(r), r === !0 && "border border-white/10 bg-white/5", n),
1546
+ return /* @__PURE__ */ x("span", {
1547
+ className: e("inline-flex select-none items-center gds-gap-xs gds-radius-badge font-medium", o === "sm" ? "gds-pad-x-sm py-px gds-text-caption" : "gds-pad-x-sm gds-pad-y-sm gds-text-body", Y[s], t(r), r === !0 && "border border-white/10 bg-white/5", n),
1460
1548
  "data-component": "status-badge",
1461
1549
  "data-state": s,
1462
1550
  ref: l,
1463
1551
  ...c,
1464
- children: [i !== void 0 && /* @__PURE__ */ y("span", {
1552
+ children: [i !== void 0 && /* @__PURE__ */ b("span", {
1465
1553
  className: "gds-icon-child-sm",
1466
1554
  children: i
1467
1555
  }), u]
1468
1556
  });
1469
- }), mt = {
1470
- status: Z,
1557
+ }), Ct = {
1558
+ status: Y,
1471
1559
  size: {
1472
1560
  default: "gds-pad-x-sm gds-pad-y-sm gds-text-body",
1473
1561
  sm: "gds-pad-x-sm py-px gds-text-caption"
1474
1562
  }
1475
- }, Q = {
1563
+ }, X = {
1476
1564
  connected: "bg-success",
1477
1565
  connecting: "bg-warning animate-pulse",
1478
1566
  disconnected: "bg-danger"
1479
- }, ht = p(function({ className: t, label: n, status: r, ...i }, a) {
1480
- return /* @__PURE__ */ b("span", {
1567
+ }, wt = m(function({ className: t, label: n, status: r, ...i }, a) {
1568
+ return /* @__PURE__ */ x("span", {
1481
1569
  className: e("inline-flex items-center gds-gap-sm", t),
1482
1570
  "data-component": "status-dot",
1483
1571
  "data-state": r,
1484
1572
  ref: a,
1485
1573
  ...i,
1486
- children: [/* @__PURE__ */ y("span", { className: e("h-2 w-2 shrink-0 rounded-full", Q[r]) }), n !== void 0 && /* @__PURE__ */ y("span", {
1574
+ children: [/* @__PURE__ */ b("span", { className: e("h-2 w-2 shrink-0 rounded-full", X[r]) }), n !== void 0 && /* @__PURE__ */ b("span", {
1487
1575
  className: "gds-text-label text-fg-muted",
1488
1576
  children: n
1489
1577
  })]
1490
1578
  });
1491
- }), gt = { status: Q }, _t = p(function({ className: t, disabled: n = !1, items: r, onChange: i }, a) {
1492
- return /* @__PURE__ */ y("div", {
1579
+ }), Tt = { status: X }, Et = m(function({ className: t, disabled: n = !1, items: r, onChange: i }, a) {
1580
+ return /* @__PURE__ */ b("div", {
1493
1581
  ref: a,
1494
1582
  className: e("flex flex-col gap-3", t),
1495
1583
  "data-component": "switch-group",
1496
1584
  role: "group",
1497
- children: r.map((e) => /* @__PURE__ */ b("div", {
1585
+ children: r.map((e) => /* @__PURE__ */ x("div", {
1498
1586
  className: "flex items-center justify-between gap-4 gds-pad-x gds-pad-y-sm",
1499
- children: [/* @__PURE__ */ b("div", {
1587
+ children: [/* @__PURE__ */ x("div", {
1500
1588
  className: "min-w-0 flex-1",
1501
- children: [/* @__PURE__ */ y("div", {
1589
+ children: [/* @__PURE__ */ b("div", {
1502
1590
  className: "gds-text-body font-medium text-fg",
1503
1591
  children: e.label
1504
- }), e.description !== void 0 && /* @__PURE__ */ y("div", {
1592
+ }), e.description !== void 0 && /* @__PURE__ */ b("div", {
1505
1593
  className: "mt-0.5 gds-text-caption text-fg-muted",
1506
1594
  children: e.description
1507
1595
  })]
1508
- }), /* @__PURE__ */ y(d, {
1596
+ }), /* @__PURE__ */ b(d, {
1509
1597
  checked: e.checked,
1510
1598
  disabled: n,
1511
1599
  onChange: (t) => i(e.id, t)
1512
1600
  })]
1513
1601
  }, e.id))
1514
1602
  });
1515
- }), vt = {
1603
+ }), Dt = {
1516
1604
  accent: "bg-accent/15 text-accent",
1517
1605
  danger: "bg-danger/15 text-danger",
1518
1606
  muted: "bg-fg-muted/10 text-fg-muted",
1519
1607
  success: "bg-success/15 text-success",
1520
1608
  warning: "bg-warning/15 text-warning"
1521
- }, yt = {
1609
+ }, Ot = {
1522
1610
  default: "px-1.5 py-0.5 text-[10px]",
1523
1611
  sm: "px-1 py-px text-[9px]"
1524
- }, bt = p(function({ className: t, label: n, size: r = "default", variant: i = "accent", ...a }, o) {
1525
- return /* @__PURE__ */ y("span", {
1526
- className: e("inline-flex select-none items-center rounded-full font-bold uppercase leading-none tracking-wider", vt[i], yt[r], t),
1612
+ }, kt = m(function({ className: t, label: n, size: r = "default", variant: i = "accent", ...a }, o) {
1613
+ return /* @__PURE__ */ b("span", {
1614
+ className: e("inline-flex select-none items-center rounded-full font-bold uppercase leading-none tracking-wider", Dt[i], Ot[r], t),
1527
1615
  "data-component": "text-badge",
1528
1616
  "data-variant": i,
1529
1617
  ref: o,
1530
1618
  ...a,
1531
1619
  children: n
1532
1620
  });
1533
- }), xt = p(function({ children: t, className: n, effect: r, gradientFrom: i, gradientTo: a, style: o, ...s }, c) {
1621
+ }), At = m(function({ children: t, className: n, effect: r, gradientFrom: i, gradientTo: a, style: o, ...s }, c) {
1534
1622
  let l = i ?? "var(--gds-accent)", u = a ?? "var(--gds-success)";
1535
- return r === "gradient" ? /* @__PURE__ */ y("span", {
1623
+ return r === "gradient" ? /* @__PURE__ */ b("span", {
1536
1624
  className: e("bg-clip-text text-transparent", n),
1537
1625
  "data-component": "text-effect",
1538
1626
  "data-variant": r,
@@ -1543,7 +1631,7 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1543
1631
  },
1544
1632
  ...s,
1545
1633
  children: t
1546
- }) : r === "highlight" ? /* @__PURE__ */ y("span", {
1634
+ }) : r === "highlight" ? /* @__PURE__ */ b("span", {
1547
1635
  className: e("box-decoration-clone bg-accent/20 px-1", n),
1548
1636
  "data-component": "text-effect",
1549
1637
  "data-variant": r,
@@ -1551,7 +1639,7 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1551
1639
  style: o,
1552
1640
  ...s,
1553
1641
  children: t
1554
- }) : /* @__PURE__ */ y("span", {
1642
+ }) : /* @__PURE__ */ b("span", {
1555
1643
  className: e(n),
1556
1644
  "data-component": "text-effect",
1557
1645
  "data-variant": r,
@@ -1563,40 +1651,40 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1563
1651
  ...s,
1564
1652
  children: t
1565
1653
  });
1566
- }), St = p(function({ className: t, error: n, maxLength: r, onChange: i, value: a, ...o }, c) {
1654
+ }), jt = m(function({ className: t, error: n, maxLength: r, onChange: i, value: a, ...o }, c) {
1567
1655
  let l = a.length, u = r !== void 0 && l >= r * .9;
1568
- return /* @__PURE__ */ b("div", {
1656
+ return /* @__PURE__ */ x("div", {
1569
1657
  className: e("flex flex-col", t),
1570
1658
  "data-component": "textarea-counter",
1571
- children: [/* @__PURE__ */ y(s, {
1659
+ children: [/* @__PURE__ */ b(s, {
1572
1660
  error: n ?? u,
1573
1661
  maxLength: r,
1574
1662
  onChange: (e) => i(e.target.value),
1575
1663
  ref: c,
1576
1664
  value: a,
1577
1665
  ...o
1578
- }), /* @__PURE__ */ y("div", {
1666
+ }), /* @__PURE__ */ b("div", {
1579
1667
  className: e("mt-1 text-right text-[11px]", u ? "text-danger" : "text-fg-muted"),
1580
1668
  children: r === void 0 ? l : `${l} / ${r}`
1581
1669
  })]
1582
1670
  });
1583
- }), Ct = {
1671
+ }), Mt = {
1584
1672
  default: "h-8 w-8",
1585
1673
  sm: "h-6 w-6"
1586
- }, wt = {
1674
+ }, Nt = {
1587
1675
  default: 16,
1588
1676
  sm: 14
1589
- }, Tt = p(function({ mode: t, onChange: n, size: r = "default", className: a }, o) {
1590
- let s = t === "dark", c = wt[r];
1591
- return /* @__PURE__ */ y("button", {
1677
+ }, Pt = m(function({ mode: t, onChange: n, size: r = "default", className: a }, o) {
1678
+ let s = t === "dark", c = Nt[r];
1679
+ return /* @__PURE__ */ b("button", {
1592
1680
  ref: o,
1593
1681
  type: "button",
1594
1682
  "aria-label": s ? "Switch to light mode" : "Switch to dark mode",
1595
1683
  onClick: () => n(s ? "light" : "dark"),
1596
- className: e("inline-flex items-center justify-center rounded-full text-fg-muted transition-colors hover:text-fg select-none", Ct[r], i, a),
1684
+ className: e("inline-flex items-center justify-center rounded-full text-fg-muted transition-colors hover:text-fg select-none", Mt[r], i, a),
1597
1685
  "data-component": "theme-toggle",
1598
1686
  "data-state": t,
1599
- children: s ? /* @__PURE__ */ b("svg", {
1687
+ children: s ? /* @__PURE__ */ x("svg", {
1600
1688
  width: c,
1601
1689
  height: c,
1602
1690
  viewBox: "0 0 16 16",
@@ -1605,12 +1693,12 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1605
1693
  strokeWidth: "1.5",
1606
1694
  strokeLinecap: "round",
1607
1695
  className: "transition-transform duration-200",
1608
- children: [/* @__PURE__ */ y("circle", {
1696
+ children: [/* @__PURE__ */ b("circle", {
1609
1697
  cx: "8",
1610
1698
  cy: "8",
1611
1699
  r: "3"
1612
- }), /* @__PURE__ */ y("path", { d: "M8 1v2M8 13v2M1 8h2M13 8h2M3.05 3.05l1.41 1.41M11.54 11.54l1.41 1.41M3.05 12.95l1.41-1.41M11.54 4.46l1.41-1.41" })]
1613
- }) : /* @__PURE__ */ y("svg", {
1700
+ }), /* @__PURE__ */ b("path", { d: "M8 1v2M8 13v2M1 8h2M13 8h2M3.05 3.05l1.41 1.41M11.54 11.54l1.41 1.41M3.05 12.95l1.41-1.41M11.54 4.46l1.41-1.41" })]
1701
+ }) : /* @__PURE__ */ b("svg", {
1614
1702
  width: c,
1615
1703
  height: c,
1616
1704
  viewBox: "0 0 16 16",
@@ -1619,14 +1707,14 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1619
1707
  strokeWidth: "1.5",
1620
1708
  strokeLinecap: "round",
1621
1709
  className: "transition-transform duration-200",
1622
- children: /* @__PURE__ */ y("path", { d: "M13.5 8.5a5.5 5.5 0 01-7-7A5.5 5.5 0 108 14a5.48 5.48 0 005.5-5.5z" })
1710
+ children: /* @__PURE__ */ b("path", { d: "M13.5 8.5a5.5 5.5 0 01-7-7A5.5 5.5 0 108 14a5.48 5.48 0 005.5-5.5z" })
1623
1711
  })
1624
1712
  });
1625
- }), $ = { size: {
1713
+ }), Z = { size: {
1626
1714
  sm: "px-2 py-1 text-[11px]",
1627
1715
  default: "px-3 py-1.5 text-xs",
1628
1716
  lg: "px-4 py-2 text-sm"
1629
- } }, Et = $, Dt = p(function({ items: t, value: n, onChange: r, exclusive: a, size: o = "default", disabled: s, className: c, ...l }, u) {
1717
+ } }, Q = Z, Ft = m(function({ items: t, value: n, onChange: r, exclusive: a, size: o = "default", disabled: s, className: c, ...l }, u) {
1630
1718
  function d(e) {
1631
1719
  if (a === !0) {
1632
1720
  n.includes(e) || r([e]);
@@ -1634,7 +1722,7 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1634
1722
  }
1635
1723
  n.includes(e) ? r(n.filter((t) => t !== e)) : r([...n, e]);
1636
1724
  }
1637
- return /* @__PURE__ */ y("div", {
1725
+ return /* @__PURE__ */ b("div", {
1638
1726
  ref: u,
1639
1727
  className: e("inline-flex select-none overflow-hidden gds-radius-button border border-border bg-bg", s === !0 && "pointer-events-none opacity-50", c),
1640
1728
  "data-component": "toggle-group",
@@ -1643,9 +1731,9 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1643
1731
  ...l,
1644
1732
  children: t.map((r, a) => {
1645
1733
  let c = n.includes(r.value), l = a === t.length - 1;
1646
- return /* @__PURE__ */ y("button", {
1734
+ return /* @__PURE__ */ b("button", {
1647
1735
  "aria-pressed": c,
1648
- className: e("transition-colors", $.size[o ?? "default"], !l && "border-r border-border", i, c ? "bg-accent/10 text-accent" : "text-fg-muted hover:bg-bg-tertiary"),
1736
+ className: e("transition-colors", Z.size[o ?? "default"], !l && "border-r border-border", i, c ? "bg-accent/10 text-accent" : "text-fg-muted hover:bg-bg-tertiary"),
1649
1737
  disabled: s,
1650
1738
  onClick: () => d(r.value),
1651
1739
  type: "button",
@@ -1653,18 +1741,18 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1653
1741
  }, r.value);
1654
1742
  })
1655
1743
  });
1656
- }), Ot = {
1744
+ }), It = {
1657
1745
  sm: 12,
1658
1746
  default: 16
1659
- }, kt = p(function({ className: t, direction: n, size: r = "default", ...i }, a) {
1660
- let o = Ot[r];
1661
- return /* @__PURE__ */ y("span", {
1747
+ }, Lt = m(function({ className: t, direction: n, size: r = "default", ...i }, a) {
1748
+ let o = It[r];
1749
+ return /* @__PURE__ */ b("span", {
1662
1750
  className: e("inline-flex", n === "up" ? "text-success" : n === "down" ? "text-danger" : "text-fg-muted", t),
1663
1751
  "data-component": "trend-arrow",
1664
1752
  "data-direction": n,
1665
1753
  ref: a,
1666
1754
  ...i,
1667
- children: /* @__PURE__ */ b("svg", {
1755
+ children: /* @__PURE__ */ x("svg", {
1668
1756
  fill: "none",
1669
1757
  height: o,
1670
1758
  stroke: "currentColor",
@@ -1674,31 +1762,58 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1674
1762
  viewBox: "0 0 24 24",
1675
1763
  width: o,
1676
1764
  children: [
1677
- n === "up" && /* @__PURE__ */ y("path", { d: "M12 19V5M5 12l7-7 7 7" }),
1678
- n === "down" && /* @__PURE__ */ y("path", { d: "M12 5v14M19 12l-7 7-7-7" }),
1679
- n === "flat" && /* @__PURE__ */ y("path", { d: "M5 12h14" })
1765
+ n === "up" && /* @__PURE__ */ b("path", { d: "M12 19V5M5 12l7-7 7 7" }),
1766
+ n === "down" && /* @__PURE__ */ b("path", { d: "M12 5v14M19 12l-7 7-7-7" }),
1767
+ n === "flat" && /* @__PURE__ */ b("path", { d: "M5 12h14" })
1680
1768
  ]
1681
1769
  })
1682
1770
  });
1683
- }), At = p(function({ className: t, items: n, max: r = 3, moreLabel: i, ...a }, o) {
1771
+ });
1772
+ //#endregion
1773
+ //#region src/l3-atoms/trend-indicator.tsx
1774
+ function Rt({ className: t, inverse: n = !1, label: r, value: i }) {
1775
+ let a = i > 0, o = i < 0, s = i === 0 ? "text-fg-muted" : a ? n ? "text-danger" : "text-success" : n ? "text-success" : "text-danger", c = a ? "▲" : o ? "▼" : "─", l = a ? "+" : "";
1776
+ return /* @__PURE__ */ x("span", {
1777
+ className: e("inline-flex items-center gap-1 text-sm font-medium select-none", s, t),
1778
+ "data-component": "trend-indicator",
1779
+ children: [
1780
+ /* @__PURE__ */ b("span", {
1781
+ className: "text-[10px]",
1782
+ children: c
1783
+ }),
1784
+ /* @__PURE__ */ x("span", { children: [
1785
+ l,
1786
+ i,
1787
+ "%"
1788
+ ] }),
1789
+ r !== void 0 && /* @__PURE__ */ b("span", {
1790
+ className: "text-xs font-normal text-fg-muted",
1791
+ children: r
1792
+ })
1793
+ ]
1794
+ });
1795
+ }
1796
+ //#endregion
1797
+ //#region src/l3-atoms/truncated-list.tsx
1798
+ var zt = m(function({ className: t, items: n, max: r = 3, moreLabel: i, ...a }, o) {
1684
1799
  let s = n.slice(0, r), c = n.length - r;
1685
- return /* @__PURE__ */ b("div", {
1800
+ return /* @__PURE__ */ x("div", {
1686
1801
  className: e("inline-flex flex-wrap items-center gds-gap-sm", t),
1687
1802
  "data-component": "truncated-list",
1688
1803
  ref: o,
1689
1804
  ...a,
1690
- children: [s.map((e, t) => /* @__PURE__ */ y("span", { children: e }, t)), c > 0 && /* @__PURE__ */ y("span", {
1805
+ children: [s.map((e, t) => /* @__PURE__ */ b("span", { children: e }, t)), c > 0 && /* @__PURE__ */ b("span", {
1691
1806
  className: "gds-text-label text-fg-muted",
1692
1807
  children: i === void 0 ? `+${c} more` : i(c)
1693
1808
  })]
1694
1809
  });
1695
- }), jt = p(function({ text: t, speed: n = 50, delay: r = 0, cursor: i = !0, onComplete: a, className: o }, s) {
1696
- let [c, l] = v(0), [u, d] = v(r <= 0);
1697
- return h(() => {
1810
+ }), Bt = m(function({ text: t, speed: n = 50, delay: r = 0, cursor: i = !0, onComplete: a, className: o }, s) {
1811
+ let [c, l] = y(0), [u, d] = y(r <= 0);
1812
+ return g(() => {
1698
1813
  if (r <= 0) return;
1699
1814
  let e = setTimeout(() => d(!0), r);
1700
1815
  return () => clearTimeout(e);
1701
- }, [r]), h(() => {
1816
+ }, [r]), g(() => {
1702
1817
  if (!u) return;
1703
1818
  if (c >= t.length) {
1704
1819
  a !== void 0 && a();
@@ -1712,62 +1827,62 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1712
1827
  n,
1713
1828
  u,
1714
1829
  a
1715
- ]), h(() => {
1830
+ ]), g(() => {
1716
1831
  l(0), r <= 0 && d(!0);
1717
- }, [t, r]), /* @__PURE__ */ b("span", {
1832
+ }, [t, r]), /* @__PURE__ */ x("span", {
1718
1833
  ref: s,
1719
1834
  className: e(o),
1720
1835
  "data-component": "typewriter",
1721
- children: [t.slice(0, c), i && /* @__PURE__ */ y("span", {
1836
+ children: [t.slice(0, c), i && /* @__PURE__ */ b("span", {
1722
1837
  className: "inline-block animate-pulse",
1723
1838
  "data-testid": "cursor",
1724
1839
  "aria-hidden": !0,
1725
1840
  children: "|"
1726
1841
  })]
1727
1842
  });
1728
- }), Mt = {
1843
+ }), Vt = {
1729
1844
  default: "text-accent",
1730
1845
  gold: "text-warning",
1731
1846
  official: "text-success"
1732
- }, Nt = {
1847
+ }, Ht = {
1733
1848
  default: 16,
1734
1849
  sm: 12
1735
- }, Pt = p(function({ className: t, size: n = "default", variant: r = "default", ...i }, a) {
1736
- let o = Nt[n];
1737
- return /* @__PURE__ */ y("span", {
1738
- className: e("inline-flex shrink-0 items-center", Mt[r], t),
1850
+ }, Ut = m(function({ className: t, size: n = "default", variant: r = "default", ...i }, a) {
1851
+ let o = Ht[n];
1852
+ return /* @__PURE__ */ b("span", {
1853
+ className: e("inline-flex shrink-0 items-center", Vt[r], t),
1739
1854
  "data-component": "verified-badge",
1740
1855
  "data-variant": r,
1741
1856
  ref: a,
1742
1857
  ...i,
1743
- children: /* @__PURE__ */ y("svg", {
1858
+ children: /* @__PURE__ */ b("svg", {
1744
1859
  fill: "currentColor",
1745
1860
  height: o,
1746
1861
  viewBox: "0 0 24 24",
1747
1862
  width: o,
1748
- children: /* @__PURE__ */ y("path", { d: "M12 1l3.09 2.26L19 3.27l.01 3.91L22 10.18 19.82 13l.18 3.91-3.91 1.01L13.09 21 12 23l-3.09-2.26L5 21.73l-.01-3.91L2 14.82 4.18 12l-.18-3.91 3.91-1.01L10.91 4 12 1zm-1.5 12.5l5-5-1.41-1.41L10.5 10.67 8.41 8.59 7 10l3.5 3.5z" })
1863
+ children: /* @__PURE__ */ b("path", { d: "M12 1l3.09 2.26L19 3.27l.01 3.91L22 10.18 19.82 13l.18 3.91-3.91 1.01L13.09 21 12 23l-3.09-2.26L5 21.73l-.01-3.91L2 14.82 4.18 12l-.18-3.91 3.91-1.01L10.91 4 12 1zm-1.5 12.5l5-5-1.41-1.41L10.5 10.67 8.41 8.59 7 10l3.5 3.5z" })
1749
1864
  })
1750
1865
  });
1751
- }), Ft = p(function({ value: t, onChange: n, min: r, max: a, step: o = 1, disabled: s = !1, className: c, ...l }, u) {
1866
+ }), Wt = m(function({ value: t, onChange: n, min: r, max: a, step: o = 1, disabled: s = !1, className: c, ...l }, u) {
1752
1867
  let d = r !== void 0 && t <= r, f = a !== void 0 && t >= a;
1753
- return /* @__PURE__ */ b("div", {
1868
+ return /* @__PURE__ */ x("div", {
1754
1869
  ref: u,
1755
1870
  className: e("inline-flex items-center gap-1 select-none", c),
1756
1871
  "data-component": "visual-counter",
1757
1872
  ...l,
1758
1873
  children: [
1759
- /* @__PURE__ */ y("button", {
1874
+ /* @__PURE__ */ b("button", {
1760
1875
  type: "button",
1761
1876
  className: e("flex h-7 w-7 items-center justify-center rounded-md border border-border text-fg-muted transition-colors hover:bg-bg-tertiary disabled:opacity-40", i),
1762
1877
  disabled: s || d,
1763
1878
  onClick: () => n(Math.max(r ?? -Infinity, t - o)),
1764
1879
  children: "−"
1765
1880
  }),
1766
- /* @__PURE__ */ y("span", {
1881
+ /* @__PURE__ */ b("span", {
1767
1882
  className: "min-w-[2rem] text-center tabular-nums gds-text text-fg",
1768
1883
  children: t
1769
1884
  }),
1770
- /* @__PURE__ */ y("button", {
1885
+ /* @__PURE__ */ b("button", {
1771
1886
  type: "button",
1772
1887
  className: e("flex h-7 w-7 items-center justify-center rounded-md border border-border text-fg-muted transition-colors hover:bg-bg-tertiary disabled:opacity-40", i),
1773
1888
  disabled: s || f,
@@ -1776,13 +1891,30 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1776
1891
  })
1777
1892
  ]
1778
1893
  });
1779
- }), It = p(function({ children: t, className: n, duration: r = 300, scale: i = 1.1, ...a }, o) {
1780
- return /* @__PURE__ */ y("div", {
1894
+ }), $ = 10;
1895
+ function Gt({ className: t, onChange: n, value: r }) {
1896
+ let i = Math.round(r / 100 * $), a = h((e) => {
1897
+ n(Math.round((e + 1) / $ * 100));
1898
+ }, [n]);
1899
+ return /* @__PURE__ */ b("div", {
1900
+ className: e("inline-flex flex-col-reverse items-center gap-1 select-none", t),
1901
+ "data-component": "volume-slider",
1902
+ children: Array.from({ length: $ }, (t, n) => /* @__PURE__ */ b("button", {
1903
+ className: e("h-2 w-8 cursor-pointer rounded-sm transition-colors", n < i ? "bg-accent" : "bg-bg-tertiary"),
1904
+ onClick: () => a(n),
1905
+ type: "button"
1906
+ }, n))
1907
+ });
1908
+ }
1909
+ //#endregion
1910
+ //#region src/l3-atoms/zoom-on-hover.tsx
1911
+ var Kt = m(function({ children: t, className: n, duration: r = 300, scale: i = 1.1, ...a }, o) {
1912
+ return /* @__PURE__ */ b("div", {
1781
1913
  className: e("overflow-hidden", n),
1782
1914
  "data-component": "zoom-on-hover",
1783
1915
  ref: o,
1784
1916
  ...a,
1785
- children: /* @__PURE__ */ y("div", {
1917
+ children: /* @__PURE__ */ b("div", {
1786
1918
  className: "transition-transform ease-out",
1787
1919
  style: { transitionDuration: `${r}ms` },
1788
1920
  onMouseEnter: (e) => {
@@ -1796,6 +1928,6 @@ var ft = p(function({ value: t, max: n = 5, size: r = "default", color: i = "cur
1796
1928
  });
1797
1929
  });
1798
1930
  //#endregion
1799
- export { L as $, Ke as A, Ne as B, rt as C, Ze as D, $e as E, Be as F, Ee as G, Ae as H, ze as I, Ce as J, Te as K, Le as L, We as M, K as N, Xe as O, Ue as P, R as Q, Ie as R, it as S, et as T, ke as U, je as V, B as W, ye as X, be as Y, z as Z, pt as _, ne as _t, At as a, k as at, lt as b, $ as c, fe as ct, St as d, w as dt, I as et, xt as f, le as ft, gt as g, re as gt, ht as h, ae as ht, jt as i, A as it, Ge as j, Je as k, Et as l, ue as lt, _t as m, C as mt, Ft as n, M as nt, kt as o, O as ot, bt as p, ce as pt, we as q, Pt as r, j as rt, Dt as s, he as st, It as t, F as tt, Tt as u, T as ut, mt as v, S as vt, tt as w, ot as x, ft as y, Pe as z };
1931
+ export { Oe as $, it as A, We as B, gt as C, w as Ct, ct as D, ut as E, Ze as F, Le as G, Ve as H, W as I, Pe as J, Ie as K, Xe as L, tt as M, $e as N, st as O, Qe as P, ke as Q, qe as R, vt as S, ne as St, dt as T, Be as U, Ue as V, Re as W, je as X, R as Y, Ae as Z, wt as _, ue as _t, Bt as a, ve as at, Ct as b, ae as bt, Lt as c, M as ct, Q as d, k as dt, Te as et, Pt as f, _e as ft, Et as g, E as gt, kt as h, de as ht, Ut as i, ye as it, rt as j, ot as k, Ft as l, j as lt, At as m, fe as mt, Gt as n, L as nt, zt as o, I as ot, jt as p, me as pt, Fe as q, Wt as r, be as rt, Rt as s, N as st, Kt as t, we as tt, Z as u, A as ut, Tt as v, le as vt, pt as w, ee as wt, xt as x, re as xt, St as y, se as yt, Ke as z };
1800
1932
 
1801
- //# sourceMappingURL=l3-atoms-BxDg3rXt.js.map
1933
+ //# sourceMappingURL=l3-atoms-LtIFAn9Y.js.map