@zenpatient-org/healthspan-marketing-ui 0.1.110 → 0.1.112

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"),s=require("../Button/Button.cjs.js"),c=require("../Typography/Typography.cjs.js"),i=require("../../utils/cn/cn.cjs.js"),a=require("./productGalleryCard.module.css.cjs.js"),f=({name:u,price:d,image:p,link:m,buttons:r,isHoverable:n=!0})=>{const o=t=>{t.preventDefault(),t.stopPropagation()};return e.jsxs("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:a.default.root,children:[e.jsxs("div",{className:a.default.productInfo,children:[e.jsx(c.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:a.default.title,children:u}),e.jsx(c.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:a.default.price,children:d})]}),e.jsx("img",{src:p,alt:"product image",className:a.default.productImage}),e.jsx("div",{onClick:o,className:i.cn(a.default.buttonContainerDesktop,n&&a.default.hoverableButtons),children:r.map((t,l)=>e.jsx(s.Button,{size:"sm",...t,children:t.label},l))}),e.jsx("div",{onClick:o,className:i.cn(a.default.buttonContainerMobile,n&&a.default.hoverableButtons),children:r.map((t,l)=>e.jsx(s.Button,{size:"xs",...t,children:t.label},l))})]})};exports.ProductGalleryCard=f;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../Button/Button.cjs.js"),s=require("../Typography/Typography.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),a=require("./productGalleryCard.module.css.cjs.js"),m=({name:i,price:u,image:d,link:p,buttons:t,isHoverable:n=!0})=>e.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:a.default.root,children:[e.jsxs("div",{className:a.default.productInfo,children:[e.jsx(s.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:a.default.title,children:i}),e.jsx(s.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:a.default.price,children:u})]}),e.jsx("img",{src:d,alt:"product image",className:a.default.productImage}),e.jsx("div",{className:c.cn(a.default.buttonContainerDesktop,n&&a.default.hoverableButtons),children:t.map((r,l)=>e.jsx(o.Button,{size:"sm",...r,children:r.label},l))}),e.jsx("div",{className:c.cn(a.default.buttonContainerMobile,n&&a.default.hoverableButtons),children:t.map((r,l)=>e.jsx(o.Button,{size:"xs",...r,children:r.label},l))})]});exports.ProductGalleryCard=m;
@@ -1,44 +1,25 @@
1
1
  "use client";
2
- import { jsxs as n, jsx as a } from "react/jsx-runtime";
3
- import { Button as s } from "../Button/Button.es.js";
4
- import { Typography as c } from "../Typography/Typography.es.js";
2
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
3
+ import { Button as n } from "../Button/Button.es.js";
4
+ import { Typography as s } from "../Typography/Typography.es.js";
5
5
  import { cn as m } from "../../utils/cn/cn.es.js";
6
6
  import e from "./productGalleryCard.module.css.es.js";
7
- const k = ({
8
- name: d,
9
- price: p,
10
- image: h,
11
- link: u,
7
+ const v = ({
8
+ name: c,
9
+ price: d,
10
+ image: p,
11
+ link: h,
12
12
  buttons: t,
13
13
  isHoverable: o = !0
14
- }) => {
15
- const i = (r) => {
16
- r.preventDefault(), r.stopPropagation();
17
- };
18
- return /* @__PURE__ */ n("a", { href: u, target: "_blank", rel: "noopener noreferrer", className: e.root, children: [
19
- /* @__PURE__ */ n("div", { className: e.productInfo, children: [
20
- /* @__PURE__ */ a(c, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: e.title, children: d }),
21
- /* @__PURE__ */ a(c, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: e.price, children: p })
22
- ] }),
23
- /* @__PURE__ */ a("img", { src: h, alt: "product image", className: e.productImage }),
24
- /* @__PURE__ */ a(
25
- "div",
26
- {
27
- onClick: i,
28
- className: m(e.buttonContainerDesktop, o && e.hoverableButtons),
29
- children: t.map((r, l) => /* @__PURE__ */ a(s, { size: "sm", ...r, children: r.label }, l))
30
- }
31
- ),
32
- /* @__PURE__ */ a(
33
- "div",
34
- {
35
- onClick: i,
36
- className: m(e.buttonContainerMobile, o && e.hoverableButtons),
37
- children: t.map((r, l) => /* @__PURE__ */ a(s, { size: "xs", ...r, children: r.label }, l))
38
- }
39
- )
40
- ] });
41
- };
14
+ }) => /* @__PURE__ */ i("a", { href: h, target: "_blank", rel: "noopener noreferrer", className: e.root, children: [
15
+ /* @__PURE__ */ i("div", { className: e.productInfo, children: [
16
+ /* @__PURE__ */ r(s, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: e.title, children: c }),
17
+ /* @__PURE__ */ r(s, { defaultVariant: "labelXl", mobileVariant: "labelLg", className: e.price, children: d })
18
+ ] }),
19
+ /* @__PURE__ */ r("img", { src: p, alt: "product image", className: e.productImage }),
20
+ /* @__PURE__ */ r("div", { className: m(e.buttonContainerDesktop, o && e.hoverableButtons), children: t.map((a, l) => /* @__PURE__ */ r(n, { size: "sm", ...a, children: a.label }, l)) }),
21
+ /* @__PURE__ */ r("div", { className: m(e.buttonContainerMobile, o && e.hoverableButtons), children: t.map((a, l) => /* @__PURE__ */ r(n, { size: "xs", ...a, children: a.label }, l)) })
22
+ ] });
42
23
  export {
43
- k as ProductGalleryCard
24
+ v as ProductGalleryCard
44
25
  };