@goliapkg/gds 1.4.3 → 1.5.1

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
@@ -89,7 +89,36 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
89
89
  })]
90
90
  })
91
91
  });
92
- }), N = n("flex items-start gds-gap gds-radius-popover border gds-pad-x gds-pad-y gds-text-body", {
92
+ }), N = x(function({ className: t, entries: n }, r) {
93
+ return /* @__PURE__ */ O("div", {
94
+ ref: r,
95
+ className: e("flex flex-col gds-gap", t),
96
+ "data-component": "activity-log",
97
+ children: n.map((e) => /* @__PURE__ */ k("div", {
98
+ className: "flex items-start gds-gap-sm border-l-2 border-border pl-3 py-1",
99
+ children: [/* @__PURE__ */ k("div", {
100
+ className: "min-w-0 flex-1",
101
+ children: [
102
+ /* @__PURE__ */ O("span", {
103
+ className: "gds-text font-medium text-fg",
104
+ children: e.actor
105
+ }),
106
+ /* @__PURE__ */ O("span", {
107
+ className: "mx-1.5 inline-block rounded bg-bg-tertiary px-1.5 py-0.5 text-xs text-fg-muted",
108
+ children: e.action
109
+ }),
110
+ e.target !== void 0 && /* @__PURE__ */ O("span", {
111
+ className: "gds-text text-fg-secondary",
112
+ children: e.target
113
+ })
114
+ ]
115
+ }), /* @__PURE__ */ O("time", {
116
+ className: "shrink-0 text-xs text-fg-muted",
117
+ children: e.timestamp
118
+ })]
119
+ }, e.id))
120
+ });
121
+ }), P = n("flex items-start gds-gap gds-radius-popover border gds-pad-x gds-pad-y gds-text-body", {
93
122
  variants: { variant: {
94
123
  default: "border-border bg-bg-secondary text-fg",
95
124
  info: "border-accent/30 bg-accent/10 text-accent",
@@ -98,7 +127,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
98
127
  danger: "border-danger/30 bg-danger/10 text-danger"
99
128
  } },
100
129
  defaultVariants: { variant: "default" }
101
- }), P = {
130
+ }), F = {
102
131
  default: /* @__PURE__ */ k("svg", {
103
132
  width: "16",
104
133
  height: "16",
@@ -166,11 +195,11 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
166
195
  r: "6.5"
167
196
  }), /* @__PURE__ */ O("path", { d: "M5.5 5.5l5 5M10.5 5.5l-5 5" })]
168
197
  })
169
- }, F = x(function({ children: n, title: r, variant: i = "default", onClose: a, glass: o, className: s, ...c }, l) {
198
+ }, ee = x(function({ children: n, title: r, variant: i = "default", onClose: a, glass: o, className: s, ...c }, l) {
170
199
  let u = i ?? "default";
171
200
  return /* @__PURE__ */ k("div", {
172
201
  ref: l,
173
- className: e(N({ variant: i }), o === !0 && t(o), s),
202
+ className: e(P({ variant: i }), o === !0 && t(o), s),
174
203
  "data-component": "alert",
175
204
  "data-variant": u,
176
205
  role: "alert",
@@ -178,7 +207,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
178
207
  children: [
179
208
  /* @__PURE__ */ O("span", {
180
209
  className: "mt-px shrink-0",
181
- children: P[u]
210
+ children: F[u]
182
211
  }),
183
212
  /* @__PURE__ */ k("div", {
184
213
  className: "min-w-0 flex-1",
@@ -208,12 +237,12 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
208
237
  })
209
238
  ]
210
239
  });
211
- }), ee = {
240
+ }), te = {
212
241
  danger: "bg-danger/10 text-danger",
213
242
  info: "bg-accent/10 text-accent",
214
243
  success: "bg-success/10 text-success",
215
244
  warning: "bg-warning/10 text-warning"
216
- }, te = {
245
+ }, ne = {
217
246
  danger: /* @__PURE__ */ k("svg", {
218
247
  width: "16",
219
248
  height: "16",
@@ -267,17 +296,17 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
267
296
  strokeLinecap: "round",
268
297
  children: [/* @__PURE__ */ O("path", { d: "M7.13 2.5l-5.5 10h11l-5.5-10z" }), /* @__PURE__ */ O("path", { d: "M7.63 6.5v2.5M7.63 11h.01" })]
269
298
  })
270
- }, ne = x(function({ message: n, variant: r = "info", dismissible: i = !1, onDismiss: a, glass: o, className: s }, c) {
299
+ }, re = x(function({ message: n, variant: r = "info", dismissible: i = !1, onDismiss: a, glass: o, className: s }, c) {
271
300
  return /* @__PURE__ */ k("div", {
272
301
  ref: c,
273
- className: e("flex w-full items-center gds-gap gds-pad-x gds-pad-y gds-text-body", ee[r], o === !0 && t(o), s),
302
+ className: e("flex w-full items-center gds-gap gds-pad-x gds-pad-y gds-text-body", te[r], o === !0 && t(o), s),
274
303
  "data-component": "banner",
275
304
  "data-variant": r,
276
305
  role: "status",
277
306
  children: [
278
307
  /* @__PURE__ */ O("span", {
279
308
  className: "shrink-0",
280
- children: te[r]
309
+ children: ne[r]
281
310
  }),
282
311
  /* @__PURE__ */ O("span", {
283
312
  className: "flex-1",
@@ -301,7 +330,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
301
330
  })
302
331
  ]
303
332
  });
304
- }), re = x(function({ before: t, after: n, initialPosition: r = 50, className: i }, a) {
333
+ }), ie = x(function({ before: t, after: n, initialPosition: r = 50, className: i }, a) {
305
334
  let [o, s] = E(r), c = T(null), l = T(!1), u = S((e) => {
306
335
  let t = c.current;
307
336
  if (t === null) return;
@@ -351,7 +380,14 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
351
380
  })
352
381
  ]
353
382
  });
354
- }), ie = /* @__PURE__ */ O("svg", {
383
+ }), ae = x(function({ children: t, className: n }, r) {
384
+ return /* @__PURE__ */ O("div", {
385
+ ref: r,
386
+ className: e("fixed bottom-0 left-0 right-0 z-40 border-t border-border bg-bg flex items-center justify-around gds-pad-y", n),
387
+ "data-component": "bottom-bar",
388
+ children: t
389
+ });
390
+ }), oe = /* @__PURE__ */ O("svg", {
355
391
  width: "12",
356
392
  height: "12",
357
393
  viewBox: "0 0 12 12",
@@ -360,7 +396,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
360
396
  strokeWidth: "1.5",
361
397
  strokeLinecap: "round",
362
398
  children: /* @__PURE__ */ O("path", { d: "M4.5 3l3 3-3 3" })
363
- }), ae = x(function({ items: t, separator: n = ie, maxItems: r, className: i }, a) {
399
+ }), se = x(function({ items: t, separator: n = oe, maxItems: r, className: i }, a) {
364
400
  let o = t;
365
401
  return r !== void 0 && t.length > r && r >= 2 && (o = [
366
402
  t[0],
@@ -397,7 +433,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
397
433
  }, `${t.label}-${r}`))
398
434
  })
399
435
  });
400
- }), oe = /* @__PURE__ */ O("svg", {
436
+ }), ce = /* @__PURE__ */ O("svg", {
401
437
  width: "14",
402
438
  height: "14",
403
439
  viewBox: "0 0 14 14",
@@ -406,7 +442,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
406
442
  strokeWidth: "2",
407
443
  strokeLinecap: "round",
408
444
  children: /* @__PURE__ */ O("path", { d: "M3 3l8 8M11 3l-8 8" })
409
- }), se = x(function({ actions: t, className: n, count: r, onClear: i }, a) {
445
+ }), le = x(function({ actions: t, className: n, count: r, onClear: i }, a) {
410
446
  return r <= 0 ? null : /* @__PURE__ */ k("div", {
411
447
  ref: a,
412
448
  className: e("fixed bottom-4 left-1/2 z-40 flex -translate-x-1/2 items-center gds-gap gds-pad-x-lg gds-pad-y", "animate-popup gds-radius-popover border border-border bg-surface gds-shadow-xl", n),
@@ -425,16 +461,16 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
425
461
  className: e("shrink-0 p-0.5 text-fg-muted hover:text-fg", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
426
462
  onClick: i,
427
463
  type: "button",
428
- children: oe
464
+ children: ce
429
465
  })
430
466
  ]
431
467
  });
432
- }), ce = {
468
+ }), ue = {
433
469
  info: "border-l-accent bg-accent/5 text-accent",
434
470
  tip: "border-l-success bg-success/5 text-success",
435
471
  warning: "border-l-warning bg-warning/5 text-warning",
436
472
  danger: "border-l-danger bg-danger/5 text-danger"
437
- }, le = {
473
+ }, de = {
438
474
  info: /* @__PURE__ */ k("svg", {
439
475
  width: "20",
440
476
  height: "20",
@@ -484,11 +520,11 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
484
520
  r: "8"
485
521
  }), /* @__PURE__ */ O("path", { d: "M7 7l6 6M13 7l-6 6" })]
486
522
  })
487
- }, ue = x(function({ variant: n = "info", title: r, children: i, icon: a, glass: o, className: s }, c) {
488
- let l = a ?? le[n];
523
+ }, fe = x(function({ variant: n = "info", title: r, children: i, icon: a, glass: o, className: s }, c) {
524
+ let l = a ?? de[n];
489
525
  return /* @__PURE__ */ k("div", {
490
526
  ref: c,
491
- className: e("flex items-start gap-3 border-l-[3px] gds-radius-popover gds-pad-x-lg gds-pad-y-lg gds-text-body", ce[n], o === !0 && t(o), s),
527
+ className: e("flex items-start gap-3 border-l-[3px] gds-radius-popover gds-pad-x-lg gds-pad-y-lg gds-text-body", ue[n], o === !0 && t(o), s),
492
528
  "data-component": "callout",
493
529
  "data-variant": n,
494
530
  children: [/* @__PURE__ */ O("span", {
@@ -510,7 +546,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
510
546
  sm: "gds-pad-x gds-pad-y",
511
547
  default: "gds-pad-x-lg gds-pad-y-lg",
512
548
  lg: "gds-pad-x-lg gds-pad-y-lg"
513
- }, de = x(function({ children: n, glass: r, padding: i = "default", loading: a, className: o }, s) {
549
+ }, pe = x(function({ children: n, glass: r, padding: i = "default", loading: a, className: o }, s) {
514
550
  return a === !0 ? /* @__PURE__ */ O("div", {
515
551
  ref: s,
516
552
  className: e("gds-ctx flex flex-col gds-gap animate-pulse gds-radius-card border border-border bg-bg-tertiary", I[i], o),
@@ -524,7 +560,7 @@ var A = x(function({ className: t, description: n, icon: r, onClick: i, title: a
524
560
  children: n
525
561
  });
526
562
  });
527
- function fe({ title: t, description: n, action: r, className: i }) {
563
+ function me({ title: t, description: n, action: r, className: i }) {
528
564
  return /* @__PURE__ */ k("div", {
529
565
  className: e("flex items-start justify-between gds-gap", i),
530
566
  children: [/* @__PURE__ */ k("div", {
@@ -542,13 +578,13 @@ function fe({ title: t, description: n, action: r, className: i }) {
542
578
  })]
543
579
  });
544
580
  }
545
- function pe({ children: e, className: t }) {
581
+ function he({ children: e, className: t }) {
546
582
  return /* @__PURE__ */ O("div", {
547
583
  className: t,
548
584
  children: e
549
585
  });
550
586
  }
551
- function me({ children: t, className: n }) {
587
+ function ge({ children: t, className: n }) {
552
588
  return /* @__PURE__ */ O("div", {
553
589
  className: e("flex items-center gds-gap-sm border-t border-border pt-3", n),
554
590
  children: t
@@ -556,7 +592,7 @@ function me({ children: t, className: n }) {
556
592
  }
557
593
  //#endregion
558
594
  //#region src/l4-molecules/category-tag.tsx
559
- var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ...o }, s) {
595
+ var _e = x(function({ className: t, color: n, count: r, label: i, onClick: a, ...o }, s) {
560
596
  return /* @__PURE__ */ k("div", {
561
597
  className: e("inline-flex items-center gap-2 rounded-md border border-border bg-surface px-2.5 py-1", a !== void 0 && "cursor-pointer hover:bg-bg-tertiary", t),
562
598
  "data-component": "category-tag",
@@ -583,24 +619,24 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
583
619
  })
584
620
  ]
585
621
  });
586
- }), ge = {
622
+ }), ve = {
587
623
  valid: "bg-success/15 text-success border-success/20",
588
624
  expiring: "bg-warning/15 text-warning border-warning/20",
589
625
  expired: "bg-danger/15 text-danger border-danger/20"
590
- }, L = {
626
+ }, ye = {
591
627
  valid: "🔒",
592
628
  expiring: "⚠️",
593
629
  expired: "❌"
594
- }, _e = x(function({ className: t, domain: n, expiresAt: r, status: i, ...a }, o) {
630
+ }, be = x(function({ className: t, domain: n, expiresAt: r, status: i, ...a }, o) {
595
631
  return /* @__PURE__ */ k("div", {
596
- className: e("inline-flex items-center gap-2 rounded-md border px-2.5 py-1.5", ge[i], t),
632
+ className: e("inline-flex items-center gap-2 rounded-md border px-2.5 py-1.5", ve[i], t),
597
633
  "data-component": "cert-badge",
598
634
  ref: o,
599
635
  ...a,
600
636
  children: [
601
637
  /* @__PURE__ */ O("span", {
602
638
  className: "text-xs",
603
- children: L[i]
639
+ children: ye[i]
604
640
  }),
605
641
  /* @__PURE__ */ O("span", {
606
642
  className: "gds-text-label font-medium",
@@ -612,7 +648,7 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
612
648
  })
613
649
  ]
614
650
  });
615
- }), ve = x(function({ options: t, value: n, onChange: r, exclusive: a = !1, className: o, ...s }, c) {
651
+ }), xe = x(function({ options: t, value: n, onChange: r, exclusive: a = !1, className: o, ...s }, c) {
616
652
  function l(e) {
617
653
  if (a) {
618
654
  r(n.includes(e) ? [] : [e]);
@@ -635,7 +671,36 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
635
671
  })
636
672
  }, t.value))
637
673
  });
638
- }), ye = x(function({ code: n, language: r, showLineNumbers: a = !0, maxHeight: o, glass: s, className: c }, l) {
674
+ }), Se = x(function({ className: t, items: n, radius: r = 80, trigger: a }, o) {
675
+ let [s, c] = E(!1), l = S(() => c((e) => !e), []);
676
+ return _(s, S(() => c(!1), [])), /* @__PURE__ */ k("div", {
677
+ ref: o,
678
+ className: e("relative inline-block", t),
679
+ "data-component": "circular-menu",
680
+ children: [/* @__PURE__ */ O("div", {
681
+ role: "button",
682
+ tabIndex: 0,
683
+ className: e("relative z-10 cursor-pointer", i),
684
+ onClick: l,
685
+ onKeyDown: (e) => {
686
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), l());
687
+ },
688
+ children: a
689
+ }), s && /* @__PURE__ */ O("div", {
690
+ className: "absolute left-1/2 top-1/2",
691
+ children: n.map((t, i) => {
692
+ let a = 2 * Math.PI * i / n.length - Math.PI / 2, o = Math.cos(a) * r, s = Math.sin(a) * r;
693
+ return /* @__PURE__ */ O("button", {
694
+ type: "button",
695
+ title: t.label,
696
+ className: e("absolute flex items-center justify-center rounded-full bg-surface border border-border", "h-10 w-10 -translate-x-1/2 -translate-y-1/2 text-fg transition-all duration-200", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
697
+ style: { transform: `translate(${o}px, ${s}px)` },
698
+ children: t.icon
699
+ }, t.id);
700
+ })
701
+ })]
702
+ });
703
+ }), Ce = x(function({ code: n, language: r, showLineNumbers: a = !0, maxHeight: o, glass: s, className: c }, l) {
639
704
  let [u, d] = E(!1), f = S(() => {
640
705
  navigator.clipboard.writeText(n).then(() => {
641
706
  d(!0), setTimeout(() => d(!1), 1500);
@@ -708,7 +773,7 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
708
773
  })
709
774
  })]
710
775
  });
711
- }), be = x(function({ code: n, language: r, copyable: i = !0, showLineNumbers: a = !0, glass: o, className: s }, c) {
776
+ }), we = x(function({ code: n, language: r, copyable: i = !0, showLineNumbers: a = !0, glass: o, className: s }, c) {
712
777
  let [l, u] = E(!1), d = n.split("\n"), f = S(() => {
713
778
  navigator.clipboard.writeText(n).then(() => {
714
779
  u(!0), setTimeout(() => u(!1), 2e3);
@@ -775,7 +840,7 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
775
840
  })
776
841
  ]
777
842
  });
778
- }), xe = x(function({ trigger: t, children: n, defaultOpen: r = !1, open: i, onOpenChange: a, className: o }, s) {
843
+ }), Te = x(function({ trigger: t, children: n, defaultOpen: r = !1, open: i, onOpenChange: a, className: o }, s) {
779
844
  let [c, l] = E(r), u = i !== void 0, d = u ? i : c;
780
845
  function f() {
781
846
  let e = !d;
@@ -797,7 +862,22 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
797
862
  children: d ? n : null
798
863
  })]
799
864
  });
800
- }), Se = [
865
+ });
866
+ function Ee({ children: e, className: t }) {
867
+ return /* @__PURE__ */ O("div", {
868
+ className: t,
869
+ children: e
870
+ });
871
+ }
872
+ function De({ children: e, className: t }) {
873
+ return /* @__PURE__ */ O("div", {
874
+ className: t,
875
+ children: e
876
+ });
877
+ }
878
+ //#endregion
879
+ //#region src/l4-molecules/color-picker.tsx
880
+ var Oe = [
801
881
  "#ef4444",
802
882
  "#f97316",
803
883
  "#eab308",
@@ -808,12 +888,12 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
808
888
  "#ec4899",
809
889
  "#64748b",
810
890
  "#ffffff"
811
- ], Ce = /^#[0-9a-fA-F]{6}$/, we = x(function({ value: t, onChange: n, presets: r, showInput: a = !0, disabled: o = !1, className: s }, c) {
812
- let l = r ?? Se, [u, d] = E(t), f = S((e) => {
891
+ ], ke = /^#[0-9a-fA-F]{6}$/, Ae = x(function({ value: t, onChange: n, presets: r, showInput: a = !0, disabled: o = !1, className: s }, c) {
892
+ let l = r ?? Oe, [u, d] = E(t), f = S((e) => {
813
893
  o || (n(e), d(e));
814
894
  }, [o, n]), p = S((e) => {
815
895
  let t = e.startsWith("#") ? e : `#${e}`;
816
- d(t), Ce.test(t) && n(t);
896
+ d(t), ke.test(t) && n(t);
817
897
  }, [n]);
818
898
  return /* @__PURE__ */ k("div", {
819
899
  ref: c,
@@ -863,7 +943,7 @@ var he = x(function({ className: t, color: n, count: r, label: i, onClick: a, ..
863
943
  });
864
944
  //#endregion
865
945
  //#region src/l4-molecules/combobox-list.tsx
866
- function Te({ filtered: n, glass: r, highlightedIndex: i, onSearchChange: a, onSelect: o, query: s, searchPlaceholder: c, searchRef: l, setHighlightedIndex: u, value: d }) {
946
+ function je({ filtered: n, glass: r, highlightedIndex: i, onSearchChange: a, onSelect: o, query: s, searchPlaceholder: c, searchRef: l, setHighlightedIndex: u, value: d }) {
867
947
  let f = S((e) => {
868
948
  if (e.key === "ArrowDown" && (e.preventDefault(), u(i >= n.length - 1 ? 0 : i + 1)), e.key === "ArrowUp" && (e.preventDefault(), u(i <= 0 ? n.length - 1 : i - 1)), e.key === "Enter") {
869
949
  e.preventDefault();
@@ -909,7 +989,7 @@ function Te({ filtered: n, glass: r, highlightedIndex: i, onSearchChange: a, onS
909
989
  }
910
990
  //#endregion
911
991
  //#region src/l4-molecules/combobox.tsx
912
- function Ee({ open: t }) {
992
+ function Me({ open: t }) {
913
993
  return /* @__PURE__ */ O("svg", {
914
994
  className: e("h-3 w-3 text-fg-muted transition-transform", t && "rotate-180"),
915
995
  fill: "none",
@@ -921,7 +1001,7 @@ function Ee({ open: t }) {
921
1001
  children: /* @__PURE__ */ O("path", { d: "M3 4.5l3 3 3-3" })
922
1002
  });
923
1003
  }
924
- var De = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, onChange: s, options: c, placeholder: l = "Select...", searchPlaceholder: u = "Search...", value: d }, f) {
1004
+ var Ne = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, onChange: s, options: c, placeholder: l = "Select...", searchPlaceholder: u = "Search...", value: d }, f) {
925
1005
  let [p, m] = E(!1), [h, g] = E(""), [v, y] = E(0), x = T(null), C = T(null), D = f ?? x, A = w(() => {
926
1006
  if (h === "") return c;
927
1007
  let e = h.toLowerCase();
@@ -950,8 +1030,8 @@ var De = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, o
950
1030
  children: [/* @__PURE__ */ O("span", {
951
1031
  className: e(j === void 0 ? "text-fg-muted" : "text-fg"),
952
1032
  children: j === void 0 ? l : j.label
953
- }), /* @__PURE__ */ O(Ee, { open: p })]
954
- }), p && /* @__PURE__ */ O(Te, {
1033
+ }), /* @__PURE__ */ O(Me, { open: p })]
1034
+ }), p && /* @__PURE__ */ O(je, {
955
1035
  filtered: A,
956
1036
  glass: o,
957
1037
  highlightedIndex: v,
@@ -964,10 +1044,90 @@ var De = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, o
964
1044
  value: d
965
1045
  })]
966
1046
  });
1047
+ }), Pe = /* @__PURE__ */ O("svg", {
1048
+ width: "14",
1049
+ height: "14",
1050
+ viewBox: "0 0 14 14",
1051
+ fill: "none",
1052
+ stroke: "currentColor",
1053
+ strokeWidth: "2",
1054
+ strokeLinecap: "round",
1055
+ children: /* @__PURE__ */ O("path", { d: "M3 3l8 8M11 3l-8 8" })
1056
+ }), Fe = x(function({ actions: t, className: n, onAction: r, onClear: a, selectedCount: o }, s) {
1057
+ return o <= 0 ? null : /* @__PURE__ */ k("div", {
1058
+ ref: s,
1059
+ className: e("flex items-center gds-gap gds-pad-x gds-pad-y border border-border bg-surface gds-radius", n),
1060
+ "data-component": "command-bar",
1061
+ children: [
1062
+ /* @__PURE__ */ k("span", {
1063
+ className: "gds-text select-none whitespace-nowrap font-medium text-fg",
1064
+ children: [o, " selected"]
1065
+ }),
1066
+ /* @__PURE__ */ O("div", {
1067
+ className: "flex items-center gds-gap-sm",
1068
+ children: t.map((t) => /* @__PURE__ */ k("button", {
1069
+ type: "button",
1070
+ className: e("flex items-center gds-gap-sm gds-text px-2 py-1 rounded transition-colors", t.danger === !0 ? "text-danger hover:bg-danger/10" : "text-fg hover:bg-bg-tertiary", i),
1071
+ onClick: () => r(t.id),
1072
+ children: [t.icon !== void 0 && /* @__PURE__ */ O("span", {
1073
+ className: "shrink-0",
1074
+ children: t.icon
1075
+ }), t.label]
1076
+ }, t.id))
1077
+ }),
1078
+ /* @__PURE__ */ O("button", {
1079
+ "aria-label": "Clear selection",
1080
+ className: e("ml-auto shrink-0 p-1 text-fg-muted hover:text-fg", i),
1081
+ onClick: a,
1082
+ type: "button",
1083
+ children: Pe
1084
+ })
1085
+ ]
1086
+ });
1087
+ }), Ie = x(function({ actions: t, className: n }, r) {
1088
+ let [a, o] = E(!1), s = S(() => o((e) => !e), []), c = S(() => o(!1), []);
1089
+ return _(a, c), /* @__PURE__ */ k("div", {
1090
+ ref: r,
1091
+ className: e("fixed bottom-6 right-6 z-40 flex flex-col-reverse items-end gap-3", n),
1092
+ "data-component": "command-bar-float",
1093
+ children: [/* @__PURE__ */ O("button", {
1094
+ type: "button",
1095
+ "aria-label": a ? "Close menu" : "Open menu",
1096
+ className: e("flex h-14 w-14 items-center justify-center rounded-full bg-accent text-on-accent shadow-lg transition-transform duration-200", i),
1097
+ style: { transform: a ? "rotate(45deg)" : "rotate(0deg)" },
1098
+ onClick: s,
1099
+ children: /* @__PURE__ */ O("svg", {
1100
+ width: "24",
1101
+ height: "24",
1102
+ viewBox: "0 0 24 24",
1103
+ fill: "none",
1104
+ stroke: "currentColor",
1105
+ strokeWidth: "2",
1106
+ strokeLinecap: "round",
1107
+ children: /* @__PURE__ */ O("path", { d: "M12 5v14M5 12h14" })
1108
+ })
1109
+ }), a && /* @__PURE__ */ O("div", {
1110
+ className: "flex flex-col-reverse items-end gap-2",
1111
+ children: t.map((t) => /* @__PURE__ */ k("button", {
1112
+ type: "button",
1113
+ className: e("flex items-center gds-gap-sm rounded-full bg-surface border border-border px-4 py-2 text-fg shadow-md transition-colors hover:bg-bg-tertiary", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
1114
+ onClick: () => {
1115
+ t.onClick(), c();
1116
+ },
1117
+ children: [/* @__PURE__ */ O("span", {
1118
+ className: "shrink-0",
1119
+ children: t.icon
1120
+ }), /* @__PURE__ */ O("span", {
1121
+ className: "gds-text whitespace-nowrap",
1122
+ children: t.label
1123
+ })]
1124
+ }, t.id))
1125
+ })]
1126
+ });
967
1127
  });
968
1128
  //#endregion
969
1129
  //#region src/l4-molecules/command-menu.tsx
970
- function Oe({ items: n, onSelect: r, searchable: i = !0, placeholder: a = "Type a command...", glass: o, className: s }) {
1130
+ function Le({ items: n, onSelect: r, searchable: i = !0, placeholder: a = "Type a command...", glass: o, className: s }) {
971
1131
  let [c, l] = E(""), [u, d] = E(0), f = w(() => {
972
1132
  if (c === "") return n;
973
1133
  let e = c.toLowerCase();
@@ -1045,14 +1205,55 @@ function Oe({ items: n, onSelect: r, searchable: i = !0, placeholder: a = "Type
1045
1205
  });
1046
1206
  }
1047
1207
  //#endregion
1048
- //#region src/l4-molecules/dialog.tsx
1049
- var ke = {
1208
+ //#region src/l4-molecules/comparison-bar.tsx
1209
+ var Re = x(function({ className: t, height: n = 24, segments: r, showLabels: i }, a) {
1210
+ let o = w(() => r.reduce((e, t) => e + t.value, 0), [r]);
1211
+ if (o <= 0) return null;
1212
+ let s = 0;
1213
+ return /* @__PURE__ */ k("div", {
1214
+ ref: a,
1215
+ className: e("w-full", t),
1216
+ "data-component": "comparison-bar",
1217
+ children: [/* @__PURE__ */ O("svg", {
1218
+ width: "100%",
1219
+ height: n,
1220
+ className: "overflow-visible rounded",
1221
+ children: r.map((e) => {
1222
+ let t = e.value / o * 100, r = s;
1223
+ return s += t, /* @__PURE__ */ O("rect", {
1224
+ x: `${r}%`,
1225
+ y: 0,
1226
+ width: `${t}%`,
1227
+ height: n,
1228
+ fill: e.color,
1229
+ rx: 0
1230
+ }, e.label);
1231
+ })
1232
+ }), i === !0 && /* @__PURE__ */ O("div", {
1233
+ className: "mt-2 flex flex-wrap gds-gap-sm",
1234
+ children: r.map((e) => /* @__PURE__ */ k("div", {
1235
+ className: "flex items-center gds-gap-sm text-xs text-fg-muted",
1236
+ children: [
1237
+ /* @__PURE__ */ O("span", {
1238
+ className: "inline-block h-2.5 w-2.5 rounded-sm",
1239
+ style: { backgroundColor: e.color }
1240
+ }),
1241
+ /* @__PURE__ */ O("span", { children: e.label }),
1242
+ /* @__PURE__ */ k("span", {
1243
+ className: "font-medium text-fg",
1244
+ children: [Math.round(e.value / o * 100), "%"]
1245
+ })
1246
+ ]
1247
+ }, e.label))
1248
+ })]
1249
+ });
1250
+ }), ze = {
1050
1251
  sm: "max-w-sm",
1051
1252
  md: "max-w-lg",
1052
1253
  default: "max-w-lg",
1053
1254
  lg: "max-w-2xl",
1054
1255
  xl: "max-w-4xl"
1055
- }, R = x(function({ open: n, onClose: r, title: i, description: a, children: o, glass: s, width: c = "default", className: l }, d) {
1256
+ }, L = x(function({ open: n, onClose: r, title: i, description: a, children: o, glass: s, width: c = "default", className: l }, d) {
1056
1257
  let f = v(n);
1057
1258
  return y(n), _(n, r), n ? u(/* @__PURE__ */ O("div", {
1058
1259
  className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50",
@@ -1065,7 +1266,7 @@ var ke = {
1065
1266
  ref: (e) => {
1066
1267
  f.current = e, typeof d == "function" ? d(e) : d != null && (d.current = e);
1067
1268
  },
1068
- className: e("gds-ctx w-full animate-popup gds-radius-card border gds-shadow-xl", s ? e(t(s), "border-white/10 bg-bg/60") : "border-border bg-surface", ke[c], l),
1269
+ className: e("gds-ctx w-full animate-popup gds-radius-card border gds-shadow-xl", s ? e(t(s), "border-white/10 bg-bg/60") : "border-border bg-surface", ze[c], l),
1069
1270
  children: [(i !== void 0 || a !== void 0) && /* @__PURE__ */ k("div", {
1070
1271
  className: "flex items-start justify-between gds-gap border-b border-border gds-pad-x-lg gds-pad-y-lg",
1071
1272
  children: [/* @__PURE__ */ k("div", {
@@ -1100,7 +1301,7 @@ var ke = {
1100
1301
  })
1101
1302
  })) : null;
1102
1303
  });
1103
- function Ae({ children: t, className: n }) {
1304
+ function Be({ children: t, className: n }) {
1104
1305
  return /* @__PURE__ */ O("div", {
1105
1306
  className: e("flex items-center justify-end gds-gap-sm border-t border-border gds-pad-x-lg gds-pad-y", n),
1106
1307
  children: t
@@ -1108,8 +1309,8 @@ function Ae({ children: t, className: n }) {
1108
1309
  }
1109
1310
  //#endregion
1110
1311
  //#region src/l4-molecules/confirm-dialog.tsx
1111
- var je = x(function({ cancelLabel: e = "Cancel", className: t, confirmLabel: n = "Confirm", loading: i = !1, message: a, onClose: o, onConfirm: s, open: c, title: l = "Confirm", variant: u = "default" }, d) {
1112
- return /* @__PURE__ */ O(R, {
1312
+ var Ve = x(function({ cancelLabel: e = "Cancel", className: t, confirmLabel: n = "Confirm", loading: i = !1, message: a, onClose: o, onConfirm: s, open: c, title: l = "Confirm", variant: u = "default" }, d) {
1313
+ return /* @__PURE__ */ O(L, {
1113
1314
  className: t,
1114
1315
  onClose: o,
1115
1316
  open: c,
@@ -1144,7 +1345,7 @@ var je = x(function({ cancelLabel: e = "Cancel", className: t, confirmLabel: n =
1144
1345
  });
1145
1346
  //#endregion
1146
1347
  //#region src/l4-molecules/context-menu.tsx
1147
- function Me({ trigger: t, items: n, onSelect: r, className: i }) {
1348
+ function He({ trigger: t, items: n, onSelect: r, className: i }) {
1148
1349
  let [a, o] = E(!1), [s, c] = E({
1149
1350
  x: 0,
1150
1351
  y: 0
@@ -1195,7 +1396,7 @@ function Me({ trigger: t, items: n, onSelect: r, className: i }) {
1195
1396
  }
1196
1397
  //#endregion
1197
1398
  //#region src/l4-molecules/copy-field.tsx
1198
- var Ne = x(function({ value: t, label: n, masked: r = !1, className: i }, a) {
1399
+ var Ue = x(function({ value: t, label: n, masked: r = !1, className: i }, a) {
1199
1400
  let [o, s] = E(!1), [c, l] = E(!1), u = T(null);
1200
1401
  C(() => () => {
1201
1402
  u.current !== null && clearTimeout(u.current);
@@ -1248,7 +1449,7 @@ var Ne = x(function({ value: t, label: n, masked: r = !1, className: i }, a) {
1248
1449
  })]
1249
1450
  })]
1250
1451
  });
1251
- }), Pe = x(function({ children: t, value: n, feedback: r = "Copied!", className: a }, o) {
1452
+ }), We = x(function({ children: t, value: n, feedback: r = "Copied!", className: a }, o) {
1252
1453
  let [s, c] = E(!1), l = T(null), u = S(() => {
1253
1454
  navigator.clipboard.writeText(n).then(() => {
1254
1455
  c(!0), l.current !== null && clearTimeout(l.current), l.current = setTimeout(() => {
@@ -1271,7 +1472,48 @@ var Ne = x(function({ value: t, label: n, masked: r = !1, className: i }, a) {
1271
1472
  children: r
1272
1473
  })]
1273
1474
  });
1274
- }), Fe = x(function({ amount: t, change: n, className: r, currency: i = "¥", period: a, ...o }, s) {
1475
+ });
1476
+ //#endregion
1477
+ //#region src/l4-molecules/countdown-timer.tsx
1478
+ function R(e) {
1479
+ let t = Math.max(0, e.getTime() - Date.now()), n = t <= 0, r = Math.floor(t / 1e3);
1480
+ return {
1481
+ dd: String(Math.floor(r / 86400)).padStart(2, "0"),
1482
+ hh: String(Math.floor(r % 86400 / 3600)).padStart(2, "0"),
1483
+ mm: String(Math.floor(r % 3600 / 60)).padStart(2, "0"),
1484
+ ss: String(r % 60).padStart(2, "0"),
1485
+ done: n
1486
+ };
1487
+ }
1488
+ var Ge = x(function({ className: t, label: n, onComplete: r, target: i }, a) {
1489
+ let [o, s] = E(() => R(i));
1490
+ return C(() => {
1491
+ let e = setInterval(() => {
1492
+ let t = R(i);
1493
+ s(t), t.done && (clearInterval(e), r?.());
1494
+ }, 1e3);
1495
+ return () => clearInterval(e);
1496
+ }, [i, r]), /* @__PURE__ */ k("div", {
1497
+ ref: a,
1498
+ className: e("flex flex-col items-center gds-gap-sm", t),
1499
+ "data-component": "countdown-timer",
1500
+ children: [n !== void 0 && /* @__PURE__ */ O("span", {
1501
+ className: "gds-text text-fg-muted",
1502
+ children: n
1503
+ }), /* @__PURE__ */ k("div", {
1504
+ className: "flex items-center gap-1 font-mono text-2xl font-bold text-fg tabular-nums",
1505
+ children: [
1506
+ /* @__PURE__ */ O("span", { children: o.dd }),
1507
+ ":",
1508
+ /* @__PURE__ */ O("span", { children: o.hh }),
1509
+ ":",
1510
+ /* @__PURE__ */ O("span", { children: o.mm }),
1511
+ ":",
1512
+ /* @__PURE__ */ O("span", { children: o.ss })
1513
+ ]
1514
+ })]
1515
+ });
1516
+ }), Ke = x(function({ amount: t, change: n, className: r, currency: i = "¥", period: a, ...o }, s) {
1275
1517
  let c = t.toLocaleString();
1276
1518
  return /* @__PURE__ */ k("div", {
1277
1519
  className: e("flex items-baseline gds-gap", r),
@@ -1300,15 +1542,15 @@ var Ne = x(function({ value: t, label: n, masked: r = !1, className: i }, a) {
1300
1542
  });
1301
1543
  //#endregion
1302
1544
  //#region src/l4-molecules/currency-input.tsx
1303
- function Ie(e, t) {
1545
+ function qe(e, t) {
1304
1546
  return new Intl.NumberFormat(t).format(e);
1305
1547
  }
1306
- function Le(e, t, n) {
1548
+ function Je(e, t, n) {
1307
1549
  let r = e;
1308
1550
  return t !== void 0 && r < t && (r = t), n !== void 0 && r > n && (r = n), r;
1309
1551
  }
1310
- var Re = x(function({ value: t, onChange: n, currency: r = "¥", locale: a = "ja-JP", min: o, max: s, disabled: c = !1, error: l = !1, placeholder: u = "0", className: d }, f) {
1311
- let [p, m] = E(!1), [h, g] = E(""), _ = t === null ? "" : Ie(t, a), v = S(() => {
1552
+ var Ye = x(function({ value: t, onChange: n, currency: r = "¥", locale: a = "ja-JP", min: o, max: s, disabled: c = !1, error: l = !1, placeholder: u = "0", className: d }, f) {
1553
+ let [p, m] = E(!1), [h, g] = E(""), _ = t === null ? "" : qe(t, a), v = S(() => {
1312
1554
  m(!0), g(t === null ? "" : String(t));
1313
1555
  }, [t]), y = S(() => {
1314
1556
  m(!1);
@@ -1322,7 +1564,7 @@ var Re = x(function({ value: t, onChange: n, currency: r = "¥", locale: a = "ja
1322
1564
  n(null);
1323
1565
  return;
1324
1566
  }
1325
- n(Le(t, o, s));
1567
+ n(Je(t, o, s));
1326
1568
  }, [
1327
1569
  h,
1328
1570
  s,
@@ -1353,11 +1595,11 @@ var Re = x(function({ value: t, onChange: n, currency: r = "¥", locale: a = "ja
1353
1595
  "aria-label": "Currency amount"
1354
1596
  })]
1355
1597
  });
1356
- }), ze = {
1598
+ }), Xe = {
1357
1599
  down: "text-danger",
1358
1600
  neutral: "text-fg-muted",
1359
1601
  up: "text-success"
1360
- }, Be = x(function({ title: n, value: r, change: i, changeType: a = "neutral", icon: o, footer: s, glass: c, className: l }, u) {
1602
+ }, Ze = x(function({ title: n, value: r, change: i, changeType: a = "neutral", icon: o, footer: s, glass: c, className: l }, u) {
1361
1603
  return /* @__PURE__ */ k("div", {
1362
1604
  ref: u,
1363
1605
  className: e("gds-ctx gds-radius border border-border/40 bg-surface gds-pad select-none", c === !0 && t(c), l),
@@ -1378,7 +1620,7 @@ var Re = x(function({ value: t, onChange: n, currency: r = "¥", locale: a = "ja
1378
1620
  children: r
1379
1621
  }),
1380
1622
  i !== void 0 && /* @__PURE__ */ k("div", {
1381
- className: e("mt-1 flex items-center gap-1 text-[11px]", ze[a]),
1623
+ className: e("mt-1 flex items-center gap-1 text-[11px]", Xe[a]),
1382
1624
  children: [
1383
1625
  a === "up" && /* @__PURE__ */ k("svg", {
1384
1626
  width: "12",
@@ -1425,10 +1667,10 @@ function z(e) {
1425
1667
  function B(e) {
1426
1668
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
1427
1669
  }
1428
- var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", className: r }, i) {
1670
+ var Qe = 10080 * 60 * 1e3, $e = x(function({ date: t, format: n = "auto", className: r }, i) {
1429
1671
  let a = w(() => {
1430
1672
  let e = t instanceof Date ? t : new Date(t), r = Date.now() - e.getTime();
1431
- return n === "relative" ? z(r) : n === "absolute" ? B(e) : r < Ve ? z(r) : B(e);
1673
+ return n === "relative" ? z(r) : n === "absolute" ? B(e) : r < Qe ? z(r) : B(e);
1432
1674
  }, [t, n]), o = t instanceof Date ? t : new Date(t);
1433
1675
  return /* @__PURE__ */ O("span", {
1434
1676
  ref: i,
@@ -1437,7 +1679,7 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1437
1679
  title: o.toISOString(),
1438
1680
  children: a
1439
1681
  });
1440
- }), Ue = x(function({ className: t, disabled: n = !1, endDate: r, error: i = !1, onChange: a, placeholder: o, startDate: s }, c) {
1682
+ }), et = x(function({ className: t, disabled: n = !1, endDate: r, error: i = !1, onChange: a, placeholder: o, startDate: s }, c) {
1441
1683
  return /* @__PURE__ */ k("div", {
1442
1684
  className: e("flex items-center gds-radius-input border bg-bg transition-colors", i ? "border-danger" : "border-border hover:border-border-strong", n && "cursor-not-allowed opacity-50", t),
1443
1685
  "data-component": "date-range-input",
@@ -1473,7 +1715,7 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1473
1715
  })
1474
1716
  ]
1475
1717
  });
1476
- }), We = x(function({ children: t, title: n, className: r }, i) {
1718
+ }), tt = x(function({ children: t, title: n, className: r }, i) {
1477
1719
  return /* @__PURE__ */ k("div", {
1478
1720
  ref: i,
1479
1721
  className: e("space-y-0.5", r),
@@ -1486,7 +1728,7 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1486
1728
  children: t
1487
1729
  })]
1488
1730
  });
1489
- }), Ge = x(function({ className: n, glass: r = !0, items: i, onSelect: a, ...o }, s) {
1731
+ }), nt = x(function({ className: n, glass: r = !0, items: i, onSelect: a, ...o }, s) {
1490
1732
  let [c, l] = E(null);
1491
1733
  return /* @__PURE__ */ O("div", {
1492
1734
  className: e("inline-flex items-end gap-1 gds-radius-card p-2", "border border-white/[0.06] bg-bg-secondary/80", t(r === !0 ? !0 : void 0), r === !0 && "border-white/10", n),
@@ -1520,7 +1762,7 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1520
1762
  }, t.id);
1521
1763
  })
1522
1764
  });
1523
- }), Ke = x(function({ label: t, progress: n, complete: r = !1, onClick: a, disabled: o = !1, className: s }, c) {
1765
+ }), rt = x(function({ label: t, progress: n, complete: r = !1, onClick: a, disabled: o = !1, className: s }, c) {
1524
1766
  let l = n !== void 0 && !r, u = o || l;
1525
1767
  return /* @__PURE__ */ k("button", {
1526
1768
  ref: c,
@@ -1568,12 +1810,12 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1568
1810
  }), /* @__PURE__ */ O("span", { children: t })] })
1569
1811
  ]
1570
1812
  });
1571
- }), qe = {
1813
+ }), it = {
1572
1814
  sm: "h-[30vh]",
1573
1815
  default: "h-[50vh]",
1574
1816
  lg: "h-[75vh]",
1575
1817
  full: "h-screen"
1576
- }, Je = x(function({ open: n, onClose: r, title: i, children: a, height: o = "default", glass: s, className: c }, l) {
1818
+ }, at = x(function({ open: n, onClose: r, title: i, children: a, height: o = "default", glass: s, className: c }, l) {
1577
1819
  let u = v(n);
1578
1820
  return y(n), _(n, r), n ? /* @__PURE__ */ O("div", {
1579
1821
  className: "fixed inset-0 z-50 bg-black/50",
@@ -1584,7 +1826,7 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1584
1826
  "data-state": "open",
1585
1827
  children: /* @__PURE__ */ k("div", {
1586
1828
  ref: g(l, u),
1587
- className: e("gds-ctx fixed inset-x-0 bottom-0 flex flex-col rounded-t-xl border-t transition-transform duration-200", qe[o], s ? e(t(s), "border-white/10 bg-bg/60") : "border-border bg-surface", c),
1829
+ className: e("gds-ctx fixed inset-x-0 bottom-0 flex flex-col rounded-t-xl border-t transition-transform duration-200", it[o], s ? e(t(s), "border-white/10 bg-bg/60") : "border-border bg-surface", c),
1588
1830
  children: [
1589
1831
  /* @__PURE__ */ O("div", {
1590
1832
  className: "flex justify-center py-2",
@@ -1622,7 +1864,7 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1622
1864
  ]
1623
1865
  })
1624
1866
  }) : null;
1625
- }), Ye = x(function({ onDrop: n, accept: r, active: a, children: o, glass: s, className: c }, l) {
1867
+ }), ot = x(function({ onDrop: n, accept: r, active: a, children: o, glass: s, className: c }, l) {
1626
1868
  let [u, d] = E(!1), f = a === !0 || u, p = S((e) => {
1627
1869
  e.preventDefault(), d(!0);
1628
1870
  }, []), m = S((e) => {
@@ -1649,7 +1891,7 @@ var Ve = 10080 * 60 * 1e3, He = x(function({ date: t, format: n = "auto", classN
1649
1891
  });
1650
1892
  //#endregion
1651
1893
  //#region src/l4-molecules/dropdown.tsx
1652
- function Xe({ items: n, onSelect: r, trigger: a, align: o = "start", glass: s, className: c }) {
1894
+ function st({ items: n, onSelect: r, trigger: a, align: o = "start", glass: s, className: c }) {
1653
1895
  let [l, u] = E(!1), d = T(null);
1654
1896
  return b(d, l, () => u(!1)), _(l, () => u(!1)), /* @__PURE__ */ k("div", {
1655
1897
  ref: d,
@@ -1690,7 +1932,7 @@ function Xe({ items: n, onSelect: r, trigger: a, align: o = "start", glass: s, c
1690
1932
  }
1691
1933
  //#endregion
1692
1934
  //#region src/l4-molecules/editable.tsx
1693
- var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", disabled: a, className: o }, s) {
1935
+ var ct = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", disabled: a, className: o }, s) {
1694
1936
  let [c, l] = E(!1), [u, d] = E(t), f = T(null), p = S(() => {
1695
1937
  a !== !0 && (d(t), l(!0));
1696
1938
  }, [a, t]), m = S(() => {
@@ -1726,7 +1968,7 @@ var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", d
1726
1968
  tabIndex: a === !0 ? -1 : 0,
1727
1969
  children: _ ? r : t
1728
1970
  });
1729
- }), Qe = [
1971
+ }), lt = [
1730
1972
  {
1731
1973
  name: "Smileys",
1732
1974
  emojis: [
@@ -1795,7 +2037,7 @@ var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", d
1795
2037
  "✅"
1796
2038
  ]
1797
2039
  }
1798
- ], $e = x(function({ onSelect: t, categories: n = Qe, columns: r = 8, glass: i = !1, className: a, ...o }, s) {
2040
+ ], ut = x(function({ onSelect: t, categories: n = lt, columns: r = 8, glass: i = !1, className: a, ...o }, s) {
1799
2041
  let [c, l] = E(0), [u, d] = E(""), f = w(() => u === "" ? n[c]?.emojis ?? [] : n.flatMap((e) => e.emojis), [
1800
2042
  u,
1801
2043
  c,
@@ -1833,7 +2075,7 @@ var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", d
1833
2075
  })
1834
2076
  ]
1835
2077
  });
1836
- }), et = x(function({ message: t, icon: n, action: r, className: i }, a) {
2078
+ }), dt = x(function({ message: t, icon: n, action: r, className: i }, a) {
1837
2079
  return /* @__PURE__ */ k("div", {
1838
2080
  ref: a,
1839
2081
  className: e("flex flex-col items-center justify-center gap-2 py-6 select-none", i),
@@ -1853,7 +2095,7 @@ var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", d
1853
2095
  })
1854
2096
  ]
1855
2097
  });
1856
- }), tt = x(function({ query: t, suggestions: n, className: r }, i) {
2098
+ }), ft = x(function({ query: t, suggestions: n, className: r }, i) {
1857
2099
  return /* @__PURE__ */ k("div", {
1858
2100
  ref: i,
1859
2101
  className: e("flex flex-col items-center justify-center py-12 text-center select-none", r),
@@ -1893,29 +2135,53 @@ var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", d
1893
2135
  })
1894
2136
  ]
1895
2137
  });
1896
- }), nt = {
2138
+ }), pt = {
1897
2139
  production: "bg-success/15 text-success",
1898
2140
  staging: "bg-warning/15 text-warning",
1899
2141
  development: "bg-accent/15 text-accent",
1900
2142
  local: "bg-bg-tertiary text-fg-muted"
1901
- }, rt = {
2143
+ }, mt = {
1902
2144
  production: "bg-success",
1903
2145
  staging: "bg-warning",
1904
2146
  development: "bg-accent",
1905
2147
  local: "bg-fg-muted"
1906
- }, it = x(function({ className: t, env: n, showDot: r = !0, ...i }, a) {
2148
+ }, ht = x(function({ className: t, env: n, showDot: r = !0, ...i }, a) {
1907
2149
  return /* @__PURE__ */ k("span", {
1908
- className: e("inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium", nt[n], t),
2150
+ className: e("inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium", pt[n], t),
1909
2151
  "data-component": "environment-badge",
1910
2152
  ref: a,
1911
2153
  ...i,
1912
- children: [r && /* @__PURE__ */ O("span", { className: e("h-1.5 w-1.5 rounded-full", rt[n]) }), n]
2154
+ children: [r && /* @__PURE__ */ O("span", { className: e("h-1.5 w-1.5 rounded-full", mt[n]) }), n]
1913
2155
  });
1914
- }), at = {
2156
+ }), gt = x(function({ className: t, description: n, enabled: r, name: i }, a) {
2157
+ return /* @__PURE__ */ k("div", {
2158
+ ref: a,
2159
+ className: e("flex items-center gds-gap gds-pad-x gds-pad-y", t),
2160
+ "data-component": "feature-flag",
2161
+ "data-state": r ? "enabled" : "disabled",
2162
+ children: [
2163
+ /* @__PURE__ */ O("span", { className: e("inline-block h-2.5 w-2.5 shrink-0 rounded-full", r ? "bg-success" : "bg-fg-muted/40") }),
2164
+ /* @__PURE__ */ k("div", {
2165
+ className: "min-w-0 flex-1",
2166
+ children: [/* @__PURE__ */ O("span", {
2167
+ className: e("gds-text font-medium", r ? "text-fg" : "text-fg-muted"),
2168
+ children: i
2169
+ }), n !== void 0 && /* @__PURE__ */ O("p", {
2170
+ className: "mt-0.5 text-xs text-fg-muted",
2171
+ children: n
2172
+ })]
2173
+ }),
2174
+ /* @__PURE__ */ O("span", {
2175
+ className: e("text-xs font-medium", r ? "text-success" : "text-fg-muted"),
2176
+ children: r ? "ON" : "OFF"
2177
+ })
2178
+ ]
2179
+ });
2180
+ }), _t = {
1915
2181
  1: "grid-cols-1",
1916
2182
  2: "grid-cols-1 md:grid-cols-2",
1917
2183
  3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3"
1918
- }, ot = x(function({ children: t, columns: n = 1, title: r, description: i, className: a }, o) {
2184
+ }, vt = x(function({ children: t, columns: n = 1, title: r, description: i, className: a }, o) {
1919
2185
  return /* @__PURE__ */ k("fieldset", {
1920
2186
  ref: o,
1921
2187
  className: e("space-y-4", a),
@@ -1927,11 +2193,11 @@ var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", d
1927
2193
  className: "mt-0.5 gds-text-body text-fg-muted",
1928
2194
  children: i
1929
2195
  })] }), /* @__PURE__ */ O("div", {
1930
- className: e("grid gds-gap", at[n]),
2196
+ className: e("grid gds-gap", _t[n]),
1931
2197
  children: t
1932
2198
  })]
1933
2199
  });
1934
- }), st = x(function({ children: t, legend: n, disabled: r = !1, className: i }, a) {
2200
+ }), yt = x(function({ children: t, legend: n, disabled: r = !1, className: i }, a) {
1935
2201
  return /* @__PURE__ */ k("fieldset", {
1936
2202
  ref: a,
1937
2203
  className: e("gds-radius border border-border gds-pad", r && "cursor-not-allowed opacity-50", i),
@@ -1945,10 +2211,10 @@ var Ze = x(function({ value: t, onChange: n, placeholder: r = "Click to edit", d
1945
2211
  });
1946
2212
  //#endregion
1947
2213
  //#region src/l4-molecules/file-upload.tsx
1948
- function ct(e, t) {
2214
+ function bt(e, t) {
1949
2215
  return t === void 0 ? e : e.filter((e) => e.size <= t);
1950
2216
  }
1951
- function lt() {
2217
+ function xt() {
1952
2218
  return /* @__PURE__ */ k("svg", {
1953
2219
  className: "h-8 w-8 text-fg-muted/40",
1954
2220
  fill: "none",
@@ -1969,9 +2235,9 @@ function lt() {
1969
2235
  ]
1970
2236
  });
1971
2237
  }
1972
- var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, glass: o, maxSize: s, multiple: c = !1, onFiles: l }, u) {
2238
+ var St = x(function({ accept: n, children: r, className: i, disabled: a = !1, glass: o, maxSize: s, multiple: c = !1, onFiles: l }, u) {
1973
2239
  let [d, f] = E(!1), [p, m] = E([]), h = T(null), g = S((e) => {
1974
- let t = ct(Array.from(e), s);
2240
+ let t = bt(Array.from(e), s);
1975
2241
  m(t), l(t);
1976
2242
  }, [s, l]), _ = S(() => {
1977
2243
  a || h.current?.click();
@@ -2001,7 +2267,7 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2001
2267
  ref: h,
2002
2268
  type: "file"
2003
2269
  }), r === void 0 ? /* @__PURE__ */ k(D, { children: [
2004
- /* @__PURE__ */ O(lt, {}),
2270
+ /* @__PURE__ */ O(xt, {}),
2005
2271
  /* @__PURE__ */ O("div", {
2006
2272
  className: "text-sm text-fg-muted",
2007
2273
  children: "Drop files here or click to browse"
@@ -2017,7 +2283,7 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2017
2283
  })
2018
2284
  ] }) : r]
2019
2285
  });
2020
- }), dt = x(function({ className: t, filters: n, onChange: r, onClear: a, ...o }, s) {
2286
+ }), Ct = x(function({ className: t, filters: n, onChange: r, onClear: a, ...o }, s) {
2021
2287
  let c = n.some((e) => e.active);
2022
2288
  return /* @__PURE__ */ k("div", {
2023
2289
  className: e("flex flex-wrap items-center gds-gap", t),
@@ -2039,7 +2305,40 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2039
2305
  children: "Clear all"
2040
2306
  })]
2041
2307
  });
2042
- }), ft = x(function({ className: t, disabled: n, loading: i, onCancel: a, onReset: o, onSave: s, saveLabel: c = "Save", ...l }, u) {
2308
+ }), wt = x(function({ back: t, className: n, front: r, trigger: i = "click" }, a) {
2309
+ let [o, s] = E(!1), c = i === "hover" ? {
2310
+ onMouseEnter: () => s(!0),
2311
+ onMouseLeave: () => s(!1)
2312
+ } : {}, l = i === "click" ? { onClick: () => s((e) => !e) } : {};
2313
+ return /* @__PURE__ */ O("div", {
2314
+ ref: a,
2315
+ className: e("relative cursor-pointer", n),
2316
+ style: { perspective: "1000px" },
2317
+ "data-component": "flip-card",
2318
+ "data-state": o ? "flipped" : "front",
2319
+ ...c,
2320
+ ...l,
2321
+ children: /* @__PURE__ */ k("div", {
2322
+ className: "relative w-full transition-transform duration-500",
2323
+ style: {
2324
+ transformStyle: "preserve-3d",
2325
+ transform: o ? "rotateY(180deg)" : "rotateY(0deg)"
2326
+ },
2327
+ children: [/* @__PURE__ */ O("div", {
2328
+ className: "relative",
2329
+ style: { backfaceVisibility: "hidden" },
2330
+ children: r
2331
+ }), /* @__PURE__ */ O("div", {
2332
+ className: "absolute inset-0",
2333
+ style: {
2334
+ backfaceVisibility: "hidden",
2335
+ transform: "rotateY(180deg)"
2336
+ },
2337
+ children: t
2338
+ })]
2339
+ })
2340
+ });
2341
+ }), Tt = x(function({ className: t, disabled: n, loading: i, onCancel: a, onReset: o, onSave: s, saveLabel: c = "Save", ...l }, u) {
2043
2342
  return /* @__PURE__ */ k("div", {
2044
2343
  className: e("flex items-center justify-end gds-gap", t),
2045
2344
  "data-component": "form-actions",
@@ -2069,7 +2368,7 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2069
2368
  })
2070
2369
  ]
2071
2370
  });
2072
- }), pt = x(function({ children: t, className: n, error: r, helperText: i, label: a, required: o, ...c }, l) {
2371
+ }), Et = x(function({ children: t, className: n, error: r, helperText: i, label: a, required: o, ...c }, l) {
2073
2372
  let u = r !== void 0 && r !== "";
2074
2373
  return /* @__PURE__ */ k("div", {
2075
2374
  className: e("flex flex-col gds-gap-sm", n),
@@ -2109,7 +2408,7 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2109
2408
  variant: "default",
2110
2409
  size: "default"
2111
2410
  }
2112
- }), mt = x(function({ children: t, className: n, size: r, variant: i, ...a }, o) {
2411
+ }), Dt = x(function({ children: t, className: n, size: r, variant: i, ...a }, o) {
2113
2412
  return /* @__PURE__ */ O("button", {
2114
2413
  ref: o,
2115
2414
  className: e(V({
@@ -2127,19 +2426,32 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2127
2426
  lg: "gds-glass-lg border-border/15"
2128
2427
  } },
2129
2428
  defaultVariants: { blur: "default" }
2130
- }), ht = x(function({ blur: t, children: n, className: r }, i) {
2429
+ }), Ot = x(function({ blur: t, children: n, className: r }, i) {
2131
2430
  return /* @__PURE__ */ O("div", {
2132
2431
  ref: i,
2133
2432
  className: e(H({ blur: t }), r),
2134
2433
  "data-component": "glass-card",
2135
2434
  children: n
2136
2435
  });
2137
- }), gt = {
2436
+ }), kt = {
2437
+ sm: "gds-glitch-sm",
2438
+ default: "gds-glitch",
2439
+ lg: "gds-glitch-lg"
2440
+ }, At = x(function({ active: t = !0, className: n, intensity: r = "default", text: i }, a) {
2441
+ return /* @__PURE__ */ O("span", {
2442
+ ref: a,
2443
+ className: e("relative inline-block font-bold text-fg select-none", t && kt[r], n),
2444
+ "data-component": "glitch-text",
2445
+ "data-text": i,
2446
+ "aria-label": i,
2447
+ children: i
2448
+ });
2449
+ }), jt = {
2138
2450
  bottom: "top-full left-1/2 -translate-x-1/2 mt-2",
2139
2451
  left: "right-full top-1/2 -translate-y-1/2 mr-2",
2140
2452
  right: "left-full top-1/2 -translate-y-1/2 ml-2",
2141
2453
  top: "bottom-full left-1/2 -translate-x-1/2 mb-2"
2142
- }, _t = x(function({ trigger: t, children: n, delay: r = 300, placement: i = "bottom", className: a, ...o }, s) {
2454
+ }, Mt = x(function({ trigger: t, children: n, delay: r = 300, placement: i = "bottom", className: a, ...o }, s) {
2143
2455
  let [c, l] = E(!1), u = T(void 0), d = T(void 0), f = S(() => {
2144
2456
  clearTimeout(d.current), u.current = setTimeout(() => l(!0), r);
2145
2457
  }, [r]), p = S(() => {
@@ -2154,13 +2466,13 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2154
2466
  onMouseLeave: p,
2155
2467
  ...o,
2156
2468
  children: [t, c && /* @__PURE__ */ O("div", {
2157
- className: e("absolute z-50 animate-popup gds-radius-popover border border-border bg-surface gds-pad-x gds-pad-y gds-shadow-lg", gt[i]),
2469
+ className: e("absolute z-50 animate-popup gds-radius-popover border border-border bg-surface gds-pad-x gds-pad-y gds-shadow-lg", jt[i]),
2158
2470
  onMouseEnter: f,
2159
2471
  onMouseLeave: p,
2160
2472
  children: n
2161
2473
  })]
2162
2474
  });
2163
- }), vt = x(function({ label: t, value: n, icon: r, className: i }, a) {
2475
+ }), Nt = x(function({ label: t, value: n, icon: r, className: i }, a) {
2164
2476
  return /* @__PURE__ */ k("div", {
2165
2477
  ref: a,
2166
2478
  className: e("flex items-center gap-2 gds-text-body select-none", i),
@@ -2180,7 +2492,7 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2180
2492
  })
2181
2493
  ]
2182
2494
  });
2183
- }), yt = x(function({ prefix: t, suffix: n, error: r, disabled: i, className: a, children: o, ...s }, c) {
2495
+ }), Pt = x(function({ prefix: t, suffix: n, error: r, disabled: i, className: a, children: o, ...s }, c) {
2184
2496
  return /* @__PURE__ */ k("div", {
2185
2497
  ref: c,
2186
2498
  "data-component": "input-group",
@@ -2198,7 +2510,7 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2198
2510
  })
2199
2511
  ]
2200
2512
  });
2201
- }), bt = x(function({ buttonLabel: t, className: n, disabled: r = !1, onChange: i, onSubmit: a, placeholder: o, value: s, ...c }, l) {
2513
+ }), Ft = x(function({ buttonLabel: t, className: n, disabled: r = !1, onChange: i, onSubmit: a, placeholder: o, value: s, ...c }, l) {
2202
2514
  return /* @__PURE__ */ k("div", {
2203
2515
  className: e("inline-flex items-center overflow-hidden rounded-md border border-border", n),
2204
2516
  "data-component": "input-with-button",
@@ -2222,7 +2534,7 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2222
2534
  children: t
2223
2535
  })]
2224
2536
  });
2225
- }), xt = x(function({ items: t, columns: n = 1, className: r }, i) {
2537
+ }), It = x(function({ items: t, columns: n = 1, className: r }, i) {
2226
2538
  return /* @__PURE__ */ O("div", {
2227
2539
  ref: i,
2228
2540
  className: e("grid gap-x-8 gap-y-2", n === 2 ? "grid-cols-2" : "grid-cols-1", r),
@@ -2238,20 +2550,20 @@ var ut = x(function({ accept: n, children: r, className: i, disabled: a = !1, gl
2238
2550
  })]
2239
2551
  }, e.key))
2240
2552
  });
2241
- }), St = x(function({ items: t, columns: n = 1, striped: r, className: i }, a) {
2553
+ }), Lt = x(function({ items: t, columns: n = 1, striped: r, className: i }, a) {
2242
2554
  let o = n === 2;
2243
2555
  return /* @__PURE__ */ O("div", {
2244
2556
  ref: a,
2245
2557
  className: e("gds-text-body", o && "grid grid-cols-2 gap-x-6", i),
2246
2558
  "data-component": "kv-table",
2247
2559
  "data-variant": o ? "2col" : "1col",
2248
- children: t.map((e, t) => /* @__PURE__ */ O(Ct, {
2560
+ children: t.map((e, t) => /* @__PURE__ */ O(Rt, {
2249
2561
  item: e,
2250
2562
  striped: r === !0 && t % 2 == 1
2251
2563
  }, e.key))
2252
2564
  });
2253
2565
  });
2254
- function Ct({ item: t, striped: n }) {
2566
+ function Rt({ item: t, striped: n }) {
2255
2567
  let [r, i] = E(!1);
2256
2568
  return /* @__PURE__ */ k("div", {
2257
2569
  className: e("group flex items-baseline justify-between gap-4 gds-pad-x gds-pad-y-sm", n && "bg-bg-tertiary/40"),
@@ -2274,7 +2586,7 @@ function Ct({ item: t, striped: n }) {
2274
2586
  }
2275
2587
  //#endregion
2276
2588
  //#region src/l4-molecules/link-preview.tsx
2277
- var wt = x(function({ title: n, url: r, description: i, domain: a, image: o, glass: s, className: c }, l) {
2589
+ var zt = x(function({ title: n, url: r, description: i, domain: a, image: o, glass: s, className: c }, l) {
2278
2590
  return /* @__PURE__ */ k("a", {
2279
2591
  ref: l,
2280
2592
  className: e("flex gds-gap gds-radius border-l-4 border-accent bg-bg-secondary gds-pad transition-colors select-none hover:bg-bg-tertiary", s === !0 && t(s), c),
@@ -2304,7 +2616,32 @@ var wt = x(function({ title: n, url: r, description: i, domain: a, image: o, gla
2304
2616
  src: o
2305
2617
  })]
2306
2618
  });
2307
- }), Tt = x(function({ visible: n, message: r, glass: i = !0, className: a }, o) {
2619
+ }), Bt = x(function({ className: t, label: n, pulse: r, unit: i, value: a }, o) {
2620
+ return /* @__PURE__ */ k("div", {
2621
+ ref: o,
2622
+ className: e("flex flex-col gds-gap-sm gds-pad gds-radius border border-border bg-surface", t),
2623
+ "data-component": "live-metric",
2624
+ children: [/* @__PURE__ */ k("div", {
2625
+ className: "flex items-center gds-gap-sm",
2626
+ children: [r === !0 && /* @__PURE__ */ k("span", {
2627
+ className: "relative flex h-2.5 w-2.5 shrink-0",
2628
+ children: [/* @__PURE__ */ O("span", { className: "absolute inline-flex h-full w-full animate-ping rounded-full bg-success opacity-75" }), /* @__PURE__ */ O("span", { className: "relative inline-flex h-2.5 w-2.5 rounded-full bg-success" })]
2629
+ }), /* @__PURE__ */ O("span", {
2630
+ className: "text-xs text-fg-muted",
2631
+ children: n
2632
+ })]
2633
+ }), /* @__PURE__ */ k("div", {
2634
+ className: "flex items-baseline gap-1",
2635
+ children: [/* @__PURE__ */ O("span", {
2636
+ className: "text-2xl font-bold tabular-nums text-fg",
2637
+ children: a
2638
+ }), i !== void 0 && /* @__PURE__ */ O("span", {
2639
+ className: "text-sm text-fg-muted",
2640
+ children: i
2641
+ })]
2642
+ })]
2643
+ });
2644
+ }), Vt = x(function({ visible: n, message: r, glass: i = !0, className: a }, o) {
2308
2645
  return n ? /* @__PURE__ */ k("div", {
2309
2646
  ref: o,
2310
2647
  className: e("absolute inset-0 z-10 flex flex-col items-center justify-center", i === !0 ? t(!0) : "bg-bg/80", a),
@@ -2314,7 +2651,72 @@ var wt = x(function({ title: n, url: r, description: i, domain: a, image: o, gla
2314
2651
  children: r
2315
2652
  })]
2316
2653
  }) : null;
2317
- }), Et = x(function({ align: t = "top", children: n, className: r, media: i, reverse: a = !1 }, o) {
2654
+ }), Ht = x(function({ active: t = !0, className: n, color: r = "#00ff41", density: i = 20, speed: a = 50 }, o) {
2655
+ let s = T(null), c = T(0);
2656
+ return C(() => {
2657
+ let e = s.current;
2658
+ if (e === null || !t) return;
2659
+ let n = e.getContext("2d");
2660
+ if (n === null) return;
2661
+ let o = () => {
2662
+ e.width = e.offsetWidth, e.height = e.offsetHeight;
2663
+ };
2664
+ o(), window.addEventListener("resize", o);
2665
+ let l = Math.floor(e.width / i), u = Array(l).fill(1), d = 0, f = (t) => {
2666
+ if (t - d < a) {
2667
+ c.current = requestAnimationFrame(f);
2668
+ return;
2669
+ }
2670
+ d = t, n.fillStyle = "rgba(0, 0, 0, 0.05)", n.fillRect(0, 0, e.width, e.height), n.fillStyle = r, n.font = "14px monospace";
2671
+ for (let t = 0; t < u.length; t++) {
2672
+ let r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@#$%^&*"[Math.floor(Math.random() * 69)];
2673
+ n.fillText(r, t * i, u[t] * 14), u[t] * 14 > e.height && Math.random() > .975 && (u[t] = 0), u[t]++;
2674
+ }
2675
+ c.current = requestAnimationFrame(f);
2676
+ };
2677
+ return c.current = requestAnimationFrame(f), () => {
2678
+ cancelAnimationFrame(c.current), window.removeEventListener("resize", o);
2679
+ };
2680
+ }, [
2681
+ t,
2682
+ r,
2683
+ i,
2684
+ a
2685
+ ]), /* @__PURE__ */ O("canvas", {
2686
+ ref: (e) => {
2687
+ s.current = e, typeof o == "function" ? o(e) : o != null && (o.current = e);
2688
+ },
2689
+ className: e("block h-full w-full bg-black", n),
2690
+ "data-component": "matrix-rain"
2691
+ });
2692
+ }), Ut = x(function({ alt: t, aspectRatio: n, className: r, rounded: i, src: a, type: o }, s) {
2693
+ return /* @__PURE__ */ k("div", {
2694
+ ref: s,
2695
+ className: e("relative w-full", i === !0 ? "rounded-lg overflow-hidden" : "", r),
2696
+ style: n === void 0 ? void 0 : { aspectRatio: String(n) },
2697
+ "data-component": "media-container",
2698
+ "data-variant": o,
2699
+ children: [
2700
+ o === "image" && /* @__PURE__ */ O("img", {
2701
+ src: a,
2702
+ alt: t ?? "",
2703
+ className: "h-full w-full object-cover"
2704
+ }),
2705
+ o === "video" && /* @__PURE__ */ O("video", {
2706
+ src: a,
2707
+ controls: !0,
2708
+ className: "h-full w-full object-cover",
2709
+ "aria-label": t
2710
+ }),
2711
+ o === "audio" && /* @__PURE__ */ O("audio", {
2712
+ src: a,
2713
+ controls: !0,
2714
+ className: "w-full",
2715
+ "aria-label": t
2716
+ })
2717
+ ]
2718
+ });
2719
+ }), Wt = x(function({ align: t = "top", children: n, className: r, media: i, reverse: a = !1 }, o) {
2318
2720
  return /* @__PURE__ */ k("div", {
2319
2721
  ref: o,
2320
2722
  className: e("flex gds-gap", t === "center" && "items-center", t === "top" && "items-start", a === !0 && "flex-row-reverse", r),
@@ -2330,7 +2732,7 @@ var wt = x(function({ title: n, url: r, description: i, domain: a, image: o, gla
2330
2732
  });
2331
2733
  //#endregion
2332
2734
  //#region src/l4-molecules/mention-list.tsx
2333
- function Dt({ filtered: t, highlightedIndex: n, onSelect: r, trigger: i }) {
2735
+ function Gt({ filtered: t, highlightedIndex: n, onSelect: r, trigger: i }) {
2334
2736
  return /* @__PURE__ */ O("div", {
2335
2737
  className: "absolute left-0 right-0 top-full z-50 mt-1 gds-radius-popover border border-border bg-surface shadow-lg",
2336
2738
  role: "listbox",
@@ -2352,7 +2754,7 @@ function Dt({ filtered: t, highlightedIndex: n, onSelect: r, trigger: i }) {
2352
2754
  }
2353
2755
  //#endregion
2354
2756
  //#region src/l4-molecules/mention-input.tsx
2355
- var Ot = x(function({ value: t, onChange: n, suggestions: r, trigger: a = "@", placeholder: o, disabled: s, className: c }, l) {
2757
+ var Kt = x(function({ value: t, onChange: n, suggestions: r, trigger: a = "@", placeholder: o, disabled: s, className: c }, l) {
2356
2758
  let [u, d] = E(!1), [f, p] = E(""), [m, h] = E(0), g = T(null), _ = r.filter((e) => e.label.toLowerCase().includes(f.toLowerCase())), v = S((e) => {
2357
2759
  let t = e.lastIndexOf(a);
2358
2760
  return t < 0 || t > 0 && e[t - 1] !== " " || e.slice(t + a.length).includes(" ") ? -1 : t;
@@ -2400,19 +2802,19 @@ var Ot = x(function({ value: t, onChange: n, suggestions: r, trigger: a = "@", p
2400
2802
  placeholder: o,
2401
2803
  disabled: s,
2402
2804
  className: e("w-full gds-radius-button border border-border bg-bg-secondary px-3 py-2 text-sm text-fg", "placeholder:text-fg-muted/50", s === !0 && "pointer-events-none opacity-50", i, c)
2403
- }), u && _.length > 0 && /* @__PURE__ */ O(Dt, {
2805
+ }), u && _.length > 0 && /* @__PURE__ */ O(Gt, {
2404
2806
  filtered: _,
2405
2807
  highlightedIndex: m,
2406
2808
  onSelect: b,
2407
2809
  trigger: a
2408
2810
  })]
2409
2811
  });
2410
- }), kt = {
2812
+ }), qt = {
2411
2813
  default: "text-fg",
2412
2814
  success: "text-success",
2413
2815
  warning: "text-warning",
2414
2816
  danger: "text-danger"
2415
- }, At = x(function({ metrics: t, className: n }, r) {
2817
+ }, Jt = x(function({ metrics: t, className: n }, r) {
2416
2818
  return /* @__PURE__ */ O("div", {
2417
2819
  ref: r,
2418
2820
  className: e("flex items-center gds-gap gds-text-body select-none", n),
@@ -2423,7 +2825,7 @@ var Ot = x(function({ value: t, onChange: n, suggestions: r, trigger: a = "@", p
2423
2825
  className: "text-fg-muted",
2424
2826
  children: t.label
2425
2827
  }), /* @__PURE__ */ k("span", {
2426
- className: e("font-semibold", kt[t.variant ?? "default"]),
2828
+ className: e("font-semibold", qt[t.variant ?? "default"]),
2427
2829
  children: [t.value, t.unit !== void 0 && /* @__PURE__ */ O("span", {
2428
2830
  className: "ml-0.5 font-normal text-fg-muted",
2429
2831
  children: t.unit
@@ -2431,19 +2833,19 @@ var Ot = x(function({ value: t, onChange: n, suggestions: r, trigger: a = "@", p
2431
2833
  })]
2432
2834
  }, t.label))
2433
2835
  });
2434
- }), jt = {
2836
+ }), Yt = {
2435
2837
  default: "text-fg",
2436
2838
  success: "text-success",
2437
2839
  warning: "text-warning",
2438
2840
  danger: "text-danger"
2439
- }, Mt = x(function({ className: t, label: n, unit: r, value: i, variant: a = "default", ...o }, s) {
2841
+ }, Xt = x(function({ className: t, label: n, unit: r, value: i, variant: a = "default", ...o }, s) {
2440
2842
  return /* @__PURE__ */ k("div", {
2441
2843
  className: e("flex flex-col items-center gds-pad gds-radius bg-surface", t),
2442
2844
  "data-component": "metric-tile",
2443
2845
  ref: s,
2444
2846
  ...o,
2445
2847
  children: [/* @__PURE__ */ k("span", {
2446
- className: e("text-lg font-bold tabular-nums", jt[a]),
2848
+ className: e("text-lg font-bold tabular-nums", Yt[a]),
2447
2849
  children: [i, r !== void 0 && /* @__PURE__ */ O("span", {
2448
2850
  className: "ml-0.5 text-xs font-normal text-fg-muted",
2449
2851
  children: r
@@ -2453,10 +2855,31 @@ var Ot = x(function({ value: t, onChange: n, suggestions: r, trigger: a = "@", p
2453
2855
  children: n
2454
2856
  })]
2455
2857
  });
2858
+ }), Zt = {
2859
+ circle: "M50 10 A40 40 0 1 1 49.99 10 Z",
2860
+ square: "M15 15 H85 V85 H15 Z",
2861
+ star: "M50 5 L61 35 L95 35 L68 57 L79 90 L50 70 L21 90 L32 57 L5 35 L39 35 Z",
2862
+ blob: "M50 10 C75 5 95 25 90 50 C95 75 75 95 50 90 C25 95 5 75 10 50 C5 25 25 5 50 10 Z"
2863
+ }, Qt = x(function({ className: t, color: n = "currentColor", size: r = 100, variant: i }, a) {
2864
+ let o = w(() => Zt[i], [i]);
2865
+ return /* @__PURE__ */ O("svg", {
2866
+ ref: a,
2867
+ width: r,
2868
+ height: r,
2869
+ viewBox: "0 0 100 100",
2870
+ className: e("text-fg", t),
2871
+ "data-component": "morphing-shape",
2872
+ "data-variant": i,
2873
+ children: /* @__PURE__ */ O("path", {
2874
+ d: o,
2875
+ fill: n,
2876
+ style: { transition: "d 0.4s ease" }
2877
+ })
2878
+ });
2456
2879
  });
2457
2880
  //#endregion
2458
2881
  //#region src/l4-molecules/multi-select-list.tsx
2459
- function Nt() {
2882
+ function $t() {
2460
2883
  return /* @__PURE__ */ O("svg", {
2461
2884
  className: "h-3.5 w-3.5 text-accent",
2462
2885
  fill: "none",
@@ -2468,7 +2891,7 @@ function Nt() {
2468
2891
  children: /* @__PURE__ */ O("path", { d: "M3.5 8l3 3 6-6" })
2469
2892
  });
2470
2893
  }
2471
- function Pt({ filtered: n, glass: r, onSearchChange: i, onToggle: a, searchQuery: o, searchRef: s, value: c }) {
2894
+ function en({ filtered: n, glass: r, onSearchChange: i, onToggle: a, searchQuery: o, searchRef: s, value: c }) {
2472
2895
  return /* @__PURE__ */ k("div", {
2473
2896
  className: e("absolute left-0 right-0 z-50 mt-1 animate-popup gds-radius-popover border gds-shadow-lg", r ? e(t(r), "border-white/10 bg-bg/60") : "border-border bg-surface"),
2474
2897
  children: [/* @__PURE__ */ O("div", {
@@ -2494,7 +2917,7 @@ function Pt({ filtered: n, glass: r, onSearchChange: i, onToggle: a, searchQuery
2494
2917
  type: "button",
2495
2918
  children: [/* @__PURE__ */ O("span", {
2496
2919
  className: e("flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-colors", n ? "border-accent bg-accent/10" : "border-border"),
2497
- children: n && /* @__PURE__ */ O(Nt, {})
2920
+ children: n && /* @__PURE__ */ O($t, {})
2498
2921
  }), t.label]
2499
2922
  }, t.value);
2500
2923
  })]
@@ -2503,7 +2926,7 @@ function Pt({ filtered: n, glass: r, onSearchChange: i, onToggle: a, searchQuery
2503
2926
  }
2504
2927
  //#endregion
2505
2928
  //#region src/l4-molecules/multi-select.tsx
2506
- function Ft({ open: t }) {
2929
+ function tn({ open: t }) {
2507
2930
  return /* @__PURE__ */ O("svg", {
2508
2931
  className: e("h-3 w-3 shrink-0 text-fg-muted transition-transform", t && "rotate-180"),
2509
2932
  fill: "none",
@@ -2515,7 +2938,7 @@ function Ft({ open: t }) {
2515
2938
  children: /* @__PURE__ */ O("path", { d: "M3 4.5l3 3 3-3" })
2516
2939
  });
2517
2940
  }
2518
- var It = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, maxDisplay: s = 3, onChange: c, options: l, placeholder: u = "Select...", value: d }, f) {
2941
+ var nn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, maxDisplay: s = 3, onChange: c, options: l, placeholder: u = "Select...", value: d }, f) {
2519
2942
  let [p, m] = E(!1), [h, g] = E(""), v = T(null), y = T(null), x = f ?? v, C = w(() => {
2520
2943
  if (h === "") return l;
2521
2944
  let e = h.toLowerCase();
@@ -2561,8 +2984,8 @@ var It = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
2561
2984
  ]
2562
2985
  })
2563
2986
  ]
2564
- }), /* @__PURE__ */ O(Ft, { open: p })]
2565
- }), p && /* @__PURE__ */ O(Pt, {
2987
+ }), /* @__PURE__ */ O(tn, { open: p })]
2988
+ }), p && /* @__PURE__ */ O(en, {
2566
2989
  filtered: C,
2567
2990
  glass: o,
2568
2991
  onSearchChange: g,
@@ -2572,7 +2995,7 @@ var It = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
2572
2995
  value: d
2573
2996
  })]
2574
2997
  });
2575
- }), Lt = x(function({ icon: t, label: n, active: r, badge: i, onClick: a, collapsed: o, className: s }, c) {
2998
+ }), rn = x(function({ icon: t, label: n, active: r, badge: i, onClick: a, collapsed: o, className: s }, c) {
2576
2999
  return /* @__PURE__ */ k("button", {
2577
3000
  ref: c,
2578
3001
  type: "button",
@@ -2596,7 +3019,63 @@ var It = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
2596
3019
  })
2597
3020
  ]
2598
3021
  });
2599
- }), Rt = x(function({ unread: t, onClick: n, className: r }, a) {
3022
+ }), an = {
3023
+ online: {
3024
+ color: "bg-success",
3025
+ label: "Online"
3026
+ },
3027
+ offline: {
3028
+ color: "bg-danger",
3029
+ label: "Offline"
3030
+ },
3031
+ slow: {
3032
+ color: "bg-warning",
3033
+ label: "Slow"
3034
+ }
3035
+ }, on = x(function({ className: t, status: n }, r) {
3036
+ let i = an[n];
3037
+ return /* @__PURE__ */ k("div", {
3038
+ ref: r,
3039
+ className: e("flex items-center gds-gap-sm", t),
3040
+ "data-component": "network-status",
3041
+ "data-state": n,
3042
+ children: [/* @__PURE__ */ O("span", { className: e("inline-block h-2 w-2 shrink-0 rounded-full", i.color) }), /* @__PURE__ */ O("span", {
3043
+ className: "gds-text text-fg-muted",
3044
+ children: i.label
3045
+ })]
3046
+ });
3047
+ }), sn = x(function({ animated: t, className: n, opacity: r = .05 }, i) {
3048
+ return /* @__PURE__ */ O("div", {
3049
+ ref: i,
3050
+ className: e("pointer-events-none absolute inset-0 overflow-hidden", n),
3051
+ style: { opacity: r },
3052
+ "data-component": "noise-overlay",
3053
+ children: /* @__PURE__ */ k("svg", {
3054
+ className: "h-full w-full",
3055
+ xmlns: "http://www.w3.org/2000/svg",
3056
+ children: [/* @__PURE__ */ O("filter", {
3057
+ id: "gds-noise",
3058
+ children: /* @__PURE__ */ O("feTurbulence", {
3059
+ type: "fractalNoise",
3060
+ baseFrequency: "0.8",
3061
+ numOctaves: "4",
3062
+ stitchTiles: "stitch",
3063
+ children: t === !0 && /* @__PURE__ */ O("animate", {
3064
+ attributeName: "seed",
3065
+ from: "0",
3066
+ to: "100",
3067
+ dur: "1s",
3068
+ repeatCount: "indefinite"
3069
+ })
3070
+ })
3071
+ }), /* @__PURE__ */ O("rect", {
3072
+ width: "100%",
3073
+ height: "100%",
3074
+ filter: "url(#gds-noise)"
3075
+ })]
3076
+ })
3077
+ });
3078
+ }), cn = x(function({ unread: t, onClick: n, className: r }, a) {
2600
3079
  return /* @__PURE__ */ k("button", {
2601
3080
  ref: a,
2602
3081
  type: "button",
@@ -2620,10 +3099,10 @@ var It = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
2620
3099
  children: t > 99 ? "99+" : t
2621
3100
  })]
2622
3101
  });
2623
- }), zt = {
3102
+ }), ln = {
2624
3103
  danger: "bg-danger text-white",
2625
3104
  accent: "bg-accent text-accent-fg"
2626
- }, Bt = x(function({ children: t, count: n = 0, max: r = 99, variant: i = "danger", className: a, ...o }, s) {
3105
+ }, un = x(function({ children: t, count: n = 0, max: r = 99, variant: i = "danger", className: a, ...o }, s) {
2627
3106
  let c = n > 0, l = n > r ? `${r}+` : String(n);
2628
3107
  return /* @__PURE__ */ k("div", {
2629
3108
  ref: s,
@@ -2631,11 +3110,105 @@ var It = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
2631
3110
  "data-component": "notification-dot",
2632
3111
  ...o,
2633
3112
  children: [t, c && /* @__PURE__ */ O("span", {
2634
- className: e("absolute -right-1.5 -top-1.5 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-bold leading-none", zt[i]),
3113
+ className: e("absolute -right-1.5 -top-1.5 flex h-4 min-w-4 items-center justify-center rounded-full px-1 text-[10px] font-bold leading-none", ln[i]),
2635
3114
  children: l
2636
3115
  })]
2637
3116
  });
2638
- }), Vt = x(function({ items: t, onSelect: n, className: r, ...a }, o) {
3117
+ });
3118
+ //#endregion
3119
+ //#region src/l4-molecules/num-table.tsx
3120
+ function dn(e, t) {
3121
+ return e == null ? t === void 0 ? "—" : t(null) : typeof e == "number" ? t === void 0 ? String(e) : t(e) : String(e);
3122
+ }
3123
+ var fn = x(function({ className: t, columns: n, emptyMessage: r, getRowHighlight: i, labelHeader: a, labelKey: o, rowKey: s, rows: c }, l) {
3124
+ let u = n.some((e) => e.footer !== void 0);
3125
+ return /* @__PURE__ */ k("table", {
3126
+ ref: l,
3127
+ className: e("w-full border-collapse gds-text", t),
3128
+ "data-component": "num-table",
3129
+ children: [
3130
+ /* @__PURE__ */ O("thead", { children: /* @__PURE__ */ k("tr", {
3131
+ className: "border-b border-border",
3132
+ children: [/* @__PURE__ */ O("th", {
3133
+ className: "gds-pad-y px-2 text-left text-xs font-medium text-fg-muted",
3134
+ children: a
3135
+ }), n.map((e) => /* @__PURE__ */ O("th", {
3136
+ className: "gds-pad-y px-2 text-right text-xs font-medium text-fg-muted",
3137
+ style: e.width === void 0 ? void 0 : { width: e.width },
3138
+ children: e.label
3139
+ }, e.key))]
3140
+ }) }),
3141
+ /* @__PURE__ */ k("tbody", { children: [c.length === 0 && r !== void 0 && /* @__PURE__ */ O("tr", { children: /* @__PURE__ */ O("td", {
3142
+ colSpan: n.length + 1,
3143
+ className: "gds-pad-y px-2 text-center text-fg-muted",
3144
+ children: r
3145
+ }) }), c.map((t, r) => {
3146
+ let a = String(s === void 0 ? r : t[s]), c = i?.(t);
3147
+ return /* @__PURE__ */ k("tr", {
3148
+ className: e("border-b border-border/50", c),
3149
+ children: [/* @__PURE__ */ O("td", {
3150
+ className: "gds-pad-y px-2 text-left text-fg",
3151
+ children: String(t[o] ?? "")
3152
+ }), n.map((e) => /* @__PURE__ */ O("td", {
3153
+ className: "gds-pad-y px-2 text-right tabular-nums text-fg",
3154
+ children: dn(t[e.key], e.format)
3155
+ }, e.key))]
3156
+ }, a);
3157
+ })] }),
3158
+ u && /* @__PURE__ */ O("tfoot", { children: /* @__PURE__ */ k("tr", {
3159
+ className: "border-t border-border font-medium",
3160
+ children: [/* @__PURE__ */ O("td", { className: "gds-pad-y px-2" }), n.map((e) => /* @__PURE__ */ O("td", {
3161
+ className: "gds-pad-y px-2 text-right tabular-nums text-fg",
3162
+ children: e.footer ?? ""
3163
+ }, e.key))]
3164
+ }) })
3165
+ ]
3166
+ });
3167
+ }), pn = x(function({ className: t, disabled: n, error: r, length: a = 6, onComplete: o }, s) {
3168
+ let [c, l] = E(() => Array(a).fill("")), u = T([]), d = S((e) => {
3169
+ u.current[e]?.focus();
3170
+ }, []), f = S((e, t) => {
3171
+ let n = t.replace(/\D/g, "").slice(-1), r = [...c];
3172
+ r[e] = n, l(r), n !== "" && e < a - 1 && d(e + 1);
3173
+ let i = r.join("");
3174
+ i.length === a && r.every((e) => e !== "") && o(i);
3175
+ }, [
3176
+ c,
3177
+ a,
3178
+ o,
3179
+ d
3180
+ ]), p = S((e, t) => {
3181
+ t.key === "Backspace" && c[e] === "" && e > 0 && d(e - 1);
3182
+ }, [c, d]), m = S((e) => {
3183
+ e.preventDefault();
3184
+ let t = e.clipboardData.getData("text").replace(/\D/g, "").slice(0, a), n = Array(a).fill("");
3185
+ for (let e = 0; e < t.length; e++) n[e] = t[e];
3186
+ l(n), d(Math.min(t.length, a - 1)), t.length === a && o(t);
3187
+ }, [
3188
+ a,
3189
+ o,
3190
+ d
3191
+ ]);
3192
+ return /* @__PURE__ */ O("div", {
3193
+ ref: s,
3194
+ className: e("flex items-center gds-gap-sm", t),
3195
+ "data-component": "otp-input",
3196
+ children: c.map((t, a) => /* @__PURE__ */ O("input", {
3197
+ ref: (e) => {
3198
+ u.current[a] = e;
3199
+ },
3200
+ type: "text",
3201
+ inputMode: "numeric",
3202
+ maxLength: 1,
3203
+ value: t,
3204
+ disabled: n,
3205
+ className: e("h-12 w-10 rounded border text-center text-lg font-semibold tabular-nums text-fg bg-bg", r === !0 ? "border-danger" : "border-border", n === !0 && "opacity-50 cursor-not-allowed", i),
3206
+ onChange: (e) => f(a, e.target.value),
3207
+ onKeyDown: (e) => p(a, e),
3208
+ onPaste: a === 0 ? m : void 0
3209
+ }, a))
3210
+ });
3211
+ }), mn = x(function({ items: t, onSelect: n, className: r, ...a }, o) {
2639
3212
  let [s, c] = E(!1), l = T(null);
2640
3213
  return b(l, s, () => c(!1)), _(s, () => c(!1)), /* @__PURE__ */ k("div", {
2641
3214
  ref: g(o, l),
@@ -2661,7 +3234,7 @@ var It = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
2661
3234
  }, t.id))
2662
3235
  })]
2663
3236
  });
2664
- }), U = e("flex items-center gap-1.5 gds-radius-button gds-pad-x gds-pad-y gds-text-body text-fg-muted hover:text-fg transition-colors", i), Ht = x(function({ prev: t, next: n, className: r, ...i }, a) {
3237
+ }), U = e("flex items-center gap-1.5 gds-radius-button gds-pad-x gds-pad-y gds-text-body text-fg-muted hover:text-fg transition-colors", i), hn = x(function({ prev: t, next: n, className: r, ...i }, a) {
2665
3238
  return /* @__PURE__ */ k("nav", {
2666
3239
  ref: a,
2667
3240
  className: e("flex w-full items-center justify-between", r),
@@ -2707,7 +3280,7 @@ function W(e, t) {
2707
3280
  for (let r = e; r <= t; r++) n.push(r);
2708
3281
  return n;
2709
3282
  }
2710
- var Ut = x(function({ page: t, totalPages: n, onPageChange: r, siblings: a = 1, className: o, ...s }, c) {
3283
+ var gn = x(function({ page: t, totalPages: n, onPageChange: r, siblings: a = 1, className: o, ...s }, c) {
2711
3284
  let l = w(() => {
2712
3285
  let e = n;
2713
3286
  if (e <= a + 3 + 2) return W(1, e);
@@ -2770,7 +3343,7 @@ var Ut = x(function({ page: t, totalPages: n, onPageChange: r, siblings: a = 1,
2770
3343
  });
2771
3344
  //#endregion
2772
3345
  //#region src/l4-molecules/panel.tsx
2773
- function Wt({ open: t }) {
3346
+ function _n({ open: t }) {
2774
3347
  return /* @__PURE__ */ O("svg", {
2775
3348
  className: e("h-3.5 w-3.5 shrink-0 text-fg-muted transition-transform duration-200", t && "rotate-90"),
2776
3349
  fill: "none",
@@ -2781,7 +3354,7 @@ function Wt({ open: t }) {
2781
3354
  children: /* @__PURE__ */ O("path", { d: "M9 5l7 7-7 7" })
2782
3355
  });
2783
3356
  }
2784
- var Gt = x(function({ children: n, className: r, collapsible: a = !0, defaultOpen: o = !0, glass: s, headerAction: c, title: l, ...u }, d) {
3357
+ var vn = x(function({ children: n, className: r, collapsible: a = !0, defaultOpen: o = !0, glass: s, headerAction: c, title: l, ...u }, d) {
2785
3358
  let [f, p] = E(o), m = a ? f : !0;
2786
3359
  return /* @__PURE__ */ k("div", {
2787
3360
  className: e("gds-ctx gds-radius-popover border border-border bg-surface", t(s), s === !0 && "border-white/10 bg-white/5", r),
@@ -2795,7 +3368,7 @@ var Gt = x(function({ children: n, className: r, collapsible: a = !0, defaultOpe
2795
3368
  className: e("flex flex-1 items-center gap-2 text-left text-sm font-medium text-fg", i),
2796
3369
  onClick: () => p((e) => !e),
2797
3370
  type: "button",
2798
- children: [/* @__PURE__ */ O(Wt, { open: m }), /* @__PURE__ */ O("span", { children: l })]
3371
+ children: [/* @__PURE__ */ O(_n, { open: m }), /* @__PURE__ */ O("span", { children: l })]
2799
3372
  }) : /* @__PURE__ */ O("span", {
2800
3373
  className: "flex-1 text-sm font-medium text-fg",
2801
3374
  children: l
@@ -2808,10 +3381,50 @@ var Gt = x(function({ children: n, className: r, collapsible: a = !0, defaultOpe
2808
3381
  children: n
2809
3382
  })]
2810
3383
  });
3384
+ }), yn = x(function({ className: t, color: n = "#888888", connected: r, count: i = 60, speed: a = .5 }, o) {
3385
+ let s = T(null), c = T(0);
3386
+ return C(() => {
3387
+ let e = s.current;
3388
+ if (e === null) return;
3389
+ let t = e.getContext("2d");
3390
+ if (t === null) return;
3391
+ let o = () => {
3392
+ e.width = e.offsetWidth, e.height = e.offsetHeight;
3393
+ };
3394
+ o(), window.addEventListener("resize", o);
3395
+ let l = Array.from({ length: i }, () => ({
3396
+ x: Math.random() * e.width,
3397
+ y: Math.random() * e.height,
3398
+ vx: (Math.random() - .5) * a,
3399
+ vy: (Math.random() - .5) * a
3400
+ })), u = () => {
3401
+ t.clearRect(0, 0, e.width, e.height);
3402
+ for (let r of l) r.x += r.vx, r.y += r.vy, (r.x < 0 || r.x > e.width) && (r.vx *= -1), (r.y < 0 || r.y > e.height) && (r.vy *= -1), t.beginPath(), t.arc(r.x, r.y, 2, 0, Math.PI * 2), t.fillStyle = n, t.fill();
3403
+ if (r === !0) for (let e = 0; e < l.length; e++) for (let r = e + 1; r < l.length; r++) {
3404
+ let i = l[e].x - l[r].x, a = l[e].y - l[r].y, o = Math.sqrt(i * i + a * a);
3405
+ o < 120 && (t.beginPath(), t.moveTo(l[e].x, l[e].y), t.lineTo(l[r].x, l[r].y), t.strokeStyle = n, t.globalAlpha = 1 - o / 120, t.stroke(), t.globalAlpha = 1);
3406
+ }
3407
+ c.current = requestAnimationFrame(u);
3408
+ };
3409
+ return c.current = requestAnimationFrame(u), () => {
3410
+ cancelAnimationFrame(c.current), window.removeEventListener("resize", o);
3411
+ };
3412
+ }, [
3413
+ n,
3414
+ r,
3415
+ i,
3416
+ a
3417
+ ]), /* @__PURE__ */ O("canvas", {
3418
+ ref: (e) => {
3419
+ s.current = e, typeof o == "function" ? o(e) : o != null && (o.current = e);
3420
+ },
3421
+ className: e("block h-full w-full", t),
3422
+ "data-component": "particle-field"
3423
+ });
2811
3424
  });
2812
3425
  //#endregion
2813
3426
  //#region src/l4-molecules/password-input.tsx
2814
- function Kt(e) {
3427
+ function bn(e) {
2815
3428
  if (e.length === 0) return "none";
2816
3429
  let t = 0;
2817
3430
  return e.length >= 8 && (t += 1), /[a-z]/.test(e) && /[A-Z]/.test(e) && (t += 1), /\d/.test(e) && (t += 1), /[^a-zA-Z0-9]/.test(e) && (t += 1), t <= 1 ? "weak" : t <= 2 ? "fair" : "strong";
@@ -2832,7 +3445,7 @@ var G = {
2832
3445
  value: 100,
2833
3446
  variant: "success"
2834
3447
  }
2835
- }, qt = /* @__PURE__ */ k("svg", {
3448
+ }, xn = /* @__PURE__ */ k("svg", {
2836
3449
  viewBox: "0 0 24 24",
2837
3450
  fill: "none",
2838
3451
  stroke: "currentColor",
@@ -2844,7 +3457,7 @@ var G = {
2844
3457
  cy: "12",
2845
3458
  r: "3"
2846
3459
  })]
2847
- }), Jt = /* @__PURE__ */ k("svg", {
3460
+ }), Sn = /* @__PURE__ */ k("svg", {
2848
3461
  viewBox: "0 0 24 24",
2849
3462
  fill: "none",
2850
3463
  stroke: "currentColor",
@@ -2857,14 +3470,14 @@ var G = {
2857
3470
  x2: "23",
2858
3471
  y2: "23"
2859
3472
  })]
2860
- }), Yt = x(function({ className: t, showStrength: n = !1, ...r }, i) {
2861
- let [a, s] = E(!1), c = typeof r.value == "string" ? r.value : "", u = n ? Kt(c) : "none", d = /* @__PURE__ */ O("button", {
3473
+ }), Cn = x(function({ className: t, showStrength: n = !1, ...r }, i) {
3474
+ let [a, s] = E(!1), c = typeof r.value == "string" ? r.value : "", u = n ? bn(c) : "none", d = /* @__PURE__ */ O("button", {
2862
3475
  "aria-label": a ? "Hide password" : "Show password",
2863
3476
  className: "cursor-pointer text-fg-muted/50 hover:text-fg-muted",
2864
3477
  onClick: () => s((e) => !e),
2865
3478
  tabIndex: -1,
2866
3479
  type: "button",
2867
- children: a ? Jt : qt
3480
+ children: a ? Sn : xn
2868
3481
  });
2869
3482
  return /* @__PURE__ */ k("div", {
2870
3483
  className: e("flex flex-col gap-1.5", t),
@@ -2886,7 +3499,7 @@ var G = {
2886
3499
  })]
2887
3500
  })]
2888
3501
  });
2889
- }), Xt = [
3502
+ }), wn = [
2890
3503
  {
2891
3504
  code: "+1",
2892
3505
  label: "US",
@@ -2912,8 +3525,8 @@ var G = {
2912
3525
  label: "KR",
2913
3526
  flag: "🇰🇷"
2914
3527
  }
2915
- ], Zt = x(function({ value: t, onChange: n, defaultCountry: r = "+81", countries: a, disabled: o = !1, error: s = !1, placeholder: c = "Phone number", className: l }, u) {
2916
- let d = a ?? Xt, [f, p] = E(r), [m, h] = E(!1), g = T(null);
3528
+ ], Tn = x(function({ value: t, onChange: n, defaultCountry: r = "+81", countries: a, disabled: o = !1, error: s = !1, placeholder: c = "Phone number", className: l }, u) {
3529
+ let d = a ?? wn, [f, p] = E(r), [m, h] = E(!1), g = T(null);
2917
3530
  b(g, m, () => h(!1));
2918
3531
  let _ = d.find((e) => e.code === f) ?? d[0], v = S((e) => {
2919
3532
  p(e), h(!1);
@@ -2968,7 +3581,7 @@ var G = {
2968
3581
  "aria-label": "Phone number"
2969
3582
  })]
2970
3583
  });
2971
- }), Qt = x(function({ className: t, disabled: n = !1, error: r = !1, length: a = 4, mask: o = !1, numeric: s = !1, onChange: c, onComplete: l, value: u, ...d }, f) {
3584
+ }), En = x(function({ className: t, disabled: n = !1, error: r = !1, length: a = 4, mask: o = !1, numeric: s = !1, onChange: c, onComplete: l, value: u, ...d }, f) {
2972
3585
  let [p, m] = E(() => Array.from({ length: a }, () => "")), h = u !== void 0, g = T([]), _ = S((e) => (t) => {
2973
3586
  g.current[e] = t;
2974
3587
  }, []), v = S((e) => {
@@ -3059,7 +3672,7 @@ var G = {
3059
3672
  value: o && D[a] !== void 0 && D[a] !== "" ? "•" : D[a] ?? ""
3060
3673
  }, a))
3061
3674
  });
3062
- }), $t = {
3675
+ }), Dn = {
3063
3676
  bottom: {
3064
3677
  center: "top-full left-1/2 -translate-x-1/2 mt-2",
3065
3678
  end: "top-full right-0 mt-2",
@@ -3080,7 +3693,7 @@ var G = {
3080
3693
  end: "bottom-full right-0 mb-2",
3081
3694
  start: "bottom-full left-0 mb-2"
3082
3695
  }
3083
- }, en = x(function({ align: t = "start", className: n, content: r, placement: i = "bottom", trigger: a, ...o }, s) {
3696
+ }, On = x(function({ align: t = "start", className: n, content: r, placement: i = "bottom", trigger: a, ...o }, s) {
3084
3697
  let [c, l] = E(!1), u = T(null);
3085
3698
  return b(u, c, () => l(!1)), _(c, () => l(!1)), /* @__PURE__ */ k("div", {
3086
3699
  className: e("relative inline-flex", n),
@@ -3099,11 +3712,11 @@ var G = {
3099
3712
  tabIndex: 0,
3100
3713
  children: a
3101
3714
  }), c && /* @__PURE__ */ O("div", {
3102
- className: e("absolute z-50 animate-popup gds-radius-popover border border-border bg-surface gds-pad-x gds-pad-y gds-shadow-lg", $t[i]?.[t]),
3715
+ className: e("absolute z-50 animate-popup gds-radius-popover border border-border bg-surface gds-pad-x gds-pad-y gds-shadow-lg", Dn[i]?.[t]),
3103
3716
  children: r
3104
3717
  })]
3105
3718
  });
3106
- }), tn = x(function({ className: t, icon: n, label: r, trend: i, value: a, ...o }, s) {
3719
+ }), kn = x(function({ className: t, icon: n, label: r, trend: i, value: a, ...o }, s) {
3107
3720
  let c = i !== void 0 && i > 0 ? "text-success" : i !== void 0 && i < 0 ? "text-danger" : "text-fg-muted";
3108
3721
  return /* @__PURE__ */ k("div", {
3109
3722
  className: e("inline-flex items-center gap-3 select-none", t),
@@ -3134,14 +3747,14 @@ var G = {
3134
3747
  })]
3135
3748
  })]
3136
3749
  });
3137
- }), nn = {
3750
+ }), An = {
3138
3751
  1: "grid-cols-1",
3139
3752
  2: "grid-cols-2",
3140
3753
  3: "grid-cols-3"
3141
- }, rn = x(function({ options: n, value: r, onChange: i, columns: a = 1, disabled: o, glass: s, className: c }, l) {
3754
+ }, jn = x(function({ options: n, value: r, onChange: i, columns: a = 1, disabled: o, glass: s, className: c }, l) {
3142
3755
  return /* @__PURE__ */ O("div", {
3143
3756
  ref: l,
3144
- className: e("grid gds-gap", nn[a], c),
3757
+ className: e("grid gds-gap", An[a], c),
3145
3758
  "data-component": "radio-card",
3146
3759
  role: "radiogroup",
3147
3760
  children: n.map((n) => {
@@ -3179,7 +3792,46 @@ var G = {
3179
3792
  }, n.value);
3180
3793
  })
3181
3794
  });
3182
- }), an = /* @__PURE__ */ k("svg", {
3795
+ }), Mn = {
3796
+ top: "translate-y-[-20px]",
3797
+ bottom: "translate-y-[20px]",
3798
+ left: "translate-x-[-20px]",
3799
+ right: "translate-x-[20px]"
3800
+ }, Nn = x(function({ active: t, children: n, className: r, direction: i = "bottom" }, a) {
3801
+ return /* @__PURE__ */ O("div", {
3802
+ ref: a,
3803
+ className: e("transition-all duration-300 ease-out", t ? "opacity-100 translate-x-0 translate-y-0" : e("opacity-0", Mn[i]), r),
3804
+ "data-component": "reveal",
3805
+ "data-state": t ? "visible" : "hidden",
3806
+ children: n
3807
+ });
3808
+ }), Pn = x(function({ className: t, label: n, max: r = 100, score: i }, a) {
3809
+ let o = w(() => r <= 0 ? 0 : Math.min(100, Math.max(0, i / r * 100)), [i, r]);
3810
+ return /* @__PURE__ */ k("div", {
3811
+ ref: a,
3812
+ className: e("flex flex-col gds-gap-sm", t),
3813
+ "data-component": "scoreboard",
3814
+ children: [/* @__PURE__ */ k("div", {
3815
+ className: "flex items-baseline justify-between",
3816
+ children: [/* @__PURE__ */ O("span", {
3817
+ className: "gds-text text-fg-muted",
3818
+ children: n
3819
+ }), /* @__PURE__ */ k("span", {
3820
+ className: "text-lg font-bold tabular-nums text-fg",
3821
+ children: [i, /* @__PURE__ */ k("span", {
3822
+ className: "text-sm font-normal text-fg-muted",
3823
+ children: ["/", r]
3824
+ })]
3825
+ })]
3826
+ }), /* @__PURE__ */ O("div", {
3827
+ className: "h-2 w-full overflow-hidden rounded-full bg-bg-tertiary",
3828
+ children: /* @__PURE__ */ O("div", {
3829
+ className: "h-full rounded-full bg-accent transition-all duration-300",
3830
+ style: { width: `${o}%` }
3831
+ })
3832
+ })]
3833
+ });
3834
+ }), Fn = /* @__PURE__ */ k("svg", {
3183
3835
  viewBox: "0 0 24 24",
3184
3836
  fill: "none",
3185
3837
  stroke: "currentColor",
@@ -3196,7 +3848,7 @@ var G = {
3196
3848
  x2: "16.65",
3197
3849
  y2: "16.65"
3198
3850
  })]
3199
- }), on = /* @__PURE__ */ k("svg", {
3851
+ }), In = /* @__PURE__ */ k("svg", {
3200
3852
  viewBox: "0 0 24 24",
3201
3853
  fill: "none",
3202
3854
  stroke: "currentColor",
@@ -3214,14 +3866,14 @@ var G = {
3214
3866
  x2: "18",
3215
3867
  y2: "18"
3216
3868
  })]
3217
- }), sn = x(function({ className: t, clearable: n = !0, disabled: r = !1, inputSize: i, loading: a = !1, onChange: s, onSearch: l, placeholder: u = "Search...", value: d }, f) {
3218
- let p = a ? /* @__PURE__ */ O(c, { size: "sm" }) : an, m = n && d.length > 0 ? /* @__PURE__ */ O("button", {
3869
+ }), Ln = x(function({ className: t, clearable: n = !0, disabled: r = !1, inputSize: i, loading: a = !1, onChange: s, onSearch: l, placeholder: u = "Search...", value: d }, f) {
3870
+ let p = a ? /* @__PURE__ */ O(c, { size: "sm" }) : Fn, m = n && d.length > 0 ? /* @__PURE__ */ O("button", {
3219
3871
  "aria-label": "Clear search",
3220
3872
  className: "cursor-pointer text-fg-muted/50 hover:text-fg-muted",
3221
3873
  onClick: () => s(""),
3222
3874
  tabIndex: -1,
3223
3875
  type: "button",
3224
- children: on
3876
+ children: In
3225
3877
  }) : void 0;
3226
3878
  return /* @__PURE__ */ O(o, {
3227
3879
  className: e(t),
@@ -3258,7 +3910,7 @@ var G = {
3258
3910
  error: !1,
3259
3911
  inputSize: "default"
3260
3912
  }
3261
- }), cn = x(function({ error: n, inputSize: r, glass: i, className: a, children: o, ...s }, c) {
3913
+ }), Rn = x(function({ error: n, inputSize: r, glass: i, className: a, children: o, ...s }, c) {
3262
3914
  return /* @__PURE__ */ k("div", {
3263
3915
  className: "relative",
3264
3916
  "data-component": "select",
@@ -3285,7 +3937,7 @@ var G = {
3285
3937
  })
3286
3938
  })]
3287
3939
  });
3288
- }), ln = x(function({ open: n, onClose: r, children: i, side: a = "right", title: o, description: s, glass: c, width: l = 320, className: u }, d) {
3940
+ }), zn = x(function({ open: n, onClose: r, children: i, side: a = "right", title: o, description: s, glass: c, width: l = 320, className: u }, d) {
3289
3941
  let f = v(n);
3290
3942
  if (y(n), _(n, r), !n) return null;
3291
3943
  let p = a === "right", m = { width: typeof l == "number" ? `${l}px` : l };
@@ -3333,7 +3985,7 @@ var G = {
3333
3985
  })]
3334
3986
  })
3335
3987
  });
3336
- }), un = x(function({ label: t, value: n, onChange: r, min: i = 0, max: a = 100, step: o = 1, unit: s, className: c, ...l }, u) {
3988
+ }), Bn = x(function({ label: t, value: n, onChange: r, min: i = 0, max: a = 100, step: o = 1, unit: s, className: c, ...l }, u) {
3337
3989
  return /* @__PURE__ */ k("div", {
3338
3990
  ref: u,
3339
3991
  className: e("flex flex-col gap-1.5", c),
@@ -3356,7 +4008,7 @@ var G = {
3356
4008
  step: o
3357
4009
  })]
3358
4010
  });
3359
- }), dn = x(function({ label: t, direction: n, onSort: r, className: a }, o) {
4011
+ }), Vn = x(function({ label: t, direction: n, onSort: r, className: a }, o) {
3360
4012
  return /* @__PURE__ */ O("th", {
3361
4013
  ref: o,
3362
4014
  className: e("px-3 py-2 text-left text-xs font-medium transition-colors select-none", i, n === null ? "text-fg-muted" : "text-accent", "cursor-pointer hover:text-accent", a),
@@ -3398,7 +4050,7 @@ var G = {
3398
4050
  primary: "bg-accent text-accent-fg hover:bg-accent/90",
3399
4051
  secondary: "bg-bg-secondary text-fg border border-border hover:bg-bg-tertiary",
3400
4052
  danger: "bg-danger text-white hover:bg-danger/90"
3401
- }, fn = {
4053
+ }, Hn = {
3402
4054
  primary: "border-l-white/20",
3403
4055
  secondary: "border-l-border",
3404
4056
  danger: "border-l-white/20"
@@ -3415,7 +4067,7 @@ var G = {
3415
4067
  main: "px-4 py-2 text-sm",
3416
4068
  trigger: "px-2.5 py-2"
3417
4069
  }
3418
- }, pn = x(function({ children: t, variant: n = "primary", size: r = "default", items: a, onSelect: o, onClick: s, disabled: c, className: l, ...u }, d) {
4070
+ }, Un = x(function({ children: t, variant: n = "primary", size: r = "default", items: a, onSelect: o, onClick: s, disabled: c, className: l, ...u }, d) {
3419
4071
  let [f, p] = E(!1), m = T(null);
3420
4072
  b(m, f, () => p(!1)), _(f, () => p(!1));
3421
4073
  let h = n ?? "primary", v = r ?? "default";
@@ -3439,7 +4091,7 @@ var G = {
3439
4091
  disabled: c,
3440
4092
  onClick: () => p((e) => !e),
3441
4093
  "aria-label": "More actions",
3442
- className: e("inline-flex select-none items-center border-l font-medium transition-colors rounded-r-md", q[h], fn[h], J[v].trigger, i, c === !0 && "pointer-events-none opacity-50"),
4094
+ className: e("inline-flex select-none items-center border-l font-medium transition-colors rounded-r-md", q[h], Hn[h], J[v].trigger, i, c === !0 && "pointer-events-none opacity-50"),
3443
4095
  children: /* @__PURE__ */ O("svg", {
3444
4096
  width: "12",
3445
4097
  height: "12",
@@ -3470,7 +4122,7 @@ var G = {
3470
4122
  "var(--color-warning)",
3471
4123
  "var(--color-danger)",
3472
4124
  "var(--color-fg-muted)"
3473
- ], mn = x(function({ segments: t, showLabels: n = !0, className: r }, i) {
4125
+ ], Wn = x(function({ segments: t, showLabels: n = !0, className: r }, i) {
3474
4126
  let a = t.reduce((e, t) => e + t.value, 0);
3475
4127
  return /* @__PURE__ */ k("div", {
3476
4128
  ref: i,
@@ -3511,7 +4163,7 @@ var G = {
3511
4163
  })
3512
4164
  })]
3513
4165
  });
3514
- }), hn = x(function({ className: t, highlight: n = "none", left: r, right: i, ...a }, o) {
4166
+ }), Gn = x(function({ className: t, highlight: n = "none", left: r, right: i, ...a }, o) {
3515
4167
  let s = (t) => e("flex flex-1 flex-col items-center rounded-lg border border-border p-3", n === t && "border-accent bg-accent/5");
3516
4168
  return /* @__PURE__ */ k("div", {
3517
4169
  className: e("flex items-center gds-gap", t),
@@ -3545,7 +4197,78 @@ var G = {
3545
4197
  })
3546
4198
  ]
3547
4199
  });
3548
- }), gn = x(function({ items: t, className: n }, r) {
4200
+ });
4201
+ //#endregion
4202
+ //#region src/l4-molecules/stat-trend.tsx
4203
+ function Kn({ data: e, className: t }) {
4204
+ if (e.length < 2) return null;
4205
+ let n = Math.min(...e), r = Math.max(...e) - n || 1, i = 60 / (e.length - 1);
4206
+ return /* @__PURE__ */ O("svg", {
4207
+ width: 60,
4208
+ height: 20,
4209
+ className: t,
4210
+ viewBox: "0 0 60 20",
4211
+ children: /* @__PURE__ */ O("polyline", {
4212
+ points: e.map((e, t) => `${t * i},${20 - (e - n) / r * 20}`).join(" "),
4213
+ fill: "none",
4214
+ stroke: "currentColor",
4215
+ strokeWidth: "1.5",
4216
+ strokeLinejoin: "round"
4217
+ })
4218
+ });
4219
+ }
4220
+ var qn = x(function({ className: t, label: n, trend: r, trendData: i, value: a }, o) {
4221
+ let s = r >= 0, c = w(() => s ? /* @__PURE__ */ O("svg", {
4222
+ width: "12",
4223
+ height: "12",
4224
+ viewBox: "0 0 12 12",
4225
+ fill: "none",
4226
+ stroke: "currentColor",
4227
+ strokeWidth: "2",
4228
+ strokeLinecap: "round",
4229
+ strokeLinejoin: "round",
4230
+ children: /* @__PURE__ */ O("path", { d: "M2 8l4-4 4 4" })
4231
+ }) : /* @__PURE__ */ O("svg", {
4232
+ width: "12",
4233
+ height: "12",
4234
+ viewBox: "0 0 12 12",
4235
+ fill: "none",
4236
+ stroke: "currentColor",
4237
+ strokeWidth: "2",
4238
+ strokeLinecap: "round",
4239
+ strokeLinejoin: "round",
4240
+ children: /* @__PURE__ */ O("path", { d: "M2 4l4 4 4-4" })
4241
+ }), [s]);
4242
+ return /* @__PURE__ */ k("div", {
4243
+ ref: o,
4244
+ className: e("flex flex-col gds-gap-sm gds-pad gds-radius border border-border bg-surface", t),
4245
+ "data-component": "stat-trend",
4246
+ children: [
4247
+ /* @__PURE__ */ O("span", {
4248
+ className: "text-xs text-fg-muted",
4249
+ children: n
4250
+ }),
4251
+ /* @__PURE__ */ k("div", {
4252
+ className: "flex items-end justify-between gds-gap",
4253
+ children: [/* @__PURE__ */ O("span", {
4254
+ className: "text-2xl font-bold tabular-nums text-fg",
4255
+ children: a
4256
+ }), i !== void 0 && i.length >= 2 && /* @__PURE__ */ O(Kn, {
4257
+ data: i,
4258
+ className: s ? "text-success" : "text-danger"
4259
+ })]
4260
+ }),
4261
+ /* @__PURE__ */ k("div", {
4262
+ className: e("flex items-center gds-gap-sm text-xs font-medium", s ? "text-success" : "text-danger"),
4263
+ children: [c, /* @__PURE__ */ k("span", { children: [
4264
+ s ? "+" : "",
4265
+ r,
4266
+ "%"
4267
+ ] })]
4268
+ })
4269
+ ]
4270
+ });
4271
+ }), Jn = x(function({ items: t, className: n }, r) {
3549
4272
  return /* @__PURE__ */ O("div", {
3550
4273
  ref: r,
3551
4274
  className: e("flex h-7 items-center border-t border-border bg-surface px-3 text-xs text-fg-muted select-none", n),
@@ -3597,7 +4320,7 @@ function Z({ tabs: n, active: r, onChange: i, glass: a, size: o = "default", cla
3597
4320
  }
3598
4321
  //#endregion
3599
4322
  //#region src/l4-molecules/tab-group.tsx
3600
- function _n({ tabs: n, defaultTab: r, glass: i, className: a }) {
4323
+ function Yn({ tabs: n, defaultTab: r, glass: i, className: a }) {
3601
4324
  let [o, s] = E(r ?? (n.length > 0 ? n[0].id : "")), c = n.map((e) => ({
3602
4325
  id: e.id,
3603
4326
  label: e.label
@@ -3621,7 +4344,7 @@ function _n({ tabs: n, defaultTab: r, glass: i, className: a }) {
3621
4344
  }
3622
4345
  //#endregion
3623
4346
  //#region src/l4-molecules/tag-input.tsx
3624
- function vn() {
4347
+ function Xn() {
3625
4348
  return /* @__PURE__ */ O("svg", {
3626
4349
  className: "h-3 w-3",
3627
4350
  fill: "none",
@@ -3635,7 +4358,7 @@ function vn() {
3635
4358
  })
3636
4359
  });
3637
4360
  }
3638
- var yn = x(function({ className: n, disabled: r = !1, error: i = !1, glass: a, maxTags: o, onChange: s, placeholder: c, value: l, ...u }, d) {
4361
+ var Zn = x(function({ className: n, disabled: r = !1, error: i = !1, glass: a, maxTags: o, onChange: s, placeholder: c, value: l, ...u }, d) {
3639
4362
  let [f, p] = E(""), [m, h] = E(!1), g = T(null), _ = d ?? g, v = o !== void 0 && l.length >= o, y = S((e) => {
3640
4363
  let t = e.trim();
3641
4364
  t !== "" && (l.includes(t) || v || (s([...l, t]), p("")));
@@ -3669,7 +4392,7 @@ var yn = x(function({ className: n, disabled: r = !1, error: i = !1, glass: a, m
3669
4392
  },
3670
4393
  tabIndex: -1,
3671
4394
  type: "button",
3672
- children: /* @__PURE__ */ O(vn, {})
4395
+ children: /* @__PURE__ */ O(Xn, {})
3673
4396
  })]
3674
4397
  }, t)), !v && /* @__PURE__ */ O("input", {
3675
4398
  className: "min-w-[60px] flex-1 border-none bg-transparent text-fg outline-none gds-text-body placeholder:text-fg-muted/50 disabled:cursor-not-allowed",
@@ -3685,13 +4408,74 @@ var yn = x(function({ className: n, disabled: r = !1, error: i = !1, glass: a, m
3685
4408
  ...u
3686
4409
  })]
3687
4410
  });
4411
+ }), Qn = x(function({ by: t = "word", className: n, staggerDelay: r = 50, text: i }, a) {
4412
+ let o = w(() => t === "character" ? i.split("") : i.split(" "), [t, i]);
4413
+ return /* @__PURE__ */ O("span", {
4414
+ ref: a,
4415
+ className: e("inline", n),
4416
+ "data-component": "text-reveal",
4417
+ "aria-label": i,
4418
+ children: o.map((e, n) => /* @__PURE__ */ k("span", {
4419
+ className: "inline-block animate-fadeIn opacity-0",
4420
+ style: {
4421
+ animationDelay: `${n * r}ms`,
4422
+ animationFillMode: "forwards"
4423
+ },
4424
+ "aria-hidden": !0,
4425
+ children: [e, t === "word" && n < o.length - 1 ? "\xA0" : ""]
4426
+ }, `${n}-${e}`))
4427
+ });
4428
+ }), $n = x(function({ characters: t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%", className: n, speed: r = 50, text: i }, a) {
4429
+ let [o, s] = E(i), c = T(0);
4430
+ return C(() => {
4431
+ let e = 0, n = i, a = setInterval(() => {
4432
+ s(n.split("").map((r, i) => i < e ? n[i] : t[Math.floor(Math.random() * t.length)]).join("")), e += 1 / 3, e >= n.length && (clearInterval(a), s(n));
4433
+ }, r);
4434
+ return () => clearInterval(a);
4435
+ }, [
4436
+ i,
4437
+ t,
4438
+ r
4439
+ ]), C(() => {
4440
+ let e = c;
4441
+ return () => cancelAnimationFrame(e.current);
4442
+ }, []), /* @__PURE__ */ O("span", {
4443
+ ref: a,
4444
+ className: e("inline-block font-mono text-fg", n),
4445
+ "data-component": "text-scramble",
4446
+ "aria-label": i,
4447
+ children: o
4448
+ });
4449
+ }), er = x(function({ children: t, className: n, glare: r, maxTilt: i = 15 }, a) {
4450
+ let o = T(null), [s, c] = E("perspective(800px) rotateX(0deg) rotateY(0deg)"), [l, u] = E({}), d = S((e) => {
4451
+ let t = o.current;
4452
+ if (t === null) return;
4453
+ let n = t.getBoundingClientRect(), a = (e.clientX - n.left) / n.width, s = (e.clientY - n.top) / n.height;
4454
+ c(`perspective(800px) rotateX(${(.5 - s) * i * 2}deg) rotateY(${(a - .5) * i * 2}deg)`), r === !0 && u({ background: `radial-gradient(circle at ${a * 100}% ${s * 100}%, rgba(255,255,255,0.15), transparent 60%)` });
4455
+ }, [i, r]), f = S(() => {
4456
+ c("perspective(800px) rotateX(0deg) rotateY(0deg)"), u({});
4457
+ }, []);
4458
+ return /* @__PURE__ */ k("div", {
4459
+ ref: (e) => {
4460
+ o.current = e, typeof a == "function" ? a(e) : a != null && (a.current = e);
4461
+ },
4462
+ className: e("relative overflow-hidden transition-transform duration-150 ease-out", n),
4463
+ style: { transform: s },
4464
+ onMouseMove: d,
4465
+ onMouseLeave: f,
4466
+ "data-component": "tilt-card",
4467
+ children: [t, r === !0 && /* @__PURE__ */ O("div", {
4468
+ className: "pointer-events-none absolute inset-0",
4469
+ style: l
4470
+ })]
4471
+ });
3688
4472
  });
3689
4473
  //#endregion
3690
4474
  //#region src/l4-molecules/time-picker-grid.tsx
3691
4475
  function Q(e) {
3692
4476
  return e < 10 ? `0${e}` : `${e}`;
3693
4477
  }
3694
- function bn({ glass: n, hours: r, minutes: i, onHourClick: a, onMinuteClick: o, selectedHour: s, selectedMinute: c }) {
4478
+ function $({ glass: n, hours: r, minutes: i, onHourClick: a, onMinuteClick: o, selectedHour: s, selectedMinute: c }) {
3695
4479
  return /* @__PURE__ */ k("div", {
3696
4480
  className: e("absolute left-0 right-0 z-50 mt-1 flex animate-popup gds-radius-popover border gds-shadow-lg", n ? e(t(n), "border-white/10 bg-bg/60") : "border-border bg-surface"),
3697
4481
  children: [/* @__PURE__ */ k("div", {
@@ -3723,7 +4507,7 @@ function bn({ glass: n, hours: r, minutes: i, onHourClick: a, onMinuteClick: o,
3723
4507
  }
3724
4508
  //#endregion
3725
4509
  //#region src/l4-molecules/time-picker.tsx
3726
- function xn({ open: t }) {
4510
+ function tr({ open: t }) {
3727
4511
  return /* @__PURE__ */ O("svg", {
3728
4512
  className: e("h-3 w-3 text-fg-muted transition-transform", t && "rotate-180"),
3729
4513
  fill: "none",
@@ -3735,7 +4519,7 @@ function xn({ open: t }) {
3735
4519
  children: /* @__PURE__ */ O("path", { d: "M3 4.5l3 3 3-3" })
3736
4520
  });
3737
4521
  }
3738
- var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, minuteStep: s = 15, onChange: c, placeholder: l = "Select time", value: u }, d) {
4522
+ var nr = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, minuteStep: s = 15, onChange: c, placeholder: l = "Select time", value: u }, d) {
3739
4523
  let [f, p] = E(!1), m = T(null), h = d ?? m, g = w(() => Array.from({ length: 24 }, (e, t) => t), []), v = w(() => {
3740
4524
  let e = Math.max(1, Math.min(60, s)), t = [], n = 0;
3741
4525
  for (; n < 60;) t.push(n), n += e;
@@ -3771,8 +4555,8 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3771
4555
  children: [/* @__PURE__ */ O("span", {
3772
4556
  className: e(u === null ? "text-fg-muted" : "text-fg"),
3773
4557
  children: u ?? l
3774
- }), /* @__PURE__ */ O(xn, { open: f })]
3775
- }), f && /* @__PURE__ */ O(bn, {
4558
+ }), /* @__PURE__ */ O(tr, { open: f })]
4559
+ }), f && /* @__PURE__ */ O($, {
3776
4560
  glass: o,
3777
4561
  hours: g,
3778
4562
  minutes: v,
@@ -3782,12 +4566,12 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3782
4566
  selectedMinute: x
3783
4567
  })]
3784
4568
  });
3785
- }), Cn = {
4569
+ }), rr = {
3786
4570
  default: "bg-fg-muted/40",
3787
4571
  success: "bg-success",
3788
4572
  warning: "bg-warning",
3789
4573
  danger: "bg-danger"
3790
- }, wn = x(function({ children: t, className: n, icon: r, last: i = !1, variant: a = "default", ...o }, s) {
4574
+ }, ir = x(function({ children: t, className: n, icon: r, last: i = !1, variant: a = "default", ...o }, s) {
3791
4575
  return /* @__PURE__ */ k("div", {
3792
4576
  className: e("relative flex gap-3", n),
3793
4577
  "data-component": "timeline-entry",
@@ -3795,7 +4579,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3795
4579
  ...o,
3796
4580
  children: [/* @__PURE__ */ k("div", {
3797
4581
  className: "flex flex-col items-center",
3798
- children: [r === void 0 ? /* @__PURE__ */ O("span", { className: e("mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full", Cn[a]) }) : /* @__PURE__ */ O("span", {
4582
+ children: [r === void 0 ? /* @__PURE__ */ O("span", { className: e("mt-1.5 h-2.5 w-2.5 shrink-0 rounded-full", rr[a]) }) : /* @__PURE__ */ O("span", {
3799
4583
  className: "flex h-5 w-5 shrink-0 items-center justify-center",
3800
4584
  children: r
3801
4585
  }), !i && /* @__PURE__ */ O("span", { className: "mt-1 w-px flex-1 bg-border" })]
@@ -3804,7 +4588,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3804
4588
  children: t
3805
4589
  })]
3806
4590
  });
3807
- }), Tn = x(function({ label: t, description: n, checked: r, onChange: i, disabled: a, className: o, ...s }, c) {
4591
+ }), ar = x(function({ label: t, description: n, checked: r, onChange: i, disabled: a, className: o, ...s }, c) {
3808
4592
  return /* @__PURE__ */ k("div", {
3809
4593
  ref: c,
3810
4594
  className: e("flex items-center justify-between gap-4", o),
@@ -3825,7 +4609,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3825
4609
  disabled: a
3826
4610
  })]
3827
4611
  });
3828
- }), En = x(function({ children: n, variant: r = "default", glass: i, className: a }, o) {
4612
+ }), or = x(function({ children: n, variant: r = "default", glass: i, className: a }, o) {
3829
4613
  return /* @__PURE__ */ O("div", {
3830
4614
  ref: o,
3831
4615
  className: e("flex items-center gds-gap px-3 py-2 select-none", r === "floating" ? "gds-radius border border-border bg-surface shadow-md" : "border-b border-border bg-bg", i === !0 && t(i), a),
@@ -3834,13 +4618,13 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3834
4618
  role: "toolbar",
3835
4619
  children: n
3836
4620
  });
3837
- }), Dn = x(function(e, t) {
4621
+ }), sr = x(function(e, t) {
3838
4622
  return /* @__PURE__ */ O("div", {
3839
4623
  ref: t,
3840
4624
  className: "h-4 w-px bg-border/50",
3841
4625
  "data-component": "toolbar-separator"
3842
4626
  });
3843
- }), On = x(function({ children: t, className: n, ...r }, i) {
4627
+ }), cr = x(function({ children: t, className: n, ...r }, i) {
3844
4628
  return /* @__PURE__ */ O("div", {
3845
4629
  className: e("inline-flex items-center overflow-hidden rounded-md border border-border", "[&>*]:rounded-none [&>*]:border-0 [&>*]:border-r [&>*]:border-border [&>*:last-child]:border-r-0", n),
3846
4630
  "data-component": "toolbar-group",
@@ -3849,12 +4633,108 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3849
4633
  ...r,
3850
4634
  children: t
3851
4635
  });
3852
- }), $ = {
4636
+ }), lr = /* @__PURE__ */ O("svg", {
4637
+ width: "16",
4638
+ height: "16",
4639
+ viewBox: "0 0 16 16",
4640
+ fill: "none",
4641
+ stroke: "currentColor",
4642
+ strokeWidth: "2",
4643
+ strokeLinecap: "round",
4644
+ strokeLinejoin: "round",
4645
+ children: /* @__PURE__ */ O("path", { d: "M3 8l3 3 7-7" })
4646
+ }), ur = /* @__PURE__ */ k("svg", {
4647
+ width: "16",
4648
+ height: "16",
4649
+ viewBox: "0 0 16 16",
4650
+ fill: "none",
4651
+ stroke: "currentColor",
4652
+ strokeWidth: "2",
4653
+ strokeLinecap: "round",
4654
+ children: [/* @__PURE__ */ O("circle", {
4655
+ cx: "8",
4656
+ cy: "8",
4657
+ r: "6"
4658
+ }), /* @__PURE__ */ O("path", { d: "M8 5v3M8 10.5v.5" })]
4659
+ }), dr = /* @__PURE__ */ O("svg", {
4660
+ width: "14",
4661
+ height: "14",
4662
+ viewBox: "0 0 14 14",
4663
+ fill: "none",
4664
+ stroke: "currentColor",
4665
+ strokeWidth: "2",
4666
+ strokeLinecap: "round",
4667
+ children: /* @__PURE__ */ O("path", { d: "M3 3l8 8M11 3l-8 8" })
4668
+ }), fr = /* @__PURE__ */ k("svg", {
4669
+ width: "14",
4670
+ height: "14",
4671
+ viewBox: "0 0 14 14",
4672
+ fill: "none",
4673
+ stroke: "currentColor",
4674
+ strokeWidth: "2",
4675
+ strokeLinecap: "round",
4676
+ strokeLinejoin: "round",
4677
+ children: [/* @__PURE__ */ O("path", { d: "M1 2v4h4M13 12V8H9" }), /* @__PURE__ */ O("path", { d: "M3.5 9A5 5 0 0112.5 7M10.5 5A5 5 0 001.5 7" })]
4678
+ }), pr = x(function({ className: t, files: n, onCancel: r, onRetry: i }, a) {
4679
+ return /* @__PURE__ */ O("div", {
4680
+ ref: a,
4681
+ className: e("flex flex-col gds-gap-sm", t),
4682
+ "data-component": "upload-progress",
4683
+ children: n.map((t) => /* @__PURE__ */ k("div", {
4684
+ className: "flex flex-col gds-gap-sm gds-pad-x gds-pad-y rounded border border-border bg-surface",
4685
+ children: [
4686
+ /* @__PURE__ */ k("div", {
4687
+ className: "flex items-center gds-gap-sm",
4688
+ children: [
4689
+ t.status === "done" && /* @__PURE__ */ O("span", {
4690
+ className: "shrink-0 text-success",
4691
+ children: lr
4692
+ }),
4693
+ t.status === "error" && /* @__PURE__ */ O("span", {
4694
+ className: "shrink-0 text-danger",
4695
+ children: ur
4696
+ }),
4697
+ t.status === "uploading" && /* @__PURE__ */ O("span", { className: "shrink-0 h-4 w-4 animate-spin rounded-full border-2 border-accent border-t-transparent" }),
4698
+ /* @__PURE__ */ O("span", {
4699
+ className: "min-w-0 flex-1 truncate gds-text text-fg",
4700
+ children: t.name
4701
+ }),
4702
+ t.status === "uploading" && r !== void 0 && /* @__PURE__ */ O("button", {
4703
+ type: "button",
4704
+ "aria-label": `Cancel ${t.name}`,
4705
+ className: e("shrink-0 p-0.5 text-fg-muted hover:text-fg", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
4706
+ onClick: () => r(t.name),
4707
+ children: dr
4708
+ }),
4709
+ t.status === "error" && i !== void 0 && /* @__PURE__ */ O("button", {
4710
+ type: "button",
4711
+ "aria-label": `Retry ${t.name}`,
4712
+ className: e("shrink-0 p-0.5 text-fg-muted hover:text-fg", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-1 focus-visible:ring-offset-bg"),
4713
+ onClick: () => i(t.name),
4714
+ children: fr
4715
+ })
4716
+ ]
4717
+ }),
4718
+ t.status === "uploading" && /* @__PURE__ */ O("div", {
4719
+ className: "h-1.5 w-full overflow-hidden rounded-full bg-bg-tertiary",
4720
+ children: /* @__PURE__ */ O("div", {
4721
+ className: "h-full rounded-full bg-accent transition-all duration-300",
4722
+ style: { width: `${Math.min(100, Math.max(0, t.progress))}%` }
4723
+ })
4724
+ }),
4725
+ t.status === "error" && t.error !== void 0 && /* @__PURE__ */ O("span", {
4726
+ className: "text-xs text-danger",
4727
+ children: t.error
4728
+ })
4729
+ ]
4730
+ }, t.name))
4731
+ });
4732
+ }), mr = {
3853
4733
  away: "bg-warning",
3854
4734
  busy: "bg-danger",
3855
4735
  offline: "bg-fg-muted/40",
3856
4736
  online: "bg-success"
3857
- }, kn = x(function({ name: n, avatar: r, role: i, department: a, email: o, status: s, glass: c, className: l, children: u }, d) {
4737
+ }, hr = x(function({ name: n, avatar: r, role: i, department: a, email: o, status: s, glass: c, className: l, children: u }, d) {
3858
4738
  let f = (n ?? "").split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase();
3859
4739
  return /* @__PURE__ */ k("div", {
3860
4740
  ref: d,
@@ -3870,7 +4750,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3870
4750
  src: r,
3871
4751
  alt: n,
3872
4752
  className: "h-9 w-9 rounded-full object-cover"
3873
- }), s !== void 0 && /* @__PURE__ */ O("span", { className: e("absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-surface", $[s]) })]
4753
+ }), s !== void 0 && /* @__PURE__ */ O("span", { className: e("absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-surface", mr[s]) })]
3874
4754
  }),
3875
4755
  /* @__PURE__ */ k("div", {
3876
4756
  className: "flex min-w-0 flex-col gap-0.5",
@@ -3918,7 +4798,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3918
4798
  u
3919
4799
  ]
3920
4800
  });
3921
- }), An = x(function({ avatar: t, className: n, name: r, role: i, size: a = "default", ...o }, s) {
4801
+ }), gr = x(function({ avatar: t, className: n, name: r, role: i, size: a = "default", ...o }, s) {
3922
4802
  let c = a === "sm" ? "sm" : "default", l = a === "sm" ? "text-xs" : "text-sm";
3923
4803
  return /* @__PURE__ */ k("div", {
3924
4804
  className: e("inline-flex items-center gap-2 select-none", n),
@@ -3940,7 +4820,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3940
4820
  })]
3941
4821
  })]
3942
4822
  });
3943
- }), jn = x(function({ name: t, avatar: n, role: r, items: i, onSelect: a, className: o }, s) {
4823
+ }), _r = x(function({ name: t, avatar: n, role: r, items: i, onSelect: a, className: o }, s) {
3944
4824
  let [c, l] = E(!1), u = t.split(" ").map((e) => e[0]).join("").slice(0, 2).toUpperCase();
3945
4825
  return /* @__PURE__ */ k("div", {
3946
4826
  ref: s,
@@ -3981,7 +4861,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
3981
4861
  }, t.id))]
3982
4862
  })]
3983
4863
  });
3984
- }), Mn = x(function({ className: t, latest: n, version: r, ...i }, a) {
4864
+ }), vr = x(function({ className: t, latest: n, version: r, ...i }, a) {
3985
4865
  let o = n !== void 0 && n !== r;
3986
4866
  return /* @__PURE__ */ k("span", {
3987
4867
  className: e("inline-flex items-center gap-1.5 rounded-full px-2.5 py-0.5 text-xs font-medium tabular-nums", o ? "bg-warning/15 text-warning" : "bg-surface text-fg-muted", t),
@@ -4009,7 +4889,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
4009
4889
  })
4010
4890
  ]
4011
4891
  });
4012
- }), Nn = x(function({ children: t, text: n, opacity: r = .1, className: i }, a) {
4892
+ }), yr = x(function({ children: t, text: n, opacity: r = .1, className: i }, a) {
4013
4893
  return /* @__PURE__ */ k("div", {
4014
4894
  ref: a,
4015
4895
  className: e("relative overflow-hidden", i),
@@ -4027,7 +4907,7 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
4027
4907
  })
4028
4908
  })]
4029
4909
  });
4030
- }), Pn = x(function({ steps: t, currentStep: n, onStepChange: r, className: i, ...a }, o) {
4910
+ }), br = x(function({ steps: t, currentStep: n, onStepChange: r, className: i, ...a }, o) {
4031
4911
  let [s, c] = E(0), l = n ?? s;
4032
4912
  function u(e) {
4033
4913
  r === void 0 ? c(e) : r(e);
@@ -4062,6 +4942,6 @@ var Sn = x(function({ className: n, disabled: r = !1, error: a = !1, glass: o, m
4062
4942
  });
4063
4943
  });
4064
4944
  //#endregion
4065
- export { ht as $, Qt as A, Ae as At, It as B, de as Bt, ln as C, Re as Ct, rn as D, Me as Dt, sn as E, Ne as Et, Ht as F, be as Ft, Tt as G, se as Gt, At as H, me as Ht, Vt as I, ye as It, xt as J, ne as Jt, wt as K, ae as Kt, Bt as L, ve as Lt, Yt as M, De as Mt, Gt as N, we as Nt, tn as O, je as Ot, Ut as P, xe as Pt, _t as Q, A as Qt, Rt as R, _e as Rt, un as S, Be as St, K as T, Pe as Tt, Ot as U, fe as Ut, Mt as V, pe as Vt, Et as W, ue as Wt, yt as X, N as Xt, bt as Y, F as Yt, vt as Z, M as Zt, gn as _, Ke as _t, An as a, dt as at, pn as b, Ue as bt, En as c, ot as ct, wn as d, et as dt, H as et, Sn as f, $e as ft, X as g, Je as gt, Z as h, Ye as ht, jn as i, ft as it, Zt as j, Oe as jt, en as k, R as kt, Dn as l, it as lt, _n as m, Xe as mt, Nn as n, V as nt, kn as o, ut as ot, yn as p, Ze as pt, St as q, re as qt, Mn as r, pt as rt, On as s, st, Pn as t, mt as tt, Tn as u, tt as ut, hn as v, Ge as vt, cn as w, Fe as wt, dn as x, He as xt, mn as y, We as yt, Lt as z, he as zt };
4945
+ export { Qt as $, Ie as $t, K as A, dt as At, yn as B, $e as Bt, Gn as C, P as Cn, Ct, Bn as D, gt as Dt, Vn as E, A as En, vt as Et, kn as F, at as Ft, pn as G, We as Gt, gn as H, Ye as Ht, On as I, rt as It, cn as J, Ve as Jt, fn as K, Ue as Kt, En as L, nt as Lt, Pn as M, ct as Mt, Nn as N, st as Nt, zn as O, ht as Ot, jn as P, ot as Pt, nn as Q, Le as Qt, Tn as R, tt as Rt, qn as S, ee as Sn, wt as St, Un as T, M as Tn, yt as Tt, hn as U, Ke as Ut, vn as V, Ze as Vt, mn as W, Ge as Wt, on as X, Be as Xt, sn as Y, L as Yt, rn as Z, Re as Zt, Zn as _, le as _n, H as _t, gr as a, Ee as an, Ht as at, X as b, ie as bn, Et as bt, cr as c, Se as cn, zt as ct, ar as d, _e as dn, Ft as dt, Fe as en, Xt as et, ir as f, pe as fn, Pt as ft, Qn as g, fe as gn, Ot as gt, $n as h, me as hn, At as ht, _r as i, De as in, Ut as it, Ln as j, ut as jt, Rn as k, ft as kt, or as l, xe as ln, Lt as lt, er as m, ge as mn, Mt as mt, yr as n, Ae as nn, Kt as nt, hr as o, we as on, Vt as ot, nr as p, he as pn, Nt as pt, un as q, He as qt, vr as r, Te as rn, Wt as rt, pr as s, Ce as sn, Bt as st, br as t, Ne as tn, Jt as tt, sr as u, be as un, It as ut, Yn as v, se as vn, Dt as vt, Wn as w, N as wn, St as wt, Jn as x, re as xn, Tt as xt, Z as y, ae as yn, V as yt, Cn as z, et as zt };
4066
4946
 
4067
- //# sourceMappingURL=l4-molecules-DftsX-gO.js.map
4947
+ //# sourceMappingURL=l4-molecules-Bnt38HxY.js.map