@zenpatient-org/healthspan-marketing-ui 0.1.118 → 0.1.119
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 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
|
};
|