@zenpatient-org/healthspan-marketing-ui 0.2.12 → 0.2.13
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.
- package/dist/components/PriceDisplay/PriceDisplay.cjs.js +1 -1
- package/dist/components/PriceDisplay/PriceDisplay.d.ts +1 -1
- package/dist/components/PriceDisplay/PriceDisplay.es.js +5 -5
- package/dist/components/PriceDisplay/priceDisplay.module.css +9 -3
- package/dist/modules/IndividualProductCardV2/types.d.ts +1 -0
- package/dist/pageComponents/ScrollingFeatures/scrollingFeatures.module.css +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("../Typography/Typography.cjs.js"),e=require("../../src/components/PriceDisplay/priceDisplay.module.css"),c=require("../../utils/cn/cn.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("../Typography/Typography.cjs.js"),e=require("../../src/components/PriceDisplay/priceDisplay.module.css"),c=require("../../utils/cn/cn.cjs.js"),o=require("../../utils/periodView.cjs.js"),l=({items:i})=>a.jsx("div",{className:e.root,children:i.map((r,n)=>a.jsxs("div",{className:c.cn(e.container,r.display==="double"?e.double:e.single),children:[a.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",className:e.description,children:r.description}),a.jsxs("div",{className:e.priceWrapper,children:[!!r.prefix&&a.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",className:e.prefix,children:r.prefix}),a.jsxs("div",{className:e.priceAmount,children:[a.jsx(s.Typography,{as:"p",defaultVariant:"headingXl",mobileVariant:"headingLg",className:e.price,children:(r.price/100).toFixed(0)}),a.jsx(s.Typography,{as:"p",defaultVariant:"headingXs",mobileVariant:"headingXxs",className:e.currency,children:"$"}),r.period!=="none"&&a.jsxs(s.Typography,{as:"p",defaultVariant:"labelMd",className:e.period,children:["/",o.shortPeriod(r.period)]})]})]})]},n))});exports.PriceDisplay=l;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as i } from "../Typography/Typography.es.js";
|
|
3
3
|
import a from "../../components/PriceDisplay/priceDisplay.module.css";
|
|
4
|
-
import { cn as
|
|
5
|
-
import { shortPeriod as
|
|
4
|
+
import { cn as o } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { shortPeriod as n } from "../../utils/periodView.es.js";
|
|
6
6
|
const f = ({ items: d }) => /* @__PURE__ */ e("div", { className: a.root, children: d.map((r, l) => /* @__PURE__ */ s(
|
|
7
7
|
"div",
|
|
8
8
|
{
|
|
9
|
-
className:
|
|
9
|
+
className: o(a.container, r.display === "double" ? a.double : a.single),
|
|
10
10
|
children: [
|
|
11
11
|
/* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodySm", className: a.description, children: r.description }),
|
|
12
12
|
/* @__PURE__ */ s("div", { className: a.priceWrapper, children: [
|
|
13
|
-
/* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodySm", className: a.prefix, children: r.prefix }),
|
|
13
|
+
!!r.prefix && /* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodySm", className: a.prefix, children: r.prefix }),
|
|
14
14
|
/* @__PURE__ */ s("div", { className: a.priceAmount, children: [
|
|
15
15
|
/* @__PURE__ */ e(
|
|
16
16
|
i,
|
|
@@ -34,7 +34,7 @@ const f = ({ items: d }) => /* @__PURE__ */ e("div", { className: a.root, childr
|
|
|
34
34
|
),
|
|
35
35
|
r.period !== "none" && /* @__PURE__ */ s(i, { as: "p", defaultVariant: "labelMd", className: a.period, children: [
|
|
36
36
|
"/",
|
|
37
|
-
|
|
37
|
+
n(r.period)
|
|
38
38
|
] })
|
|
39
39
|
] })
|
|
40
40
|
] })
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
display: flex;
|
|
3
|
-
gap:
|
|
3
|
+
gap: 36px;
|
|
4
|
+
padding-bottom: 24px;
|
|
5
|
+
border-bottom: 1px solid var(--color-neutral-200);
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
@media (max-width: 768px) {
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
display: flex;
|
|
22
24
|
justify-content: space-between;
|
|
23
25
|
align-items: center;
|
|
24
|
-
gap:
|
|
26
|
+
gap: 40px;
|
|
25
27
|
width: 100%;
|
|
26
28
|
}
|
|
27
29
|
|
|
@@ -32,11 +34,13 @@
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.container.double:first-child {
|
|
37
|
+
padding-right: 36px;
|
|
35
38
|
border-right: 1px solid var(--color-neutral-200);
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
@media (max-width: 768px) {
|
|
39
42
|
.container.double {
|
|
43
|
+
gap: 40px;
|
|
40
44
|
flex-direction: row;
|
|
41
45
|
align-items: flex-start;
|
|
42
46
|
}
|
|
@@ -44,6 +48,7 @@
|
|
|
44
48
|
.container.double:first-child {
|
|
45
49
|
border-right: none;
|
|
46
50
|
border-bottom: 1px solid var(--color-neutral-200);
|
|
51
|
+
padding-right: 0;
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
54
|
|
|
@@ -54,10 +59,11 @@
|
|
|
54
59
|
|
|
55
60
|
.priceWrapper {
|
|
56
61
|
display: flex;
|
|
57
|
-
gap:
|
|
62
|
+
gap: 4px;
|
|
58
63
|
flex-direction: column;
|
|
59
64
|
align-items: flex-start;
|
|
60
65
|
text-align: left;
|
|
66
|
+
min-width: 90px;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
.prefix {
|