@tarsis/toolkit 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -669,11 +669,11 @@ const BubblyParticlesButton = () => {
669
669
  );
670
670
  };
671
671
 
672
- const root$4k = "_root_acp94_1";
673
- const button$o = "_button_acp94_13";
674
- const p = "_p_acp94_26";
675
- const text$z = "_text_acp94_26";
676
- const effects = "_effects_acp94_240";
672
+ const root$4k = "_root_zrg3z_1";
673
+ const button$o = "_button_zrg3z_13";
674
+ const p = "_p_zrg3z_26";
675
+ const text$z = "_text_zrg3z_26";
676
+ const effects = "_effects_zrg3z_240";
677
677
  const styles$4H = {
678
678
  root: root$4k,
679
679
  button: button$o,
@@ -4630,9 +4630,9 @@ const NeonButton = ({ className = "", ...rest }) => {
4630
4630
  return /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", ...rest, className: cn(styles$49.root, className), children: "Neon" });
4631
4631
  };
4632
4632
 
4633
- const root$3R = "_root_1178p_2";
4634
- const i$1 = "_i_1178p_22";
4635
- const text$s = "_text_1178p_482";
4633
+ const root$3R = "_root_liar6_2";
4634
+ const i$1 = "_i_liar6_22";
4635
+ const text$s = "_text_liar6_482";
4636
4636
  const styles$48 = {
4637
4637
  root: root$3R,
4638
4638
  i: i$1,
@@ -6556,17 +6556,17 @@ const CONFIG$2 = {
6556
6556
  "border-spot-opacity": 1,
6557
6557
  "border-light-opacity": 1
6558
6558
  };
6559
- const cards$4 = [
6560
- {
6561
- id: crypto.randomUUID(),
6562
- spread: gsap$1.utils.random(0, 1e3),
6563
- outer: true,
6564
- control: false,
6565
- base: gsap$1.utils.random(0, 359)
6566
- }
6567
- ];
6568
6559
  const CardGlow = () => {
6569
6560
  useGlowPointer();
6561
+ const cards = React.useMemo(() => [
6562
+ {
6563
+ id: `card-${Math.random().toString(36).substr(2, 9)}`,
6564
+ spread: gsap$1.utils.random(0, 1e3),
6565
+ outer: true,
6566
+ control: false,
6567
+ base: gsap$1.utils.random(0, 359)
6568
+ }
6569
+ ], []);
6570
6570
  React.useEffect(() => {
6571
6571
  for (const key of Object.keys(CONFIG$2)) {
6572
6572
  if (key === "card") {
@@ -6585,7 +6585,7 @@ const CardGlow = () => {
6585
6585
  }
6586
6586
  }
6587
6587
  }, []);
6588
- return /* @__PURE__ */ jsxRuntime.jsx("main", { className: styles$3D.root, children: cards$4.map((card, index) => {
6588
+ return /* @__PURE__ */ jsxRuntime.jsx("main", { className: styles$3D.root, children: cards.map((card, index) => {
6589
6589
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$3D.wrapper, children: /* @__PURE__ */ jsxRuntime.jsxs(
6590
6590
  "article",
6591
6591
  {
@@ -18584,11 +18584,11 @@ const ScrambledText = ({ children, reveal = false }) => {
18584
18584
  );
18585
18585
  };
18586
18586
 
18587
- const root$_ = "_root_75uzi_1";
18588
- const line = "_line_75uzi_9";
18589
- const word$1 = "_word_75uzi_14";
18590
- const link = "_link_75uzi_18";
18591
- const letter = "_letter_75uzi_22";
18587
+ const root$_ = "_root_1pk6v_1";
18588
+ const line = "_line_1pk6v_9";
18589
+ const word$1 = "_word_1pk6v_14";
18590
+ const link = "_link_1pk6v_18";
18591
+ const letter = "_letter_1pk6v_22";
18592
18592
  const styles$13 = {
18593
18593
  root: root$_,
18594
18594
  line: line,
@@ -24897,9 +24897,9 @@ const styles$E = {
24897
24897
 
24898
24898
  const DIGITS = [0, 3, 4, 8, 7, 2];
24899
24899
  const PROXIMITY_RADIUS = 200;
24900
- const DISTANCE_MAPPER = gsap$1.utils.mapRange(250, 50, 0, 90);
24901
24900
  const GlidingReveal = () => {
24902
24901
  const codeRef = React.useRef(null);
24902
+ const DISTANCE_MAPPER = gsap$1.utils.mapRange(250, 50, 0, 90);
24903
24903
  const update = React.useCallback((x, y) => {
24904
24904
  if (!codeRef.current) return;
24905
24905
  const CENTER_POINT = codeRef.current.getBoundingClientRect();