@zenpatient-org/healthspan-marketing-ui 0.2.4 → 0.2.7
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/components/ImageGallery/ImageGallery.cjs.js +1 -1
- package/dist/components/ImageGallery/ImageGallery.d.ts +2 -1
- package/dist/components/ImageGallery/ImageGallery.es.js +29 -27
- package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.cjs.js +1 -0
- package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts +9 -0
- package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.es.js +16 -0
- package/dist/components/ImageGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css +30 -0
- package/dist/components/ImageGallery/components/ImageGalleryPagination/index.d.ts +1 -0
- package/dist/components/ImageGallery/components/index.d.ts +1 -0
- package/dist/components/ImageGallery/imageGallery.module.css +3 -3
- package/dist/components/PriceDisplay/PriceDisplay.cjs.js +1 -0
- package/dist/components/PriceDisplay/PriceDisplay.d.ts +12 -0
- package/dist/components/PriceDisplay/PriceDisplay.es.js +55 -0
- package/dist/components/PriceDisplay/index.d.ts +2 -0
- package/dist/components/PriceDisplay/priceDisplay.module.css +88 -0
- package/dist/components/Quote/Quote.cjs.js +1 -0
- package/dist/components/Quote/Quote.d.ts +10 -0
- package/dist/components/Quote/Quote.es.js +31 -0
- package/dist/components/Quote/Quote.module.css +29 -0
- package/dist/components/Quote/const.cjs.js +1 -0
- package/dist/components/Quote/const.d.ts +7 -0
- package/dist/components/Quote/const.es.js +16 -0
- package/dist/components/Quote/index.d.ts +2 -0
- package/dist/pageComponents/ScrollingFeatures/ScrollingFeatures.cjs.js +1 -0
- package/dist/pageComponents/ScrollingFeatures/ScrollingFeatures.d.ts +11 -0
- package/dist/pageComponents/ScrollingFeatures/ScrollingFeatures.es.js +12 -0
- package/dist/pageComponents/ScrollingFeatures/index.d.ts +2 -0
- package/dist/pageComponents/ScrollingFeatures/scrollingFeatures.module.css +32 -0
- package/dist/utils/periodView.cjs.js +1 -0
- package/dist/utils/periodView.d.ts +1 -0
- package/dist/utils/periodView.es.js +16 -0
- package/package.json +16 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("swiper/modules"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("swiper/modules"),d=require("swiper/react"),q=require("react"),w=require("../../utils/useSwiper/useSwiper.cjs.js"),j=require("../../utils/cn/cn.cjs.js");;/* empty css */;/* empty css */;/* empty css */const i=require("../../src/components/ImageGallery/imageGallery.module.css"),y=require("../Label/Label.cjs.js"),x=require("./components/ImageGalleryPagination/ImageGalleryPagination.cjs.js"),P=require("../GalleryPagination/GalleryPagination.cjs.js"),_=[m.Navigation],I=({images:n,label:a,className:p,pagination:s="plain"})=>{const{activeIndex:t,handleSlideTo:c,handleSlideChange:S,onSwiperInit:h,handleSwiperResize:g,handleUserInteraction:r}=w.useSwiperWithAutoPlay(3e3),o=q.useCallback(l=>{r(),c(l)},[r,c]);return e.jsxs("div",{className:j.cn(i.root,p),children:[a&&e.jsx("div",{className:i.labelWrap,children:e.jsx(y.Label,{color:"black",size:"sm",children:a})}),e.jsx(d.Swiper,{onSwiper:h,onResize:g,onSlideChange:S,onTouchStart:r,onTouchEnd:r,modules:_,spaceBetween:0,slidesPerView:1,className:i.swiper,children:n.map((l,u)=>e.jsx(d.SwiperSlide,{children:e.jsx("div",{className:i.imageWrapper,children:e.jsx("img",{src:l,alt:"product image",className:i.image,onClick:r},u)})},u))}),s==="preview"&&n.length>1&&e.jsx(x.ImageGalleryPagination,{images:n,activeIndex:t,onSelect:o}),s==="plain"&&n.length>1&&e.jsx(P.GalleryPagination,{count:n.length,activeIndex:t,onSelect:o})]})};exports.ImageGallery=I;
|
|
@@ -3,6 +3,7 @@ type ImageGalleryProps = {
|
|
|
3
3
|
images: Array<string>;
|
|
4
4
|
label?: string;
|
|
5
5
|
className?: string;
|
|
6
|
+
pagination?: 'plain' | 'preview';
|
|
6
7
|
};
|
|
7
|
-
export declare const ImageGallery: ({ images, label, className }: ImageGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const ImageGallery: ({ images, label, className, pagination }: ImageGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,52 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { Navigation as g } from "swiper/modules";
|
|
4
|
-
import { Swiper as u, SwiperSlide as
|
|
5
|
-
import { useCallback as
|
|
6
|
-
import { useSwiperWithAutoPlay as
|
|
7
|
-
import { cn as
|
|
4
|
+
import { Swiper as u, SwiperSlide as w } from "swiper/react";
|
|
5
|
+
import { useCallback as v } from "react";
|
|
6
|
+
import { useSwiperWithAutoPlay as I } from "../../utils/useSwiper/useSwiper.es.js";
|
|
7
|
+
import { cn as N } from "../../utils/cn/cn.es.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
import { Label as
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
import o from "../../components/ImageGallery/imageGallery.module.css";
|
|
12
|
+
import { Label as P } from "../Label/Label.es.js";
|
|
13
|
+
import { ImageGalleryPagination as y } from "./components/ImageGalleryPagination/ImageGalleryPagination.es.js";
|
|
14
|
+
import { GalleryPagination as C } from "../GalleryPagination/GalleryPagination.es.js";
|
|
15
|
+
const W = [g], D = ({ images: r, label: n, className: s, pagination: t = "plain" }) => {
|
|
16
|
+
const { activeIndex: a, handleSlideTo: m, handleSlideChange: d, onSwiperInit: h, handleSwiperResize: S, handleUserInteraction: i } = I(3e3), c = v(
|
|
17
|
+
(l) => {
|
|
18
|
+
i(), m(l);
|
|
18
19
|
},
|
|
19
|
-
[i,
|
|
20
|
+
[i, m]
|
|
20
21
|
);
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
|
|
22
|
+
return /* @__PURE__ */ f("div", { className: N(o.root, s), children: [
|
|
23
|
+
n && /* @__PURE__ */ e("div", { className: o.labelWrap, children: /* @__PURE__ */ e(P, { color: "black", size: "sm", children: n }) }),
|
|
23
24
|
/* @__PURE__ */ e(
|
|
24
25
|
u,
|
|
25
26
|
{
|
|
26
|
-
onSwiper:
|
|
27
|
-
onResize:
|
|
28
|
-
onSlideChange:
|
|
27
|
+
onSwiper: h,
|
|
28
|
+
onResize: S,
|
|
29
|
+
onSlideChange: d,
|
|
29
30
|
onTouchStart: i,
|
|
30
31
|
onTouchEnd: i,
|
|
31
|
-
modules:
|
|
32
|
+
modules: W,
|
|
32
33
|
spaceBetween: 0,
|
|
33
34
|
slidesPerView: 1,
|
|
34
|
-
className:
|
|
35
|
-
children:
|
|
35
|
+
className: o.swiper,
|
|
36
|
+
children: r.map((l, p) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e("div", { className: o.imageWrapper, children: /* @__PURE__ */ e(
|
|
36
37
|
"img",
|
|
37
38
|
{
|
|
38
|
-
src:
|
|
39
|
+
src: l,
|
|
39
40
|
alt: "product image",
|
|
40
|
-
className:
|
|
41
|
+
className: o.image,
|
|
41
42
|
onClick: i
|
|
42
43
|
},
|
|
43
|
-
|
|
44
|
-
) }) },
|
|
44
|
+
p
|
|
45
|
+
) }) }, p))
|
|
45
46
|
}
|
|
46
47
|
),
|
|
47
|
-
|
|
48
|
+
t === "preview" && r.length > 1 && /* @__PURE__ */ e(y, { images: r, activeIndex: a, onSelect: c }),
|
|
49
|
+
t === "plain" && r.length > 1 && /* @__PURE__ */ e(C, { count: r.length, activeIndex: a, onSelect: c })
|
|
48
50
|
] });
|
|
49
51
|
};
|
|
50
52
|
export {
|
|
51
|
-
|
|
53
|
+
D as ImageGallery
|
|
52
54
|
};
|
package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),r=require("../../../../utils/cn/cn.cjs.js"),t=require("../../../../src/components/ImageGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css"),c=({images:s,activeIndex:l,onSelect:i})=>n.jsx("div",{className:t.root,children:s.map((a,e)=>n.jsx("button",{type:"button",className:r.cn(t.thumbnailButton,{[t.active]:e===l}),onClick:()=>i(e),children:n.jsx("img",{src:a,alt:`thumbnail ${e+1}`,className:t.thumbnailImage})},a))});exports.ImageGalleryPagination=c;
|
package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
type ImageGalleryPaginationProps = {
|
|
4
|
+
images: string[];
|
|
5
|
+
activeIndex: number;
|
|
6
|
+
onSelect: (index: number) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const ImageGalleryPagination: React.FC<ImageGalleryPaginationProps>;
|
|
9
|
+
export {};
|
package/dist/components/ImageGallery/components/ImageGalleryPagination/ImageGalleryPagination.es.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as e } from "../../../../utils/cn/cn.es.js";
|
|
3
|
+
import t from "../../../../components/ImageGallery/components/ImageGalleryPagination/imageGalleryPagination.module.css";
|
|
4
|
+
const u = ({ images: n, activeIndex: r, onSelect: l }) => /* @__PURE__ */ m("div", { className: t.root, children: n.map((o, a) => /* @__PURE__ */ m(
|
|
5
|
+
"button",
|
|
6
|
+
{
|
|
7
|
+
type: "button",
|
|
8
|
+
className: e(t.thumbnailButton, { [t.active]: a === r }),
|
|
9
|
+
onClick: () => l(a),
|
|
10
|
+
children: /* @__PURE__ */ m("img", { src: o, alt: `thumbnail ${a + 1}`, className: t.thumbnailImage })
|
|
11
|
+
},
|
|
12
|
+
o
|
|
13
|
+
)) });
|
|
14
|
+
export {
|
|
15
|
+
u as ImageGalleryPagination
|
|
16
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
padding: 0 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.thumbnailButton {
|
|
9
|
+
width: 64px;
|
|
10
|
+
height: 64px;
|
|
11
|
+
padding: 0;
|
|
12
|
+
border: 1px solid var(--color-neutral-200);
|
|
13
|
+
border-radius: var(--border-radius-xs);
|
|
14
|
+
background: none;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
opacity: 0.5;
|
|
17
|
+
transition: opacity 0.3s ease;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.thumbnailButton.active {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
border-color: var(--color-neutral-200);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.thumbnailImage {
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
object-fit: cover;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImageGalleryPagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ImageGalleryPagination';
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
overflow: hidden;
|
|
10
10
|
border-radius: var(--border-radius-md);
|
|
11
11
|
background-color: var(--color-bg-neutral-light);
|
|
12
|
+
gap: 24px;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.labelWrap {
|
|
15
16
|
width: 100%;
|
|
16
17
|
display: flex;
|
|
17
18
|
align-items: flex-start;
|
|
18
|
-
margin-bottom: 12px;
|
|
19
19
|
padding: 0 24px;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
@media (width <= 768px) {
|
|
44
44
|
.root {
|
|
45
45
|
padding: 16px 0;
|
|
46
|
+
gap: 16px;
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.labelWrap {
|
|
49
50
|
padding: 0 16px;
|
|
50
|
-
margin-bottom: 14px;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.swiper {
|
|
54
|
-
margin-bottom:
|
|
54
|
+
margin-bottom: 0;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.imageWrapper {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),s=require("../Typography/Typography.cjs.js"),e=require("../../src/components/PriceDisplay/priceDisplay.module.css"),c=require("../../utils/cn/cn.cjs.js"),d=require("../../utils/periodView.cjs.js"),l=({items:i})=>a.jsx("div",{className:e.root,children:i.map((r,n)=>a.jsxs("div",{className:c.cn(e.container,r.display==="double"?e.double:e.single),children:[a.jsx(s.Typography,{as:"p",defaultVariant:r.display==="double"?"bodySm":"bodyLg",className:e.description,children:r.description}),a.jsxs("div",{className:e.priceWrapper,children:[a.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",className:e.prefix,children:r.prefix}),a.jsxs("div",{className:e.priceAmount,children:[a.jsx(s.Typography,{as:"p",defaultVariant:"headingXl",mobileVariant:"headingLg",className:e.price,children:(r.price/100).toFixed(0)}),a.jsx(s.Typography,{as:"p",defaultVariant:"headingXs",mobileVariant:"headingXxs",className:e.currency,children:"$"}),r.period!=="none"&&a.jsxs(s.Typography,{as:"p",defaultVariant:"labelMd",className:e.period,children:["/",d.shortPeriod(r.period)]})]})]})]},n))});exports.PriceDisplay=l;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type PriceDisplayProps = {
|
|
4
|
+
description: string;
|
|
5
|
+
prefix: string;
|
|
6
|
+
price: number;
|
|
7
|
+
period: 'none' | 'month' | 'year' | 'quarter';
|
|
8
|
+
display: 'single' | 'double';
|
|
9
|
+
};
|
|
10
|
+
export declare const PriceDisplay: React.FC<{
|
|
11
|
+
items: Array<PriceDisplayProps>;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { jsx as e, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as i } from "../Typography/Typography.es.js";
|
|
3
|
+
import a from "../../components/PriceDisplay/priceDisplay.module.css";
|
|
4
|
+
import { cn as o } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { shortPeriod as n } from "../../utils/periodView.es.js";
|
|
6
|
+
const f = ({ items: s }) => /* @__PURE__ */ e("div", { className: a.root, children: s.map((r, l) => /* @__PURE__ */ d(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: o(a.container, r.display === "double" ? a.double : a.single),
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ e(
|
|
12
|
+
i,
|
|
13
|
+
{
|
|
14
|
+
as: "p",
|
|
15
|
+
defaultVariant: r.display === "double" ? "bodySm" : "bodyLg",
|
|
16
|
+
className: a.description,
|
|
17
|
+
children: r.description
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ d("div", { className: a.priceWrapper, children: [
|
|
21
|
+
/* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodySm", className: a.prefix, children: r.prefix }),
|
|
22
|
+
/* @__PURE__ */ d("div", { className: a.priceAmount, children: [
|
|
23
|
+
/* @__PURE__ */ e(
|
|
24
|
+
i,
|
|
25
|
+
{
|
|
26
|
+
as: "p",
|
|
27
|
+
defaultVariant: "headingXl",
|
|
28
|
+
mobileVariant: "headingLg",
|
|
29
|
+
className: a.price,
|
|
30
|
+
children: (r.price / 100).toFixed(0)
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e(
|
|
34
|
+
i,
|
|
35
|
+
{
|
|
36
|
+
as: "p",
|
|
37
|
+
defaultVariant: "headingXs",
|
|
38
|
+
mobileVariant: "headingXxs",
|
|
39
|
+
className: a.currency,
|
|
40
|
+
children: "$"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
r.period !== "none" && /* @__PURE__ */ d(i, { as: "p", defaultVariant: "labelMd", className: a.period, children: [
|
|
44
|
+
"/",
|
|
45
|
+
n(r.period)
|
|
46
|
+
] })
|
|
47
|
+
] })
|
|
48
|
+
] })
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
l
|
|
52
|
+
)) });
|
|
53
|
+
export {
|
|
54
|
+
f as PriceDisplay
|
|
55
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 2.25rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@media (max-width: 768px) {
|
|
7
|
+
.root {
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
gap: 1rem;
|
|
10
|
+
padding: 0 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.root > :first-child {
|
|
14
|
+
border-right: none;
|
|
15
|
+
padding-right: 0;
|
|
16
|
+
padding-bottom: 1rem;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.container {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 3vw;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.container.double {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
gap: 1rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.container.double:first-child {
|
|
34
|
+
border-right: 1px solid var(--color-neutral-200);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (max-width: 768px) {
|
|
38
|
+
.container.double {
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.container.double:first-child {
|
|
44
|
+
border-right: none;
|
|
45
|
+
border-bottom: 1px solid var(--color-neutral-200);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.description {
|
|
50
|
+
flex: 1;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
max-width: 25ch;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.priceWrapper {
|
|
56
|
+
display: flex;
|
|
57
|
+
gap: 0.25rem;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
align-items: flex-start;
|
|
60
|
+
text-align: left;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.prefix {
|
|
64
|
+
color: var(--color-neutral-500);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.priceAmount {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: baseline;
|
|
70
|
+
line-height: 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.price {
|
|
74
|
+
grid-column: 1 / 2;
|
|
75
|
+
grid-row: 1 / 3;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.currency {
|
|
79
|
+
grid-column: 2 / 3;
|
|
80
|
+
grid-row: 1 / 2;
|
|
81
|
+
align-self: flex-start;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.period {
|
|
85
|
+
grid-column: 2 / 3;
|
|
86
|
+
grid-row: 2 / 3;
|
|
87
|
+
color: var(--color-neutral-500);
|
|
88
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../Typography/Typography.cjs.js"),t=require("../../src/components/Quote/Quote.module.css"),i=require("./const.cjs.js"),u=({prefix:a,color:n,quote:l,source:s,sourcePrefix:c})=>{var o;return e.jsxs("div",{className:t.quoteContainer,children:[e.jsxs("div",{className:t.quoteContent,children:[e.jsx("img",{src:(o=i.prefixSelection[a])==null?void 0:o[n],alt:`${a} icon`,className:t.quoteIcon}),e.jsx(r.Typography,{as:"p",defaultVariant:"preambleSm",mobileVariant:"bodyXl",className:t.quoteText,children:l})]}),s&&e.jsxs(r.Typography,{as:"figcaption",defaultVariant:"labelMd",mobileVariant:"labelSm",emphasis:!0,className:t.quoteAuthor,children:[i.sourcePrefixSelection[c]," ",s]})]})};exports.Quote=u;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type QuoteProps = {
|
|
4
|
+
prefix: 'quotation_mark';
|
|
5
|
+
color: 'indigo' | 'ochre' | 'solar' | 'grey';
|
|
6
|
+
quote: string;
|
|
7
|
+
sourcePrefix: 'hyphen' | 'dash';
|
|
8
|
+
source?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Quote: React.FC<QuoteProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsxs as a, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as l } from "../Typography/Typography.es.js";
|
|
3
|
+
import e from "../../components/Quote/Quote.module.css";
|
|
4
|
+
import { prefixSelection as c, sourcePrefixSelection as p } from "./const.es.js";
|
|
5
|
+
const b = ({ prefix: t, color: s, quote: m, source: o, sourcePrefix: n }) => {
|
|
6
|
+
var r;
|
|
7
|
+
return /* @__PURE__ */ a("div", { className: e.quoteContainer, children: [
|
|
8
|
+
/* @__PURE__ */ a("div", { className: e.quoteContent, children: [
|
|
9
|
+
/* @__PURE__ */ i("img", { src: (r = c[t]) == null ? void 0 : r[s], alt: `${t} icon`, className: e.quoteIcon }),
|
|
10
|
+
/* @__PURE__ */ i(l, { as: "p", defaultVariant: "preambleSm", mobileVariant: "bodyXl", className: e.quoteText, children: m })
|
|
11
|
+
] }),
|
|
12
|
+
o && /* @__PURE__ */ a(
|
|
13
|
+
l,
|
|
14
|
+
{
|
|
15
|
+
as: "figcaption",
|
|
16
|
+
defaultVariant: "labelMd",
|
|
17
|
+
mobileVariant: "labelSm",
|
|
18
|
+
emphasis: !0,
|
|
19
|
+
className: e.quoteAuthor,
|
|
20
|
+
children: [
|
|
21
|
+
p[n],
|
|
22
|
+
" ",
|
|
23
|
+
o
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
b as Quote
|
|
31
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.quoteContainer {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 24px;
|
|
5
|
+
margin: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.quoteContent {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: auto 1fr;
|
|
11
|
+
align-items: flex-start;
|
|
12
|
+
gap: 1rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.quoteIcon {
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
width: 1.5rem;
|
|
18
|
+
height: auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.quoteText {
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.quoteAuthor {
|
|
26
|
+
align-self: flex-end;
|
|
27
|
+
text-transform: uppercase;
|
|
28
|
+
color: var(--color-neutral-500);
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t={quotation_mark:{indigo:"https://methodical-vitality-96814f361f.media.strapiapp.com/quote_icon_e0242e7418.svg",ochre:"https://methodical-vitality-96814f361f.media.strapiapp.com/ochre_quote_9ed26a4ec7.svg",solar:"https://methodical-vitality-96814f361f.media.strapiapp.com/solar_quote_534860f311.svg",grey:"https://methodical-vitality-96814f361f.media.strapiapp.com/grey_a08b0fedad.svg"}},i={hyphen:e.jsx("span",{children:"—"}),dash:e.jsx("span",{children:"–"})};exports.prefixSelection=t;exports.sourcePrefixSelection=i;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type QuotePrefix = 'quotation_mark';
|
|
2
|
+
export type QuoteColor = 'indigo' | 'ochre' | 'solar' | 'grey';
|
|
3
|
+
export declare const prefixSelection: Record<QuotePrefix, Record<QuoteColor, `https://${string}`>>;
|
|
4
|
+
export declare const sourcePrefixSelection: {
|
|
5
|
+
hyphen: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
dash: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
const i = {
|
|
3
|
+
quotation_mark: {
|
|
4
|
+
indigo: "https://methodical-vitality-96814f361f.media.strapiapp.com/quote_icon_e0242e7418.svg",
|
|
5
|
+
ochre: "https://methodical-vitality-96814f361f.media.strapiapp.com/ochre_quote_9ed26a4ec7.svg",
|
|
6
|
+
solar: "https://methodical-vitality-96814f361f.media.strapiapp.com/solar_quote_534860f311.svg",
|
|
7
|
+
grey: "https://methodical-vitality-96814f361f.media.strapiapp.com/grey_a08b0fedad.svg"
|
|
8
|
+
}
|
|
9
|
+
}, a = {
|
|
10
|
+
hyphen: /* @__PURE__ */ t("span", { children: "—" }),
|
|
11
|
+
dash: /* @__PURE__ */ t("span", { children: "–" })
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
i as prefixSelection,
|
|
15
|
+
a as sourcePrefixSelection
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../src/pageComponents/ScrollingFeatures/scrollingFeatures.module.css"),o=require("../../components/InfiniteScroll/InfiniteScroll.cjs.js"),c=require("../../components/Icon/Icon.cjs.js"),a=require("../../components/Typography/Typography.cjs.js"),l=({text:n,icon:t,href:s})=>e.jsxs("a",{href:s,className:r.feature,children:[e.jsx(c.Icon,{className:r.featureIcon,name:t}),e.jsx(a.Typography,{className:r.featureText,defaultVariant:"labelMd",children:n})]}),i=({items:n})=>e.jsx("section",{className:r.root,children:n.length>0&&e.jsx("div",{className:r.featuresContainer,children:e.jsx(o.InfiniteScroll,{items:n,renderItem:l})})});exports.ScrollingFeatures=i;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EIconName } from '../../components/Icon';
|
|
2
|
+
|
|
3
|
+
export type TScrollingFeatureItem = {
|
|
4
|
+
icon: EIconName;
|
|
5
|
+
text: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
};
|
|
8
|
+
export type TScrollingFeatures = {
|
|
9
|
+
items: ReadonlyArray<TScrollingFeatureItem>;
|
|
10
|
+
};
|
|
11
|
+
export declare const ScrollingFeatures: ({ items }: TScrollingFeatures) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import r from "../../pageComponents/ScrollingFeatures/scrollingFeatures.module.css";
|
|
3
|
+
import { InfiniteScroll as s } from "../../components/InfiniteScroll/InfiniteScroll.es.js";
|
|
4
|
+
import { Icon as l } from "../../components/Icon/Icon.es.js";
|
|
5
|
+
import { Typography as c } from "../../components/Typography/Typography.es.js";
|
|
6
|
+
const m = ({ text: t, icon: a, href: o }) => /* @__PURE__ */ n("a", { href: o, className: r.feature, children: [
|
|
7
|
+
/* @__PURE__ */ e(l, { className: r.featureIcon, name: a }),
|
|
8
|
+
/* @__PURE__ */ e(c, { className: r.featureText, defaultVariant: "labelMd", children: t })
|
|
9
|
+
] }), h = ({ items: t }) => /* @__PURE__ */ e("section", { className: r.root, children: t.length > 0 && /* @__PURE__ */ e("div", { className: r.featuresContainer, children: /* @__PURE__ */ e(s, { items: t, renderItem: m }) }) });
|
|
10
|
+
export {
|
|
11
|
+
h as ScrollingFeatures
|
|
12
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.featuresContainer {
|
|
7
|
+
padding: 16px 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.feature {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 12px;
|
|
14
|
+
padding: 0 40px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.featureText {
|
|
18
|
+
line-height: 110%;
|
|
19
|
+
letter-spacing: -0.42px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.featureIcon {
|
|
23
|
+
margin-top: -2px;
|
|
24
|
+
width: 16px;
|
|
25
|
+
height: 16px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media screen and (width <= 768px) {
|
|
29
|
+
.feature {
|
|
30
|
+
padding: 0 24px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=e=>{switch(e){case"month":return"mo";case"year":return"yr";case"quarter":return"qtr";case"none":default:return""}};exports.shortPeriod=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const shortPeriod: (period: "none" | "month" | "year" | "quarter") => "" | "mo" | "yr" | "qtr";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenpatient-org/healthspan-marketing-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -160,6 +160,11 @@
|
|
|
160
160
|
"import": "./dist/components/Tabs/Tabs.es.js",
|
|
161
161
|
"require": "./dist/components/Tabs/Tabs.cjs.js"
|
|
162
162
|
},
|
|
163
|
+
"./Quotes": {
|
|
164
|
+
"types": "./dist/components/Quotes/index.d.ts",
|
|
165
|
+
"import": "./dist/components/Quotes/Quotes.es.js",
|
|
166
|
+
"require": "./dist/components/Quotes/Quotes.cjs.js"
|
|
167
|
+
},
|
|
163
168
|
"./StudyGridCard": {
|
|
164
169
|
"types": "./dist/components/StudyGridCard/StudyGridCard.d.ts",
|
|
165
170
|
"import": "./dist/components/StudyGridCard/StudyGridCard.es.js",
|
|
@@ -170,6 +175,11 @@
|
|
|
170
175
|
"import": "./dist/components/ProgramCard/ProgramCard.es.js",
|
|
171
176
|
"require": "./dist/components/ProgramCard/ProgramCard.cjs.js"
|
|
172
177
|
},
|
|
178
|
+
"./PriceDisplayComponent": {
|
|
179
|
+
"types": "./dist/components/PriceDisplayComponent/PriceDisplayComponent.d.ts",
|
|
180
|
+
"import": "./dist/components/PriceDisplayComponent/PriceDisplayComponent.es.js",
|
|
181
|
+
"require": "./dist/components/PriceDisplayComponent/PriceDisplayComponent.cjs.js"
|
|
182
|
+
},
|
|
173
183
|
"./ProductGalleryCard": {
|
|
174
184
|
"types": "./dist/components/ProductGalleryCard/ProductGalleryCard.d.ts",
|
|
175
185
|
"import": "./dist/components/ProductGalleryCard/ProductGalleryCard.es.js",
|
|
@@ -660,6 +670,11 @@
|
|
|
660
670
|
"import": "./dist/modules/ImageWithBenefits/ImageWithBenefits.es.js",
|
|
661
671
|
"require": "./dist/modules/ImageWithBenefits/ImageWithBenefits.cjs.js"
|
|
662
672
|
},
|
|
673
|
+
"./ScrollingFeatures": {
|
|
674
|
+
"types": "./dist/pageComponents/ScrollingFeatures/ScrollingFeatures.d.ts",
|
|
675
|
+
"import": "./dist/pageComponents/ScrollingFeatures/ScrollingFeatures.es.js",
|
|
676
|
+
"require": "./dist/pageComponents/ScrollingFeatures/ScrollingFeatures.cjs.js"
|
|
677
|
+
},
|
|
663
678
|
"./dist/*.css": "./dist/*.css",
|
|
664
679
|
"./dist/**/*.module.css": "./dist/**/*.module.css",
|
|
665
680
|
"./styles/core": {
|