lucent-ui 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as k, jsx as n, Fragment as ae } from "react/jsx-runtime";
2
- import { forwardRef as ge, useState as E, useRef as O, useEffect as G, useCallback as ee, useContext as le, createContext as ve, useLayoutEffect as ie, useId as ke, Children as hn, isValidElement as mn, cloneElement as gn } from "react";
2
+ import { forwardRef as ge, useState as E, useRef as O, useEffect as G, useCallback as ee, useContext as ie, createContext as ve, useLayoutEffect as se, useId as ke, Children as hn, isValidElement as mn, cloneElement as gn } from "react";
3
3
  import { createPortal as pe } from "react-dom";
4
4
  const vn = {
5
5
  primary: {
@@ -44,13 +44,13 @@ const vn = {
44
44
  md: { height: "calc(var(--lucent-space-10) * 0.5 + 22px)", padding: "0 var(--lucent-space-5)", fontSize: "var(--lucent-font-size-md)" },
45
45
  lg: { height: "calc(var(--lucent-space-12) * 0.5 + 26px)", padding: "0 var(--lucent-space-6)", fontSize: "var(--lucent-font-size-lg)" }
46
46
  }, Le = ge(
47
- ({ variant: e = "primary", size: t = "md", loading: r = !1, fullWidth: o = !1, spread: a = !1, leftIcon: i, rightIcon: l, chevron: s = !1, disableHoverStyles: c = !1, bordered: d = !0, children: p, disabled: u, style: v, ...m }, b) => {
48
- const h = u ?? r, f = !p && !r && (!!i || !!l);
47
+ ({ variant: e = "primary", size: t = "md", loading: r = !1, fullWidth: o = !1, spread: a = !1, leftIcon: i, rightIcon: l, chevron: s = !1, disableHoverStyles: c = !1, bordered: d = !0, children: u, disabled: p, style: y, ...h }, x) => {
48
+ const m = p ?? r, f = !u && !r && (!!i || !!l);
49
49
  return /* @__PURE__ */ k(
50
50
  "button",
51
51
  {
52
- ref: b,
53
- disabled: h,
52
+ ref: x,
53
+ disabled: m,
54
54
  "aria-busy": r,
55
55
  style: {
56
56
  display: "inline-flex",
@@ -62,7 +62,7 @@ const vn = {
62
62
  lineHeight: 1,
63
63
  letterSpacing: "0.01em",
64
64
  borderRadius: "var(--lucent-radius-lg)",
65
- cursor: h ? "not-allowed" : "pointer",
65
+ cursor: m ? "not-allowed" : "pointer",
66
66
  width: o ? "100%" : void 0,
67
67
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default), border-color var(--lucent-duration-fast) var(--lucent-easing-default), box-shadow var(--lucent-duration-fast) var(--lucent-easing-default), transform 80ms var(--lucent-easing-default)",
68
68
  whiteSpace: "nowrap",
@@ -72,8 +72,8 @@ const vn = {
72
72
  ...bn[t],
73
73
  ...f && { padding: 0, aspectRatio: "1" },
74
74
  ...vn[e],
75
- ...v,
76
- ...h && {
75
+ ...y,
76
+ ...m && {
77
77
  background: "color-mix(in srgb, var(--lucent-surface-secondary) 70%, var(--lucent-border-default))",
78
78
  color: "color-mix(in srgb, var(--lucent-text-disabled) 50%, var(--lucent-border-default))",
79
79
  borderColor: "transparent"
@@ -82,37 +82,37 @@ const vn = {
82
82
  ...d === !1 && { border: "none" }
83
83
  },
84
84
  onMouseEnter: (g) => {
85
- var w;
86
- !h && !c && xn(g.currentTarget, e, d), (w = m.onMouseEnter) == null || w.call(m, g);
85
+ var v;
86
+ !m && !c && xn(g.currentTarget, e, d), (v = h.onMouseEnter) == null || v.call(h, g);
87
87
  },
88
88
  onMouseLeave: (g) => {
89
- var w;
90
- !h && !c && wn(g.currentTarget, e, d), (w = m.onMouseLeave) == null || w.call(m, g);
89
+ var v;
90
+ !m && !c && wn(g.currentTarget, e, d), (v = h.onMouseLeave) == null || v.call(h, g);
91
91
  },
92
92
  onMouseDown: (g) => {
93
- var w;
94
- if (!h) {
93
+ var v;
94
+ if (!m) {
95
95
  const C = e === "danger" || e === "danger-outline" || e === "danger-ghost" ? "var(--lucent-danger-default)" : "var(--lucent-accent-default)";
96
96
  g.currentTarget.style.transform = "translateY(1px)", g.currentTarget.style.boxShadow = `0 0 0 2px var(--lucent-surface), 0 0 0 4px ${C}`, g.currentTarget.dataset.pressed = "1";
97
97
  }
98
- (w = m.onMouseDown) == null || w.call(m, g);
98
+ (v = h.onMouseDown) == null || v.call(h, g);
99
99
  },
100
100
  onMouseUp: (g) => {
101
- var w;
102
- g.currentTarget.style.transform = "", g.currentTarget.style.boxShadow = "", delete g.currentTarget.dataset.pressed, (w = m.onMouseUp) == null || w.call(m, g);
101
+ var v;
102
+ g.currentTarget.style.transform = "", g.currentTarget.style.boxShadow = "", delete g.currentTarget.dataset.pressed, (v = h.onMouseUp) == null || v.call(h, g);
103
103
  },
104
104
  onFocus: (g) => {
105
- var w;
106
- g.currentTarget.dataset.pressed || (g.currentTarget.style.boxShadow = "0 0 0 3px var(--lucent-accent-subtle)"), (w = m.onFocus) == null || w.call(m, g);
105
+ var v;
106
+ g.currentTarget.dataset.pressed || (g.currentTarget.style.boxShadow = "0 0 0 3px var(--lucent-accent-subtle)"), (v = h.onFocus) == null || v.call(h, g);
107
107
  },
108
108
  onBlur: (g) => {
109
- var w;
110
- g.currentTarget.style.boxShadow = "", (w = m.onBlur) == null || w.call(m, g);
109
+ var v;
110
+ g.currentTarget.style.boxShadow = "", (v = h.onBlur) == null || v.call(h, g);
111
111
  },
112
- ...m,
112
+ ...h,
113
113
  children: [
114
114
  i,
115
- r ? /* @__PURE__ */ n(Tn, {}) : p,
115
+ r ? /* @__PURE__ */ n(Tn, {}) : u,
116
116
  !r && l,
117
117
  !r && s && /* @__PURE__ */ n(Sn, { size: t })
118
118
  ]
@@ -308,7 +308,7 @@ const Vi = {
308
308
  sm: "calc(var(--lucent-space-8) * 0.5 + 16px)",
309
309
  md: "calc(var(--lucent-space-10) * 0.5 + 20px)",
310
310
  lg: "calc(var(--lucent-space-12) * 0.5 + 24px)"
311
- }, ct = {
311
+ }, dt = {
312
312
  sm: "var(--lucent-font-size-sm)",
313
313
  md: "var(--lucent-font-size-md)",
314
314
  lg: "var(--lucent-font-size-md)"
@@ -320,7 +320,7 @@ const Vi = {
320
320
  sm: "var(--lucent-space-3)",
321
321
  md: "var(--lucent-space-4)",
322
322
  lg: "var(--lucent-space-4)"
323
- }, dt = {
323
+ }, ut = {
324
324
  sm: "calc(var(--lucent-space-3) + 14px + var(--lucent-space-2))",
325
325
  md: "calc(var(--lucent-space-4) + 18px + var(--lucent-space-2))",
326
326
  lg: "calc(var(--lucent-space-4) + 20px + var(--lucent-space-3))"
@@ -336,13 +336,13 @@ const Vi = {
336
336
  suffix: s,
337
337
  id: c,
338
338
  style: d,
339
- ...p
340
- }, u) => {
341
- const v = c ?? `lucent-input-${Math.random().toString(36).slice(2, 7)}`, m = !!o, b = !!p.disabled, [h, f] = E(!1), [g, w] = E(!1), y = b ? "transparent" : m ? "var(--lucent-danger-default)" : h ? "var(--lucent-focus-ring)" : g ? "var(--lucent-border-strong)" : "var(--lucent-border-default)", C = h ? `0 0 0 3px ${m ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none", T = {
339
+ ...u
340
+ }, p) => {
341
+ const y = c ?? `lucent-input-${Math.random().toString(36).slice(2, 7)}`, h = !!o, x = !!u.disabled, [m, f] = E(!1), [g, v] = E(!1), b = x ? "transparent" : h ? "var(--lucent-danger-default)" : m ? "var(--lucent-focus-ring)" : g ? "var(--lucent-border-strong)" : "var(--lucent-border-default)", C = m ? `0 0 0 3px ${h ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none", T = {
342
342
  display: "flex",
343
343
  alignItems: "center",
344
- color: b ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
345
- fontSize: ct[e],
344
+ color: x ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
345
+ fontSize: dt[e],
346
346
  fontFamily: "var(--lucent-font-family-base)",
347
347
  whiteSpace: "nowrap",
348
348
  userSelect: "none",
@@ -352,11 +352,11 @@ const Vi = {
352
352
  t && /* @__PURE__ */ n(
353
353
  "label",
354
354
  {
355
- htmlFor: v,
355
+ htmlFor: y,
356
356
  style: {
357
357
  fontSize: je[e],
358
358
  fontWeight: "var(--lucent-font-weight-medium)",
359
- color: b ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
359
+ color: x ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
360
360
  fontFamily: "var(--lucent-font-family-base)"
361
361
  },
362
362
  children: t
@@ -369,28 +369,28 @@ const Vi = {
369
369
  display: "flex",
370
370
  alignItems: "stretch",
371
371
  height: Cn[e],
372
- border: `1px solid ${y}`,
372
+ border: `1px solid ${b}`,
373
373
  borderRadius: "var(--lucent-radius-lg)",
374
374
  boxShadow: C,
375
- background: b ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
375
+ background: x ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
376
376
  overflow: "hidden",
377
- cursor: b ? "not-allowed" : void 0,
377
+ cursor: x ? "not-allowed" : void 0,
378
378
  transition: [
379
379
  "border-color var(--lucent-duration-fast) var(--lucent-easing-default)",
380
380
  "box-shadow var(--lucent-duration-fast) var(--lucent-easing-default)"
381
381
  ].join(", ")
382
382
  },
383
383
  onMouseEnter: () => {
384
- b || w(!0);
384
+ x || v(!0);
385
385
  },
386
- onMouseLeave: () => w(!1),
386
+ onMouseLeave: () => v(!1),
387
387
  children: [
388
388
  l && /* @__PURE__ */ n("span", { style: S, children: l }),
389
389
  /* @__PURE__ */ k("div", { style: { position: "relative", flex: 1, display: "flex", alignItems: "center", minWidth: 0 }, children: [
390
390
  a && /* @__PURE__ */ n("span", { style: {
391
391
  position: "absolute",
392
392
  left: fe[e],
393
- color: b ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
393
+ color: x ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
394
394
  display: "flex",
395
395
  alignItems: "center",
396
396
  pointerEvents: "none"
@@ -398,39 +398,39 @@ const Vi = {
398
398
  /* @__PURE__ */ n(
399
399
  "input",
400
400
  {
401
- ref: u,
402
- id: v,
403
- "aria-invalid": m,
404
- "aria-describedby": m ? `${v}-error` : r ? `${v}-helper` : void 0,
401
+ ref: p,
402
+ id: y,
403
+ "aria-invalid": h,
404
+ "aria-describedby": h ? `${y}-error` : r ? `${y}-helper` : void 0,
405
405
  style: {
406
406
  width: "100%",
407
407
  height: "100%",
408
- paddingLeft: a ? dt[e] : fe[e],
409
- paddingRight: i ? dt[e] : fe[e],
410
- fontSize: ct[e],
408
+ paddingLeft: a ? ut[e] : fe[e],
409
+ paddingRight: i ? ut[e] : fe[e],
410
+ fontSize: dt[e],
411
411
  fontFamily: "var(--lucent-font-family-base)",
412
- color: b ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
412
+ color: x ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
413
413
  background: "transparent",
414
414
  border: "none",
415
415
  outline: "none",
416
- cursor: b ? "not-allowed" : void 0,
416
+ cursor: x ? "not-allowed" : void 0,
417
417
  boxSizing: "border-box"
418
418
  },
419
- ...p,
419
+ ...u,
420
420
  onFocus: (I) => {
421
421
  var A;
422
- f(!0), (A = p.onFocus) == null || A.call(p, I);
422
+ f(!0), (A = u.onFocus) == null || A.call(u, I);
423
423
  },
424
424
  onBlur: (I) => {
425
425
  var A;
426
- f(!1), (A = p.onBlur) == null || A.call(p, I);
426
+ f(!1), (A = u.onBlur) == null || A.call(u, I);
427
427
  }
428
428
  }
429
429
  ),
430
430
  i && /* @__PURE__ */ n("span", { style: {
431
431
  position: "absolute",
432
432
  right: fe[e],
433
- color: b ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
433
+ color: x ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
434
434
  display: "flex",
435
435
  alignItems: "center"
436
436
  }, children: i })
@@ -439,10 +439,10 @@ const Vi = {
439
439
  ]
440
440
  }
441
441
  ),
442
- m && /* @__PURE__ */ n(
442
+ h && /* @__PURE__ */ n(
443
443
  "span",
444
444
  {
445
- id: `${v}-error`,
445
+ id: `${y}-error`,
446
446
  role: "alert",
447
447
  style: {
448
448
  fontSize: je[e],
@@ -452,10 +452,10 @@ const Vi = {
452
452
  children: o
453
453
  }
454
454
  ),
455
- !m && r && /* @__PURE__ */ n(
455
+ !h && r && /* @__PURE__ */ n(
456
456
  "span",
457
457
  {
458
- id: `${v}-helper`,
458
+ id: `${y}-helper`,
459
459
  style: {
460
460
  fontSize: je[e],
461
461
  color: "var(--lucent-text-secondary)",
@@ -516,30 +516,30 @@ const ji = {
516
516
  md: "var(--lucent-space-4)",
517
517
  lg: "var(--lucent-space-4)"
518
518
  }, zn = ge(
519
- ({ label: e, helperText: t, errorText: r, autoResize: o = !1, maxLength: a, showCount: i = !1, size: l = "md", id: s, value: c, onChange: d, disabled: p, style: u, ...v }, m) => {
520
- const b = O(null), h = m ?? b, f = s ?? `lucent-textarea-${Math.random().toString(36).slice(2, 7)}`, g = !!r, w = !!p, y = typeof c == "string" ? c.length : 0;
519
+ ({ label: e, helperText: t, errorText: r, autoResize: o = !1, maxLength: a, showCount: i = !1, size: l = "md", id: s, value: c, onChange: d, disabled: u, style: p, ...y }, h) => {
520
+ const x = O(null), m = h ?? x, f = s ?? `lucent-textarea-${Math.random().toString(36).slice(2, 7)}`, g = !!r, v = !!u, b = typeof c == "string" ? c.length : 0;
521
521
  G(() => {
522
522
  if (!o) return;
523
- const T = h.current;
523
+ const T = m.current;
524
524
  T && (T.style.height = "auto", T.style.height = `${T.scrollHeight}px`);
525
- }, [c, o, h]);
526
- const C = w ? "transparent" : g ? "var(--lucent-danger-default)" : "var(--lucent-border-default)";
525
+ }, [c, o, m]);
526
+ const C = v ? "transparent" : g ? "var(--lucent-danger-default)" : "var(--lucent-border-default)";
527
527
  return /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", width: "100%" }, children: [
528
528
  e && /* @__PURE__ */ n("label", { htmlFor: f, style: {
529
529
  fontSize: Mn[l],
530
530
  fontWeight: "var(--lucent-font-weight-medium)",
531
- color: w ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
531
+ color: v ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
532
532
  fontFamily: "var(--lucent-font-family-base)"
533
533
  }, children: e }),
534
534
  /* @__PURE__ */ n(
535
535
  "textarea",
536
536
  {
537
- ref: h,
537
+ ref: m,
538
538
  id: f,
539
539
  maxLength: a,
540
540
  value: c,
541
541
  onChange: d,
542
- disabled: p,
542
+ disabled: u,
543
543
  "aria-invalid": g,
544
544
  "aria-describedby": g ? `${f}-error` : t ? `${f}-helper` : void 0,
545
545
  style: {
@@ -548,38 +548,38 @@ const ji = {
548
548
  padding: Dn[l],
549
549
  fontSize: In[l],
550
550
  fontFamily: "var(--lucent-font-family-base)",
551
- color: w ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
552
- background: w ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
551
+ color: v ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
552
+ background: v ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
553
553
  border: `1px solid ${C}`,
554
554
  borderRadius: "var(--lucent-radius-lg)",
555
555
  outline: "none",
556
556
  resize: o ? "none" : "vertical",
557
557
  boxSizing: "border-box",
558
558
  lineHeight: "var(--lucent-line-height-base)",
559
- cursor: w ? "not-allowed" : void 0,
559
+ cursor: v ? "not-allowed" : void 0,
560
560
  transition: [
561
561
  "border-color var(--lucent-duration-fast) var(--lucent-easing-default)",
562
562
  "box-shadow var(--lucent-duration-fast) var(--lucent-easing-default)"
563
563
  ].join(", "),
564
- ...u
564
+ ...p
565
565
  },
566
566
  onMouseEnter: (T) => {
567
567
  var S;
568
- !w && T.currentTarget !== document.activeElement && (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-border-strong)"), (S = v.onMouseEnter) == null || S.call(v, T);
568
+ !v && T.currentTarget !== document.activeElement && (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-border-strong)"), (S = y.onMouseEnter) == null || S.call(y, T);
569
569
  },
570
570
  onMouseLeave: (T) => {
571
571
  var S;
572
- !w && T.currentTarget !== document.activeElement && (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-border-default)"), (S = v.onMouseLeave) == null || S.call(v, T);
572
+ !v && T.currentTarget !== document.activeElement && (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-border-default)"), (S = y.onMouseLeave) == null || S.call(y, T);
573
573
  },
574
574
  onFocus: (T) => {
575
575
  var S;
576
- w || (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-focus-ring)", T.currentTarget.style.boxShadow = `0 0 0 3px ${g ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}`, (S = v.onFocus) == null || S.call(v, T));
576
+ v || (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-focus-ring)", T.currentTarget.style.boxShadow = `0 0 0 3px ${g ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}`, (S = y.onFocus) == null || S.call(y, T));
577
577
  },
578
578
  onBlur: (T) => {
579
579
  var S;
580
- w || (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-border-default)", T.currentTarget.style.boxShadow = "none", (S = v.onBlur) == null || S.call(v, T));
580
+ v || (T.currentTarget.style.borderColor = g ? "var(--lucent-danger-default)" : "var(--lucent-border-default)", T.currentTarget.style.boxShadow = "none", (S = y.onBlur) == null || S.call(y, T));
581
581
  },
582
- ...v
582
+ ...y
583
583
  }
584
584
  ),
585
585
  /* @__PURE__ */ k("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-start" }, children: [
@@ -589,12 +589,12 @@ const ji = {
589
589
  ] }),
590
590
  (i || a) && /* @__PURE__ */ k("span", { style: {
591
591
  fontSize: "var(--lucent-font-size-xs)",
592
- color: a && y >= a ? "var(--lucent-danger-text)" : "var(--lucent-text-secondary)",
592
+ color: a && b >= a ? "var(--lucent-danger-text)" : "var(--lucent-text-secondary)",
593
593
  fontFamily: "var(--lucent-font-family-mono)",
594
594
  flexShrink: 0,
595
595
  marginLeft: "var(--lucent-space-2)"
596
596
  }, children: [
597
- y,
597
+ b,
598
598
  a ? `/${a}` : ""
599
599
  ] })
600
600
  ] })
@@ -788,46 +788,46 @@ function Ln({
788
788
  dot: s = !1,
789
789
  pulse: c = !1,
790
790
  borderless: d = !1,
791
- ghost: p = !1,
792
- disabled: u = !1,
793
- style: v
791
+ ghost: u = !1,
792
+ disabled: p = !1,
793
+ style: y
794
794
  }) {
795
- const m = Bn[t], b = qn[r], [h, f] = E(!1), g = s && c, w = s && !e, y = !u && (o || a), C = `color-mix(in srgb, ${m.color} 8%, transparent)`, T = b.dotSize * 3, S = {
795
+ const h = Bn[t], x = qn[r], [m, f] = E(!1), g = s && c, v = s && !e, b = !p && (o || a), C = `color-mix(in srgb, ${h.color} 8%, transparent)`, T = x.dotSize * 3, S = {
796
796
  display: "inline-flex",
797
797
  alignItems: "center",
798
- justifyContent: w ? "center" : void 0,
799
- gap: w ? void 0 : b.gap,
800
- height: w ? T : b.height,
801
- width: w ? T : void 0,
802
- padding: w ? 0 : o ? b.paddingDismiss : b.padding,
803
- fontSize: b.fontSize,
798
+ justifyContent: v ? "center" : void 0,
799
+ gap: v ? void 0 : x.gap,
800
+ height: v ? T : x.height,
801
+ width: v ? T : void 0,
802
+ padding: v ? 0 : o ? x.paddingDismiss : x.padding,
803
+ fontSize: x.fontSize,
804
804
  fontFamily: "var(--lucent-font-family-base)",
805
805
  fontWeight: "var(--lucent-font-weight-medium)",
806
806
  lineHeight: 1,
807
- borderRadius: w ? "var(--lucent-radius-full)" : "var(--lucent-radius-lg)",
808
- background: p ? h && y ? C : "transparent" : h && y ? m.hoverBg : m.bg,
809
- color: m.color,
810
- border: p || d ? "1px solid transparent" : `1px solid ${h && y ? m.hoverBorder : m.border}`,
807
+ borderRadius: v ? "var(--lucent-radius-full)" : "var(--lucent-radius-lg)",
808
+ background: u ? m && b ? C : "transparent" : m && b ? h.hoverBg : h.bg,
809
+ color: h.color,
810
+ border: u || d ? "1px solid transparent" : `1px solid ${m && b ? h.hoverBorder : h.border}`,
811
811
  whiteSpace: "nowrap",
812
812
  boxSizing: "border-box",
813
- opacity: u ? 0.5 : 1,
814
- transform: h && y ? "translateY(-1px)" : "none",
815
- boxShadow: h && y && !p ? `0 2px 4px ${m.hoverBorder}22` : "none",
813
+ opacity: p ? 0.5 : 1,
814
+ transform: m && b ? "translateY(-1px)" : "none",
815
+ boxShadow: m && b && !u ? `0 2px 4px ${h.hoverBorder}22` : "none",
816
816
  transition: [
817
817
  "transform var(--lucent-duration-fast) var(--lucent-easing-default)",
818
818
  "box-shadow var(--lucent-duration-fast) var(--lucent-easing-default)",
819
819
  "border-color var(--lucent-duration-fast) var(--lucent-easing-default)",
820
820
  "background var(--lucent-duration-fast) var(--lucent-easing-default)"
821
821
  ].join(", "),
822
- cursor: y ? "pointer" : "default",
822
+ cursor: b ? "pointer" : "default",
823
823
  // Reset button styles when onClick
824
824
  ...a ? { outline: "none" } : {},
825
- ...v
825
+ ...y
826
826
  }, L = /* @__PURE__ */ k(ae, { children: [
827
827
  g && /* @__PURE__ */ n("style", { children: Rn }),
828
828
  l && /* @__PURE__ */ n("span", { style: {
829
- width: b.dotSize + 2,
830
- height: b.dotSize + 2,
829
+ width: x.dotSize + 2,
830
+ height: x.dotSize + 2,
831
831
  borderRadius: "50%",
832
832
  background: l,
833
833
  border: "1px solid rgba(0,0,0,0.1)",
@@ -835,8 +835,8 @@ function Ln({
835
835
  } }),
836
836
  s && !l && /* @__PURE__ */ k("span", { style: {
837
837
  position: "relative",
838
- width: b.dotSize,
839
- height: b.dotSize,
838
+ width: x.dotSize,
839
+ height: x.dotSize,
840
840
  flexShrink: 0
841
841
  }, children: [
842
842
  /* @__PURE__ */ n("span", { style: {
@@ -857,8 +857,8 @@ function Ln({
857
857
  display: "inline-flex",
858
858
  alignItems: "center",
859
859
  justifyContent: "center",
860
- width: b.iconSize,
861
- height: b.iconSize,
860
+ width: x.iconSize,
861
+ height: x.iconSize,
862
862
  flexShrink: 0
863
863
  }, children: i }),
864
864
  e,
@@ -866,32 +866,32 @@ function Ln({
866
866
  "button",
867
867
  {
868
868
  type: "button",
869
- onClick: u ? void 0 : (A) => {
869
+ onClick: p ? void 0 : (A) => {
870
870
  A.stopPropagation(), o();
871
871
  },
872
- disabled: u,
872
+ disabled: p,
873
873
  "aria-label": "Dismiss",
874
874
  style: {
875
875
  display: "inline-flex",
876
876
  alignItems: "center",
877
877
  justifyContent: "center",
878
- width: b.iconSize + 2,
879
- height: b.iconSize + 2,
878
+ width: x.iconSize + 2,
879
+ height: x.iconSize + 2,
880
880
  padding: 0,
881
881
  border: "none",
882
882
  borderRadius: "var(--lucent-radius-lg)",
883
883
  background: "transparent",
884
884
  color: "inherit",
885
- cursor: u ? "not-allowed" : "pointer",
885
+ cursor: p ? "not-allowed" : "pointer",
886
886
  flexShrink: 0,
887
887
  lineHeight: 1
888
888
  },
889
- children: /* @__PURE__ */ n("svg", { width: b.iconSize - 2, height: b.iconSize - 2, viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", children: /* @__PURE__ */ n("path", { d: "M2 2L8 8M8 2L2 8" }) })
889
+ children: /* @__PURE__ */ n("svg", { width: x.iconSize - 2, height: x.iconSize - 2, viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", children: /* @__PURE__ */ n("path", { d: "M2 2L8 8M8 2L2 8" }) })
890
890
  }
891
891
  )
892
892
  ] }), I = {
893
893
  onMouseEnter: () => {
894
- u || f(!0);
894
+ p || f(!0);
895
895
  },
896
896
  onMouseLeave: () => f(!1)
897
897
  };
@@ -899,8 +899,8 @@ function Ln({
899
899
  "button",
900
900
  {
901
901
  type: "button",
902
- onClick: u ? void 0 : a,
903
- disabled: u,
902
+ onClick: p ? void 0 : a,
903
+ disabled: p,
904
904
  style: S,
905
905
  ...I,
906
906
  children: L
@@ -1104,7 +1104,7 @@ const Ji = {
1104
1104
  notes: 'The visible SVG is aria-hidden. The label is conveyed via a visually-hidden span inside role="status".'
1105
1105
  }
1106
1106
  };
1107
- function Zi({ orientation: e = "horizontal", label: t, spacing: r = "var(--lucent-space-4)", style: o }) {
1107
+ function Zi({ orientation: e = "horizontal", label: t, spacing: r = "0", style: o }) {
1108
1108
  return e === "vertical" ? /* @__PURE__ */ n(
1109
1109
  "span",
1110
1110
  {
@@ -1170,7 +1170,7 @@ const Qi = {
1170
1170
  props: [
1171
1171
  { name: "orientation", type: "enum", required: !1, default: "horizontal", description: "Direction of the divider line.", enumValues: ["horizontal", "vertical"] },
1172
1172
  { name: "label", type: "string", required: !1, description: 'Optional centered label (horizontal only). Common use: "OR", "AND", section titles.' },
1173
- { name: "spacing", type: "string", required: !1, default: "var(--lucent-space-4)", description: "Margin on the axis perpendicular to the line." }
1173
+ { name: "spacing", type: "string", required: !1, default: "0", description: 'Margin on the axis perpendicular to the line. Defaults to 0 so parent gap-based layouts (Stack, Row) control spacing. Pass an explicit value like "var(--lucent-space-4)" for standalone use outside flex/grid containers.' }
1174
1174
  ],
1175
1175
  usageExamples: [
1176
1176
  { title: "Section separator", code: "<Divider />" },
@@ -1194,7 +1194,7 @@ const Qi = {
1194
1194
  60% { transform: scale(1.15) rotate(2deg); }
1195
1195
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
1196
1196
  }
1197
- `, Ft = ge(
1197
+ `, Pt = ge(
1198
1198
  ({
1199
1199
  label: e,
1200
1200
  size: t = "md",
@@ -1206,27 +1206,27 @@ const Qi = {
1206
1206
  disabled: s,
1207
1207
  id: c,
1208
1208
  onChange: d,
1209
- style: p,
1210
- ...u
1211
- }, v) => {
1212
- const m = O(null), b = c ?? `lucent-checkbox-${Math.random().toString(36).slice(2, 7)}`, h = Hn[t], f = i !== void 0, [g, w] = E(l ?? !1), [y, C] = E(!1), T = f ? !!i : g, S = O(T), [L, I] = E(0);
1209
+ style: u,
1210
+ ...p
1211
+ }, y) => {
1212
+ const h = O(null), x = c ?? `lucent-checkbox-${Math.random().toString(36).slice(2, 7)}`, m = Hn[t], f = i !== void 0, [g, v] = E(l ?? !1), [b, C] = E(!1), T = f ? !!i : g, S = O(T), [L, I] = E(0);
1213
1213
  G(() => {
1214
1214
  !s && S.current !== T && (S.current = T, I((q) => q + 1));
1215
1215
  }, [T, s]);
1216
1216
  const A = ee(
1217
1217
  (q) => {
1218
- m.current = q, typeof v == "function" ? v(q) : v && (v.current = q);
1218
+ h.current = q, typeof y == "function" ? y(q) : y && (y.current = q);
1219
1219
  },
1220
- [v]
1220
+ [y]
1221
1221
  );
1222
1222
  G(() => {
1223
- m.current && (m.current.indeterminate = r);
1223
+ h.current && (h.current.indeterminate = r);
1224
1224
  }, [r]);
1225
1225
  const P = (q) => {
1226
- f || w(q.target.checked), d == null || d(q);
1226
+ f || v(q.target.checked), d == null || d(q);
1227
1227
  }, $ = s ? "var(--lucent-text-disabled)" : "var(--lucent-text-on-accent)", M = {
1228
- width: h,
1229
- height: h,
1228
+ width: m,
1229
+ height: m,
1230
1230
  // fixed corner so global radius overrides (e.g. via customizer) don't
1231
1231
  // turn checkboxes into circles. the design spec keeps them slightly
1232
1232
  // rounded regardless of theming.
@@ -1253,7 +1253,7 @@ const Qi = {
1253
1253
  fontSize: t === "sm" ? "var(--lucent-font-size-sm)" : "var(--lucent-font-size-md)",
1254
1254
  color: s ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
1255
1255
  userSelect: "none",
1256
- ...o ? {} : p
1256
+ ...o ? {} : u
1257
1257
  },
1258
1258
  children: [
1259
1259
  /* @__PURE__ */ n(
@@ -1261,20 +1261,20 @@ const Qi = {
1261
1261
  {
1262
1262
  ref: A,
1263
1263
  type: "checkbox",
1264
- id: b,
1264
+ id: x,
1265
1265
  checked: f ? i : g,
1266
1266
  disabled: s,
1267
1267
  onChange: P,
1268
1268
  style: { position: "absolute", opacity: 0, width: 0, height: 0, margin: 0, pointerEvents: "none" },
1269
- ...u
1269
+ ...p
1270
1270
  }
1271
1271
  ),
1272
1272
  /* @__PURE__ */ k("span", { "aria-hidden": !0, style: M, children: [
1273
1273
  T && !r && /* @__PURE__ */ n(
1274
1274
  "svg",
1275
1275
  {
1276
- width: h - 4,
1277
- height: h - 4,
1276
+ width: m - 4,
1277
+ height: m - 4,
1278
1278
  viewBox: "0 0 10 10",
1279
1279
  fill: "none",
1280
1280
  style: { animation: "lucent-cb-mark 200ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards" },
@@ -1284,8 +1284,8 @@ const Qi = {
1284
1284
  r && /* @__PURE__ */ n(
1285
1285
  "svg",
1286
1286
  {
1287
- width: h - 4,
1288
- height: h - 4,
1287
+ width: m - 4,
1288
+ height: m - 4,
1289
1289
  viewBox: "0 0 10 10",
1290
1290
  fill: "none",
1291
1291
  style: { animation: "lucent-cb-mark 200ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards" },
@@ -1317,7 +1317,7 @@ const Qi = {
1317
1317
  },
1318
1318
  onMouseLeave: () => C(!1),
1319
1319
  style: {
1320
- border: `1px solid ${T && !s ? "var(--lucent-accent-default)" : y && !s ? "var(--lucent-border-strong)" : "var(--lucent-border-default)"}`,
1320
+ border: `1px solid ${T && !s ? "var(--lucent-accent-default)" : b && !s ? "var(--lucent-border-strong)" : "var(--lucent-border-default)"}`,
1321
1321
  borderRadius: "var(--lucent-radius-lg)",
1322
1322
  ...a ? {} : { minHeight: Vn[t] },
1323
1323
  padding: a ? "var(--lucent-space-3)" : "0 var(--lucent-space-3)",
@@ -1326,11 +1326,11 @@ const Qi = {
1326
1326
  background: T && !s ? "var(--lucent-accent-subtle)" : "var(--lucent-surface)",
1327
1327
  transition: "border-color var(--lucent-duration-fast) var(--lucent-easing-default), background var(--lucent-duration-fast) var(--lucent-easing-default)",
1328
1328
  cursor: s ? "not-allowed" : "pointer",
1329
- ...p
1329
+ ...u
1330
1330
  },
1331
1331
  onClick: (q) => {
1332
1332
  var W;
1333
- s || q.target === q.currentTarget && ((W = m.current) == null || W.click());
1333
+ s || q.target === q.currentTarget && ((W = h.current) == null || W.click());
1334
1334
  },
1335
1335
  children: N
1336
1336
  }
@@ -1338,7 +1338,7 @@ const Qi = {
1338
1338
  ] });
1339
1339
  }
1340
1340
  );
1341
- Ft.displayName = "Checkbox";
1341
+ Pt.displayName = "Checkbox";
1342
1342
  const es = {
1343
1343
  id: "checkbox",
1344
1344
  name: "Checkbox",
@@ -1435,7 +1435,7 @@ const es = {
1435
1435
  60% { transform: scale(1.2); }
1436
1436
  100% { opacity: 1; transform: scale(1); }
1437
1437
  }
1438
- `, Pt = ve(null);
1438
+ `, $t = ve(null);
1439
1439
  function Gn({
1440
1440
  name: e,
1441
1441
  value: t,
@@ -1445,7 +1445,7 @@ function Gn({
1445
1445
  label: i,
1446
1446
  children: l
1447
1447
  }) {
1448
- return /* @__PURE__ */ n(Pt.Provider, { value: { name: e, value: t, onChange: r, disabled: o ?? !1 }, children: /* @__PURE__ */ n(
1448
+ return /* @__PURE__ */ n($t.Provider, { value: { name: e, value: t, onChange: r, disabled: o ?? !1 }, children: /* @__PURE__ */ n(
1449
1449
  "div",
1450
1450
  {
1451
1451
  role: "radiogroup",
@@ -1465,23 +1465,23 @@ const _n = { sm: 14, md: 16, lg: 20 }, Yn = { sm: "calc(var(--lucent-space-8) *
1465
1465
  md: "var(--lucent-font-size-md)",
1466
1466
  lg: "var(--lucent-font-size-md)"
1467
1467
  };
1468
- function ts({ value: e, label: t, size: r = "md", contained: o = !1, helperText: a, disabled: i, id: l, onChange: s, checked: c, style: d, ...p }) {
1469
- const u = le(Pt), v = l ?? `lucent-radio-${Math.random().toString(36).slice(2, 7)}`, m = _n[r], [b, h] = E(!1), f = i ?? (u == null ? void 0 : u.disabled) ?? !1, g = u ? u.value === e : !!c, w = O(g), [y, C] = E(0);
1468
+ function ts({ value: e, label: t, size: r = "md", contained: o = !1, helperText: a, disabled: i, id: l, onChange: s, checked: c, style: d, ...u }) {
1469
+ const p = ie($t), y = l ?? `lucent-radio-${Math.random().toString(36).slice(2, 7)}`, h = _n[r], [x, m] = E(!1), f = i ?? (p == null ? void 0 : p.disabled) ?? !1, g = p ? p.value === e : !!c, v = O(g), [b, C] = E(0);
1470
1470
  G(() => {
1471
- !f && w.current !== g && (w.current = g, C((A) => A + 1));
1471
+ !f && v.current !== g && (v.current = g, C((A) => A + 1));
1472
1472
  }, [g, f]);
1473
1473
  const T = (A) => {
1474
- u == null || u.onChange(e), s == null || s(A);
1474
+ p == null || p.onChange(e), s == null || s(A);
1475
1475
  }, S = {
1476
- width: m / 2,
1477
- height: m / 2,
1476
+ width: h / 2,
1477
+ height: h / 2,
1478
1478
  borderRadius: "50%",
1479
1479
  background: f ? "var(--lucent-text-disabled)" : "var(--lucent-text-on-accent)",
1480
1480
  animation: g ? "lucent-radio-dot 200ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards" : void 0,
1481
1481
  opacity: g ? 1 : 0
1482
1482
  }, L = {
1483
- width: m,
1484
- height: m,
1483
+ width: h,
1484
+ height: h,
1485
1485
  borderRadius: "50%",
1486
1486
  border: `1.5px solid ${f ? "transparent" : g ? "var(--lucent-accent-default)" : "var(--lucent-border-strong)"}`,
1487
1487
  background: f ? "var(--lucent-surface-secondary)" : g ? "var(--lucent-accent-default)" : "var(--lucent-surface)",
@@ -1490,7 +1490,7 @@ function ts({ value: e, label: t, size: r = "md", contained: o = !1, helperText:
1490
1490
  justifyContent: "center",
1491
1491
  flexShrink: 0,
1492
1492
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default), border-color var(--lucent-duration-fast) var(--lucent-easing-default)",
1493
- animation: y > 0 ? "lucent-radio-pop 220ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards" : void 0
1493
+ animation: b > 0 ? "lucent-radio-pop 220ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards" : void 0
1494
1494
  }, I = /* @__PURE__ */ k(
1495
1495
  "label",
1496
1496
  {
@@ -1510,17 +1510,17 @@ function ts({ value: e, label: t, size: r = "md", contained: o = !1, helperText:
1510
1510
  "input",
1511
1511
  {
1512
1512
  type: "radio",
1513
- id: v,
1513
+ id: y,
1514
1514
  value: e,
1515
- name: (u == null ? void 0 : u.name) ?? p.name,
1515
+ name: (p == null ? void 0 : p.name) ?? u.name,
1516
1516
  checked: g,
1517
1517
  disabled: f,
1518
1518
  onChange: T,
1519
1519
  style: { position: "absolute", opacity: 0, width: 0, height: 0, margin: 0, pointerEvents: "none" },
1520
- ...p
1520
+ ...u
1521
1521
  }
1522
1522
  ),
1523
- /* @__PURE__ */ n("span", { "aria-hidden": !0, style: L, children: /* @__PURE__ */ n("span", { style: S }) }, y),
1523
+ /* @__PURE__ */ n("span", { "aria-hidden": !0, style: L, children: /* @__PURE__ */ n("span", { style: S }) }, b),
1524
1524
  t || a ? /* @__PURE__ */ k("span", { style: { display: "flex", flexDirection: "column" }, children: [
1525
1525
  t && /* @__PURE__ */ n("span", { style: {
1526
1526
  fontWeight: a ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
@@ -1541,11 +1541,11 @@ function ts({ value: e, label: t, size: r = "md", contained: o = !1, helperText:
1541
1541
  "div",
1542
1542
  {
1543
1543
  onMouseEnter: () => {
1544
- f || h(!0);
1544
+ f || m(!0);
1545
1545
  },
1546
- onMouseLeave: () => h(!1),
1546
+ onMouseLeave: () => m(!1),
1547
1547
  style: {
1548
- border: `1px solid ${g && !f ? "var(--lucent-accent-default)" : b && !f ? "var(--lucent-border-strong)" : "var(--lucent-border-default)"}`,
1548
+ border: `1px solid ${g && !f ? "var(--lucent-accent-default)" : x && !f ? "var(--lucent-border-strong)" : "var(--lucent-border-default)"}`,
1549
1549
  borderRadius: "var(--lucent-radius-lg)",
1550
1550
  ...a ? { padding: "var(--lucent-space-3)" } : { minHeight: Yn[r], padding: "0 var(--lucent-space-3)", display: "flex", alignItems: "center" },
1551
1551
  background: g && !f ? "var(--lucent-accent-subtle)" : "var(--lucent-surface)",
@@ -1683,7 +1683,7 @@ const as = {
1683
1683
  sm: { track: [28, 16], thumb: 12 },
1684
1684
  md: { track: [36, 20], thumb: 16 },
1685
1685
  lg: { track: [44, 24], thumb: 20 }
1686
- }, ut = "cubic-bezier(0.34, 1.56, 0.64, 1)", Zn = `
1686
+ }, pt = "cubic-bezier(0.34, 1.56, 0.64, 1)", Zn = `
1687
1687
  @keyframes lucent-toggle-pop {
1688
1688
  0% { transform: scale(1); }
1689
1689
  35% { transform: scale(0.94); }
@@ -1702,19 +1702,19 @@ function rs({
1702
1702
  disabled: s,
1703
1703
  id: c,
1704
1704
  onChange: d,
1705
- style: p,
1706
- ...u
1705
+ style: u,
1706
+ ...p
1707
1707
  }) {
1708
- const v = c ?? `lucent-toggle-${Math.random().toString(36).slice(2, 7)}`, m = r !== void 0, [b, h] = E(o ?? !1), f = m ? !!r : b, [g, w] = E(!1), y = O(f), [C, T] = E(0), [S, L] = E(!1);
1708
+ const y = c ?? `lucent-toggle-${Math.random().toString(36).slice(2, 7)}`, h = r !== void 0, [x, m] = E(o ?? !1), f = h ? !!r : x, [g, v] = E(!1), b = O(f), [C, T] = E(0), [S, L] = E(!1);
1709
1709
  G(() => {
1710
- if (!s && y.current !== f) {
1711
- y.current = f, T((U) => U + 1), L(!0);
1710
+ if (!s && b.current !== f) {
1711
+ b.current = f, T((U) => U + 1), L(!0);
1712
1712
  const W = setTimeout(() => L(!1), 150);
1713
1713
  return () => clearTimeout(W);
1714
1714
  }
1715
1715
  }, [f, s]);
1716
1716
  const { track: [I, A], thumb: P } = Jn[t], $ = f ? I - P - 2 : 2, M = (W) => {
1717
- m || h(W.target.checked), d == null || d(W);
1717
+ h || m(W.target.checked), d == null || d(W);
1718
1718
  }, N = /* @__PURE__ */ k(
1719
1719
  "span",
1720
1720
  {
@@ -1736,7 +1736,7 @@ function rs({
1736
1736
  borderRadius: "inherit",
1737
1737
  background: s ? "var(--lucent-surface-secondary)" : f ? "var(--lucent-accent-default)" : "var(--lucent-control-track)",
1738
1738
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default)",
1739
- animation: C > 0 ? `lucent-toggle-pop 240ms ${ut} forwards` : void 0
1739
+ animation: C > 0 ? `lucent-toggle-pop 240ms ${pt} forwards` : void 0
1740
1740
  }
1741
1741
  },
1742
1742
  C
@@ -1753,7 +1753,7 @@ function rs({
1753
1753
  borderRadius: P,
1754
1754
  background: "#ffffff",
1755
1755
  boxShadow: "0 1px 3px rgb(0 0 0 / 0.2)",
1756
- transition: `left 260ms ${ut}, width 200ms cubic-bezier(0.22, 1, 0.36, 1)`
1756
+ transition: `left 260ms ${pt}, width 200ms cubic-bezier(0.22, 1, 0.36, 1)`
1757
1757
  }
1758
1758
  }
1759
1759
  )
@@ -1772,7 +1772,7 @@ function rs({
1772
1772
  fontSize: t === "sm" ? "var(--lucent-font-size-sm)" : "var(--lucent-font-size-md)",
1773
1773
  color: s ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
1774
1774
  userSelect: "none",
1775
- ...a ? {} : p
1775
+ ...a ? {} : u
1776
1776
  },
1777
1777
  children: [
1778
1778
  /* @__PURE__ */ n(
@@ -1780,13 +1780,13 @@ function rs({
1780
1780
  {
1781
1781
  type: "checkbox",
1782
1782
  role: "switch",
1783
- id: v,
1784
- checked: m ? r : b,
1783
+ id: y,
1784
+ checked: h ? r : x,
1785
1785
  disabled: s,
1786
1786
  onChange: M,
1787
1787
  "aria-checked": f,
1788
1788
  style: { position: "absolute", opacity: 0, width: 0, height: 0, margin: 0, pointerEvents: "none" },
1789
- ...u
1789
+ ...p
1790
1790
  }
1791
1791
  ),
1792
1792
  l === "left" && N,
@@ -1811,9 +1811,9 @@ function rs({
1811
1811
  "div",
1812
1812
  {
1813
1813
  onMouseEnter: () => {
1814
- s || w(!0);
1814
+ s || v(!0);
1815
1815
  },
1816
- onMouseLeave: () => w(!1),
1816
+ onMouseLeave: () => v(!1),
1817
1817
  style: {
1818
1818
  border: `1px solid ${f && !s ? "var(--lucent-accent-default)" : g && !s ? "var(--lucent-border-strong)" : "var(--lucent-border-default)"}`,
1819
1819
  borderRadius: "var(--lucent-radius-lg)",
@@ -1821,7 +1821,7 @@ function rs({
1821
1821
  background: f && !s ? "var(--lucent-accent-subtle)" : "var(--lucent-surface)",
1822
1822
  transition: "border-color var(--lucent-duration-fast) var(--lucent-easing-default), background var(--lucent-duration-fast) var(--lucent-easing-default)",
1823
1823
  cursor: s ? "not-allowed" : "pointer",
1824
- ...p
1824
+ ...u
1825
1825
  },
1826
1826
  onClick: (W) => {
1827
1827
  if (!s && W.target === W.currentTarget) {
@@ -1933,22 +1933,22 @@ const os = {
1933
1933
  sm: "var(--lucent-font-size-sm)",
1934
1934
  md: "var(--lucent-font-size-sm)",
1935
1935
  lg: "var(--lucent-font-size-md)"
1936
- }, pt = {
1936
+ }, ft = {
1937
1937
  sm: "var(--lucent-space-2)",
1938
1938
  md: "var(--lucent-space-3)",
1939
1939
  lg: "var(--lucent-space-3)"
1940
- }, $t = ge(
1941
- ({ options: e, size: t = "md", label: r, helperText: o, errorText: a, placeholder: i, disabled: l, id: s, style: c, ...d }, p) => {
1942
- const u = s ?? `lucent-select-${Math.random().toString(36).slice(2, 7)}`, v = !!a, m = !!l, [b, h] = E(!1), [f, g] = E(!1), w = m ? "transparent" : v ? "var(--lucent-danger-default)" : b ? "var(--lucent-focus-ring)" : f ? "var(--lucent-border-strong)" : "var(--lucent-border-default)", y = b ? `0 0 0 3px ${v ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none";
1940
+ }, Nt = ge(
1941
+ ({ options: e, size: t = "md", label: r, helperText: o, errorText: a, placeholder: i, disabled: l, id: s, style: c, ...d }, u) => {
1942
+ const p = s ?? `lucent-select-${Math.random().toString(36).slice(2, 7)}`, y = !!a, h = !!l, [x, m] = E(!1), [f, g] = E(!1), v = h ? "transparent" : y ? "var(--lucent-danger-default)" : x ? "var(--lucent-focus-ring)" : f ? "var(--lucent-border-strong)" : "var(--lucent-border-default)", b = x ? `0 0 0 3px ${y ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none";
1943
1943
  return /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", width: "100%", ...c }, children: [
1944
1944
  r && /* @__PURE__ */ n(
1945
1945
  "label",
1946
1946
  {
1947
- htmlFor: u,
1947
+ htmlFor: p,
1948
1948
  style: {
1949
1949
  fontSize: Ue[t],
1950
1950
  fontWeight: "var(--lucent-font-weight-medium)",
1951
- color: m ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
1951
+ color: h ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
1952
1952
  fontFamily: "var(--lucent-font-family-base)"
1953
1953
  },
1954
1954
  children: r
@@ -1962,54 +1962,54 @@ const os = {
1962
1962
  display: "flex",
1963
1963
  alignItems: "center",
1964
1964
  height: Qn[t],
1965
- border: `1px solid ${w}`,
1965
+ border: `1px solid ${v}`,
1966
1966
  borderRadius: "var(--lucent-radius-lg)",
1967
- boxShadow: y,
1968
- background: m ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
1969
- cursor: m ? "not-allowed" : "pointer",
1967
+ boxShadow: b,
1968
+ background: h ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
1969
+ cursor: h ? "not-allowed" : "pointer",
1970
1970
  transition: [
1971
1971
  "border-color var(--lucent-duration-fast) var(--lucent-easing-default)",
1972
1972
  "box-shadow var(--lucent-duration-fast) var(--lucent-easing-default)"
1973
1973
  ].join(", ")
1974
1974
  },
1975
1975
  onMouseEnter: () => {
1976
- m || g(!0);
1976
+ h || g(!0);
1977
1977
  },
1978
1978
  onMouseLeave: () => g(!1),
1979
1979
  children: [
1980
1980
  /* @__PURE__ */ k(
1981
1981
  "select",
1982
1982
  {
1983
- ref: p,
1984
- id: u,
1983
+ ref: u,
1984
+ id: p,
1985
1985
  disabled: l,
1986
- "aria-invalid": v,
1987
- "aria-describedby": v ? `${u}-error` : o ? `${u}-helper` : void 0,
1986
+ "aria-invalid": y,
1987
+ "aria-describedby": y ? `${p}-error` : o ? `${p}-helper` : void 0,
1988
1988
  style: {
1989
1989
  width: "100%",
1990
1990
  height: "100%",
1991
- padding: `0 var(--lucent-space-8) 0 ${pt[t]}`,
1991
+ padding: `0 var(--lucent-space-8) 0 ${ft[t]}`,
1992
1992
  fontSize: ea[t],
1993
1993
  fontFamily: "var(--lucent-font-family-base)",
1994
- color: m ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
1994
+ color: h ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
1995
1995
  background: "transparent",
1996
1996
  border: "none",
1997
1997
  borderRadius: "var(--lucent-radius-lg)",
1998
1998
  outline: "none",
1999
1999
  appearance: "none",
2000
- cursor: m ? "not-allowed" : "pointer",
2000
+ cursor: h ? "not-allowed" : "pointer",
2001
2001
  boxSizing: "border-box"
2002
2002
  },
2003
2003
  onFocus: (C) => {
2004
2004
  var T;
2005
- m || h(!0), (T = d.onFocus) == null || T.call(d, C);
2005
+ h || m(!0), (T = d.onFocus) == null || T.call(d, C);
2006
2006
  },
2007
2007
  onBlur: (C) => {
2008
2008
  var T;
2009
- h(!1), (T = d.onBlur) == null || T.call(d, C);
2009
+ m(!1), (T = d.onBlur) == null || T.call(d, C);
2010
2010
  },
2011
2011
  onMouseDown: () => {
2012
- m || h(!0);
2012
+ h || m(!0);
2013
2013
  },
2014
2014
  ...d,
2015
2015
  children: [
@@ -2024,9 +2024,9 @@ const os = {
2024
2024
  "aria-hidden": !0,
2025
2025
  style: {
2026
2026
  position: "absolute",
2027
- right: pt[t],
2027
+ right: ft[t],
2028
2028
  pointerEvents: "none",
2029
- color: m ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
2029
+ color: h ? "var(--lucent-text-disabled)" : "var(--lucent-text-secondary)",
2030
2030
  display: "flex",
2031
2031
  alignItems: "center"
2032
2032
  },
@@ -2036,10 +2036,10 @@ const os = {
2036
2036
  ]
2037
2037
  }
2038
2038
  ),
2039
- v && /* @__PURE__ */ n(
2039
+ y && /* @__PURE__ */ n(
2040
2040
  "span",
2041
2041
  {
2042
- id: `${u}-error`,
2042
+ id: `${p}-error`,
2043
2043
  role: "alert",
2044
2044
  style: {
2045
2045
  fontSize: Ue[t],
@@ -2049,10 +2049,10 @@ const os = {
2049
2049
  children: a
2050
2050
  }
2051
2051
  ),
2052
- !v && o && /* @__PURE__ */ n(
2052
+ !y && o && /* @__PURE__ */ n(
2053
2053
  "span",
2054
2054
  {
2055
- id: `${u}-helper`,
2055
+ id: `${p}-helper`,
2056
2056
  style: {
2057
2057
  fontSize: Ue[t],
2058
2058
  color: "var(--lucent-text-secondary)",
@@ -2064,7 +2064,7 @@ const os = {
2064
2064
  ] });
2065
2065
  }
2066
2066
  );
2067
- $t.displayName = "Select";
2067
+ Nt.displayName = "Select";
2068
2068
  const is = {
2069
2069
  id: "select",
2070
2070
  name: "Select",
@@ -2212,8 +2212,8 @@ function ss({ children: e, variant: t = "neutral", size: r = "md", onDismiss: o,
2212
2212
  "button",
2213
2213
  {
2214
2214
  type: "button",
2215
- onClick: a ? void 0 : (p) => {
2216
- p.stopPropagation(), o == null || o();
2215
+ onClick: a ? void 0 : (u) => {
2216
+ u.stopPropagation(), o == null || o();
2217
2217
  },
2218
2218
  disabled: a,
2219
2219
  "aria-label": "Dismiss",
@@ -2232,11 +2232,11 @@ function ss({ children: e, variant: t = "neutral", size: r = "md", onDismiss: o,
2232
2232
  flexShrink: 0,
2233
2233
  lineHeight: 1
2234
2234
  },
2235
- onMouseEnter: (p) => {
2236
- a || (p.currentTarget.style.background = i.dismissHover + "33");
2235
+ onMouseEnter: (u) => {
2236
+ a || (u.currentTarget.style.background = i.dismissHover + "33");
2237
2237
  },
2238
- onMouseLeave: (p) => {
2239
- p.currentTarget.style.background = "transparent";
2238
+ onMouseLeave: (u) => {
2239
+ u.currentTarget.style.background = "transparent";
2240
2240
  },
2241
2241
  children: /* @__PURE__ */ n("svg", { width: l.iconSize, height: l.iconSize, viewBox: "0 0 10 10", fill: "none", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", children: /* @__PURE__ */ n("path", { d: "M2 2L8 8M8 2L2 8" }) })
2242
2242
  }
@@ -2564,9 +2564,9 @@ function Y({
2564
2564
  truncate: s = !1,
2565
2565
  children: c,
2566
2566
  style: d,
2567
- ...p
2567
+ ...u
2568
2568
  }) {
2569
- const u = {
2569
+ const p = {
2570
2570
  fontSize: sa[t],
2571
2571
  fontWeight: la[r],
2572
2572
  color: ia[o],
@@ -2581,7 +2581,7 @@ function Y({
2581
2581
  },
2582
2582
  ...d
2583
2583
  };
2584
- return /* @__PURE__ */ n(e, { style: u, ...p, children: c });
2584
+ return /* @__PURE__ */ n(e, { style: p, ...u, children: c });
2585
2585
  }
2586
2586
  const fs = {
2587
2587
  id: "text",
@@ -2724,11 +2724,11 @@ function hs({
2724
2724
  boxSizing: "border-box",
2725
2725
  ...c
2726
2726
  },
2727
- onMouseEnter: (p) => {
2728
- !a && !r && (p.currentTarget.style.background = "var(--lucent-surface-secondary)");
2727
+ onMouseEnter: (u) => {
2728
+ !a && !r && (u.currentTarget.style.background = "var(--lucent-surface-secondary)");
2729
2729
  },
2730
- onMouseLeave: (p) => {
2731
- !a && !r && (p.currentTarget.style.background = "transparent");
2730
+ onMouseLeave: (u) => {
2731
+ !a && !r && (u.currentTarget.style.background = "transparent");
2732
2732
  },
2733
2733
  children: [
2734
2734
  o != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, color: "inherit" }, children: o }),
@@ -2842,14 +2842,14 @@ function ms({
2842
2842
  defaultValue: s,
2843
2843
  disabled: c,
2844
2844
  id: d,
2845
- onChange: p,
2846
- style: u,
2847
- ...v
2845
+ onChange: u,
2846
+ style: p,
2847
+ ...y
2848
2848
  }) {
2849
- const m = d ?? `lucent-slider-${Math.random().toString(36).slice(2, 7)}`, b = l !== void 0, [h, f] = E(
2849
+ const h = d ?? `lucent-slider-${Math.random().toString(36).slice(2, 7)}`, x = l !== void 0, [m, f] = E(
2850
2850
  s ?? Math.round((o + a) / 2)
2851
- ), g = b ? l : h, w = `${(g - o) / (a - o) * 100}%`, y = (C) => {
2852
- b || f(Number(C.target.value)), p == null || p(C);
2851
+ ), g = x ? l : m, v = `${(g - o) / (a - o) * 100}%`, b = (C) => {
2852
+ x || f(Number(C.target.value)), u == null || u(C);
2853
2853
  };
2854
2854
  return /* @__PURE__ */ k(ae, { children: [
2855
2855
  /* @__PURE__ */ n("style", { children: fa }),
@@ -2862,7 +2862,7 @@ function ms({
2862
2862
  gap: "var(--lucent-space-1)",
2863
2863
  width: "100%",
2864
2864
  fontFamily: "var(--lucent-font-family-base)",
2865
- ...u
2865
+ ...p
2866
2866
  },
2867
2867
  children: [
2868
2868
  (e || t) && /* @__PURE__ */ k(
@@ -2877,7 +2877,7 @@ function ms({
2877
2877
  e && /* @__PURE__ */ n(
2878
2878
  "label",
2879
2879
  {
2880
- htmlFor: m,
2880
+ htmlFor: h,
2881
2881
  style: {
2882
2882
  fontSize: "var(--lucent-font-size-sm)",
2883
2883
  fontWeight: "var(--lucent-font-weight-medium)",
@@ -2905,20 +2905,20 @@ function ms({
2905
2905
  "input",
2906
2906
  {
2907
2907
  type: "range",
2908
- id: m,
2908
+ id: h,
2909
2909
  className: "lucent-slider",
2910
2910
  min: o,
2911
2911
  max: a,
2912
2912
  step: i,
2913
2913
  disabled: c,
2914
- value: b ? l : h,
2915
- onChange: y,
2914
+ value: x ? l : m,
2915
+ onChange: b,
2916
2916
  style: {
2917
2917
  "--ls-track-h": ua[r],
2918
2918
  "--ls-thumb": pa[r],
2919
- "--ls-fill": w
2919
+ "--ls-fill": v
2920
2920
  },
2921
- ...v
2921
+ ...y
2922
2922
  }
2923
2923
  )
2924
2924
  ]
@@ -3041,13 +3041,13 @@ function vs({
3041
3041
  showCopyButton: i = !0,
3042
3042
  style: l
3043
3043
  }) {
3044
- var g, w;
3045
- const s = !!(r != null && r.length), [c, d] = E(0), [p, u] = E(!1), v = s ? ((g = r[c]) == null ? void 0 : g.code) ?? "" : e ?? "", m = s ? (w = r[c]) == null ? void 0 : w.language : t, b = async () => {
3044
+ var g, v;
3045
+ const s = !!(r != null && r.length), [c, d] = E(0), [u, p] = E(!1), y = s ? ((g = r[c]) == null ? void 0 : g.code) ?? "" : e ?? "", h = s ? (v = r[c]) == null ? void 0 : v.language : t, x = async () => {
3046
3046
  try {
3047
- await navigator.clipboard.writeText(v), u(!0), setTimeout(() => u(!1), ha);
3047
+ await navigator.clipboard.writeText(y), p(!0), setTimeout(() => p(!1), ha);
3048
3048
  } catch {
3049
3049
  }
3050
- }, h = {
3050
+ }, m = {
3051
3051
  display: "inline-flex",
3052
3052
  alignItems: "center",
3053
3053
  gap: "var(--lucent-space-1)",
@@ -3055,7 +3055,7 @@ function vs({
3055
3055
  border: "1px solid transparent",
3056
3056
  borderRadius: "var(--lucent-radius-md)",
3057
3057
  background: "transparent",
3058
- color: p ? "var(--lucent-success-default)" : "var(--lucent-text-secondary)",
3058
+ color: u ? "var(--lucent-success-default)" : "var(--lucent-text-secondary)",
3059
3059
  fontFamily: "var(--lucent-font-family-base)",
3060
3060
  fontSize: "var(--lucent-font-size-xs)",
3061
3061
  cursor: "pointer",
@@ -3064,18 +3064,18 @@ function vs({
3064
3064
  }, f = () => /* @__PURE__ */ k(
3065
3065
  "button",
3066
3066
  {
3067
- onClick: b,
3068
- "aria-label": p ? "Copied!" : "Copy code",
3069
- style: h,
3070
- onMouseEnter: (y) => {
3071
- p || (y.currentTarget.style.background = "var(--lucent-surface-secondary)", y.currentTarget.style.color = "var(--lucent-text-primary)");
3067
+ onClick: x,
3068
+ "aria-label": u ? "Copied!" : "Copy code",
3069
+ style: m,
3070
+ onMouseEnter: (b) => {
3071
+ u || (b.currentTarget.style.background = "var(--lucent-surface-secondary)", b.currentTarget.style.color = "var(--lucent-text-primary)");
3072
3072
  },
3073
- onMouseLeave: (y) => {
3074
- p || (y.currentTarget.style.background = "transparent", y.currentTarget.style.color = "var(--lucent-text-secondary)");
3073
+ onMouseLeave: (b) => {
3074
+ u || (b.currentTarget.style.background = "transparent", b.currentTarget.style.color = "var(--lucent-text-secondary)");
3075
3075
  },
3076
3076
  children: [
3077
- p ? /* @__PURE__ */ n(ga, {}) : /* @__PURE__ */ n(ma, {}),
3078
- p ? "Copied!" : "Copy"
3077
+ u ? /* @__PURE__ */ n(ga, {}) : /* @__PURE__ */ n(ma, {}),
3078
+ u ? "Copied!" : "Copy"
3079
3079
  ]
3080
3080
  }
3081
3081
  );
@@ -3099,13 +3099,13 @@ function vs({
3099
3099
  borderBottom: "1px solid var(--lucent-border-default)",
3100
3100
  padding: "0 var(--lucent-space-2)"
3101
3101
  },
3102
- children: r.map((y, C) => {
3102
+ children: r.map((b, C) => {
3103
3103
  const T = C === c;
3104
3104
  return /* @__PURE__ */ k(
3105
3105
  "button",
3106
3106
  {
3107
3107
  onClick: () => {
3108
- d(C), u(!1);
3108
+ d(C), p(!1);
3109
3109
  },
3110
3110
  style: {
3111
3111
  display: "inline-flex",
@@ -3131,29 +3131,29 @@ function vs({
3131
3131
  T || (S.currentTarget.style.color = "var(--lucent-text-secondary)");
3132
3132
  },
3133
3133
  children: [
3134
- y.icon !== void 0 && /* @__PURE__ */ n("span", { style: { display: "inline-flex", alignItems: "center" }, children: y.icon }),
3135
- y.label
3134
+ b.icon !== void 0 && /* @__PURE__ */ n("span", { style: { display: "inline-flex", alignItems: "center" }, children: b.icon }),
3135
+ b.label
3136
3136
  ]
3137
3137
  },
3138
- y.label
3138
+ b.label
3139
3139
  );
3140
3140
  })
3141
3141
  }
3142
3142
  ),
3143
- !s && (!!m || i) && /* @__PURE__ */ k(
3143
+ !s && (!!h || i) && /* @__PURE__ */ k(
3144
3144
  "div",
3145
3145
  {
3146
3146
  style: {
3147
3147
  display: "flex",
3148
3148
  alignItems: "center",
3149
- justifyContent: m ? "space-between" : "flex-end",
3149
+ justifyContent: h ? "space-between" : "flex-end",
3150
3150
  padding: "0 var(--lucent-space-3)",
3151
3151
  height: 36,
3152
3152
  background: "var(--lucent-surface-secondary)",
3153
3153
  borderBottom: "1px solid var(--lucent-border-default)"
3154
3154
  },
3155
3155
  children: [
3156
- m && /* @__PURE__ */ n(
3156
+ h && /* @__PURE__ */ n(
3157
3157
  "span",
3158
3158
  {
3159
3159
  style: {
@@ -3162,7 +3162,7 @@ function vs({
3162
3162
  color: "var(--lucent-text-secondary)",
3163
3163
  letterSpacing: "var(--lucent-letter-spacing-wide)"
3164
3164
  },
3165
- children: m
3165
+ children: h
3166
3166
  }
3167
3167
  ),
3168
3168
  i && /* @__PURE__ */ n(f, {})
@@ -3203,7 +3203,7 @@ function vs({
3203
3203
  fontSize: "var(--lucent-font-size-sm)",
3204
3204
  color: "var(--lucent-text-primary)"
3205
3205
  },
3206
- children: v
3206
+ children: y
3207
3207
  }
3208
3208
  )
3209
3209
  }
@@ -3234,7 +3234,7 @@ function vs({
3234
3234
  fontSize: "var(--lucent-font-size-sm)",
3235
3235
  color: "var(--lucent-text-primary)"
3236
3236
  },
3237
- children: v
3237
+ children: y
3238
3238
  }
3239
3239
  ),
3240
3240
  i && /* @__PURE__ */ n(f, {})
@@ -3513,7 +3513,7 @@ const ys = {
3513
3513
  ariaAttributes: ['scope="col" on th cells'],
3514
3514
  keyboardInteractions: ["Standard browser table navigation"]
3515
3515
  }
3516
- }, ft = {
3516
+ }, ht = {
3517
3517
  sm: "calc(var(--lucent-space-8) * 0.5 + 18px)",
3518
3518
  md: "calc(var(--lucent-space-10) * 0.5 + 22px)",
3519
3519
  lg: "calc(var(--lucent-space-12) * 0.5 + 26px)"
@@ -3526,7 +3526,7 @@ const ys = {
3526
3526
  md: "var(--lucent-space-4)",
3527
3527
  lg: "var(--lucent-space-5)"
3528
3528
  };
3529
- function Nt({
3529
+ function Wt({
3530
3530
  options: e,
3531
3531
  value: t,
3532
3532
  defaultValue: r,
@@ -3538,39 +3538,39 @@ function Nt({
3538
3538
  style: c
3539
3539
  }) {
3540
3540
  var g;
3541
- const [d, p] = E(
3541
+ const [d, u] = E(
3542
3542
  r ?? ((g = e[0]) == null ? void 0 : g.value) ?? ""
3543
- ), u = t !== void 0 ? t : d, v = O(null), [m, b] = E(null), h = O(!1);
3544
- ie(() => {
3545
- const w = v.current;
3546
- if (!w) return;
3547
- const y = () => {
3548
- const T = w.querySelector(`[data-sc-value="${u}"]`);
3549
- T && (b({
3543
+ ), p = t !== void 0 ? t : d, y = O(null), [h, x] = E(null), m = O(!1);
3544
+ se(() => {
3545
+ const v = y.current;
3546
+ if (!v) return;
3547
+ const b = () => {
3548
+ const T = v.querySelector(`[data-sc-value="${p}"]`);
3549
+ T && (x({
3550
3550
  left: T.offsetLeft,
3551
3551
  width: T.offsetWidth,
3552
- animate: h.current
3553
- }), h.current = !0);
3552
+ animate: m.current
3553
+ }), m.current = !0);
3554
3554
  };
3555
- y();
3556
- const C = new ResizeObserver(y);
3557
- return C.observe(w), () => C.disconnect();
3558
- }, [u, e]);
3559
- const f = (w) => {
3560
- i || w.disabled || (t === void 0 && p(w.value), o == null || o(w.value));
3555
+ b();
3556
+ const C = new ResizeObserver(b);
3557
+ return C.observe(v), () => C.disconnect();
3558
+ }, [p, e]);
3559
+ const f = (v) => {
3560
+ i || v.disabled || (t === void 0 && u(v.value), o == null || o(v.value));
3561
3561
  };
3562
3562
  return /* @__PURE__ */ k(
3563
3563
  "div",
3564
3564
  {
3565
3565
  id: s,
3566
- ref: v,
3566
+ ref: y,
3567
3567
  role: "group",
3568
3568
  style: {
3569
3569
  position: "relative",
3570
3570
  display: "flex",
3571
3571
  alignItems: "center",
3572
3572
  width: l ? "100%" : "fit-content",
3573
- height: ft[a],
3573
+ height: ht[a],
3574
3574
  background: "var(--lucent-surface-secondary)",
3575
3575
  borderRadius: "var(--lucent-radius-lg)",
3576
3576
  padding: 0,
@@ -3579,36 +3579,36 @@ function Nt({
3579
3579
  ...c
3580
3580
  },
3581
3581
  children: [
3582
- m && /* @__PURE__ */ n(
3582
+ h && /* @__PURE__ */ n(
3583
3583
  "span",
3584
3584
  {
3585
3585
  "aria-hidden": !0,
3586
3586
  style: {
3587
3587
  position: "absolute",
3588
3588
  top: 3,
3589
- left: m.left + 3,
3590
- width: m.width - 6,
3589
+ left: h.left + 3,
3590
+ width: h.width - 6,
3591
3591
  height: "calc(100% - 6px)",
3592
3592
  background: "var(--lucent-surface)",
3593
3593
  borderRadius: "var(--lucent-radius-lg)",
3594
3594
  boxShadow: "var(--lucent-shadow-sm)",
3595
- transition: m.animate ? "left var(--lucent-duration-base) cubic-bezier(0.34, 1.56, 0.64, 1), width var(--lucent-duration-base) cubic-bezier(0.22, 1, 0.36, 1)" : "none",
3595
+ transition: h.animate ? "left var(--lucent-duration-base) cubic-bezier(0.34, 1.56, 0.64, 1), width var(--lucent-duration-base) cubic-bezier(0.22, 1, 0.36, 1)" : "none",
3596
3596
  zIndex: 0,
3597
3597
  pointerEvents: "none"
3598
3598
  }
3599
3599
  }
3600
3600
  ),
3601
- e.map((w) => {
3602
- const y = w.value === u, C = i || !!w.disabled;
3601
+ e.map((v) => {
3602
+ const b = v.value === p, C = i || !!v.disabled;
3603
3603
  return /* @__PURE__ */ n(
3604
3604
  "button",
3605
3605
  {
3606
- "data-sc-value": w.value,
3606
+ "data-sc-value": v.value,
3607
3607
  type: "button",
3608
3608
  role: "radio",
3609
- "aria-checked": y,
3609
+ "aria-checked": b,
3610
3610
  disabled: C,
3611
- onClick: () => f(w),
3611
+ onClick: () => f(v),
3612
3612
  style: {
3613
3613
  position: "relative",
3614
3614
  zIndex: 1,
@@ -3617,12 +3617,12 @@ function Nt({
3617
3617
  justifyContent: "center",
3618
3618
  gap: "var(--lucent-space-1)",
3619
3619
  flex: 1,
3620
- height: ft[a],
3620
+ height: ht[a],
3621
3621
  padding: `0 ${Ta[a]}`,
3622
3622
  fontSize: Sa[a],
3623
3623
  fontFamily: "var(--lucent-font-family-base)",
3624
- fontWeight: y ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
3625
- color: C ? "var(--lucent-text-disabled)" : y ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
3624
+ fontWeight: b ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
3625
+ color: C ? "var(--lucent-text-disabled)" : b ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
3626
3626
  background: "transparent",
3627
3627
  border: "none",
3628
3628
  borderRadius: "var(--lucent-radius-lg)",
@@ -3640,16 +3640,16 @@ function Nt({
3640
3640
  onBlur: (T) => {
3641
3641
  T.currentTarget.style.boxShadow = "";
3642
3642
  },
3643
- children: w.label
3643
+ children: v.label
3644
3644
  },
3645
- w.value
3645
+ v.value
3646
3646
  );
3647
3647
  })
3648
3648
  ]
3649
3649
  }
3650
3650
  );
3651
3651
  }
3652
- Nt.displayName = "SegmentedControl";
3652
+ Wt.displayName = "SegmentedControl";
3653
3653
  const Ca = {
3654
3654
  xs: 12,
3655
3655
  sm: 16,
@@ -3664,7 +3664,7 @@ const Ca = {
3664
3664
  lg: "var(--lucent-radius-md)",
3665
3665
  xl: "var(--lucent-radius-lg)",
3666
3666
  "2xl": "var(--lucent-radius-lg)"
3667
- }, ht = "inset 0 0 0 1px rgba(0,0,0,0.2)", mt = "inset 0 0 0 2px rgba(0,0,0,0.5)", Ma = "inset 0 0 0 1px rgba(0,0,0,0.2), 0 0 0 3px var(--lucent-accent-subtle)";
3667
+ }, mt = "inset 0 0 0 1px rgba(0,0,0,0.2)", gt = "inset 0 0 0 2px rgba(0,0,0,0.5)", Ma = "inset 0 0 0 1px rgba(0,0,0,0.2), 0 0 0 3px var(--lucent-accent-subtle)";
3668
3668
  function Da(e) {
3669
3669
  return {
3670
3670
  backgroundImage: [
@@ -3690,38 +3690,38 @@ const qe = ge(({
3690
3690
  onFocus: s,
3691
3691
  onBlur: c,
3692
3692
  onClick: d,
3693
- ...p
3694
- }, u) => {
3695
- const v = Ca[t], m = r === "circle" ? "50%" : Ia[t];
3693
+ ...u
3694
+ }, p) => {
3695
+ const y = Ca[t], h = r === "circle" ? "50%" : Ia[t];
3696
3696
  return /* @__PURE__ */ n(
3697
3697
  "button",
3698
3698
  {
3699
- ref: u,
3699
+ ref: p,
3700
3700
  type: "button",
3701
3701
  disabled: i,
3702
3702
  onClick: d,
3703
3703
  style: {
3704
- width: v,
3705
- height: v,
3704
+ width: y,
3705
+ height: y,
3706
3706
  flexShrink: 0,
3707
3707
  ...o ? Da(e) : { background: e },
3708
3708
  border: "none",
3709
- borderRadius: m,
3709
+ borderRadius: h,
3710
3710
  cursor: i ? "not-allowed" : d ? "pointer" : "default",
3711
3711
  padding: 0,
3712
3712
  outline: "none",
3713
3713
  opacity: i ? 0.4 : 1,
3714
- boxShadow: a ? mt : ht,
3714
+ boxShadow: a ? gt : mt,
3715
3715
  transition: "box-shadow var(--lucent-duration-fast) var(--lucent-easing-default)",
3716
3716
  ...l
3717
3717
  },
3718
- onFocus: (b) => {
3719
- i || (b.currentTarget.style.boxShadow = Ma), s == null || s(b);
3718
+ onFocus: (x) => {
3719
+ i || (x.currentTarget.style.boxShadow = Ma), s == null || s(x);
3720
3720
  },
3721
- onBlur: (b) => {
3722
- b.currentTarget.style.boxShadow = a ? mt : ht, c == null || c(b);
3721
+ onBlur: (x) => {
3722
+ x.currentTarget.style.boxShadow = a ? gt : mt, c == null || c(x);
3723
3723
  },
3724
- ...p
3724
+ ...u
3725
3725
  }
3726
3726
  );
3727
3727
  });
@@ -3731,31 +3731,31 @@ function Fe(e, t, r) {
3731
3731
  }
3732
3732
  function za(e, t, r) {
3733
3733
  const o = t / 100, a = r / 100, i = a * o, l = i * (1 - Math.abs(e / 60 % 2 - 1)), s = a - i;
3734
- let c = 0, d = 0, p = 0;
3735
- return e < 60 ? (c = i, d = l) : e < 120 ? (c = l, d = i) : e < 180 ? (d = i, p = l) : e < 240 ? (d = l, p = i) : e < 300 ? (c = l, p = i) : (c = i, p = l), { r: Math.round((c + s) * 255), g: Math.round((d + s) * 255), b: Math.round((p + s) * 255) };
3734
+ let c = 0, d = 0, u = 0;
3735
+ return e < 60 ? (c = i, d = l) : e < 120 ? (c = l, d = i) : e < 180 ? (d = i, u = l) : e < 240 ? (d = l, u = i) : e < 300 ? (c = l, u = i) : (c = i, u = l), { r: Math.round((c + s) * 255), g: Math.round((d + s) * 255), b: Math.round((u + s) * 255) };
3736
3736
  }
3737
3737
  function Ea(e, t, r) {
3738
- const o = e / 255, a = t / 255, i = r / 255, l = Math.max(o, a, i), s = Math.min(o, a, i), c = l - s, d = l, p = l === 0 ? 0 : c / l;
3739
- let u = 0;
3740
- return c !== 0 && (l === o ? u = ((a - i) / c + (a < i ? 6 : 0)) / 6 : l === a ? u = ((i - o) / c + 2) / 6 : u = ((o - a) / c + 4) / 6), { h: Math.round(u * 360), s: Math.round(p * 100), v: Math.round(d * 100) };
3738
+ const o = e / 255, a = t / 255, i = r / 255, l = Math.max(o, a, i), s = Math.min(o, a, i), c = l - s, d = l, u = l === 0 ? 0 : c / l;
3739
+ let p = 0;
3740
+ return c !== 0 && (l === o ? p = ((a - i) / c + (a < i ? 6 : 0)) / 6 : l === a ? p = ((i - o) / c + 2) / 6 : p = ((o - a) / c + 4) / 6), { h: Math.round(p * 360), s: Math.round(u * 100), v: Math.round(d * 100) };
3741
3741
  }
3742
3742
  function Aa(e, t, r) {
3743
3743
  const o = e / 255, a = t / 255, i = r / 255, l = Math.max(o, a, i), s = Math.min(o, a, i), c = (l + s) / 2;
3744
3744
  if (l === s) return { h: 0, s: 0, l: Math.round(c * 100) };
3745
- const d = l - s, p = c > 0.5 ? d / (2 - l - s) : d / (l + s);
3746
- let u = 0;
3747
- return l === o ? u = ((a - i) / d + (a < i ? 6 : 0)) / 6 : l === a ? u = ((i - o) / d + 2) / 6 : u = ((o - a) / d + 4) / 6, { h: Math.round(u * 360), s: Math.round(p * 100), l: Math.round(c * 100) };
3745
+ const d = l - s, u = c > 0.5 ? d / (2 - l - s) : d / (l + s);
3746
+ let p = 0;
3747
+ return l === o ? p = ((a - i) / d + (a < i ? 6 : 0)) / 6 : l === a ? p = ((i - o) / d + 2) / 6 : p = ((o - a) / d + 4) / 6, { h: Math.round(p * 360), s: Math.round(u * 100), l: Math.round(c * 100) };
3748
3748
  }
3749
3749
  function Re(e, t, r) {
3750
3750
  const o = t / 100, a = r / 100, i = (1 - Math.abs(2 * a - 1)) * o, l = i * (1 - Math.abs(e / 60 % 2 - 1)), s = a - i / 2;
3751
- let c = 0, d = 0, p = 0;
3752
- return e < 60 ? (c = i, d = l) : e < 120 ? (c = l, d = i) : e < 180 ? (d = i, p = l) : e < 240 ? (d = l, p = i) : e < 300 ? (c = l, p = i) : (c = i, p = l), { r: Math.round((c + s) * 255), g: Math.round((d + s) * 255), b: Math.round((p + s) * 255) };
3751
+ let c = 0, d = 0, u = 0;
3752
+ return e < 60 ? (c = i, d = l) : e < 120 ? (c = l, d = i) : e < 180 ? (d = i, u = l) : e < 240 ? (d = l, u = i) : e < 300 ? (c = l, u = i) : (c = i, u = l), { r: Math.round((c + s) * 255), g: Math.round((d + s) * 255), b: Math.round((u + s) * 255) };
3753
3753
  }
3754
3754
  function it(e) {
3755
3755
  const t = e.replace("#", "");
3756
3756
  return t.length === 3 ? `#${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : t.length === 6 || t.length === 8 ? `#${t}` : "#000000";
3757
3757
  }
3758
- function Wt(e) {
3758
+ function Ot(e) {
3759
3759
  const t = it(e);
3760
3760
  return {
3761
3761
  r: parseInt(t.slice(1, 3), 16),
@@ -3768,20 +3768,20 @@ function et({ r: e, g: t, b: r, a: o }) {
3768
3768
  const a = (l) => Fe(Math.round(l), 0, 255).toString(16).padStart(2, "0"), i = `#${a(e)}${a(t)}${a(r)}`;
3769
3769
  return o < 1 ? `${i}${a(Math.round(o * 255))}` : i;
3770
3770
  }
3771
- function Ot({ h: e, s: t, v: r, a: o }) {
3771
+ function Ht({ h: e, s: t, v: r, a: o }) {
3772
3772
  return { ...za(e, t, r), a: o };
3773
3773
  }
3774
3774
  function oe({ r: e, g: t, b: r, a: o }) {
3775
3775
  return { ...Ea(e, t, r), a: o };
3776
3776
  }
3777
3777
  function Te(e) {
3778
- return et(Ot(e));
3778
+ return et(Ht(e));
3779
3779
  }
3780
3780
  function Ce(e) {
3781
3781
  const t = e.trim();
3782
3782
  if (t.startsWith("#")) {
3783
3783
  const a = it(t);
3784
- return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(a) ? Wt(a) : null;
3784
+ return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(a) ? Ot(a) : null;
3785
3785
  }
3786
3786
  const r = t.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*([\d.]+))?\s*\)$/);
3787
3787
  if (r) {
@@ -3816,21 +3816,21 @@ const Ba = [
3816
3816
  "linear-gradient(45deg, transparent 75%, #c0c0c0 75%)",
3817
3817
  "linear-gradient(-45deg, transparent 75%, #c0c0c0 75%)"
3818
3818
  ].join(", ");
3819
- function gt({ value: e, min: t, max: r, onChange: o, trackStyle: a, formatTooltip: i }) {
3820
- const l = O(null), [s, c] = E(!1), d = ee((u) => {
3821
- const v = l.current.getBoundingClientRect(), m = Fe((u.clientX - v.left) / v.width, 0, 1);
3822
- o(t + m * (r - t));
3823
- }, [t, r, o]), p = (e - t) / (r - t) * 100;
3819
+ function vt({ value: e, min: t, max: r, onChange: o, trackStyle: a, formatTooltip: i }) {
3820
+ const l = O(null), [s, c] = E(!1), d = ee((p) => {
3821
+ const y = l.current.getBoundingClientRect(), h = Fe((p.clientX - y.left) / y.width, 0, 1);
3822
+ o(t + h * (r - t));
3823
+ }, [t, r, o]), u = (e - t) / (r - t) * 100;
3824
3824
  return /* @__PURE__ */ n(
3825
3825
  "div",
3826
3826
  {
3827
3827
  ref: l,
3828
3828
  style: { position: "relative", height: 12, borderRadius: 6, cursor: "crosshair", userSelect: "none", ...a },
3829
- onPointerDown: (u) => {
3830
- u.currentTarget.setPointerCapture(u.pointerId), c(!0), d(u);
3829
+ onPointerDown: (p) => {
3830
+ p.currentTarget.setPointerCapture(p.pointerId), c(!0), d(p);
3831
3831
  },
3832
- onPointerMove: (u) => {
3833
- u.buttons > 0 && d(u);
3832
+ onPointerMove: (p) => {
3833
+ p.buttons > 0 && d(p);
3834
3834
  },
3835
3835
  onPointerUp: () => c(!1),
3836
3836
  onPointerCancel: () => c(!1),
@@ -3839,7 +3839,7 @@ function gt({ value: e, min: t, max: r, onChange: o, trackStyle: a, formatToolti
3839
3839
  {
3840
3840
  style: {
3841
3841
  position: "absolute",
3842
- left: `${p}%`,
3842
+ left: `${u}%`,
3843
3843
  top: "50%",
3844
3844
  transform: "translate(-50%, -50%)",
3845
3845
  width: 14,
@@ -3892,48 +3892,48 @@ function La({
3892
3892
  style: d
3893
3893
  }) {
3894
3894
  var R, H;
3895
- const p = o === "sm" ? 24 : 40, u = ke(), v = c ?? u, [m, b] = E(!1), [h, f] = E("hex"), [g, w] = E(0), [y, C] = E(() => {
3896
- const x = e ? Ce(e) ?? { r: 0, g: 0, b: 0, a: 1 } : { r: 0, g: 0, b: 0, a: 1 };
3897
- return oe(x);
3898
- }), [T, S] = E(() => Te(y).slice(1).toUpperCase()), L = O(null), I = O(null), A = O(null), [P, $] = E({ top: 0, left: 0 });
3899
- ie(() => {
3900
- if (!m || !L.current) return;
3901
- const x = L.current.getBoundingClientRect();
3902
- let B = x.left;
3903
- const V = x.bottom + 8;
3895
+ const u = o === "sm" ? 24 : 40, p = ke(), y = c ?? p, [h, x] = E(!1), [m, f] = E("hex"), [g, v] = E(0), [b, C] = E(() => {
3896
+ const w = e ? Ce(e) ?? { r: 0, g: 0, b: 0, a: 1 } : { r: 0, g: 0, b: 0, a: 1 };
3897
+ return oe(w);
3898
+ }), [T, S] = E(() => Te(b).slice(1).toUpperCase()), L = O(null), I = O(null), A = O(null), [P, $] = E({ top: 0, left: 0 });
3899
+ se(() => {
3900
+ if (!h || !L.current) return;
3901
+ const w = L.current.getBoundingClientRect();
3902
+ let B = w.left;
3903
+ const V = w.bottom + 8;
3904
3904
  if (A.current) {
3905
3905
  const K = A.current.offsetWidth;
3906
- B + K > window.innerWidth && (B = x.right - K);
3906
+ B + K > window.innerWidth && (B = w.right - K);
3907
3907
  }
3908
3908
  $({ top: V, left: B });
3909
- }, [m]), G(() => {
3909
+ }, [h]), G(() => {
3910
3910
  if (!e) return;
3911
- const x = Ce(e);
3912
- x && (C(oe(x)), S(et(x).slice(1).toUpperCase()));
3911
+ const w = Ce(e);
3912
+ w && (C(oe(w)), S(et(w).slice(1).toUpperCase()));
3913
3913
  }, [e]), G(() => {
3914
- if (!m) return;
3915
- const x = (B) => {
3914
+ if (!h) return;
3915
+ const w = (B) => {
3916
3916
  var K, j;
3917
3917
  const V = B.target;
3918
- (K = L.current) != null && K.contains(V) || (j = A.current) != null && j.contains(V) || b(!1);
3918
+ (K = L.current) != null && K.contains(V) || (j = A.current) != null && j.contains(V) || x(!1);
3919
3919
  };
3920
- return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
3921
- }, [m]);
3922
- const M = ee((x) => {
3923
- C(x);
3924
- const B = Te(x);
3920
+ return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
3921
+ }, [h]);
3922
+ const M = ee((w) => {
3923
+ C(w);
3924
+ const B = Te(w);
3925
3925
  S(B.slice(1).toUpperCase()), t == null || t(B);
3926
- }, [t]), N = ee((x) => {
3927
- const B = I.current.getBoundingClientRect(), V = Math.round(Fe((x.clientX - B.left) / B.width, 0, 1) * 100), K = Math.round((1 - Fe((x.clientY - B.top) / B.height, 0, 1)) * 100);
3928
- M({ ...y, s: V, v: K });
3929
- }, [y, M]), q = ee(async () => {
3926
+ }, [t]), N = ee((w) => {
3927
+ const B = I.current.getBoundingClientRect(), V = Math.round(Fe((w.clientX - B.left) / B.width, 0, 1) * 100), K = Math.round((1 - Fe((w.clientY - B.top) / B.height, 0, 1)) * 100);
3928
+ M({ ...b, s: V, v: K });
3929
+ }, [b, M]), q = ee(async () => {
3930
3930
  if ("EyeDropper" in window)
3931
3931
  try {
3932
- const x = await new window.EyeDropper().open(), B = Ce(x.sRGBHex);
3932
+ const w = await new window.EyeDropper().open(), B = Ce(w.sRGBHex);
3933
3933
  B && M(oe(B));
3934
3934
  } catch {
3935
3935
  }
3936
- }, [M]), W = Ot(y), U = Aa(W.r, W.g, W.b), J = Te(y), Z = Te({ ...y, a: 1 }), F = Math.round(y.a * 100), z = [
3936
+ }, [M]), W = Ht(b), U = Aa(W.r, W.g, W.b), J = Te(b), Z = Te({ ...b, a: 1 }), F = Math.round(b.a * 100), z = [
3937
3937
  { id: "hex", label: "Hex" },
3938
3938
  { id: "rgb", label: "RGB" },
3939
3939
  { id: "hsl", label: "HSL" },
@@ -3953,7 +3953,7 @@ function La({
3953
3953
  r && !a && /* @__PURE__ */ n(
3954
3954
  "label",
3955
3955
  {
3956
- htmlFor: `${v}-swatch`,
3956
+ htmlFor: `${y}-swatch`,
3957
3957
  style: {
3958
3958
  fontSize: o === "sm" ? "var(--lucent-font-size-xs)" : "var(--lucent-font-size-sm)",
3959
3959
  fontWeight: "var(--lucent-font-weight-medium)",
@@ -3966,26 +3966,26 @@ function La({
3966
3966
  /* @__PURE__ */ n(
3967
3967
  qe,
3968
3968
  {
3969
- id: `${v}-swatch`,
3970
- color: `rgba(${W.r},${W.g},${W.b},${y.a})`,
3969
+ id: `${y}-swatch`,
3970
+ color: `rgba(${W.r},${W.g},${W.b},${b.a})`,
3971
3971
  shape: "square",
3972
3972
  showCheckerboard: !0,
3973
3973
  disabled: i,
3974
- onClick: () => b((x) => !x),
3975
- "aria-expanded": m,
3974
+ onClick: () => x((w) => !w),
3975
+ "aria-expanded": h,
3976
3976
  "aria-haspopup": "dialog",
3977
3977
  style: {
3978
- width: p,
3979
- height: p,
3978
+ width: u,
3979
+ height: u,
3980
3980
  borderRadius: o === "sm" ? "var(--lucent-radius-md)" : "var(--lucent-radius-lg)",
3981
- boxShadow: m ? "inset 0 0 0 2px var(--lucent-focus-ring), 0 0 0 3px var(--lucent-accent-subtle)" : "inset 0 0 0 1px rgba(0,0,0,0.2)"
3981
+ boxShadow: h ? "inset 0 0 0 2px var(--lucent-focus-ring), 0 0 0 3px var(--lucent-accent-subtle)" : "inset 0 0 0 1px rgba(0,0,0,0.2)"
3982
3982
  }
3983
3983
  }
3984
3984
  ),
3985
3985
  r && a && /* @__PURE__ */ n(
3986
3986
  "label",
3987
3987
  {
3988
- htmlFor: `${v}-swatch`,
3988
+ htmlFor: `${y}-swatch`,
3989
3989
  style: {
3990
3990
  fontSize: o === "sm" ? "var(--lucent-font-size-xs)" : "var(--lucent-font-size-sm)",
3991
3991
  fontWeight: "var(--lucent-font-weight-medium)",
@@ -3996,7 +3996,7 @@ function La({
3996
3996
  children: r
3997
3997
  }
3998
3998
  ),
3999
- m && pe(
3999
+ h && pe(
4000
4000
  /* @__PURE__ */ k(
4001
4001
  "div",
4002
4002
  {
@@ -4027,24 +4027,24 @@ function La({
4027
4027
  style: {
4028
4028
  position: "relative",
4029
4029
  height: 160,
4030
- background: `hsl(${y.h}, 100%, 50%)`,
4030
+ background: `hsl(${b.h}, 100%, 50%)`,
4031
4031
  cursor: "crosshair",
4032
4032
  userSelect: "none",
4033
4033
  flexShrink: 0
4034
4034
  },
4035
- onPointerDown: (x) => {
4036
- x.currentTarget.setPointerCapture(x.pointerId), N(x);
4035
+ onPointerDown: (w) => {
4036
+ w.currentTarget.setPointerCapture(w.pointerId), N(w);
4037
4037
  },
4038
- onPointerMove: (x) => {
4039
- x.buttons > 0 && N(x);
4038
+ onPointerMove: (w) => {
4039
+ w.buttons > 0 && N(w);
4040
4040
  },
4041
4041
  children: [
4042
4042
  /* @__PURE__ */ n("div", { style: { position: "absolute", inset: 0, background: "linear-gradient(to right, #fff, transparent)" } }),
4043
4043
  /* @__PURE__ */ n("div", { style: { position: "absolute", inset: 0, background: "linear-gradient(to bottom, transparent, #000)" } }),
4044
4044
  /* @__PURE__ */ n("div", { style: {
4045
4045
  position: "absolute",
4046
- left: `${y.s}%`,
4047
- top: `${100 - y.v}%`,
4046
+ left: `${b.s}%`,
4047
+ top: `${100 - b.v}%`,
4048
4048
  transform: "translate(-50%, -50%)",
4049
4049
  width: 14,
4050
4050
  height: 14,
@@ -4061,7 +4061,7 @@ function La({
4061
4061
  /* @__PURE__ */ n(
4062
4062
  qe,
4063
4063
  {
4064
- color: `rgba(${W.r},${W.g},${W.b},${y.a})`,
4064
+ color: `rgba(${W.r},${W.g},${W.b},${b.a})`,
4065
4065
  shape: "square",
4066
4066
  showCheckerboard: !0,
4067
4067
  style: { width: 44, height: 44, borderRadius: 8 }
@@ -4069,14 +4069,14 @@ function La({
4069
4069
  ),
4070
4070
  /* @__PURE__ */ k("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 8 }, children: [
4071
4071
  /* @__PURE__ */ n(
4072
- gt,
4072
+ vt,
4073
4073
  {
4074
- value: y.h,
4074
+ value: b.h,
4075
4075
  min: 0,
4076
4076
  max: 360,
4077
- onChange: (x) => M({ ...y, h: Math.round(x) }),
4077
+ onChange: (w) => M({ ...b, h: Math.round(w) }),
4078
4078
  trackStyle: { background: "linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%)" },
4079
- formatTooltip: (x) => `${Math.round(x)}°`
4079
+ formatTooltip: (w) => `${Math.round(w)}°`
4080
4080
  }
4081
4081
  ),
4082
4082
  /* @__PURE__ */ k("div", { style: { position: "relative", borderRadius: 6, overflow: "hidden" }, children: [
@@ -4090,29 +4090,29 @@ function La({
4090
4090
  } }),
4091
4091
  /* @__PURE__ */ n("div", { style: { position: "absolute", inset: 0, background: `linear-gradient(to right, transparent, ${Z})` } }),
4092
4092
  /* @__PURE__ */ n(
4093
- gt,
4093
+ vt,
4094
4094
  {
4095
- value: y.a,
4095
+ value: b.a,
4096
4096
  min: 0,
4097
4097
  max: 1,
4098
- onChange: (x) => M({ ...y, a: Math.round(x * 100) / 100 }),
4098
+ onChange: (w) => M({ ...b, a: Math.round(w * 100) / 100 }),
4099
4099
  trackStyle: { background: "transparent", position: "relative", zIndex: 1 },
4100
- formatTooltip: (x) => `${Math.round(x * 100)}%`
4100
+ formatTooltip: (w) => `${Math.round(w * 100)}%`
4101
4101
  }
4102
4102
  )
4103
4103
  ] })
4104
4104
  ] })
4105
4105
  ] }),
4106
4106
  /* @__PURE__ */ n(
4107
- Nt,
4107
+ Wt,
4108
4108
  {
4109
4109
  size: "sm",
4110
- value: h,
4111
- onChange: (x) => f(x),
4112
- options: z.map(({ id: x, label: B }) => ({ value: x, label: B }))
4110
+ value: m,
4111
+ onChange: (w) => f(w),
4112
+ options: z.map(({ id: w, label: B }) => ({ value: w, label: B }))
4113
4113
  }
4114
4114
  ),
4115
- h === "hex" && /* @__PURE__ */ k("div", { style: { display: "flex", gap: 6, alignItems: "center" }, children: [
4115
+ m === "hex" && /* @__PURE__ */ k("div", { style: { display: "flex", gap: 6, alignItems: "center" }, children: [
4116
4116
  /* @__PURE__ */ n(
4117
4117
  Le,
4118
4118
  {
@@ -4131,8 +4131,8 @@ function La({
4131
4131
  size: "sm",
4132
4132
  prefix: "#",
4133
4133
  value: T,
4134
- onChange: (x) => {
4135
- const B = x.target.value.replace("#", "");
4134
+ onChange: (w) => {
4135
+ const B = w.target.value.replace("#", "");
4136
4136
  S(B.toUpperCase());
4137
4137
  const V = Ce(`#${B}`);
4138
4138
  if (V) {
@@ -4155,59 +4155,59 @@ function La({
4155
4155
  value: F,
4156
4156
  min: 0,
4157
4157
  max: 100,
4158
- onChange: (x) => {
4159
- const B = +x.target.value;
4160
- !isNaN(B) && B >= 0 && B <= 100 && M({ ...y, a: B / 100 });
4158
+ onChange: (w) => {
4159
+ const B = +w.target.value;
4160
+ !isNaN(B) && B >= 0 && B <= 100 && M({ ...b, a: B / 100 });
4161
4161
  },
4162
4162
  className: "lucent-cp-field",
4163
4163
  style: { width: 68, flexShrink: 0 }
4164
4164
  }
4165
4165
  )
4166
4166
  ] }),
4167
- h === "rgb" && /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6 }, children: [
4168
- { label: "R", val: W.r, max: 255, fn: (x) => M(oe({ ...W, r: x })) },
4169
- { label: "G", val: W.g, max: 255, fn: (x) => M(oe({ ...W, g: x })) },
4170
- { label: "B", val: W.b, max: 255, fn: (x) => M(oe({ ...W, b: x })) },
4171
- { label: "A", val: F, max: 100, fn: (x) => M({ ...y, a: x / 100 }) }
4172
- ].map(({ label: x, val: B, max: V, fn: K }) => /* @__PURE__ */ n(de, { size: "sm", type: "number", prefix: x, value: B, min: 0, max: V, onChange: (j) => {
4167
+ m === "rgb" && /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6 }, children: [
4168
+ { label: "R", val: W.r, max: 255, fn: (w) => M(oe({ ...W, r: w })) },
4169
+ { label: "G", val: W.g, max: 255, fn: (w) => M(oe({ ...W, g: w })) },
4170
+ { label: "B", val: W.b, max: 255, fn: (w) => M(oe({ ...W, b: w })) },
4171
+ { label: "A", val: F, max: 100, fn: (w) => M({ ...b, a: w / 100 }) }
4172
+ ].map(({ label: w, val: B, max: V, fn: K }) => /* @__PURE__ */ n(de, { size: "sm", type: "number", prefix: w, value: B, min: 0, max: V, onChange: (j) => {
4173
4173
  const _ = +j.target.value;
4174
4174
  !isNaN(_) && _ >= 0 && _ <= V && K(_);
4175
- }, className: "lucent-cp-field", style: { flex: 1 } }, x)) }),
4176
- h === "hsl" && /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6 }, children: [
4177
- { label: "H", val: U.h, max: 360, fn: (x) => {
4178
- const { r: B, g: V, b: K } = Re(x, U.s, U.l);
4179
- M(oe({ r: B, g: V, b: K, a: y.a }));
4175
+ }, className: "lucent-cp-field", style: { flex: 1 } }, w)) }),
4176
+ m === "hsl" && /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6 }, children: [
4177
+ { label: "H", val: U.h, max: 360, fn: (w) => {
4178
+ const { r: B, g: V, b: K } = Re(w, U.s, U.l);
4179
+ M(oe({ r: B, g: V, b: K, a: b.a }));
4180
4180
  } },
4181
- { label: "S", val: U.s, max: 100, fn: (x) => {
4182
- const { r: B, g: V, b: K } = Re(U.h, x, U.l);
4183
- M(oe({ r: B, g: V, b: K, a: y.a }));
4181
+ { label: "S", val: U.s, max: 100, fn: (w) => {
4182
+ const { r: B, g: V, b: K } = Re(U.h, w, U.l);
4183
+ M(oe({ r: B, g: V, b: K, a: b.a }));
4184
4184
  } },
4185
- { label: "L", val: U.l, max: 100, fn: (x) => {
4186
- const { r: B, g: V, b: K } = Re(U.h, U.s, x);
4187
- M(oe({ r: B, g: V, b: K, a: y.a }));
4185
+ { label: "L", val: U.l, max: 100, fn: (w) => {
4186
+ const { r: B, g: V, b: K } = Re(U.h, U.s, w);
4187
+ M(oe({ r: B, g: V, b: K, a: b.a }));
4188
4188
  } },
4189
- { label: "A", val: F, max: 100, fn: (x) => M({ ...y, a: x / 100 }) }
4190
- ].map(({ label: x, val: B, max: V, fn: K }) => /* @__PURE__ */ n(de, { size: "sm", type: "number", prefix: x, value: B, min: 0, max: V, onChange: (j) => {
4189
+ { label: "A", val: F, max: 100, fn: (w) => M({ ...b, a: w / 100 }) }
4190
+ ].map(({ label: w, val: B, max: V, fn: K }) => /* @__PURE__ */ n(de, { size: "sm", type: "number", prefix: w, value: B, min: 0, max: V, onChange: (j) => {
4191
4191
  const _ = +j.target.value;
4192
4192
  !isNaN(_) && _ >= 0 && _ <= V && K(_);
4193
- }, className: "lucent-cp-field", style: { flex: 1 } }, x)) }),
4194
- h === "hsb" && /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6 }, children: [
4195
- { label: "H", val: y.h, max: 360, fn: (x) => M({ ...y, h: x }) },
4196
- { label: "S", val: y.s, max: 100, fn: (x) => M({ ...y, s: x }) },
4197
- { label: "B", val: y.v, max: 100, fn: (x) => M({ ...y, v: x }) },
4198
- { label: "A", val: F, max: 100, fn: (x) => M({ ...y, a: x / 100 }) }
4199
- ].map(({ label: x, val: B, max: V, fn: K }) => /* @__PURE__ */ n(de, { size: "sm", type: "number", prefix: x, value: B, min: 0, max: V, onChange: (j) => {
4193
+ }, className: "lucent-cp-field", style: { flex: 1 } }, w)) }),
4194
+ m === "hsb" && /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6 }, children: [
4195
+ { label: "H", val: b.h, max: 360, fn: (w) => M({ ...b, h: w }) },
4196
+ { label: "S", val: b.s, max: 100, fn: (w) => M({ ...b, s: w }) },
4197
+ { label: "B", val: b.v, max: 100, fn: (w) => M({ ...b, v: w }) },
4198
+ { label: "A", val: F, max: 100, fn: (w) => M({ ...b, a: w / 100 }) }
4199
+ ].map(({ label: w, val: B, max: V, fn: K }) => /* @__PURE__ */ n(de, { size: "sm", type: "number", prefix: w, value: B, min: 0, max: V, onChange: (j) => {
4200
4200
  const _ = +j.target.value;
4201
4201
  !isNaN(_) && _ >= 0 && _ <= V && K(_);
4202
- }, className: "lucent-cp-field", style: { flex: 1 } }, x)) }),
4202
+ }, className: "lucent-cp-field", style: { flex: 1 } }, w)) }),
4203
4203
  l.length > 0 && /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
4204
4204
  l.length > 1 && /* @__PURE__ */ n(
4205
- $t,
4205
+ Nt,
4206
4206
  {
4207
4207
  size: "sm",
4208
4208
  value: String(g),
4209
- onChange: (x) => w(Number(x.target.value)),
4210
- options: l.map((x, B) => ({ value: String(B), label: x.label }))
4209
+ onChange: (w) => v(Number(w.target.value)),
4210
+ options: l.map((w, B) => ({ value: String(B), label: w.label }))
4211
4211
  }
4212
4212
  ),
4213
4213
  l.length === 1 && /* @__PURE__ */ n("span", { style: {
@@ -4216,16 +4216,16 @@ function La({
4216
4216
  color: "var(--lucent-text-secondary)",
4217
4217
  fontFamily: "var(--lucent-font-family-base)"
4218
4218
  }, children: (R = l[0]) == null ? void 0 : R.label }),
4219
- /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6, flexWrap: "wrap" }, children: (((H = l[g]) == null ? void 0 : H.colors) ?? []).map((x) => {
4220
- const B = it(x).toLowerCase() === J.slice(0, 7).toLowerCase();
4219
+ /* @__PURE__ */ n("div", { style: { display: "flex", gap: 6, flexWrap: "wrap" }, children: (((H = l[g]) == null ? void 0 : H.colors) ?? []).map((w) => {
4220
+ const B = it(w).toLowerCase() === J.slice(0, 7).toLowerCase();
4221
4221
  return /* @__PURE__ */ n(
4222
4222
  qe,
4223
4223
  {
4224
- color: x,
4224
+ color: w,
4225
4225
  selected: B,
4226
- onClick: () => M(oe(Wt(x)))
4226
+ onClick: () => M(oe(Ot(w)))
4227
4227
  },
4228
- x
4228
+ w
4229
4229
  );
4230
4230
  }) })
4231
4231
  ] })
@@ -4799,7 +4799,7 @@ function Ms({
4799
4799
  label: l,
4800
4800
  style: s
4801
4801
  }) {
4802
- const c = Math.max(0, Math.min(e, t)), d = t > 0 ? c / t * 100 : 0, p = Ha(c, t, r, a, i), u = Wa[o], v = Oa[p], m = l === !0 ? `${Math.round(d)}%` : l || null;
4802
+ const c = Math.max(0, Math.min(e, t)), d = t > 0 ? c / t * 100 : 0, u = Ha(c, t, r, a, i), p = Wa[o], y = Oa[u], h = l === !0 ? `${Math.round(d)}%` : l || null;
4803
4803
  return /* @__PURE__ */ k(
4804
4804
  "div",
4805
4805
  {
@@ -4820,8 +4820,8 @@ function Ms({
4820
4820
  "aria-valuemax": t,
4821
4821
  style: {
4822
4822
  flex: 1,
4823
- height: u.height,
4824
- borderRadius: u.radius,
4823
+ height: p.height,
4824
+ borderRadius: p.radius,
4825
4825
  background: "var(--lucent-surface-secondary)",
4826
4826
  overflow: "hidden"
4827
4827
  },
@@ -4831,15 +4831,15 @@ function Ms({
4831
4831
  style: {
4832
4832
  width: `${d}%`,
4833
4833
  height: "100%",
4834
- borderRadius: u.radius,
4835
- background: v,
4834
+ borderRadius: p.radius,
4835
+ background: y,
4836
4836
  transition: "width var(--lucent-duration-base) var(--lucent-easing-default), background var(--lucent-duration-base) var(--lucent-easing-default)"
4837
4837
  }
4838
4838
  }
4839
4839
  )
4840
4840
  }
4841
4841
  ),
4842
- m != null && /* @__PURE__ */ n(
4842
+ h != null && /* @__PURE__ */ n(
4843
4843
  "span",
4844
4844
  {
4845
4845
  style: {
@@ -4849,7 +4849,7 @@ function Ms({
4849
4849
  whiteSpace: "nowrap",
4850
4850
  flexShrink: 0
4851
4851
  },
4852
- children: m
4852
+ children: h
4853
4853
  }
4854
4854
  )
4855
4855
  ]
@@ -4914,15 +4914,15 @@ const Ds = {
4914
4914
  function _a(e, t, r) {
4915
4915
  const o = t.offsetWidth, a = t.offsetHeight, i = window.innerWidth, l = window.innerHeight;
4916
4916
  let s = 0, c = 0, d = r;
4917
- const p = {
4917
+ const u = {
4918
4918
  top: e.top - a - Ie,
4919
4919
  bottom: e.bottom + Ie,
4920
4920
  left: e.left - o - Ie,
4921
4921
  right: e.right + Ie
4922
4922
  };
4923
- d.startsWith("bottom") ? (s = p.bottom, s + a > l && p.top >= 0 && (s = p.top, d = d.replace("bottom", "top"))) : d.startsWith("top") ? (s = p.top, s < 0 && p.bottom + a <= l && (s = p.bottom, d = d.replace("top", "bottom"))) : d === "left" ? (s = e.top + e.height / 2 - a / 2, c = p.left, c < 0 && p.right + o <= i && (c = p.right, d = "right")) : d === "right" && (s = e.top + e.height / 2 - a / 2, c = p.right, c + o > i && p.left >= 0 && (c = p.left, d = "left")), (d.startsWith("top") || d.startsWith("bottom")) && (d.endsWith("-start") ? c = e.left : d.endsWith("-end") ? c = e.right - o : c = e.left + e.width / 2 - o / 2), c + o > i && (c = i - o - 8), c < 0 && (c = 8), s + a > l && (s = l - a - 8), s < 0 && (s = 8);
4924
- let u = "top left";
4925
- return d.startsWith("top") ? u = d.endsWith("-end") ? "bottom right" : d.endsWith("-start") ? "bottom left" : "bottom center" : d.startsWith("bottom") ? u = d.endsWith("-end") ? "top right" : d.endsWith("-start") ? "top left" : "top center" : d === "left" ? u = "center right" : d === "right" && (u = "center left"), { top: s, left: c, transformOrigin: u };
4923
+ d.startsWith("bottom") ? (s = u.bottom, s + a > l && u.top >= 0 && (s = u.top, d = d.replace("bottom", "top"))) : d.startsWith("top") ? (s = u.top, s < 0 && u.bottom + a <= l && (s = u.bottom, d = d.replace("top", "bottom"))) : d === "left" ? (s = e.top + e.height / 2 - a / 2, c = u.left, c < 0 && u.right + o <= i && (c = u.right, d = "right")) : d === "right" && (s = e.top + e.height / 2 - a / 2, c = u.right, c + o > i && u.left >= 0 && (c = u.left, d = "left")), (d.startsWith("top") || d.startsWith("bottom")) && (d.endsWith("-start") ? c = e.left : d.endsWith("-end") ? c = e.right - o : c = e.left + e.width / 2 - o / 2), c + o > i && (c = i - o - 8), c < 0 && (c = 8), s + a > l && (s = l - a - 8), s < 0 && (s = 8);
4924
+ let p = "top left";
4925
+ return d.startsWith("top") ? p = d.endsWith("-end") ? "bottom right" : d.endsWith("-start") ? "bottom left" : "bottom center" : d.startsWith("bottom") ? p = d.endsWith("-end") ? "top right" : d.endsWith("-start") ? "top left" : "top center" : d === "left" ? p = "center right" : d === "right" && (p = "center left"), { top: s, left: c, transformOrigin: p };
4926
4926
  }
4927
4927
  function Ya({
4928
4928
  onSelect: e,
@@ -4934,9 +4934,9 @@ function Ya({
4934
4934
  selected: l = !1,
4935
4935
  style: s
4936
4936
  }) {
4937
- const c = le(lt), d = O(-1);
4937
+ const c = ie(lt), d = O(-1);
4938
4938
  d.current === -1 && c && (d.current = c.getItemIndex(), c.registerItem(d.current, a));
4939
- const p = c ? c.activeIndex === d.current : !1, u = (c == null ? void 0 : c.size) ?? "md", v = st[u], m = ja[u], b = Ga[u], h = () => {
4939
+ const u = c ? c.activeIndex === d.current : !1, p = (c == null ? void 0 : c.size) ?? "md", y = st[p], h = ja[p], x = Ga[p], m = () => {
4940
4940
  a || (e(), c == null || c.close());
4941
4941
  }, f = () => {
4942
4942
  !a && c && c.setActiveIndex(d.current);
@@ -4947,18 +4947,18 @@ function Ya({
4947
4947
  role: "menuitemcheckbox",
4948
4948
  "aria-checked": l,
4949
4949
  "aria-disabled": a || void 0,
4950
- "data-active": p || void 0,
4950
+ "data-active": u || void 0,
4951
4951
  tabIndex: -1,
4952
- onClick: h,
4952
+ onClick: m,
4953
4953
  onMouseEnter: f,
4954
4954
  style: {
4955
4955
  display: "flex",
4956
4956
  alignItems: "center",
4957
- gap: v,
4958
- padding: v,
4957
+ gap: y,
4958
+ padding: y,
4959
4959
  borderRadius: "var(--lucent-radius-md)",
4960
4960
  cursor: a ? "not-allowed" : "pointer",
4961
- background: l ? "color-mix(in srgb, var(--lucent-accent-default) 12%, var(--lucent-surface-overlay))" : p ? "var(--lucent-surface-secondary)" : "transparent",
4961
+ background: l ? "color-mix(in srgb, var(--lucent-accent-default) 12%, var(--lucent-surface-overlay))" : u ? "var(--lucent-surface-secondary)" : "transparent",
4962
4962
  boxShadow: l ? "var(--lucent-shadow-sm)" : "none",
4963
4963
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default), box-shadow var(--lucent-duration-fast) var(--lucent-easing-default)",
4964
4964
  opacity: a ? 0.5 : 1,
@@ -4971,13 +4971,13 @@ function Ya({
4971
4971
  display: "flex",
4972
4972
  color: a ? "var(--lucent-text-disabled)" : i ? "var(--lucent-danger-text)" : "var(--lucent-text-secondary)"
4973
4973
  }, children: r }),
4974
- /* @__PURE__ */ n("span", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ n(Y, { size: m, style: { color: g }, children: t }) }),
4975
- o && /* @__PURE__ */ n(Y, { size: u === "lg" ? "sm" : "xs", style: { color: "var(--lucent-text-secondary)", flexShrink: 0 }, children: o }),
4974
+ /* @__PURE__ */ n("span", { style: { flex: 1, minWidth: 0 }, children: /* @__PURE__ */ n(Y, { size: h, style: { color: g }, children: t }) }),
4975
+ o && /* @__PURE__ */ n(Y, { size: p === "lg" ? "sm" : "xs", style: { color: "var(--lucent-text-secondary)", flexShrink: 0 }, children: o }),
4976
4976
  l && /* @__PURE__ */ n("span", { style: {
4977
4977
  flexShrink: 0,
4978
4978
  display: "flex",
4979
4979
  color: "var(--lucent-accent-default)"
4980
- }, children: /* @__PURE__ */ n("svg", { width: b, height: b, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ n("polyline", { points: "20 6 9 17 4 12" }) }) })
4980
+ }, children: /* @__PURE__ */ n("svg", { width: x, height: x, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, children: /* @__PURE__ */ n("polyline", { points: "20 6 9 17 4 12" }) }) })
4981
4981
  ]
4982
4982
  }
4983
4983
  );
@@ -4997,7 +4997,7 @@ function zs({ style: e }) {
4997
4997
  );
4998
4998
  }
4999
4999
  function Es({ label: e, children: t, style: r }) {
5000
- const o = le(lt), a = (o == null ? void 0 : o.size) ?? "md", i = st[a];
5000
+ const o = ie(lt), a = (o == null ? void 0 : o.size) ?? "md", i = st[a];
5001
5001
  return /* @__PURE__ */ k("div", { role: "group", "aria-label": e, style: r, children: [
5002
5002
  /* @__PURE__ */ n("div", { style: { padding: `${i} ${i} var(--lucent-space-1)` }, children: /* @__PURE__ */ n(Y, { size: Ua[a], color: "secondary", weight: "medium", children: e }) }),
5003
5003
  t
@@ -5013,32 +5013,32 @@ function Ka({
5013
5013
  portalContainer: l,
5014
5014
  style: s
5015
5015
  }) {
5016
- const c = a !== void 0, [d, p] = E(!1), u = c ? a : d, [v, m] = E(!1), [b, h] = E("idle"), f = O(null), g = O(null), w = O(null), y = O(!1), [C, T] = E(null), S = O(0), L = O(/* @__PURE__ */ new Map()), [I, A] = E(-1);
5017
- if (!y.current && typeof document < "u") {
5016
+ const c = a !== void 0, [d, u] = E(!1), p = c ? a : d, [y, h] = E(!1), [x, m] = E("idle"), f = O(null), g = O(null), v = O(null), b = O(!1), [C, T] = E(null), S = O(0), L = O(/* @__PURE__ */ new Map()), [I, A] = E(-1);
5017
+ if (!b.current && typeof document < "u") {
5018
5018
  const F = document.createElement("style");
5019
- F.textContent = Va, document.head.appendChild(F), y.current = !0;
5019
+ F.textContent = Va, document.head.appendChild(F), b.current = !0;
5020
5020
  }
5021
5021
  G(() => {
5022
- if (u)
5023
- S.current = 0, L.current.clear(), m(!0), h("entering");
5024
- else if (v) {
5025
- h("exiting");
5022
+ if (p)
5023
+ S.current = 0, L.current.clear(), h(!0), m("entering");
5024
+ else if (y) {
5025
+ m("exiting");
5026
5026
  const F = setTimeout(() => {
5027
- m(!1), h("idle");
5027
+ h(!1), m("idle");
5028
5028
  }, Ge);
5029
5029
  return () => clearTimeout(F);
5030
5030
  }
5031
- }, [u]);
5031
+ }, [p]);
5032
5032
  const P = ee((F) => {
5033
- c || p(F), i == null || i(F);
5033
+ c || u(F), i == null || i(F);
5034
5034
  }, [c, i]), $ = ee(() => {
5035
- const F = w.current;
5035
+ const F = v.current;
5036
5036
  F && (F.querySelector("button, [tabindex]") ?? F).focus();
5037
5037
  }, []), M = ee(() => {
5038
5038
  P(!1), $();
5039
5039
  }, [P, $]);
5040
- ie(() => {
5041
- if (!v || b !== "entering" || !f.current) return;
5040
+ se(() => {
5041
+ if (!y || x !== "entering" || !f.current) return;
5042
5042
  const F = requestAnimationFrame(() => {
5043
5043
  const z = g.current, D = f.current;
5044
5044
  if (!z || !D) return;
@@ -5046,27 +5046,27 @@ function Ka({
5046
5046
  T(_a(R, z, r));
5047
5047
  });
5048
5048
  return () => cancelAnimationFrame(F);
5049
- }, [v, b, r]), G(() => {
5050
- if (!v || b !== "entering") return;
5049
+ }, [y, x, r]), G(() => {
5050
+ if (!y || x !== "entering") return;
5051
5051
  const F = setTimeout(() => {
5052
5052
  const D = Array.from(L.current.entries()).sort((R, H) => R[0] - H[0]).find(([, R]) => !R.disabled);
5053
5053
  A(D ? D[0] : -1);
5054
5054
  }, 0);
5055
5055
  return () => clearTimeout(F);
5056
- }, [v, b]), G(() => {
5057
- if (!u) return;
5056
+ }, [y, x]), G(() => {
5057
+ if (!p) return;
5058
5058
  const F = (D) => {
5059
- var H, x;
5059
+ var H, w;
5060
5060
  const R = D.target;
5061
- (H = f.current) != null && H.contains(R) || (x = g.current) != null && x.contains(R) || M();
5061
+ (H = f.current) != null && H.contains(R) || (w = g.current) != null && w.contains(R) || M();
5062
5062
  }, z = requestAnimationFrame(() => {
5063
5063
  document.addEventListener("mousedown", F);
5064
5064
  });
5065
5065
  return () => {
5066
5066
  cancelAnimationFrame(z), document.removeEventListener("mousedown", F);
5067
5067
  };
5068
- }, [u, M]), G(() => {
5069
- if (!u) return;
5068
+ }, [p, M]), G(() => {
5069
+ if (!p) return;
5070
5070
  let F = !1;
5071
5071
  const z = setTimeout(() => {
5072
5072
  F = !0;
@@ -5076,9 +5076,9 @@ function Ka({
5076
5076
  return window.addEventListener("scroll", D, { passive: !0, capture: !0 }), () => {
5077
5077
  clearTimeout(z), window.removeEventListener("scroll", D, { capture: !0 });
5078
5078
  };
5079
- }, [u, M]);
5079
+ }, [p, M]);
5080
5080
  const N = ee(() => Array.from(L.current.entries()).filter(([, F]) => !F.disabled).map(([F]) => F).sort((F, z) => F - z), []), q = ee((F) => {
5081
- if (!u) return;
5081
+ if (!p) return;
5082
5082
  const z = N();
5083
5083
  if (z.length !== 0)
5084
5084
  switch (F.key) {
@@ -5122,21 +5122,21 @@ function Ka({
5122
5122
  break;
5123
5123
  }
5124
5124
  }
5125
- }, [u, M, N]);
5125
+ }, [p, M, N]);
5126
5126
  G(() => {
5127
- if (u)
5127
+ if (p)
5128
5128
  return document.addEventListener("keydown", q), () => document.removeEventListener("keydown", q);
5129
- }, [u, q]), G(() => {
5130
- if (!u) return;
5129
+ }, [p, q]), G(() => {
5130
+ if (!p) return;
5131
5131
  const F = g.current;
5132
5132
  if (!F) return;
5133
5133
  const z = F.querySelector('[data-active="true"]');
5134
5134
  z == null || z.scrollIntoView({ block: "nearest" });
5135
- }, [I, u]);
5135
+ }, [I, p]);
5136
5136
  const W = () => {
5137
- P(!u);
5137
+ P(!p);
5138
5138
  }, U = (F) => {
5139
- (F.key === "Enter" || F.key === " " || F.key === "ArrowDown") && (F.preventDefault(), u || P(!0)), F.key === "ArrowUp" && (F.preventDefault(), u || (P(!0), setTimeout(() => {
5139
+ (F.key === "Enter" || F.key === " " || F.key === "ArrowDown") && (F.preventDefault(), p || P(!0)), F.key === "ArrowUp" && (F.preventDefault(), p || (P(!0), setTimeout(() => {
5140
5140
  const z = N();
5141
5141
  z.length > 0 && A(z[z.length - 1]);
5142
5142
  }, 0)));
@@ -5159,19 +5159,19 @@ function Ka({
5159
5159
  children: /* @__PURE__ */ n(
5160
5160
  "span",
5161
5161
  {
5162
- ref: w,
5162
+ ref: v,
5163
5163
  onClick: W,
5164
5164
  onKeyDown: U,
5165
5165
  "aria-haspopup": "menu",
5166
- "aria-expanded": u,
5167
- "aria-controls": u ? Z : void 0,
5166
+ "aria-expanded": p,
5167
+ "aria-controls": p ? Z : void 0,
5168
5168
  style: { display: "inline-flex", cursor: "pointer" },
5169
5169
  children: e
5170
5170
  }
5171
5171
  )
5172
5172
  }
5173
5173
  ),
5174
- v && pe(
5174
+ y && pe(
5175
5175
  /* @__PURE__ */ n(lt.Provider, { value: J, children: /* @__PURE__ */ n(
5176
5176
  "div",
5177
5177
  {
@@ -5193,10 +5193,10 @@ function Ka({
5193
5193
  padding: st[o],
5194
5194
  maxHeight: "min(320px, calc(100vh - 32px))",
5195
5195
  overflowY: "auto",
5196
- animation: b === "exiting" ? `lucent-menu-out ${Ge}ms var(--lucent-easing-default) forwards` : `lucent-menu-in ${Ge}ms var(--lucent-easing-decelerate)`,
5196
+ animation: x === "exiting" ? `lucent-menu-out ${Ge}ms var(--lucent-easing-default) forwards` : `lucent-menu-in ${Ge}ms var(--lucent-easing-decelerate)`,
5197
5197
  transformOrigin: (C == null ? void 0 : C.transformOrigin) ?? "top left",
5198
5198
  outline: "none",
5199
- pointerEvents: b === "exiting" ? "none" : "auto",
5199
+ pointerEvents: x === "exiting" ? "none" : "auto",
5200
5200
  ...s
5201
5201
  },
5202
5202
  children: t
@@ -5438,7 +5438,7 @@ const As = {
5438
5438
  ],
5439
5439
  notes: 'Focus returns to the trigger element after the menu is dismissed via Escape or selection. Disabled items are skipped during keyboard navigation and have aria-disabled. Selected items use role="menuitemcheckbox" with aria-checked for screen reader announcement. The popover is portaled to document.body (or portalContainer) but remains semantically linked to the trigger via aria-controls.'
5440
5440
  }
5441
- }, Ht = {
5441
+ }, Vt = {
5442
5442
  primary: {
5443
5443
  background: "var(--lucent-accent-default)",
5444
5444
  color: "var(--lucent-text-on-accent)",
@@ -5509,17 +5509,17 @@ const As = {
5509
5509
  "danger-outline": "0 4px 14px -2px var(--lucent-danger-subtle)",
5510
5510
  "danger-ghost": "0 4px 14px -2px var(--lucent-danger-subtle)"
5511
5511
  };
5512
- function vt(e, t, r) {
5512
+ function bt(e, t, r) {
5513
5513
  e.style.transform = "translateY(-1px)", e.style.boxShadow = tr[t], e.style.background = er[t], (t === "danger" && r !== !1 || t === "danger-outline" && r !== !1) && (e.style.borderColor = "var(--lucent-danger-hover)");
5514
5514
  }
5515
- function bt(e, t, r) {
5516
- e.style.transform = "", e.style.boxShadow = "", e.style.background = Ht[t].background, (t === "danger" && r !== !1 || t === "danger-outline" && r !== !1) && (e.style.borderColor = "var(--lucent-danger-default)");
5515
+ function yt(e, t, r) {
5516
+ e.style.transform = "", e.style.boxShadow = "", e.style.background = Vt[t].background, (t === "danger" && r !== !1 || t === "danger-outline" && r !== !1) && (e.style.borderColor = "var(--lucent-danger-default)");
5517
5517
  }
5518
- function yt(e, t) {
5518
+ function xt(e, t) {
5519
5519
  const o = t === "danger" || t === "danger-outline" || t === "danger-ghost" ? "var(--lucent-danger-default)" : "var(--lucent-accent-default)";
5520
5520
  e.style.transform = "translateY(1px)", e.style.boxShadow = `0 0 0 2px var(--lucent-surface), 0 0 0 4px ${o}`, e.dataset.pressed = "1";
5521
5521
  }
5522
- function xt(e) {
5522
+ function wt(e) {
5523
5523
  e.style.transform = "", e.style.boxShadow = "", delete e.dataset.pressed;
5524
5524
  }
5525
5525
  function nr({
@@ -5533,13 +5533,13 @@ function nr({
5533
5533
  disabled: s,
5534
5534
  loading: c = !1,
5535
5535
  leftIcon: d,
5536
- style: p
5536
+ style: u
5537
5537
  }) {
5538
- const u = s ?? c, [v, m] = E(!1), b = Xa[a], h = b.borderRadius ?? "var(--lucent-radius-lg)", f = Ja[a], g = u ? {
5538
+ const p = s ?? c, [y, h] = E(!1), x = Xa[a], m = x.borderRadius ?? "var(--lucent-radius-lg)", f = Ja[a], g = p ? {
5539
5539
  background: "color-mix(in srgb, var(--lucent-surface-secondary) 70%, var(--lucent-border-default))",
5540
5540
  color: "color-mix(in srgb, var(--lucent-text-disabled) 50%, var(--lucent-border-default))",
5541
5541
  borderColor: "transparent"
5542
- } : {}, w = {
5542
+ } : {}, v = {
5543
5543
  display: "inline-flex",
5544
5544
  alignItems: "center",
5545
5545
  justifyContent: "center",
@@ -5548,18 +5548,18 @@ function nr({
5548
5548
  fontWeight: "var(--lucent-font-weight-medium)",
5549
5549
  lineHeight: 1,
5550
5550
  letterSpacing: "0.01em",
5551
- cursor: u ? "not-allowed" : "pointer",
5551
+ cursor: p ? "not-allowed" : "pointer",
5552
5552
  outline: "none",
5553
5553
  margin: 0,
5554
5554
  boxSizing: "border-box",
5555
5555
  whiteSpace: "nowrap",
5556
5556
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default), border-color var(--lucent-duration-fast) var(--lucent-easing-default), box-shadow var(--lucent-duration-fast) var(--lucent-easing-default), transform 80ms var(--lucent-easing-default)",
5557
- height: b.height,
5558
- fontSize: b.fontSize,
5559
- ...Ht[o],
5557
+ height: x.height,
5558
+ fontSize: x.fontSize,
5559
+ ...Vt[o],
5560
5560
  ...i === !1 && { border: "none" },
5561
5561
  ...g
5562
- }, y = "var(--lucent-radius-sm)", C = `${h} ${y} ${y} ${h}`, T = `${y} ${h} ${h} ${y}`;
5562
+ }, b = "var(--lucent-radius-sm)", C = `${m} ${b} ${b} ${m}`, T = `${b} ${m} ${m} ${b}`;
5563
5563
  return /* @__PURE__ */ k(
5564
5564
  "div",
5565
5565
  {
@@ -5569,27 +5569,27 @@ function nr({
5569
5569
  display: "inline-flex",
5570
5570
  alignItems: "center",
5571
5571
  gap: "calc(var(--lucent-space-1) / 2)",
5572
- ...p
5572
+ ...u
5573
5573
  },
5574
5574
  children: [
5575
5575
  /* @__PURE__ */ k(
5576
5576
  "button",
5577
5577
  {
5578
5578
  type: "button",
5579
- disabled: u,
5579
+ disabled: p,
5580
5580
  "aria-busy": c,
5581
5581
  onClick: t,
5582
5582
  onMouseEnter: (S) => {
5583
- u || vt(S.currentTarget, o, i);
5583
+ p || bt(S.currentTarget, o, i);
5584
5584
  },
5585
5585
  onMouseLeave: (S) => {
5586
- u || bt(S.currentTarget, o, i);
5586
+ p || yt(S.currentTarget, o, i);
5587
5587
  },
5588
5588
  onMouseDown: (S) => {
5589
- u || yt(S.currentTarget, o);
5589
+ p || xt(S.currentTarget, o);
5590
5590
  },
5591
5591
  onMouseUp: (S) => {
5592
- xt(S.currentTarget);
5592
+ wt(S.currentTarget);
5593
5593
  },
5594
5594
  onFocus: (S) => {
5595
5595
  S.currentTarget.dataset.pressed || (S.currentTarget.style.boxShadow = "0 0 0 3px var(--lucent-accent-subtle)");
@@ -5598,9 +5598,9 @@ function nr({
5598
5598
  S.currentTarget.style.boxShadow = "";
5599
5599
  },
5600
5600
  style: {
5601
- ...w,
5601
+ ...v,
5602
5602
  borderRadius: C,
5603
- padding: o === "ghost" || o === "danger-ghost" ? `0 ${b.paddingInner} 0 ${b.paddingOuter}` : `0 ${b.paddingOuter}`
5603
+ padding: o === "ghost" || o === "danger-ghost" ? `0 ${x.paddingInner} 0 ${x.paddingOuter}` : `0 ${x.paddingOuter}`
5604
5604
  },
5605
5605
  children: [
5606
5606
  d,
@@ -5611,27 +5611,27 @@ function nr({
5611
5611
  /* @__PURE__ */ n(
5612
5612
  Ka,
5613
5613
  {
5614
- open: v,
5615
- onOpenChange: m,
5614
+ open: y,
5615
+ onOpenChange: h,
5616
5616
  placement: l,
5617
5617
  size: Qa[a],
5618
5618
  trigger: /* @__PURE__ */ n(
5619
5619
  "button",
5620
5620
  {
5621
5621
  type: "button",
5622
- disabled: u,
5622
+ disabled: p,
5623
5623
  "aria-label": "More actions",
5624
5624
  onMouseEnter: (S) => {
5625
- u || vt(S.currentTarget, o, i);
5625
+ p || bt(S.currentTarget, o, i);
5626
5626
  },
5627
5627
  onMouseLeave: (S) => {
5628
- u || bt(S.currentTarget, o, i);
5628
+ p || yt(S.currentTarget, o, i);
5629
5629
  },
5630
5630
  onMouseDown: (S) => {
5631
- u || yt(S.currentTarget, o);
5631
+ p || xt(S.currentTarget, o);
5632
5632
  },
5633
5633
  onMouseUp: (S) => {
5634
- xt(S.currentTarget);
5634
+ wt(S.currentTarget);
5635
5635
  },
5636
5636
  onFocus: (S) => {
5637
5637
  S.currentTarget.dataset.pressed || (S.currentTarget.style.boxShadow = "0 0 0 3px var(--lucent-accent-subtle)");
@@ -5640,12 +5640,12 @@ function nr({
5640
5640
  S.currentTarget.style.boxShadow = "";
5641
5641
  },
5642
5642
  style: {
5643
- ...w,
5643
+ ...v,
5644
5644
  borderRadius: T,
5645
5645
  padding: 0,
5646
5646
  width: Za[a]
5647
5647
  },
5648
- children: /* @__PURE__ */ n("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, style: { flexShrink: 0, transition: "transform var(--lucent-duration-fast) var(--lucent-easing-default)", ...v && { transform: "rotate(180deg)" } }, children: /* @__PURE__ */ n("polyline", { points: "6 9 12 15 18 9" }) })
5648
+ children: /* @__PURE__ */ n("svg", { width: f, height: f, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2.5, strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": !0, style: { flexShrink: 0, transition: "transform var(--lucent-duration-fast) var(--lucent-easing-default)", ...y && { transform: "rotate(180deg)" } }, children: /* @__PURE__ */ n("polyline", { points: "6 9 12 15 18 9" }) })
5649
5649
  }
5650
5650
  ),
5651
5651
  children: r.map((S, L) => /* @__PURE__ */ n(
@@ -5759,13 +5759,13 @@ function rr({
5759
5759
  children: r.map((a, i) => {
5760
5760
  const l = i === 0, s = i === o - 1;
5761
5761
  if (o === 1) return a;
5762
- const d = a.props.style ?? {}, p = d.borderRadius ?? "var(--lucent-radius-lg)";
5763
- let u;
5764
- return l ? u = `${p} ${be} ${be} ${p}` : s ? u = `${be} ${p} ${p} ${be}` : u = be, gn(a, {
5762
+ const d = a.props.style ?? {}, u = d.borderRadius ?? "var(--lucent-radius-lg)";
5763
+ let p;
5764
+ return l ? p = `${u} ${be} ${be} ${u}` : s ? p = `${be} ${u} ${u} ${be}` : p = be, gn(a, {
5765
5765
  key: i,
5766
5766
  style: {
5767
5767
  ...d,
5768
- borderRadius: u
5768
+ borderRadius: p
5769
5769
  }
5770
5770
  });
5771
5771
  })
@@ -5927,7 +5927,7 @@ const Ls = {
5927
5927
  ariaAttributes: ["aria-required", "aria-describedby"],
5928
5928
  notes: 'Link the wrapped control to an error message using aria-describedby on the control and a matching id on the error element for full screen reader support. The required asterisk is aria-hidden; set aria-required="true" on the control itself.'
5929
5929
  }
5930
- }, wt = { sm: 14, md: 18, lg: 20 }, or = { sm: "sm", md: "md", lg: "md" }, ir = { sm: "var(--lucent-space-1)", md: "var(--lucent-space-2)", lg: "var(--lucent-space-2)" }, sr = ({ size: e = 16 }) => /* @__PURE__ */ k("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
5930
+ }, kt = { sm: 14, md: 18, lg: 20 }, or = { sm: "sm", md: "md", lg: "md" }, ir = { sm: "var(--lucent-space-1)", md: "var(--lucent-space-2)", lg: "var(--lucent-space-2)" }, sr = ({ size: e = 16 }) => /* @__PURE__ */ k("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: [
5931
5931
  /* @__PURE__ */ n("circle", { cx: "6.5", cy: "6.5", r: "4", stroke: "currentColor", strokeWidth: "1.5" }),
5932
5932
  /* @__PURE__ */ n("path", { d: "M9.5 9.5L13 13", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
5933
5933
  ] }), lr = ({ size: e = 16 }) => /* @__PURE__ */ n("svg", { width: e, height: e, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M2 3h12M4 8h8M6 13h4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }), cr = () => /* @__PURE__ */ n("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M3 3L11 11M11 3L3 11", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
@@ -5942,13 +5942,13 @@ function Fs({
5942
5942
  errorText: s,
5943
5943
  results: c = [],
5944
5944
  onResultSelect: d,
5945
- isLoading: p = !1,
5946
- disabled: u = !1,
5947
- id: v,
5948
- style: m
5945
+ isLoading: u = !1,
5946
+ disabled: p = !1,
5947
+ id: y,
5948
+ style: h
5949
5949
  }) {
5950
- const b = o ?? (r === "filter" ? "Filter…" : "Search…"), [h, f] = E(!1), [g, w] = E(null), y = O(null), C = O(null), T = O(null), [S, L] = E({ top: 0, left: 0, width: 0 }), I = r === "search" && h && c.length > 0;
5951
- ie(() => {
5950
+ const x = o ?? (r === "filter" ? "Filter…" : "Search…"), [m, f] = E(!1), [g, v] = E(null), b = O(null), C = O(null), T = O(null), [S, L] = E({ top: 0, left: 0, width: 0 }), I = r === "search" && m && c.length > 0;
5951
+ se(() => {
5952
5952
  if (!I || !C.current) return;
5953
5953
  const q = C.current.getBoundingClientRect();
5954
5954
  L({ top: q.bottom + 4, left: q.left, width: q.width });
@@ -5958,10 +5958,10 @@ function Fs({
5958
5958
  }, P = (q) => {
5959
5959
  d == null || d(q), f(!1);
5960
5960
  }, $ = () => {
5961
- y.current = setTimeout(() => f(!1), 150);
5961
+ b.current = setTimeout(() => f(!1), 150);
5962
5962
  }, M = () => {
5963
- y.current && clearTimeout(y.current), f(!0);
5964
- }, N = p ? /* @__PURE__ */ n(On, { size: "sm" }) : e ? /* @__PURE__ */ n(
5963
+ b.current && clearTimeout(b.current), f(!0);
5964
+ }, N = u ? /* @__PURE__ */ n(On, { size: "sm" }) : e ? /* @__PURE__ */ n(
5965
5965
  "button",
5966
5966
  {
5967
5967
  type: "button",
@@ -5986,18 +5986,18 @@ function Fs({
5986
5986
  children: /* @__PURE__ */ n(cr, {})
5987
5987
  }
5988
5988
  ) : null;
5989
- return /* @__PURE__ */ k("div", { ref: C, style: { ...m }, children: [
5989
+ return /* @__PURE__ */ k("div", { ref: C, style: { ...h }, children: [
5990
5990
  /* @__PURE__ */ n(
5991
5991
  de,
5992
5992
  {
5993
- id: v,
5993
+ id: y,
5994
5994
  type: "text",
5995
5995
  size: a,
5996
5996
  value: e,
5997
5997
  onChange: (q) => t(q.target.value),
5998
- placeholder: b,
5999
- disabled: u,
6000
- leftElement: r === "filter" ? /* @__PURE__ */ n(lr, { size: wt[a] }) : /* @__PURE__ */ n(sr, { size: wt[a] }),
5998
+ placeholder: x,
5999
+ disabled: p,
6000
+ leftElement: r === "filter" ? /* @__PURE__ */ n(lr, { size: kt[a] }) : /* @__PURE__ */ n(sr, { size: kt[a] }),
6001
6001
  rightElement: N ?? void 0,
6002
6002
  onFocus: M,
6003
6003
  onBlur: $,
@@ -6032,8 +6032,8 @@ function Fs({
6032
6032
  role: "option",
6033
6033
  "aria-selected": !1,
6034
6034
  onMouseDown: () => P(q),
6035
- onMouseEnter: () => w(W),
6036
- onMouseLeave: () => w(null),
6035
+ onMouseEnter: () => v(W),
6036
+ onMouseLeave: () => v(null),
6037
6037
  style: {
6038
6038
  padding: "var(--lucent-space-2)",
6039
6039
  borderRadius: "var(--lucent-radius-md)",
@@ -6185,7 +6185,7 @@ const [results, setResults] = useState([]);
6185
6185
  keyboardInteractions: ["Enter to select focused result", "Escape to close dropdown"],
6186
6186
  notes: 'The results list uses role="listbox" with role="option" items. For full keyboard navigation (arrow keys to move between results), wire up onKeyDown on the Input and manage an activeIndex state.'
6187
6187
  }
6188
- }, Vt = ve("0"), dr = {
6188
+ }, ct = ve({ px: "0", py: "0" }), dr = {
6189
6189
  none: { py: "0", px: "0" },
6190
6190
  sm: { py: "var(--lucent-space-2)", px: "var(--lucent-space-3)" },
6191
6191
  md: { py: "var(--lucent-space-4)", px: "var(--lucent-space-5)" },
@@ -6262,26 +6262,26 @@ function $s({
6262
6262
  style: s,
6263
6263
  onClick: c,
6264
6264
  href: d,
6265
- target: p,
6266
- rel: u,
6267
- disabled: v,
6268
- status: m,
6269
- selected: b,
6270
- hoverable: h,
6265
+ target: u,
6266
+ rel: p,
6267
+ disabled: y,
6268
+ status: h,
6269
+ selected: x,
6270
+ hoverable: m,
6271
6271
  media: f
6272
6272
  }) {
6273
- const g = fr[e], w = e === "combo", y = i ?? (w ? "md" : g.shadowDefault), { py: C, px: T } = dr[a], S = `${C} ${T}`, L = ur[l], I = d != null, A = c != null || I, P = A || (h ?? !1), $ = (v ?? !1) && A, M = I ? "a" : A ? "button" : "div", [N, q] = E(!1), [W, U] = E(!1), [J, Z] = E(!1), F = (b ?? !1) && !$, z = F ? yr : void 0, D = xr(g, b ?? !1, $), R = m != null ? `inset 3px 0 0 ${pr[m]}` : void 0;
6273
+ const g = fr[e], v = e === "combo", b = i ?? (v ? "md" : g.shadowDefault), { py: C, px: T } = dr[a], S = `${C} ${T}`, L = ur[l], I = d != null, A = c != null || I, P = A || (m ?? !1), $ = (y ?? !1) && A, M = I ? "a" : A ? "button" : "div", [N, q] = E(!1), [W, U] = E(!1), [J, Z] = E(!1), F = (x ?? !1) && !$, z = F ? yr : void 0, D = xr(g, x ?? !1, $), R = h != null ? `inset 3px 0 0 ${pr[h]}` : void 0;
6274
6274
  let H;
6275
- w ? H = he(z, R) : P && !$ ? J ? H = he(br, z, R) : W ? H = he(vr, z, R) : N ? H = he(A ? mr : gr, Me[y], z, R) : H = he(Me[y], z, R) : H = he(Me[y], z, R);
6276
- const x = {
6275
+ v ? H = he(z, R) : P && !$ ? J ? H = he(br, z, R) : W ? H = he(vr, z, R) : N ? H = he(A ? mr : gr, Me[b], z, R) : H = he(Me[b], z, R) : H = he(Me[b], z, R);
6276
+ const w = {
6277
6277
  display: "flex",
6278
6278
  flexDirection: "column",
6279
6279
  background: D,
6280
6280
  border: g.border,
6281
6281
  borderRadius: L,
6282
- // Outer box-shadow rings (selected, focus) get clipped by overflow:hidden,
6283
- // so we switch to overflow:visible when a ring is active.
6284
- overflow: F || P && W ? "visible" : "hidden",
6282
+ // Only clip overflow when media is present (to round image corners).
6283
+ // Default to visible so nested child shadows (e.g. elevated Card inside combo) aren't cut off.
6284
+ overflow: f != null && !(F || P && W) ? "hidden" : "visible",
6285
6285
  boxSizing: "border-box",
6286
6286
  position: "relative",
6287
6287
  ...H !== void 0 && { boxShadow: H },
@@ -6316,7 +6316,7 @@ function $s({
6316
6316
  return /* @__PURE__ */ k(
6317
6317
  M,
6318
6318
  {
6319
- style: x,
6319
+ style: w,
6320
6320
  ...P && !$ ? {
6321
6321
  onMouseEnter: () => q(!0),
6322
6322
  onMouseLeave: () => {
@@ -6331,18 +6331,18 @@ function $s({
6331
6331
  } : {},
6332
6332
  ...I && {
6333
6333
  href: $ ? void 0 : d,
6334
- ...p !== void 0 && { target: p },
6335
- ...u !== void 0 && { rel: u }
6334
+ ...u !== void 0 && { target: u },
6335
+ ...p !== void 0 && { rel: p }
6336
6336
  },
6337
6337
  ...!I && A && {
6338
6338
  type: "button",
6339
6339
  ...$ && { disabled: !0 }
6340
6340
  },
6341
6341
  ...c !== void 0 && !$ && { onClick: c },
6342
- ...A && b !== void 0 && { "aria-pressed": b },
6342
+ ...A && x !== void 0 && { "aria-pressed": x },
6343
6343
  ...I && $ && { "aria-disabled": !0 },
6344
6344
  children: [
6345
- f != null && /* @__PURE__ */ n("div", { style: { lineHeight: 0 }, children: f }),
6345
+ f != null && /* @__PURE__ */ n("div", { style: { lineHeight: 0, overflow: "hidden", borderRadius: `${L} ${L} 0 0` }, children: f }),
6346
6346
  t != null && /* @__PURE__ */ n(
6347
6347
  "div",
6348
6348
  {
@@ -6353,17 +6353,17 @@ function $s({
6353
6353
  children: t
6354
6354
  }
6355
6355
  ),
6356
- /* @__PURE__ */ n(Vt.Provider, { value: T, children: /* @__PURE__ */ n(
6356
+ /* @__PURE__ */ n(ct.Provider, { value: { px: T, py: C }, children: /* @__PURE__ */ n(
6357
6357
  "div",
6358
6358
  {
6359
6359
  style: {
6360
6360
  padding: S,
6361
6361
  flex: 1,
6362
- ...w ? {
6362
+ ...v ? {
6363
6363
  background: "var(--lucent-surface)",
6364
6364
  border: "1px solid var(--lucent-border-default)",
6365
6365
  borderRadius: L,
6366
- boxShadow: Me[y],
6366
+ boxShadow: Me[b],
6367
6367
  marginLeft: `calc(${T} / 3)`,
6368
6368
  marginRight: `calc(${T} / 3)`
6369
6369
  } : {}
@@ -6386,7 +6386,7 @@ function $s({
6386
6386
  );
6387
6387
  }
6388
6388
  function Ns({ children: e, style: t }) {
6389
- const r = le(Vt);
6389
+ const { px: r } = ie(ct);
6390
6390
  return /* @__PURE__ */ n(
6391
6391
  "div",
6392
6392
  {
@@ -6518,7 +6518,7 @@ const Ws = {
6518
6518
  name: "media",
6519
6519
  type: "ReactNode",
6520
6520
  required: !1,
6521
- description: "Full-bleed content rendered at the top of the card (before header). No padding is applied. Use for hero images, illustrations, or any edge-to-edge top content. The card's overflow:hidden clips media to the border-radius."
6521
+ description: "Full-bleed content rendered at the top of the card (before header). No padding is applied. Use for hero images, illustrations, or any edge-to-edge top content. The media slot self-clips to the card's top border-radius. Cards without media default to overflow:visible so nested child shadows (e.g. an elevated Card inside a Collapsible) are never cut off."
6522
6522
  }
6523
6523
  ],
6524
6524
  usageExamples: [
@@ -6614,17 +6614,17 @@ const Ws = {
6614
6614
  },
6615
6615
  {
6616
6616
  title: "CollapsibleCard recipe — outline",
6617
- code: `<Card variant="outline" padding="none" hoverable>
6617
+ code: `<Card variant="outline" hoverable>
6618
6618
  <Collapsible trigger={<Text as="span" weight="semibold" size="sm">Filters</Text>} defaultOpen>
6619
- <Text size="sm" color="secondary">Card + Collapsible composed together.</Text>
6619
+ <Text size="sm" color="secondary">Card + Collapsible composed together. Collapsible auto-bleeds to card edges.</Text>
6620
6620
  </Collapsible>
6621
6621
  </Card>`
6622
6622
  },
6623
6623
  {
6624
6624
  title: "CollapsibleCard recipe — combo (filled + elevated)",
6625
- code: `<Card variant="filled" padding="none" hoverable>
6625
+ code: `<Card variant="filled" hoverable>
6626
6626
  <Collapsible trigger={<Text as="span" weight="semibold" size="sm">Details</Text>} padded={false}>
6627
- <Card variant="elevated" padding="sm">
6627
+ <Card variant="elevated" padding="sm" style={{ margin: 'var(--lucent-space-1) var(--lucent-space-2) var(--lucent-space-2)' }}>
6628
6628
  <Text size="sm" color="secondary">Two-tone: flat trigger on filled surface, content in elevated body.</Text>
6629
6629
  </Card>
6630
6630
  </Collapsible>
@@ -6929,7 +6929,7 @@ const js = {
6929
6929
  circle: "var(--lucent-radius-full)",
6930
6930
  rectangle: "var(--lucent-radius-md)"
6931
6931
  };
6932
- function kt({
6932
+ function St({
6933
6933
  width: e,
6934
6934
  height: t,
6935
6935
  radius: r,
@@ -6970,20 +6970,20 @@ function Us({
6970
6970
  ` }) : null;
6971
6971
  return e === "text" && o > 1 ? /* @__PURE__ */ k(ae, { children: [
6972
6972
  d,
6973
- /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-2)", ...l }, children: Array.from({ length: o }).map((p, u) => /* @__PURE__ */ n(
6974
- kt,
6973
+ /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-2)", ...l }, children: Array.from({ length: o }).map((u, p) => /* @__PURE__ */ n(
6974
+ St,
6975
6975
  {
6976
- width: u === o - 1 ? "70%" : t,
6976
+ width: p === o - 1 ? "70%" : t,
6977
6977
  height: s,
6978
6978
  radius: c,
6979
6979
  animate: a
6980
6980
  },
6981
- u
6981
+ p
6982
6982
  )) })
6983
6983
  ] }) : /* @__PURE__ */ k(ae, { children: [
6984
6984
  d,
6985
6985
  /* @__PURE__ */ n(
6986
- kt,
6986
+ St,
6987
6987
  {
6988
6988
  width: e === "circle" ? r ?? 40 : t,
6989
6989
  height: s,
@@ -7149,23 +7149,23 @@ function _s({ items: e, separator: t = "/", style: r }) {
7149
7149
  }
7150
7150
  function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "underline", style: i }) {
7151
7151
  var F;
7152
- const l = r !== void 0, [s, c] = E(t ?? ((F = e[0]) == null ? void 0 : F.value) ?? ""), d = l ? r : s, [p, u] = E(null), v = O([]), [m, b] = E(null), h = O(!1), f = a === "pills", g = O(null), w = O(null), y = O(null), [C, T] = E(e.length), [S, L] = E(!1), [I, A] = E(!1), [P, $] = E(null), M = e.slice(0, C), N = e.slice(C), q = N.length > 0, W = N.some((z) => z.value === d), U = () => {
7152
+ const l = r !== void 0, [s, c] = E(t ?? ((F = e[0]) == null ? void 0 : F.value) ?? ""), d = l ? r : s, [u, p] = E(null), y = O([]), [h, x] = E(null), m = O(!1), f = a === "pills", g = O(null), v = O(null), b = O(null), [C, T] = E(e.length), [S, L] = E(!1), [I, A] = E(!1), [P, $] = E(null), M = e.slice(0, C), N = e.slice(C), q = N.length > 0, W = N.some((z) => z.value === d), U = () => {
7153
7153
  if (W) {
7154
- b(null);
7154
+ x(null);
7155
7155
  return;
7156
7156
  }
7157
- const z = e.findIndex((R, H) => H < C && R.value === d), D = v.current[z];
7157
+ const z = e.findIndex((R, H) => H < C && R.value === d), D = y.current[z];
7158
7158
  if (D) {
7159
7159
  if (f) {
7160
7160
  const R = D.querySelector("span");
7161
7161
  if (!R) return;
7162
- b({ left: R.offsetLeft + D.offsetLeft, width: R.offsetWidth, animate: h.current });
7162
+ x({ left: R.offsetLeft + D.offsetLeft, width: R.offsetWidth, animate: m.current });
7163
7163
  } else
7164
- b({ left: D.offsetLeft, width: D.offsetWidth, animate: h.current });
7165
- h.current = !0;
7164
+ x({ left: D.offsetLeft, width: D.offsetWidth, animate: m.current });
7165
+ m.current = !0;
7166
7166
  }
7167
7167
  };
7168
- ie(() => {
7168
+ se(() => {
7169
7169
  U(), document.fonts.ready.then(U);
7170
7170
  }, [d, C, f]), G(() => {
7171
7171
  const z = g.current;
@@ -7174,7 +7174,7 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7174
7174
  const B = z.clientWidth, V = 70;
7175
7175
  let K = 0, j = 0;
7176
7176
  for (let _ = 0; _ < e.length; _++) {
7177
- const re = v.current[_];
7177
+ const re = y.current[_];
7178
7178
  if (!re) {
7179
7179
  j++;
7180
7180
  continue;
@@ -7188,7 +7188,7 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7188
7188
  if (j >= e.length - 1 && j < e.length) {
7189
7189
  let _ = 0;
7190
7190
  for (let re = 0; re < e.length; re++) {
7191
- const ne = v.current[re];
7191
+ const ne = y.current[re];
7192
7192
  ne && (_ += ne.offsetWidth);
7193
7193
  }
7194
7194
  _ <= B && (j = e.length);
@@ -7201,14 +7201,14 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7201
7201
  R = requestAnimationFrame(D);
7202
7202
  });
7203
7203
  })();
7204
- const x = new ResizeObserver(D);
7205
- return x.observe(z), () => {
7206
- x.disconnect(), cancelAnimationFrame(R);
7204
+ const w = new ResizeObserver(D);
7205
+ return w.observe(z), () => {
7206
+ w.disconnect(), cancelAnimationFrame(R);
7207
7207
  };
7208
7208
  }, [e]), G(() => {
7209
7209
  if (!S) return;
7210
7210
  const z = (D) => {
7211
- y.current && !y.current.contains(D.target) && w.current && !w.current.contains(D.target) && (L(!1), $(null));
7211
+ b.current && !b.current.contains(D.target) && v.current && !v.current.contains(D.target) && (L(!1), $(null));
7212
7212
  };
7213
7213
  return document.addEventListener("mousedown", z), () => document.removeEventListener("mousedown", z);
7214
7214
  }, [S]);
@@ -7217,8 +7217,8 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7217
7217
  }, Z = (z, D) => {
7218
7218
  var B;
7219
7219
  const R = M.map((V, K) => V.disabled ? -1 : K).filter((V) => V !== -1), H = R.indexOf(D);
7220
- let x = -1;
7221
- z.key === "ArrowRight" && (x = R[(H + 1) % R.length] ?? -1), z.key === "ArrowLeft" && (x = R[(H - 1 + R.length) % R.length] ?? -1), z.key === "Home" && (x = R[0] ?? -1), z.key === "End" && (x = R[R.length - 1] ?? -1), x !== -1 && (z.preventDefault(), (B = v.current[x]) == null || B.focus(), J(M[x].value));
7220
+ let w = -1;
7221
+ z.key === "ArrowRight" && (w = R[(H + 1) % R.length] ?? -1), z.key === "ArrowLeft" && (w = R[(H - 1 + R.length) % R.length] ?? -1), z.key === "Home" && (w = R[0] ?? -1), z.key === "End" && (w = R[R.length - 1] ?? -1), w !== -1 && (z.preventDefault(), (B = y.current[w]) == null || B.focus(), J(M[w].value));
7222
7222
  };
7223
7223
  return /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", position: "relative", ...i }, children: [
7224
7224
  /* @__PURE__ */ k(
@@ -7238,36 +7238,36 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7238
7238
  },
7239
7239
  children: [
7240
7240
  e.map((z, D) => {
7241
- const R = D < C, H = z.value === d, x = z.disabled ?? !1;
7241
+ const R = D < C, H = z.value === d, w = z.disabled ?? !1;
7242
7242
  return /* @__PURE__ */ k(
7243
7243
  "button",
7244
7244
  {
7245
7245
  ref: (B) => {
7246
- v.current[D] = B;
7246
+ y.current[D] = B;
7247
7247
  },
7248
7248
  role: "tab",
7249
7249
  "aria-selected": H,
7250
7250
  "aria-controls": `lucent-tabpanel-${z.value}`,
7251
7251
  id: `lucent-tab-${z.value}`,
7252
- disabled: x,
7252
+ disabled: w,
7253
7253
  tabIndex: H && R ? 0 : -1,
7254
7254
  onClick: () => {
7255
- x || J(z.value);
7255
+ w || J(z.value);
7256
7256
  },
7257
7257
  onKeyDown: (B) => Z(B, D),
7258
7258
  onMouseEnter: () => {
7259
- !x && R && u(D);
7259
+ !w && R && p(D);
7260
7260
  },
7261
- onMouseLeave: () => u(null),
7261
+ onMouseLeave: () => p(null),
7262
7262
  style: {
7263
7263
  padding: f ? "var(--lucent-space-1) var(--lucent-space-2)" : "var(--lucent-space-1) var(--lucent-space-2) var(--lucent-space-3)",
7264
7264
  background: "none",
7265
7265
  border: "none",
7266
- cursor: x ? "not-allowed" : "pointer",
7266
+ cursor: w ? "not-allowed" : "pointer",
7267
7267
  fontFamily: "var(--lucent-font-family-base)",
7268
7268
  fontSize: "var(--lucent-font-size-md)",
7269
7269
  fontWeight: H ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
7270
- color: x ? "var(--lucent-text-disabled)" : f && H ? "var(--lucent-text-on-accent)" : H ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
7270
+ color: w ? "var(--lucent-text-disabled)" : f && H ? "var(--lucent-text-on-accent)" : H ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
7271
7271
  transition: "color var(--lucent-duration-fast) var(--lucent-easing-default)",
7272
7272
  whiteSpace: "nowrap",
7273
7273
  outline: "none",
@@ -7281,10 +7281,10 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7281
7281
  display: "block",
7282
7282
  padding: "var(--lucent-space-1) var(--lucent-space-3)",
7283
7283
  borderRadius: "var(--lucent-radius-md)",
7284
- background: !f && p === D && !H && !x ? "var(--lucent-surface-secondary)" : "transparent",
7284
+ background: !f && u === D && !H && !w ? "var(--lucent-surface-secondary)" : "transparent",
7285
7285
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default)"
7286
7286
  }, children: z.label }),
7287
- f && p === D && !H && !x && R && /* @__PURE__ */ n(
7287
+ f && u === D && !H && !w && R && /* @__PURE__ */ n(
7288
7288
  "span",
7289
7289
  {
7290
7290
  "aria-hidden": !0,
@@ -7309,7 +7309,7 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7309
7309
  q && /* @__PURE__ */ n(
7310
7310
  "button",
7311
7311
  {
7312
- ref: w,
7312
+ ref: v,
7313
7313
  onClick: () => L((z) => !z),
7314
7314
  onMouseEnter: () => A(!0),
7315
7315
  onMouseLeave: () => A(!1),
@@ -7336,7 +7336,7 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7336
7336
  }, children: "More…" })
7337
7337
  }
7338
7338
  ),
7339
- m != null && /* @__PURE__ */ n(
7339
+ h != null && /* @__PURE__ */ n(
7340
7340
  "span",
7341
7341
  {
7342
7342
  "aria-hidden": !0,
@@ -7344,20 +7344,20 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7344
7344
  position: "absolute",
7345
7345
  top: "var(--lucent-space-1)",
7346
7346
  bottom: "var(--lucent-space-1)",
7347
- left: m.left,
7348
- width: m.width,
7347
+ left: h.left,
7348
+ width: h.width,
7349
7349
  background: "var(--lucent-accent-default)",
7350
7350
  borderRadius: "var(--lucent-radius-md)",
7351
- transition: m.animate ? "left 220ms var(--lucent-easing-default), width 220ms var(--lucent-easing-default)" : "none"
7351
+ transition: h.animate ? "left 220ms var(--lucent-easing-default), width 220ms var(--lucent-easing-default)" : "none"
7352
7352
  } : {
7353
7353
  position: "absolute",
7354
7354
  bottom: 0,
7355
- left: m.left,
7356
- width: m.width,
7355
+ left: h.left,
7356
+ width: h.width,
7357
7357
  height: 2,
7358
7358
  background: "var(--lucent-accent-default)",
7359
7359
  borderRadius: "var(--lucent-radius-sm)",
7360
- transition: m.animate ? "left 220ms var(--lucent-easing-default), width 220ms var(--lucent-easing-default)" : "none"
7360
+ transition: h.animate ? "left 220ms var(--lucent-easing-default), width 220ms var(--lucent-easing-default)" : "none"
7361
7361
  }
7362
7362
  }
7363
7363
  )
@@ -7367,7 +7367,7 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7367
7367
  q && S && /* @__PURE__ */ n(
7368
7368
  "div",
7369
7369
  {
7370
- ref: y,
7370
+ ref: b,
7371
7371
  style: {
7372
7372
  position: "absolute",
7373
7373
  top: "100%",
@@ -7382,7 +7382,7 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7382
7382
  minWidth: 140
7383
7383
  },
7384
7384
  children: N.map((z, D) => {
7385
- const R = z.value === d, H = z.disabled ?? !1, x = P === D;
7385
+ const R = z.value === d, H = z.disabled ?? !1, w = P === D;
7386
7386
  return /* @__PURE__ */ n(
7387
7387
  "button",
7388
7388
  {
@@ -7398,13 +7398,13 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7398
7398
  display: "block",
7399
7399
  width: "100%",
7400
7400
  padding: "var(--lucent-space-2) var(--lucent-space-4)",
7401
- background: R || x ? "var(--lucent-surface-secondary)" : "none",
7401
+ background: R || w ? "var(--lucent-surface-secondary)" : "none",
7402
7402
  border: "none",
7403
7403
  cursor: H ? "not-allowed" : "pointer",
7404
7404
  fontFamily: "var(--lucent-font-family-base)",
7405
7405
  fontSize: "var(--lucent-font-size-md)",
7406
7406
  fontWeight: R ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
7407
- color: H ? "var(--lucent-text-disabled)" : R || x ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
7407
+ color: H ? "var(--lucent-text-disabled)" : R || w ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
7408
7408
  textAlign: "left",
7409
7409
  outline: "none",
7410
7410
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default), color var(--lucent-duration-fast) var(--lucent-easing-default)"
@@ -7431,7 +7431,7 @@ function Ys({ tabs: e, defaultValue: t, value: r, onChange: o, variant: a = "und
7431
7431
  ))
7432
7432
  ] });
7433
7433
  }
7434
- const St = 80, jt = 180, me = "var(--lucent-easing-default)", tt = "var(--lucent-duration-fast)", Tt = `height ${jt}ms ${me}`, Er = `
7434
+ const Tt = 80, jt = 180, me = "var(--lucent-easing-default)", tt = "var(--lucent-duration-fast)", Ct = `height ${jt}ms ${me}`, Er = `
7435
7435
  [data-lucent-collapsible-trigger]:hover:not(:disabled) {
7436
7436
  background: color-mix(in srgb, var(--lucent-text-primary) 5%, transparent) !important;
7437
7437
  }
@@ -7442,42 +7442,43 @@ const St = 80, jt = 180, me = "var(--lucent-easing-default)", tt = "var(--lucent
7442
7442
  box-shadow: 0 0 0 2px var(--lucent-surface), 0 0 0 4px var(--lucent-accent-default) !important;
7443
7443
  }
7444
7444
  `;
7445
- let Ct = !1;
7445
+ let It = !1;
7446
7446
  function Ar() {
7447
- if (Ct || typeof document > "u") return;
7447
+ if (It || typeof document > "u") return;
7448
7448
  const e = document.createElement("style");
7449
- e.setAttribute("data-lucent-collapsible", ""), e.textContent = Er, document.head.appendChild(e), Ct = !0;
7449
+ e.setAttribute("data-lucent-collapsible", ""), e.textContent = Er, document.head.appendChild(e), It = !0;
7450
7450
  }
7451
7451
  function Ks({ trigger: e, children: t, defaultOpen: r = !1, open: o, onOpenChange: a, padded: i = !0, disabled: l = !1, style: s }) {
7452
- const c = o !== void 0, [d, p] = E(r), u = c ? o : d, v = O(null), m = O(!1), b = O();
7452
+ const c = ie(ct), d = c.px !== "0" || c.py !== "0", u = o !== void 0, [p, y] = E(r), h = u ? o : p, x = O(null), m = O(!1), f = O();
7453
7453
  G(Ar, []), G(() => {
7454
7454
  m.current = !0;
7455
- }, []), ie(() => {
7456
- const f = v.current;
7457
- if (f)
7458
- if (u) {
7459
- const g = f.scrollHeight;
7460
- f.style.height = `${g}px`, f.style.transition = Tt, clearTimeout(b.current), b.current = setTimeout(() => {
7461
- f.style.height = "auto", f.style.transition = "";
7455
+ }, []), se(() => {
7456
+ const v = x.current;
7457
+ if (v)
7458
+ if (h) {
7459
+ v.style.overflow = "hidden";
7460
+ const b = v.scrollHeight;
7461
+ v.style.height = `${b}px`, v.style.transition = Ct, clearTimeout(f.current), f.current = setTimeout(() => {
7462
+ v.style.height = "auto", v.style.overflow = "visible", v.style.transition = "";
7462
7463
  }, jt + 20);
7463
- } else m.current && (clearTimeout(b.current), f.style.transition = "", f.style.height = `${f.scrollHeight}px`, f.getBoundingClientRect(), f.style.transition = Tt, f.style.height = "0px");
7464
- }, [u]), G(() => {
7465
- const f = v.current;
7466
- f && !u && !m.current && (f.style.height = "0px");
7467
- }, []), G(() => () => clearTimeout(b.current), []);
7468
- const h = () => {
7464
+ } else m.current && (clearTimeout(f.current), v.style.overflow = "hidden", v.style.transition = "", v.style.height = `${v.scrollHeight}px`, v.getBoundingClientRect(), v.style.transition = Ct, v.style.height = "0px");
7465
+ }, [h]), G(() => {
7466
+ const v = x.current;
7467
+ v && !h && !m.current && (v.style.height = "0px");
7468
+ }, []), G(() => () => clearTimeout(f.current), []);
7469
+ const g = () => {
7469
7470
  if (l) return;
7470
- const f = !u;
7471
- c || p(f), a == null || a(f);
7471
+ const v = !h;
7472
+ u || y(v), a == null || a(v);
7472
7473
  };
7473
- return /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", fontFamily: "var(--lucent-font-family-base)", fontSize: "var(--lucent-font-size-md)", ...s }, children: [
7474
+ return /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", fontFamily: "var(--lucent-font-family-base)", fontSize: "var(--lucent-font-size-md)", ...d && { margin: `calc(-1 * ${c.py}) calc(-1 * ${c.px})` }, ...s }, children: [
7474
7475
  /* @__PURE__ */ k(
7475
7476
  "button",
7476
7477
  {
7477
7478
  "data-lucent-collapsible-trigger": !0,
7478
- onClick: h,
7479
+ onClick: g,
7479
7480
  disabled: l,
7480
- "aria-expanded": u,
7481
+ "aria-expanded": h,
7481
7482
  style: {
7482
7483
  display: "flex",
7483
7484
  alignItems: "center",
@@ -7498,24 +7499,24 @@ function Ks({ trigger: e, children: t, defaultOpen: r = !1, open: o, onOpenChang
7498
7499
  },
7499
7500
  children: [
7500
7501
  /* @__PURE__ */ n("span", { style: { flex: 1 }, children: e }),
7501
- /* @__PURE__ */ n(Br, { open: u })
7502
+ /* @__PURE__ */ n(Br, { open: h })
7502
7503
  ]
7503
7504
  }
7504
7505
  ),
7505
7506
  /* @__PURE__ */ n(
7506
7507
  "div",
7507
7508
  {
7508
- ref: v,
7509
- "aria-hidden": !u,
7510
- style: { overflow: "hidden" },
7509
+ ref: x,
7510
+ "aria-hidden": !h,
7511
+ style: { overflow: h ? "visible" : "hidden" },
7511
7512
  children: /* @__PURE__ */ n(
7512
7513
  "div",
7513
7514
  {
7514
7515
  style: {
7515
7516
  ...i ? { padding: "var(--lucent-space-2) var(--lucent-space-4) var(--lucent-space-3)" } : {},
7516
- opacity: u ? 1 : 0,
7517
- transform: u ? "translateY(0)" : "translateY(-4px)",
7518
- transition: `opacity ${St}ms ${me}, transform ${St}ms ${me}`
7517
+ opacity: h ? 1 : 0,
7518
+ transform: h ? "translateY(0)" : "translateY(-4px)",
7519
+ transition: `opacity ${Tt}ms ${me}, transform ${Tt}ms ${me}`
7519
7520
  },
7520
7521
  children: t
7521
7522
  }
@@ -7563,12 +7564,12 @@ function Xs({
7563
7564
  rightSidebarWidth: s = 240,
7564
7565
  rightSidebarCollapsed: c = !1,
7565
7566
  footer: d,
7566
- footerHeight: p = 28,
7567
- chromeBackground: u = "bgBase",
7568
- mainStyle: v,
7569
- style: m
7567
+ footerHeight: u = 28,
7568
+ chromeBackground: p = "bgBase",
7569
+ mainStyle: y,
7570
+ style: h
7570
7571
  }) {
7571
- const b = De(a), h = De(o), f = De(s), g = De(p), w = u === "bgBase" ? "var(--lucent-bg-base)" : u === "bgSubtle" ? "var(--lucent-bg-subtle)" : "var(--lucent-surface)";
7572
+ const x = De(a), m = De(o), f = De(s), g = De(u), v = p === "bgBase" ? "var(--lucent-bg-base)" : p === "bgSubtle" ? "var(--lucent-bg-subtle)" : "var(--lucent-surface)";
7572
7573
  return /* @__PURE__ */ k(
7573
7574
  "div",
7574
7575
  {
@@ -7577,9 +7578,9 @@ function Xs({
7577
7578
  flexDirection: "column",
7578
7579
  height: "100vh",
7579
7580
  overflow: "hidden",
7580
- background: w,
7581
+ background: v,
7581
7582
  fontFamily: "var(--lucent-font-family-base)",
7582
- ...m
7583
+ ...h
7583
7584
  },
7584
7585
  children: [
7585
7586
  /* @__PURE__ */ n("style", { children: qr }),
@@ -7588,9 +7589,9 @@ function Xs({
7588
7589
  {
7589
7590
  style: {
7590
7591
  flexShrink: 0,
7591
- height: b,
7592
+ height: x,
7592
7593
  zIndex: 10,
7593
- background: w
7594
+ background: v
7594
7595
  },
7595
7596
  children: t
7596
7597
  }
@@ -7601,11 +7602,11 @@ function Xs({
7601
7602
  {
7602
7603
  className: xe,
7603
7604
  style: {
7604
- width: i ? 0 : h,
7605
+ width: i ? 0 : m,
7605
7606
  flexShrink: 0,
7606
7607
  overflow: "hidden",
7607
7608
  overflowY: i ? "hidden" : "auto",
7608
- background: w,
7609
+ background: v,
7609
7610
  transition: "width 200ms var(--lucent-easing-default)"
7610
7611
  },
7611
7612
  children: r
@@ -7624,7 +7625,7 @@ function Xs({
7624
7625
  borderRadius: "var(--lucent-radius-lg)",
7625
7626
  boxShadow: "var(--lucent-shadow-sm)",
7626
7627
  background: "var(--lucent-surface)",
7627
- ...v
7628
+ ...y
7628
7629
  },
7629
7630
  children: e
7630
7631
  }
@@ -7638,7 +7639,7 @@ function Xs({
7638
7639
  flexShrink: 0,
7639
7640
  overflow: "hidden",
7640
7641
  overflowY: c ? "hidden" : "auto",
7641
- background: w,
7642
+ background: v,
7642
7643
  transition: "width 200ms var(--lucent-easing-default)"
7643
7644
  },
7644
7645
  children: l
@@ -7652,7 +7653,7 @@ function Xs({
7652
7653
  flexShrink: 0,
7653
7654
  height: g,
7654
7655
  zIndex: 10,
7655
- background: w
7656
+ background: v
7656
7657
  },
7657
7658
  children: d
7658
7659
  }
@@ -7692,7 +7693,7 @@ function Rr({ state: e }) {
7692
7693
  }
7693
7694
  );
7694
7695
  }
7695
- function It({ dir: e }) {
7696
+ function Mt({ dir: e }) {
7696
7697
  return /* @__PURE__ */ n("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, children: /* @__PURE__ */ n(
7697
7698
  "path",
7698
7699
  {
@@ -7714,24 +7715,24 @@ function Js({
7714
7715
  emptyState: l,
7715
7716
  style: s
7716
7717
  }) {
7717
- const [c, d] = E(null), [p, u] = E(0), [v, m] = E(null), [b, h] = E({}), f = o !== void 0, g = f ? o : p, w = e.some((M) => M.filterable), y = w ? t.filter((M) => e.every((N) => {
7718
+ const [c, d] = E(null), [u, p] = E(0), [y, h] = E(null), [x, m] = E({}), f = o !== void 0, g = f ? o : u, v = e.some((M) => M.filterable), b = v ? t.filter((M) => e.every((N) => {
7718
7719
  if (!N.filterable) return !0;
7719
- const q = b[N.key];
7720
+ const q = x[N.key];
7720
7721
  if (!q || q.length === 0) return !0;
7721
7722
  const W = String(M[N.key] ?? "");
7722
7723
  return q.includes(W);
7723
- })) : t, C = c ? [...y].sort((M, N) => {
7724
+ })) : t, C = c ? [...b].sort((M, N) => {
7724
7725
  const q = M[c.key], W = N[c.key], U = String(q ?? "").localeCompare(String(W ?? ""), void 0, { numeric: !0 });
7725
7726
  return c.dir === "asc" ? U : -U;
7726
- }) : y, T = r > 0 ? C.slice(g * r, (g + 1) * r) : C, S = r > 0 ? Math.max(1, Math.ceil(C.length / r)) : 1, L = (M) => {
7727
- f || u(M), a == null || a(M);
7727
+ }) : b, T = r > 0 ? C.slice(g * r, (g + 1) * r) : C, S = r > 0 ? Math.max(1, Math.ceil(C.length / r)) : 1, L = (M) => {
7728
+ f || p(M), a == null || a(M);
7728
7729
  }, I = (M) => {
7729
- d((N) => !N || N.key !== M ? { key: M, dir: "asc" } : N.dir === "asc" ? { key: M, dir: "desc" } : null), f || u(0), a == null || a(0);
7730
+ d((N) => !N || N.key !== M ? { key: M, dir: "asc" } : N.dir === "asc" ? { key: M, dir: "desc" } : null), f || p(0), a == null || a(0);
7730
7731
  }, A = (M, N) => {
7731
- const q = { ...b, [M]: N };
7732
- N.length === 0 && delete q[M], h(q), f || u(0), a == null || a(0), i == null || i(q);
7732
+ const q = { ...x, [M]: N };
7733
+ N.length === 0 && delete q[M], m(q), f || p(0), a == null || a(0), i == null || i(q);
7733
7734
  }, P = () => {
7734
- h({}), f || u(0), a == null || a(0), i == null || i({});
7735
+ m({}), f || p(0), a == null || a(0), i == null || i({});
7735
7736
  }, $ = [];
7736
7737
  if (S <= 7)
7737
7738
  for (let M = 0; M < S; M++) $.push(M);
@@ -7742,12 +7743,12 @@ function Js({
7742
7743
  g < S - 3 && $.push("…"), $.push(S - 1);
7743
7744
  }
7744
7745
  return /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-3)", ...s }, children: [
7745
- w && /* @__PURE__ */ n("div", { style: { position: "relative", zIndex: 1 }, children: /* @__PURE__ */ n(
7746
+ v && /* @__PURE__ */ n("div", { style: { position: "relative", zIndex: 1 }, children: /* @__PURE__ */ n(
7746
7747
  Lr,
7747
7748
  {
7748
7749
  columns: e,
7749
7750
  rows: t,
7750
- filters: b,
7751
+ filters: x,
7751
7752
  onFilter: A,
7752
7753
  onClearAll: P
7753
7754
  }
@@ -7798,11 +7799,11 @@ function Js({
7798
7799
  ) }) : T.map((M, N) => /* @__PURE__ */ n(
7799
7800
  "tr",
7800
7801
  {
7801
- onMouseEnter: () => m(N),
7802
- onMouseLeave: () => m(null),
7802
+ onMouseEnter: () => h(N),
7803
+ onMouseLeave: () => h(null),
7803
7804
  style: {
7804
7805
  borderBottom: N < T.length - 1 ? "1px solid var(--lucent-border-subtle)" : "none",
7805
- background: v === N ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
7806
+ background: y === N ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
7806
7807
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default)"
7807
7808
  },
7808
7809
  children: e.map((q) => /* @__PURE__ */ n(
@@ -7837,7 +7838,7 @@ function Js({
7837
7838
  onClick: () => L(g - 1),
7838
7839
  disabled: g === 0,
7839
7840
  "aria-label": "Previous page",
7840
- children: /* @__PURE__ */ n(It, { dir: "left" })
7841
+ children: /* @__PURE__ */ n(Mt, { dir: "left" })
7841
7842
  }
7842
7843
  ),
7843
7844
  $.map(
@@ -7863,7 +7864,7 @@ function Js({
7863
7864
  onClick: () => L(g + 1),
7864
7865
  disabled: g >= S - 1,
7865
7866
  "aria-label": "Next page",
7866
- children: /* @__PURE__ */ n(It, { dir: "right" })
7867
+ children: /* @__PURE__ */ n(Mt, { dir: "right" })
7867
7868
  }
7868
7869
  )
7869
7870
  ] })
@@ -7922,26 +7923,26 @@ function Fr({
7922
7923
  value: r,
7923
7924
  onChange: o
7924
7925
  }) {
7925
- const [a, i] = E(!1), [l, s] = E(!1), [c, d] = E(""), p = O(null), u = O(null), v = r.length > 0;
7926
+ const [a, i] = E(!1), [l, s] = E(!1), [c, d] = E(""), u = O(null), p = O(null), y = r.length > 0;
7926
7927
  G(() => {
7927
7928
  if (!a) {
7928
7929
  d("");
7929
7930
  return;
7930
7931
  }
7931
7932
  setTimeout(() => {
7932
- var w;
7933
- return (w = u.current) == null ? void 0 : w.focus();
7933
+ var v;
7934
+ return (v = p.current) == null ? void 0 : v.focus();
7934
7935
  }, 0);
7935
- const f = (w) => {
7936
- p.current && !p.current.contains(w.target) && i(!1);
7937
- }, g = (w) => {
7938
- w.key === "Escape" && i(!1);
7936
+ const f = (v) => {
7937
+ u.current && !u.current.contains(v.target) && i(!1);
7938
+ }, g = (v) => {
7939
+ v.key === "Escape" && i(!1);
7939
7940
  };
7940
7941
  return document.addEventListener("mousedown", f), document.addEventListener("keydown", g), () => {
7941
7942
  document.removeEventListener("mousedown", f), document.removeEventListener("keydown", g);
7942
7943
  };
7943
7944
  }, [a]);
7944
- const m = c ? t.filter((f) => f.toLowerCase().includes(c.toLowerCase())) : t, b = (f) => o(r.includes(f) ? r.filter((g) => g !== f) : [...r, f]), h = r.length === 0 ? null : r.length === 1 ? /* @__PURE__ */ k("span", { style: { color: "var(--lucent-text-secondary)", fontWeight: "var(--lucent-font-weight-regular)" }, children: [
7945
+ const h = c ? t.filter((f) => f.toLowerCase().includes(c.toLowerCase())) : t, x = (f) => o(r.includes(f) ? r.filter((g) => g !== f) : [...r, f]), m = r.length === 0 ? null : r.length === 1 ? /* @__PURE__ */ k("span", { style: { color: "var(--lucent-text-secondary)", fontWeight: "var(--lucent-font-weight-regular)" }, children: [
7945
7946
  ": ",
7946
7947
  r[0]
7947
7948
  ] }) : /* @__PURE__ */ k("span", { style: { color: "var(--lucent-accent-default)" }, children: [
@@ -7949,7 +7950,7 @@ function Fr({
7949
7950
  r.length,
7950
7951
  ")"
7951
7952
  ] });
7952
- return /* @__PURE__ */ k("div", { ref: p, style: { position: "relative" }, children: [
7953
+ return /* @__PURE__ */ k("div", { ref: u, style: { position: "relative" }, children: [
7953
7954
  /* @__PURE__ */ k(
7954
7955
  "button",
7955
7956
  {
@@ -7963,12 +7964,12 @@ function Fr({
7963
7964
  height: 30,
7964
7965
  padding: "0 var(--lucent-space-3)",
7965
7966
  borderRadius: "var(--lucent-radius-md)",
7966
- border: `1px solid ${v ? "var(--lucent-accent-default)" : l ? "var(--lucent-border-strong)" : "var(--lucent-border-default)"}`,
7967
- background: v ? "var(--lucent-accent-subtle)" : "var(--lucent-surface)",
7968
- color: v ? "var(--lucent-accent-default)" : "var(--lucent-text-primary)",
7967
+ border: `1px solid ${y ? "var(--lucent-accent-default)" : l ? "var(--lucent-border-strong)" : "var(--lucent-border-default)"}`,
7968
+ background: y ? "var(--lucent-accent-subtle)" : "var(--lucent-surface)",
7969
+ color: y ? "var(--lucent-accent-default)" : "var(--lucent-text-primary)",
7969
7970
  fontFamily: "var(--lucent-font-family-base)",
7970
7971
  fontSize: "var(--lucent-font-size-xs)",
7971
- fontWeight: v ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
7972
+ fontWeight: y ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
7972
7973
  cursor: "pointer",
7973
7974
  outline: "none",
7974
7975
  whiteSpace: "nowrap",
@@ -7976,7 +7977,7 @@ function Fr({
7976
7977
  },
7977
7978
  children: [
7978
7979
  e,
7979
- h,
7980
+ m,
7980
7981
  /* @__PURE__ */ n(
7981
7982
  "svg",
7982
7983
  {
@@ -8009,7 +8010,7 @@ function Fr({
8009
8010
  /* @__PURE__ */ n("div", { style: { padding: "var(--lucent-space-2)", paddingBottom: 0 }, children: /* @__PURE__ */ n(
8010
8011
  "input",
8011
8012
  {
8012
- ref: u,
8013
+ ref: p,
8013
8014
  type: "text",
8014
8015
  value: c,
8015
8016
  onChange: (f) => d(f.target.value),
@@ -8048,18 +8049,18 @@ function Fr({
8048
8049
  children: "Clear selection"
8049
8050
  }
8050
8051
  ) }),
8051
- /* @__PURE__ */ n("div", { style: { overflowY: "auto", padding: "var(--lucent-space-1)", borderTop: "1px solid var(--lucent-border-subtle)", marginTop: "var(--lucent-space-2)" }, children: m.length === 0 ? /* @__PURE__ */ n("div", { style: {
8052
+ /* @__PURE__ */ n("div", { style: { overflowY: "auto", padding: "var(--lucent-space-1)", borderTop: "1px solid var(--lucent-border-subtle)", marginTop: "var(--lucent-space-2)" }, children: h.length === 0 ? /* @__PURE__ */ n("div", { style: {
8052
8053
  padding: "var(--lucent-space-3)",
8053
8054
  color: "var(--lucent-text-disabled)",
8054
8055
  fontFamily: "var(--lucent-font-family-base)",
8055
8056
  fontSize: "var(--lucent-font-size-xs)",
8056
8057
  textAlign: "center"
8057
- }, children: "No results" }) : m.map((f) => /* @__PURE__ */ n(
8058
+ }, children: "No results" }) : h.map((f) => /* @__PURE__ */ n(
8058
8059
  Pr,
8059
8060
  {
8060
8061
  label: f,
8061
8062
  isSelected: r.includes(f),
8062
- onClick: () => b(f)
8063
+ onClick: () => x(f)
8063
8064
  },
8064
8065
  f
8065
8066
  )) })
@@ -8275,7 +8276,7 @@ function Qs({
8275
8276
  onOpenChange: a,
8276
8277
  style: i
8277
8278
  }) {
8278
- const l = o !== void 0, [s, c] = E(!1), d = l ? o : s, [p, u] = E(""), [v, m] = E(0), b = O(null), h = O(null), f = O(!1);
8279
+ const l = o !== void 0, [s, c] = E(!1), d = l ? o : s, [u, p] = E(""), [y, h] = E(0), x = O(null), m = O(null), f = O(!1);
8279
8280
  if (!f.current) {
8280
8281
  const I = document.createElement("style");
8281
8282
  I.textContent = $r, document.head.appendChild(I), f.current = !0;
@@ -8289,18 +8290,18 @@ function Qs({
8289
8290
  };
8290
8291
  return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
8291
8292
  }, [d, r, g]), G(() => {
8292
- d && (u(""), m(0), setTimeout(() => {
8293
+ d && (p(""), h(0), setTimeout(() => {
8293
8294
  var I;
8294
- return (I = b.current) == null ? void 0 : I.focus();
8295
+ return (I = x.current) == null ? void 0 : I.focus();
8295
8296
  }, 10));
8296
8297
  }, [d]);
8297
- const w = p ? e.filter((I) => Nr(I, p)) : e, y = w.filter((I) => !I.disabled);
8298
+ const v = u ? e.filter((I) => Nr(I, u)) : e, b = v.filter((I) => !I.disabled);
8298
8299
  G(() => {
8299
- const I = h.current;
8300
+ const I = m.current;
8300
8301
  if (!I) return;
8301
8302
  const A = I.querySelector('[data-active="true"]');
8302
8303
  A == null || A.scrollIntoView({ block: "nearest" });
8303
- }, [v]);
8304
+ }, [y]);
8304
8305
  const C = (I) => {
8305
8306
  I.disabled || (I.onSelect(), g(!1));
8306
8307
  }, T = (I) => {
@@ -8309,15 +8310,15 @@ function Qs({
8309
8310
  return;
8310
8311
  }
8311
8312
  if (I.key === "ArrowDown")
8312
- I.preventDefault(), y.length > 0 && m((A) => (A + 1) % y.length);
8313
+ I.preventDefault(), b.length > 0 && h((A) => (A + 1) % b.length);
8313
8314
  else if (I.key === "ArrowUp")
8314
- I.preventDefault(), y.length > 0 && m((A) => (A - 1 + y.length) % y.length);
8315
+ I.preventDefault(), b.length > 0 && h((A) => (A - 1 + b.length) % b.length);
8315
8316
  else if (I.key === "Enter") {
8316
- const A = y[v];
8317
+ const A = b[y];
8317
8318
  A && C(A);
8318
8319
  }
8319
8320
  }, S = [];
8320
- for (const I of w) {
8321
+ for (const I of v) {
8321
8322
  const A = S[S.length - 1];
8322
8323
  A && A.group === I.group ? A.items.push(I) : S.push({ group: I.group, items: [I] });
8323
8324
  }
@@ -8369,7 +8370,7 @@ function Qs({
8369
8370
  alignItems: "center",
8370
8371
  gap: "var(--lucent-space-3)",
8371
8372
  padding: "var(--lucent-space-3) var(--lucent-space-4)",
8372
- borderBottom: w.length > 0 ? "1px solid var(--lucent-border-subtle)" : "none"
8373
+ borderBottom: v.length > 0 ? "1px solid var(--lucent-border-subtle)" : "none"
8373
8374
  }, children: [
8374
8375
  /* @__PURE__ */ k("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", "aria-hidden": !0, style: { flexShrink: 0, color: "var(--lucent-text-secondary)" }, children: [
8375
8376
  /* @__PURE__ */ n("circle", { cx: "7", cy: "7", r: "4.5", stroke: "currentColor", strokeWidth: "1.5" }),
@@ -8378,13 +8379,13 @@ function Qs({
8378
8379
  /* @__PURE__ */ n(
8379
8380
  "input",
8380
8381
  {
8381
- ref: b,
8382
+ ref: x,
8382
8383
  role: "searchbox",
8383
8384
  "aria-autocomplete": "list",
8384
8385
  "aria-controls": "lucent-command-list",
8385
- value: p,
8386
+ value: u,
8386
8387
  onChange: (I) => {
8387
- u(I.target.value), m(0);
8388
+ p(I.target.value), h(0);
8388
8389
  },
8389
8390
  onKeyDown: T,
8390
8391
  placeholder: t,
@@ -8407,11 +8408,11 @@ function Qs({
8407
8408
  {
8408
8409
  id: "lucent-command-list",
8409
8410
  role: "listbox",
8410
- ref: h,
8411
+ ref: m,
8411
8412
  style: { maxHeight: 360, overflowY: "auto", padding: "var(--lucent-space-1) var(--lucent-space-2)" },
8412
- children: w.length === 0 ? /* @__PURE__ */ n("div", { style: { padding: "var(--lucent-space-8)", textAlign: "center" }, children: /* @__PURE__ */ k(Y, { color: "secondary", children: [
8413
+ children: v.length === 0 ? /* @__PURE__ */ n("div", { style: { padding: "var(--lucent-space-8)", textAlign: "center" }, children: /* @__PURE__ */ k(Y, { color: "secondary", children: [
8413
8414
  'No results for "',
8414
- p,
8415
+ u,
8415
8416
  '"'
8416
8417
  ] }) }) : S.map(({ group: I, items: A }, P) => /* @__PURE__ */ k("div", { children: [
8417
8418
  I && /* @__PURE__ */ n("div", { style: {
@@ -8421,7 +8422,7 @@ function Qs({
8421
8422
  A.map(($) => {
8422
8423
  const M = $.disabled ?? !1;
8423
8424
  let N = !1;
8424
- return M || (N = L === v, L++), /* @__PURE__ */ k(
8425
+ return M || (N = L === y, L++), /* @__PURE__ */ k(
8425
8426
  "div",
8426
8427
  {
8427
8428
  role: "option",
@@ -8431,8 +8432,8 @@ function Qs({
8431
8432
  onClick: () => C($),
8432
8433
  onMouseEnter: () => {
8433
8434
  if (!M) {
8434
- const q = y.indexOf($);
8435
- q !== -1 && m(q);
8435
+ const q = b.indexOf($);
8436
+ q !== -1 && h(q);
8436
8437
  }
8437
8438
  },
8438
8439
  style: {
@@ -8582,7 +8583,7 @@ const el = {
8582
8583
  sm: "var(--lucent-font-size-sm)",
8583
8584
  md: "var(--lucent-font-size-sm)",
8584
8585
  lg: "var(--lucent-font-size-md)"
8585
- }, Mt = { sm: "sm", md: "md", lg: "lg" }, Vr = { sm: "sm", md: "md", lg: "lg" };
8586
+ }, Dt = { sm: "sm", md: "md", lg: "lg" }, Vr = { sm: "sm", md: "md", lg: "lg" };
8586
8587
  function tl({
8587
8588
  options: e,
8588
8589
  value: t,
@@ -8594,43 +8595,43 @@ function tl({
8594
8595
  size: s = "md",
8595
8596
  label: c,
8596
8597
  helperText: d,
8597
- errorText: p,
8598
- style: u
8598
+ errorText: u,
8599
+ style: p
8599
8600
  }) {
8600
- const v = t !== void 0, [m, b] = E(r), h = v ? t : m, [f, g] = E(!1), [w, y] = E(""), [C, T] = E(0), [S, L] = E(!1), I = O(null), A = O(null), P = O(null), $ = O(null), [M, N] = E({ top: 0, left: 0, width: 0 }), q = ke();
8601
+ const y = t !== void 0, [h, x] = E(r), m = y ? t : h, [f, g] = E(!1), [v, b] = E(""), [C, T] = E(0), [S, L] = E(!1), I = O(null), A = O(null), P = O(null), $ = O(null), [M, N] = E({ top: 0, left: 0, width: 0 }), q = ke();
8601
8602
  G(() => {
8602
8603
  if (!f) return;
8603
- const x = (B) => {
8604
+ const w = (B) => {
8604
8605
  var V, K;
8605
- !((V = I.current) != null && V.contains(B.target)) && !((K = $.current) != null && K.contains(B.target)) && (g(!1), y(""));
8606
+ !((V = I.current) != null && V.contains(B.target)) && !((K = $.current) != null && K.contains(B.target)) && (g(!1), b(""));
8606
8607
  };
8607
- return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
8608
- }, [f]), ie(() => {
8608
+ return document.addEventListener("mousedown", w), () => document.removeEventListener("mousedown", w);
8609
+ }, [f]), se(() => {
8609
8610
  if (!f || !P.current) return;
8610
- const x = P.current.getBoundingClientRect();
8611
- N({ top: x.bottom + 4, left: x.left, width: x.width });
8612
- }, [f, h, w]);
8613
- const W = (x) => {
8614
- const B = h.includes(x) ? h.filter((V) => V !== x) : l !== void 0 && h.length >= l ? h : [...h, x];
8615
- v || b(B), o == null || o(B);
8616
- }, U = (x) => {
8617
- const B = h.filter((V) => V !== x);
8618
- v || b(B), o == null || o(B);
8611
+ const w = P.current.getBoundingClientRect();
8612
+ N({ top: w.bottom + 4, left: w.left, width: w.width });
8613
+ }, [f, m, v]);
8614
+ const W = (w) => {
8615
+ const B = m.includes(w) ? m.filter((V) => V !== w) : l !== void 0 && m.length >= l ? m : [...m, w];
8616
+ y || x(B), o == null || o(B);
8617
+ }, U = (w) => {
8618
+ const B = m.filter((V) => V !== w);
8619
+ y || x(B), o == null || o(B);
8619
8620
  }, J = e.filter(
8620
- (x) => x.label.toLowerCase().includes(w.toLowerCase())
8621
- ), Z = (x) => {
8622
- if (x.key === "Escape") {
8623
- g(!1), y("");
8621
+ (w) => w.label.toLowerCase().includes(v.toLowerCase())
8622
+ ), Z = (w) => {
8623
+ if (w.key === "Escape") {
8624
+ g(!1), b("");
8624
8625
  return;
8625
8626
  }
8626
- if (x.key === "ArrowDown" && (x.preventDefault(), g(!0), T((B) => Math.min(B + 1, J.length - 1))), x.key === "ArrowUp" && (x.preventDefault(), T((B) => Math.max(B - 1, 0))), x.key === "Enter") {
8627
- x.preventDefault();
8627
+ if (w.key === "ArrowDown" && (w.preventDefault(), g(!0), T((B) => Math.min(B + 1, J.length - 1))), w.key === "ArrowUp" && (w.preventDefault(), T((B) => Math.max(B - 1, 0))), w.key === "Enter") {
8628
+ w.preventDefault();
8628
8629
  const B = J[C];
8629
8630
  B && !B.disabled && W(B.value);
8630
8631
  }
8631
- x.key === "Backspace" && w === "" && h.length > 0 && U(h[h.length - 1]);
8632
- }, F = l !== void 0 && h.length >= l, z = !!p, D = i ? "var(--lucent-border-default)" : z ? "var(--lucent-danger-default)" : S ? "var(--lucent-focus-ring)" : "var(--lucent-border-default)", R = S ? `0 0 0 3px ${z ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none", H = `lucent-multiselect-${ke()}`;
8633
- return /* @__PURE__ */ k("div", { ref: I, style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", ...u }, children: [
8632
+ w.key === "Backspace" && v === "" && m.length > 0 && U(m[m.length - 1]);
8633
+ }, F = l !== void 0 && m.length >= l, z = !!u, D = i ? "var(--lucent-border-default)" : z ? "var(--lucent-danger-default)" : S ? "var(--lucent-focus-ring)" : "var(--lucent-border-default)", R = S ? `0 0 0 3px ${z ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none", H = `lucent-multiselect-${ke()}`;
8634
+ return /* @__PURE__ */ k("div", { ref: I, style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", ...p }, children: [
8634
8635
  c && /* @__PURE__ */ n(
8635
8636
  "label",
8636
8637
  {
@@ -8649,8 +8650,8 @@ function tl({
8649
8650
  "div",
8650
8651
  {
8651
8652
  onClick: () => {
8652
- var x;
8653
- i || (g(!0), (x = A.current) == null || x.focus());
8653
+ var w;
8654
+ i || (g(!0), (w = A.current) == null || w.focus());
8654
8655
  },
8655
8656
  style: {
8656
8657
  display: "flex",
@@ -8668,24 +8669,24 @@ function tl({
8668
8669
  boxShadow: R
8669
8670
  },
8670
8671
  children: [
8671
- h.map((x) => {
8672
- const B = e.find((V) => V.value === x);
8673
- return B ? /* @__PURE__ */ n(Ln, { size: Vr[s], onDismiss: () => U(x), disabled: i, children: B.label }, x) : null;
8672
+ m.map((w) => {
8673
+ const B = e.find((V) => V.value === w);
8674
+ return B ? /* @__PURE__ */ n(Ln, { size: Vr[s], onDismiss: () => U(w), disabled: i, children: B.label }, w) : null;
8674
8675
  }),
8675
8676
  /* @__PURE__ */ n(
8676
8677
  "input",
8677
8678
  {
8678
8679
  id: H,
8679
8680
  ref: A,
8680
- value: w,
8681
- onChange: (x) => {
8682
- y(x.target.value), g(!0), T(0);
8681
+ value: v,
8682
+ onChange: (w) => {
8683
+ b(w.target.value), g(!0), T(0);
8683
8684
  },
8684
8685
  onKeyDown: Z,
8685
8686
  onFocus: () => L(!0),
8686
8687
  onBlur: () => L(!1),
8687
8688
  disabled: i,
8688
- placeholder: h.length === 0 ? a : "",
8689
+ placeholder: m.length === 0 ? a : "",
8689
8690
  "aria-autocomplete": "list",
8690
8691
  "aria-controls": q,
8691
8692
  "aria-expanded": f,
@@ -8701,7 +8702,7 @@ function tl({
8701
8702
  fontSize: Or[s],
8702
8703
  color: i ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
8703
8704
  cursor: i ? "not-allowed" : "text",
8704
- padding: h.length === 0 ? "2px 0 2px var(--lucent-space-1)" : "2px 0"
8705
+ padding: m.length === 0 ? "2px 0 2px var(--lucent-space-1)" : "2px 0"
8705
8706
  }
8706
8707
  }
8707
8708
  )
@@ -8733,8 +8734,8 @@ function tl({
8733
8734
  padding: ze[s]
8734
8735
  },
8735
8736
  children: [
8736
- J.length === 0 ? /* @__PURE__ */ n("div", { style: { padding: "var(--lucent-space-2)" }, children: /* @__PURE__ */ n(Y, { color: "secondary", size: Mt[s], children: "No options" }) }) : J.map((x, B) => {
8737
- const V = h.includes(x.value), K = B === C, j = x.disabled ?? !1, _ = F && !V;
8737
+ J.length === 0 ? /* @__PURE__ */ n("div", { style: { padding: "var(--lucent-space-2)" }, children: /* @__PURE__ */ n(Y, { color: "secondary", size: Dt[s], children: "No options" }) }) : J.map((w, B) => {
8738
+ const V = m.includes(w.value), K = B === C, j = w.disabled ?? !1, _ = F && !V;
8738
8739
  return /* @__PURE__ */ k(
8739
8740
  "div",
8740
8741
  {
@@ -8742,7 +8743,7 @@ function tl({
8742
8743
  "aria-selected": V,
8743
8744
  "aria-disabled": j || _,
8744
8745
  onClick: () => {
8745
- !j && !_ && W(x.value);
8746
+ !j && !_ && W(w.value);
8746
8747
  },
8747
8748
  onMouseEnter: () => T(B),
8748
8749
  style: {
@@ -8757,7 +8758,7 @@ function tl({
8757
8758
  },
8758
8759
  children: [
8759
8760
  /* @__PURE__ */ n(
8760
- Ft,
8761
+ Pt,
8761
8762
  {
8762
8763
  checked: V,
8763
8764
  disabled: j || _,
@@ -8767,10 +8768,10 @@ function tl({
8767
8768
  readOnly: !0
8768
8769
  }
8769
8770
  ),
8770
- /* @__PURE__ */ n(Y, { size: Mt[s], children: x.label })
8771
+ /* @__PURE__ */ n(Y, { size: Dt[s], children: w.label })
8771
8772
  ]
8772
8773
  },
8773
- x.value
8774
+ w.value
8774
8775
  );
8775
8776
  }),
8776
8777
  F && /* @__PURE__ */ n("div", { style: {
@@ -8797,7 +8798,7 @@ function tl({
8797
8798
  color: "var(--lucent-danger-text)",
8798
8799
  fontFamily: "var(--lucent-font-family-base)"
8799
8800
  },
8800
- children: p
8801
+ children: u
8801
8802
  }
8802
8803
  ),
8803
8804
  !z && d && /* @__PURE__ */ n(
@@ -8931,7 +8932,7 @@ function Pe(e, t) {
8931
8932
  function $e(e, t) {
8932
8933
  return new Date(e.getFullYear(), e.getMonth(), e.getDate()) < new Date(t.getFullYear(), t.getMonth(), t.getDate());
8933
8934
  }
8934
- function Dt(e, t) {
8935
+ function zt(e, t) {
8935
8936
  return new Date(e.getFullYear(), e.getMonth(), e.getDate()) > new Date(t.getFullYear(), t.getMonth(), t.getDate());
8936
8937
  }
8937
8938
  const Gr = [
@@ -8968,7 +8969,7 @@ const Yr = { sm: "calc(var(--lucent-space-8) * 0.5 + 18px)", md: "calc(var(--luc
8968
8969
  md: "calc((var(--lucent-space-2) + var(--lucent-space-3)) / 2)",
8969
8970
  lg: "var(--lucent-space-3)"
8970
8971
  }, Zr = { sm: 28, md: 32, lg: 38 }, Qr = { sm: "var(--lucent-font-size-xs)", md: "var(--lucent-font-size-sm)", lg: "var(--lucent-font-size-md)" }, eo = { sm: "xs", md: "sm", lg: "md" }, to = { sm: "xs", md: "xs", lg: "sm" }, no = { sm: 24, md: 28, lg: 32 }, ao = { sm: 14, md: 16, lg: 18 }, Ut = { sm: "var(--lucent-space-3)", md: "var(--lucent-space-4)", lg: "var(--lucent-space-5)" }, nt = { sm: 220, md: 260, lg: 300 };
8971
- function zt({ dir: e, onClick: t, disabled: r, size: o = "md" }) {
8972
+ function Et({ dir: e, onClick: t, disabled: r, size: o = "md" }) {
8972
8973
  const [a, i] = E(!1), l = no[o], s = ao[o];
8973
8974
  return /* @__PURE__ */ n(
8974
8975
  "button",
@@ -9016,54 +9017,54 @@ function at({
9016
9017
  onPrevMonth: s,
9017
9018
  onNextMonth: c,
9018
9019
  highlightRange: d,
9019
- onDayHover: p,
9020
- size: u = "md"
9020
+ onDayHover: u,
9021
+ size: p = "md"
9021
9022
  }) {
9022
- const v = jr(e, t), m = Ur(e, t), [b, h] = E(null), f = [
9023
- ...Array(m).fill(null),
9024
- ...Array.from({ length: v }, (g, w) => w + 1)
9023
+ const y = jr(e, t), h = Ur(e, t), [x, m] = E(null), f = [
9024
+ ...Array(h).fill(null),
9025
+ ...Array.from({ length: y }, (g, v) => v + 1)
9025
9026
  ];
9026
9027
  for (; f.length % 7 !== 0; ) f.push(null);
9027
9028
  return /* @__PURE__ */ k("div", { children: [
9028
9029
  /* @__PURE__ */ k("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", marginBottom: "var(--lucent-space-3)" }, children: [
9029
- /* @__PURE__ */ n(zt, { dir: "prev", onClick: s, size: u }),
9030
- /* @__PURE__ */ k(Y, { weight: "medium", size: eo[u], children: [
9030
+ /* @__PURE__ */ n(Et, { dir: "prev", onClick: s, size: p }),
9031
+ /* @__PURE__ */ k(Y, { weight: "medium", size: eo[p], children: [
9031
9032
  Gr[t],
9032
9033
  " ",
9033
9034
  e
9034
9035
  ] }),
9035
- /* @__PURE__ */ n(zt, { dir: "next", onClick: c, size: u })
9036
+ /* @__PURE__ */ n(Et, { dir: "next", onClick: c, size: p })
9036
9037
  ] }),
9037
- /* @__PURE__ */ n("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2, marginBottom: "var(--lucent-space-1)" }, children: _r.map((g) => /* @__PURE__ */ n("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ n(Y, { size: to[u], color: "secondary", children: g }) }, g)) }),
9038
- /* @__PURE__ */ n("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2 }, children: f.map((g, w) => {
9039
- if (!g) return /* @__PURE__ */ n("div", {}, w);
9040
- const y = new Date(e, t, g), C = r ? Pe(y, r) : !1, T = Pe(y, o), S = (a ? $e(y, a) : !1) || (i ? Dt(y, i) : !1);
9038
+ /* @__PURE__ */ n("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2, marginBottom: "var(--lucent-space-1)" }, children: _r.map((g) => /* @__PURE__ */ n("div", { style: { textAlign: "center" }, children: /* @__PURE__ */ n(Y, { size: to[p], color: "secondary", children: g }) }, g)) }),
9039
+ /* @__PURE__ */ n("div", { style: { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: 2 }, children: f.map((g, v) => {
9040
+ if (!g) return /* @__PURE__ */ n("div", {}, v);
9041
+ const b = new Date(e, t, g), C = r ? Pe(b, r) : !1, T = Pe(b, o), S = (a ? $e(b, a) : !1) || (i ? zt(b, i) : !1);
9041
9042
  let L = !1;
9042
- return d != null && d.start && (d != null && d.end) && (L = !$e(y, d.start) && !Dt(y, d.end)), /* @__PURE__ */ n(
9043
+ return d != null && d.start && (d != null && d.end) && (L = !$e(b, d.start) && !zt(b, d.end)), /* @__PURE__ */ n(
9043
9044
  "button",
9044
9045
  {
9045
9046
  type: "button",
9046
9047
  disabled: S,
9047
- onClick: () => !S && l(y),
9048
+ onClick: () => !S && l(b),
9048
9049
  onMouseEnter: () => {
9049
- h(g), p == null || p(y);
9050
+ m(g), u == null || u(b);
9050
9051
  },
9051
9052
  onMouseLeave: () => {
9052
- h(null), p == null || p(null);
9053
+ m(null), u == null || u(null);
9053
9054
  },
9054
- "aria-label": we(y),
9055
+ "aria-label": we(b),
9055
9056
  "aria-pressed": C,
9056
9057
  style: {
9057
9058
  display: "flex",
9058
9059
  alignItems: "center",
9059
9060
  justifyContent: "center",
9060
- height: Zr[u],
9061
+ height: Zr[p],
9061
9062
  width: "100%",
9062
9063
  border: T && !C ? "1px solid var(--lucent-border-strong)" : "1px solid transparent",
9063
9064
  borderRadius: "var(--lucent-radius-md)",
9064
- background: C ? "var(--lucent-accent-default)" : L ? "var(--lucent-accent-subtle)" : b === g && !S ? "color-mix(in srgb, var(--lucent-accent-default) 20%, var(--lucent-surface-secondary))" : "transparent",
9065
+ background: C ? "var(--lucent-accent-default)" : L ? "var(--lucent-accent-subtle)" : x === g && !S ? "color-mix(in srgb, var(--lucent-accent-default) 20%, var(--lucent-surface-secondary))" : "transparent",
9065
9066
  color: C ? "var(--lucent-text-on-accent)" : S ? "var(--lucent-text-disabled)" : "var(--lucent-text-primary)",
9066
- fontSize: Qr[u],
9067
+ fontSize: Qr[p],
9067
9068
  fontFamily: "var(--lucent-font-family-base)",
9068
9069
  fontWeight: T ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
9069
9070
  cursor: S ? "not-allowed" : "pointer",
@@ -9071,7 +9072,7 @@ function at({
9071
9072
  },
9072
9073
  children: g
9073
9074
  },
9074
- w
9075
+ v
9075
9076
  );
9076
9077
  }) })
9077
9078
  ] });
@@ -9087,34 +9088,34 @@ function al({
9087
9088
  size: s = "md",
9088
9089
  label: c,
9089
9090
  helperText: d,
9090
- errorText: p,
9091
- style: u
9091
+ errorText: u,
9092
+ style: p
9092
9093
  }) {
9093
- const v = e !== void 0, [m, b] = E(t), h = v ? e : m, f = !!p, g = a, w = `lucent-datepicker-${Math.random().toString(36).slice(2, 7)}`, y = /* @__PURE__ */ new Date(), [C, T] = E((h ?? y).getFullYear()), [S, L] = E((h ?? y).getMonth()), [I, A] = E(!1), [P, $] = E(!1), M = O(null), N = O(null), [q, W] = E({ top: 0, left: 0 });
9094
+ const y = e !== void 0, [h, x] = E(t), m = y ? e : h, f = !!u, g = a, v = `lucent-datepicker-${Math.random().toString(36).slice(2, 7)}`, b = /* @__PURE__ */ new Date(), [C, T] = E((m ?? b).getFullYear()), [S, L] = E((m ?? b).getMonth()), [I, A] = E(!1), [P, $] = E(!1), M = O(null), N = O(null), [q, W] = E({ top: 0, left: 0 });
9094
9095
  G(() => {
9095
9096
  if (!I) return;
9096
9097
  const D = (R) => {
9097
- var H, x;
9098
- !((H = M.current) != null && H.contains(R.target)) && !((x = N.current) != null && x.contains(R.target)) && A(!1);
9098
+ var H, w;
9099
+ !((H = M.current) != null && H.contains(R.target)) && !((w = N.current) != null && w.contains(R.target)) && A(!1);
9099
9100
  };
9100
9101
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
9101
- }, [I]), ie(() => {
9102
+ }, [I]), se(() => {
9102
9103
  if (!I || !M.current) return;
9103
9104
  const D = M.current.getBoundingClientRect();
9104
9105
  W({ top: D.bottom + 4, left: D.left });
9105
9106
  }, [I]);
9106
9107
  const U = (D) => {
9107
- v || b(D), r == null || r(D), A(!1);
9108
+ y || x(D), r == null || r(D), A(!1);
9108
9109
  }, J = () => {
9109
9110
  S === 0 ? (L(11), T((D) => D - 1)) : L((D) => D - 1);
9110
9111
  }, Z = () => {
9111
9112
  S === 11 ? (L(0), T((D) => D + 1)) : L((D) => D + 1);
9112
9113
  }, F = g ? "transparent" : f ? "var(--lucent-danger-default)" : P ? "var(--lucent-focus-ring)" : "var(--lucent-border-default)", z = P ? `0 0 0 3px ${f ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none";
9113
- return /* @__PURE__ */ k("div", { ref: M, style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", ...u }, children: [
9114
+ return /* @__PURE__ */ k("div", { ref: M, style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", ...p }, children: [
9114
9115
  c && /* @__PURE__ */ n(
9115
9116
  "label",
9116
9117
  {
9117
- htmlFor: w,
9118
+ htmlFor: v,
9118
9119
  style: {
9119
9120
  fontSize: Ke[s],
9120
9121
  fontWeight: "var(--lucent-font-weight-medium)",
@@ -9128,7 +9129,7 @@ function al({
9128
9129
  "button",
9129
9130
  {
9130
9131
  type: "button",
9131
- id: w,
9132
+ id: v,
9132
9133
  disabled: a,
9133
9134
  onClick: () => !a && A((D) => !D),
9134
9135
  onFocus: () => $(!0),
@@ -9148,7 +9149,7 @@ function al({
9148
9149
  border: `1px solid ${F}`,
9149
9150
  boxShadow: z,
9150
9151
  background: g ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
9151
- color: h ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
9152
+ color: m ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
9152
9153
  fontFamily: "var(--lucent-font-family-base)",
9153
9154
  fontSize: Kr[s],
9154
9155
  cursor: g ? "not-allowed" : "pointer",
@@ -9164,7 +9165,7 @@ function al({
9164
9165
  /* @__PURE__ */ n("path", { d: "M1 6h12", stroke: "currentColor", strokeWidth: "1.3" }),
9165
9166
  /* @__PURE__ */ n("path", { d: "M4 1v2M10 1v2", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" })
9166
9167
  ] }),
9167
- /* @__PURE__ */ n("span", { style: { flex: 1, textAlign: "left" }, children: h ? we(h) : o })
9168
+ /* @__PURE__ */ n("span", { style: { flex: 1, textAlign: "left" }, children: m ? we(m) : o })
9168
9169
  ]
9169
9170
  }
9170
9171
  ),
@@ -9177,7 +9178,7 @@ function al({
9177
9178
  color: "var(--lucent-danger-text)",
9178
9179
  fontFamily: "var(--lucent-font-family-base)"
9179
9180
  },
9180
- children: p
9181
+ children: u
9181
9182
  }
9182
9183
  ),
9183
9184
  !f && d && /* @__PURE__ */ n(
@@ -9217,8 +9218,8 @@ function al({
9217
9218
  {
9218
9219
  year: C,
9219
9220
  month: S,
9220
- ...h !== void 0 && { selected: h },
9221
- today: y,
9221
+ ...m !== void 0 && { selected: m },
9222
+ today: b,
9222
9223
  ...i !== void 0 && { min: i },
9223
9224
  ...l !== void 0 && { max: l },
9224
9225
  onSelect: U,
@@ -9375,10 +9376,10 @@ function ol({
9375
9376
  size: s = "md",
9376
9377
  label: c,
9377
9378
  helperText: d,
9378
- errorText: p,
9379
- style: u
9379
+ errorText: u,
9380
+ style: p
9380
9381
  }) {
9381
- const v = e !== void 0, [m, b] = E(t), h = v ? e : m, f = !!p, g = a, w = `lucent-daterangepicker-${Math.random().toString(36).slice(2, 7)}`, [y, C] = E(null), [T, S] = E(null), L = /* @__PURE__ */ new Date(), [I, A] = E(((h == null ? void 0 : h.start) ?? L).getFullYear()), [P, $] = E(((h == null ? void 0 : h.start) ?? L).getMonth()), M = P === 11 ? 0 : P + 1, N = P === 11 ? I + 1 : I, [q, W] = E(!1), [U, J] = E(!1), Z = O(null), F = O(null), [z, D] = E({ top: 0, left: 0 });
9382
+ const y = e !== void 0, [h, x] = E(t), m = y ? e : h, f = !!u, g = a, v = `lucent-daterangepicker-${Math.random().toString(36).slice(2, 7)}`, [b, C] = E(null), [T, S] = E(null), L = /* @__PURE__ */ new Date(), [I, A] = E(((m == null ? void 0 : m.start) ?? L).getFullYear()), [P, $] = E(((m == null ? void 0 : m.start) ?? L).getMonth()), M = P === 11 ? 0 : P + 1, N = P === 11 ? I + 1 : I, [q, W] = E(!1), [U, J] = E(!1), Z = O(null), F = O(null), [z, D] = E({ top: 0, left: 0 });
9382
9383
  G(() => {
9383
9384
  if (!q) return;
9384
9385
  const j = (_) => {
@@ -9386,34 +9387,34 @@ function ol({
9386
9387
  !((re = Z.current) != null && re.contains(_.target)) && !((ne = F.current) != null && ne.contains(_.target)) && (W(!1), C(null));
9387
9388
  };
9388
9389
  return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
9389
- }, [q]), ie(() => {
9390
+ }, [q]), se(() => {
9390
9391
  if (!q || !Z.current) return;
9391
9392
  const j = Z.current.getBoundingClientRect();
9392
9393
  D({ top: j.bottom + 4, left: j.left });
9393
9394
  }, [q]);
9394
9395
  const R = (j) => {
9395
- if (!y)
9396
+ if (!b)
9396
9397
  C(j);
9397
9398
  else {
9398
- const [_, re] = $e(j, y) || Pe(j, y) ? [j, y] : [y, j], ne = { start: _, end: re };
9399
- v || b(ne), r == null || r(ne), C(null), W(!1);
9399
+ const [_, re] = $e(j, b) || Pe(j, b) ? [j, b] : [b, j], ne = { start: _, end: re };
9400
+ y || x(ne), r == null || r(ne), C(null), W(!1);
9400
9401
  }
9401
9402
  }, H = () => {
9402
9403
  P === 0 ? ($(11), A((j) => j - 1)) : $((j) => j - 1);
9403
- }, x = () => {
9404
+ }, w = () => {
9404
9405
  P === 11 ? ($(0), A((j) => j + 1)) : $((j) => j + 1);
9405
9406
  };
9406
9407
  let B;
9407
- if (y && T) {
9408
- const [j, _] = $e(T, y) ? [T, y] : [y, T];
9408
+ if (b && T) {
9409
+ const [j, _] = $e(T, b) ? [T, b] : [b, T];
9409
9410
  B = { start: j, end: _ };
9410
- } else y ? B = { start: y, end: y } : h && (B = { start: h.start, end: h.end });
9411
+ } else b ? B = { start: b, end: b } : m && (B = { start: m.start, end: m.end });
9411
9412
  const V = g ? "transparent" : f ? "var(--lucent-danger-default)" : U ? "var(--lucent-focus-ring)" : "var(--lucent-border-default)", K = U ? `0 0 0 3px ${f ? "var(--lucent-danger-subtle)" : "var(--lucent-accent-subtle)"}` : "none";
9412
- return /* @__PURE__ */ k("div", { ref: Z, style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", ...u }, children: [
9413
+ return /* @__PURE__ */ k("div", { ref: Z, style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)", ...p }, children: [
9413
9414
  c && /* @__PURE__ */ n(
9414
9415
  "label",
9415
9416
  {
9416
- htmlFor: w,
9417
+ htmlFor: v,
9417
9418
  style: {
9418
9419
  fontSize: Xe[s],
9419
9420
  fontWeight: "var(--lucent-font-weight-medium)",
@@ -9427,7 +9428,7 @@ function ol({
9427
9428
  "button",
9428
9429
  {
9429
9430
  type: "button",
9430
- id: w,
9431
+ id: v,
9431
9432
  disabled: a,
9432
9433
  onClick: () => !a && W((j) => !j),
9433
9434
  onFocus: () => J(!0),
@@ -9447,7 +9448,7 @@ function ol({
9447
9448
  border: `1px solid ${V}`,
9448
9449
  boxShadow: K,
9449
9450
  background: g ? "var(--lucent-surface-secondary)" : "var(--lucent-surface)",
9450
- color: h ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
9451
+ color: m ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
9451
9452
  fontFamily: "var(--lucent-font-family-base)",
9452
9453
  fontSize: oo[s],
9453
9454
  cursor: g ? "not-allowed" : "pointer",
@@ -9463,7 +9464,7 @@ function ol({
9463
9464
  /* @__PURE__ */ n("path", { d: "M1 6h12", stroke: "currentColor", strokeWidth: "1.3" }),
9464
9465
  /* @__PURE__ */ n("path", { d: "M4 1v2M10 1v2", stroke: "currentColor", strokeWidth: "1.3", strokeLinecap: "round" })
9465
9466
  ] }),
9466
- /* @__PURE__ */ n("span", { style: { flex: 1, textAlign: "left" }, children: lo(h, o) })
9467
+ /* @__PURE__ */ n("span", { style: { flex: 1, textAlign: "left" }, children: lo(m, o) })
9467
9468
  ]
9468
9469
  }
9469
9470
  ),
@@ -9476,7 +9477,7 @@ function ol({
9476
9477
  color: "var(--lucent-danger-text)",
9477
9478
  fontFamily: "var(--lucent-font-family-base)"
9478
9479
  },
9479
- children: p
9480
+ children: u
9480
9481
  }
9481
9482
  ),
9482
9483
  !f && d && /* @__PURE__ */ n(
@@ -9518,15 +9519,15 @@ function ol({
9518
9519
  {
9519
9520
  year: I,
9520
9521
  month: P,
9521
- ...(h == null ? void 0 : h.start) !== void 0 && { selected: h.start },
9522
+ ...(m == null ? void 0 : m.start) !== void 0 && { selected: m.start },
9522
9523
  today: L,
9523
9524
  ...i !== void 0 && { min: i },
9524
9525
  ...l !== void 0 && { max: l },
9525
9526
  onSelect: R,
9526
9527
  onPrevMonth: H,
9527
- onNextMonth: x,
9528
+ onNextMonth: w,
9528
9529
  ...B !== void 0 && { highlightRange: B },
9529
- ...y && { onDayHover: S },
9530
+ ...b && { onDayHover: S },
9530
9531
  size: s
9531
9532
  }
9532
9533
  ) }),
@@ -9536,15 +9537,15 @@ function ol({
9536
9537
  {
9537
9538
  year: N,
9538
9539
  month: M,
9539
- ...(h == null ? void 0 : h.end) !== void 0 && { selected: h.end },
9540
+ ...(m == null ? void 0 : m.end) !== void 0 && { selected: m.end },
9540
9541
  today: L,
9541
9542
  ...i !== void 0 && { min: i },
9542
9543
  ...l !== void 0 && { max: l },
9543
9544
  onSelect: R,
9544
9545
  onPrevMonth: H,
9545
- onNextMonth: x,
9546
+ onNextMonth: w,
9546
9547
  ...B !== void 0 && { highlightRange: B },
9547
- ...y && { onDayHover: S },
9548
+ ...b && { onDayHover: S },
9548
9549
  size: s
9549
9550
  }
9550
9551
  ) })
@@ -9553,8 +9554,8 @@ function ol({
9553
9554
  ),
9554
9555
  document.body
9555
9556
  ),
9556
- y && q && /* @__PURE__ */ n("div", { style: { position: "absolute", top: "calc(100% + var(--lucent-space-1))", left: 0, zIndex: 1001, pointerEvents: "none" } }),
9557
- y && q && /* @__PURE__ */ n("div", { style: {
9557
+ b && q && /* @__PURE__ */ n("div", { style: { position: "absolute", top: "calc(100% + var(--lucent-space-1))", left: 0, zIndex: 1001, pointerEvents: "none" } }),
9558
+ b && q && /* @__PURE__ */ n("div", { style: {
9558
9559
  position: "absolute",
9559
9560
  bottom: -24,
9560
9561
  left: 0
@@ -9747,7 +9748,7 @@ function sl({
9747
9748
  disabled: l = !1,
9748
9749
  style: s
9749
9750
  }) {
9750
- const c = o !== void 0, [d, p] = E([]), u = c ? o : d, [v, m] = E(!1), [b, h] = E(!1), f = O(null), g = ee((T) => {
9751
+ const c = o !== void 0, [d, u] = E([]), p = c ? o : d, [y, h] = E(!1), [x, m] = E(!1), f = O(null), g = ee((T) => {
9751
9752
  if (!T || l) return;
9752
9753
  const S = [];
9753
9754
  for (const I of Array.from(T)) {
@@ -9755,17 +9756,17 @@ function sl({
9755
9756
  i == null || i(`"${I.name}" exceeds the ${rt(r)} limit.`);
9756
9757
  continue;
9757
9758
  }
9758
- if (!t && u.length + S.length >= 1) break;
9759
+ if (!t && p.length + S.length >= 1) break;
9759
9760
  S.push({ id: co(), file: I });
9760
9761
  }
9761
9762
  if (S.length === 0) return;
9762
- const L = t ? [...u, ...S] : S;
9763
- c || p(L), a == null || a(L);
9764
- }, [l, u, c, r, t, a, i]), w = (T) => {
9765
- const S = u.filter((L) => L.id !== T);
9766
- c || p(S), a == null || a(S);
9767
- }, y = (T) => {
9768
- T.preventDefault(), m(!1), g(T.dataTransfer.files);
9763
+ const L = t ? [...p, ...S] : S;
9764
+ c || u(L), a == null || a(L);
9765
+ }, [l, p, c, r, t, a, i]), v = (T) => {
9766
+ const S = p.filter((L) => L.id !== T);
9767
+ c || u(S), a == null || a(S);
9768
+ }, b = (T) => {
9769
+ T.preventDefault(), h(!1), g(T.dataTransfer.files);
9769
9770
  }, C = (T) => {
9770
9771
  g(T.target.files), T.target.value = "";
9771
9772
  };
@@ -9785,13 +9786,13 @@ function sl({
9785
9786
  var S;
9786
9787
  (T.key === "Enter" || T.key === " ") && (T.preventDefault(), (S = f.current) == null || S.click());
9787
9788
  },
9788
- onFocus: () => h(!0),
9789
- onBlur: () => h(!1),
9789
+ onFocus: () => m(!0),
9790
+ onBlur: () => m(!1),
9790
9791
  onDragOver: (T) => {
9791
- T.preventDefault(), l || m(!0);
9792
+ T.preventDefault(), l || h(!0);
9792
9793
  },
9793
- onDragLeave: () => m(!1),
9794
- onDrop: y,
9794
+ onDragLeave: () => h(!1),
9795
+ onDrop: b,
9795
9796
  style: {
9796
9797
  display: "flex",
9797
9798
  flexDirection: "column",
@@ -9800,8 +9801,8 @@ function sl({
9800
9801
  gap: "var(--lucent-space-2)",
9801
9802
  padding: "var(--lucent-space-8) var(--lucent-space-6)",
9802
9803
  borderRadius: "var(--lucent-radius-lg)",
9803
- border: `2px dashed ${l ? "var(--lucent-border-default)" : v || b ? "var(--lucent-accent-default)" : "var(--lucent-border-default)"}`,
9804
- background: v ? "var(--lucent-accent-subtle)" : "var(--lucent-surface-secondary)",
9804
+ border: `2px dashed ${l ? "var(--lucent-border-default)" : y || x ? "var(--lucent-accent-default)" : "var(--lucent-border-default)"}`,
9805
+ background: y ? "var(--lucent-accent-subtle)" : "var(--lucent-surface-secondary)",
9805
9806
  cursor: l ? "not-allowed" : "pointer",
9806
9807
  transition: "border-color var(--lucent-duration-fast), background var(--lucent-duration-fast)",
9807
9808
  outline: "none"
@@ -9815,7 +9816,7 @@ function sl({
9815
9816
  viewBox: "0 0 32 32",
9816
9817
  fill: "none",
9817
9818
  "aria-hidden": !0,
9818
- style: { color: l ? "var(--lucent-text-disabled)" : v ? "var(--lucent-accent-default)" : "var(--lucent-text-secondary)" },
9819
+ style: { color: l ? "var(--lucent-text-disabled)" : y ? "var(--lucent-accent-default)" : "var(--lucent-text-secondary)" },
9819
9820
  children: [
9820
9821
  /* @__PURE__ */ n("path", { d: "M16 20V10M16 10l-4 4M16 10l4 4", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }),
9821
9822
  /* @__PURE__ */ n("path", { d: "M8 24h16", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round" })
@@ -9823,7 +9824,7 @@ function sl({
9823
9824
  }
9824
9825
  ),
9825
9826
  /* @__PURE__ */ k("div", { style: { textAlign: "center" }, children: [
9826
- /* @__PURE__ */ n(Y, { color: l ? "disabled" : "primary", weight: "medium", children: v ? "Drop to upload" : "Drop files here or click to browse" }),
9827
+ /* @__PURE__ */ n(Y, { color: l ? "disabled" : "primary", weight: "medium", children: y ? "Drop to upload" : "Drop files here or click to browse" }),
9827
9828
  (e || r) && /* @__PURE__ */ n(Y, { size: "xs", color: "secondary", children: [
9828
9829
  e && `Accepted: ${e}`,
9829
9830
  r && `Max size: ${rt(r)}`
@@ -9845,7 +9846,7 @@ function sl({
9845
9846
  ]
9846
9847
  }
9847
9848
  ),
9848
- u.length > 0 && /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-2)" }, children: u.map((T) => /* @__PURE__ */ n(uo, { item: T, onRemove: w }, T.id)) })
9849
+ p.length > 0 && /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: "var(--lucent-space-2)" }, children: p.map((T) => /* @__PURE__ */ n(uo, { item: T, onRemove: v }, T.id)) })
9849
9850
  ] });
9850
9851
  }
9851
9852
  const ll = {
@@ -10088,7 +10089,7 @@ const dl = {
10088
10089
  }
10089
10090
  }, Gt = ve(null);
10090
10091
  function ul() {
10091
- const e = le(Gt);
10092
+ const e = ie(Gt);
10092
10093
  if (!e) throw new Error("useToast must be used inside <ToastProvider>");
10093
10094
  return e;
10094
10095
  }
@@ -10124,8 +10125,8 @@ function _t(e) {
10124
10125
  return e.startsWith("top");
10125
10126
  }
10126
10127
  const To = 200, Co = 8, Io = 0.04, Mo = 0.2, Do = 3, zo = 356;
10127
- function Et({ entry: e, onDismiss: t, hideContent: r, fixedHeight: o }) {
10128
- const { id: a, title: i, description: l, variant: s, action: c, icon: d } = e, p = wo[s], u = d ?? (s !== "default" ? xo[s] : null), v = (c == null ? void 0 : c.style) ?? "button";
10128
+ function At({ entry: e, onDismiss: t, hideContent: r, fixedHeight: o }) {
10129
+ const { id: a, title: i, description: l, variant: s, action: c, icon: d } = e, u = wo[s], p = d ?? (s !== "default" ? xo[s] : null), y = (c == null ? void 0 : c.style) ?? "button";
10129
10130
  return /* @__PURE__ */ n(
10130
10131
  "div",
10131
10132
  {
@@ -10135,7 +10136,7 @@ function Et({ entry: e, onDismiss: t, hideContent: r, fixedHeight: o }) {
10135
10136
  gap: "var(--lucent-space-3)",
10136
10137
  padding: "var(--lucent-space-3) var(--lucent-space-4)",
10137
10138
  background: "var(--lucent-surface-raised)",
10138
- border: `1px solid ${p.border}`,
10139
+ border: `1px solid ${u.border}`,
10139
10140
  borderRadius: "var(--lucent-radius-lg)",
10140
10141
  boxShadow: r ? "none" : "var(--lucent-shadow-lg)",
10141
10142
  boxSizing: "border-box",
@@ -10157,15 +10158,15 @@ function Et({ entry: e, onDismiss: t, hideContent: r, fixedHeight: o }) {
10157
10158
  transition: "opacity var(--lucent-duration-base) var(--lucent-easing-default)"
10158
10159
  },
10159
10160
  children: [
10160
- u && /* @__PURE__ */ n("span", { style: { flexShrink: 0, color: p.iconColor, display: "flex", alignItems: "center" }, children: u }),
10161
+ p && /* @__PURE__ */ n("span", { style: { flexShrink: 0, color: u.iconColor, display: "flex", alignItems: "center" }, children: p }),
10161
10162
  /* @__PURE__ */ k("div", { style: { flex: 1, minWidth: 0, display: "flex", flexDirection: "column", gap: "var(--lucent-space-1)" }, children: [
10162
10163
  /* @__PURE__ */ n(Y, { as: "span", size: "sm", weight: "semibold", color: "primary", lineHeight: "tight", children: i }),
10163
10164
  l && /* @__PURE__ */ n(Y, { as: "span", size: "sm", color: "secondary", lineHeight: "base", style: { whiteSpace: "pre-line" }, children: l })
10164
10165
  ] }),
10165
- c && v === "button" && /* @__PURE__ */ n(Eo, { label: c.label, onClick: () => {
10166
+ c && y === "button" && /* @__PURE__ */ n(Eo, { label: c.label, onClick: () => {
10166
10167
  c.onClick(), t(a);
10167
10168
  } }),
10168
- c && v === "link" && /* @__PURE__ */ n(Ao, { label: c.label, iconColor: p.iconColor, onClick: () => {
10169
+ c && y === "link" && /* @__PURE__ */ n(Ao, { label: c.label, iconColor: u.iconColor, onClick: () => {
10169
10170
  c.onClick(), t(a);
10170
10171
  } }),
10171
10172
  /* @__PURE__ */ n(
@@ -10186,11 +10187,11 @@ function Et({ entry: e, onDismiss: t, hideContent: r, fixedHeight: o }) {
10186
10187
  color: "var(--lucent-text-secondary)",
10187
10188
  opacity: r ? 0 : 0.6
10188
10189
  },
10189
- onMouseEnter: (m) => {
10190
- r || (m.currentTarget.style.opacity = "1");
10190
+ onMouseEnter: (h) => {
10191
+ r || (h.currentTarget.style.opacity = "1");
10191
10192
  },
10192
- onMouseLeave: (m) => {
10193
- r || (m.currentTarget.style.opacity = "0.6");
10193
+ onMouseLeave: (h) => {
10194
+ r || (h.currentTarget.style.opacity = "0.6");
10194
10195
  },
10195
10196
  children: /* @__PURE__ */ n(yo, {})
10196
10197
  }
@@ -10256,7 +10257,7 @@ function Ao({ label: e, iconColor: t, onClick: r }) {
10256
10257
  }
10257
10258
  );
10258
10259
  }
10259
- const At = "var(--lucent-space-6)", Bo = 40, qo = 120;
10260
+ const Bt = "var(--lucent-space-6)", Bo = 40, qo = 120;
10260
10261
  function Ro(e) {
10261
10262
  const t = {
10262
10263
  position: "fixed",
@@ -10264,26 +10265,26 @@ function Ro(e) {
10264
10265
  pointerEvents: "none",
10265
10266
  boxSizing: "border-box"
10266
10267
  };
10267
- return _t(e) ? t.top = Bo : t.top = `calc(100vh - ${qo}px)`, e.endsWith("left") ? t.left = At : e.endsWith("right") ? t.right = At : (t.left = "50%", t.transform = "translateX(-50%)"), t;
10268
+ return _t(e) ? t.top = Bo : t.top = `calc(100vh - ${qo}px)`, e.endsWith("left") ? t.left = Bt : e.endsWith("right") ? t.right = Bt : (t.left = "50%", t.transform = "translateX(-50%)"), t;
10268
10269
  }
10269
10270
  function Lo({ toasts: e, position: t, onDismiss: r, portalContainer: o }) {
10270
10271
  const [a, i] = E(!1), [l, s] = E(void 0), c = ee((f) => {
10271
10272
  f && s(f.offsetHeight);
10272
- }, []), d = _t(t), p = e.filter((f) => f.phase !== "exiting"), u = e.filter((f) => f.phase === "exiting");
10273
+ }, []), d = _t(t), u = e.filter((f) => f.phase !== "exiting"), p = e.filter((f) => f.phase === "exiting");
10273
10274
  G(() => {
10274
- p.length <= 1 && i(!1);
10275
- }, [p.length]);
10276
- const v = O(null), m = ee(() => {
10277
- v.current && (clearTimeout(v.current), v.current = null), p.length > 1 && i(!0);
10278
- }, [p.length]), b = ee(() => {
10279
- v.current = setTimeout(() => {
10280
- i(!1), v.current = null;
10275
+ u.length <= 1 && i(!1);
10276
+ }, [u.length]);
10277
+ const y = O(null), h = ee(() => {
10278
+ y.current && (clearTimeout(y.current), y.current = null), u.length > 1 && i(!0);
10279
+ }, [u.length]), x = ee(() => {
10280
+ y.current = setTimeout(() => {
10281
+ i(!1), y.current = null;
10281
10282
  }, 150);
10282
- }, []), h = /* @__PURE__ */ n("div", { style: Ro(t), children: /* @__PURE__ */ n(
10283
+ }, []), m = /* @__PURE__ */ n("div", { style: Ro(t), children: /* @__PURE__ */ n(
10283
10284
  "div",
10284
10285
  {
10285
- onMouseEnter: m,
10286
- onMouseLeave: b,
10286
+ onMouseEnter: h,
10287
+ onMouseLeave: x,
10287
10288
  style: { margin: "calc(-1 * var(--lucent-space-2))", padding: "var(--lucent-space-2)" },
10288
10289
  children: /* @__PURE__ */ k("div", { style: {
10289
10290
  position: "relative",
@@ -10294,15 +10295,15 @@ function Lo({ toasts: e, position: t, onDismiss: r, portalContainer: o }) {
10294
10295
  marginTop: a && !d ? l ?? 0 : 0,
10295
10296
  transition: "transform var(--lucent-duration-base) var(--lucent-easing-emphasized), margin var(--lucent-duration-base) var(--lucent-easing-emphasized), gap var(--lucent-duration-base) var(--lucent-easing-emphasized)"
10296
10297
  }, children: [
10297
- p.map((f, g) => {
10298
- const w = p.length - 1 - g, y = !a && w > Do, C = w * Co, T = d ? C : -C, S = a ? 1 : 1 - w * Io, L = a ? 1 : Math.max(0, 1 - w * Mo), I = f.phase === "entering", A = w === 0, P = !a && !A;
10298
+ u.map((f, g) => {
10299
+ const v = u.length - 1 - g, b = !a && v > Do, C = v * Co, T = d ? C : -C, S = a ? 1 : 1 - v * Io, L = a ? 1 : Math.max(0, 1 - v * Mo), I = f.phase === "entering", A = v === 0, P = !a && !A;
10299
10300
  return /* @__PURE__ */ n(
10300
10301
  "div",
10301
10302
  {
10302
10303
  ref: A ? c : void 0,
10303
10304
  role: "status",
10304
10305
  "aria-live": "polite",
10305
- "aria-hidden": y,
10306
+ "aria-hidden": b,
10306
10307
  style: {
10307
10308
  // Front toast is relative (sets container height).
10308
10309
  // Stacked toasts overlap via absolute + top: 0.
@@ -10310,16 +10311,16 @@ function Lo({ toasts: e, position: t, onDismiss: r, portalContainer: o }) {
10310
10311
  // Bottom positions: anchor at top:0 (peek above front toast)
10311
10312
  // Top positions: anchor at bottom:0 (peek below front toast)
10312
10313
  ...!a && !A && (d ? { bottom: 0 } : { top: 0 }),
10313
- zIndex: 100 - w,
10314
+ zIndex: 100 - v,
10314
10315
  transform: I ? `translateY(${d ? "-20px" : "20px"}) scale(0.96)` : a ? void 0 : `translateY(${T}px) scaleX(${S})`,
10315
10316
  opacity: I || f.phase === "exiting" ? 0 : L,
10316
10317
  transformOrigin: d ? "bottom center" : "top center",
10317
10318
  transition: I ? "none" : "transform var(--lucent-duration-base) var(--lucent-easing-emphasized), opacity var(--lucent-duration-base) var(--lucent-easing-default)",
10318
- pointerEvents: y ? "none" : "auto",
10319
- visibility: y ? "hidden" : "visible"
10319
+ pointerEvents: b ? "none" : "auto",
10320
+ visibility: b ? "hidden" : "visible"
10320
10321
  },
10321
10322
  children: /* @__PURE__ */ n(
10322
- Et,
10323
+ At,
10323
10324
  {
10324
10325
  entry: f,
10325
10326
  onDismiss: r,
@@ -10331,7 +10332,7 @@ function Lo({ toasts: e, position: t, onDismiss: r, portalContainer: o }) {
10331
10332
  f.id
10332
10333
  );
10333
10334
  }),
10334
- u.map((f) => /* @__PURE__ */ n(
10335
+ p.map((f) => /* @__PURE__ */ n(
10335
10336
  "div",
10336
10337
  {
10337
10338
  role: "status",
@@ -10346,14 +10347,14 @@ function Lo({ toasts: e, position: t, onDismiss: r, portalContainer: o }) {
10346
10347
  transition: "transform var(--lucent-duration-base) var(--lucent-easing-default), opacity var(--lucent-duration-base) var(--lucent-easing-default)",
10347
10348
  pointerEvents: "none"
10348
10349
  },
10349
- children: /* @__PURE__ */ n(Et, { entry: f, onDismiss: r })
10350
+ children: /* @__PURE__ */ n(At, { entry: f, onDismiss: r })
10350
10351
  },
10351
10352
  f.id
10352
10353
  ))
10353
10354
  ] })
10354
10355
  }
10355
10356
  ) });
10356
- return pe(h, o ?? document.body);
10357
+ return pe(m, o ?? document.body);
10357
10358
  }
10358
10359
  function pl({
10359
10360
  children: e,
@@ -10362,48 +10363,48 @@ function pl({
10362
10363
  max: o = 5,
10363
10364
  portalContainer: a
10364
10365
  }) {
10365
- const [i, l] = E([]), s = ee((p) => {
10366
- l((u) => {
10367
- const v = u.find((m) => m.id === p);
10368
- return !v || v.phase === "exiting" ? u : u.map((m) => m.id === p ? { ...m, phase: "exiting" } : m);
10366
+ const [i, l] = E([]), s = ee((u) => {
10367
+ l((p) => {
10368
+ const y = p.find((h) => h.id === u);
10369
+ return !y || y.phase === "exiting" ? p : p.map((h) => h.id === u ? { ...h, phase: "exiting" } : h);
10369
10370
  }), setTimeout(() => {
10370
- l((u) => u.filter((v) => v.id !== p));
10371
+ l((p) => p.filter((y) => y.id !== u));
10371
10372
  }, To);
10372
- }, []), c = ee((p) => {
10373
- const u = So(), v = {
10374
- id: u,
10375
- title: p.title,
10376
- variant: p.variant ?? "default",
10377
- duration: p.duration ?? r,
10378
- ...p.description !== void 0 && { description: p.description },
10379
- ...p.action !== void 0 && { action: p.action },
10380
- ...p.icon !== void 0 && { icon: p.icon },
10373
+ }, []), c = ee((u) => {
10374
+ const p = So(), y = {
10375
+ id: p,
10376
+ title: u.title,
10377
+ variant: u.variant ?? "default",
10378
+ duration: u.duration ?? r,
10379
+ ...u.description !== void 0 && { description: u.description },
10380
+ ...u.action !== void 0 && { action: u.action },
10381
+ ...u.icon !== void 0 && { icon: u.icon },
10381
10382
  phase: "entering"
10382
10383
  };
10383
- return l((m) => {
10384
- const b = [...m, v], h = b.filter((f) => f.phase !== "exiting");
10385
- if (h.length > o) {
10386
- const f = h.slice(0, h.length - o);
10384
+ return l((h) => {
10385
+ const x = [...h, y], m = x.filter((f) => f.phase !== "exiting");
10386
+ if (m.length > o) {
10387
+ const f = m.slice(0, m.length - o);
10387
10388
  for (const g of f)
10388
10389
  setTimeout(() => s(g.id), 0);
10389
10390
  }
10390
- return b;
10391
+ return x;
10391
10392
  }), requestAnimationFrame(() => {
10392
10393
  requestAnimationFrame(() => {
10393
10394
  l(
10394
- (m) => m.map((b) => b.id === u && b.phase === "entering" ? { ...b, phase: "visible" } : b)
10395
+ (h) => h.map((x) => x.id === p && x.phase === "entering" ? { ...x, phase: "visible" } : x)
10395
10396
  );
10396
10397
  });
10397
- }), u;
10398
+ }), p;
10398
10399
  }, [r, o, s]);
10399
10400
  G(() => {
10400
- const p = [];
10401
- for (const u of i)
10402
- if (u.phase === "visible" && u.duration !== 1 / 0) {
10403
- const v = setTimeout(() => s(u.id), u.duration);
10404
- p.push(v);
10401
+ const u = [];
10402
+ for (const p of i)
10403
+ if (p.phase === "visible" && p.duration !== 1 / 0) {
10404
+ const y = setTimeout(() => s(p.id), p.duration);
10405
+ u.push(y);
10405
10406
  }
10406
- return () => p.forEach(clearTimeout);
10407
+ return () => u.forEach(clearTimeout);
10407
10408
  }, [i, s]);
10408
10409
  const d = { toast: c, dismiss: s };
10409
10410
  return /* @__PURE__ */ k(Gt.Provider, { value: d, children: [
@@ -10682,20 +10683,20 @@ function He({
10682
10683
  }) {
10683
10684
  const s = O(!1);
10684
10685
  if (!s.current && typeof document < "u") {
10685
- const h = document.createElement("style");
10686
- h.textContent = Fo, document.head.appendChild(h), s.current = !0;
10686
+ const m = document.createElement("style");
10687
+ m.textContent = Fo, document.head.appendChild(m), s.current = !0;
10687
10688
  }
10688
- const c = Oe[o], d = O(null), p = O(null), u = O(!1), v = O(0), m = ee(() => {
10689
- const h = d.current, f = p.current;
10690
- if (!h || !f) return;
10691
- const g = h.querySelector('[data-active="true"]'), w = h.querySelector('[data-active-parent="true"]');
10692
- let y = null, C = !1;
10693
- if (g && !g.closest('[aria-hidden="true"]') ? y = g : w && !w.closest('[aria-hidden="true"]') && (y = w, C = !0), !y) {
10689
+ const c = Oe[o], d = O(null), u = O(null), p = O(!1), y = O(0), h = ee(() => {
10690
+ const m = d.current, f = u.current;
10691
+ if (!m || !f) return;
10692
+ const g = m.querySelector('[data-active="true"]'), v = m.querySelector('[data-active-parent="true"]');
10693
+ let b = null, C = !1;
10694
+ if (g && !g.closest('[aria-hidden="true"]') ? b = g : v && !v.closest('[aria-hidden="true"]') && (b = v, C = !0), !b) {
10694
10695
  f.style.opacity = "0";
10695
10696
  return;
10696
10697
  }
10697
- const T = h.getBoundingClientRect(), S = y.getBoundingClientRect();
10698
- u.current ? f.style.transition = [
10698
+ const T = m.getBoundingClientRect(), S = b.getBoundingClientRect();
10699
+ p.current ? f.style.transition = [
10699
10700
  `top 150ms ${Ee}`,
10700
10701
  `left 150ms ${Ee}`,
10701
10702
  `width 150ms ${Ee}`,
@@ -10703,29 +10704,29 @@ function He({
10703
10704
  "opacity 100ms ease",
10704
10705
  "background 150ms ease",
10705
10706
  "box-shadow 150ms ease"
10706
- ].join(", ") : (f.style.transition = "none", u.current = !0), f.style.top = `${S.top - T.top}px`, f.style.left = `${S.left - T.left}px`, f.style.width = `${S.width}px`, f.style.height = `${S.height}px`, f.style.opacity = "1", C ? (f.style.background = r ? "var(--lucent-surface-secondary)" : "color-mix(in srgb, var(--lucent-accent-default) 12%, transparent)", f.style.boxShadow = "none") : (f.style.background = r ? "var(--lucent-surface)" : "var(--lucent-accent-default)", f.style.boxShadow = r ? "inset -3px 0 0 var(--lucent-accent-default), var(--lucent-shadow-sm)" : "none");
10707
- }, [r]), b = ee(() => {
10708
- cancelAnimationFrame(v.current), v.current = requestAnimationFrame(m);
10709
- }, [m]);
10707
+ ].join(", ") : (f.style.transition = "none", p.current = !0), f.style.top = `${S.top - T.top}px`, f.style.left = `${S.left - T.left}px`, f.style.width = `${S.width}px`, f.style.height = `${S.height}px`, f.style.opacity = "1", C ? (f.style.background = r ? "var(--lucent-surface-secondary)" : "color-mix(in srgb, var(--lucent-accent-default) 12%, transparent)", f.style.boxShadow = "none") : (f.style.background = r ? "var(--lucent-surface)" : "var(--lucent-accent-default)", f.style.boxShadow = r ? "inset -3px 0 0 var(--lucent-accent-default), var(--lucent-shadow-sm)" : "none");
10708
+ }, [r]), x = ee(() => {
10709
+ cancelAnimationFrame(y.current), y.current = requestAnimationFrame(h);
10710
+ }, [h]);
10710
10711
  return G(() => {
10711
- const h = d.current;
10712
- if (!h) return;
10713
- const f = new MutationObserver(b);
10714
- return f.observe(h, {
10712
+ const m = d.current;
10713
+ if (!m) return;
10714
+ const f = new MutationObserver(x);
10715
+ return f.observe(m, {
10715
10716
  attributes: !0,
10716
10717
  attributeFilter: ["data-active", "data-active-parent", "aria-hidden"],
10717
10718
  subtree: !0
10718
10719
  }), () => f.disconnect();
10719
- }, [b]), G(() => {
10720
- const h = d.current;
10721
- if (!h) return;
10722
- const f = new ResizeObserver(b);
10723
- return f.observe(h), () => f.disconnect();
10724
- }, [b]), G(() => {
10725
- document.fonts.ready.then(b);
10726
- }, [b]), G(() => {
10727
- b();
10728
- }, [e, r, o, b]), /* @__PURE__ */ n(ue.Provider, { value: { orientation: t, depth: 0, inverse: r, size: o, hasIcons: a, parentHasIcon: !1, requestMeasure: b }, children: /* @__PURE__ */ k(
10720
+ }, [x]), G(() => {
10721
+ const m = d.current;
10722
+ if (!m) return;
10723
+ const f = new ResizeObserver(x);
10724
+ return f.observe(m), () => f.disconnect();
10725
+ }, [x]), G(() => {
10726
+ document.fonts.ready.then(x);
10727
+ }, [x]), G(() => {
10728
+ x();
10729
+ }, [e, r, o, x]), /* @__PURE__ */ n(ue.Provider, { value: { orientation: t, depth: 0, inverse: r, size: o, hasIcons: a, parentHasIcon: !1, requestMeasure: x }, children: /* @__PURE__ */ k(
10729
10730
  "nav",
10730
10731
  {
10731
10732
  ref: d,
@@ -10743,7 +10744,7 @@ function He({
10743
10744
  /* @__PURE__ */ n(
10744
10745
  "div",
10745
10746
  {
10746
- ref: p,
10747
+ ref: u,
10747
10748
  "aria-hidden": !0,
10748
10749
  style: {
10749
10750
  position: "absolute",
@@ -10774,22 +10775,22 @@ function Po({
10774
10775
  as: s,
10775
10776
  style: c
10776
10777
  }) {
10777
- const { orientation: d, depth: p, inverse: u, size: v, parentHasIcon: m, requestMeasure: b } = le(ue), h = Oe[v];
10778
+ const { orientation: d, depth: u, inverse: p, size: y, parentHasIcon: h, requestMeasure: x } = ie(ue), m = Oe[y];
10778
10779
  G(() => {
10779
- b();
10780
- }, [r, b]);
10780
+ x();
10781
+ }, [r, x]);
10781
10782
  let f = null;
10782
- const g = [], w = Array.isArray(e) ? e : [e];
10783
- for (const C of w)
10783
+ const g = [], v = Array.isArray(e) ? e : [e];
10784
+ for (const C of v)
10784
10785
  C != null && typeof C == "object" && "type" in C && C.type === Yt ? f = C : g.push(C);
10785
10786
  return f ? /* @__PURE__ */ n(
10786
10787
  $o,
10787
10788
  {
10788
10789
  subMenu: f,
10789
10790
  orientation: d,
10790
- depth: p,
10791
- inverse: u,
10792
- size: v,
10791
+ depth: u,
10792
+ inverse: p,
10793
+ size: y,
10793
10794
  isActive: r,
10794
10795
  disabled: i,
10795
10796
  ...o !== void 0 && { icon: o },
@@ -10810,16 +10811,16 @@ function Po({
10810
10811
  style: {
10811
10812
  display: "flex",
10812
10813
  alignItems: "center",
10813
- gap: h.gap,
10814
- padding: d === "vertical" ? `${h.paddingY} ${h.paddingX} ${h.paddingY} ${o != null || m ? "var(--lucent-space-2)" : "var(--lucent-space-4)"}` : `${h.paddingY} ${h.paddingX}`,
10814
+ gap: m.gap,
10815
+ padding: d === "vertical" ? `${m.paddingY} ${m.paddingX} ${m.paddingY} ${o != null || h ? "var(--lucent-space-2)" : "var(--lucent-space-4)"}` : `${m.paddingY} ${m.paddingX}`,
10815
10816
  borderRadius: "var(--lucent-radius-md)",
10816
10817
  background: "transparent",
10817
- color: i ? "var(--lucent-text-disabled)" : r ? u ? "var(--lucent-text-primary)" : "var(--lucent-text-on-accent)" : "var(--lucent-text-secondary)",
10818
+ color: i ? "var(--lucent-text-disabled)" : r ? p ? "var(--lucent-text-primary)" : "var(--lucent-text-on-accent)" : "var(--lucent-text-secondary)",
10818
10819
  border: 0,
10819
10820
  borderBottom: r && d === "horizontal" ? "2px solid var(--lucent-accent-default)" : d === "horizontal" ? "2px solid transparent" : 0,
10820
10821
  boxShadow: "none",
10821
10822
  fontFamily: "var(--lucent-font-family-base)",
10822
- fontSize: h.fontSize,
10823
+ fontSize: m.fontSize,
10823
10824
  fontWeight: r ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
10824
10825
  textDecoration: "none",
10825
10826
  cursor: i ? "not-allowed" : "pointer",
@@ -10835,7 +10836,7 @@ function Po({
10835
10836
  ...c
10836
10837
  },
10837
10838
  children: [
10838
- o != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, width: h.iconWidth, minWidth: 14, minHeight: 14, alignItems: "center", justifyContent: "center", color: "inherit" }, children: o }),
10839
+ o != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, width: m.iconWidth, minWidth: 14, minHeight: 14, alignItems: "center", justifyContent: "center", color: "inherit" }, children: o }),
10839
10840
  /* @__PURE__ */ n("span", { style: { flex: 1 }, children: g }),
10840
10841
  a != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, marginLeft: "auto" }, children: a })
10841
10842
  ]
@@ -10853,38 +10854,38 @@ function $o({
10853
10854
  subMenu: s,
10854
10855
  orientation: c,
10855
10856
  depth: d,
10856
- inverse: p,
10857
- size: u
10857
+ inverse: u,
10858
+ size: p
10858
10859
  }) {
10859
- const { hasIcons: v, requestMeasure: m } = le(ue), b = Oe[u], [h, f] = E(!1), g = O(null), [w, y] = E(0), C = O(null), T = O(null), S = O(), L = No(s), I = o && !L, A = !I && !h && L, P = o || L;
10860
+ const { hasIcons: y, requestMeasure: h } = ie(ue), x = Oe[p], [m, f] = E(!1), g = O(null), [v, b] = E(0), C = O(null), T = O(null), S = O(), L = No(s), I = o && !L, A = !I && !m && L, P = o || L;
10860
10861
  G(() => {
10861
- m();
10862
- }, [h, o, L, m]), G(() => {
10862
+ h();
10863
+ }, [m, o, L, h]), G(() => {
10863
10864
  if (c !== "vertical") return;
10864
10865
  const D = g.current;
10865
10866
  if (D)
10866
- if (h) {
10867
+ if (m) {
10867
10868
  const R = D.scrollHeight;
10868
- y(R);
10869
+ b(R);
10869
10870
  const H = setTimeout(() => {
10870
- y(void 0);
10871
+ b(void 0);
10871
10872
  }, 130);
10872
10873
  return () => clearTimeout(H);
10873
10874
  } else
10874
- y(D.scrollHeight), D.getBoundingClientRect(), y(0);
10875
- }, [h, c]), G(() => {
10876
- if (c !== "horizontal" || !h) return;
10875
+ b(D.scrollHeight), D.getBoundingClientRect(), b(0);
10876
+ }, [m, c]), G(() => {
10877
+ if (c !== "horizontal" || !m) return;
10877
10878
  const D = (R) => {
10878
10879
  C.current && !C.current.contains(R.target) && U();
10879
10880
  };
10880
10881
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
10881
- }, [c, h]), ie(() => {
10882
- if (c !== "horizontal" || !h) return;
10882
+ }, [c, m]), se(() => {
10883
+ if (c !== "horizontal" || !m) return;
10883
10884
  const D = T.current;
10884
10885
  if (!D) return;
10885
10886
  const R = D.getBoundingClientRect();
10886
10887
  R.right > window.innerWidth && (D.style.left = "auto", D.style.right = "0"), R.bottom > window.innerHeight && (D.style.top = "auto", D.style.bottom = "100%", D.style.marginTop = "0", D.style.marginBottom = "var(--lucent-space-1)");
10887
- }, [c, h]);
10888
+ }, [c, m]);
10888
10889
  const [$, M] = E("idle"), [N, q] = E(!1), W = () => {
10889
10890
  a || (q(!0), M("entering"), f(!0));
10890
10891
  }, U = () => {
@@ -10892,9 +10893,9 @@ function $o({
10892
10893
  f(!1), q(!1), M("idle");
10893
10894
  }, Je);
10894
10895
  }, J = () => {
10895
- a || (c === "horizontal" ? h ? U() : W() : f(!h));
10896
+ a || (c === "horizontal" ? m ? U() : W() : f(!m));
10896
10897
  }, Z = (D) => {
10897
- a || (c === "vertical" ? (D.key === "ArrowRight" && !h && (D.preventDefault(), f(!0)), D.key === "ArrowLeft" && h && (D.preventDefault(), f(!1))) : (D.key === "ArrowDown" && !h && (D.preventDefault(), W()), D.key === "ArrowUp" && h && (D.preventDefault(), U())), (D.key === "Enter" || D.key === " ") && (D.preventDefault(), J()), D.key === "Escape" && h && (D.preventDefault(), c === "horizontal" ? U() : f(!1)));
10898
+ a || (c === "vertical" ? (D.key === "ArrowRight" && !m && (D.preventDefault(), f(!0)), D.key === "ArrowLeft" && m && (D.preventDefault(), f(!1))) : (D.key === "ArrowDown" && !m && (D.preventDefault(), W()), D.key === "ArrowUp" && m && (D.preventDefault(), U())), (D.key === "Enter" || D.key === " ") && (D.preventDefault(), J()), D.key === "Escape" && m && (D.preventDefault(), c === "horizontal" ? U() : f(!1)));
10898
10899
  }, F = () => {
10899
10900
  c === "horizontal" && !a && (clearTimeout(S.current), W());
10900
10901
  }, z = () => {
@@ -10917,20 +10918,20 @@ function $o({
10917
10918
  J(), i == null || i(D);
10918
10919
  },
10919
10920
  onKeyDown: Z,
10920
- "aria-expanded": h,
10921
+ "aria-expanded": m,
10921
10922
  "aria-disabled": a || void 0,
10922
10923
  style: {
10923
10924
  display: "flex",
10924
10925
  alignItems: "center",
10925
- gap: b.gap,
10926
- padding: `${b.paddingY} ${b.paddingX}`,
10926
+ gap: x.gap,
10927
+ padding: `${x.paddingY} ${x.paddingX}`,
10927
10928
  borderRadius: "var(--lucent-radius-md)",
10928
10929
  background: "transparent",
10929
10930
  color: a ? "var(--lucent-text-disabled)" : P ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
10930
10931
  border: 0,
10931
10932
  borderBottom: P ? "2px solid var(--lucent-accent-default)" : "2px solid transparent",
10932
10933
  fontFamily: "var(--lucent-font-family-base)",
10933
- fontSize: b.fontSize,
10934
+ fontSize: x.fontSize,
10934
10935
  fontWeight: P ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
10935
10936
  cursor: a ? "not-allowed" : "pointer",
10936
10937
  transition: "background var(--lucent-duration-fast) var(--lucent-easing-default), color var(--lucent-duration-fast) var(--lucent-easing-default)",
@@ -10941,13 +10942,13 @@ function $o({
10941
10942
  ...l
10942
10943
  },
10943
10944
  children: [
10944
- t != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, width: b.iconWidth, minWidth: 14, minHeight: 14, alignItems: "center", justifyContent: "center", color: "inherit" }, children: t }),
10945
+ t != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, width: x.iconWidth, minWidth: 14, minHeight: 14, alignItems: "center", justifyContent: "center", color: "inherit" }, children: t }),
10945
10946
  /* @__PURE__ */ n("span", { children: e }),
10946
10947
  r != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0 }, children: r })
10947
10948
  ]
10948
10949
  }
10949
10950
  ),
10950
- N && /* @__PURE__ */ n(ue.Provider, { value: { orientation: "vertical", depth: 0, inverse: p, size: u, hasIcons: v, parentHasIcon: !1, requestMeasure: m }, children: /* @__PURE__ */ n(
10951
+ N && /* @__PURE__ */ n(ue.Provider, { value: { orientation: "vertical", depth: 0, inverse: u, size: p, hasIcons: y, parentHasIcon: !1, requestMeasure: h }, children: /* @__PURE__ */ n(
10951
10952
  "div",
10952
10953
  {
10953
10954
  ref: T,
@@ -10982,21 +10983,21 @@ function $o({
10982
10983
  J(), i == null || i(D);
10983
10984
  },
10984
10985
  onKeyDown: Z,
10985
- "aria-expanded": h,
10986
+ "aria-expanded": m,
10986
10987
  "aria-disabled": a || void 0,
10987
10988
  style: {
10988
10989
  display: "flex",
10989
10990
  alignItems: "center",
10990
- gap: b.gap,
10991
+ gap: x.gap,
10991
10992
  width: "100%",
10992
- padding: `${b.paddingY} ${b.paddingX} ${b.paddingY} ${t != null ? "var(--lucent-space-2)" : "var(--lucent-space-4)"}`,
10993
+ padding: `${x.paddingY} ${x.paddingX} ${x.paddingY} ${t != null ? "var(--lucent-space-2)" : "var(--lucent-space-4)"}`,
10993
10994
  borderRadius: "var(--lucent-radius-md)",
10994
10995
  background: "transparent",
10995
- color: a ? "var(--lucent-text-disabled)" : I ? p ? "var(--lucent-text-primary)" : "var(--lucent-text-on-accent)" : A || P ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
10996
+ color: a ? "var(--lucent-text-disabled)" : I ? u ? "var(--lucent-text-primary)" : "var(--lucent-text-on-accent)" : A || P ? "var(--lucent-text-primary)" : "var(--lucent-text-secondary)",
10996
10997
  border: 0,
10997
10998
  boxShadow: "none",
10998
10999
  fontFamily: "var(--lucent-font-family-base)",
10999
- fontSize: b.fontSize,
11000
+ fontSize: x.fontSize,
11000
11001
  fontWeight: P ? "var(--lucent-font-weight-medium)" : "var(--lucent-font-weight-regular)",
11001
11002
  textAlign: "left",
11002
11003
  textDecoration: "none",
@@ -11008,7 +11009,7 @@ function $o({
11008
11009
  ...l
11009
11010
  },
11010
11011
  children: [
11011
- t != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, width: b.iconWidth, minWidth: 14, minHeight: 14, alignItems: "center", justifyContent: "center", color: "inherit" }, children: t }),
11012
+ t != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0, width: x.iconWidth, minWidth: 14, minHeight: 14, alignItems: "center", justifyContent: "center", color: "inherit" }, children: t }),
11012
11013
  /* @__PURE__ */ n("span", { style: { flex: 1 }, children: e }),
11013
11014
  r != null && /* @__PURE__ */ n("span", { style: { display: "flex", flexShrink: 0 }, children: r })
11014
11015
  ]
@@ -11018,22 +11019,22 @@ function $o({
11018
11019
  "div",
11019
11020
  {
11020
11021
  ref: g,
11021
- "aria-hidden": !h,
11022
+ "aria-hidden": !m,
11022
11023
  style: {
11023
11024
  overflow: "hidden",
11024
- height: w !== void 0 ? w : "auto",
11025
+ height: v !== void 0 ? v : "auto",
11025
11026
  transition: "height 120ms var(--lucent-easing-default)"
11026
11027
  },
11027
- children: /* @__PURE__ */ n(ue.Provider, { value: { orientation: c, depth: d + 1, inverse: p, size: u, hasIcons: v, parentHasIcon: t != null, requestMeasure: m }, children: /* @__PURE__ */ n(
11028
+ children: /* @__PURE__ */ n(ue.Provider, { value: { orientation: c, depth: d + 1, inverse: u, size: p, hasIcons: y, parentHasIcon: t != null, requestMeasure: h }, children: /* @__PURE__ */ n(
11028
11029
  "div",
11029
11030
  {
11030
11031
  style: {
11031
11032
  display: "flex",
11032
11033
  flexDirection: "column",
11033
- gap: b.itemGap,
11034
+ gap: x.itemGap,
11034
11035
  padding: "var(--lucent-space-1) 0",
11035
- marginLeft: t != null ? `calc(${b.iconWidth} + ${b.gap})` : "var(--lucent-space-3)",
11036
- animation: h ? "lucent-navmenu-open 200ms var(--lucent-easing-default) forwards" : void 0
11036
+ marginLeft: t != null ? `calc(${x.iconWidth} + ${x.gap})` : "var(--lucent-space-3)",
11037
+ animation: m ? "lucent-navmenu-open 200ms var(--lucent-easing-default) forwards" : void 0
11037
11038
  },
11038
11039
  children: s
11039
11040
  }
@@ -11067,13 +11068,13 @@ function Wo({
11067
11068
  collapsible: i,
11068
11069
  style: l
11069
11070
  }) {
11070
- const { orientation: s, inverse: c, size: d, hasIcons: p } = le(ue), u = Oe[d], v = i ?? t != null, m = p ? "var(--lucent-space-2)" : "var(--lucent-space-4)";
11071
+ const { orientation: s, inverse: c, size: d, hasIcons: u } = ie(ue), p = Oe[d], y = i ?? t != null, h = u ? "var(--lucent-space-2)" : "var(--lucent-space-4)";
11071
11072
  if (s === "horizontal")
11072
11073
  return /* @__PURE__ */ n(ae, { children: e });
11073
- const b = o !== void 0, [h, f] = E(r), g = b ? o : h, w = O(null), [y, C] = E(g ? void 0 : 0);
11074
+ const x = o !== void 0, [m, f] = E(r), g = x ? o : m, v = O(null), [b, C] = E(g ? void 0 : 0);
11074
11075
  G(() => {
11075
- if (!v) return;
11076
- const S = w.current;
11076
+ if (!y) return;
11077
+ const S = v.current;
11077
11078
  if (S)
11078
11079
  if (g) {
11079
11080
  const L = S.scrollHeight;
@@ -11084,13 +11085,13 @@ function Wo({
11084
11085
  return () => clearTimeout(I);
11085
11086
  } else
11086
11087
  C(S.scrollHeight), S.getBoundingClientRect(), C(0);
11087
- }, [g, v]);
11088
+ }, [g, y]);
11088
11089
  const T = ee(() => {
11089
11090
  const S = !g;
11090
- b || f(S), a == null || a(S);
11091
- }, [g, b, a]);
11091
+ x || f(S), a == null || a(S);
11092
+ }, [g, x, a]);
11092
11093
  return t ? /* @__PURE__ */ k("div", { style: { display: "flex", flexDirection: "column", marginTop: "var(--lucent-space-3)", ...l }, children: [
11093
- v ? /* @__PURE__ */ k(
11094
+ y ? /* @__PURE__ */ k(
11094
11095
  "button",
11095
11096
  {
11096
11097
  onClick: T,
@@ -11100,7 +11101,7 @@ function Wo({
11100
11101
  alignItems: "center",
11101
11102
  justifyContent: "space-between",
11102
11103
  width: "100%",
11103
- padding: `var(--lucent-space-1) var(--lucent-space-3) var(--lucent-space-1) ${m}`,
11104
+ padding: `var(--lucent-space-1) var(--lucent-space-3) var(--lucent-space-1) ${h}`,
11104
11105
  background: "none",
11105
11106
  border: 0,
11106
11107
  cursor: "pointer",
@@ -11125,7 +11126,7 @@ function Wo({
11125
11126
  "div",
11126
11127
  {
11127
11128
  style: {
11128
- padding: `var(--lucent-space-1) var(--lucent-space-3) var(--lucent-space-1) ${m}`,
11129
+ padding: `var(--lucent-space-1) var(--lucent-space-3) var(--lucent-space-1) ${h}`,
11129
11130
  fontFamily: "var(--lucent-font-family-base)",
11130
11131
  fontSize: "var(--lucent-font-size-xs)",
11131
11132
  fontWeight: "var(--lucent-font-weight-semibold)",
@@ -11138,14 +11139,14 @@ function Wo({
11138
11139
  children: t
11139
11140
  }
11140
11141
  ),
11141
- v ? /* @__PURE__ */ n(
11142
+ y ? /* @__PURE__ */ n(
11142
11143
  "div",
11143
11144
  {
11144
- ref: w,
11145
+ ref: v,
11145
11146
  "aria-hidden": !g,
11146
11147
  style: {
11147
11148
  overflow: "hidden",
11148
- height: y !== void 0 ? y : "auto",
11149
+ height: b !== void 0 ? b : "auto",
11149
11150
  transition: "height 120ms var(--lucent-easing-default)"
11150
11151
  },
11151
11152
  children: /* @__PURE__ */ n(
@@ -11154,17 +11155,17 @@ function Wo({
11154
11155
  style: {
11155
11156
  display: "flex",
11156
11157
  flexDirection: "column",
11157
- gap: u.itemGap
11158
+ gap: p.itemGap
11158
11159
  },
11159
11160
  children: e
11160
11161
  }
11161
11162
  )
11162
11163
  }
11163
- ) : /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: u.itemGap }, children: e })
11164
- ] }) : /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: u.itemGap, ...l }, children: e });
11164
+ ) : /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: p.itemGap }, children: e })
11165
+ ] }) : /* @__PURE__ */ n("div", { style: { display: "flex", flexDirection: "column", gap: p.itemGap, ...l }, children: e });
11165
11166
  }
11166
11167
  function Oo({ style: e }) {
11167
- const { orientation: t } = le(ue);
11168
+ const { orientation: t } = ie(ue);
11168
11169
  return /* @__PURE__ */ n(
11169
11170
  "div",
11170
11171
  {
@@ -11337,26 +11338,26 @@ function Xo({ r: e, g: t, b: r }) {
11337
11338
  }
11338
11339
  function ce(e) {
11339
11340
  const { r: t, g: r, b: o } = Ko(e), a = t / 255, i = r / 255, l = o / 255, s = Math.max(a, i, l), c = Math.min(a, i, l);
11340
- let d = 0, p = 0;
11341
- const u = (s + c) / 2;
11341
+ let d = 0, u = 0;
11342
+ const p = (s + c) / 2;
11342
11343
  if (s !== c) {
11343
- const v = s - c;
11344
- switch (p = u > 0.5 ? v / (2 - s - c) : v / (s + c), s) {
11344
+ const y = s - c;
11345
+ switch (u = p > 0.5 ? y / (2 - s - c) : y / (s + c), s) {
11345
11346
  case a:
11346
- d = (i - l) / v + (i < l ? 6 : 0);
11347
+ d = (i - l) / y + (i < l ? 6 : 0);
11347
11348
  break;
11348
11349
  case i:
11349
- d = (l - a) / v + 2;
11350
+ d = (l - a) / y + 2;
11350
11351
  break;
11351
11352
  case l:
11352
- d = (a - i) / v + 4;
11353
+ d = (a - i) / y + 4;
11353
11354
  break;
11354
11355
  }
11355
11356
  d /= 6;
11356
11357
  }
11357
- return [d * 360, p, u];
11358
+ return [d * 360, u, p];
11358
11359
  }
11359
- function se(e, t, r) {
11360
+ function le(e, t, r) {
11360
11361
  e = (e % 360 + 360) % 360, t = Math.min(1, Math.max(0, t)), r = Math.min(1, Math.max(0, r));
11361
11362
  const o = (1 - Math.abs(2 * r - 1)) * t, a = o * (1 - Math.abs(e / 60 % 2 - 1)), i = r - o / 2;
11362
11363
  let l = 0, s = 0, c = 0;
@@ -11364,7 +11365,7 @@ function se(e, t, r) {
11364
11365
  }
11365
11366
  function X(e, t) {
11366
11367
  const [r, o, a] = ce(e);
11367
- return se(r, o, Math.min(1, Math.max(0, a + t)));
11368
+ return le(r, o, Math.min(1, Math.max(0, a + t)));
11368
11369
  }
11369
11370
  const Jo = 222, Zo = 0.12;
11370
11371
  function Kt(e, t) {
@@ -11372,22 +11373,22 @@ function Kt(e, t) {
11372
11373
  }
11373
11374
  function Qo(e) {
11374
11375
  const [t, r, o] = ce(e), [a, i] = Kt(t, r);
11375
- return se(a, i, Math.max(0.04, Math.min(0.2, 0.07 + (1 - o))));
11376
+ return le(a, i, Math.max(0.04, Math.min(0.2, 0.07 + (1 - o))));
11376
11377
  }
11377
11378
  function Ze(e) {
11378
11379
  const [t, r, o] = ce(e), [a, i] = Kt(t, r);
11379
- return se(a, i, Math.max(0.06, Math.min(0.5, (1 - o) * 0.6 + 0.06)));
11380
+ return le(a, i, Math.max(0.06, Math.min(0.5, (1 - o) * 0.6 + 0.06)));
11380
11381
  }
11381
11382
  function Qe(e) {
11382
11383
  const [t, r, o] = ce(e);
11383
- return se(t, r, Math.max(0.04, Math.min(0.97, 1 - o + 0.04)));
11384
+ return le(t, r, Math.max(0.04, Math.min(0.97, 1 - o + 0.04)));
11384
11385
  }
11385
11386
  function ye(e) {
11386
11387
  const [t, r, o] = ce(e);
11387
- return se(t, r, Math.max(0.02, Math.min(0.98, 1 - o)));
11388
+ return le(t, r, Math.max(0.02, Math.min(0.98, 1 - o)));
11388
11389
  }
11389
11390
  function ei(e) {
11390
- const t = Qo(e.bgBase), [r, o, a] = ce(t), i = (l) => se(r, o, Math.min(0.25, a + l));
11391
+ const t = Qo(e.bgBase), [r, o, a] = ce(t), i = (l) => le(r, o, Math.min(0.25, a + l));
11391
11392
  return {
11392
11393
  // ── Non-color tokens: carry over from light unchanged ──────────────────
11393
11394
  ...e,
@@ -11456,21 +11457,21 @@ function ai(e) {
11456
11457
  const t = parseInt(e.slice(1, 3), 16) / 255, r = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255, a = (i) => i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
11457
11458
  return 0.2126 * a(t) + 0.7152 * a(r) + 0.0722 * a(o);
11458
11459
  }
11459
- const ri = 0.2126729, oi = 0.7151522, ii = 0.072175, si = 0.56, li = 0.57, ci = 0.65, di = 0.62, Bt = 0.022, ui = 1.414, pi = 1.14, fi = 1.14, qt = 0.027, Rt = 0.027;
11460
- function Lt(e) {
11460
+ const ri = 0.2126729, oi = 0.7151522, ii = 0.072175, si = 0.56, li = 0.57, ci = 0.65, di = 0.62, qt = 0.022, ui = 1.414, pi = 1.14, fi = 1.14, Rt = 0.027, Lt = 0.027;
11461
+ function Ft(e) {
11461
11462
  const t = parseInt(e.slice(1, 3), 16) / 255, r = parseInt(e.slice(3, 5), 16) / 255, o = parseInt(e.slice(5, 7), 16) / 255, a = Math.pow(t, 2.4), i = Math.pow(r, 2.4), l = Math.pow(o, 2.4);
11462
11463
  let s = ri * a + oi * i + ii * l;
11463
- return s < 0 && (s = 0), s < Bt ? s + Math.pow(Bt - s, ui) : s;
11464
+ return s < 0 && (s = 0), s < qt ? s + Math.pow(qt - s, ui) : s;
11464
11465
  }
11465
11466
  function Ne(e, t) {
11466
- const r = Lt(e), o = Lt(t);
11467
+ const r = Ft(e), o = Ft(t);
11467
11468
  let a;
11468
11469
  if (r > o) {
11469
11470
  const i = (Math.pow(r, si) - Math.pow(o, li)) * pi;
11470
- a = i < qt ? 0 : i - qt;
11471
+ a = i < Rt ? 0 : i - Rt;
11471
11472
  } else {
11472
11473
  const i = (Math.pow(r, ci) - Math.pow(o, di)) * fi;
11473
- a = i > -Rt ? 0 : i + Rt;
11474
+ a = i > -Lt ? 0 : i + Lt;
11474
11475
  }
11475
11476
  return a * 100;
11476
11477
  }
@@ -11481,21 +11482,21 @@ function Jt(e) {
11481
11482
  function hi(e, t, r = 60) {
11482
11483
  if (Math.abs(Ne(e, t)) >= r) return e;
11483
11484
  const o = parseInt(e.slice(1, 3), 16) / 255, a = parseInt(e.slice(3, 5), 16) / 255, i = parseInt(e.slice(5, 7), 16) / 255, l = Math.max(o, a, i), s = Math.min(o, a, i);
11484
- let c = 0, d = 0, p = (l + s) / 2;
11485
+ let c = 0, d = 0, u = (l + s) / 2;
11485
11486
  if (l !== s) {
11486
- const m = l - s;
11487
- d = p > 0.5 ? m / (2 - l - s) : m / (l + s), l === o ? c = ((a - i) / m + (a < i ? 6 : 0)) / 6 : l === a ? c = ((i - o) / m + 2) / 6 : c = ((o - a) / m + 4) / 6;
11487
+ const h = l - s;
11488
+ d = u > 0.5 ? h / (2 - l - s) : h / (l + s), l === o ? c = ((a - i) / h + (a < i ? 6 : 0)) / 6 : l === a ? c = ((i - o) / h + 2) / 6 : c = ((o - a) / h + 4) / 6;
11488
11489
  }
11489
- const v = ai(t) > 0.5 ? -5e-3 : 5e-3;
11490
- for (let m = 0; m < 100; m++) {
11491
- p = Math.min(1, Math.max(0, p + v));
11492
- const b = mi(c, d, p);
11493
- if (Math.abs(Ne(b, t)) >= r) return b;
11490
+ const y = ai(t) > 0.5 ? -5e-3 : 5e-3;
11491
+ for (let h = 0; h < 100; h++) {
11492
+ u = Math.min(1, Math.max(0, u + y));
11493
+ const x = mi(c, d, u);
11494
+ if (Math.abs(Ne(x, t)) >= r) return x;
11494
11495
  }
11495
11496
  return e;
11496
11497
  }
11497
11498
  function mi(e, t, r) {
11498
- const o = (c, d, p) => (p < 0 && (p += 1), p > 1 && (p -= 1), p < 0.16666666666666666 ? c + (d - c) * 6 * p : p < 0.5 ? d : p < 0.6666666666666666 ? c + (d - c) * (0.6666666666666666 - p) * 6 : c);
11499
+ const o = (c, d, u) => (u < 0 && (u += 1), u > 1 && (u -= 1), u < 0.16666666666666666 ? c + (d - c) * 6 * u : u < 0.5 ? d : u < 0.6666666666666666 ? c + (d - c) * (0.6666666666666666 - u) * 6 : c);
11499
11500
  let a, i, l;
11500
11501
  if (t === 0)
11501
11502
  a = i = l = r;
@@ -11508,7 +11509,7 @@ function mi(e, t, r) {
11508
11509
  }
11509
11510
  function gi(e, t) {
11510
11511
  const [r, o, a] = ce(e);
11511
- return t ? se(r, o * 0.3, Math.min(1, a + (1 - a) * 0.85)) : se(r, o, Math.min(0.25, a + 0.04));
11512
+ return t ? le(r, o * 0.3, Math.min(1, a + (1 - a) * 0.85)) : le(r, o, Math.min(0.25, a + 0.04));
11512
11513
  }
11513
11514
  const We = {
11514
11515
  subtle: { light: 0.95, dark: 0.12 },
@@ -11516,11 +11517,11 @@ const We = {
11516
11517
  };
11517
11518
  function Ae(e, t) {
11518
11519
  const [r, o] = ce(e);
11519
- return se(r, o * 0.5, t ? We.subtle.light : We.subtle.dark);
11520
+ return le(r, o * 0.5, t ? We.subtle.light : We.subtle.dark);
11520
11521
  }
11521
11522
  function Be(e, t) {
11522
11523
  const [r, o] = ce(e);
11523
- return se(r, o, t ? We.text.light : We.text.dark);
11524
+ return le(r, o, t ? We.text.light : We.text.dark);
11524
11525
  }
11525
11526
  function Zt(e, t, r) {
11526
11527
  const o = {}, a = r === "light";
@@ -12023,32 +12024,32 @@ function hl({
12023
12024
  const f = Qt(o, e);
12024
12025
  if (l) {
12025
12026
  const g = {};
12026
- for (const [w, y] of Object.entries(l))
12027
- (w.startsWith("space") || w.startsWith("radius") || w.startsWith("shadow") || w.startsWith("duration") || w.startsWith("easing")) && (g[w] = y);
12027
+ for (const [v, b] of Object.entries(l))
12028
+ (v.startsWith("space") || v.startsWith("radius") || v.startsWith("shadow") || v.startsWith("duration") || v.startsWith("easing")) && (g[v] = b);
12028
12029
  return { ...f, ...g };
12029
12030
  }
12030
12031
  return f;
12031
12032
  }
12032
- const d = e === "dark" ? Xt : Ve, p = l ? { ...l, ...r } : r, u = p ? { ...d, ...p } : d, v = p ? Zt(p, u, e) : {}, m = (p == null ? void 0 : p.accentBorder) ?? (e === "light" ? X(u.accentDefault, -0.15) : X(u.accentDefault, 0.15)), b = (p == null ? void 0 : p.textOnAccent) ?? Jt(u.accentDefault), h = hi(u.accentDefault, b);
12033
+ const d = e === "dark" ? Xt : Ve, u = l ? { ...l, ...r } : r, p = u ? { ...d, ...u } : d, y = u ? Zt(u, p, e) : {}, h = (u == null ? void 0 : u.accentBorder) ?? (e === "light" ? X(p.accentDefault, -0.15) : X(p.accentDefault, 0.15)), x = (u == null ? void 0 : u.textOnAccent) ?? Jt(p.accentDefault), m = hi(p.accentDefault, x);
12033
12034
  return {
12034
- ...u,
12035
- ...v,
12036
- accentDefault: h,
12037
- textOnAccent: b,
12038
- accentBorder: m
12035
+ ...p,
12036
+ ...y,
12037
+ accentDefault: m,
12038
+ textOnAccent: x,
12039
+ accentBorder: h
12039
12040
  };
12040
12041
  })(), c = `html { font-size: 14px; }
12041
12042
  ` + ni(s, ":root");
12042
- return ie(() => {
12043
+ return se(() => {
12043
12044
  let d = document.getElementById(`lucent-tokens-${i}`);
12044
12045
  return d || (d = document.createElement("style"), d.id = `lucent-tokens-${i}`, document.head.appendChild(d)), d.textContent = c, () => {
12045
- var p;
12046
- (p = document.getElementById(`lucent-tokens-${i}`)) == null || p.remove();
12046
+ var u;
12047
+ (u = document.getElementById(`lucent-tokens-${i}`)) == null || u.remove();
12047
12048
  };
12048
12049
  }, [i, c]), /* @__PURE__ */ n(fn.Provider, { value: { theme: e, tokens: s }, children: a });
12049
12050
  }
12050
12051
  function ml() {
12051
- return le(fn);
12052
+ return ie(fn);
12052
12053
  }
12053
12054
  const gl = {
12054
12055
  bgBase: {
@@ -12346,7 +12347,8 @@ export {
12346
12347
  $s as Card,
12347
12348
  Ns as CardBleed,
12348
12349
  Ws as CardManifest,
12349
- Ft as Checkbox,
12350
+ ct as CardPaddingContext,
12351
+ Pt as Checkbox,
12350
12352
  es as CheckboxManifest,
12351
12353
  Ln as Chip,
12352
12354
  vs as CodeBlock,
@@ -12402,8 +12404,8 @@ export {
12402
12404
  ks as SEGMENTED_CONTROL_MANIFEST,
12403
12405
  Fs as SearchInput,
12404
12406
  Ps as SearchInputManifest,
12405
- Nt as SegmentedControl,
12406
- $t as Select,
12407
+ Wt as SegmentedControl,
12408
+ Nt as Select,
12407
12409
  is as SelectManifest,
12408
12410
  Us as Skeleton,
12409
12411
  Gs as SkeletonManifest,