@zenpatient-org/healthspan-marketing-ui 0.1.16 → 0.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +99 -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,39 +1,58 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as t } from "../../_virtual/jsx-runtime.es.js";
|
|
2
2
|
import { useState as c } from "react";
|
|
3
3
|
import "../../components/Button/Button.es.js";
|
|
4
4
|
import "../../components/Label/Label.es.js";
|
|
5
5
|
import "../../components/Tag/Tag.es.js";
|
|
6
|
-
import "../../components/
|
|
6
|
+
import "../../components/Tabs/Tabs.es.js";
|
|
7
7
|
import { ContentTabs as l } from "../../components/ContentTabs/ContentTabs.es.js";
|
|
8
|
-
import
|
|
8
|
+
import "../../components/Icon/Icon.es.js";
|
|
9
|
+
import { HighlightedTitle as p } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
9
10
|
import "../../components/InfiniteScroll/InfiniteScroll.es.js";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
import "../../node_modules/swiper/swiper-react.es.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import s from "./totalCare.module.css.es.js";
|
|
16
|
+
const y = ({
|
|
17
|
+
title: r,
|
|
18
|
+
label: m,
|
|
19
|
+
contentTabs: i,
|
|
20
|
+
colorScheme: e
|
|
21
|
+
}) => {
|
|
22
|
+
const [a, o] = c(
|
|
23
|
+
i.tabs[0]
|
|
24
|
+
);
|
|
25
|
+
return /* @__PURE__ */ t.jsx("section", { className: s.root, "data-scheme": e, children: /* @__PURE__ */ t.jsxs("div", { className: s.container, children: [
|
|
26
|
+
/* @__PURE__ */ t.jsx(
|
|
27
|
+
p,
|
|
16
28
|
{
|
|
17
29
|
title: r,
|
|
18
|
-
|
|
19
|
-
className:
|
|
20
|
-
colorScheme:
|
|
30
|
+
label: m,
|
|
31
|
+
className: s.header,
|
|
32
|
+
colorScheme: e
|
|
21
33
|
}
|
|
22
34
|
),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ t.jsxs("div", { className: s.content, children: [
|
|
36
|
+
/* @__PURE__ */ t.jsx("div", { className: s.tags, children: /* @__PURE__ */ t.jsx(
|
|
25
37
|
l,
|
|
26
38
|
{
|
|
27
|
-
activeTab:
|
|
28
|
-
tabs:
|
|
29
|
-
colorScheme:
|
|
39
|
+
activeTab: a,
|
|
40
|
+
tabs: i.tabs,
|
|
41
|
+
colorScheme: i.colorScheme,
|
|
30
42
|
onTabClick: o
|
|
31
43
|
}
|
|
32
44
|
) }),
|
|
33
|
-
|
|
45
|
+
a.image && /* @__PURE__ */ t.jsx("div", { className: s.imageWrap, children: /* @__PURE__ */ t.jsx(
|
|
46
|
+
"img",
|
|
47
|
+
{
|
|
48
|
+
src: a.image,
|
|
49
|
+
alt: "Total Care",
|
|
50
|
+
className: s.image
|
|
51
|
+
}
|
|
52
|
+
) })
|
|
34
53
|
] })
|
|
35
54
|
] }) });
|
|
36
55
|
};
|
|
37
56
|
export {
|
|
38
|
-
|
|
57
|
+
y as TotalCare
|
|
39
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),u=require("../../utils/cn.cjs.js");require("../../components/Button/Button.cjs.js");require("../../components/Label/Label.cjs.js");require("../../components/Tag/Tag.cjs.js");require("../../components/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_virtual/jsx-runtime.cjs.js"),u=require("../../utils/cn.cjs.js");require("../../components/Button/Button.cjs.js");require("../../components/Label/Label.cjs.js");require("../../components/Tag/Tag.cjs.js");require("../../components/Tabs/Tabs.cjs.js");require("react");require("../../components/Icon/Icon.cjs.js");const l=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../components/Callback/Callback.cjs.js");require("../../components/InfiniteScroll/InfiniteScroll.cjs.js");require("../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const a=require("./components/ProtocolTags/ProtocolTags.cjs.js"),t=require("./yourProtocol.module.css.cjs.js"),c=({title:i,image:s,tags:o,callbackView:r})=>e.jsxRuntimeExports.jsxs("section",{className:t.default.root,children:[e.jsxRuntimeExports.jsxs("div",{className:t.default.content,children:[e.jsxRuntimeExports.jsx(l.HighlightedTitle,{title:i,className:t.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsxRuntimeExports.jsx(a.ProtocolTags,{tags:o}),r&&e.jsxRuntimeExports.jsx("div",{className:t.default.callback,children:e.jsxRuntimeExports.jsx(n.Callback,{title:r.title,description:r.description??"",price:r.price??"",image:r.image,button:{href:r.signupUrl??""},size:"sm"})})]}),e.jsxRuntimeExports.jsx("img",{src:s,alt:"Your Protocol",className:u.cn(t.default.image,t.default.desktop),width:481,height:640})]});exports.YourProtocol=c;
|
|
@@ -3,25 +3,30 @@ import { cn as e } from "../../utils/cn.es.js";
|
|
|
3
3
|
import "../../components/Button/Button.es.js";
|
|
4
4
|
import "../../components/Label/Label.es.js";
|
|
5
5
|
import "../../components/Tag/Tag.es.js";
|
|
6
|
-
import "../../components/
|
|
6
|
+
import "../../components/Tabs/Tabs.es.js";
|
|
7
7
|
import "react";
|
|
8
|
+
import "../../components/Icon/Icon.es.js";
|
|
8
9
|
import { HighlightedTitle as p } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
9
10
|
import { Callback as a } from "../../components/Callback/Callback.es.js";
|
|
10
11
|
import "../../components/InfiniteScroll/InfiniteScroll.es.js";
|
|
12
|
+
import "../../node_modules/swiper/swiper-react.es.js";
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
/* empty css */
|
|
11
16
|
import { ProtocolTags as l } from "./components/ProtocolTags/ProtocolTags.es.js";
|
|
12
17
|
import r from "./yourProtocol.module.css.es.js";
|
|
13
|
-
const
|
|
18
|
+
const E = ({ title: i, image: m, tags: s, callbackView: o }) => /* @__PURE__ */ t.jsxs("section", { className: r.root, children: [
|
|
14
19
|
/* @__PURE__ */ t.jsxs("div", { className: r.content, children: [
|
|
15
20
|
/* @__PURE__ */ t.jsx(
|
|
16
21
|
p,
|
|
17
22
|
{
|
|
18
23
|
title: i,
|
|
19
24
|
className: r.title,
|
|
20
|
-
defaultVariant: "
|
|
25
|
+
defaultVariant: "displaySm",
|
|
21
26
|
mobileVariant: "headingXl"
|
|
22
27
|
}
|
|
23
28
|
),
|
|
24
|
-
/* @__PURE__ */ t.jsx(l, { tags:
|
|
29
|
+
/* @__PURE__ */ t.jsx(l, { tags: s }),
|
|
25
30
|
o && /* @__PURE__ */ t.jsx("div", { className: r.callback, children: /* @__PURE__ */ t.jsx(
|
|
26
31
|
a,
|
|
27
32
|
{
|
|
@@ -36,8 +41,17 @@ const y = ({ title: i, image: s, tags: m, callbackView: o }) => /* @__PURE__ */
|
|
|
36
41
|
}
|
|
37
42
|
) })
|
|
38
43
|
] }),
|
|
39
|
-
/* @__PURE__ */ t.jsx(
|
|
44
|
+
/* @__PURE__ */ t.jsx(
|
|
45
|
+
"img",
|
|
46
|
+
{
|
|
47
|
+
src: m,
|
|
48
|
+
alt: "Your Protocol",
|
|
49
|
+
className: e(r.image, r.desktop),
|
|
50
|
+
width: 481,
|
|
51
|
+
height: 640
|
|
52
|
+
}
|
|
53
|
+
)
|
|
40
54
|
] });
|
|
41
55
|
export {
|
|
42
|
-
|
|
56
|
+
E as YourProtocol
|
|
43
57
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../_virtual/jsx-runtime.cjs.js"),l=require("react"),u=require("../../../../components/Typography/Typography.cjs.js");require("../../../../components/Button/Button.cjs.js");require("../../../../components/Label/Label.cjs.js");const p=require("../../../../components/Tag/Tag.cjs.js");require("../../../../components/Tabs/Tabs.cjs.js");const n=require("../../../../utils/cn.cjs.js");require("../../../../components/Icon/Icon.cjs.js");require("../../../../components/InfiniteScroll/InfiniteScroll.cjs.js");require("../../../../node_modules/swiper/swiper-react.cjs.js");;/* empty css */;/* empty css */;/* empty css */const s=require("./protocolTags.module.css.cjs.js"),x=({tags:t})=>{var a;const[i,c]=l.useState(((a=t[0])==null?void 0:a.label)||null),o=l.useMemo(()=>{var e;return(e=t.find(d=>d.label===i))==null?void 0:e.description},[i,t]);return r.jsxRuntimeExports.jsxs("div",{className:s.default.root,children:[r.jsxRuntimeExports.jsx("div",{className:s.default.tags,children:t.map(e=>r.jsxRuntimeExports.jsx(p.Tag,{value:e.label,size:"md",active:e.label===i,onClick:c,children:e.label},e.label))}),o&&r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsx(u.Typography,{as:"p",defaultVariant:"bodyLg",className:n.cn(s.default.description,s.default.desktop),children:o}),r.jsxRuntimeExports.jsx(u.Typography,{as:"p",defaultVariant:"bodyMd",className:n.cn(s.default.description,s.default.mobile),children:o})]})]})};exports.ProtocolTags=x;
|
|
@@ -1,37 +1,63 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Typography as
|
|
1
|
+
import { j as i } from "../../../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { useState as n, useMemo as d } from "react";
|
|
3
|
+
import { Typography as m } from "../../../../components/Typography/Typography.es.js";
|
|
4
4
|
import "../../../../components/Button/Button.es.js";
|
|
5
5
|
import "../../../../components/Label/Label.es.js";
|
|
6
6
|
import { Tag as b } from "../../../../components/Tag/Tag.es.js";
|
|
7
|
-
import
|
|
7
|
+
import "../../../../components/Tabs/Tabs.es.js";
|
|
8
|
+
import { cn as a } from "../../../../utils/cn.es.js";
|
|
8
9
|
import "../../../../components/Icon/Icon.es.js";
|
|
9
10
|
import "../../../../components/InfiniteScroll/InfiniteScroll.es.js";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
import "../../../../node_modules/swiper/swiper-react.es.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
14
|
+
/* empty css */
|
|
15
|
+
import r from "./protocolTags.module.css.es.js";
|
|
16
|
+
const C = ({ tags: e }) => {
|
|
17
|
+
var l;
|
|
18
|
+
const [t, p] = n(
|
|
19
|
+
((l = e[0]) == null ? void 0 : l.label) || null
|
|
20
|
+
), s = d(
|
|
21
|
+
() => {
|
|
22
|
+
var o;
|
|
23
|
+
return (o = e.find((c) => c.label === t)) == null ? void 0 : o.description;
|
|
24
|
+
},
|
|
25
|
+
[t, e]
|
|
26
|
+
);
|
|
27
|
+
return /* @__PURE__ */ i.jsxs("div", { className: r.root, children: [
|
|
28
|
+
/* @__PURE__ */ i.jsx("div", { className: r.tags, children: e.map((o) => /* @__PURE__ */ i.jsx(
|
|
19
29
|
b,
|
|
20
30
|
{
|
|
21
|
-
value:
|
|
31
|
+
value: o.label,
|
|
22
32
|
size: "md",
|
|
23
|
-
active:
|
|
24
|
-
onClick:
|
|
25
|
-
children:
|
|
33
|
+
active: o.label === t,
|
|
34
|
+
onClick: p,
|
|
35
|
+
children: o.label
|
|
26
36
|
},
|
|
27
|
-
|
|
37
|
+
o.label
|
|
28
38
|
)) }),
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
39
|
+
s && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
40
|
+
/* @__PURE__ */ i.jsx(
|
|
41
|
+
m,
|
|
42
|
+
{
|
|
43
|
+
as: "p",
|
|
44
|
+
defaultVariant: "bodyLg",
|
|
45
|
+
className: a(r.description, r.desktop),
|
|
46
|
+
children: s
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
/* @__PURE__ */ i.jsx(
|
|
50
|
+
m,
|
|
51
|
+
{
|
|
52
|
+
as: "p",
|
|
53
|
+
defaultVariant: "bodyMd",
|
|
54
|
+
className: a(r.description, r.mobile),
|
|
55
|
+
children: s
|
|
56
|
+
}
|
|
57
|
+
)
|
|
32
58
|
] })
|
|
33
59
|
] });
|
|
34
60
|
};
|
|
35
61
|
export {
|
|
36
|
-
|
|
62
|
+
C as ProtocolTags
|
|
37
63
|
};
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const w=require("../shared/create-element-if-not-defined.cjs.js"),l=require("../shared/utils.cjs.js");function L(x){let{swiper:a,extendParams:C,on:c,emit:g}=x;C({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),a.navigation={nextEl:null,prevEl:null};function u(i){let n;return i&&typeof i=="string"&&a.isElement&&(n=a.el.querySelector(i)||a.hostEl.querySelector(i),n)?n:(i&&(typeof i=="string"&&(n=[...document.querySelectorAll(i)]),a.params.uniqueNavElements&&typeof i=="string"&&n&&n.length>1&&a.el.querySelectorAll(i).length===1?n=a.el.querySelector(i):n&&n.length===1&&(n=n[0])),i&&!n?i:n)}function v(i,n){const t=a.params.navigation;i=l.m(i),i.forEach(e=>{e&&(e.classList[n?"add":"remove"](...t.disabledClass.split(" ")),e.tagName==="BUTTON"&&(e.disabled=n),a.params.watchOverflow&&a.enabled&&e.classList[a.isLocked?"add":"remove"](t.lockClass))})}function d(){const{nextEl:i,prevEl:n}=a.navigation;if(a.params.loop){v(n,!1),v(i,!1);return}v(n,a.isBeginning&&!a.params.rewind),v(i,a.isEnd&&!a.params.rewind)}function E(i){i.preventDefault(),!(a.isBeginning&&!a.params.loop&&!a.params.rewind)&&(a.slidePrev(),g("navigationPrev"))}function h(i){i.preventDefault(),!(a.isEnd&&!a.params.loop&&!a.params.rewind)&&(a.slideNext(),g("navigationNext"))}function f(){const i=a.params.navigation;if(a.params.navigation=w.c(a,a.originalParams.navigation,a.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(i.nextEl||i.prevEl))return;let n=u(i.nextEl),t=u(i.prevEl);Object.assign(a.navigation,{nextEl:n,prevEl:t}),n=l.m(n),t=l.m(t);const e=(s,p)=>{s&&s.addEventListener("click",p==="next"?h:E),!a.enabled&&s&&s.classList.add(...i.lockClass.split(" "))};n.forEach(s=>e(s,"next")),t.forEach(s=>e(s,"prev"))}function m(){let{nextEl:i,prevEl:n}=a.navigation;i=l.m(i),n=l.m(n);const t=(e,s)=>{e.removeEventListener("click",s==="next"?h:E),e.classList.remove(...a.params.navigation.disabledClass.split(" "))};i.forEach(e=>t(e,"next")),n.forEach(e=>t(e,"prev"))}c("init",()=>{a.params.navigation.enabled===!1?b():(f(),d())}),c("toEdge fromEdge lock unlock",()=>{d()}),c("destroy",()=>{m()}),c("enable disable",()=>{let{nextEl:i,prevEl:n}=a.navigation;if(i=l.m(i),n=l.m(n),a.enabled){d();return}[...i,...n].filter(t=>!!t).forEach(t=>t.classList.add(a.params.navigation.lockClass))}),c("click",(i,n)=>{let{nextEl:t,prevEl:e}=a.navigation;t=l.m(t),e=l.m(e);const s=n.target;let p=e.includes(s)||t.includes(s);if(a.isElement&&!p){const o=n.path||n.composedPath&&n.composedPath();o&&(p=o.find(r=>t.includes(r)||e.includes(r)))}if(a.params.navigation.hideOnClick&&!p){if(a.pagination&&a.params.pagination&&a.params.pagination.clickable&&(a.pagination.el===s||a.pagination.el.contains(s)))return;let o;t.length?o=t[0].classList.contains(a.params.navigation.hiddenClass):e.length&&(o=e[0].classList.contains(a.params.navigation.hiddenClass)),g(o===!0?"navigationShow":"navigationHide"),[...t,...e].filter(r=>!!r).forEach(r=>r.classList.toggle(a.params.navigation.hiddenClass))}});const k=()=>{a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")),f(),d()},b=()=>{a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")),m()};Object.assign(a.navigation,{enable:k,disable:b,update:d,init:f,destroy:m})}exports.default=L;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { c as w } from "../shared/create-element-if-not-defined.es.js";
|
|
2
|
+
import { m as l } from "../shared/utils.es.js";
|
|
3
|
+
function N(x) {
|
|
4
|
+
let {
|
|
5
|
+
swiper: a,
|
|
6
|
+
extendParams: C,
|
|
7
|
+
on: c,
|
|
8
|
+
emit: g
|
|
9
|
+
} = x;
|
|
10
|
+
C({
|
|
11
|
+
navigation: {
|
|
12
|
+
nextEl: null,
|
|
13
|
+
prevEl: null,
|
|
14
|
+
hideOnClick: !1,
|
|
15
|
+
disabledClass: "swiper-button-disabled",
|
|
16
|
+
hiddenClass: "swiper-button-hidden",
|
|
17
|
+
lockClass: "swiper-button-lock",
|
|
18
|
+
navigationDisabledClass: "swiper-navigation-disabled"
|
|
19
|
+
}
|
|
20
|
+
}), a.navigation = {
|
|
21
|
+
nextEl: null,
|
|
22
|
+
prevEl: null
|
|
23
|
+
};
|
|
24
|
+
function u(i) {
|
|
25
|
+
let n;
|
|
26
|
+
return i && typeof i == "string" && a.isElement && (n = a.el.querySelector(i) || a.hostEl.querySelector(i), n) ? n : (i && (typeof i == "string" && (n = [...document.querySelectorAll(i)]), a.params.uniqueNavElements && typeof i == "string" && n && n.length > 1 && a.el.querySelectorAll(i).length === 1 ? n = a.el.querySelector(i) : n && n.length === 1 && (n = n[0])), i && !n ? i : n);
|
|
27
|
+
}
|
|
28
|
+
function f(i, n) {
|
|
29
|
+
const t = a.params.navigation;
|
|
30
|
+
i = l(i), i.forEach((e) => {
|
|
31
|
+
e && (e.classList[n ? "add" : "remove"](...t.disabledClass.split(" ")), e.tagName === "BUTTON" && (e.disabled = n), a.params.watchOverflow && a.enabled && e.classList[a.isLocked ? "add" : "remove"](t.lockClass));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function d() {
|
|
35
|
+
const {
|
|
36
|
+
nextEl: i,
|
|
37
|
+
prevEl: n
|
|
38
|
+
} = a.navigation;
|
|
39
|
+
if (a.params.loop) {
|
|
40
|
+
f(n, !1), f(i, !1);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
f(n, a.isBeginning && !a.params.rewind), f(i, a.isEnd && !a.params.rewind);
|
|
44
|
+
}
|
|
45
|
+
function E(i) {
|
|
46
|
+
i.preventDefault(), !(a.isBeginning && !a.params.loop && !a.params.rewind) && (a.slidePrev(), g("navigationPrev"));
|
|
47
|
+
}
|
|
48
|
+
function h(i) {
|
|
49
|
+
i.preventDefault(), !(a.isEnd && !a.params.loop && !a.params.rewind) && (a.slideNext(), g("navigationNext"));
|
|
50
|
+
}
|
|
51
|
+
function v() {
|
|
52
|
+
const i = a.params.navigation;
|
|
53
|
+
if (a.params.navigation = w(a, a.originalParams.navigation, a.params.navigation, {
|
|
54
|
+
nextEl: "swiper-button-next",
|
|
55
|
+
prevEl: "swiper-button-prev"
|
|
56
|
+
}), !(i.nextEl || i.prevEl)) return;
|
|
57
|
+
let n = u(i.nextEl), t = u(i.prevEl);
|
|
58
|
+
Object.assign(a.navigation, {
|
|
59
|
+
nextEl: n,
|
|
60
|
+
prevEl: t
|
|
61
|
+
}), n = l(n), t = l(t);
|
|
62
|
+
const e = (s, p) => {
|
|
63
|
+
s && s.addEventListener("click", p === "next" ? h : E), !a.enabled && s && s.classList.add(...i.lockClass.split(" "));
|
|
64
|
+
};
|
|
65
|
+
n.forEach((s) => e(s, "next")), t.forEach((s) => e(s, "prev"));
|
|
66
|
+
}
|
|
67
|
+
function m() {
|
|
68
|
+
let {
|
|
69
|
+
nextEl: i,
|
|
70
|
+
prevEl: n
|
|
71
|
+
} = a.navigation;
|
|
72
|
+
i = l(i), n = l(n);
|
|
73
|
+
const t = (e, s) => {
|
|
74
|
+
e.removeEventListener("click", s === "next" ? h : E), e.classList.remove(...a.params.navigation.disabledClass.split(" "));
|
|
75
|
+
};
|
|
76
|
+
i.forEach((e) => t(e, "next")), n.forEach((e) => t(e, "prev"));
|
|
77
|
+
}
|
|
78
|
+
c("init", () => {
|
|
79
|
+
a.params.navigation.enabled === !1 ? b() : (v(), d());
|
|
80
|
+
}), c("toEdge fromEdge lock unlock", () => {
|
|
81
|
+
d();
|
|
82
|
+
}), c("destroy", () => {
|
|
83
|
+
m();
|
|
84
|
+
}), c("enable disable", () => {
|
|
85
|
+
let {
|
|
86
|
+
nextEl: i,
|
|
87
|
+
prevEl: n
|
|
88
|
+
} = a.navigation;
|
|
89
|
+
if (i = l(i), n = l(n), a.enabled) {
|
|
90
|
+
d();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
[...i, ...n].filter((t) => !!t).forEach((t) => t.classList.add(a.params.navigation.lockClass));
|
|
94
|
+
}), c("click", (i, n) => {
|
|
95
|
+
let {
|
|
96
|
+
nextEl: t,
|
|
97
|
+
prevEl: e
|
|
98
|
+
} = a.navigation;
|
|
99
|
+
t = l(t), e = l(e);
|
|
100
|
+
const s = n.target;
|
|
101
|
+
let p = e.includes(s) || t.includes(s);
|
|
102
|
+
if (a.isElement && !p) {
|
|
103
|
+
const o = n.path || n.composedPath && n.composedPath();
|
|
104
|
+
o && (p = o.find((r) => t.includes(r) || e.includes(r)));
|
|
105
|
+
}
|
|
106
|
+
if (a.params.navigation.hideOnClick && !p) {
|
|
107
|
+
if (a.pagination && a.params.pagination && a.params.pagination.clickable && (a.pagination.el === s || a.pagination.el.contains(s))) return;
|
|
108
|
+
let o;
|
|
109
|
+
t.length ? o = t[0].classList.contains(a.params.navigation.hiddenClass) : e.length && (o = e[0].classList.contains(a.params.navigation.hiddenClass)), g(o === !0 ? "navigationShow" : "navigationHide"), [...t, ...e].filter((r) => !!r).forEach((r) => r.classList.toggle(a.params.navigation.hiddenClass));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const k = () => {
|
|
113
|
+
a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")), v(), d();
|
|
114
|
+
}, b = () => {
|
|
115
|
+
a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")), m();
|
|
116
|
+
};
|
|
117
|
+
Object.assign(a.navigation, {
|
|
118
|
+
enable: k,
|
|
119
|
+
disable: b,
|
|
120
|
+
update: d,
|
|
121
|
+
init: v,
|
|
122
|
+
destroy: m
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
N as default
|
|
127
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./utils.cjs.js");function o(i,f,l,n){return i.params.createElements&&Object.keys(n).forEach(e=>{if(!l[e]&&l.auto===!0){let t=u.e(i.el,`.${n[e]}`)[0];t||(t=u.c("div",n[e]),t.className=n[e],i.el.append(t)),l[e]=t,f[e]=t}}),l}exports.c=o;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { e as i, c as m } from "./utils.es.js";
|
|
2
|
+
function o(f, a, n, l) {
|
|
3
|
+
return f.params.createElements && Object.keys(l).forEach((e) => {
|
|
4
|
+
if (!n[e] && n.auto === !0) {
|
|
5
|
+
let t = i(f.el, `.${l[e]}`)[0];
|
|
6
|
+
t || (t = m("div", l[e]), t.className = l[e], f.el.append(t)), n[e] = t, a[e] = t;
|
|
7
|
+
}
|
|
8
|
+
}), n;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
o as c
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function o(e,n){e===void 0&&(e={}),n===void 0&&(n={});const u=["__proto__","constructor","prototype"];Object.keys(n).filter(t=>u.indexOf(t)<0).forEach(t=>{typeof e[t]>"u"?e[t]=n[t]:r(n[t])&&r(e[t])&&Object.keys(n[t]).length>0&&o(e[t],n[t])})}const i={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function c(){const e=typeof document<"u"?document:{};return o(e,i),e}const s={document:i,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function d(){const e=typeof window<"u"?window:{};return o(e,s),e}exports.a=d;exports.g=c;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
function r(e) {
|
|
2
|
+
return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
|
|
3
|
+
}
|
|
4
|
+
function o(e, n) {
|
|
5
|
+
e === void 0 && (e = {}), n === void 0 && (n = {});
|
|
6
|
+
const u = ["__proto__", "constructor", "prototype"];
|
|
7
|
+
Object.keys(n).filter((t) => u.indexOf(t) < 0).forEach((t) => {
|
|
8
|
+
typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
const i = {
|
|
12
|
+
body: {},
|
|
13
|
+
addEventListener() {
|
|
14
|
+
},
|
|
15
|
+
removeEventListener() {
|
|
16
|
+
},
|
|
17
|
+
activeElement: {
|
|
18
|
+
blur() {
|
|
19
|
+
},
|
|
20
|
+
nodeName: ""
|
|
21
|
+
},
|
|
22
|
+
querySelector() {
|
|
23
|
+
return null;
|
|
24
|
+
},
|
|
25
|
+
querySelectorAll() {
|
|
26
|
+
return [];
|
|
27
|
+
},
|
|
28
|
+
getElementById() {
|
|
29
|
+
return null;
|
|
30
|
+
},
|
|
31
|
+
createEvent() {
|
|
32
|
+
return {
|
|
33
|
+
initEvent() {
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
},
|
|
37
|
+
createElement() {
|
|
38
|
+
return {
|
|
39
|
+
children: [],
|
|
40
|
+
childNodes: [],
|
|
41
|
+
style: {},
|
|
42
|
+
setAttribute() {
|
|
43
|
+
},
|
|
44
|
+
getElementsByTagName() {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
createElementNS() {
|
|
50
|
+
return {};
|
|
51
|
+
},
|
|
52
|
+
importNode() {
|
|
53
|
+
return null;
|
|
54
|
+
},
|
|
55
|
+
location: {
|
|
56
|
+
hash: "",
|
|
57
|
+
host: "",
|
|
58
|
+
hostname: "",
|
|
59
|
+
href: "",
|
|
60
|
+
origin: "",
|
|
61
|
+
pathname: "",
|
|
62
|
+
protocol: "",
|
|
63
|
+
search: ""
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
function s() {
|
|
67
|
+
const e = typeof document < "u" ? document : {};
|
|
68
|
+
return o(e, i), e;
|
|
69
|
+
}
|
|
70
|
+
const c = {
|
|
71
|
+
document: i,
|
|
72
|
+
navigator: {
|
|
73
|
+
userAgent: ""
|
|
74
|
+
},
|
|
75
|
+
location: {
|
|
76
|
+
hash: "",
|
|
77
|
+
host: "",
|
|
78
|
+
hostname: "",
|
|
79
|
+
href: "",
|
|
80
|
+
origin: "",
|
|
81
|
+
pathname: "",
|
|
82
|
+
protocol: "",
|
|
83
|
+
search: ""
|
|
84
|
+
},
|
|
85
|
+
history: {
|
|
86
|
+
replaceState() {
|
|
87
|
+
},
|
|
88
|
+
pushState() {
|
|
89
|
+
},
|
|
90
|
+
go() {
|
|
91
|
+
},
|
|
92
|
+
back() {
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
CustomEvent: function() {
|
|
96
|
+
return this;
|
|
97
|
+
},
|
|
98
|
+
addEventListener() {
|
|
99
|
+
},
|
|
100
|
+
removeEventListener() {
|
|
101
|
+
},
|
|
102
|
+
getComputedStyle() {
|
|
103
|
+
return {
|
|
104
|
+
getPropertyValue() {
|
|
105
|
+
return "";
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
Image() {
|
|
110
|
+
},
|
|
111
|
+
Date() {
|
|
112
|
+
},
|
|
113
|
+
screen: {},
|
|
114
|
+
setTimeout() {
|
|
115
|
+
},
|
|
116
|
+
clearTimeout() {
|
|
117
|
+
},
|
|
118
|
+
matchMedia() {
|
|
119
|
+
return {};
|
|
120
|
+
},
|
|
121
|
+
requestAnimationFrame(e) {
|
|
122
|
+
return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
|
|
123
|
+
},
|
|
124
|
+
cancelAnimationFrame(e) {
|
|
125
|
+
typeof setTimeout > "u" || clearTimeout(e);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
function a() {
|
|
129
|
+
const e = typeof window < "u" ? window : {};
|
|
130
|
+
return o(e, c), e;
|
|
131
|
+
}
|
|
132
|
+
export {
|
|
133
|
+
a,
|
|
134
|
+
s as g
|
|
135
|
+
};
|