@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"),r=require("../../../../components/Typography/Typography.cjs.js"),o=require("../../../../components/RatingStars/RatingStars.cjs.js"),u=require("../Product/Product.cjs.js"),s=require("./textCard.module.css.cjs.js"),d=({background:i,review:a,product:e})=>{var n,l;return t.jsxs("div",{className:s.default.root,style:{backgroundImage:`url(${i.url})`},children:[!!a.stars&&t.jsx(o.RatingStars,{rating:a.stars,size:"lg"}),a&&t.jsxs("div",{className:s.default.reviewContainer,children:[a.title&&t.jsx(r.Typography,{as:"h3",defaultVariant:"headingSm",mobileVariant:"headingXs",weight:"regular",children:a.title}),a.description&&t.jsx(r.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:a.description}),((n=a.author)==null?void 0:n.name)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",weight:"regular",emphasis:!0,className:s.default.reviewAuthor,children:a.author.name})]}),t.jsxs("div",{className:s.default.infoContainer,children:[((l=a==null?void 0:a.author)==null?void 0:l.username)&&t.jsx(r.Typography,{as:"p",defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"regular",children:a.author.username}),e&&t.jsx(u.Product,{image:e.image,name:e.name,link:e.link})]})]})};exports.TextCard=d;
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 n, jsx as t } from "react/jsx-runtime";
2
- import { Typography as l } from "../../../../components/Typography/Typography.es.js";
3
- import { RatingStars as o } from "../../../../components/RatingStars/RatingStars.es.js";
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 i from "./textCard.module.css.es.js";
6
- const b = ({ background: m, review: a, product: r }) => {
7
- var e, s;
8
- return /* @__PURE__ */ n("div", { className: i.root, style: { backgroundImage: `url(${m.url})` }, children: [
9
- !!a.stars && /* @__PURE__ */ t(o, { rating: a.stars, size: "lg" }),
10
- a && /* @__PURE__ */ n("div", { className: i.reviewContainer, children: [
11
- a.title && /* @__PURE__ */ t(l, { as: "h3", defaultVariant: "headingSm", mobileVariant: "headingXs", weight: "regular", children: a.title }),
12
- a.description && /* @__PURE__ */ t(l, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: a.description }),
13
- ((e = a.author) == null ? void 0 : e.name) && /* @__PURE__ */ t(
14
- l,
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: i.reviewAuthor,
21
+ className: s.reviewAuthor,
22
22
  children: a.author.name
23
23
  }
24
24
  )
25
25
  ] }),
26
- /* @__PURE__ */ n("div", { className: i.infoContainer, children: [
27
- ((s = a == null ? void 0 : a.author) == null ? void 0 : s.username) && /* @__PURE__ */ t(l, { as: "p", defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "regular", children: a.author.username }),
28
- r && /* @__PURE__ */ t(h, { image: r.image, name: r.name, link: r.link })
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",