@zenpatient-org/healthspan-marketing-ui 0.1.68 → 0.1.70

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.
Files changed (58) hide show
  1. package/dist/components/Accordion/components/AccordionItem/AccordionItem.cjs.js +1 -1
  2. package/dist/components/Accordion/components/AccordionItem/AccordionItem.es.js +1 -0
  3. package/dist/components/AnchorLinks/AnchorLinks.cjs.js +1 -1
  4. package/dist/components/AnchorLinks/AnchorLinks.es.js +10 -9
  5. package/dist/components/Button/Button.cjs.js +1 -1
  6. package/dist/components/Button/Button.es.js +16 -15
  7. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -1
  8. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +13 -12
  9. package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
  10. package/dist/components/ContentTabs/ContentTabs.es.js +21 -26
  11. package/dist/components/ContentTabs/contentTabs.module.css.cjs.js +1 -1
  12. package/dist/components/ContentTabs/contentTabs.module.css.es.js +18 -14
  13. package/dist/components/FAQComponentItem/FAQComponentItem.cjs.js +1 -1
  14. package/dist/components/FAQComponentItem/FAQComponentItem.es.js +7 -6
  15. package/dist/components/GalleryPagination/GalleryPagination.cjs.js +1 -1
  16. package/dist/components/GalleryPagination/GalleryPagination.es.js +1 -0
  17. package/dist/components/IconButton/IconButton.cjs.js +1 -1
  18. package/dist/components/IconButton/IconButton.es.js +5 -4
  19. package/dist/components/PlayButton/PlayButton.cjs.js +1 -1
  20. package/dist/components/PlayButton/PlayButton.es.js +4 -3
  21. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  22. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +1 -0
  23. package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -1
  24. package/dist/components/ProgramCard/ProgramCard.es.js +22 -13
  25. package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -1
  26. package/dist/components/ProgramCard/programCard.module.css.es.js +8 -6
  27. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
  28. package/dist/components/ProgressButton/ProgressButton.es.js +6 -5
  29. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  30. package/dist/components/Tabs/Tabs.es.js +1 -0
  31. package/dist/components/Tag/Tag.cjs.js +1 -1
  32. package/dist/components/Tag/Tag.es.js +8 -7
  33. package/dist/components/TextButton/TextButton.cjs.js +1 -1
  34. package/dist/components/TextButton/TextButton.es.js +13 -12
  35. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  36. package/dist/components/TextInput/TextInput.es.js +13 -12
  37. package/dist/healthspan-marketing-ui.css +1 -1
  38. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.cjs.js +1 -1
  39. package/dist/modules/HighestStandards/components/TabsMenu/components/TabsMenutem/TabsMenuItem.es.js +10 -9
  40. package/dist/modules/IndividualProductCard/components/PlanCard/PlanCard.cjs.js +1 -1
  41. package/dist/modules/IndividualProductCard/components/PlanCard/PlanCard.es.js +1 -0
  42. package/dist/modules/IngredientHighlight/IngredientHighlight.cjs.js +1 -1
  43. package/dist/modules/IngredientHighlight/IngredientHighlight.es.js +10 -9
  44. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.cjs.js +1 -1
  45. package/dist/modules/IngredientHighlight/components/Ingredient/Ingredient.es.js +4 -3
  46. package/dist/modules/ResearchStudies/ResearchStudies.cjs.js +1 -1
  47. package/dist/modules/ResearchStudies/ResearchStudies.es.js +1 -0
  48. package/dist/modules/Testimonial/components/Product/Product.cjs.js +1 -1
  49. package/dist/modules/Testimonial/components/Product/Product.es.js +9 -8
  50. package/dist/pageComponents/CallToActionDefault/CallToActionDefault.cjs.js +1 -0
  51. package/dist/pageComponents/CallToActionDefault/CallToActionDefault.d.ts +1 -0
  52. package/dist/pageComponents/CallToActionDefault/CallToActionDefault.es.js +28 -0
  53. package/dist/pageComponents/CallToActionDefault/index.d.ts +1 -0
  54. package/dist/pageComponents/Footer/components/LinksColumn/LinksColumn.cjs.js +1 -1
  55. package/dist/pageComponents/Footer/components/LinksColumn/LinksColumn.es.js +1 -0
  56. package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.cjs.js +1 -1
  57. package/dist/pageComponents/Footer/components/NewsLetter/NewsLetter.es.js +1 -0
  58. package/package.json +6 -1
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
3
  import { forwardRef as p } from "react";
3
4
  import { cn as t } from "../../utils/cn/cn.es.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),d=require("../Icon/Icon.cjs.js"),t=require("./tag.module.css.cjs.js"),g={md:l.default.labelMd,lg:l.default.labelLg},j=({value:n,children:u,active:o,disabled:i,size:s="md",prefixIcon:c,suffixIcon:r,onClick:a})=>e.jsx("button",{className:m.cn(t.default.tag,g[s],{[t.default.active]:o},t.default[s]),disabled:i,onClick:()=>n&&(a==null?void 0:a(n)),children:e.jsxs("div",{className:t.default.content,children:[c&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:c})}),e.jsx("p",{children:u}),r&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:r})})]})});exports.Tag=j;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),d=require("../Icon/Icon.cjs.js"),t=require("./tag.module.css.cjs.js"),g={md:r.default.labelMd,lg:r.default.labelLg},j=({value:n,children:u,active:o,disabled:i,size:s="md",prefixIcon:c,suffixIcon:l,onClick:a})=>e.jsx("button",{className:m.cn(t.default.tag,g[s],{[t.default.active]:o},t.default[s]),disabled:i,onClick:()=>n&&(a==null?void 0:a(n)),children:e.jsxs("div",{className:t.default.content,children:[c&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:c})}),e.jsx("p",{children:u}),l&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(d.Icon,{name:l})})]})});exports.Tag=j;
@@ -1,4 +1,5 @@
1
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
1
+ "use client";
2
+ import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
3
  import c from "../../styles/typography.module.css.es.js";
3
4
  import { cn as g } from "../../utils/cn/cn.es.js";
4
5
  import { Icon as n } from "../Icon/Icon.es.js";
@@ -6,15 +7,15 @@ import m from "./tag.module.css.es.js";
6
7
  const h = {
7
8
  md: c.labelMd,
8
9
  lg: c.labelLg
9
- }, f = ({ value: t, children: d, active: l, disabled: p, size: e = "md", prefixIcon: o, suffixIcon: s, onClick: a }) => /* @__PURE__ */ r(
10
+ }, f = ({ value: a, children: l, active: d, disabled: i, size: e = "md", prefixIcon: o, suffixIcon: s, onClick: t }) => /* @__PURE__ */ r(
10
11
  "button",
11
12
  {
12
- className: g(m.tag, h[e], { [m.active]: l }, m[e]),
13
- disabled: p,
14
- onClick: () => t && (a == null ? void 0 : a(t)),
15
- children: /* @__PURE__ */ i("div", { className: m.content, children: [
13
+ className: g(m.tag, h[e], { [m.active]: d }, m[e]),
14
+ disabled: i,
15
+ onClick: () => a && (t == null ? void 0 : t(a)),
16
+ children: /* @__PURE__ */ p("div", { className: m.content, children: [
16
17
  o && /* @__PURE__ */ r("div", { className: m.iconWrap, children: /* @__PURE__ */ r(n, { name: o }) }),
17
- /* @__PURE__ */ r("p", { children: d }),
18
+ /* @__PURE__ */ r("p", { children: l }),
18
19
  s && /* @__PURE__ */ r("div", { className: m.iconWrap, children: /* @__PURE__ */ r(n, { name: s }) })
19
20
  ] })
20
21
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("../../utils/cn/cn.cjs.js"),c=require("../Icon/Icon.cjs.js"),t=require("./textButton.module.css.cjs.js"),v=({size:l="sm",as:o="button",disabled:s=!1,inverted:d=!1,children:r,prefixIcon:n,suffixIcon:a,hideOn:i,...u})=>{const m=t.default[l]||"",j=d?t.default.inverted:"",x=s?t.default.disabled:"";return e.jsx(o,{...u,className:f.cn(t.default.button,j,m,x),disabled:s,"data-hide-on":i,children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:n})}),e.jsx("div",{children:r}),a&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:a})})]})})};exports.TextButton=v;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("../../utils/cn/cn.cjs.js"),c=require("../Icon/Icon.cjs.js"),t=require("./textButton.module.css.cjs.js"),v=({size:l="sm",as:o="button",disabled:s=!1,inverted:d=!1,children:i,prefixIcon:n,suffixIcon:a,hideOn:r,...u})=>{const m=t.default[l]||"",j=d?t.default.inverted:"",x=s?t.default.disabled:"";return e.jsx(o,{...u,className:f.cn(t.default.button,j,m,x),disabled:s,"data-hide-on":r,children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:n})}),e.jsx("div",{children:i}),a&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:a})})]})})};exports.TextButton=v;
@@ -1,30 +1,31 @@
1
- import { jsx as e, jsxs as N } from "react/jsx-runtime";
2
- import { cn as b } from "../../utils/cn/cn.es.js";
1
+ "use client";
2
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
3
+ import { cn as N } from "../../utils/cn/cn.es.js";
3
4
  import { Icon as o } from "../Icon/Icon.es.js";
4
5
  import s from "./textButton.module.css.es.js";
5
6
  const x = ({
6
- size: r = "sm",
7
- as: i = "button",
7
+ size: i = "sm",
8
+ as: r = "button",
8
9
  disabled: t = !1,
9
10
  inverted: c = !1,
10
11
  children: l,
11
- prefixIcon: a,
12
- suffixIcon: n,
12
+ prefixIcon: n,
13
+ suffixIcon: a,
13
14
  hideOn: m,
14
15
  ...d
15
16
  }) => {
16
- const p = s[r] || "", v = c ? s.inverted : "", h = t ? s.disabled : "";
17
+ const p = s[i] || "", v = c ? s.inverted : "", h = t ? s.disabled : "";
17
18
  return /* @__PURE__ */ e(
18
- i,
19
+ r,
19
20
  {
20
21
  ...d,
21
- className: b(s.button, v, p, h),
22
+ className: N(s.button, v, p, h),
22
23
  disabled: t,
23
24
  "data-hide-on": m,
24
- children: /* @__PURE__ */ N("div", { className: s.content, children: [
25
- a && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: a }) }),
25
+ children: /* @__PURE__ */ u("div", { className: s.content, children: [
26
+ n && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: n }) }),
26
27
  /* @__PURE__ */ e("div", { children: l }),
27
- n && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: n }) })
28
+ a && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: a }) })
28
29
  ] })
29
30
  }
30
31
  );
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),I=require("react"),e=require("./textInput.module.css.cjs.js"),r=require("../../utils/cn/cn.cjs.js"),R=require("../Button/Button.cjs.js"),E=require("../Icon/Icon.cjs.js"),V=require("../Icon/constants.cjs.js"),B=require("../Typography/Typography.cjs.js"),$=({placeholder:x,variant:o="primary",handleChange:u,handleKeyDown:l,disabled:i=!1,buttonText:h="SUBMIT",onButtonClick:s,error:c=!1,errorText:d,active:f=!1,value:p,label:m,type:j="button",showButton:q=!1})=>{const[N,y]=I.useState(!1),[v,T]=I.useState(""),_=typeof p=="string"&&typeof u=="function",a=_?p:v,g=n=>{_?u&&u(n):T(n.target.value)},b=()=>{s&&s(a||"")},S=n=>{n.key==="Enter"&&s&&s(a||""),l&&l(n)};return t.jsxs("div",{className:e.default.root,children:[m&&t.jsx("div",{className:r.cn(e.default.label,a&&e.default.hidden),children:m}),t.jsxs("div",{className:r.cn(e.default.container,e.default[o],{[e.default.focused]:N},{[e.default.disabled]:i},{[e.default.error]:c},{[e.default.active]:f}),children:[t.jsx("div",{className:e.default.input_container,children:t.jsx("input",{className:r.cn(e.default.input,e.default[`input_${o}`],{[e.default.error]:c},{[e.default.active]:f}),disabled:i,placeholder:x,onChange:g,onKeyDown:S,onFocus:()=>y(!0),onBlur:()=>y(!1),value:a,style:{outline:"none"}})}),q&&t.jsx("div",{className:e.default.button_container,children:t.jsx(R.Button,{variant:o==="primary"?"primary":"primary-invert",as:"button",size:"sm",type:j,onClick:b,children:h})})]}),c&&d&&t.jsxs(B.Typography,{defaultVariant:"labelSm",className:e.default.errorText,children:[t.jsx(E.Icon,{name:V.EIconName.ALERT_ERROR,className:e.default.errorIcon}),d]})]})};exports.TextInput=$;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),I=require("react"),e=require("./textInput.module.css.cjs.js"),l=require("../../utils/cn/cn.cjs.js"),R=require("../Button/Button.cjs.js"),E=require("../Icon/Icon.cjs.js"),V=require("../Icon/constants.cjs.js"),B=require("../Typography/Typography.cjs.js"),$=({placeholder:x,variant:o="primary",handleChange:u,handleKeyDown:r,disabled:i=!1,buttonText:h="SUBMIT",onButtonClick:s,error:c=!1,errorText:d,active:f=!1,value:p,label:m,type:j="button",showButton:q=!1})=>{const[N,y]=I.useState(!1),[v,T]=I.useState(""),_=typeof p=="string"&&typeof u=="function",a=_?p:v,g=n=>{_?u&&u(n):T(n.target.value)},b=()=>{s&&s(a||"")},S=n=>{n.key==="Enter"&&s&&s(a||""),r&&r(n)};return t.jsxs("div",{className:e.default.root,children:[m&&t.jsx("div",{className:l.cn(e.default.label,a&&e.default.hidden),children:m}),t.jsxs("div",{className:l.cn(e.default.container,e.default[o],{[e.default.focused]:N},{[e.default.disabled]:i},{[e.default.error]:c},{[e.default.active]:f}),children:[t.jsx("div",{className:e.default.input_container,children:t.jsx("input",{className:l.cn(e.default.input,e.default[`input_${o}`],{[e.default.error]:c},{[e.default.active]:f}),disabled:i,placeholder:x,onChange:g,onKeyDown:S,onFocus:()=>y(!0),onBlur:()=>y(!1),value:a,style:{outline:"none"}})}),q&&t.jsx("div",{className:e.default.button_container,children:t.jsx(R.Button,{variant:o==="primary"?"primary":"primary-invert",as:"button",size:"sm",type:j,onClick:b,children:h})})]}),c&&d&&t.jsxs(B.Typography,{defaultVariant:"labelSm",className:e.default.errorText,children:[t.jsx(E.Icon,{name:V.EIconName.ALERT_ERROR,className:e.default.errorIcon}),d]})]})};exports.TextInput=$;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
3
  import { useState as I } from "react";
3
4
  import e from "./textInput.module.css.es.js";
@@ -9,21 +10,21 @@ import { Typography as z } from "../Typography/Typography.es.js";
9
10
  const $ = ({
10
11
  placeholder: v,
11
12
  variant: s = "primary",
12
- handleChange: a,
13
+ handleChange: i,
13
14
  handleKeyDown: m,
14
- disabled: p = !1,
15
+ disabled: u = !1,
15
16
  buttonText: b = "SUBMIT",
16
17
  onButtonClick: o,
17
- error: i = !1,
18
- errorText: u,
18
+ error: a = !1,
19
+ errorText: p,
19
20
  active: f = !1,
20
21
  value: d,
21
22
  label: y,
22
23
  type: x = "button",
23
24
  showButton: E = !1
24
25
  }) => {
25
- const [R, h] = I(!1), [T, V] = I(""), N = typeof d == "string" && typeof a == "function", r = N ? d : T, _ = (n) => {
26
- N ? a && a(n) : V(n.target.value);
26
+ const [R, h] = I(!1), [T, V] = I(""), N = typeof d == "string" && typeof i == "function", r = N ? d : T, _ = (n) => {
27
+ N ? i && i(n) : V(n.target.value);
27
28
  }, g = () => {
28
29
  o && o(r || "");
29
30
  }, S = (n) => {
@@ -38,8 +39,8 @@ const $ = ({
38
39
  e.container,
39
40
  e[s],
40
41
  { [e.focused]: R },
41
- { [e.disabled]: p },
42
- { [e.error]: i },
42
+ { [e.disabled]: u },
43
+ { [e.error]: a },
43
44
  { [e.active]: f }
44
45
  ),
45
46
  children: [
@@ -49,10 +50,10 @@ const $ = ({
49
50
  className: c(
50
51
  e.input,
51
52
  e[`input_${s}`],
52
- { [e.error]: i },
53
+ { [e.error]: a },
53
54
  { [e.active]: f }
54
55
  ),
55
- disabled: p,
56
+ disabled: u,
56
57
  placeholder: v,
57
58
  onChange: _,
58
59
  onKeyDown: S,
@@ -76,9 +77,9 @@ const $ = ({
76
77
  ]
77
78
  }
78
79
  ),
79
- i && u && /* @__PURE__ */ l(z, { defaultVariant: "labelSm", className: e.errorText, children: [
80
+ a && p && /* @__PURE__ */ l(z, { defaultVariant: "labelSm", className: e.errorText, children: [
80
81
  /* @__PURE__ */ t(F, { name: w.ALERT_ERROR, className: e.errorIcon }),
81
- u
82
+ p
82
83
  ] })
83
84
  ] });
84
85
  };