@zenpatient-org/healthspan-marketing-ui 0.1.160 → 0.1.162

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"),o=require("./components/ScienceClientCursor.cjs.js"),c=require("./components/ScienceServerCursor.cjs.js");function u({children:e,backgroundImage:n,cursorLink:i}){return typeof window>"u"?r.jsx(c.ScienceServerCursor,{children:e}):r.jsx(o.ScienceClientCursor,{backgroundImage:n,cursorLink:i,children:e})}exports.ScienceHeroCursor=u;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),t=require("react"),u=require("./components/ScienceClientCursor.cjs.js"),o=require("./components/ScienceServerCursor.cjs.js");function S({children:e,backgroundImage:c,cursorLink:s}){const[i,n]=t.useState(!1);return t.useEffect(()=>{n(!0)},[]),i?r.jsx(u.ScienceClientCursor,{backgroundImage:c,cursorLink:s,children:e}):r.jsx(o.ScienceServerCursor,{children:e})}exports.ScienceHeroCursor=S;
@@ -1,9 +1,14 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { ScienceClientCursor as n } from "./components/ScienceClientCursor.es.js";
3
- import { ScienceServerCursor as t } from "./components/ScienceServerCursor.es.js";
4
- function m({ children: r, backgroundImage: o, cursorLink: i }) {
5
- return typeof window > "u" ? /* @__PURE__ */ e(t, { children: r }) : /* @__PURE__ */ e(n, { backgroundImage: o, cursorLink: i, children: r });
1
+ "use client";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import t from "react";
4
+ import { ScienceClientCursor as u } from "./components/ScienceClientCursor.es.js";
5
+ import { ScienceServerCursor as c } from "./components/ScienceServerCursor.es.js";
6
+ function p({ children: e, backgroundImage: o, cursorLink: i }) {
7
+ const [s, n] = t.useState(!1);
8
+ return t.useEffect(() => {
9
+ n(!0);
10
+ }, []), s ? /* @__PURE__ */ r(u, { backgroundImage: o, cursorLink: i, children: e }) : /* @__PURE__ */ r(c, { children: e });
6
11
  }
7
12
  export {
8
- m as ScienceHeroCursor
13
+ p as ScienceHeroCursor
9
14
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),n=require("./components/ProtocolTags/ProtocolTags.cjs.js"),t=require("./yourProtocol.module.css.cjs.js"),d=({title:s,image:i,tags:r,callbackView:o})=>e.jsx("section",{className:t.default.root,children:e.jsxs("div",{className:t.default.container,children:[e.jsxs("div",{className:t.default.content,children:[e.jsx(a.HighlightedTitle,{title:s,className:t.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(n.ProtocolTags,{tags:r}),o&&e.jsx("div",{className:t.default.callback,children:e.jsx(l.Callback,{title:o.title,description:o.description??"",price:o.price??"",image:o.image,button:{href:o.signupUrl??"",as:"a"},size:"sm"})})]}),e.jsx("img",{src:i,alt:"Your Protocol",className:c.cn(t.default.image,t.default.desktop),width:481})]})});exports.YourProtocol=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),a=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../utils/cn/cn.cjs.js"),c=require("./components/ProtocolTags/ProtocolTags.cjs.js"),o=require("./yourProtocol.module.css.cjs.js"),d=({title:s,image:r,tags:i,callbackView:t})=>e.jsx("section",{className:o.default.root,children:e.jsxs("div",{className:o.default.container,children:[e.jsxs("div",{className:o.default.content,children:[e.jsx(a.HighlightedTitle,{title:s,className:o.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(c.ProtocolTags,{tags:i}),t&&e.jsx("div",{className:o.default.callback,children:e.jsx(l.Callback,{title:t.title,description:t.description??"",price:t.price??"",image:t.image,button:{href:t.signupUrl??"",as:"a"},size:"sm",shape:t.shape})})]}),e.jsx("img",{src:r,alt:"Your Protocol",className:n.cn(o.default.image,o.default.desktop),width:481})]})});exports.YourProtocol=d;
@@ -1,37 +1,38 @@
1
1
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import { Callback as a } from "../../components/Callback/Callback.es.js";
3
- import { HighlightedTitle as l } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
- import { cn as n } from "../../utils/cn/cn.es.js";
5
- import { ProtocolTags as c } from "./components/ProtocolTags/ProtocolTags.es.js";
6
- import t from "./yourProtocol.module.css.es.js";
7
- const N = ({ title: e, image: s, tags: m, callbackView: o }) => /* @__PURE__ */ r("section", { className: t.root, children: /* @__PURE__ */ i("div", { className: t.container, children: [
8
- /* @__PURE__ */ i("div", { className: t.content, children: [
3
+ import { HighlightedTitle as n } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
4
+ import { cn as l } from "../../utils/cn/cn.es.js";
5
+ import { ProtocolTags as p } from "./components/ProtocolTags/ProtocolTags.es.js";
6
+ import o from "./yourProtocol.module.css.es.js";
7
+ const N = ({ title: s, image: e, tags: m, callbackView: t }) => /* @__PURE__ */ r("section", { className: o.root, children: /* @__PURE__ */ i("div", { className: o.container, children: [
8
+ /* @__PURE__ */ i("div", { className: o.content, children: [
9
9
  /* @__PURE__ */ r(
10
- l,
10
+ n,
11
11
  {
12
- title: e,
13
- className: t.title,
12
+ title: s,
13
+ className: o.title,
14
14
  defaultVariant: "displaySm",
15
15
  mobileVariant: "headingXl"
16
16
  }
17
17
  ),
18
- /* @__PURE__ */ r(c, { tags: m }),
19
- o && /* @__PURE__ */ r("div", { className: t.callback, children: /* @__PURE__ */ r(
18
+ /* @__PURE__ */ r(p, { tags: m }),
19
+ t && /* @__PURE__ */ r("div", { className: o.callback, children: /* @__PURE__ */ r(
20
20
  a,
21
21
  {
22
- title: o.title,
23
- description: o.description ?? "",
24
- price: o.price ?? "",
25
- image: o.image,
22
+ title: t.title,
23
+ description: t.description ?? "",
24
+ price: t.price ?? "",
25
+ image: t.image,
26
26
  button: {
27
- href: o.signupUrl ?? "",
27
+ href: t.signupUrl ?? "",
28
28
  as: "a"
29
29
  },
30
- size: "sm"
30
+ size: "sm",
31
+ shape: t.shape
31
32
  }
32
33
  ) })
33
34
  ] }),
34
- /* @__PURE__ */ r("img", { src: s, alt: "Your Protocol", className: n(t.image, t.desktop), width: 481 })
35
+ /* @__PURE__ */ r("img", { src: e, alt: "Your Protocol", className: l(o.image, o.desktop), width: 481 })
35
36
  ] }) });
36
37
  export {
37
38
  N as YourProtocol
@@ -1,3 +1,5 @@
1
+ import { CallbackShape } from '../../components/Callback';
2
+
1
3
  export type TTagView = {
2
4
  label: string;
3
5
  description?: string;
@@ -10,4 +12,5 @@ export type TCallbackView = {
10
12
  image: string;
11
13
  buttonLabel: string;
12
14
  size: string;
15
+ shape: CallbackShape;
13
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.160",
3
+ "version": "0.1.162",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",