@zenpatient-org/healthspan-marketing-ui 0.1.108 → 0.1.109

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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../../../components/Typography/Typography.cjs.js"),s=require("../../../../utils/cn/cn.cjs.js"),y=require("./components/Newsletter/Newsletter.cjs.js"),a=require("./mailchimpModal.module.css.cjs.js"),f=({title:r,description:c,buttonText:d,image:n,layout:i="plain-column",colorScheme:t="light",onCloseCallback:o,onClickCallback:u,cancelButtonText:p="no, thanks",tags:m})=>{const h=g=>{g.stopPropagation()};return e.jsxs("div",{className:s.cn(a.default.contentWrapper,a.default[t]),"data-image-position":i,onClick:h,children:[e.jsxs("div",{className:s.cn(a.default.content,a.default[t]),children:[e.jsxs("div",{className:a.default.text,children:[e.jsx(l.Typography,{defaultVariant:"headingLg",children:r}),e.jsx(l.Typography,{defaultVariant:"bodySm",children:c})]}),e.jsx(y.Newsletter,{buttonText:d,cancelButtonText:p,colorScheme:t,onCloseCallback:o,onClickCallback:u,tags:m})]}),n&&i!=="plain-column"&&e.jsx("div",{className:a.default.imageWrapper,children:e.jsx("div",{style:{backgroundImage:`url(${n})`},className:a.default.image})})]})};exports.MailchimpModal=f;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../../components/Typography/Typography.cjs.js"),c=require("../../../../utils/cn/cn.cjs.js"),y=require("./components/Newsletter/Newsletter.cjs.js"),a=require("./mailchimpModal.module.css.cjs.js"),f=({title:n,description:t,buttonText:d,image:s,layout:i="plain-column",colorScheme:l="light",onCloseCallback:o,onClickCallback:u,cancelButtonText:p="no, thanks",tags:m})=>{const h=g=>{g.stopPropagation()};return e.jsxs("div",{className:c.cn(a.default.contentWrapper,a.default[l]),"data-image-position":i,onClick:h,children:[e.jsxs("div",{className:c.cn(a.default.content,a.default[l]),children:[(n||t)&&e.jsxs("div",{className:a.default.text,children:[n&&e.jsx(r.Typography,{defaultVariant:"headingLg",children:n}),t&&e.jsx(r.Typography,{defaultVariant:"bodySm",children:t})]}),e.jsx(y.Newsletter,{buttonText:d,cancelButtonText:p,colorScheme:l,onCloseCallback:o,onClickCallback:u,tags:m})]}),s&&i!=="plain-column"&&e.jsx("div",{className:a.default.imageWrapper,children:e.jsx("div",{style:{backgroundImage:`url(${s})`},className:a.default.image})})]})};exports.MailchimpModal=f;
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { jsxs as t, jsx as i } from "react/jsx-runtime";
3
- import { Typography as l } from "../../../../components/Typography/Typography.es.js";
4
- import { cn as o } from "../../../../utils/cn/cn.es.js";
2
+ import { jsxs as t, jsx as n } from "react/jsx-runtime";
3
+ import { Typography as s } from "../../../../components/Typography/Typography.es.js";
4
+ import { cn as m } from "../../../../utils/cn/cn.es.js";
5
5
  import { Newsletter as N } from "./components/Newsletter/Newsletter.es.js";
6
6
  import a from "./mailchimpModal.module.css.es.js";
7
7
  const b = ({
8
- title: s,
9
- description: m,
8
+ title: i,
9
+ description: r,
10
10
  buttonText: c,
11
- image: e,
12
- layout: r = "plain-column",
13
- colorScheme: n = "light",
11
+ image: l,
12
+ layout: o = "plain-column",
13
+ colorScheme: e = "light",
14
14
  onCloseCallback: d,
15
15
  onClickCallback: p,
16
16
  cancelButtonText: h = "no, thanks",
@@ -22,28 +22,28 @@ const b = ({
22
22
  return /* @__PURE__ */ t(
23
23
  "div",
24
24
  {
25
- className: o(a.contentWrapper, a[n]),
26
- "data-image-position": r,
25
+ className: m(a.contentWrapper, a[e]),
26
+ "data-image-position": o,
27
27
  onClick: f,
28
28
  children: [
29
- /* @__PURE__ */ t("div", { className: o(a.content, a[n]), children: [
30
- /* @__PURE__ */ t("div", { className: a.text, children: [
31
- /* @__PURE__ */ i(l, { defaultVariant: "headingLg", children: s }),
32
- /* @__PURE__ */ i(l, { defaultVariant: "bodySm", children: m })
29
+ /* @__PURE__ */ t("div", { className: m(a.content, a[e]), children: [
30
+ (i || r) && /* @__PURE__ */ t("div", { className: a.text, children: [
31
+ i && /* @__PURE__ */ n(s, { defaultVariant: "headingLg", children: i }),
32
+ r && /* @__PURE__ */ n(s, { defaultVariant: "bodySm", children: r })
33
33
  ] }),
34
- /* @__PURE__ */ i(
34
+ /* @__PURE__ */ n(
35
35
  N,
36
36
  {
37
37
  buttonText: c,
38
38
  cancelButtonText: h,
39
- colorScheme: n,
39
+ colorScheme: e,
40
40
  onCloseCallback: d,
41
41
  onClickCallback: p,
42
42
  tags: g
43
43
  }
44
44
  )
45
45
  ] }),
46
- e && r !== "plain-column" && /* @__PURE__ */ i("div", { className: a.imageWrapper, children: /* @__PURE__ */ i("div", { style: { backgroundImage: `url(${e})` }, className: a.image }) })
46
+ l && o !== "plain-column" && /* @__PURE__ */ n("div", { className: a.imageWrapper, children: /* @__PURE__ */ n("div", { style: { backgroundImage: `url(${l})` }, className: a.image }) })
47
47
  ]
48
48
  }
49
49
  );
@@ -4,9 +4,9 @@ type TimerTrigger = {
4
4
  };
5
5
  type THSModal = {
6
6
  id: string;
7
- title: string;
8
- description: string;
9
7
  buttonText: string;
8
+ title?: string;
9
+ description?: string;
10
10
  trigger?: TimerTrigger;
11
11
  layout?: 'plain-column' | 'header-image' | 'side-image';
12
12
  cancelButtonText?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.108",
3
+ "version": "0.1.109",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",