@zenpatient-org/healthspan-marketing-ui 0.1.16 → 0.1.17
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/Benefit/Benefit.d.ts +8 -0
- package/dist/components/Benefit/index.d.ts +2 -0
- package/dist/components/Button/Button.es.js +33 -31
- package/dist/components/Callback/Callback.cjs.js +1 -1
- package/dist/components/Callback/Callback.es.js +16 -8
- package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +19 -0
- package/dist/components/ComplexTooltip/index.d.ts +1 -0
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.d.ts +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +13 -4
- package/dist/components/Cursor/Cursor.d.ts +6 -0
- package/dist/components/Cursor/components/ClientCursor.d.ts +3 -0
- package/dist/components/Cursor/components/ServerCursor.d.ts +3 -0
- package/dist/components/Cursor/index.d.ts +1 -0
- package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
- package/dist/components/FilterMenu/FilterMenu.d.ts +1 -1
- package/dist/components/FilterMenu/FilterMenu.es.js +82 -38
- package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +2 -2
- package/dist/components/HighlightedTitle/HighlightedTitle.es.js +33 -17
- package/dist/components/IconButton/IconButton.cjs.js +1 -1
- package/dist/components/IconButton/IconButton.es.js +16 -19
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.d.ts +3 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +80 -46
- package/dist/components/Label/Label.cjs.js +1 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.es.js +15 -9
- package/dist/components/Label/types.d.ts +1 -0
- package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -0
- package/dist/components/ProductGallery/ProductGallery.d.ts +8 -0
- package/dist/components/ProductGallery/ProductGallery.es.js +96 -0
- package/dist/components/ProductGallery/index.d.ts +2 -0
- package/dist/components/ProductGallery/productGallery.module.css.cjs.js +1 -0
- package/dist/components/ProductGallery/productGallery.module.css.es.js +27 -0
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +2 -11
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +67 -20
- package/dist/components/ProductGalleryCard/index.d.ts +1 -0
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +12 -10
- package/dist/components/ProductGalleryCard/types.d.ts +11 -0
- package/dist/components/ProductListing/ProductListing.d.ts +19 -0
- package/dist/components/ProductListing/index.d.ts +1 -0
- package/dist/components/ProgramCard/ProgramCard.d.ts +13 -0
- package/dist/components/ProgramCard/index.d.ts +1 -0
- package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -0
- package/dist/components/ProgressButton/ProgressButton.es.js +63 -0
- package/dist/components/ProgressButton/progressButton.module.css.cjs.js +1 -0
- package/dist/components/ProgressButton/progressButton.module.css.es.js +21 -0
- package/dist/components/ProgressButton/types.d.ts +1 -1
- package/dist/components/Tabs/Tabs.cjs.js +1 -1
- package/dist/components/Tabs/Tabs.d.ts +4 -2
- package/dist/components/Tabs/Tabs.es.js +17 -15
- package/dist/components/Tabs/TabsWithFade.cjs.js +1 -0
- package/dist/components/Tabs/TabsWithFade.d.ts +9 -0
- package/dist/components/Tabs/TabsWithFade.es.js +43 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/tabs.module.css.cjs.js +1 -1
- package/dist/components/Tabs/tabs.module.css.es.js +23 -15
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.es.js +10 -1
- package/dist/components/TextButton/TextButton.cjs.js +1 -0
- package/dist/components/TextButton/TextButton.es.js +39 -0
- package/dist/components/TextButton/textButton.module.css.cjs.js +1 -0
- package/dist/components/TextButton/textButton.module.css.es.js +19 -0
- package/dist/components/TypeBadge/TypeBadge.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.es.js +14 -1
- package/dist/components/index.d.ts +8 -1
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +48 -36
- package/dist/modules/Comparison/Comparison.d.ts +1 -1
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.d.ts +1 -1
- package/dist/modules/Comparison/types.d.ts +2 -2
- package/dist/modules/FeaturedIn/FeaturedIn.d.ts +21 -0
- package/dist/modules/FeaturedIn/index.d.ts +1 -0
- package/dist/modules/FeaturesGallery/FeaturesGallery.d.ts +1 -1
- package/dist/modules/FollowTheScience/FollowTheScience.d.ts +10 -0
- package/dist/modules/FollowTheScience/index.d.ts +1 -0
- package/dist/modules/HowItWorks/HowItWorks.d.ts +11 -0
- package/dist/modules/HowItWorks/components/Content/Content.d.ts +10 -0
- package/dist/modules/HowItWorks/components/Content/index.d.ts +1 -0
- package/dist/modules/HowItWorks/index.d.ts +1 -0
- package/dist/modules/OptimalHealth/OptimalHealth.d.ts +11 -0
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.d.ts +7 -0
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.d.ts +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/index.d.ts +1 -0
- package/dist/modules/OptimalHealth/index.d.ts +1 -0
- package/dist/modules/OptimalHealth/types.d.ts +12 -0
- package/dist/modules/OurProcess/OurProcess.d.ts +12 -0
- package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +9 -0
- package/dist/modules/OurProcess/components/StepCards/index.d.ts +1 -0
- package/dist/modules/OurProcess/index.d.ts +1 -0
- package/dist/modules/OurProcess/types.d.ts +5 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +3 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +53 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +10 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +46 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/index.d.ts +1 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/productsDisplayTabs.module.css.es.js +9 -0
- package/dist/modules/ProductsDisplay/components/index.d.ts +1 -0
- package/dist/modules/ProductsDisplay/index.d.ts +1 -0
- package/dist/modules/ProductsDisplay/productsDisplay.module.css.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/productsDisplay.module.css.es.js +11 -0
- package/dist/modules/ProductsDisplay/types.d.ts +11 -0
- package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -0
- package/dist/modules/ProductsDisplay/useProductsData.d.ts +15 -0
- package/dist/modules/ProductsDisplay/useProductsData.es.js +26 -0
- package/dist/modules/Studies/Studies.d.ts +1 -1
- package/dist/modules/TargetedPrograms/TargetedPrograms.d.ts +7 -0
- package/dist/modules/TargetedPrograms/index.d.ts +1 -0
- package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
- package/dist/modules/TotalCare/TotalCare.d.ts +2 -2
- package/dist/modules/TotalCare/TotalCare.es.js +38 -19
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.d.ts +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +20 -6
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +48 -22
- package/dist/modules/index.d.ts +1 -0
- package/dist/node_modules/swiper/modules/navigation.cjs.js +1 -0
- package/dist/node_modules/swiper/modules/navigation.es.js +127 -0
- package/dist/node_modules/swiper/shared/create-element-if-not-defined.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/create-element-if-not-defined.es.js +12 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.es.js +135 -0
- package/dist/node_modules/swiper/shared/swiper-core.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/swiper-core.es.js +2028 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.es.js +62 -0
- package/dist/node_modules/swiper/shared/update-swiper.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/update-swiper.es.js +192 -0
- package/dist/node_modules/swiper/shared/utils.cjs.js +1 -0
- package/dist/node_modules/swiper/shared/utils.es.js +186 -0
- package/dist/node_modules/swiper/swiper-react.cjs.js +1 -0
- package/dist/node_modules/swiper/swiper-react.es.js +242 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/useSwiper.cjs.js +1 -0
- package/dist/utils/useSwiper.d.ts +22 -0
- package/dist/utils/useSwiper.es.js +48 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +8 -6
- package/package.json +7 -2
|
@@ -1,62 +1,96 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [])
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
import { j as x } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { forwardRef as D, useRef as f, useState as M, useEffect as A, useCallback as h, useImperativeHandle as H } from "react";
|
|
3
|
+
import { cn as R } from "../../utils/cn.es.js";
|
|
4
|
+
import g from "./infiniteScroll.module.css.es.js";
|
|
5
|
+
function P({
|
|
6
|
+
items: c,
|
|
7
|
+
speed: w = 50,
|
|
8
|
+
contentClassName: W,
|
|
9
|
+
itemClassName: j,
|
|
10
|
+
rootClassName: q,
|
|
11
|
+
renderItem: E
|
|
12
|
+
}, F) {
|
|
13
|
+
const l = f(null), [s, y] = M(0), [i, S] = M(0), m = f(null), p = f(!1), u = f(performance.now()), [T, I] = M(2);
|
|
14
|
+
A(() => {
|
|
15
|
+
l.current && c.length > 0 && setTimeout(() => {
|
|
16
|
+
var o, r, a;
|
|
17
|
+
const e = ((r = (o = l.current) == null ? void 0 : o.parentElement) == null ? void 0 : r.offsetWidth) || 0, t = (((a = l.current) == null ? void 0 : a.scrollWidth) || 0) / 2, n = Math.ceil(e * 2 / t);
|
|
18
|
+
I(
|
|
19
|
+
Math.max(
|
|
20
|
+
2,
|
|
21
|
+
n % 2 === 0 ? n : n + 1
|
|
22
|
+
)
|
|
23
|
+
), S(t);
|
|
24
|
+
}, 0);
|
|
25
|
+
}, [c]);
|
|
26
|
+
const d = h(
|
|
27
|
+
(e) => {
|
|
28
|
+
if (!p.current) {
|
|
29
|
+
const t = e ?? performance.now(), n = t - u.current || 16.67;
|
|
30
|
+
u.current = t, y((o) => {
|
|
31
|
+
const r = o - w * (n / 1e3);
|
|
32
|
+
return Math.abs(r) >= i ? r + i : r;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
m.current = requestAnimationFrame(d);
|
|
36
|
+
},
|
|
37
|
+
[i, w]
|
|
38
|
+
);
|
|
39
|
+
A(() => (u.current = performance.now(), m.current = requestAnimationFrame(d), () => {
|
|
40
|
+
m.current && cancelAnimationFrame(m.current);
|
|
41
|
+
}), [d]);
|
|
42
|
+
const L = h(() => {
|
|
43
|
+
p.current = !0;
|
|
44
|
+
}, []), N = h(() => {
|
|
45
|
+
p.current = !1, u.current = performance.now();
|
|
46
|
+
}, []), C = h(
|
|
47
|
+
(e, t = 300) => {
|
|
48
|
+
const n = s, o = e - n, r = performance.now(), a = (X) => {
|
|
49
|
+
const b = X - r, v = Math.min(b / t, 1), k = 1 - Math.pow(1 - v, 3);
|
|
50
|
+
y(n + o * k), v < 1 && requestAnimationFrame(a);
|
|
51
|
+
};
|
|
52
|
+
requestAnimationFrame(a);
|
|
53
|
+
},
|
|
54
|
+
[s]
|
|
55
|
+
);
|
|
56
|
+
return H(F, () => ({
|
|
33
57
|
scrollLeft: () => {
|
|
34
|
-
const e =
|
|
35
|
-
|
|
58
|
+
const e = s - 200, t = Math.max(e, -i);
|
|
59
|
+
C(t);
|
|
36
60
|
},
|
|
37
61
|
scrollRight: () => {
|
|
38
|
-
const e =
|
|
39
|
-
|
|
62
|
+
const e = s + 200, t = Math.min(e, 0);
|
|
63
|
+
C(t);
|
|
40
64
|
}
|
|
41
|
-
})), /* @__PURE__ */
|
|
65
|
+
})), /* @__PURE__ */ x.jsx(
|
|
42
66
|
"div",
|
|
43
67
|
{
|
|
44
|
-
className:
|
|
45
|
-
onMouseEnter:
|
|
46
|
-
onMouseLeave:
|
|
47
|
-
children: /* @__PURE__ */
|
|
68
|
+
className: R(g.root, q),
|
|
69
|
+
onMouseEnter: L,
|
|
70
|
+
onMouseLeave: N,
|
|
71
|
+
children: /* @__PURE__ */ x.jsx(
|
|
48
72
|
"div",
|
|
49
73
|
{
|
|
50
|
-
className:
|
|
51
|
-
style: { transform: `
|
|
74
|
+
className: R(g.content, W),
|
|
75
|
+
style: { transform: `translate3D(${s}px, 0, 0)` },
|
|
52
76
|
ref: l,
|
|
53
|
-
children: Array.from(
|
|
77
|
+
children: Array.from(
|
|
78
|
+
{ length: c.length * T },
|
|
79
|
+
(e, t) => /* @__PURE__ */ x.jsx(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
className: R(g.item, j),
|
|
83
|
+
children: E(c[t % c.length], t)
|
|
84
|
+
},
|
|
85
|
+
t
|
|
86
|
+
)
|
|
87
|
+
)
|
|
54
88
|
}
|
|
55
89
|
)
|
|
56
90
|
}
|
|
57
91
|
);
|
|
58
92
|
}
|
|
59
|
-
const
|
|
93
|
+
const G = D(P);
|
|
60
94
|
export {
|
|
61
|
-
|
|
95
|
+
G as InfiniteScroll
|
|
62
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_virtual/jsx-runtime.cjs.js"),e=require("../../styles/typography.module.css.cjs.js"),r=require("../../utils/cn.cjs.js"),u=require("./label.module.css.cjs.js"),n={sm:e.default.labelXs,lg:e.default.labelSm},c=({children:l,color:a,size:t="sm",className:s})=>o.jsxRuntimeExports.jsx("div",{className:r.cn(u.default.root,e.default.labelEmphasis,n[t],s),"data-size":t,"data-color":a,children:l});exports.Label=c;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LabelProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const Label: ({ children, color, size }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const Label: ({ children, color, size, className, }: LabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as a } from "../../_virtual/jsx-runtime.es.js";
|
|
2
2
|
import o from "../../styles/typography.module.css.es.js";
|
|
3
|
-
import { cn as
|
|
4
|
-
import
|
|
5
|
-
const
|
|
3
|
+
import { cn as l } from "../../utils/cn.es.js";
|
|
4
|
+
import e from "./label.module.css.es.js";
|
|
5
|
+
const p = {
|
|
6
6
|
sm: o.labelXs,
|
|
7
7
|
lg: o.labelSm
|
|
8
|
-
},
|
|
8
|
+
}, b = ({
|
|
9
|
+
children: s,
|
|
10
|
+
color: t,
|
|
11
|
+
size: r = "sm",
|
|
12
|
+
className: m
|
|
13
|
+
}) => /* @__PURE__ */ a.jsx(
|
|
9
14
|
"div",
|
|
10
15
|
{
|
|
11
|
-
className:
|
|
12
|
-
|
|
16
|
+
className: l(
|
|
17
|
+
e.root,
|
|
13
18
|
o.labelEmphasis,
|
|
14
|
-
|
|
19
|
+
p[r],
|
|
20
|
+
m
|
|
15
21
|
),
|
|
16
22
|
"data-size": r,
|
|
17
23
|
"data-color": t,
|
|
@@ -19,5 +25,5 @@ const e = {
|
|
|
19
25
|
}
|
|
20
26
|
);
|
|
21
27
|
export {
|
|
22
|
-
|
|
28
|
+
b as Label
|
|
23
29
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.cjs.js"),E=require("react"),S=require("../../node_modules/swiper/modules/navigation.cjs.js"),a=require("../../node_modules/swiper/swiper-react.cjs.js"),d=require("../../utils/cn.cjs.js"),C=require("../../utils/useSwiper.cjs.js"),u=require("../ProgressButton/ProgressButton.cjs.js");;/* empty css */;/* empty css */;/* empty css */const e=require("./productGallery.module.css.cjs.js"),g=[S.default],q=({slides:c,header:x,isTabbed:t=!1})=>{const{swiper:r,activeIndex:i,isEnd:l,setIsEnd:p,hideNav:m,handleSlideChange:j,handlePrevClick:n,handleNextClick:o,onSwiperInit:h,handleSwiperResize:R}=C.useSwiper();return E.useEffect(()=>{r==null||r.setProgress(0,300)},[r]),s.jsxRuntimeExports.jsxs("div",{className:e.default.root,children:[s.jsxRuntimeExports.jsxs("div",{className:d.cn(e.default.topRow,{[e.default.topRowTabbed]:t}),children:[s.jsxRuntimeExports.jsx("div",{className:e.default.headerWrapper,children:x}),s.jsxRuntimeExports.jsx("div",{className:d.cn(e.default.swiperControlsDesktop,{[e.default.swiperControlsHidden]:m,[e.default.swiperControlsTabbed]:t}),children:s.jsxRuntimeExports.jsx(u.ProgressButton,{left:{disabled:i<=0,onClick:n},right:{disabled:l,onClick:o}})})]}),s.jsxRuntimeExports.jsx("div",{className:e.default.carouselArea,children:s.jsxRuntimeExports.jsx(a.Swiper,{onSwiper:h,onResize:R,onSlideChange:j,onReachEnd:()=>p(!0),modules:g,spaceBetween:0,slidesPerView:"auto",className:e.default.swiper,children:c.map((f,w)=>s.jsxRuntimeExports.jsx(a.SwiperSlide,{className:e.default.swiperSlide,children:f},w))})}),s.jsxRuntimeExports.jsx("div",{className:e.default.swiperControlsMobile,children:s.jsxRuntimeExports.jsx(u.ProgressButton,{left:{disabled:i<=0,onClick:n},right:{disabled:l,onClick:o}})})]})};exports.ProductGallery=q;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export type TProductGalleryProps = {
|
|
4
|
+
header: ReactNode;
|
|
5
|
+
slides: ReactNode[];
|
|
6
|
+
isTabbed?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const ProductGallery: ({ slides, header, isTabbed, }: TProductGalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { j as s } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { useEffect as S } from "react";
|
|
3
|
+
import N from "../../node_modules/swiper/modules/navigation.es.js";
|
|
4
|
+
import { Swiper as u, SwiperSlide as v } from "../../node_modules/swiper/swiper-react.es.js";
|
|
5
|
+
import { cn as d } from "../../utils/cn.es.js";
|
|
6
|
+
import { useSwiper as b } from "../../utils/useSwiper.es.js";
|
|
7
|
+
import { ProgressButton as n } from "../ProgressButton/ProgressButton.es.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
|
+
import e from "./productGallery.module.css.es.js";
|
|
12
|
+
const g = [N], A = ({
|
|
13
|
+
slides: c,
|
|
14
|
+
header: p,
|
|
15
|
+
isTabbed: r = !1
|
|
16
|
+
}) => {
|
|
17
|
+
const {
|
|
18
|
+
swiper: i,
|
|
19
|
+
activeIndex: o,
|
|
20
|
+
isEnd: l,
|
|
21
|
+
setIsEnd: m,
|
|
22
|
+
hideNav: h,
|
|
23
|
+
handleSlideChange: w,
|
|
24
|
+
handlePrevClick: t,
|
|
25
|
+
handleNextClick: a,
|
|
26
|
+
onSwiperInit: x,
|
|
27
|
+
handleSwiperResize: f
|
|
28
|
+
} = b();
|
|
29
|
+
return S(() => {
|
|
30
|
+
i == null || i.setProgress(0, 300);
|
|
31
|
+
}, [i]), /* @__PURE__ */ s.jsxs("div", { className: e.root, children: [
|
|
32
|
+
/* @__PURE__ */ s.jsxs(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: d(e.topRow, {
|
|
36
|
+
[e.topRowTabbed]: r
|
|
37
|
+
}),
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ s.jsx("div", { className: e.headerWrapper, children: p }),
|
|
40
|
+
/* @__PURE__ */ s.jsx(
|
|
41
|
+
"div",
|
|
42
|
+
{
|
|
43
|
+
className: d(e.swiperControlsDesktop, {
|
|
44
|
+
[e.swiperControlsHidden]: h,
|
|
45
|
+
[e.swiperControlsTabbed]: r
|
|
46
|
+
}),
|
|
47
|
+
children: /* @__PURE__ */ s.jsx(
|
|
48
|
+
n,
|
|
49
|
+
{
|
|
50
|
+
left: {
|
|
51
|
+
disabled: o <= 0,
|
|
52
|
+
onClick: t
|
|
53
|
+
},
|
|
54
|
+
right: {
|
|
55
|
+
disabled: l,
|
|
56
|
+
onClick: a
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
/* @__PURE__ */ s.jsx("div", { className: e.carouselArea, children: /* @__PURE__ */ s.jsx(
|
|
66
|
+
u,
|
|
67
|
+
{
|
|
68
|
+
onSwiper: x,
|
|
69
|
+
onResize: f,
|
|
70
|
+
onSlideChange: w,
|
|
71
|
+
onReachEnd: () => m(!0),
|
|
72
|
+
modules: g,
|
|
73
|
+
spaceBetween: 0,
|
|
74
|
+
slidesPerView: "auto",
|
|
75
|
+
className: e.swiper,
|
|
76
|
+
children: c.map((j, C) => /* @__PURE__ */ s.jsx(v, { className: e.swiperSlide, children: j }, C))
|
|
77
|
+
}
|
|
78
|
+
) }),
|
|
79
|
+
/* @__PURE__ */ s.jsx("div", { className: e.swiperControlsMobile, children: /* @__PURE__ */ s.jsx(
|
|
80
|
+
n,
|
|
81
|
+
{
|
|
82
|
+
left: {
|
|
83
|
+
disabled: o <= 0,
|
|
84
|
+
onClick: t
|
|
85
|
+
},
|
|
86
|
+
right: {
|
|
87
|
+
disabled: l,
|
|
88
|
+
onClick: a
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
) })
|
|
92
|
+
] });
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
A as ProductGallery
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGallery-module__root___tLADj",e="productGallery-module__topRow___Ko-SW",r="productGallery-module__topRowTabbed___rmjsc",l="productGallery-module__headerWrapper___sI0NZ",s="productGallery-module__carouselArea___7c5E5",t="productGallery-module__swiper___6D4n5",p="productGallery-module__swiperControlsTabbed___ESyKj",_="productGallery-module__swiperControlsHidden___IFD8m",d="productGallery-module__swiperControlsDesktop___tpIvz",i="productGallery-module__swiperControlsMobile___rTXjU",a="productGallery-module__swiperSlide___ieRKo",n={root:o,topRow:e,topRowTabbed:r,headerWrapper:l,carouselArea:s,swiper:t,swiperControlsTabbed:p,swiperControlsHidden:_,swiperControlsDesktop:d,swiperControlsMobile:i,swiperSlide:a};exports.carouselArea=s;exports.default=n;exports.headerWrapper=l;exports.root=o;exports.swiper=t;exports.swiperControlsDesktop=d;exports.swiperControlsHidden=_;exports.swiperControlsMobile=i;exports.swiperControlsTabbed=p;exports.swiperSlide=a;exports.topRow=e;exports.topRowTabbed=r;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const o = "productGallery-module__root___tLADj", e = "productGallery-module__topRow___Ko-SW", r = "productGallery-module__topRowTabbed___rmjsc", l = "productGallery-module__headerWrapper___sI0NZ", _ = "productGallery-module__carouselArea___7c5E5", s = "productGallery-module__swiper___6D4n5", t = "productGallery-module__swiperControlsTabbed___ESyKj", p = "productGallery-module__swiperControlsHidden___IFD8m", d = "productGallery-module__swiperControlsDesktop___tpIvz", a = "productGallery-module__swiperControlsMobile___rTXjU", c = "productGallery-module__swiperSlide___ieRKo", i = {
|
|
2
|
+
root: o,
|
|
3
|
+
topRow: e,
|
|
4
|
+
topRowTabbed: r,
|
|
5
|
+
headerWrapper: l,
|
|
6
|
+
carouselArea: _,
|
|
7
|
+
swiper: s,
|
|
8
|
+
swiperControlsTabbed: t,
|
|
9
|
+
swiperControlsHidden: p,
|
|
10
|
+
swiperControlsDesktop: d,
|
|
11
|
+
swiperControlsMobile: a,
|
|
12
|
+
swiperSlide: c
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
_ as carouselArea,
|
|
16
|
+
i as default,
|
|
17
|
+
l as headerWrapper,
|
|
18
|
+
o as root,
|
|
19
|
+
s as swiper,
|
|
20
|
+
d as swiperControlsDesktop,
|
|
21
|
+
p as swiperControlsHidden,
|
|
22
|
+
a as swiperControlsMobile,
|
|
23
|
+
t as swiperControlsTabbed,
|
|
24
|
+
c as swiperSlide,
|
|
25
|
+
e as topRow,
|
|
26
|
+
r as topRowTabbed
|
|
27
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),n=require("../Button/Button.cjs.js"),o=require("../Typography/Typography.cjs.js"),r=require("./productGalleryCard.module.css.cjs.js"),x=({name:i,price:u,image:c,link:d,buttons:l})=>{const s=t=>{t.preventDefault(),t.stopPropagation()};return e.jsxRuntimeExports.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:r.default.root,children:[e.jsxRuntimeExports.jsxs("div",{className:r.default.productInfo,children:[e.jsxRuntimeExports.jsx(o.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:r.default.title,children:i}),e.jsxRuntimeExports.jsx(o.Typography,{defaultVariant:"labelXl",mobileVariant:"labelLg",className:r.default.price,children:u})]}),e.jsxRuntimeExports.jsx("img",{src:c,alt:"product image",className:r.default.productImage}),e.jsxRuntimeExports.jsx("div",{onClick:s,className:r.default.buttonContainerDesktop,children:l.map((t,a)=>e.jsxRuntimeExports.jsx(n.Button,{size:"sm",...t,children:t.label},a))}),e.jsxRuntimeExports.jsx("div",{onClick:s,className:r.default.buttonContainerMobile,children:l.map((t,a)=>e.jsxRuntimeExports.jsx(n.Button,{size:"xs",...t,children:t.label},a))})]})};exports.ProductGalleryCard=x;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TProductGalleryCardView } from './types';
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
title: string;
|
|
5
|
-
price: string;
|
|
6
|
-
image: string;
|
|
7
|
-
buttons: Array<{
|
|
8
|
-
label: string;
|
|
9
|
-
} & ButtonProps>;
|
|
10
|
-
link: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const ProductGalleryCard: ({ title, price, image, buttons, link, }: ProductGalleryCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ProductGalleryCard: ({ name, price, image, link, buttons, }: TProductGalleryCardView) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,73 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
price:
|
|
8
|
-
image:
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { j as e } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { Button as i } from "../Button/Button.es.js";
|
|
3
|
+
import { Typography as o } from "../Typography/Typography.es.js";
|
|
4
|
+
import r from "./productGalleryCard.module.css.es.js";
|
|
5
|
+
const f = ({
|
|
6
|
+
name: n,
|
|
7
|
+
price: c,
|
|
8
|
+
image: m,
|
|
9
|
+
link: d,
|
|
10
|
+
buttons: s
|
|
11
11
|
}) => {
|
|
12
|
-
const
|
|
12
|
+
const t = (a) => {
|
|
13
13
|
a.preventDefault(), a.stopPropagation();
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
return /* @__PURE__ */ e.jsxs(
|
|
16
|
+
"a",
|
|
17
|
+
{
|
|
18
|
+
href: d,
|
|
19
|
+
target: "_blank",
|
|
20
|
+
rel: "noopener noreferrer",
|
|
21
|
+
className: r.root,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ e.jsxs("div", { className: r.productInfo, children: [
|
|
24
|
+
/* @__PURE__ */ e.jsx(
|
|
25
|
+
o,
|
|
26
|
+
{
|
|
27
|
+
defaultVariant: "labelXl",
|
|
28
|
+
mobileVariant: "labelLg",
|
|
29
|
+
className: r.title,
|
|
30
|
+
children: n
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ e.jsx(
|
|
34
|
+
o,
|
|
35
|
+
{
|
|
36
|
+
defaultVariant: "labelXl",
|
|
37
|
+
mobileVariant: "labelLg",
|
|
38
|
+
className: r.price,
|
|
39
|
+
children: c
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ e.jsx(
|
|
44
|
+
"img",
|
|
45
|
+
{
|
|
46
|
+
src: m,
|
|
47
|
+
alt: "product image",
|
|
48
|
+
className: r.productImage
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ e.jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
onClick: t,
|
|
55
|
+
className: r.buttonContainerDesktop,
|
|
56
|
+
children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "sm", ...a, children: a.label }, l))
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ e.jsx(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
onClick: t,
|
|
63
|
+
className: r.buttonContainerMobile,
|
|
64
|
+
children: s.map((a, l) => /* @__PURE__ */ e.jsx(i, { size: "xs", ...a, children: a.label }, l))
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
23
70
|
};
|
|
24
71
|
export {
|
|
25
|
-
|
|
72
|
+
f as ProductGalleryCard
|
|
26
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGalleryCard-module__root___oGJjs",t="productGalleryCard-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="productGalleryCard-module__root___oGJjs",t="productGalleryCard-module__buttonContainerDesktop___A9g0U",e="productGalleryCard-module__productInfo___IZeoL",r="productGalleryCard-module__title___dnRaF",n="productGalleryCard-module__price___dNy0O",u="productGalleryCard-module__buttonContainerMobile___molmH",l="productGalleryCard-module__productImage___uSNso",_={root:o,buttonContainerDesktop:t,productInfo:e,title:r,price:n,buttonContainerMobile:u,productImage:l};exports.buttonContainerDesktop=t;exports.buttonContainerMobile=u;exports.default=_;exports.price=n;exports.productImage=l;exports.productInfo=e;exports.root=o;exports.title=r;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
const o = "productGalleryCard-module__root___oGJjs", t = "productGalleryCard-
|
|
1
|
+
const o = "productGalleryCard-module__root___oGJjs", t = "productGalleryCard-module__buttonContainerDesktop___A9g0U", r = "productGalleryCard-module__productInfo___IZeoL", e = "productGalleryCard-module__title___dnRaF", _ = "productGalleryCard-module__price___dNy0O", d = "productGalleryCard-module__buttonContainerMobile___molmH", l = "productGalleryCard-module__productImage___uSNso", n = {
|
|
2
2
|
root: o,
|
|
3
|
-
|
|
3
|
+
buttonContainerDesktop: t,
|
|
4
4
|
productInfo: r,
|
|
5
|
-
title:
|
|
6
|
-
price:
|
|
7
|
-
|
|
5
|
+
title: e,
|
|
6
|
+
price: _,
|
|
7
|
+
buttonContainerMobile: d,
|
|
8
|
+
productImage: l
|
|
8
9
|
};
|
|
9
10
|
export {
|
|
10
|
-
t as
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
t as buttonContainerDesktop,
|
|
12
|
+
d as buttonContainerMobile,
|
|
13
|
+
n as default,
|
|
14
|
+
_ as price,
|
|
15
|
+
l as productImage,
|
|
14
16
|
r as productInfo,
|
|
15
17
|
o as root,
|
|
16
|
-
|
|
18
|
+
e as title
|
|
17
19
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ButtonProps } from '../Button';
|
|
2
|
+
import { ETypeBadge } from '../TypeBadge';
|
|
3
|
+
|
|
4
|
+
type ProductListingProps = {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
image: string;
|
|
8
|
+
price: string;
|
|
9
|
+
features: Array<{
|
|
10
|
+
label: string;
|
|
11
|
+
type: ETypeBadge;
|
|
12
|
+
}>;
|
|
13
|
+
buttons: Array<{
|
|
14
|
+
label: string;
|
|
15
|
+
} & ButtonProps>;
|
|
16
|
+
label?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const ProductListing: ({ name, description, image, price, buttons, features, label, }: ProductListingProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProductListing } from './ProductListing';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type EmptyCardProps = {
|
|
2
|
+
type: 'coming_soon';
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
type CardProps = {
|
|
6
|
+
type: 'active';
|
|
7
|
+
label: string;
|
|
8
|
+
image?: string | null;
|
|
9
|
+
link?: string | null;
|
|
10
|
+
};
|
|
11
|
+
export type ProgramCardProps = EmptyCardProps | CardProps;
|
|
12
|
+
export declare function ProgramCard(props: ProgramCardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProgramCard } from './ProgramCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),i=require("../../utils/cn.cjs.js"),r=require("../Icon/constants.cjs.js");require("react");const a=require("../Icon/Icon.cjs.js"),e=require("./progressButton.module.css.cjs.js"),u=({orientation:s,icon:n,disabled:o=!1,onClick:c})=>t.jsxRuntimeExports.jsx("button",{className:i.cn(e.default.button,{[e.default.buttonLeft]:s==="left",[e.default.buttonRight]:s==="right"}),disabled:o,onClick:c,children:t.jsxRuntimeExports.jsx("div",{className:e.default.iconWrap,children:t.jsxRuntimeExports.jsx(a.Icon,{name:n,className:e.default.icon})})}),l=({invert:s=!1,left:n,right:o})=>t.jsxRuntimeExports.jsxs("div",{className:i.cn(e.default.root,{[e.default.inverted]:s}),children:[t.jsxRuntimeExports.jsx(u,{orientation:"left",icon:r.EIconName.ARROW_BACK,disabled:n.disabled,onClick:n.onClick}),t.jsxRuntimeExports.jsx("div",{className:i.cn(e.default.divider,{[e.default.inverted]:s})}),t.jsxRuntimeExports.jsx(u,{orientation:"right",icon:r.EIconName.ARROW_FORWARD,disabled:o.disabled,onClick:o.onClick})]});exports.ProgressButton=l;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { j as t } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { cn as n } from "../../utils/cn.es.js";
|
|
3
|
+
import { EIconName as r } from "../Icon/constants.es.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { Icon as l } from "../Icon/Icon.es.js";
|
|
6
|
+
import o from "./progressButton.module.css.es.js";
|
|
7
|
+
const a = ({
|
|
8
|
+
orientation: s,
|
|
9
|
+
icon: i,
|
|
10
|
+
disabled: e = !1,
|
|
11
|
+
onClick: c
|
|
12
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
13
|
+
"button",
|
|
14
|
+
{
|
|
15
|
+
className: n(o.button, {
|
|
16
|
+
[o.buttonLeft]: s === "left",
|
|
17
|
+
[o.buttonRight]: s === "right"
|
|
18
|
+
}),
|
|
19
|
+
disabled: e,
|
|
20
|
+
onClick: c,
|
|
21
|
+
children: /* @__PURE__ */ t.jsx("div", { className: o.iconWrap, children: /* @__PURE__ */ t.jsx(l, { name: i, className: o.icon }) })
|
|
22
|
+
}
|
|
23
|
+
), u = ({
|
|
24
|
+
invert: s = !1,
|
|
25
|
+
left: i,
|
|
26
|
+
right: e
|
|
27
|
+
}) => /* @__PURE__ */ t.jsxs(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: n(o.root, {
|
|
31
|
+
[o.inverted]: s
|
|
32
|
+
}),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ t.jsx(
|
|
35
|
+
a,
|
|
36
|
+
{
|
|
37
|
+
orientation: "left",
|
|
38
|
+
icon: r.ARROW_BACK,
|
|
39
|
+
disabled: i.disabled,
|
|
40
|
+
onClick: i.onClick
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ t.jsx(
|
|
44
|
+
"div",
|
|
45
|
+
{
|
|
46
|
+
className: n(o.divider, { [o.inverted]: s })
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ t.jsx(
|
|
50
|
+
a,
|
|
51
|
+
{
|
|
52
|
+
orientation: "right",
|
|
53
|
+
icon: r.ARROW_FORWARD,
|
|
54
|
+
disabled: e.disabled,
|
|
55
|
+
onClick: e.onClick
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
export {
|
|
62
|
+
u as ProgressButton
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="progressButton-module__root___gKwbK",o="progressButton-module__inverted___cGydv",e="progressButton-module__icon___wJpMj",n="progressButton-module__divider___u6q7X",_="progressButton-module__button___92i5d",r="progressButton-module__buttonLeft___p3wSE",u="progressButton-module__buttonRight___keqI6",s="progressButton-module__iconWrap___hshXK",i={root:t,inverted:o,icon:e,divider:n,button:_,buttonLeft:r,buttonRight:u,iconWrap:s};exports.button=_;exports.buttonLeft=r;exports.buttonRight=u;exports.default=i;exports.divider=n;exports.icon=e;exports.iconWrap=s;exports.inverted=o;exports.root=t;
|