@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.js CHANGED
@@ -646,11 +646,11 @@ const BubblyParticlesButton = () => {
646
646
  );
647
647
  };
648
648
 
649
- const root$4k = "_root_acp94_1";
650
- const button$o = "_button_acp94_13";
651
- const p = "_p_acp94_26";
652
- const text$z = "_text_acp94_26";
653
- const effects = "_effects_acp94_240";
649
+ const root$4k = "_root_zrg3z_1";
650
+ const button$o = "_button_zrg3z_13";
651
+ const p = "_p_zrg3z_26";
652
+ const text$z = "_text_zrg3z_26";
653
+ const effects = "_effects_zrg3z_240";
654
654
  const styles$4H = {
655
655
  root: root$4k,
656
656
  button: button$o,
@@ -4607,9 +4607,9 @@ const NeonButton = ({ className = "", ...rest }) => {
4607
4607
  return /* @__PURE__ */ jsx("button", { type: "button", ...rest, className: cn(styles$49.root, className), children: "Neon" });
4608
4608
  };
4609
4609
 
4610
- const root$3R = "_root_1178p_2";
4611
- const i$1 = "_i_1178p_22";
4612
- const text$s = "_text_1178p_482";
4610
+ const root$3R = "_root_liar6_2";
4611
+ const i$1 = "_i_liar6_22";
4612
+ const text$s = "_text_liar6_482";
4613
4613
  const styles$48 = {
4614
4614
  root: root$3R,
4615
4615
  i: i$1,
@@ -6533,17 +6533,17 @@ const CONFIG$2 = {
6533
6533
  "border-spot-opacity": 1,
6534
6534
  "border-light-opacity": 1
6535
6535
  };
6536
- const cards$4 = [
6537
- {
6538
- id: crypto.randomUUID(),
6539
- spread: gsap$1.utils.random(0, 1e3),
6540
- outer: true,
6541
- control: false,
6542
- base: gsap$1.utils.random(0, 359)
6543
- }
6544
- ];
6545
6536
  const CardGlow = () => {
6546
6537
  useGlowPointer();
6538
+ const cards = useMemo(() => [
6539
+ {
6540
+ id: `card-${Math.random().toString(36).substr(2, 9)}`,
6541
+ spread: gsap$1.utils.random(0, 1e3),
6542
+ outer: true,
6543
+ control: false,
6544
+ base: gsap$1.utils.random(0, 359)
6545
+ }
6546
+ ], []);
6547
6547
  useEffect(() => {
6548
6548
  for (const key of Object.keys(CONFIG$2)) {
6549
6549
  if (key === "card") {
@@ -6562,7 +6562,7 @@ const CardGlow = () => {
6562
6562
  }
6563
6563
  }
6564
6564
  }, []);
6565
- return /* @__PURE__ */ jsx("main", { className: styles$3D.root, children: cards$4.map((card, index) => {
6565
+ return /* @__PURE__ */ jsx("main", { className: styles$3D.root, children: cards.map((card, index) => {
6566
6566
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { className: styles$3D.wrapper, children: /* @__PURE__ */ jsxs(
6567
6567
  "article",
6568
6568
  {
@@ -18561,11 +18561,11 @@ const ScrambledText = ({ children, reveal = false }) => {
18561
18561
  );
18562
18562
  };
18563
18563
 
18564
- const root$_ = "_root_75uzi_1";
18565
- const line = "_line_75uzi_9";
18566
- const word$1 = "_word_75uzi_14";
18567
- const link = "_link_75uzi_18";
18568
- const letter = "_letter_75uzi_22";
18564
+ const root$_ = "_root_1pk6v_1";
18565
+ const line = "_line_1pk6v_9";
18566
+ const word$1 = "_word_1pk6v_14";
18567
+ const link = "_link_1pk6v_18";
18568
+ const letter = "_letter_1pk6v_22";
18569
18569
  const styles$13 = {
18570
18570
  root: root$_,
18571
18571
  line: line,
@@ -24874,9 +24874,9 @@ const styles$E = {
24874
24874
 
24875
24875
  const DIGITS = [0, 3, 4, 8, 7, 2];
24876
24876
  const PROXIMITY_RADIUS = 200;
24877
- const DISTANCE_MAPPER = gsap$1.utils.mapRange(250, 50, 0, 90);
24878
24877
  const GlidingReveal = () => {
24879
24878
  const codeRef = useRef(null);
24879
+ const DISTANCE_MAPPER = gsap$1.utils.mapRange(250, 50, 0, 90);
24880
24880
  const update = useCallback((x, y) => {
24881
24881
  if (!codeRef.current) return;
24882
24882
  const CENTER_POINT = codeRef.current.getBoundingClientRect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarsis/toolkit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },