@zenpatient-org/healthspan-marketing-ui 0.1.97 → 0.1.98

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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("../../../../components/Typography/Typography.cjs.js"),c=require("../../../../components/Icon/Icon.cjs.js"),l=require("../../../../components/Icon/constants.cjs.js"),o=require("./product.module.css.cjs.js"),d=({image:r,link:a,name:t})=>{const i=s=>{s.stopPropagation(),window.location.pathname===new URL(a,window.location.origin).pathname?window.scrollTo({top:0,behavior:"smooth"}):window.location.href=a};return e.jsxs("button",{className:o.default.root,onClick:i,children:[e.jsx("div",{className:o.default.imageContainer,children:e.jsx("img",{src:r,alt:t,className:o.default.image})}),e.jsxs("div",{className:o.default.infoContainer,children:[e.jsxs("div",{className:o.default.textContainer,children:[e.jsx(n.Typography,{as:"p",defaultVariant:"labelXs",mobileVariant:"labelSm",emphasis:!0,weight:"regular",children:"REVIEWED"}),e.jsx(n.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:t})]}),e.jsx(c.Icon,{name:l.EIconName.ARROW_OUTWARD,className:o.default.arrowIcon})]})]})};exports.Product=d;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../../../../components/Typography/Typography.cjs.js"),n=require("../../../../components/Icon/Icon.cjs.js"),c=require("../../../../components/Icon/constants.cjs.js"),a=require("./product.module.css.cjs.js"),i=({image:s,link:o,name:r})=>e.jsxs("a",{className:a.default.root,href:o,children:[e.jsx("div",{className:a.default.imageContainer,children:e.jsx("img",{src:s,alt:r,className:a.default.image})}),e.jsxs("div",{className:a.default.infoContainer,children:[e.jsxs("div",{className:a.default.textContainer,children:[e.jsx(t.Typography,{as:"p",defaultVariant:"labelXs",mobileVariant:"labelSm",emphasis:!0,weight:"regular",children:"REVIEWED"}),e.jsx(t.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",weight:"regular",children:r})]}),e.jsx(n.Icon,{name:c.EIconName.ARROW_OUTWARD,className:a.default.arrowIcon})]})]});exports.Product=i;
@@ -1,24 +1,19 @@
1
1
  "use client";
2
- import { jsxs as e, jsx as a } from "react/jsx-runtime";
3
- import { Typography as t } from "../../../../components/Typography/Typography.es.js";
2
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
3
+ import { Typography as o } from "../../../../components/Typography/Typography.es.js";
4
4
  import { Icon as m } from "../../../../components/Icon/Icon.es.js";
5
- import { EIconName as c } from "../../../../components/Icon/constants.es.js";
6
- import o from "./product.module.css.es.js";
7
- const g = ({ image: n, link: i, name: r }) => {
8
- const l = (s) => {
9
- s.stopPropagation(), window.location.pathname === new URL(i, window.location.origin).pathname ? window.scrollTo({ top: 0, behavior: "smooth" }) : window.location.href = i;
10
- };
11
- return /* @__PURE__ */ e("button", { className: o.root, onClick: l, children: [
12
- /* @__PURE__ */ a("div", { className: o.imageContainer, children: /* @__PURE__ */ a("img", { src: n, alt: r, className: o.image }) }),
13
- /* @__PURE__ */ e("div", { className: o.infoContainer, children: [
14
- /* @__PURE__ */ e("div", { className: o.textContainer, children: [
15
- /* @__PURE__ */ a(t, { as: "p", defaultVariant: "labelXs", mobileVariant: "labelSm", emphasis: !0, weight: "regular", children: "REVIEWED" }),
16
- /* @__PURE__ */ a(t, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: r })
17
- ] }),
18
- /* @__PURE__ */ a(m, { name: c.ARROW_OUTWARD, className: o.arrowIcon })
19
- ] })
20
- ] });
21
- };
5
+ import { EIconName as s } from "../../../../components/Icon/constants.es.js";
6
+ import a from "./product.module.css.es.js";
7
+ const f = ({ image: t, link: l, name: i }) => /* @__PURE__ */ e("a", { className: a.root, href: l, children: [
8
+ /* @__PURE__ */ r("div", { className: a.imageContainer, children: /* @__PURE__ */ r("img", { src: t, alt: i, className: a.image }) }),
9
+ /* @__PURE__ */ e("div", { className: a.infoContainer, children: [
10
+ /* @__PURE__ */ e("div", { className: a.textContainer, children: [
11
+ /* @__PURE__ */ r(o, { as: "p", defaultVariant: "labelXs", mobileVariant: "labelSm", emphasis: !0, weight: "regular", children: "REVIEWED" }),
12
+ /* @__PURE__ */ r(o, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", weight: "regular", children: i })
13
+ ] }),
14
+ /* @__PURE__ */ r(m, { name: s.ARROW_OUTWARD, className: a.arrowIcon })
15
+ ] })
16
+ ] });
22
17
  export {
23
- g as Product
18
+ f as Product
24
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.97",
3
+ "version": "0.1.98",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",