@zenpatient-org/healthspan-marketing-ui 0.2.17 → 0.2.18
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/modules/FeaturesGallery/FeaturesGallery.cjs.js +1 -1
- package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +10 -10
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.cjs.js +1 -1
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.d.ts +1 -2
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +13 -13
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css +4 -4
- package/dist/modules/FeaturesGallery/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../src/modules/FeaturesGallery/featuresGallery.module.css"),o=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../src/modules/FeaturesGallery/featuresGallery.module.css"),o=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),c=require("../../components/Typography/Typography.cjs.js"),n=require("./components/FeatureGrid/FeatureGrid.cjs.js"),h=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),m=({label:s,url:a})=>e.jsx("a",{href:a,className:r.label,children:e.jsx(c.Typography,{defaultVariant:"labelMd",emphasis:!0,mobileVariant:"labelSm",weight:"regular",children:s})}),y=({title:s,description:a,features:l,labels:t})=>e.jsxs("section",{className:r.root,children:[e.jsxs("div",{className:r.container,children:[e.jsxs("div",{className:r.header,children:[e.jsx(o.HighlightedTitle,{title:s,className:r.title,defaultVariant:"displayMd",mobileVariant:"headingXl"}),a&&e.jsx(c.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",children:a})]}),e.jsxs("div",{className:r.features,children:[e.jsx("div",{className:r.primaryFeatures,children:l.slice(0,2).map((i,d)=>e.jsx(n.FeatureGrid,{feature:i,type:"primary"},i.label))}),l.length>2&&e.jsx("div",{className:r.secondaryFeatures,children:l.slice(2).map((i,d)=>e.jsx(n.FeatureGrid,{feature:i,type:"secondary"},i.label))})]})]}),t.length>0&&e.jsx("div",{className:r.footer,children:e.jsx(h.InfiniteScroll,{items:t,renderItem:m})})]});exports.FeaturesGallery=y;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import a from "../../modules/FeaturesGallery/featuresGallery.module.css";
|
|
3
3
|
import { HighlightedTitle as c } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
|
-
import { Typography as
|
|
5
|
-
import { FeatureGrid as
|
|
4
|
+
import { Typography as n } from "../../components/Typography/Typography.es.js";
|
|
5
|
+
import { FeatureGrid as m } from "./components/FeatureGrid/FeatureGrid.es.js";
|
|
6
6
|
import { InfiniteScroll as h } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
|
|
7
|
-
const p = ({ label: t, url:
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
7
|
+
const p = ({ label: t, url: i }) => /* @__PURE__ */ e("a", { href: i, className: a.label, children: /* @__PURE__ */ e(n, { defaultVariant: "labelMd", emphasis: !0, mobileVariant: "labelSm", weight: "regular", children: t }) }), v = ({ title: t, description: i, features: s, labels: d }) => /* @__PURE__ */ l("section", { className: a.root, children: [
|
|
8
|
+
/* @__PURE__ */ l("div", { className: a.container, children: [
|
|
9
|
+
/* @__PURE__ */ l("div", { className: a.header, children: [
|
|
10
10
|
/* @__PURE__ */ e(
|
|
11
11
|
c,
|
|
12
12
|
{
|
|
@@ -16,11 +16,11 @@ const p = ({ label: t, url: l }) => /* @__PURE__ */ e("a", { href: l, className:
|
|
|
16
16
|
mobileVariant: "headingXl"
|
|
17
17
|
}
|
|
18
18
|
),
|
|
19
|
-
|
|
19
|
+
i && /* @__PURE__ */ e(n, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", children: i })
|
|
20
20
|
] }),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ e("div", { className: a.primaryFeatures, children: s.slice(0, 2).map((r,
|
|
23
|
-
s.length > 2 && /* @__PURE__ */ e("div", { className: a.secondaryFeatures, children: s.slice(2).map((r,
|
|
21
|
+
/* @__PURE__ */ l("div", { className: a.features, children: [
|
|
22
|
+
/* @__PURE__ */ e("div", { className: a.primaryFeatures, children: s.slice(0, 2).map((r, o) => /* @__PURE__ */ e(m, { feature: r, type: "primary" }, r.label)) }),
|
|
23
|
+
s.length > 2 && /* @__PURE__ */ e("div", { className: a.secondaryFeatures, children: s.slice(2).map((r, o) => /* @__PURE__ */ e(m, { feature: r, type: "secondary" }, r.label)) })
|
|
24
24
|
] })
|
|
25
25
|
] }),
|
|
26
26
|
d.length > 0 && /* @__PURE__ */ e("div", { className: a.footer, children: /* @__PURE__ */ e(h, { items: d, renderItem: p }) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("../../../../components/Icon/constants.cjs.js"),c=require("../../../../utils/cn/cn.cjs.js"),n=require("../../../../src/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css"),l=require("../../../../components/Typography/Typography.cjs.js"),i=require("../../../../components/IconButton/IconButton.cjs.js"),t={primary:{default:"headingXl",mobile:"headingXs"},secondary:{default:"headingSm",mobile:"headingXxs"}},m=({feature:s,className:r,type:o})=>e.jsxs("a",{className:c.cn(n.root,n[o],r),style:{backgroundImage:`url("${s.image}")`},href:s.url,children:[s.hoverTint&&e.jsx("div",{className:n.smoke,"data-smoke":s.hoverTint}),e.jsxs("div",{className:n.content,children:[e.jsx(l.Typography,{as:"h3",defaultVariant:t[o].default,mobileVariant:t[o].mobile,className:n.label,children:s.label}),e.jsx("div",{className:n.desktop,children:e.jsx(i.IconButton,{iconName:a.EIconName.ARROW_FORWARD,variant:"muted-invert",size:o==="primary"?"lg":"md"})}),e.jsx("div",{className:n.mobile,children:e.jsx(i.IconButton,{iconName:a.EIconName.ARROW_FORWARD,variant:"muted-invert",size:"sm"})})]})]});exports.FeatureGrid=m;
|
|
@@ -2,9 +2,8 @@ import { TFeature } from '../../types';
|
|
|
2
2
|
|
|
3
3
|
type Props = {
|
|
4
4
|
feature: TFeature;
|
|
5
|
-
index: number;
|
|
6
5
|
type: 'primary' | 'secondary';
|
|
7
6
|
className?: string;
|
|
8
7
|
};
|
|
9
|
-
export declare const FeatureGrid: ({ feature, className,
|
|
8
|
+
export declare const FeatureGrid: ({ feature, className, type }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { EIconName as o } from "../../../../components/Icon/constants.es.js";
|
|
3
|
-
import { cn as
|
|
3
|
+
import { cn as t } from "../../../../utils/cn/cn.es.js";
|
|
4
4
|
import a from "../../../../modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css";
|
|
5
|
-
import { Typography as
|
|
5
|
+
import { Typography as d } from "../../../../components/Typography/Typography.es.js";
|
|
6
6
|
import { IconButton as l } from "../../../../components/IconButton/IconButton.es.js";
|
|
7
|
-
const
|
|
7
|
+
const n = {
|
|
8
8
|
primary: { default: "headingXl", mobile: "headingXs" },
|
|
9
9
|
secondary: { default: "headingSm", mobile: "headingXxs" }
|
|
10
|
-
}, R = ({ feature:
|
|
10
|
+
}, R = ({ feature: i, className: s, type: m }) => /* @__PURE__ */ r(
|
|
11
11
|
"a",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
14
|
-
style: { backgroundImage: `url("${
|
|
15
|
-
href:
|
|
13
|
+
className: t(a.root, a[m], s),
|
|
14
|
+
style: { backgroundImage: `url("${i.image}")` },
|
|
15
|
+
href: i.url,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */ e("div", { className: a.smoke, "data-smoke":
|
|
17
|
+
i.hoverTint && /* @__PURE__ */ e("div", { className: a.smoke, "data-smoke": i.hoverTint }),
|
|
18
18
|
/* @__PURE__ */ r("div", { className: a.content, children: [
|
|
19
19
|
/* @__PURE__ */ e(
|
|
20
|
-
|
|
20
|
+
d,
|
|
21
21
|
{
|
|
22
22
|
as: "h3",
|
|
23
|
-
defaultVariant:
|
|
24
|
-
mobileVariant:
|
|
23
|
+
defaultVariant: n[m].default,
|
|
24
|
+
mobileVariant: n[m].mobile,
|
|
25
25
|
className: a.label,
|
|
26
|
-
children:
|
|
26
|
+
children: i.label
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
29
|
/* @__PURE__ */ e("div", { className: a.desktop, children: /* @__PURE__ */ e(
|
|
@@ -31,7 +31,7 @@ const s = {
|
|
|
31
31
|
{
|
|
32
32
|
iconName: o.ARROW_FORWARD,
|
|
33
33
|
variant: "muted-invert",
|
|
34
|
-
size:
|
|
34
|
+
size: m === "primary" ? "lg" : "md"
|
|
35
35
|
}
|
|
36
36
|
) }),
|
|
37
37
|
/* @__PURE__ */ e("div", { className: a.mobile, children: /* @__PURE__ */ e(l, { iconName: o.ARROW_FORWARD, variant: "muted-invert", size: "sm" }) })
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
background: lightgray -44.215px 0 / 114.84% 100% no-repeat;
|
|
55
55
|
transition: opacity 0.3s ease-in-out;
|
|
56
56
|
|
|
57
|
-
&[data-smoke='
|
|
57
|
+
&[data-smoke='orange'] {
|
|
58
58
|
background: url('./assets/smoke-1.jpg') lightgray 50% / cover no-repeat;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
&[data-smoke='
|
|
61
|
+
&[data-smoke='blue'] {
|
|
62
62
|
background: url('./assets/smoke-2.jpg') lightgray 1.232px 0 / 114.84% 100% no-repeat;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
&[data-smoke='
|
|
65
|
+
&[data-smoke='red'] {
|
|
66
66
|
background: url('./assets/smoke-3.jpg') lightgray -44.215px 0 / 114.84% 100% no-repeat;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
display: flex;
|
|
78
78
|
width: 100%;
|
|
79
79
|
justify-content: space-between;
|
|
80
|
-
align-items:
|
|
80
|
+
align-items: inherit;
|
|
81
81
|
gap: var(--spacing-16);
|
|
82
82
|
}
|
|
83
83
|
|