@zenpatient-org/healthspan-marketing-ui 0.2.34 → 0.2.36

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 a=require("react/jsx-runtime"),e=require("../../src/components/ClaimBlock/claimBlock.module.css"),i=require("../Typography/Typography.cjs.js");function o({value:n,subtitle:t,description:s,valuePrefix:l,valueSuffix:r}){return a.jsxs("div",{className:e.claimBlock,children:[a.jsxs("div",{className:e.valueContainer,children:[l&&a.jsx(i.Typography,{className:e.valuePrefix,as:"h3",defaultVariant:"headingSm",mobileVariant:"headingSm",children:l}),a.jsx(i.Typography,{className:e.value,as:"h3",defaultVariant:"displayXs",mobileVariant:"displayXs",children:n}),r&&a.jsx(i.Typography,{className:e.valueSuffix,as:"h3",defaultVariant:"headingSm",mobileVariant:"headingSm",children:r})]}),a.jsx(i.Typography,{className:e.subtitle,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:t}),s&&a.jsx(i.Typography,{className:e.description,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:s})]})}exports.ClaimBlock=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("../../src/components/ClaimBlock/claimBlock.module.css"),s=require("../Typography/Typography.cjs.js"),o=require("../Superscript/Superscript.cjs.js");function m({value:c,subtitle:d,subtitleSuperscript:i,description:r,descriptionSuperscript:l,valuePrefix:n,valueSuffix:t}){return a.jsxs("div",{className:e.claimBlock,children:[a.jsxs("div",{className:e.valueContainer,children:[n&&a.jsx(s.Typography,{className:e.valuePrefix,as:"h3",defaultVariant:"headingSm",mobileVariant:"headingSm",children:n}),a.jsx(s.Typography,{className:e.value,as:"h3",defaultVariant:"displayXs",mobileVariant:"displayXs",children:c}),t&&a.jsx(s.Typography,{className:e.valueSuffix,as:"h3",defaultVariant:"headingSm",mobileVariant:"headingSm",children:t})]}),a.jsxs(s.Typography,{className:e.subtitle,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:[d,i&&a.jsx(o.Superscript,{value:i})]}),r&&a.jsxs(s.Typography,{className:e.description,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:[r,l&&a.jsx(o.Superscript,{value:l})]})]})}exports.ClaimBlock=m;
@@ -5,6 +5,8 @@ export type ClaimBlockProps = {
5
5
  valuePrefix?: string;
6
6
  valueSuffix?: string;
7
7
  subtitle: string;
8
+ subtitleSuperscript?: string;
8
9
  description?: string;
10
+ descriptionSuperscript?: string;
9
11
  };
10
- export declare function ClaimBlock({ value, subtitle, description, valuePrefix, valueSuffix }: ClaimBlockProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function ClaimBlock({ value, subtitle, subtitleSuperscript, description, descriptionSuperscript, valuePrefix, valueSuffix, }: ClaimBlockProps): import("react/jsx-runtime").JSX.Element;
@@ -1,35 +1,50 @@
1
- import { jsxs as d, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as i } from "react/jsx-runtime";
2
2
  import a from "../../components/ClaimBlock/claimBlock.module.css";
3
- import { Typography as e } from "../Typography/Typography.es.js";
4
- function h({ value: m, subtitle: n, description: l, valuePrefix: s, valueSuffix: r }) {
5
- return /* @__PURE__ */ d("div", { className: a.claimBlock, children: [
6
- /* @__PURE__ */ d("div", { className: a.valueContainer, children: [
7
- s && /* @__PURE__ */ i(
8
- e,
3
+ import { Typography as l } from "../Typography/Typography.es.js";
4
+ import { Superscript as o } from "../Superscript/Superscript.es.js";
5
+ function b({
6
+ value: t,
7
+ subtitle: c,
8
+ subtitleSuperscript: m,
9
+ description: r,
10
+ descriptionSuperscript: s,
11
+ valuePrefix: d,
12
+ valueSuffix: n
13
+ }) {
14
+ return /* @__PURE__ */ e("div", { className: a.claimBlock, children: [
15
+ /* @__PURE__ */ e("div", { className: a.valueContainer, children: [
16
+ d && /* @__PURE__ */ i(
17
+ l,
9
18
  {
10
19
  className: a.valuePrefix,
11
20
  as: "h3",
12
21
  defaultVariant: "headingSm",
13
22
  mobileVariant: "headingSm",
14
- children: s
23
+ children: d
15
24
  }
16
25
  ),
17
- /* @__PURE__ */ i(e, { className: a.value, as: "h3", defaultVariant: "displayXs", mobileVariant: "displayXs", children: m }),
18
- r && /* @__PURE__ */ i(
19
- e,
26
+ /* @__PURE__ */ i(l, { className: a.value, as: "h3", defaultVariant: "displayXs", mobileVariant: "displayXs", children: t }),
27
+ n && /* @__PURE__ */ i(
28
+ l,
20
29
  {
21
30
  className: a.valueSuffix,
22
31
  as: "h3",
23
32
  defaultVariant: "headingSm",
24
33
  mobileVariant: "headingSm",
25
- children: r
34
+ children: n
26
35
  }
27
36
  )
28
37
  ] }),
29
- /* @__PURE__ */ i(e, { className: a.subtitle, as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", children: n }),
30
- l && /* @__PURE__ */ i(e, { className: a.description, as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", children: l })
38
+ /* @__PURE__ */ e(l, { className: a.subtitle, as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", children: [
39
+ c,
40
+ m && /* @__PURE__ */ i(o, { value: m })
41
+ ] }),
42
+ r && /* @__PURE__ */ e(l, { className: a.description, as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", children: [
43
+ r,
44
+ s && /* @__PURE__ */ i(o, { value: s })
45
+ ] })
31
46
  ] });
32
47
  }
33
48
  export {
34
- h as ClaimBlock
49
+ b as ClaimBlock
35
50
  };
@@ -15,20 +15,6 @@
15
15
  height: 100%;
16
16
  }
17
17
 
18
- .value sup,
19
- .value sub {
20
- position: relative;
21
- font-size: var(--font-size-heading-sm);
22
- line-height: var(--line-height-sm);
23
- letter-spacing: var(--letter-spacing-negative-sm);
24
- vertical-align: super;
25
- margin-left: 2px;
26
- }
27
-
28
- .value sub {
29
- vertical-align: baseline;
30
- }
31
-
32
18
  .valuePrefix {
33
19
  width: 20px;
34
20
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("./assets/VectorLogo.svg.cjs.js"),s=require("../../src/components/PlainFeaturesGroup/plainFeaturesGroup.module.css"),c=require("../Icon/Icon.cjs.js"),t=require("../Typography/Typography.cjs.js"),u=({items:a})=>e.jsxs("div",{className:s.container,children:[e.jsx("div",{className:s.plainFeaturesGroup,children:a&&a.map((r,o)=>e.jsxs("div",{className:s.feature,children:[r.icon&&e.jsx(c.Icon,{name:r.icon,className:s.featureIcon}),e.jsx(t.Typography,{className:s.featureText,defaultVariant:"bodyXs",children:r.text})]},o))}),e.jsx(n.default,{className:s.logo})]});exports.PlainFeaturesGroup=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("./assets/VectorLogo.svg.cjs.js"),s=require("../../src/components/PlainFeaturesGroup/plainFeaturesGroup.module.css"),n=require("../Icon/Icon.cjs.js"),t=require("../Typography/Typography.cjs.js"),u=require("../Superscript/Superscript.cjs.js"),p=({items:o})=>e.jsxs("div",{className:s.container,children:[e.jsx("div",{className:s.plainFeaturesGroup,children:o&&o.map((r,c)=>e.jsxs("div",{className:s.feature,children:[r.icon&&e.jsx(n.Icon,{name:r.icon,className:s.featureIcon}),e.jsxs(t.Typography,{className:s.featureText,defaultVariant:"bodyXs",children:[r.text,r.superscript&&!isNaN(r.superscript)&&e.jsx(u.Superscript,{value:r.superscript.toString()})]})]},c))}),e.jsx(a.default,{className:s.logo})]});exports.PlainFeaturesGroup=p;
@@ -1,10 +1,11 @@
1
- import { EIconName } from '../Icon';
2
1
  import { TPlainFeaturesGroupView } from '../../modules/IndividualProductCardV2/types';
2
+ import { EIconName } from '../Icon';
3
3
 
4
4
  export type TPlainFeaturesGroupProps = {
5
5
  items: Array<{
6
6
  icon: EIconName;
7
7
  text: string;
8
+ superscript?: number;
8
9
  href?: string;
9
10
  }>;
10
11
  };
@@ -1,15 +1,19 @@
1
- import { jsxs as s, jsx as a } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import c from "./assets/VectorLogo.svg.es.js";
3
- import r from "../../components/PlainFeaturesGroup/plainFeaturesGroup.module.css";
4
- import { Icon as n } from "../Icon/Icon.es.js";
3
+ import o from "../../components/PlainFeaturesGroup/plainFeaturesGroup.module.css";
4
+ import { Icon as p } from "../Icon/Icon.es.js";
5
5
  import { Typography as i } from "../Typography/Typography.es.js";
6
- const u = ({ items: o }) => /* @__PURE__ */ s("div", { className: r.container, children: [
7
- /* @__PURE__ */ a("div", { className: r.plainFeaturesGroup, children: o && o.map((e, t) => /* @__PURE__ */ s("div", { className: r.feature, children: [
8
- e.icon && /* @__PURE__ */ a(n, { name: e.icon, className: r.featureIcon }),
9
- /* @__PURE__ */ a(i, { className: r.featureText, defaultVariant: "bodyXs", children: e.text })
6
+ import { Superscript as n } from "../Superscript/Superscript.es.js";
7
+ const g = ({ items: s }) => /* @__PURE__ */ e("div", { className: o.container, children: [
8
+ /* @__PURE__ */ a("div", { className: o.plainFeaturesGroup, children: s && s.map((r, t) => /* @__PURE__ */ e("div", { className: o.feature, children: [
9
+ r.icon && /* @__PURE__ */ a(p, { name: r.icon, className: o.featureIcon }),
10
+ /* @__PURE__ */ e(i, { className: o.featureText, defaultVariant: "bodyXs", children: [
11
+ r.text,
12
+ r.superscript && !isNaN(r.superscript) && /* @__PURE__ */ a(n, { value: r.superscript.toString() })
13
+ ] })
10
14
  ] }, t)) }),
11
- /* @__PURE__ */ a(c, { className: r.logo })
15
+ /* @__PURE__ */ a(c, { className: o.logo })
12
16
  ] });
13
17
  export {
14
- u as PlainFeaturesGroup
18
+ g as PlainFeaturesGroup
15
19
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("../../utils/cn/cn.cjs.js"),c=require("../../src/components/Superscript/superscript.module.css");function u({className:e,value:r}){return s.jsx("sup",{className:t.cn(c.superscript,e),children:r})}exports.Superscript=u;
@@ -0,0 +1,4 @@
1
+ export declare function Superscript({ className, value }: {
2
+ className?: string;
3
+ value: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { cn as t } from "../../utils/cn/cn.es.js";
3
+ import o from "../../components/Superscript/superscript.module.css";
4
+ function c({ className: r, value: p }) {
5
+ return /* @__PURE__ */ s("sup", { className: t(o.superscript, r), children: p });
6
+ }
7
+ export {
8
+ c as Superscript
9
+ };
@@ -0,0 +1 @@
1
+ export { Superscript } from './Superscript';
@@ -0,0 +1,5 @@
1
+ .superscript {
2
+ font-size: 0.7em;
3
+ vertical-align: super;
4
+ margin-left: 2px;
5
+ }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("../../src/modules/Claims/claims.module.css"),l=require("../../components/Typography/Typography.cjs.js"),c=require("../../components/Button/Button.cjs.js"),o=require("../../components/ClaimBlock/ClaimBlock.cjs.js");function u({text:n,button:a,claimBlocks:r}){return e.jsx("section",{className:s.root,children:e.jsxs("div",{className:s.content,children:[(n||a)&&e.jsxs("div",{className:s.container,children:[n?e.jsx(l.Typography,{className:s.text,as:"h2",defaultVariant:"preambleLg",mobileVariant:"preambleSm",children:n}):e.jsx("div",{}),a&&e.jsx("div",{className:s.buttonContainer,children:e.jsx(c.Button,{as:"a",href:a.link,variant:"muted",size:"lg",children:a.text})})]}),e.jsx("div",{className:s.claimContainer,children:r.slice(0,4).map((i,t)=>e.jsx("div",{className:s.claimBlock,children:e.jsx(o.ClaimBlock,{value:i.value,subtitle:i.subtitle,description:i.description,valuePrefix:i.valuePrefix,valueSuffix:i.valueSuffix})},t))})]})})}exports.Claims=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../src/modules/Claims/claims.module.css"),l=require("../../components/Typography/Typography.cjs.js"),c=require("../../components/Button/Button.cjs.js"),o=require("../../components/ClaimBlock/ClaimBlock.cjs.js");function u({text:t,button:r,claimBlocks:n}){return e.jsx("section",{className:i.root,children:e.jsxs("div",{className:i.content,children:[(t||r)&&e.jsxs("div",{className:i.container,children:[t?e.jsx(l.Typography,{className:i.text,as:"h2",defaultVariant:"preambleLg",mobileVariant:"preambleSm",children:t}):e.jsx("div",{}),r&&e.jsx("div",{className:i.buttonContainer,children:e.jsx(c.Button,{as:"a",href:r.link,variant:"muted",size:"lg",children:r.text})})]}),e.jsx("div",{className:i.claimContainer,children:n.slice(0,4).map((s,a)=>e.jsx("div",{className:i.claimBlock,children:e.jsx(o.ClaimBlock,{value:s.value,subtitle:s.subtitle,subtitleSuperscript:s.subtitleSuperscript,description:s.description,descriptionSuperscript:s.descriptionSuperscript,valuePrefix:s.valuePrefix,valueSuffix:s.valueSuffix})},a))})]})})}exports.Claims=u;
@@ -1,33 +1,35 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import i from "../../modules/Claims/claims.module.css";
3
- import { Typography as m } from "../../components/Typography/Typography.es.js";
4
- import { Button as o } from "../../components/Button/Button.es.js";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import r from "../../modules/Claims/claims.module.css";
3
+ import { Typography as p } from "../../components/Typography/Typography.es.js";
4
+ import { Button as m } from "../../components/Button/Button.es.js";
5
5
  import { ClaimBlock as c } from "../../components/ClaimBlock/ClaimBlock.es.js";
6
- function h({ text: l, button: r, claimBlocks: n }) {
7
- return /* @__PURE__ */ e("section", { className: i.root, children: /* @__PURE__ */ s("div", { className: i.content, children: [
8
- (l || r) && /* @__PURE__ */ s("div", { className: i.container, children: [
9
- l ? /* @__PURE__ */ e(
10
- m,
6
+ function h({ text: a, button: s, claimBlocks: l }) {
7
+ return /* @__PURE__ */ e("section", { className: r.root, children: /* @__PURE__ */ t("div", { className: r.content, children: [
8
+ (a || s) && /* @__PURE__ */ t("div", { className: r.container, children: [
9
+ a ? /* @__PURE__ */ e(
10
+ p,
11
11
  {
12
- className: i.text,
12
+ className: r.text,
13
13
  as: "h2",
14
14
  defaultVariant: "preambleLg",
15
15
  mobileVariant: "preambleSm",
16
- children: l
16
+ children: a
17
17
  }
18
18
  ) : /* @__PURE__ */ e("div", {}),
19
- r && /* @__PURE__ */ e("div", { className: i.buttonContainer, children: /* @__PURE__ */ e(o, { as: "a", href: r.link, variant: "muted", size: "lg", children: r.text }) })
19
+ s && /* @__PURE__ */ e("div", { className: r.buttonContainer, children: /* @__PURE__ */ e(m, { as: "a", href: s.link, variant: "muted", size: "lg", children: s.text }) })
20
20
  ] }),
21
- /* @__PURE__ */ e("div", { className: i.claimContainer, children: n.slice(0, 4).map((a, t) => /* @__PURE__ */ e("div", { className: i.claimBlock, children: /* @__PURE__ */ e(
21
+ /* @__PURE__ */ e("div", { className: r.claimContainer, children: l.slice(0, 4).map((i, n) => /* @__PURE__ */ e("div", { className: r.claimBlock, children: /* @__PURE__ */ e(
22
22
  c,
23
23
  {
24
- value: a.value,
25
- subtitle: a.subtitle,
26
- description: a.description,
27
- valuePrefix: a.valuePrefix,
28
- valueSuffix: a.valueSuffix
24
+ value: i.value,
25
+ subtitle: i.subtitle,
26
+ subtitleSuperscript: i.subtitleSuperscript,
27
+ description: i.description,
28
+ descriptionSuperscript: i.descriptionSuperscript,
29
+ valuePrefix: i.valuePrefix,
30
+ valueSuffix: i.valueSuffix
29
31
  }
30
- ) }, t)) })
32
+ ) }, n)) })
31
33
  ] }) });
32
34
  }
33
35
  export {
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),y=require("../../../../utils/cn/cn.cjs.js"),c=require("../../../../src/modules/IndividualProductCard/components/Features/features.module.css"),b=require("../../../../components/TypeBadge/TypeBadge.cjs.js"),i=require("../../../../components/Typography/Typography.cjs.js"),g=require("../../../../components/IconBracket/IconBracket.cjs.js"),m=({features:p})=>{const[n,u]=l.useState([]),d=l.useCallback(e=>{u(s=>s.includes(e)?s.filter(r=>r!==e):[...s,e])},[]);return t.jsx("div",{className:c.root,children:p.map((e,s)=>{const r=e.description&&e.collapsible,a=!!e.description,o=t.jsxs("div",{className:c.labelWrapper,children:[t.jsx(b.TypeBadge,{type:e.type},s),t.jsx(i.Typography,{className:c.label,as:"span",defaultVariant:a?"bodySm":"bodyMd",mobileVariant:a?"labelMd":"bodySm",weight:"regular",children:e.label})]});return t.jsxs("div",{className:c.feature,children:[r?t.jsxs("button",{className:c.header,onClick:()=>d(s),children:[o,t.jsx(g.IconBracket,{variant:n.includes(s)?"close":"plus",size:"sm"})]}):o,a&&t.jsx(i.Typography,{as:"p",defaultVariant:"bodyXs",className:y.cn(c.description,{[c.descriptionActive]:n.includes(s)||!r}),weight:"regular",children:e.description})]},`${e.label}-${s}`)})})};exports.Features=m;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("react"),y=require("../../../../utils/cn/cn.cjs.js"),t=require("../../../../src/modules/IndividualProductCard/components/Features/features.module.css"),g=require("../../../../components/TypeBadge/TypeBadge.cjs.js"),a=require("../../../../components/Typography/Typography.cjs.js"),p=require("../../../../components/Superscript/Superscript.cjs.js"),m=require("../../../../components/IconBracket/IconBracket.cjs.js"),S=({features:u})=>{const[n,d]=l.useState([]),b=l.useCallback(e=>{d(r=>r.includes(e)?r.filter(c=>c!==e):[...r,e])},[]);return s.jsx("div",{className:t.root,children:u.map((e,r)=>{const c=e.description&&e.collapsible,i=!!e.description,o=s.jsxs("div",{className:t.labelWrapper,children:[s.jsx(g.TypeBadge,{type:e.type},r),s.jsxs(a.Typography,{className:t.label,as:"h4",defaultVariant:i?"bodySm":"bodyMd",mobileVariant:i?"labelMd":"bodySm",weight:"regular",children:[e.label,e.labelSuperscript&&!isNaN(e.labelSuperscript)&&s.jsx(p.Superscript,{value:e.labelSuperscript.toString()})]})]});return s.jsxs("div",{className:t.feature,children:[c?s.jsxs("button",{className:t.header,onClick:()=>b(r),children:[o,s.jsx(m.IconBracket,{variant:n.includes(r)?"close":"plus",size:"sm"})]}):o,i&&s.jsxs(a.Typography,{as:"p",defaultVariant:"bodyXs",className:y.cn(t.description,{[t.descriptionActive]:n.includes(r)||!c}),weight:"regular",children:[e.description,e.descriptionSuperscript&&!isNaN(e.descriptionSuperscript)&&s.jsx(p.Superscript,{value:e.descriptionSuperscript.toString()})]})]},`${e.label}-${r}`)})})};exports.Features=S;
@@ -1,50 +1,57 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as a } from "react/jsx-runtime";
3
- import { useState as b, useCallback as u } from "react";
2
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
+ import { useState as u, useCallback as g } from "react";
4
4
  import { cn as h } from "../../../../utils/cn/cn.es.js";
5
- import l from "../../../../modules/IndividualProductCard/components/Features/features.module.css";
6
- import { TypeBadge as g } from "../../../../components/TypeBadge/TypeBadge.es.js";
7
- import { Typography as n } from "../../../../components/Typography/Typography.es.js";
5
+ import r from "../../../../modules/IndividualProductCard/components/Features/features.module.css";
6
+ import { TypeBadge as S } from "../../../../components/TypeBadge/TypeBadge.es.js";
7
+ import { Typography as a } from "../../../../components/Typography/Typography.es.js";
8
+ import { Superscript as n } from "../../../../components/Superscript/Superscript.es.js";
8
9
  import { IconBracket as y } from "../../../../components/IconBracket/IconBracket.es.js";
9
- const T = ({ features: p }) => {
10
- const [i, m] = b([]), d = u((e) => {
11
- m((s) => s.includes(e) ? s.filter((t) => t !== e) : [...s, e]);
10
+ const w = ({ features: m }) => {
11
+ const [c, d] = u([]), b = g((s) => {
12
+ d((i) => i.includes(s) ? i.filter((t) => t !== s) : [...i, s]);
12
13
  }, []);
13
- return /* @__PURE__ */ r("div", { className: l.root, children: p.map((e, s) => {
14
- const t = e.description && e.collapsible, o = !!e.description, c = /* @__PURE__ */ a("div", { className: l.labelWrapper, children: [
15
- /* @__PURE__ */ r(g, { type: e.type }, s),
16
- /* @__PURE__ */ r(
17
- n,
14
+ return /* @__PURE__ */ e("div", { className: r.root, children: m.map((s, i) => {
15
+ const t = s.description && s.collapsible, o = !!s.description, p = /* @__PURE__ */ l("div", { className: r.labelWrapper, children: [
16
+ /* @__PURE__ */ e(S, { type: s.type }, i),
17
+ /* @__PURE__ */ l(
18
+ a,
18
19
  {
19
- className: l.label,
20
- as: "span",
20
+ className: r.label,
21
+ as: "h4",
21
22
  defaultVariant: o ? "bodySm" : "bodyMd",
22
23
  mobileVariant: o ? "labelMd" : "bodySm",
23
24
  weight: "regular",
24
- children: e.label
25
+ children: [
26
+ s.label,
27
+ s.labelSuperscript && !isNaN(s.labelSuperscript) && /* @__PURE__ */ e(n, { value: s.labelSuperscript.toString() })
28
+ ]
25
29
  }
26
30
  )
27
31
  ] });
28
- return /* @__PURE__ */ a("div", { className: l.feature, children: [
29
- t ? /* @__PURE__ */ a("button", { className: l.header, onClick: () => d(s), children: [
30
- c,
31
- /* @__PURE__ */ r(y, { variant: i.includes(s) ? "close" : "plus", size: "sm" })
32
- ] }) : c,
33
- o && /* @__PURE__ */ r(
34
- n,
32
+ return /* @__PURE__ */ l("div", { className: r.feature, children: [
33
+ t ? /* @__PURE__ */ l("button", { className: r.header, onClick: () => b(i), children: [
34
+ p,
35
+ /* @__PURE__ */ e(y, { variant: c.includes(i) ? "close" : "plus", size: "sm" })
36
+ ] }) : p,
37
+ o && /* @__PURE__ */ l(
38
+ a,
35
39
  {
36
40
  as: "p",
37
41
  defaultVariant: "bodyXs",
38
- className: h(l.description, {
39
- [l.descriptionActive]: i.includes(s) || !t
42
+ className: h(r.description, {
43
+ [r.descriptionActive]: c.includes(i) || !t
40
44
  }),
41
45
  weight: "regular",
42
- children: e.description
46
+ children: [
47
+ s.description,
48
+ s.descriptionSuperscript && !isNaN(s.descriptionSuperscript) && /* @__PURE__ */ e(n, { value: s.descriptionSuperscript.toString() })
49
+ ]
43
50
  }
44
51
  )
45
- ] }, `${e.label}-${s}`);
52
+ ] }, `${s.label}-${i}`);
46
53
  }) });
47
54
  };
48
55
  export {
49
- T as Features
56
+ w as Features
50
57
  };
@@ -11,7 +11,7 @@
11
11
  padding: 64px 120px;
12
12
  display: grid;
13
13
  grid-template-columns: 1fr 1fr;
14
- grid-template-areas:
14
+ grid-template-areas:
15
15
  "gallery info"
16
16
  "gallery plans";
17
17
  column-gap: 64px;
@@ -19,7 +19,7 @@
19
19
  }
20
20
 
21
21
  .container.noPlans {
22
- grid-template-columns: 300px 1fr;
22
+ grid-template-columns: 1fr 1fr;
23
23
  grid-template-areas: "gallery info";
24
24
  column-gap: 120px;
25
25
  }
@@ -3,8 +3,10 @@ import { LabelColor } from '../../components/Label';
3
3
 
4
4
  export type TProductFeature = {
5
5
  label: string;
6
+ labelSuperscript?: number;
6
7
  type: ETypeBadge;
7
8
  description?: string;
9
+ descriptionSuperscript?: number;
8
10
  collapsible?: boolean;
9
11
  };
10
12
  export type TProductPlan = {
@@ -28,6 +28,7 @@ export type TPriceDisplayComponentView = {
28
28
  };
29
29
  export type TInternalPlainFeatureItemView = {
30
30
  text: string;
31
+ superscript?: number;
31
32
  icon: EIconName;
32
33
  href?: string;
33
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.2.34",
3
+ "version": "0.2.36",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -171,6 +171,11 @@
171
171
  "import": "./dist/components/StudyGridCard/StudyGridCard.es.js",
172
172
  "require": "./dist/components/StudyGridCard/StudyGridCard.cjs.js"
173
173
  },
174
+ "./Superscript": {
175
+ "types": "./dist/components/Superscript/index.d.ts",
176
+ "import": "./dist/components/Superscript/Superscript.es.js",
177
+ "require": "./dist/components/Superscript/Superscript.cjs.js"
178
+ },
174
179
  "./ProgramCard": {
175
180
  "types": "./dist/components/ProgramCard/ProgramCard.d.ts",
176
181
  "import": "./dist/components/ProgramCard/ProgramCard.es.js",