border-beam 1.2.0 → 1.3.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.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as he, Fragment as Ce, jsx as ze } from "react/jsx-runtime";
2
- import { forwardRef as Ge, useId as Me, useRef as Ie, useState as L, useEffect as P, useCallback as ye, useMemo as ke } from "react";
2
+ import { forwardRef as Ge, useId as Me, useRef as Ie, useState as P, useEffect as B, useCallback as ye, useMemo as ve } from "react";
3
3
  const Le = {
4
4
  sm: {
5
5
  borderRadius: 32,
@@ -547,7 +547,7 @@ const De = {
547
547
  }
548
548
  }
549
549
  };
550
- function U(t, e) {
550
+ function K(t, e) {
551
551
  const a = t.match(/^rgba\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*[\d.]+\s*\)$/);
552
552
  if (a) return `rgba(${a[1]}, ${a[2]}, ${a[3]}, ${e})`;
553
553
  const r = t.match(/^rgb\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)$/);
@@ -560,28 +560,28 @@ function q(t, e) {
560
560
  return r ? `rgba(${r[1]}, ${r[2]}, ${r[3]}, ${e.toFixed(2)})` : t;
561
561
  }
562
562
  function Ue(t, e, a) {
563
- const r = _e(t, e), o = De[t][e ? "dark" : "light"], s = t === "mono", i = s ? 0.14 : 1, c = s ? q(r.primary, 0.14) : r.primary, b = s ? q(r.primary, 0.09) : r.primary, p = s ? q(r.secondary, 0.12) : r.secondary, m = s ? U(r.secondary, 0.06) : U(r.secondary, 0.49), n = o.spikes.map(
564
- ($) => s ? { color1: q($.color1, i), color2: q($.color2, i * 0.7) } : $
565
- ), l = s ? "12px" : "0.8px", f = s ? "14px" : "2px", v = s ? "12px" : "1.2px", d = s ? "10px" : "0.6px", g = s ? "42px" : "92px", W = s ? "38px" : "72px", Y = s ? "40px" : "85px", y = s ? "32px" : "60px", H = s ? "12px" : "1px", x = s ? "rgba(255, 255, 255, 0.5)" : "rgba(255, 255, 255, 1)", w = s ? "rgba(255, 255, 255, 0.45)" : "rgba(255, 255, 255, 0.9)", k = s ? "rgba(255, 255, 255, 0.25)" : "rgba(255, 255, 255, 0.5)", h = s ? "rgba(255, 255, 255, 0.15)" : "rgba(255, 255, 255, 0.3)", X = s ? "rgba(255, 255, 255, 0.06)" : "rgba(255, 255, 255, 0.12)", u = s ? "rgba(255, 255, 255, 0.015)" : "rgba(255, 255, 255, 0.03)";
563
+ const r = _e(t, e), o = De[t][e ? "dark" : "light"], s = t === "mono", i = s ? 0.14 : 1, c = s ? q(r.primary, 0.14) : r.primary, p = s ? q(r.primary, 0.09) : r.primary, b = s ? q(r.secondary, 0.12) : r.secondary, m = s ? K(r.secondary, 0.06) : K(r.secondary, 0.49), n = o.spikes.map(
564
+ (v) => s ? { color1: q(v.color1, i), color2: q(v.color2, i * 0.7) } : v
565
+ ), l = s ? "12px" : "0.8px", d = s ? "14px" : "2px", k = s ? "12px" : "1.2px", f = s ? "10px" : "0.6px", g = s ? "42px" : "92px", W = s ? "38px" : "72px", Y = s ? "40px" : "85px", z = s ? "32px" : "60px", H = s ? "12px" : "1px", $ = s ? "rgba(255, 255, 255, 0.5)" : "rgba(255, 255, 255, 1)", w = s ? "rgba(255, 255, 255, 0.45)" : "rgba(255, 255, 255, 0.9)", y = s ? "rgba(255, 255, 255, 0.25)" : "rgba(255, 255, 255, 0.5)", x = s ? "rgba(255, 255, 255, 0.15)" : "rgba(255, 255, 255, 0.3)", X = s ? "rgba(255, 255, 255, 0.06)" : "rgba(255, 255, 255, 0.12)", u = s ? "rgba(255, 255, 255, 0.015)" : "rgba(255, 255, 255, 0.03)";
566
566
  if (e)
567
- return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${b} 30%, transparent 88%),
568
- radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${p}, ${m} 50%, transparent 95%),
569
- radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${a}))) calc(${W} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
567
+ return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${p} 30%, transparent 88%),
568
+ radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${b}, ${m} 50%, transparent 95%),
569
+ radial-gradient(ellipse calc(${d} * (2 - var(--beam-spike-${a}))) calc(${W} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
570
570
  radial-gradient(ellipse calc(14px * var(--beam-spike2-${a})) calc(28px * var(--beam-h-${a})) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
571
- radial-gradient(ellipse calc(${v} * (2 - var(--beam-spike2-${a}))) calc(${Y} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
571
+ radial-gradient(ellipse calc(${k} * (2 - var(--beam-spike2-${a}))) calc(${Y} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
572
572
  radial-gradient(ellipse calc(7px * var(--beam-spike-${a})) calc(45px * var(--beam-h-${a})) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
573
- radial-gradient(ellipse calc(${d} * (2 - var(--beam-spike-${a}))) calc(${y} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
574
- radial-gradient(ellipse calc(21px * var(--beam-spike-${a})) calc(15px * var(--beam-spike2-${a})) at calc(var(--beam-x-${a}) * 100%) calc(100% + 1px), ${x} 0%, ${w} 20%, ${k} 50%, transparent 100%),
575
- radial-gradient(ellipse calc(42px * var(--beam-w-${a})) calc(40px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%) 100%, ${h} 0%, ${X} 25%, ${u} 55%, transparent 80%)`;
573
+ radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${a}))) calc(${z} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
574
+ radial-gradient(ellipse calc(21px * var(--beam-spike-${a})) calc(15px * var(--beam-spike2-${a})) at calc(var(--beam-x-${a}) * 100%) calc(100% + 1px), ${$} 0%, ${w} 20%, ${y} 50%, transparent 100%),
575
+ radial-gradient(ellipse calc(42px * var(--beam-w-${a})) calc(40px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%) 100%, ${x} 0%, ${X} 25%, ${u} 55%, transparent 80%)`;
576
576
  {
577
- const $ = s ? q(r.primary, 0.11) : U(r.primary, 0.85), F = s ? q(r.secondary, 0.09) : U(r.secondary, 0.7);
578
- return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${$} 30%, transparent 88%),
579
- radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${p}, ${F} 50%, transparent 95%),
580
- radial-gradient(ellipse calc(${f} * (2 - var(--beam-spike-${a}))) calc(${W} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
577
+ const v = s ? q(r.primary, 0.11) : K(r.primary, 0.85), S = s ? q(r.secondary, 0.09) : K(r.secondary, 0.7);
578
+ return `radial-gradient(ellipse calc(${l} * var(--beam-spike-${a})) calc(${g} * var(--beam-h-${a})) at 8% calc(100% - 2px), ${c}, ${v} 30%, transparent 88%),
579
+ radial-gradient(ellipse calc(10px * var(--beam-spike2-${a})) calc(35px * var(--beam-h-${a})) at 22% calc(100% - 4px), ${b}, ${S} 50%, transparent 95%),
580
+ radial-gradient(ellipse calc(${d} * (2 - var(--beam-spike-${a}))) calc(${W} * var(--beam-h-${a})) at 36% calc(100% - 3px), ${n[0].color1}, ${n[0].color2} 40%, transparent 90%),
581
581
  radial-gradient(ellipse calc(14px * var(--beam-spike2-${a})) calc(28px * var(--beam-h-${a})) at 50% calc(100% - 2px), ${n[1].color1}, ${n[1].color2} 55%, transparent 96%),
582
- radial-gradient(ellipse calc(${v} * (2 - var(--beam-spike2-${a}))) calc(${Y} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
582
+ radial-gradient(ellipse calc(${k} * (2 - var(--beam-spike2-${a}))) calc(${Y} * var(--beam-h-${a})) at 64% calc(100% - 4px), ${n[2].color1}, ${n[2].color2} 35%, transparent 89%),
583
583
  radial-gradient(ellipse calc(7px * var(--beam-spike-${a})) calc(45px * var(--beam-h-${a})) at 78% calc(100% - 2px), ${n[3].color1}, ${n[3].color2} 48%, transparent 94%),
584
- radial-gradient(ellipse calc(${H} * (2 - var(--beam-spike-${a}))) calc(${y} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
584
+ radial-gradient(ellipse calc(${H} * (2 - var(--beam-spike-${a}))) calc(${z} * var(--beam-h-${a})) at 92% calc(100% - 3px), ${n[4].color1}, ${n[4].color2} 42%, transparent 91%),
585
585
  radial-gradient(ellipse calc(50px * var(--beam-w-${a})) calc(32px * var(--beam-h-${a})) at calc(var(--beam-x-${a}) * 100%) calc(100%), rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.03) 60%, transparent 85%)`;
586
586
  }
587
587
  }
@@ -613,7 +613,7 @@ const Xe = [
613
613
  { ci: 5, region: 3, quad: "br", w: 102, h: 31 },
614
614
  { ci: 6, region: 1, quad: "tr", w: 89, h: 38 },
615
615
  { ci: 8, region: 3, quad: "tr", w: 62, h: 58 }
616
- ], ve = [
616
+ ], ke = [
617
617
  { ci: 0, region: 1, quad: "tl", w: 80, h: 19, x: "27%", y: "0%" },
618
618
  { ci: 6, region: 2, quad: "tr", w: 74, h: 11, x: "73%", y: "-1%" },
619
619
  { ci: 7, region: 3, quad: "tr", w: 15, h: 44, x: "100%", y: "33%" },
@@ -635,48 +635,48 @@ function Je(t, e, a) {
635
635
  const r = t.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);
636
636
  return `rgba(${r ? `${r[1]}, ${r[2]}, ${r[3]}` : "255, 255, 255"}, var(--bop-${e}-${a}))`;
637
637
  }
638
- function pe(t, e, a, r, o, s, i, c) {
639
- return `radial-gradient(ellipse calc(${e}px * var(--bw${r}-${c}) * var(--pulse-glow-sx, 1)) calc(${a}px * var(--bh${r}-${c}) * var(--bgh-${c}) * var(--pulse-glow-sy, 1)) at calc(${s} + var(--bx${r}-${c})) calc(${i} + var(--by${r}-${c})), ${Je(t, o, c)}, transparent)`;
638
+ function be(t, e, a, r, o, s, i, c) {
639
+ return `radial-gradient(ellipse calc(${e}px * var(--bw${r}-${c}) * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${a}px * var(--bh${r}-${c}) * var(--bgh-${c}) * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at calc(${s} + var(--bx${r}-${c})) calc(${i} + var(--by${r}-${c})), ${Je(t, o, c)}, transparent)`;
640
640
  }
641
641
  function ea(t, e) {
642
642
  return C[t].border.map((a, r) => {
643
- const { region: o, quad: s } = Xe[r], [i, c] = a.pos.split(" "), [b, p] = a.size.split(" ").map(parseFloat);
644
- return pe(a.color, b, p, o, s, i, c, e);
643
+ const { region: o, quad: s } = Xe[r], [i, c] = a.pos.split(" "), [p, b] = a.size.split(" ").map(parseFloat);
644
+ return be(a.color, p, b, o, s, i, c, e);
645
645
  }).join(`,
646
646
  `);
647
647
  }
648
648
  function aa(t, e, a) {
649
- const o = C[t].border.map((p, m) => {
650
- const { region: n, quad: l } = Xe[m], [f, v] = p.pos.split(" "), [d, g] = Ke[m];
651
- return pe(p.color, d, g, n, l, f, v, e);
652
- }), s = a ? "255, 255, 255" : "0, 0, 0", i = a ? 0.18 : 0.08, b = [
649
+ const o = C[t].border.map((b, m) => {
650
+ const { region: n, quad: l } = Xe[m], [d, k] = b.pos.split(" "), [f, g] = Ke[m];
651
+ return be(b.color, f, g, n, l, d, k, e);
652
+ }), s = a ? "255, 255, 255" : "0, 0, 0", i = a ? 0.18 : 0.08, p = [
653
653
  ["0%", "0%", "tl"],
654
654
  ["100%", "0%", "tr"],
655
655
  ["0%", "100%", "bl"],
656
656
  ["100%", "100%", "br"]
657
657
  ].map(
658
- ([p, m, n]) => `radial-gradient(ellipse 60px 60px at ${p} ${m}, rgba(${s}, calc(${i} * var(--bop-${n}-${e}))), transparent 70%)`
658
+ ([b, m, n]) => `radial-gradient(ellipse 60px 60px at ${b} ${m}, rgba(${s}, calc(${i} * var(--bop-${n}-${e}))), transparent 70%)`
659
659
  );
660
- return [...o, ...b].join(`,
660
+ return [...o, ...p].join(`,
661
661
  `);
662
662
  }
663
663
  function we(t, e, a) {
664
664
  const r = C[e].border;
665
665
  return t.map((o) => {
666
666
  const s = r[o.ci], [i, c] = s.pos.split(" ");
667
- return pe(s.color, o.w, o.h, o.region, o.quad, o.x ?? i, o.y ?? c, a);
667
+ return be(s.color, o.w, o.h, o.region, o.quad, o.x ?? i, o.y ?? c, a);
668
668
  }).join(`,
669
669
  `);
670
670
  }
671
671
  function Ye(t, e, a) {
672
672
  const r = C[e].border, o = +a.toFixed(3);
673
673
  return t.map((s) => {
674
- const i = r[s.ci], [c, b] = i.pos.split(" "), p = s.x ?? c, m = s.y ?? b, n = i.color.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/), l = n ? `${n[1]}, ${n[2]}, ${n[3]}` : "255, 255, 255";
675
- return `radial-gradient(ellipse calc(${s.w}px * var(--pulse-glow-sx, 1)) calc(${s.h}px * var(--pulse-glow-sy, 1)) at ${p} ${m}, rgba(${l}, ${o}), transparent)`;
674
+ const i = r[s.ci], [c, p] = i.pos.split(" "), b = s.x ?? c, m = s.y ?? p, n = i.color.match(/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/), l = n ? `${n[1]}, ${n[2]}, ${n[3]}` : "255, 255, 255";
675
+ return `radial-gradient(ellipse calc(${s.w}px * var(--pulse-glow-sx, 1) * var(--pulse-glow-boost, 1)) calc(${s.h}px * var(--pulse-glow-sy, 1) * var(--pulse-glow-boost, 1)) at ${b} ${m}, rgba(${l}, ${o}), transparent)`;
676
676
  }).join(`,
677
677
  `);
678
678
  }
679
- function A(t) {
679
+ function _(t) {
680
680
  return `
681
681
  [data-beam="${t}"][data-paused],
682
682
  [data-beam="${t}"][data-paused]::after,
@@ -719,7 +719,7 @@ ${o}
719
719
  inherits: true;
720
720
  }`;
721
721
  }
722
- function be(t, e, a) {
722
+ function pe(t, e, a) {
723
723
  const r = e === "dark", o = a / 2.3;
724
724
  return t === "pulse-inner" ? {
725
725
  sp: 0.28,
@@ -744,7 +744,7 @@ function be(t, e, a) {
744
744
  };
745
745
  }
746
746
  function ra(t, e) {
747
- const { sp: a, dr: r, op: o, gh: s, bs: i, ss: c, ghs: b } = e;
747
+ const { sp: a, dr: r, op: o, gh: s, bs: i, ss: c, ghs: p } = e;
748
748
  return [
749
749
  { prop: `--bw1-${t}`, a: 1 - a, b: 1 + a * 1.1, period: c * 0.9, delay: 0, unit: "" },
750
750
  { prop: `--bh1-${t}`, a: 1 + a * 0.9, b: 1 - a * 0.85, period: c * 1.26, delay: 0, unit: "" },
@@ -758,7 +758,7 @@ function ra(t, e) {
758
758
  { prop: `--bh3-${t}`, a: 1 + a * 0.75, b: 1 - a, period: c * 1.4, delay: 0, unit: "" },
759
759
  { prop: `--bx3-${t}`, a: -r * 0.6, b: r, period: i * 1.45, delay: 0, unit: "px" },
760
760
  { prop: `--by3-${t}`, a: -r * 0.85, b: r * 0.45, period: i * 1.45, delay: 0, unit: "px" },
761
- { prop: `--bgh-${t}`, a: 1 - s, b: 1 + s, period: b, delay: 0, unit: "" },
761
+ { prop: `--bgh-${t}`, a: 1 - s, b: 1 + s, period: p, delay: 0, unit: "" },
762
762
  { prop: `--bop-tl-${t}`, a: 1 - o, b: 1, period: i, delay: 0, unit: "" },
763
763
  { prop: `--bop-tr-${t}`, a: 1 - o, b: 1, period: i * 1.32, delay: i * 0.28, unit: "" },
764
764
  { prop: `--bop-bl-${t}`, a: 1 - o, b: 1, period: i * 0.84, delay: i * 0.55, unit: "" },
@@ -767,7 +767,7 @@ function ra(t, e) {
767
767
  }
768
768
  function ta(t, e, a, r, o, s) {
769
769
  if (t !== "pulse-inner" && t !== "pulse-outside") return null;
770
- const i = be(t, e, a);
770
+ const i = pe(t, e, a);
771
771
  return {
772
772
  oscillators: ra(s, i),
773
773
  // Pulse colors continuously rotate a full hue circle so the palette is never
@@ -775,12 +775,12 @@ function ta(t, e, a, r, o, s) {
775
775
  hue: o ? null : { prop: `--beam-hue-${s}`, range: 360, period: i.huePeriod, continuous: !0 }
776
776
  };
777
777
  }
778
- function K(t, e, a) {
778
+ function Q(t, e, a) {
779
779
  return ` animation: ${e}-${t} ${a}s ease forwards;`;
780
780
  }
781
781
  function oa(t) {
782
782
  const { size: e } = t;
783
- return e === "line" ? pa(t) : e === "sm" ? sa(t) : e === "pulse-inner" ? na(t) : e === "pulse-outside" ? ca(t) : ia(t);
783
+ return e === "line" ? ba(t) : e === "sm" ? sa(t) : e === "pulse-inner" ? na(t) : e === "pulse-outside" ? ca(t) : ia(t);
784
784
  }
785
785
  function sa(t) {
786
786
  const {
@@ -791,19 +791,19 @@ function sa(t) {
791
791
  strokeOpacity: s,
792
792
  innerOpacity: i,
793
793
  bloomOpacity: c,
794
- innerShadow: b,
795
- colorVariant: p,
794
+ innerShadow: p,
795
+ colorVariant: b,
796
796
  staticColors: m,
797
797
  brightness: n,
798
798
  saturation: l,
799
- hueRange: f,
800
- theme: v
801
- } = t, d = Math.max(0, a - r), g = p === "mono" ? 0.5 : 1, W = s * g, Y = i * g, y = c * g, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, x = m ? "" : `
799
+ hueRange: d,
800
+ theme: k
801
+ } = t, f = Math.max(0, a - r), g = b === "mono" ? 0.5 : 1, W = s * g, Y = i * g, z = c * g, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, $ = m ? "" : `
802
802
  @keyframes beam-hue-shift-${e} {
803
- 0% { filter: hue-rotate(-${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
804
- 50% { filter: hue-rotate(${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
805
- 100% { filter: hue-rotate(-${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
806
- }`, w = v === "dark", k = w ? `conic-gradient(
803
+ 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
804
+ 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
805
+ 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
806
+ }`, w = k === "dark", y = w ? `conic-gradient(
807
807
  from var(--beam-angle-${e}),
808
808
  transparent 0%, transparent 54%,
809
809
  rgba(255, 255, 255, 0.1) 57%,
@@ -825,7 +825,7 @@ function sa(t) {
825
825
  rgba(0, 0, 0, 0.2) 72%,
826
826
  rgba(0, 0, 0, 0.08) 75%,
827
827
  transparent 78%, transparent 100%
828
- )`, h = Pe(p), X = Be(p), u = w ? `conic-gradient(
828
+ )`, x = Pe(b), X = Be(b), u = w ? `conic-gradient(
829
829
  from var(--beam-angle-${e}),
830
830
  transparent 0%, transparent 58%,
831
831
  rgba(255, 255, 255, 0.03) 62%,
@@ -853,7 +853,7 @@ function sa(t) {
853
853
  rgba(0, 0, 0, 0.08) 75%,
854
854
  rgba(0, 0, 0, 0.02) 78%,
855
855
  transparent 82%
856
- )`, $ = `conic-gradient(
856
+ )`, v = `conic-gradient(
857
857
  from var(--beam-angle-${e}),
858
858
  transparent 0%, transparent 22%,
859
859
  rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0.4) 36%,
@@ -897,10 +897,10 @@ function sa(t) {
897
897
  content: "";
898
898
  position: absolute;
899
899
  inset: 0;
900
- border-radius: ${d}px;
900
+ border-radius: ${f}px;
901
901
  padding: ${r}px;
902
902
  clip-path: inset(0 round ${a}px);
903
- background: ${k},${h};
903
+ background: ${y},${x};
904
904
  -webkit-mask:
905
905
  conic-gradient(
906
906
  from var(--beam-angle-${e}),
@@ -927,7 +927,7 @@ function sa(t) {
927
927
  mask-composite: intersect, exclude;
928
928
  pointer-events: none;
929
929
  z-index: 2;
930
- opacity: calc(var(--beam-opacity-${e}) * ${W.toFixed(2)} * var(--beam-strength, 1));
930
+ opacity: calc(var(--beam-opacity-${e}) * ${W.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
931
931
  ${H}
932
932
  }
933
933
 
@@ -939,14 +939,14 @@ function sa(t) {
939
939
  border-radius: ${a}px;
940
940
  clip-path: inset(0 round ${a}px);
941
941
  background: ${X};
942
- box-shadow: inset 0 0 5px 1px ${b};
943
- -webkit-mask-image: ${$};
942
+ box-shadow: inset 0 0 5px 1px ${p};
943
+ -webkit-mask-image: ${v};
944
944
  -webkit-mask-composite: source-over;
945
- mask-image: ${$};
945
+ mask-image: ${v};
946
946
  mask-composite: add;
947
947
  pointer-events: none;
948
948
  z-index: 1;
949
- opacity: calc(var(--beam-opacity-${e}) * ${Y.toFixed(2)} * var(--beam-strength, 1));
949
+ opacity: calc(var(--beam-opacity-${e}) * ${Y.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
950
950
  ${H}
951
951
  }
952
952
 
@@ -954,7 +954,7 @@ function sa(t) {
954
954
  display: none;
955
955
  position: absolute;
956
956
  inset: 0;
957
- border-radius: ${d}px;
957
+ border-radius: ${f}px;
958
958
  clip-path: inset(0 round ${a}px);
959
959
  background: ${u};
960
960
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -971,7 +971,7 @@ function sa(t) {
971
971
  [data-beam="${e}"][data-active] [data-beam-bloom],
972
972
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
973
973
  display: block;
974
- opacity: calc(var(--beam-opacity-${e}) * ${y.toFixed(2)} * var(--beam-strength, 1));
974
+ opacity: calc(var(--beam-opacity-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
975
975
  }
976
976
 
977
977
  @keyframes beam-spin-${e} {
@@ -986,8 +986,8 @@ function sa(t) {
986
986
  from { --beam-opacity-${e}: 1; }
987
987
  to { --beam-opacity-${e}: 0; }
988
988
  }
989
- ${x}
990
- ${A(e)}
989
+ ${$}
990
+ ${_(e)}
991
991
  `;
992
992
  }
993
993
  function ia(t) {
@@ -999,19 +999,19 @@ function ia(t) {
999
999
  strokeOpacity: s,
1000
1000
  innerOpacity: i,
1001
1001
  bloomOpacity: c,
1002
- innerShadow: b,
1003
- colorVariant: p,
1002
+ innerShadow: p,
1003
+ colorVariant: b,
1004
1004
  staticColors: m,
1005
1005
  brightness: n,
1006
1006
  saturation: l,
1007
- hueRange: f,
1008
- theme: v
1009
- } = t, d = Math.max(0, a - r), g = p === "mono" ? 0.5 : 1, W = s * g, Y = i * g, y = c * g, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, x = m ? "" : `
1007
+ hueRange: d,
1008
+ theme: k
1009
+ } = t, f = Math.max(0, a - r), g = b === "mono" ? 0.5 : 1, W = s * g, Y = i * g, z = c * g, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, $ = m ? "" : `
1010
1010
  @keyframes beam-hue-shift-${e} {
1011
- 0% { filter: hue-rotate(-${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1012
- 50% { filter: hue-rotate(${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1013
- 100% { filter: hue-rotate(-${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1014
- }`, w = v === "dark", k = w ? `conic-gradient(
1011
+ 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1012
+ 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1013
+ 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1014
+ }`, w = k === "dark", y = w ? `conic-gradient(
1015
1015
  from var(--beam-angle-${e}),
1016
1016
  transparent 0%, transparent 54%,
1017
1017
  rgba(255, 255, 255, 0.1) 57%,
@@ -1033,7 +1033,7 @@ function ia(t) {
1033
1033
  rgba(0, 0, 0, 0.2) 72%,
1034
1034
  rgba(0, 0, 0, 0.08) 75%,
1035
1035
  transparent 78%, transparent 100%
1036
- )`, h = Ee(p), X = Ae(p), u = w ? `conic-gradient(
1036
+ )`, x = Ee(b), X = Ae(b), u = w ? `conic-gradient(
1037
1037
  from var(--beam-angle-${e}),
1038
1038
  transparent 0%, transparent 58%,
1039
1039
  rgba(255, 255, 255, 0.03) 62%,
@@ -1098,10 +1098,10 @@ function ia(t) {
1098
1098
  content: "";
1099
1099
  position: absolute;
1100
1100
  inset: 0;
1101
- border-radius: ${d}px;
1101
+ border-radius: ${f}px;
1102
1102
  padding: ${r}px;
1103
1103
  clip-path: inset(0 round ${a}px);
1104
- background: ${k},${h};
1104
+ background: ${y},${x};
1105
1105
  -webkit-mask:
1106
1106
  conic-gradient(
1107
1107
  from var(--beam-angle-${e}),
@@ -1128,7 +1128,7 @@ function ia(t) {
1128
1128
  mask-composite: intersect, exclude;
1129
1129
  pointer-events: none;
1130
1130
  z-index: 2;
1131
- opacity: calc(var(--beam-opacity-${e}) * ${W.toFixed(2)} * var(--beam-strength, 1));
1131
+ opacity: calc(var(--beam-opacity-${e}) * ${W.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1132
1132
  ${H}
1133
1133
  }
1134
1134
 
@@ -1139,7 +1139,7 @@ function ia(t) {
1139
1139
  inset: 0;
1140
1140
  border-radius: ${a}px;
1141
1141
  background: ${X};
1142
- box-shadow: inset 0 0 9px 1px ${b};
1142
+ box-shadow: inset 0 0 9px 1px ${p};
1143
1143
  -webkit-mask-image:
1144
1144
  conic-gradient(
1145
1145
  from var(--beam-angle-${e}),
@@ -1166,7 +1166,7 @@ function ia(t) {
1166
1166
  mask-composite: intersect, add;
1167
1167
  pointer-events: none;
1168
1168
  z-index: 1;
1169
- opacity: calc(var(--beam-opacity-${e}) * ${Y.toFixed(2)} * var(--beam-strength, 1));
1169
+ opacity: calc(var(--beam-opacity-${e}) * ${Y.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1170
1170
  clip-path: inset(0 round ${a}px);
1171
1171
  ${H}
1172
1172
  }
@@ -1175,7 +1175,7 @@ function ia(t) {
1175
1175
  display: none;
1176
1176
  position: absolute;
1177
1177
  inset: 0;
1178
- border-radius: ${d}px;
1178
+ border-radius: ${f}px;
1179
1179
  clip-path: inset(0 round ${a}px);
1180
1180
  background: ${u};
1181
1181
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1192,7 +1192,7 @@ function ia(t) {
1192
1192
  [data-beam="${e}"][data-active] [data-beam-bloom],
1193
1193
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1194
1194
  display: block;
1195
- opacity: calc(var(--beam-opacity-${e}) * ${y.toFixed(2)} * var(--beam-strength, 1));
1195
+ opacity: calc(var(--beam-opacity-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1196
1196
  }
1197
1197
 
1198
1198
  @keyframes beam-spin-${e} {
@@ -1207,8 +1207,8 @@ function ia(t) {
1207
1207
  from { --beam-opacity-${e}: 1; }
1208
1208
  to { --beam-opacity-${e}: 0; }
1209
1209
  }
1210
- ${x}
1211
- ${A(e)}
1210
+ ${$}
1211
+ ${_(e)}
1212
1212
  `;
1213
1213
  }
1214
1214
  function na(t) {
@@ -1220,13 +1220,13 @@ function na(t) {
1220
1220
  strokeOpacity: s,
1221
1221
  innerOpacity: i,
1222
1222
  bloomOpacity: c,
1223
- colorVariant: b,
1224
- staticColors: p,
1223
+ colorVariant: p,
1224
+ staticColors: b,
1225
1225
  brightness: m,
1226
1226
  saturation: n,
1227
1227
  hueRange: l,
1228
- theme: f
1229
- } = t, v = f === "dark", d = b === "mono" ? 0.5 : 1, g = (s * d).toFixed(2), W = (i * d).toFixed(2), Y = (c * d).toFixed(2), { op: y } = be("pulse-inner", f, o), H = 8, x = m.toFixed(2), w = n.toFixed(2), k = p ? `filter: brightness(${x}) saturate(${w});` : `filter: hue-rotate(var(--beam-hue-${e})) brightness(${x}) saturate(${w});`, h = p ? `filter: blur(${H}px) brightness(${x}) saturate(${w});` : `filter: blur(${H}px) hue-rotate(var(--beam-hue-${e})) brightness(${x}) saturate(${w});`, X = ea(b, e), u = aa(b, e, v), $ = Ye(Qe, b, 1 - y * 0.5);
1228
+ theme: d
1229
+ } = t, k = d === "dark", f = p === "mono" ? 0.5 : 1, g = (s * f).toFixed(2), W = (i * f).toFixed(2), Y = (c * f).toFixed(2), { op: z } = pe("pulse-inner", d, o), H = 8, $ = m.toFixed(2), w = n.toFixed(2), y = b ? `filter: brightness(${$}) saturate(${w});` : `filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${$}) saturate(${w});`, x = b ? `filter: blur(${H}px) brightness(${$}) saturate(${w});` : `filter: blur(${H}px) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${$}) saturate(${w});`, X = ea(p, e), u = aa(p, e, k), v = Ye(Qe, p, 1 - z * 0.5);
1230
1230
  return `
1231
1231
  ${Oe(e)}
1232
1232
 
@@ -1238,11 +1238,11 @@ ${Oe(e)}
1238
1238
  }
1239
1239
 
1240
1240
  [data-beam="${e}"][data-active] {
1241
- ${K(e, "beam-fade-in", 0.6)}
1241
+ ${Q(e, "beam-fade-in", 0.6)}
1242
1242
  }
1243
1243
 
1244
1244
  [data-beam="${e}"][data-fading] {
1245
- ${K(e, "beam-fade-out", 0.5)}
1245
+ ${Q(e, "beam-fade-out", 0.5)}
1246
1246
  }
1247
1247
 
1248
1248
  [data-beam="${e}"][data-active]::after,
@@ -1261,8 +1261,8 @@ ${K(e, "beam-fade-out", 0.5)}
1261
1261
  pointer-events: none;
1262
1262
  z-index: 2;
1263
1263
  will-change: opacity, filter;
1264
- opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-strength, 1));
1265
- ${k}
1264
+ opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1265
+ ${y}
1266
1266
  }
1267
1267
 
1268
1268
  [data-beam="${e}"][data-active]::before,
@@ -1284,8 +1284,8 @@ ${K(e, "beam-fade-out", 0.5)}
1284
1284
  pointer-events: none;
1285
1285
  z-index: 1;
1286
1286
  will-change: opacity, filter;
1287
- opacity: calc(var(--beam-opacity-${e}) * ${W} * var(--beam-strength, 1));
1288
- ${k}
1287
+ opacity: calc(var(--beam-opacity-${e}) * ${W} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1288
+ ${y}
1289
1289
  }
1290
1290
 
1291
1291
  [data-beam="${e}"] [data-beam-bloom] {
@@ -1294,7 +1294,7 @@ ${K(e, "beam-fade-out", 0.5)}
1294
1294
  inset: 0;
1295
1295
  border-radius: ${a}px;
1296
1296
  clip-path: inset(0 round ${a}px);
1297
- background: ${$};
1297
+ background: ${v};
1298
1298
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1299
1299
  -webkit-mask-composite: xor;
1300
1300
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1309,13 +1309,13 @@ ${K(e, "beam-fade-out", 0.5)}
1309
1309
  [data-beam="${e}"][data-active] [data-beam-bloom],
1310
1310
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1311
1311
  display: block;
1312
- opacity: calc(var(--beam-opacity-${e}) * ${Y} * var(--beam-strength, 1));
1313
- ${h}
1312
+ opacity: calc(var(--beam-opacity-${e}) * ${Y} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1313
+ ${x}
1314
1314
  }
1315
1315
 
1316
1316
  @keyframes beam-fade-in-${e} { to { --beam-opacity-${e}: 1; } }
1317
1317
  @keyframes beam-fade-out-${e} { from { --beam-opacity-${e}: 1; } to { --beam-opacity-${e}: 0; } }
1318
- ${A(e)}
1318
+ ${_(e)}
1319
1319
 
1320
1320
  @media (prefers-reduced-motion: reduce) {
1321
1321
  [data-beam="${e}"][data-active],
@@ -1340,14 +1340,14 @@ function ca(t) {
1340
1340
  innerOpacity: s,
1341
1341
  bloomOpacity: i,
1342
1342
  colorVariant: c,
1343
- staticColors: b,
1344
- brightness: p,
1343
+ staticColors: p,
1344
+ brightness: b,
1345
1345
  saturation: m,
1346
1346
  hueRange: n,
1347
1347
  theme: l,
1348
- hairlineOpacity: f = 0
1349
- } = t, v = l === "dark", d = c === "mono" ? 0.5 : 1, g = (o * d).toFixed(2), W = (s * d).toFixed(2), Y = (i * d).toFixed(2), y = v ? "70, 70, 70" : "0, 0, 0", H = f.toFixed(2), x = `linear-gradient(rgba(${y}, ${H}), rgba(${y}, ${H}))`, { op: w } = be("pulse-outside", l, r), k = 0.95, h = 0.9, X = v ? 3 : 6, u = v ? 22.5 : 15, $ = p.toFixed(2), F = m.toFixed(2), Z = b ? `filter: brightness(${$}) saturate(${F});` : `filter: hue-rotate(var(--beam-hue-${e})) brightness(${$}) saturate(${F});`, J = b ? `filter: blur(${X}px) brightness(${$}) saturate(${F});` : `filter: blur(${X}px) hue-rotate(var(--beam-hue-${e})) brightness(${$}) saturate(${F});`, ee = b ? `filter: blur(${u}px) brightness(${$}) saturate(${F});` : `filter: blur(${u}px) hue-rotate(var(--beam-hue-${e})) brightness(${$}) saturate(${F});`, E = we(ve, c, e), _ = we(ve, c, e), ae = Ye(Ze, c, 1 - w * 0.5), R = f > 0 ? `${E},
1350
- ${x}` : E;
1348
+ hairlineOpacity: d = 0
1349
+ } = t, k = l === "dark", f = c === "mono" ? 0.5 : 1, g = (o * f).toFixed(2), W = (s * f).toFixed(2), Y = (i * f).toFixed(2), z = k ? "70, 70, 70" : "0, 0, 0", H = d.toFixed(2), $ = `linear-gradient(rgba(${z}, ${H}), rgba(${z}, ${H}))`, { op: w } = pe("pulse-outside", l, r), y = 0.95, x = 0.9, X = k ? 3 : 6, u = k ? 22.5 : 15, v = b.toFixed(2), S = m.toFixed(2), J = p ? `filter: brightness(${v}) saturate(${S});` : `filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) brightness(${v}) saturate(${S});`, G = `brightness(var(--beam-glow-brightness, ${v})) saturate(var(--beam-glow-saturate, ${S}))`, ee = p ? `filter: blur(var(--beam-core-blur, ${X}px)) ${G};` : `filter: blur(var(--beam-core-blur, ${X}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${G};`, j = p ? `filter: blur(var(--beam-bloom-blur, ${u}px)) ${G};` : `filter: blur(var(--beam-bloom-blur, ${u}px)) hue-rotate(calc(var(--beam-hue-base, 0deg) + var(--beam-hue-${e}))) ${G};`, A = we(ke, c, e), ae = we(ke, c, e), R = Ye(Ze, c, 1 - w * 0.5), O = d > 0 ? `${A},
1350
+ ${$}` : A;
1351
1351
  return `
1352
1352
  ${Oe(e)}
1353
1353
 
@@ -1359,13 +1359,13 @@ ${Oe(e)}
1359
1359
  }
1360
1360
 
1361
1361
  [data-beam="${e}"][data-active] {
1362
- ${K(e, "beam-fade-in", 0.6)}
1362
+ ${Q(e, "beam-fade-in", 0.6)}
1363
1363
  }
1364
1364
 
1365
1365
  [data-beam="${e}"][data-fading] {
1366
- ${K(e, "beam-fade-out", 0.5)}
1366
+ ${Q(e, "beam-fade-out", 0.5)}
1367
1367
  }
1368
- ${f > 0 ? `
1368
+ ${d > 0 ? `
1369
1369
  /* Idle hairline — painted above the (opaque) child in the inner 1px edge ring so
1370
1370
  it overlaps a standard inset component border exactly. */
1371
1371
  [data-beam="${e}"]::after {
@@ -1375,7 +1375,7 @@ ${f > 0 ? `
1375
1375
  border-radius: ${a}px;
1376
1376
  padding: 1px;
1377
1377
  clip-path: inset(0 round ${a}px);
1378
- background: ${x};
1378
+ background: ${$};
1379
1379
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1380
1380
  -webkit-mask-composite: xor;
1381
1381
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1392,7 +1392,7 @@ ${f > 0 ? `
1392
1392
  border-radius: ${a}px;
1393
1393
  padding: 1px;
1394
1394
  clip-path: inset(0 round ${a}px);
1395
- background: ${R};
1395
+ background: ${O};
1396
1396
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
1397
1397
  -webkit-mask-composite: xor;
1398
1398
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
@@ -1400,8 +1400,8 @@ ${f > 0 ? `
1400
1400
  pointer-events: none;
1401
1401
  z-index: 2;
1402
1402
  will-change: opacity, filter;
1403
- opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-strength, 1));
1404
- ${Z}
1403
+ opacity: calc(var(--beam-opacity-${e}) * ${g} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1404
+ ${J}
1405
1405
  }
1406
1406
 
1407
1407
  [data-beam="${e}"][data-active]::before,
@@ -1411,12 +1411,12 @@ ${f > 0 ? `
1411
1411
  inset: -10px;
1412
1412
  z-index: -1;
1413
1413
  border-radius: ${a + 10}px;
1414
- background: ${_};
1415
- transform: scale(${k}, ${h});
1414
+ background: ${ae};
1415
+ transform: scale(${y}, ${x});
1416
1416
  pointer-events: none;
1417
1417
  will-change: opacity, filter;
1418
- opacity: calc(var(--beam-opacity-${e}) * ${W} * var(--beam-strength, 1));
1419
- ${J}
1418
+ opacity: calc(var(--beam-opacity-${e}) * ${W} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1419
+ ${ee}
1420
1420
  }
1421
1421
 
1422
1422
  [data-beam="${e}"] [data-beam-bloom] {
@@ -1425,8 +1425,8 @@ ${f > 0 ? `
1425
1425
  inset: -30px;
1426
1426
  z-index: -1;
1427
1427
  border-radius: ${a + 30}px;
1428
- background: ${ae};
1429
- transform: scale(${k}, ${h});
1428
+ background: ${R};
1429
+ transform: scale(${y}, ${x});
1430
1430
  pointer-events: none;
1431
1431
  will-change: transform;
1432
1432
  opacity: 0;
@@ -1435,13 +1435,13 @@ ${f > 0 ? `
1435
1435
  [data-beam="${e}"][data-active] [data-beam-bloom],
1436
1436
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1437
1437
  display: block;
1438
- opacity: calc(var(--beam-opacity-${e}) * ${Y} * var(--beam-strength, 1));
1439
- ${ee}
1438
+ opacity: calc(var(--beam-opacity-${e}) * ${Y} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1439
+ ${j}
1440
1440
  }
1441
1441
 
1442
1442
  @keyframes beam-fade-in-${e} { to { --beam-opacity-${e}: 1; } }
1443
1443
  @keyframes beam-fade-out-${e} { from { --beam-opacity-${e}: 1; } to { --beam-opacity-${e}: 0; } }
1444
- ${A(e)}
1444
+ ${_(e)}
1445
1445
 
1446
1446
  @media (prefers-reduced-motion: reduce) {
1447
1447
  [data-beam="${e}"][data-active],
@@ -1457,7 +1457,7 @@ ${A(e)}
1457
1457
  }
1458
1458
  `;
1459
1459
  }
1460
- function pa(t) {
1460
+ function ba(t) {
1461
1461
  const {
1462
1462
  id: e,
1463
1463
  borderRadius: a,
@@ -1466,25 +1466,25 @@ function pa(t) {
1466
1466
  strokeOpacity: s,
1467
1467
  innerOpacity: i,
1468
1468
  bloomOpacity: c,
1469
- innerShadow: b,
1470
- colorVariant: p,
1469
+ innerShadow: p,
1470
+ colorVariant: b,
1471
1471
  staticColors: m,
1472
1472
  brightness: n,
1473
1473
  saturation: l,
1474
- hueRange: f,
1475
- theme: v
1476
- } = t, d = Math.max(0, a - r), g = v === "dark", W = s, Y = i, y = c, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, x = m ? "" : `animation: beam-hue-shift-bloom-${e} 8s ease-in-out infinite;`, w = m ? "" : `
1474
+ hueRange: d,
1475
+ theme: k
1476
+ } = t, f = Math.max(0, a - r), g = k === "dark", W = s, Y = i, z = c, H = m ? "" : `animation: beam-hue-shift-${e} 12s ease-in-out infinite;`, $ = m ? "" : `animation: beam-hue-shift-bloom-${e} 8s ease-in-out infinite;`, w = m ? "" : `
1477
1477
  @keyframes beam-hue-shift-${e} {
1478
- 0% { filter: hue-rotate(-${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1479
- 50% { filter: hue-rotate(${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1480
- 100% { filter: hue-rotate(-${f}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1478
+ 0% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1479
+ 50% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1480
+ 100% { filter: hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1481
1481
  }
1482
1482
 
1483
1483
  @keyframes beam-hue-shift-bloom-${e} {
1484
- 0% { filter: blur(8px) hue-rotate(-${f + 10}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1485
- 50% { filter: blur(8px) hue-rotate(${f + 10}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1486
- 100% { filter: blur(8px) hue-rotate(-${f + 10}deg) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1487
- }`, k = g ? `radial-gradient(
1484
+ 0% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1485
+ 50% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) + ${d + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1486
+ 100% { filter: blur(8px) hue-rotate(calc(var(--beam-hue-base, 0deg) - ${d + 10}deg)) brightness(${n.toFixed(2)}) saturate(${l.toFixed(2)}); }
1487
+ }`, y = g ? `radial-gradient(
1488
1488
  ellipse calc(24px * var(--beam-w-${e})) calc(28px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) calc(100% + 2px),
1489
1489
  rgba(255, 255, 255, 0.38) 0%,
1490
1490
  rgba(255, 255, 255, 0.12) 30%,
@@ -1494,7 +1494,7 @@ function pa(t) {
1494
1494
  rgba(0, 0, 0, 0.6) 0%,
1495
1495
  rgba(0, 0, 0, 0.25) 35%,
1496
1496
  transparent 70%
1497
- )`, h = Te(p, g, e), X = Ve(p, e), u = Ue(p, g, e), $ = p === "mono" ? "filter: blur(6px);" : "";
1497
+ )`, x = Te(b, g, e), X = Ve(b, e), u = Ue(b, g, e), v = b === "mono" ? "filter: blur(6px);" : "";
1498
1498
  return `
1499
1499
  @property --beam-x-${e} {
1500
1500
  syntax: "<number>";
@@ -1569,10 +1569,10 @@ function pa(t) {
1569
1569
  content: "";
1570
1570
  position: absolute;
1571
1571
  inset: 0;
1572
- border-radius: ${d}px;
1572
+ border-radius: ${f}px;
1573
1573
  padding: ${r}px;
1574
1574
  clip-path: inset(0 round ${a}px);
1575
- background: ${k}, ${h};
1575
+ background: ${y}, ${x};
1576
1576
  -webkit-mask:
1577
1577
  radial-gradient(
1578
1578
  ellipse calc(78px * var(--beam-w-${e})) calc(60px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
@@ -1591,7 +1591,7 @@ function pa(t) {
1591
1591
  mask-composite: intersect, exclude;
1592
1592
  pointer-events: none;
1593
1593
  z-index: 2;
1594
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${W.toFixed(2)} * var(--beam-strength, 1));
1594
+ opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${W.toFixed(2)} * var(--beam-stroke-opacity, 1) * var(--beam-strength, 1));
1595
1595
  ${H}
1596
1596
  }
1597
1597
 
@@ -1602,7 +1602,7 @@ function pa(t) {
1602
1602
  inset: 0;
1603
1603
  border-radius: ${a}px;
1604
1604
  background: ${X};
1605
- box-shadow: inset 0 0 9px 1px ${b};
1605
+ box-shadow: inset 0 0 9px 1px ${p};
1606
1606
  -webkit-mask-image:
1607
1607
  radial-gradient(
1608
1608
  ellipse calc(78px * var(--beam-w-${e})) calc(60px * var(--beam-h-${e})) at calc(var(--beam-x-${e}) * 100%) 100%,
@@ -1621,7 +1621,7 @@ function pa(t) {
1621
1621
  mask-composite: intersect, add;
1622
1622
  pointer-events: none;
1623
1623
  z-index: 1;
1624
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${Y.toFixed(2)} * var(--beam-strength, 1));
1624
+ opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${Y.toFixed(2)} * var(--beam-inner-opacity, 1) * var(--beam-strength, 1));
1625
1625
  clip-path: inset(0 round ${a}px);
1626
1626
  ${H}
1627
1627
  }
@@ -1630,7 +1630,7 @@ function pa(t) {
1630
1630
  display: none;
1631
1631
  position: absolute;
1632
1632
  inset: 0;
1633
- border-radius: ${d}px;
1633
+ border-radius: ${f}px;
1634
1634
  clip-path: inset(0 round ${a}px);
1635
1635
  padding: 0;
1636
1636
  -webkit-mask: radial-gradient(
@@ -1644,7 +1644,7 @@ function pa(t) {
1644
1644
  );
1645
1645
  mask-composite: add;
1646
1646
  background: ${u};
1647
- ${$}
1647
+ ${v}
1648
1648
  pointer-events: none;
1649
1649
  z-index: 3;
1650
1650
  opacity: 0;
@@ -1653,8 +1653,8 @@ function pa(t) {
1653
1653
  [data-beam="${e}"][data-active] [data-beam-bloom],
1654
1654
  [data-beam="${e}"][data-fading] [data-beam-bloom] {
1655
1655
  display: block;
1656
- opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${y.toFixed(2)} * var(--beam-strength, 1));
1657
- ${x}
1656
+ opacity: calc(var(--beam-opacity-${e}) * var(--beam-edge-${e}) * ${z.toFixed(2)} * var(--beam-bloom-opacity, 1) * var(--beam-strength, 1));
1657
+ ${$}
1658
1658
  }
1659
1659
 
1660
1660
  @keyframes beam-travel-${e} {
@@ -1712,20 +1712,20 @@ function pa(t) {
1712
1712
  to { --beam-opacity-${e}: 0; }
1713
1713
  }
1714
1714
  ${w}
1715
- ${A(e)}
1715
+ ${_(e)}
1716
1716
  `;
1717
1717
  }
1718
- const Q = /* @__PURE__ */ new Set();
1719
- let B = null, ce = 0;
1720
- const ba = 1e3 / 30 - 2, la = Math.PI * 2;
1718
+ const Z = /* @__PURE__ */ new Set();
1719
+ let E = null, ce = 0;
1720
+ const pa = 1e3 / 30 - 2, la = Math.PI * 2;
1721
1721
  function We(t) {
1722
1722
  return (1 - Math.cos(la * t)) / 2;
1723
1723
  }
1724
1724
  function Fe(t) {
1725
- if (B = requestAnimationFrame(Fe), t - ce < ba) return;
1725
+ if (E = requestAnimationFrame(Fe), t - ce < pa) return;
1726
1726
  ce = t;
1727
1727
  const e = t / 1e3;
1728
- Q.forEach(({ el: a, config: r }) => {
1728
+ Z.forEach(({ el: a, config: r }) => {
1729
1729
  for (const o of r.oscillators) {
1730
1730
  const s = (e - o.delay) / o.period, i = o.a + (o.b - o.a) * We(s);
1731
1731
  a.style.setProperty(
@@ -1734,26 +1734,26 @@ function Fe(t) {
1734
1734
  );
1735
1735
  }
1736
1736
  if (r.hue) {
1737
- const { prop: o, range: s, period: i, continuous: c } = r.hue, b = c ? e / i % 1 * s : -s + 2 * s * We(e / i);
1738
- a.style.setProperty(o, `${b.toFixed(2)}deg`);
1737
+ const { prop: o, range: s, period: i, continuous: c } = r.hue, p = c ? e / i % 1 * s : -s + 2 * s * We(e / i);
1738
+ a.style.setProperty(o, `${p.toFixed(2)}deg`);
1739
1739
  }
1740
1740
  });
1741
1741
  }
1742
- function fa() {
1743
- B == null && (ce = 0, B = requestAnimationFrame(Fe));
1744
- }
1745
1742
  function da() {
1746
- Q.size === 0 && B != null && (cancelAnimationFrame(B), B = null);
1743
+ E == null && (ce = 0, E = requestAnimationFrame(Fe));
1744
+ }
1745
+ function fa() {
1746
+ Z.size === 0 && E != null && (cancelAnimationFrame(E), E = null);
1747
1747
  }
1748
1748
  function ga(t, e) {
1749
1749
  const a = { el: t, config: e };
1750
- return Q.add(a), fa(), () => {
1751
- Q.delete(a), da();
1750
+ return Z.add(a), da(), () => {
1751
+ Z.delete(a), fa();
1752
1752
  };
1753
1753
  }
1754
1754
  function ma() {
1755
- const [t, e] = L(() => typeof window > "u" || window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
1756
- return P(() => {
1755
+ const [t, e] = P(() => typeof window > "u" || window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
1756
+ return B(() => {
1757
1757
  if (typeof window > "u") return;
1758
1758
  const a = window.matchMedia("(prefers-color-scheme: dark)"), r = (o) => {
1759
1759
  e(o.matches ? "dark" : "light");
@@ -1773,129 +1773,129 @@ const za = Ge(
1773
1773
  staticColors: s = !1,
1774
1774
  duration: i,
1775
1775
  active: c = !0,
1776
- borderRadius: b,
1777
- brightness: p,
1776
+ borderRadius: p,
1777
+ brightness: b,
1778
1778
  saturation: m,
1779
1779
  hueRange: n = 30,
1780
1780
  strength: l = 1,
1781
- className: f,
1782
- style: v,
1783
- onActivate: d,
1781
+ className: d,
1782
+ style: k,
1783
+ onActivate: f,
1784
1784
  onDeactivate: g,
1785
1785
  onAnimationEnd: W,
1786
1786
  ...Y
1787
- }, y) {
1788
- const x = Me().replace(/:/g, "-"), w = ma(), k = Ie(null), [h, X] = L(c), [u, $] = L(!1), [F, Z] = L(!0), [J, ee] = L(null), [E, _] = L({ x: 1, y: 1 });
1789
- P(() => {
1790
- if (b != null) return;
1791
- const z = k.current;
1792
- if (!z) return;
1793
- const O = () => {
1794
- const M = z.firstElementChild;
1795
- if (!M) return;
1796
- const se = getComputedStyle(M), I = parseFloat(se.borderTopLeftRadius);
1797
- !isNaN(I) && I > 0 && ee(I);
1787
+ }, z) {
1788
+ const $ = Me().replace(/:/g, "-"), w = ma(), y = Ie(null), [x, X] = P(c), [u, v] = P(!1), [S, J] = P(!0), [G, ee] = P(null), [j, A] = P({ x: 1, y: 1 });
1789
+ B(() => {
1790
+ if (p != null) return;
1791
+ const h = y.current;
1792
+ if (!h) return;
1793
+ const F = () => {
1794
+ const I = h.firstElementChild;
1795
+ if (!I) return;
1796
+ const se = getComputedStyle(I), L = parseFloat(se.borderTopLeftRadius);
1797
+ !isNaN(L) && L > 0 && ee(L);
1798
1798
  };
1799
- O();
1800
- const G = new MutationObserver(O);
1801
- return G.observe(z, { childList: !0, subtree: !1 }), () => G.disconnect();
1802
- }, [b, e]), P(() => {
1803
- c && !h && !u ? X(!0) : !c && h && !u && $(!0);
1804
- }, [c, h, u]), P(() => {
1805
- const z = k.current;
1806
- if (!z || typeof IntersectionObserver > "u") return;
1807
- const O = new IntersectionObserver(
1808
- (G) => {
1809
- for (const M of G) Z(M.isIntersecting);
1799
+ F();
1800
+ const M = new MutationObserver(F);
1801
+ return M.observe(h, { childList: !0, subtree: !1 }), () => M.disconnect();
1802
+ }, [p, e]), B(() => {
1803
+ c && !x && !u ? X(!0) : !c && x && !u && v(!0);
1804
+ }, [c, x, u]), B(() => {
1805
+ const h = y.current;
1806
+ if (!h || typeof IntersectionObserver > "u") return;
1807
+ const F = new IntersectionObserver(
1808
+ (M) => {
1809
+ for (const I of M) J(I.isIntersecting);
1810
1810
  },
1811
1811
  // Start animating slightly before the element scrolls into view.
1812
1812
  { rootMargin: "256px" }
1813
1813
  );
1814
- return O.observe(z), () => O.disconnect();
1815
- }, []), P(() => {
1814
+ return F.observe(h), () => F.disconnect();
1815
+ }, []), B(() => {
1816
1816
  if (a !== "pulse-outside") {
1817
- _({ x: 1, y: 1 });
1817
+ A({ x: 1, y: 1 });
1818
1818
  return;
1819
1819
  }
1820
- const z = k.current;
1821
- if (!z) return;
1822
- const O = 350, G = 140, M = 0.35, se = 4, I = (V) => Math.max(M, Math.min(se, V)), ge = () => {
1823
- const V = z.firstElementChild;
1824
- if (!V) return;
1825
- const D = V.getBoundingClientRect();
1826
- if (!D.width || !D.height) return;
1827
- const xe = +I(D.width / O).toFixed(3), ue = +I(D.height / G).toFixed(3);
1828
- _((ie) => ie.x === xe && ie.y === ue ? ie : { x: xe, y: ue });
1820
+ const h = y.current;
1821
+ if (!h) return;
1822
+ const F = 350, M = 140, I = 0.35, se = 4, L = (D) => Math.max(I, Math.min(se, D)), ge = () => {
1823
+ const D = h.firstElementChild;
1824
+ if (!D) return;
1825
+ const U = D.getBoundingClientRect();
1826
+ if (!U.width || !U.height) return;
1827
+ const ue = +L(U.width / F).toFixed(3), xe = +L(U.height / M).toFixed(3);
1828
+ A((ie) => ie.x === ue && ie.y === xe ? ie : { x: ue, y: xe });
1829
1829
  };
1830
1830
  if (ge(), typeof ResizeObserver > "u") return;
1831
- const me = z.firstElementChild;
1831
+ const me = h.firstElementChild;
1832
1832
  if (!me) return;
1833
1833
  const $e = new ResizeObserver(ge);
1834
1834
  return $e.observe(me), () => $e.disconnect();
1835
1835
  }, [a, e]);
1836
1836
  const ae = ye(
1837
- (z) => {
1838
- const O = z.animationName;
1839
- O.includes("fade-out") ? (X(!1), $(!1), g == null || g()) : O.includes("fade-in") && (d == null || d()), W == null || W(z);
1837
+ (h) => {
1838
+ const F = h.animationName;
1839
+ F.includes("fade-out") ? (X(!1), v(!1), g == null || g()) : F.includes("fade-in") && (f == null || f()), W == null || W(h);
1840
1840
  },
1841
- [d, g, W]
1842
- ), R = $a(o, w), S = ne[a][R], re = Le[a], te = a === "pulse-inner" || a === "pulse-outside", le = b ?? J ?? re.borderRadius, j = i ?? (a === "line" ? 3.1 : te ? 2.3 : 1.96), fe = m ?? S.saturation, de = p ?? S.brightness ?? 1.3, T = a === "line" ? Math.min(n, 13) : n, N = r === "mono" ? !0 : s, Se = ke(
1841
+ [f, g, W]
1842
+ ), R = $a(o, w), O = ne[a][R], re = Le[a], te = a === "pulse-inner" || a === "pulse-outside", le = p ?? G ?? re.borderRadius, T = i ?? (a === "line" ? 3.1 : te ? 2.3 : 1.96), de = m ?? O.saturation, fe = b ?? O.brightness ?? 1.3, N = a === "line" ? Math.min(n, 13) : n, V = r === "mono" ? !0 : s, Se = ve(
1843
1843
  () => oa({
1844
- id: x,
1844
+ id: $,
1845
1845
  borderRadius: le,
1846
1846
  borderWidth: re.borderWidth,
1847
- duration: j,
1848
- strokeOpacity: S.strokeOpacity,
1849
- innerOpacity: S.innerOpacity,
1850
- bloomOpacity: S.bloomOpacity,
1851
- innerShadow: S.innerShadow,
1847
+ duration: T,
1848
+ strokeOpacity: O.strokeOpacity,
1849
+ innerOpacity: O.innerOpacity,
1850
+ bloomOpacity: O.bloomOpacity,
1851
+ innerShadow: O.innerShadow,
1852
1852
  size: a,
1853
1853
  colorVariant: r,
1854
- staticColors: N,
1855
- brightness: de,
1856
- saturation: fe,
1857
- hueRange: T,
1854
+ staticColors: V,
1855
+ brightness: fe,
1856
+ saturation: de,
1857
+ hueRange: N,
1858
1858
  theme: R,
1859
- hairlineOpacity: S.hairlineOpacity
1859
+ hairlineOpacity: O.hairlineOpacity
1860
1860
  }),
1861
1861
  [
1862
- x,
1862
+ $,
1863
1863
  le,
1864
1864
  re.borderWidth,
1865
- j,
1866
- S.strokeOpacity,
1867
- S.innerOpacity,
1868
- S.bloomOpacity,
1869
- S.innerShadow,
1870
- S.hairlineOpacity,
1865
+ T,
1866
+ O.strokeOpacity,
1867
+ O.innerOpacity,
1868
+ O.bloomOpacity,
1869
+ O.innerShadow,
1870
+ O.hairlineOpacity,
1871
1871
  a,
1872
1872
  r,
1873
- N,
1874
- de,
1873
+ V,
1875
1874
  fe,
1876
- T,
1875
+ de,
1876
+ N,
1877
1877
  R
1878
1878
  ]
1879
- ), oe = ke(
1880
- () => te ? ta(a, R, j, T, N, x) : null,
1881
- [te, a, R, j, T, N, x]
1879
+ ), oe = ve(
1880
+ () => te ? ta(a, R, T, N, V, $) : null,
1881
+ [te, a, R, T, N, V, $]
1882
1882
  );
1883
- P(() => {
1884
- var O;
1885
- if (!oe || !(h || u) || !F) return;
1886
- const z = k.current;
1887
- if (z && !(typeof window < "u" && ((O = window.matchMedia) != null && O.call(window, "(prefers-reduced-motion: reduce)").matches)))
1888
- return ga(z, oe);
1889
- }, [oe, h, u, F]);
1883
+ B(() => {
1884
+ var F;
1885
+ if (!oe || !(x || u) || !S) return;
1886
+ const h = y.current;
1887
+ if (h && !(typeof window < "u" && ((F = window.matchMedia) != null && F.call(window, "(prefers-reduced-motion: reduce)").matches)))
1888
+ return ga(h, oe);
1889
+ }, [oe, x, u, S]);
1890
1890
  const Re = ye(
1891
- (z) => {
1892
- k.current = z, typeof y == "function" ? y(z) : y && (y.current = z);
1891
+ (h) => {
1892
+ y.current = h, typeof z == "function" ? z(h) : z && (z.current = h);
1893
1893
  },
1894
- [y]
1894
+ [z]
1895
1895
  ), qe = {
1896
- ...v ?? {},
1896
+ ...k ?? {},
1897
1897
  "--beam-strength": Math.max(0, Math.min(1, l)),
1898
- ...a === "pulse-outside" ? { "--pulse-glow-sx": E.x, "--pulse-glow-sy": E.y } : {}
1898
+ ...a === "pulse-outside" ? { "--pulse-glow-sx": j.x, "--pulse-glow-sy": j.y } : {}
1899
1899
  };
1900
1900
  return /* @__PURE__ */ he(Ce, { children: [
1901
1901
  /* @__PURE__ */ ze("style", { children: Se }),
@@ -1904,11 +1904,11 @@ const za = Ge(
1904
1904
  {
1905
1905
  ...Y,
1906
1906
  ref: Re,
1907
- "data-beam": x,
1908
- "data-active": h && !u ? "" : void 0,
1907
+ "data-beam": $,
1908
+ "data-active": x && !u ? "" : void 0,
1909
1909
  "data-fading": u ? "" : void 0,
1910
- "data-paused": h && !u && !F ? "" : void 0,
1911
- className: f,
1910
+ "data-paused": x && !u && !S ? "" : void 0,
1911
+ className: d,
1912
1912
  style: qe,
1913
1913
  onAnimationEnd: ae,
1914
1914
  children: [