@zenpatient-org/healthspan-marketing-ui 0.1.167 → 0.1.168

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"),l=require("../Typography/Typography.cjs.js"),e=require("./claimBlock.module.css.cjs.js");function t({value:i,subtitle:r,description:o}){return a.jsxs("div",{className:e.default.claimBlock,children:[a.jsx(l.Typography,{className:e.default.value,as:"h3",defaultVariant:"displayXs",mobileVariant:"headingXs",children:i}),a.jsx(l.Typography,{className:e.default.subtitle,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:r}),a.jsx(l.Typography,{className:e.default.description,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:o})]})}exports.ClaimBlock=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),l=require("../Typography/Typography.cjs.js"),e=require("./claimBlock.module.css.cjs.js");function n({value:t,subtitle:d,description:i,valuePrefix:r,valueSuffix:s}){return a.jsxs("div",{className:e.default.claimBlock,children:[a.jsxs("div",{className:e.default.valueContainer,children:[r&&a.jsx(l.Typography,{className:e.default.valuePrefix,as:"h3",defaultVariant:"headingSm",mobileVariant:"headingSm",children:r}),a.jsx(l.Typography,{className:e.default.value,as:"h3",defaultVariant:"displayXs",mobileVariant:"displayXs",children:t}),s&&a.jsx(l.Typography,{className:e.default.valueSuffix,as:"h3",defaultVariant:"headingSm",mobileVariant:"headingSm",children:s})]}),a.jsx(l.Typography,{className:e.default.subtitle,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:d}),i&&a.jsx(l.Typography,{className:e.default.description,as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",children:i})]})}exports.ClaimBlock=n;
@@ -2,7 +2,9 @@ import { default as React } from 'react';
2
2
 
3
3
  export type ClaimBlockProps = {
4
4
  value: React.ReactNode;
5
+ valuePrefix?: string;
6
+ valueSuffix?: string;
5
7
  subtitle: string;
6
- description: string;
8
+ description?: string;
7
9
  };
8
- export declare function ClaimBlock({ value, subtitle, description }: ClaimBlockProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function ClaimBlock({ value, subtitle, description, valuePrefix, valueSuffix }: ClaimBlockProps): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,35 @@
1
- import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
- import { Typography as l } from "../Typography/Typography.es.js";
1
+ import { jsxs as d, jsx as i } from "react/jsx-runtime";
2
+ import { Typography as e } from "../Typography/Typography.es.js";
3
3
  import a from "./claimBlock.module.css.es.js";
4
- function n({ value: e, subtitle: r, description: s }) {
5
- return /* @__PURE__ */ o("div", { className: a.claimBlock, children: [
6
- /* @__PURE__ */ i(l, { className: a.value, as: "h3", defaultVariant: "displayXs", mobileVariant: "headingXs", children: e }),
7
- /* @__PURE__ */ i(l, { className: a.subtitle, as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", children: r }),
8
- /* @__PURE__ */ i(l, { className: a.description, as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", children: s })
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,
9
+ {
10
+ className: a.valuePrefix,
11
+ as: "h3",
12
+ defaultVariant: "headingSm",
13
+ mobileVariant: "headingSm",
14
+ children: s
15
+ }
16
+ ),
17
+ /* @__PURE__ */ i(e, { className: a.value, as: "h3", defaultVariant: "displayXs", mobileVariant: "displayXs", children: m }),
18
+ r && /* @__PURE__ */ i(
19
+ e,
20
+ {
21
+ className: a.valueSuffix,
22
+ as: "h3",
23
+ defaultVariant: "headingSm",
24
+ mobileVariant: "headingSm",
25
+ children: r
26
+ }
27
+ )
28
+ ] }),
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 })
9
31
  ] });
10
32
  }
11
33
  export {
12
- n as ClaimBlock
34
+ h as ClaimBlock
13
35
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l="claimBlock-module__claimBlock___8sWzW",e="claimBlock-module__value___7AaZG",c="claimBlock-module__subtitle___1HQ0l",o="claimBlock-module__description___qxp84",t={claimBlock:l,value:e,subtitle:c,description:o};exports.claimBlock=l;exports.default=t;exports.description=o;exports.subtitle=c;exports.value=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l="claimBlock-module__claimBlock___8sWzW",e="claimBlock-module__valueContainer___0UTKK",i="claimBlock-module__value___7AaZG",o="claimBlock-module__valuePrefix___9tNjP",u="claimBlock-module__valueSuffix___FnWfV",_="claimBlock-module__subtitle___1HQ0l",a="claimBlock-module__description___qxp84",c={claimBlock:l,valueContainer:e,value:i,valuePrefix:o,valueSuffix:u,subtitle:_,description:a};exports.claimBlock=l;exports.default=c;exports.description=a;exports.subtitle=_;exports.value=i;exports.valueContainer=e;exports.valuePrefix=o;exports.valueSuffix=u;
@@ -1,13 +1,19 @@
1
- const l = "claimBlock-module__claimBlock___8sWzW", c = "claimBlock-module__value___7AaZG", o = "claimBlock-module__subtitle___1HQ0l", _ = "claimBlock-module__description___qxp84", t = {
1
+ const l = "claimBlock-module__claimBlock___8sWzW", _ = "claimBlock-module__valueContainer___0UTKK", e = "claimBlock-module__value___7AaZG", o = "claimBlock-module__valuePrefix___9tNjP", c = "claimBlock-module__valueSuffix___FnWfV", a = "claimBlock-module__subtitle___1HQ0l", i = "claimBlock-module__description___qxp84", u = {
2
2
  claimBlock: l,
3
- value: c,
4
- subtitle: o,
5
- description: _
3
+ valueContainer: _,
4
+ value: e,
5
+ valuePrefix: o,
6
+ valueSuffix: c,
7
+ subtitle: a,
8
+ description: i
6
9
  };
7
10
  export {
8
11
  l as claimBlock,
9
- t as default,
10
- _ as description,
11
- o as subtitle,
12
- c as value
12
+ u as default,
13
+ i as description,
14
+ a as subtitle,
15
+ e as value,
16
+ _ as valueContainer,
17
+ o as valuePrefix,
18
+ c as valueSuffix
13
19
  };