@zenpatient-org/healthspan-marketing-ui 0.1.15 → 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
|
@@ -3,37 +3,39 @@ import { forwardRef as f } from "react";
|
|
|
3
3
|
import { cn as u } from "../../utils/cn.es.js";
|
|
4
4
|
import { Icon as n } from "../Icon/Icon.es.js";
|
|
5
5
|
import a from "./button.module.css.es.js";
|
|
6
|
-
const v = f(
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
6
|
+
const v = f(
|
|
7
|
+
({
|
|
8
|
+
variant: m = "primary",
|
|
9
|
+
size: e = "md",
|
|
10
|
+
as: i = "button",
|
|
11
|
+
disabled: t = !1,
|
|
12
|
+
children: c,
|
|
13
|
+
prefixIcon: r,
|
|
14
|
+
suffixIcon: o,
|
|
15
|
+
...l
|
|
16
|
+
}, d) => {
|
|
17
|
+
const p = a[m] || "", j = a[e] || "", x = t ? a.disabled : "";
|
|
18
|
+
return /* @__PURE__ */ s.jsx(
|
|
19
|
+
i,
|
|
20
|
+
{
|
|
21
|
+
ref: d,
|
|
22
|
+
...l,
|
|
23
|
+
className: u(
|
|
24
|
+
a.button,
|
|
25
|
+
p,
|
|
26
|
+
j,
|
|
27
|
+
x
|
|
28
|
+
),
|
|
29
|
+
disabled: t,
|
|
30
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: a.content, children: [
|
|
31
|
+
r && /* @__PURE__ */ s.jsx("div", { className: a.iconWrap, children: /* @__PURE__ */ s.jsx(n, { name: r }) }),
|
|
32
|
+
/* @__PURE__ */ s.jsx("div", { children: c }),
|
|
33
|
+
o && /* @__PURE__ */ s.jsx("div", { className: a.iconWrap, children: /* @__PURE__ */ s.jsx(n, { name: o }) })
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
);
|
|
37
39
|
v.displayName = "Button";
|
|
38
40
|
export {
|
|
39
41
|
v as Button
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),d=require("../../utils/cn.cjs.js");require("react");const x=require("../Button/Button.cjs.js"),r=require("../Typography/Typography.cjs.js"),e=require("./callback.module.css.cjs.js"),a=require("./constants.cjs.js"),E=({image:i,title:n,description:l,price:o,button:u,size:s="lg"})=>{const c=e.default[s]||"";return t.jsxRuntimeExports.jsxs("div",{className:d.cn(e.default.root,c),children:[t.jsxRuntimeExports.jsxs("div",{className:e.default.productInfo,children:[t.jsxRuntimeExports.jsx("img",{src:i,alt:"product image",className:e.default.productImage}),t.jsxRuntimeExports.jsxs("div",{className:e.default.textContainer,children:[t.jsxRuntimeExports.jsx("div",{className:e.default.titleContainer,children:t.jsxRuntimeExports.jsx(r.Typography,{defaultVariant:a.TITLE_BY_SIZE_DESKTOP[s],mobileVariant:a.TITLE_BY_SIZE_MOBILE[s],className:e.default.title,children:n})}),t.jsxRuntimeExports.jsx("div",{className:e.default.divider}),t.jsxRuntimeExports.jsxs("div",{className:e.default.descriptionContainer,children:[t.jsxRuntimeExports.jsx(r.Typography,{defaultVariant:a.DESC_BY_SIZE_DESKTOP[s],mobileVariant:a.DESC_BY_SIZE_MOBILE[s],className:e.default.description,children:l}),t.jsxRuntimeExports.jsxs(r.Typography,{defaultVariant:a.PRICE_BY_SIZE_DESKTOP[s],mobileVariant:a.PRICE_BY_SIZE_MOBILE[s],className:e.default.price,children:["Starting at ",o]})]})]})]}),t.jsxRuntimeExports.jsx("div",{className:e.default.buttonContainer,children:t.jsxRuntimeExports.jsx(x.Button,{...u,as:"a",size:a.BUTTON_BY_SIZE[s],children:"GET STARTED"})})]})};exports.Callback=E;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { j as a } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { cn as m } from "../../utils/cn.es.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Button as d } from "../Button/Button.es.js";
|
|
2
5
|
import { Typography as t } from "../Typography/Typography.es.js";
|
|
3
|
-
import { Button as m } from "../Button/Button.es.js";
|
|
4
|
-
import { cn as d } from "../../utils/cn.es.js";
|
|
5
|
-
import { TITLE_BY_SIZE_MOBILE as E, TITLE_BY_SIZE_DESKTOP as _, DESC_BY_SIZE_MOBILE as p, DESC_BY_SIZE_DESKTOP as x, PRICE_BY_SIZE_MOBILE as I, PRICE_BY_SIZE_DESKTOP as j, BUTTON_BY_SIZE as S } from "./constants.es.js";
|
|
6
6
|
import r from "./callback.module.css.es.js";
|
|
7
|
-
|
|
7
|
+
import { TITLE_BY_SIZE_MOBILE as E, TITLE_BY_SIZE_DESKTOP as _, DESC_BY_SIZE_MOBILE as p, DESC_BY_SIZE_DESKTOP as x, PRICE_BY_SIZE_MOBILE as I, PRICE_BY_SIZE_DESKTOP as j, BUTTON_BY_SIZE as S } from "./constants.es.js";
|
|
8
|
+
const v = ({
|
|
8
9
|
image: i,
|
|
9
10
|
title: e,
|
|
10
11
|
description: l,
|
|
@@ -13,9 +14,16 @@ const C = ({
|
|
|
13
14
|
size: s = "lg"
|
|
14
15
|
}) => {
|
|
15
16
|
const c = r[s] || "";
|
|
16
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
17
|
+
return /* @__PURE__ */ a.jsxs("div", { className: m(r.root, c), children: [
|
|
17
18
|
/* @__PURE__ */ a.jsxs("div", { className: r.productInfo, children: [
|
|
18
|
-
/* @__PURE__ */ a.jsx(
|
|
19
|
+
/* @__PURE__ */ a.jsx(
|
|
20
|
+
"img",
|
|
21
|
+
{
|
|
22
|
+
src: i,
|
|
23
|
+
alt: "product image",
|
|
24
|
+
className: r.productImage
|
|
25
|
+
}
|
|
26
|
+
),
|
|
19
27
|
/* @__PURE__ */ a.jsxs("div", { className: r.textContainer, children: [
|
|
20
28
|
/* @__PURE__ */ a.jsx("div", { className: r.titleContainer, children: /* @__PURE__ */ a.jsx(
|
|
21
29
|
t,
|
|
@@ -52,9 +60,9 @@ const C = ({
|
|
|
52
60
|
] })
|
|
53
61
|
] })
|
|
54
62
|
] }),
|
|
55
|
-
/* @__PURE__ */ a.jsx("div", { className: r.buttonContainer, children: /* @__PURE__ */ a.jsx(
|
|
63
|
+
/* @__PURE__ */ a.jsx("div", { className: r.buttonContainer, children: /* @__PURE__ */ a.jsx(d, { ...o, as: "a", size: S[s], children: "GET STARTED" }) })
|
|
56
64
|
] });
|
|
57
65
|
};
|
|
58
66
|
export {
|
|
59
|
-
|
|
67
|
+
v as Callback
|
|
60
68
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PopoverPosition } from 'react-tiny-popover';
|
|
3
|
+
import { TColorScheme } from '../../types/common';
|
|
4
|
+
|
|
5
|
+
type ComplexTooltipProps = {
|
|
6
|
+
trigger: 'hover' | 'click';
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
link?: {
|
|
10
|
+
label: string;
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
children: React.ReactElement;
|
|
14
|
+
style: Omit<TColorScheme, 'custom'>;
|
|
15
|
+
positions?: Array<PopoverPosition>;
|
|
16
|
+
isBlurred?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const ComplexTooltip: ({ trigger, title, description, link, style, isBlurred, children, positions, }: ComplexTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ComplexTooltip } from './ComplexTooltip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),l=require("../../styles/typography.module.css.cjs.js"),n=require("../../utils/cn.cjs.js"),a=require("../Icon/Icon.cjs.js"),s=require("./contentTabs.module.css.cjs.js");function u({tabs:o,activeTab:i,colorScheme:r,onTabClick:c}){return t.jsxRuntimeExports.jsx("div",{className:n.cn(s.default.root,s.default[r]),children:o.map(e=>t.jsxRuntimeExports.jsxs("div",{className:s.default.tabWrap,children:[t.jsxRuntimeExports.jsxs("button",{className:n.cn(s.default.tab,{[s.default.activeTab]:i.label===e.label}),onClick:()=>c(e),children:[e.icon&&t.jsxRuntimeExports.jsx("div",{className:s.default.icon,children:t.jsxRuntimeExports.jsx(a.Icon,{name:e.icon})}),t.jsxRuntimeExports.jsx("div",{className:l.default.headingXs,children:e.label})]}),t.jsxRuntimeExports.jsx("p",{className:n.cn(s.default.description,{[s.default.descriptionActive]:i.label===e.label},l.default.bodySm),children:e.description})]},String(e.label)))})}exports.ContentTabs=u;
|
|
@@ -14,5 +14,5 @@ type Props = {
|
|
|
14
14
|
colorScheme: TColorScheme;
|
|
15
15
|
onTabClick: (value: TContentTab) => void;
|
|
16
16
|
};
|
|
17
|
-
export declare function ContentTabs({ tabs, activeTab, colorScheme, onTabClick }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function ContentTabs({ tabs, activeTab, colorScheme, onTabClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { j as e } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
-
import { cn as o } from "../../utils/cn.es.js";
|
|
3
2
|
import l from "../../styles/typography.module.css.es.js";
|
|
3
|
+
import { cn as o } from "../../utils/cn.es.js";
|
|
4
4
|
import { Icon as m } from "../Icon/Icon.es.js";
|
|
5
5
|
import i from "./contentTabs.module.css.es.js";
|
|
6
|
-
function h({
|
|
6
|
+
function h({
|
|
7
|
+
tabs: n,
|
|
8
|
+
activeTab: r,
|
|
9
|
+
colorScheme: c,
|
|
10
|
+
onTabClick: a
|
|
11
|
+
}) {
|
|
7
12
|
return /* @__PURE__ */ e.jsx("div", { className: o(i.root, i[c]), children: n.map((s) => /* @__PURE__ */ e.jsxs("div", { className: i.tabWrap, children: [
|
|
8
13
|
/* @__PURE__ */ e.jsxs(
|
|
9
14
|
"button",
|
|
10
15
|
{
|
|
11
|
-
className: o(i.tab, {
|
|
16
|
+
className: o(i.tab, {
|
|
17
|
+
[i.activeTab]: r.label === s.label
|
|
18
|
+
}),
|
|
12
19
|
onClick: () => a(s),
|
|
13
20
|
children: [
|
|
14
21
|
s.icon && /* @__PURE__ */ e.jsx("div", { className: i.icon, children: /* @__PURE__ */ e.jsx(m, { name: s.icon }) }),
|
|
@@ -21,7 +28,9 @@ function h({ tabs: n, activeTab: r, colorScheme: c, onTabClick: a }) {
|
|
|
21
28
|
{
|
|
22
29
|
className: o(
|
|
23
30
|
i.description,
|
|
24
|
-
{
|
|
31
|
+
{
|
|
32
|
+
[i.descriptionActive]: r.label === s.label
|
|
33
|
+
},
|
|
25
34
|
l.bodySm
|
|
26
35
|
),
|
|
27
36
|
children: s.description
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Cursor } from './Cursor';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.cjs.js"),h=require("react"),n=require("../../utils/cn.cjs.js"),u=require("../Icon/constants.cjs.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.cjs.js"),h=require("react"),n=require("../../utils/cn.cjs.js"),u=require("../Icon/constants.cjs.js"),g=require("../Icon/Icon.cjs.js"),r=require("../Typography/Typography.cjs.js"),e=require("./filterMenu.module.css.cjs.js");function E({label:o,open:c=!1,options:d,selectedValue:m,onSelect:x}){const[i,p]=h.useState(c),j=()=>p(t=>!t);return s.jsxRuntimeExports.jsxs("div",{className:e.default.root,children:[s.jsxRuntimeExports.jsxs("button",{className:e.default.toggleButton,onClick:j,children:[s.jsxRuntimeExports.jsx(r.Typography,{defaultVariant:"labelLg",emphasis:!0,children:o}),s.jsxRuntimeExports.jsx(g.Icon,{name:i?u.EIconName.REMOVE:u.EIconName.PLUS,className:e.default.toggleIcon})]}),s.jsxRuntimeExports.jsx("div",{className:n.cn(e.default.menu,i&&e.default.isOpen),role:"menu",children:d.map((t,a)=>s.jsxRuntimeExports.jsxs("ul",{className:e.default.subOptions,children:[t.label&&s.jsxRuntimeExports.jsx("li",{className:n.cn(e.default.divider,a!==0&&e.default.dividerLine),children:s.jsxRuntimeExports.jsx(r.Typography,{as:"div",defaultVariant:"bodyMd",weight:"medium",className:e.default.dividerLabel,children:t.label})},a),t.values.map(({value:l,label:f})=>s.jsxRuntimeExports.jsx("li",{className:e.default.option,onClick:()=>x(l,t),children:s.jsxRuntimeExports.jsx(r.Typography,{as:"div",defaultVariant:"bodyMd",className:n.cn(e.default.optionLabel,l===m&&e.default.selected),children:f})},l))]},`${t.label}_${a}`))})]})}exports.FilterMenu=E;
|
|
@@ -13,5 +13,5 @@ type FilterMenuProps<T extends string | number> = {
|
|
|
13
13
|
options: ReadonlyArray<TOptionGroup<T>>;
|
|
14
14
|
onSelect: (value: T, optionGroup: TOptionGroup<T>) => void;
|
|
15
15
|
};
|
|
16
|
-
export declare function FilterMenu<T extends string | number>({ label, open, options, selectedValue, onSelect }: FilterMenuProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function FilterMenu<T extends string | number>({ label, open, options, selectedValue, onSelect, }: FilterMenuProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,50 +1,94 @@
|
|
|
1
1
|
import { j as s } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { EIconName as
|
|
2
|
+
import { useState as b } from "react";
|
|
3
|
+
import { cn as r } from "../../utils/cn.es.js";
|
|
4
|
+
import { EIconName as m } from "../Icon/constants.es.js";
|
|
5
5
|
import { Icon as x } from "../Icon/Icon.es.js";
|
|
6
6
|
import { Typography as o } from "../Typography/Typography.es.js";
|
|
7
7
|
import e from "./filterMenu.module.css.es.js";
|
|
8
|
-
function
|
|
9
|
-
|
|
8
|
+
function I({
|
|
9
|
+
label: n,
|
|
10
|
+
open: c = !1,
|
|
11
|
+
options: d,
|
|
12
|
+
selectedValue: p,
|
|
13
|
+
onSelect: u
|
|
14
|
+
}) {
|
|
15
|
+
const [t, h] = b(c), f = () => h((l) => !l);
|
|
10
16
|
return /* @__PURE__ */ s.jsxs("div", { className: e.root, children: [
|
|
11
|
-
/* @__PURE__ */ s.jsxs(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
defaultVariant: "bodyMd",
|
|
21
|
-
weight: "medium",
|
|
22
|
-
className: e.dividerLabel,
|
|
23
|
-
children: a.label
|
|
24
|
-
}
|
|
25
|
-
) }, l),
|
|
26
|
-
a.values.map(({ value: r, label: f }) => /* @__PURE__ */ s.jsx(
|
|
27
|
-
"li",
|
|
28
|
-
{
|
|
29
|
-
className: e.option,
|
|
30
|
-
tabIndex: 0,
|
|
31
|
-
role: "button",
|
|
32
|
-
onClick: () => u(r, a),
|
|
33
|
-
children: /* @__PURE__ */ s.jsx(
|
|
34
|
-
o,
|
|
17
|
+
/* @__PURE__ */ s.jsxs(
|
|
18
|
+
"button",
|
|
19
|
+
{
|
|
20
|
+
className: e.toggleButton,
|
|
21
|
+
onClick: f,
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ s.jsx(o, { defaultVariant: "labelLg", emphasis: !0, children: n }),
|
|
24
|
+
/* @__PURE__ */ s.jsx(
|
|
25
|
+
x,
|
|
35
26
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
className: i(e.optionLabel, r === p && e.selected),
|
|
39
|
-
children: f
|
|
27
|
+
name: t ? m.REMOVE : m.PLUS,
|
|
28
|
+
className: e.toggleIcon
|
|
40
29
|
}
|
|
41
30
|
)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
/* @__PURE__ */ s.jsx(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: r(e.menu, t && e.isOpen),
|
|
38
|
+
role: "menu",
|
|
39
|
+
children: d.map((l, a) => /* @__PURE__ */ s.jsxs(
|
|
40
|
+
"ul",
|
|
41
|
+
{
|
|
42
|
+
className: e.subOptions,
|
|
43
|
+
children: [
|
|
44
|
+
l.label && /* @__PURE__ */ s.jsx(
|
|
45
|
+
"li",
|
|
46
|
+
{
|
|
47
|
+
className: r(
|
|
48
|
+
e.divider,
|
|
49
|
+
a !== 0 && e.dividerLine
|
|
50
|
+
),
|
|
51
|
+
children: /* @__PURE__ */ s.jsx(
|
|
52
|
+
o,
|
|
53
|
+
{
|
|
54
|
+
as: "div",
|
|
55
|
+
defaultVariant: "bodyMd",
|
|
56
|
+
weight: "medium",
|
|
57
|
+
className: e.dividerLabel,
|
|
58
|
+
children: l.label
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
},
|
|
62
|
+
a
|
|
63
|
+
),
|
|
64
|
+
l.values.map(({ value: i, label: j }) => /* @__PURE__ */ s.jsx(
|
|
65
|
+
"li",
|
|
66
|
+
{
|
|
67
|
+
className: e.option,
|
|
68
|
+
onClick: () => u(i, l),
|
|
69
|
+
children: /* @__PURE__ */ s.jsx(
|
|
70
|
+
o,
|
|
71
|
+
{
|
|
72
|
+
as: "div",
|
|
73
|
+
defaultVariant: "bodyMd",
|
|
74
|
+
className: r(
|
|
75
|
+
e.optionLabel,
|
|
76
|
+
i === p && e.selected
|
|
77
|
+
),
|
|
78
|
+
children: j
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
},
|
|
82
|
+
i
|
|
83
|
+
))
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
`${l.label}_${a}`
|
|
87
|
+
))
|
|
88
|
+
}
|
|
89
|
+
)
|
|
46
90
|
] });
|
|
47
91
|
}
|
|
48
92
|
export {
|
|
49
|
-
|
|
93
|
+
I as FilterMenu
|
|
50
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../_virtual/jsx-runtime.cjs.js"),t=require("../Typography/Typography.cjs.js");require("../Button/Button.cjs.js");require("../Label/Label.cjs.js");require("../Tag/Tag.cjs.js");require("../Tabs/Tabs.cjs.js");require("react");const u=require("../../utils/cn.cjs.js");require("../Icon/Icon.cjs.js");const e=require("./highlightedTitle.module.css.cjs.js");require("../InfiniteScroll/InfiniteScroll.cjs.js");require("../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const h=({title:s,label:r,className:a,defaultVariant:l="displayMd",as:d="h2",mobileVariant:n="headingLg",colorScheme:o="light"})=>i.jsxRuntimeExports.jsxs("div",{"data-scheme":o,className:u.cn(e.default.root,a),children:[r&&i.jsxRuntimeExports.jsx(t.Typography,{as:"p",defaultVariant:"labelMd",emphasis:!0,className:e.default.tag,children:r}),i.jsxRuntimeExports.jsx(t.Typography,{as:d,defaultVariant:l,mobileVariant:n,className:u.cn(e.default.title,{[e.default.taggedTitle]:!!r}),children:s})]});exports.HighlightedTitle=h;
|
|
@@ -4,9 +4,9 @@ import { TColorScheme } from '../../types/common';
|
|
|
4
4
|
|
|
5
5
|
type Props = {
|
|
6
6
|
title: ReactNode;
|
|
7
|
-
|
|
7
|
+
label?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
colorScheme?: TColorScheme;
|
|
10
10
|
} & Partial<Pick<TypographyProps, 'defaultVariant' | 'as' | 'mobileVariant'>>;
|
|
11
|
-
export declare const HighlightedTitle: ({ title,
|
|
11
|
+
export declare const HighlightedTitle: ({ title, label, className, defaultVariant, as, mobileVariant, colorScheme, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,34 +1,50 @@
|
|
|
1
1
|
import { j as r } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
-
import { cn as e } from "../../utils/cn.es.js";
|
|
3
2
|
import { Typography as o } from "../Typography/Typography.es.js";
|
|
4
3
|
import "../Button/Button.es.js";
|
|
5
4
|
import "../Label/Label.es.js";
|
|
6
5
|
import "../Tag/Tag.es.js";
|
|
7
|
-
import "../
|
|
6
|
+
import "../Tabs/Tabs.es.js";
|
|
8
7
|
import "react";
|
|
8
|
+
import { cn as m } from "../../utils/cn.es.js";
|
|
9
|
+
import "../Icon/Icon.es.js";
|
|
9
10
|
import t from "./highlightedTitle.module.css.es.js";
|
|
10
11
|
import "../InfiniteScroll/InfiniteScroll.es.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
import "../../node_modules/swiper/swiper-react.es.js";
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
16
|
+
const H = ({
|
|
17
|
+
title: p,
|
|
18
|
+
label: i,
|
|
19
|
+
className: e,
|
|
20
|
+
defaultVariant: s = "displayMd",
|
|
21
|
+
as: a = "h2",
|
|
22
|
+
mobileVariant: l = "headingLg",
|
|
18
23
|
colorScheme: d = "light"
|
|
19
|
-
}) => /* @__PURE__ */ r.jsxs("div", { "data-scheme": d, className:
|
|
20
|
-
i && /* @__PURE__ */ r.jsx(
|
|
24
|
+
}) => /* @__PURE__ */ r.jsxs("div", { "data-scheme": d, className: m(t.root, e), children: [
|
|
25
|
+
i && /* @__PURE__ */ r.jsx(
|
|
26
|
+
o,
|
|
27
|
+
{
|
|
28
|
+
as: "p",
|
|
29
|
+
defaultVariant: "labelMd",
|
|
30
|
+
emphasis: !0,
|
|
31
|
+
className: t.tag,
|
|
32
|
+
children: i
|
|
33
|
+
}
|
|
34
|
+
),
|
|
21
35
|
/* @__PURE__ */ r.jsx(
|
|
22
36
|
o,
|
|
23
37
|
{
|
|
24
|
-
as:
|
|
25
|
-
defaultVariant:
|
|
26
|
-
mobileVariant:
|
|
27
|
-
className:
|
|
28
|
-
|
|
38
|
+
as: a,
|
|
39
|
+
defaultVariant: s,
|
|
40
|
+
mobileVariant: l,
|
|
41
|
+
className: m(t.title, {
|
|
42
|
+
[t.taggedTitle]: !!i
|
|
43
|
+
}),
|
|
44
|
+
children: p
|
|
29
45
|
}
|
|
30
46
|
)
|
|
31
47
|
] });
|
|
32
48
|
export {
|
|
33
|
-
|
|
49
|
+
H as HighlightedTitle
|
|
34
50
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),l=require("../../utils/cn.cjs.js")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),l=require("../../utils/cn.cjs.js");require("react");const d=require("../Icon/Icon.cjs.js"),t=require("./iconButton.module.css.cjs.js"),m=({iconName:s,variant:n="emphasis",size:o="md",as:r="button",disabled:u=!1,...c})=>{const i=t.default[n]||"",a=t.default[o]||"";return e.jsxRuntimeExports.jsx(r,{...c,className:l.cn(t.default.button,i,a),disabled:u,children:e.jsxRuntimeExports.jsx("div",{className:t.default.iconWrap,children:e.jsxRuntimeExports.jsx(d.Icon,{name:s})})})};exports.IconButton=m;
|
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
import { j as o } from "../../_virtual/jsx-runtime.es.js";
|
|
2
|
-
import { cn as
|
|
3
|
-
import
|
|
2
|
+
import { cn as p } from "../../utils/cn.es.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Icon as l } from "../Icon/Icon.es.js";
|
|
4
5
|
import s from "./iconButton.module.css.es.js";
|
|
5
|
-
const
|
|
6
|
+
const h = ({
|
|
6
7
|
iconName: t,
|
|
7
|
-
variant:
|
|
8
|
-
size:
|
|
9
|
-
as:
|
|
10
|
-
disabled:
|
|
11
|
-
...
|
|
8
|
+
variant: r = "emphasis",
|
|
9
|
+
size: n = "md",
|
|
10
|
+
as: m = "button",
|
|
11
|
+
disabled: a = !1,
|
|
12
|
+
...i
|
|
12
13
|
}) => {
|
|
13
|
-
const
|
|
14
|
+
const e = s[r] || "", c = s[n] || "";
|
|
14
15
|
return /* @__PURE__ */ o.jsx(
|
|
15
|
-
|
|
16
|
+
m,
|
|
16
17
|
{
|
|
17
|
-
...
|
|
18
|
-
className:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
c
|
|
22
|
-
),
|
|
23
|
-
disabled: m,
|
|
24
|
-
children: /* @__PURE__ */ o.jsx("div", { className: s.iconWrap, children: /* @__PURE__ */ o.jsx(p, { name: t }) })
|
|
18
|
+
...i,
|
|
19
|
+
className: p(s.button, e, c),
|
|
20
|
+
disabled: a,
|
|
21
|
+
children: /* @__PURE__ */ o.jsx("div", { className: s.iconWrap, children: /* @__PURE__ */ o.jsx(l, { name: t }) })
|
|
25
22
|
}
|
|
26
23
|
);
|
|
27
24
|
};
|
|
28
25
|
export {
|
|
29
|
-
|
|
26
|
+
h as IconButton
|
|
30
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../_virtual/jsx-runtime.cjs.js"),t=require("react"),x=require("../../utils/cn.cjs.js"),R=require("./infiniteScroll.module.css.cjs.js");function L({items:o,speed:M=50,contentClassName:q,itemClassName:j,rootClassName:y,renderItem:E},b){const u=t.useRef(null),[a,S]=t.useState(0),[i,v]=t.useState(0),f=t.useRef(null),h=t.useRef(!1),m=t.useRef(performance.now()),[w,A]=t.useState(2);t.useEffect(()=>{u.current&&o.length>0&&setTimeout(()=>{var s,c,l;const n=((c=(s=u.current)==null?void 0:s.parentElement)==null?void 0:c.offsetWidth)||0,e=(((l=u.current)==null?void 0:l.scrollWidth)||0)/2,r=Math.ceil(n*2/e);A(Math.max(2,r%2===0?r:r+1)),v(e)},0)},[o]);const d=t.useCallback(n=>{if(!h.current){const e=n??performance.now(),r=e-m.current||16.67;m.current=e,S(s=>{const c=s-M*(r/1e3);return Math.abs(c)>=i?c+i:c})}f.current=requestAnimationFrame(d)},[i,M]);t.useEffect(()=>(m.current=performance.now(),f.current=requestAnimationFrame(d),()=>{f.current&&cancelAnimationFrame(f.current)}),[d]);const T=t.useCallback(()=>{h.current=!0},[]),W=t.useCallback(()=>{h.current=!1,m.current=performance.now()},[]),C=t.useCallback((n,e=300)=>{const r=a,s=n-r,c=performance.now(),l=F=>{const k=F-c,g=Math.min(k/e,1),I=1-Math.pow(1-g,3);S(r+s*I),g<1&&requestAnimationFrame(l)};requestAnimationFrame(l)},[a]);return t.useImperativeHandle(b,()=>({scrollLeft:()=>{const n=a-200,e=Math.max(n,-i);C(e)},scrollRight:()=>{const n=a+200,e=Math.min(n,0);C(e)}})),p.jsxRuntimeExports.jsx("div",{className:x.cn(R.default.root,y),onMouseEnter:T,onMouseLeave:W,children:p.jsxRuntimeExports.jsx("div",{className:x.cn(R.default.content,q),style:{transform:`translate3D(${a}px, 0, 0)`},ref:u,children:Array.from({length:o.length*w},(n,e)=>p.jsxRuntimeExports.jsx("div",{className:x.cn(R.default.item,j),children:E(o[e%o.length],e)},e))})})}const N=t.forwardRef(L);exports.InfiniteScroll=N;
|
|
@@ -7,6 +7,9 @@ export type InfiniteScrollHandle = {
|
|
|
7
7
|
type InfiniteScrollProps<T> = {
|
|
8
8
|
items: ReadonlyArray<T>;
|
|
9
9
|
speed?: number;
|
|
10
|
+
contentClassName?: string;
|
|
11
|
+
itemClassName?: string;
|
|
12
|
+
rootClassName?: string;
|
|
10
13
|
renderItem: (item: T, index: number) => ReactNode;
|
|
11
14
|
};
|
|
12
15
|
export declare const InfiniteScroll: <T>(props: InfiniteScrollProps<T> & {
|