@zenpatient-org/healthspan-marketing-ui 0.1.82 → 0.1.83

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("./textBlockAnimated.module.css.cjs.js"),i=require("../../node_modules/gsap/index.cjs.js"),l=require("../../node_modules/gsap/SplitText.cjs.js"),u=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),d=require("../../node_modules/@gsap/react/src/index.cjs.js"),p=require("react"),s=require("../../components/Typography/Typography.cjs.js"),g=require("../../utils/cn/cn.cjs.js");i.gsap.registerPlugin(l.SplitText,u.ScrollTrigger);function m({label:a,body:n,colorScheme:c}){const t=p.useRef(null);return d.useGSAP(()=>{l.SplitText.create(t.current,{type:"words chars",className:e.default.bodyText,autoSplit:!0,onSplit:o=>i.gsap.from(o.chars,{stagger:2,opacity:.3,duration:1,scrollTrigger:{trigger:t.current,start:"top 70%",end:"top 30%",scrub:!0,markers:!1}})})},{scope:t}),r.jsx("div",{className:g.cn(e.default.root,e.default[c]),children:r.jsxs("div",{className:e.default.container,children:[a&&r.jsx(s.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:e.default.label,children:a}),r.jsxs(s.Typography,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingMd",className:e.default.body,children:[a&&r.jsx("span",{className:e.default.spacer,children:" "}),r.jsx("p",{className:e.default.bodyText,ref:t,children:n})]})]})})}exports.TextBlockAnimated=m;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("./textBlockAnimated.module.css.cjs.js"),i=require("../../node_modules/gsap/index.cjs.js"),l=require("../../node_modules/gsap/SplitText.cjs.js"),u=require("../../node_modules/gsap/ScrollTrigger.cjs.js"),d=require("../../node_modules/@gsap/react/src/index.cjs.js"),p=require("react"),s=require("../../components/Typography/Typography.cjs.js"),g=require("../../utils/cn/cn.cjs.js");i.gsap.registerPlugin(l.SplitText,u.ScrollTrigger);function m({label:a,body:n,colorScheme:c}){const t=p.useRef(null);return d.useGSAP(()=>{l.SplitText.create(t.current,{type:"words chars",className:e.default.bodyText,autoSplit:!0,onSplit:o=>i.gsap.from(o.chars,{stagger:2,opacity:.3,duration:1,scrollTrigger:{trigger:t.current,start:"top 70%",end:"top 30%",scrub:!0,markers:!1}})})},{scope:t}),r.jsx("div",{className:g.cn(e.default.root,e.default[c]),children:r.jsxs("div",{className:e.default.container,children:[a&&r.jsx(s.Typography,{as:"p",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:e.default.label,children:a}),r.jsxs(s.Typography,{as:"div",defaultVariant:"displayMd",mobileVariant:"headingMd",className:e.default.body,children:[a&&r.jsx("span",{className:e.default.spacer,children:" "}),r.jsx("p",{className:e.default.bodyText,ref:t,children:n})]})]})})}exports.TextBlockAnimated=m;
@@ -1,13 +1,14 @@
1
- import { jsx as t, jsxs as o } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
3
  import r from "./textBlockAnimated.module.css.es.js";
3
- import { gsap as i } from "../../node_modules/gsap/index.es.js";
4
+ import { gsap as o } from "../../node_modules/gsap/index.es.js";
4
5
  import { SplitText as l } from "../../node_modules/gsap/SplitText.es.js";
5
6
  import { ScrollTrigger as p } from "../../node_modules/gsap/ScrollTrigger.es.js";
6
7
  import { useGSAP as d } from "../../node_modules/@gsap/react/src/index.es.js";
7
8
  import { useRef as u } from "react";
8
- import { Typography as s } from "../../components/Typography/Typography.es.js";
9
+ import { Typography as i } from "../../components/Typography/Typography.es.js";
9
10
  import { cn as f } from "../../utils/cn/cn.es.js";
10
- i.registerPlugin(l, p);
11
+ o.registerPlugin(l, p);
11
12
  function v({ label: a, body: m, colorScheme: c }) {
12
13
  const e = u(null);
13
14
  return d(
@@ -16,7 +17,7 @@ function v({ label: a, body: m, colorScheme: c }) {
16
17
  type: "words chars",
17
18
  className: r.bodyText,
18
19
  autoSplit: !0,
19
- onSplit: (n) => i.from(n.chars, {
20
+ onSplit: (n) => o.from(n.chars, {
20
21
  stagger: 2,
21
22
  opacity: 0.3,
22
23
  duration: 1,
@@ -31,9 +32,9 @@ function v({ label: a, body: m, colorScheme: c }) {
31
32
  });
32
33
  },
33
34
  { scope: e }
34
- ), /* @__PURE__ */ t("div", { className: f(r.root, r[c]), children: /* @__PURE__ */ o("div", { className: r.container, children: [
35
+ ), /* @__PURE__ */ t("div", { className: f(r.root, r[c]), children: /* @__PURE__ */ s("div", { className: r.container, children: [
35
36
  a && /* @__PURE__ */ t(
36
- s,
37
+ i,
37
38
  {
38
39
  as: "p",
39
40
  defaultVariant: "labelMd",
@@ -43,7 +44,7 @@ function v({ label: a, body: m, colorScheme: c }) {
43
44
  children: a
44
45
  }
45
46
  ),
46
- /* @__PURE__ */ o(s, { as: "div", defaultVariant: "displayMd", mobileVariant: "headingMd", className: r.body, children: [
47
+ /* @__PURE__ */ s(i, { as: "div", defaultVariant: "displayMd", mobileVariant: "headingMd", className: r.body, children: [
47
48
  a && /* @__PURE__ */ t("span", { className: r.spacer, children: " " }),
48
49
  /* @__PURE__ */ t("p", { className: r.bodyText, ref: e, children: m })
49
50
  ] })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",