@zenpatient-org/healthspan-marketing-ui 0.1.118 → 0.1.120
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/Cursor/components/ClientCursor.cjs.js +1 -1
- package/dist/components/Cursor/components/ClientCursor.es.js +18 -18
- package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.es.js +14 -14
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +31 -31
- package/dist/components/TextInput/textInput.module.css.cjs.js +1 -1
- package/dist/components/TextInput/textInput.module.css.es.js +20 -18
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.cjs.js +1 -1
- package/dist/modules/Testimonial/components/TextCard/TextCard.es.js +17 -17
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.cjs.js +1 -1
- package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.es.js +6 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("../../../../components/Typography/Typography.cjs.js"),i=require("../../../../components/RatingStars/RatingStars.cjs.js"),u=require("../Product/Product.cjs.js"),r=require("./textCard.module.css.cjs.js"),d=({background:o,review:a,product:s})=>{var l,e;return t.jsxs("div",{className:r.default.root,style:{backgroundImage:`url(${o.url})`},children:[t.jsx("div",{children:!!a.stars&&t.jsx(i.RatingStars,{rating:a.stars,size:"lg"})}),t.jsxs("div",{className:r.default.reviewContainer,children:[(a==null?void 0:a.title)&&t.jsx(n.Typography,{as:"h3",defaultVariant:"headingSm",mobileVariant:"headingXs",weight:"regular",children:a.title}),(a==null?void 0:a.description)&&t.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:a.description}),((l=a==null?void 0:a.author)==null?void 0:l.name)&&t.jsx(n.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:r.default.reviewAuthor,children:a.author.name})]}),t.jsxs("div",{className:r.default.infoContainer,children:[((e=a==null?void 0:a.author)==null?void 0:e.username)&&t.jsx(n.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:a.author.username}),s&&t.jsx(u.Product,{image:s.image,name:s.name,link:s.link})]})]})};exports.TextCard=d;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { RatingStars as
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as n } from "../../../../components/Typography/Typography.es.js";
|
|
3
|
+
import { RatingStars as d } from "../../../../components/RatingStars/RatingStars.es.js";
|
|
4
4
|
import { Product as h } from "../Product/Product.es.js";
|
|
5
|
-
import
|
|
6
|
-
const b = ({ background:
|
|
7
|
-
var
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
!!a.stars && /* @__PURE__ */ t(
|
|
10
|
-
|
|
11
|
-
a.title && /* @__PURE__ */ t(
|
|
12
|
-
a.description && /* @__PURE__ */ t(
|
|
13
|
-
((
|
|
14
|
-
|
|
5
|
+
import s from "./textCard.module.css.es.js";
|
|
6
|
+
const b = ({ background: o, review: a, product: l }) => {
|
|
7
|
+
var m, i;
|
|
8
|
+
return /* @__PURE__ */ r("div", { className: s.root, style: { backgroundImage: `url(${o.url})` }, children: [
|
|
9
|
+
/* @__PURE__ */ t("div", { children: !!a.stars && /* @__PURE__ */ t(d, { rating: a.stars, size: "lg" }) }),
|
|
10
|
+
/* @__PURE__ */ r("div", { className: s.reviewContainer, children: [
|
|
11
|
+
(a == null ? void 0 : a.title) && /* @__PURE__ */ t(n, { as: "h3", defaultVariant: "headingSm", mobileVariant: "headingXs", weight: "regular", children: a.title }),
|
|
12
|
+
(a == null ? void 0 : a.description) && /* @__PURE__ */ t(n, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: a.description }),
|
|
13
|
+
((m = a == null ? void 0 : a.author) == null ? void 0 : m.name) && /* @__PURE__ */ t(
|
|
14
|
+
n,
|
|
15
15
|
{
|
|
16
16
|
as: "p",
|
|
17
17
|
defaultVariant: "labelSm",
|
|
18
18
|
mobileVariant: "labelXs",
|
|
19
19
|
weight: "regular",
|
|
20
20
|
emphasis: !0,
|
|
21
|
-
className:
|
|
21
|
+
className: s.reviewAuthor,
|
|
22
22
|
children: a.author.name
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
] }),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
((
|
|
28
|
-
|
|
26
|
+
/* @__PURE__ */ r("div", { className: s.infoContainer, children: [
|
|
27
|
+
((i = a == null ? void 0 : a.author) == null ? void 0 : i.username) && /* @__PURE__ */ t(n, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: a.author.username }),
|
|
28
|
+
l && /* @__PURE__ */ t(h, { image: l.image, name: l.name, link: l.link })
|
|
29
29
|
] })
|
|
30
30
|
] });
|
|
31
31
|
};
|
package/dist/pageComponents/Footer/components/TopTreatmentsSlider/TopTreatmentsSlider.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),k=require("../../../../components/Button/Button.cjs.js"),u=require("../../../../components/Icon/constants.cjs.js"),d=require("../../../../components/Typography/Typography.cjs.js"),x=require("../../../../components/Icon/Icon.cjs.js"),a=require("./topTreatmentsSlider.module.css.cjs.js"),p=({title:g,products:n})=>{const[t,m]=l.useState(0),[r,c]=l.useState(1),[i,o]=l.useState(!1),j=l.useMemo(()=>{if(n.length===2){const h=(t-1+n.length)%n.length,f=(t+1)%n.length;return[n[h],n[t===h?f:t],n[f]].filter((T,S,_)=>_.findIndex(C=>C.name===T.name)===S)}const s=(t-1+n.length)%n.length,I=(t+1)%n.length;return[n[s],n[t],n[I]]},[t,n]),v=l.useCallback(()=>{i||(o(!0),c(2))},[i]),N=l.useCallback(()=>{i||(o(!0),c(0))},[i]),y=()=>{r===2?m(s=>(s+1)%n.length):r===0&&m(s=>(s-1+n.length)%n.length),c(1),o(!1)},b=l.useCallback(()=>{const s=n[t];s!=null&&s.link&&window.open(s.link,"_blank")},[n,t]);return e.jsxs("div",{className:a.default.root,children:[e.jsx(d.Typography,{as:"span",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:a.default.title,children:g}),e.jsxs("div",{className:a.default.sliderContainer,children:[e.jsx("div",{className:a.default.sliderTrack,style:{transform:`translateX(calc(-${r*100}% - ${r*10}px))`,transition:i?"transform 0.3s cubic-bezier(0.4,0,0.2,1)":"none"},onTransitionEnd:y,children:j.map(s=>e.jsx("div",{className:a.default.slide,children:e.jsxs("div",{className:a.default.productCard,children:[e.jsx("div",{className:a.default.imageWrapper,children:e.jsx("img",{src:s.image,alt:s.name,className:a.default.image})}),e.jsxs("div",{className:a.default.rightSide,children:[e.jsxs("div",{className:a.default.headerSplit,children:[e.jsx("div",{className:a.default.nameContainer,children:e.jsx(d.Typography,{defaultVariant:"headingXs",children:s.name})}),e.jsx(d.Typography,{defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.price,children:`Starting at ${s.price}/mo`})]}),e.jsx("div",{className:a.default.actions,children:e.jsx("div",{className:a.default.btnLearnMore,children:e.jsx(k.Button,{size:"sm",variant:"primary-invert",onClick:b,children:"Learn More"})})})]})]})},s.name))}),e.jsxs("div",{className:a.default.switchers,children:[e.jsx("div",{className:a.default.arrowIcon,onClick:N,children:e.jsx(x.Icon,{name:u.EIconName.ARROW_BACK})}),e.jsx("div",{className:a.default.arrowIcon,onClick:v,children:e.jsx(x.Icon,{name:u.EIconName.ARROW_FORWARD})})]})]})]})};exports.TopTreatmentsSlider=p;
|
|
@@ -6,16 +6,16 @@ import { EIconName as N } from "../../../../components/Icon/constants.es.js";
|
|
|
6
6
|
import { Typography as h } from "../../../../components/Typography/Typography.es.js";
|
|
7
7
|
import { Icon as x } from "../../../../components/Icon/Icon.es.js";
|
|
8
8
|
import n from "./topTreatmentsSlider.module.css.es.js";
|
|
9
|
-
const
|
|
9
|
+
const j = ({ title: b, products: e }) => {
|
|
10
10
|
const [l, f] = o(0), [t, m] = o(1), [s, c] = o(!1), I = V(() => {
|
|
11
11
|
if (e.length === 2) {
|
|
12
12
|
const g = (l - 1 + e.length) % e.length, v = (l + 1) % e.length;
|
|
13
13
|
return [e[g], e[l === g ? v : l], e[v]].filter(
|
|
14
|
-
(
|
|
14
|
+
(A, R, T) => T.findIndex((M) => M.name === A.name) === R
|
|
15
15
|
);
|
|
16
16
|
}
|
|
17
|
-
const a = (l - 1 + e.length) % e.length,
|
|
18
|
-
return [e[a], e[l], e[
|
|
17
|
+
const a = (l - 1 + e.length) % e.length, S = (l + 1) % e.length;
|
|
18
|
+
return [e[a], e[l], e[S]];
|
|
19
19
|
}, [l, e]), w = d(() => {
|
|
20
20
|
s || (c(!0), m(2));
|
|
21
21
|
}, [s]), C = d(() => {
|
|
@@ -60,7 +60,7 @@ const z = ({ title: b, products: e }) => {
|
|
|
60
60
|
defaultVariant: "bodyMd",
|
|
61
61
|
mobileVariant: "bodySm",
|
|
62
62
|
className: n.price,
|
|
63
|
-
children: a.price
|
|
63
|
+
children: `Starting at ${a.price}/mo`
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
] }),
|
|
@@ -77,5 +77,5 @@ const z = ({ title: b, products: e }) => {
|
|
|
77
77
|
] });
|
|
78
78
|
};
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
j as TopTreatmentsSlider
|
|
81
81
|
};
|