@zenpatient-org/healthspan-marketing-ui 0.1.19 → 0.1.21
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/README.md +18 -16
- package/dist/_virtual/Popover.cjs.js +1 -0
- package/dist/_virtual/Popover.es.js +5 -0
- package/dist/_virtual/Popover.es2.js +4 -0
- package/dist/_virtual/{jsx-runtime.cjs2.js → PopoverPortal.cjs.js} +1 -1
- package/dist/_virtual/PopoverPortal.es.js +4 -0
- package/dist/_virtual/useArrowContainer.cjs.js +1 -0
- package/dist/_virtual/useArrowContainer.es.js +4 -0
- package/dist/_virtual/useElementRef.cjs.js +1 -0
- package/dist/_virtual/useHandlePrevValues.cjs.js +1 -0
- package/dist/_virtual/useHandlePrevValues.es.js +4 -0
- package/dist/_virtual/useMemoizedArray.cjs.js +1 -0
- package/dist/_virtual/useMemoizedArray.es.js +4 -0
- package/dist/_virtual/usePopover.cjs.js +1 -0
- package/dist/_virtual/usePopover.es.js +4 -0
- package/dist/_virtual/util.cjs.js +1 -0
- package/dist/_virtual/util.es.js +4 -0
- package/dist/components/Benefit/Benefit.cjs.js +1 -0
- package/dist/components/Benefit/Benefit.es.js +13 -0
- package/dist/components/Benefit/benefit.module.css.cjs.js +1 -0
- package/dist/components/Benefit/benefit.module.css.es.js +9 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +13 -13
- package/dist/components/Callback/Callback.cjs.js +1 -1
- package/dist/components/Callback/Callback.es.js +34 -35
- package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -0
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +70 -0
- package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +1 -0
- package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +17 -0
- package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
- package/dist/components/ContentTabs/ContentTabs.es.js +19 -19
- package/dist/components/Cursor/Cursor.cjs.js +1 -0
- package/dist/components/Cursor/Cursor.es.js +9 -0
- package/dist/components/Cursor/components/ClientCursor.cjs.js +1 -0
- package/dist/components/Cursor/components/ClientCursor.es.js +42 -0
- package/dist/components/Cursor/components/ServerCursor.cjs.js +1 -0
- package/dist/components/Cursor/components/ServerCursor.es.js +4 -0
- package/dist/components/Cursor/cursor.module.css.cjs.js +1 -0
- package/dist/components/Cursor/cursor.module.css.es.js +11 -0
- package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
- package/dist/components/FilterMenu/FilterMenu.es.js +18 -17
- package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +1 -1
- package/dist/components/HighlightedTitle/HighlightedTitle.es.js +22 -33
- package/dist/components/Icon/Icon.cjs.js +1 -1
- package/dist/components/Icon/Icon.es.js +7 -16
- package/dist/components/Icon/iconsMap.cjs.js +1 -0
- package/dist/components/Icon/iconsMap.d.ts +4 -0
- package/dist/components/Icon/iconsMap.es.js +110 -0
- package/dist/components/IconButton/IconButton.cjs.js +1 -1
- package/dist/components/IconButton/IconButton.es.js +12 -13
- package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
- package/dist/components/InfiniteScroll/InfiniteScroll.es.js +34 -33
- package/dist/components/Label/Label.cjs.js +1 -1
- package/dist/components/Label/Label.es.js +8 -8
- package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.es.js +46 -45
- package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +15 -15
- package/dist/components/ProductListing/ProductListing.cjs.js +1 -0
- package/dist/components/ProductListing/ProductListing.es.js +30 -0
- package/dist/components/ProductListing/productListing.module.css.cjs.js +1 -0
- package/dist/components/ProductListing/productListing.module.css.es.js +29 -0
- package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -0
- package/dist/components/ProgramCard/ProgramCard.es.js +48 -0
- package/dist/components/ProgramCard/assets/program_card_bg.png.cjs.js +1 -0
- package/dist/components/ProgramCard/assets/program_card_bg.png.es.js +4 -0
- package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -0
- package/dist/components/ProgramCard/programCard.module.css.es.js +7 -0
- package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
- package/dist/components/ProgressButton/ProgressButton.es.js +18 -19
- package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
- package/dist/components/StepsCarousel/StepsCarousel.es.js +40 -39
- package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -0
- package/dist/components/StudyGridCard/StudyGridCard.es.js +61 -0
- package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -0
- package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +19 -0
- package/dist/components/Tabs/Tabs.cjs.js +1 -1
- package/dist/components/Tabs/Tabs.es.js +20 -20
- package/dist/components/Tabs/TabsWithFade.cjs.js +1 -1
- package/dist/components/Tabs/TabsWithFade.es.js +16 -15
- package/dist/components/Tag/Tag.cjs.js +1 -1
- package/dist/components/Tag/Tag.es.js +15 -15
- package/dist/components/TextButton/TextButton.cjs.js +1 -1
- package/dist/components/TextButton/TextButton.es.js +18 -18
- package/dist/components/TypeBadge/TypeBadge.cjs.js +1 -1
- package/dist/components/TypeBadge/TypeBadge.es.js +4 -4
- package/dist/components/Typography/Typography.cjs.js +1 -1
- package/dist/components/Typography/Typography.es.js +9 -9
- package/dist/components/index.d.ts +0 -27
- package/dist/healthspan-marketing-ui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.es.js +2 -57
- package/dist/modules/Callback/Callback.cjs.js +1 -0
- package/dist/modules/Callback/Callback.d.ts +1 -1
- package/dist/modules/Callback/Callback.es.js +36 -0
- package/dist/modules/Callback/callback.module.css.cjs.js +1 -0
- package/dist/modules/Callback/callback.module.css.es.js +13 -0
- package/dist/modules/Comparison/Comparison.cjs.js +1 -0
- package/dist/modules/Comparison/Comparison.es.js +86 -0
- package/dist/modules/Comparison/assets/company-logo.svg.cjs.js +1 -0
- package/dist/modules/Comparison/assets/company-logo.svg.es.js +5 -0
- package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -0
- package/dist/modules/Comparison/comparison.module.css.es.js +39 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.cjs.js +1 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.es.js +42 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.cjs.js +1 -0
- package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.es.js +27 -0
- package/dist/modules/Comparison/utils.cjs.js +1 -0
- package/dist/modules/Comparison/utils.es.js +4 -0
- package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -0
- package/dist/modules/FeaturedIn/FeaturedIn.es.js +54 -0
- package/dist/modules/FeaturedIn/featuredIn.module.css.cjs.js +1 -0
- package/dist/modules/FeaturedIn/featuredIn.module.css.es.js +37 -0
- package/dist/modules/FeaturesGallery/FeaturesGallery.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +22 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +29 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.es.js +21 -0
- package/dist/modules/FeaturesGallery/featuresGallery.module.css.cjs.js +1 -0
- package/dist/modules/FeaturesGallery/featuresGallery.module.css.es.js +21 -0
- package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -0
- package/dist/modules/FollowTheScience/FollowTheScience.es.js +73 -0
- package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -0
- package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +15 -0
- package/dist/modules/HowItWorks/HowItWorks.cjs.js +1 -0
- package/dist/modules/HowItWorks/HowItWorks.es.js +16 -0
- package/dist/modules/HowItWorks/components/Content/Content.cjs.js +1 -0
- package/dist/modules/HowItWorks/components/Content/Content.es.js +65 -0
- package/dist/modules/HowItWorks/components/Content/content.module.css.cjs.js +1 -0
- package/dist/modules/HowItWorks/components/Content/content.module.css.es.js +21 -0
- package/dist/modules/HowItWorks/howItWorks.module.css.cjs.js +1 -0
- package/dist/modules/HowItWorks/howItWorks.module.css.es.js +13 -0
- package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -0
- package/dist/modules/OptimalHealth/OptimalHealth.es.js +19 -0
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +37 -0
- package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +15 -0
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +1 -0
- package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +13 -0
- package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -0
- package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +19 -0
- package/dist/modules/OurProcess/OurProcess.cjs.js +1 -0
- package/dist/modules/OurProcess/OurProcess.d.ts +1 -1
- package/dist/modules/OurProcess/OurProcess.es.js +15 -0
- package/dist/modules/OurProcess/ourProcess.module.css.cjs.js +1 -0
- package/dist/modules/OurProcess/ourProcess.module.css.es.js +11 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +17 -22
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -1
- package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +9 -19
- package/dist/modules/ProductsDisplay/types.d.ts +1 -1
- package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/useProductsData.d.ts +2 -1
- package/dist/modules/ProductsDisplay/useProductsData.es.js +8 -7
- package/dist/modules/Studies/Studies.cjs.js +1 -0
- package/dist/modules/Studies/Studies.es.js +26 -0
- package/dist/modules/Studies/studies.module.css.cjs.js +1 -0
- package/dist/modules/Studies/studies.module.css.es.js +15 -0
- package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -0
- package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +67 -0
- package/dist/modules/TargetedPrograms/targetedPrograms.module.css.cjs.js +1 -0
- package/dist/modules/TargetedPrograms/targetedPrograms.module.css.es.js +15 -0
- package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
- package/dist/modules/TotalCare/TotalCare.d.ts +1 -1
- package/dist/modules/TotalCare/TotalCare.es.js +18 -27
- package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
- package/dist/modules/YourProtocol/YourProtocol.es.js +19 -30
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
- package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +19 -27
- package/dist/modules/index.d.ts +0 -3
- package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.es.js +37 -0
- package/dist/node_modules/react-tiny-popover/dist/Popover.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/Popover.es.js +147 -0
- package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.es.js +20 -0
- package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.es.js +86 -0
- package/dist/node_modules/react-tiny-popover/dist/useElementRef.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useElementRef.es.js +22 -0
- package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.es.js +34 -0
- package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.es.js +24 -0
- package/dist/node_modules/react-tiny-popover/dist/usePopover.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/usePopover.es.js +140 -0
- package/dist/node_modules/react-tiny-popover/dist/util.cjs.js +1 -0
- package/dist/node_modules/react-tiny-popover/dist/util.es.js +81 -0
- package/dist/utils/index.d.ts +0 -4
- package/dist/utils/isHsIcon/isHsIcon.cjs.js +1 -0
- package/dist/utils/{isHsIcon.es.js → isHsIcon/isHsIcon.es.js} +1 -1
- package/package.json +206 -5
- package/dist/_virtual/dynamic-import-helper.cjs.js +0 -1
- package/dist/_virtual/dynamic-import-helper.es.js +0 -16
- package/dist/_virtual/jsx-runtime.cjs.js +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -5
- package/dist/_virtual/jsx-runtime.es2.js +0 -4
- package/dist/icons/map/pin-drop.svg.cjs.js +0 -1
- package/dist/icons/map/pin-drop.svg.es.js +0 -5
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -14
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -247
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +0 -9
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -35
- package/dist/node_modules/react/jsx-runtime.cjs.js +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -10
- package/dist/utils/isHsIcon.cjs.js +0 -1
- package/dist/utils.cjs.js +0 -1
- package/dist/utils.es.js +0 -10
- /package/dist/_virtual/{react-jsx-runtime.development.cjs.js → ArrowContainer.cjs.js} +0 -0
- /package/dist/_virtual/{react-jsx-runtime.production.es.js → ArrowContainer.es.js} +0 -0
- /package/dist/_virtual/{react-jsx-runtime.production.cjs.js → Popover.cjs2.js} +0 -0
- /package/dist/_virtual/{react-jsx-runtime.development.es.js → useElementRef.es.js} +0 -0
- /package/dist/{utils → lib}/useSwiper.d.ts +0 -0
- /package/dist/utils/{cn.cjs.js → cn/cn.cjs.js} +0 -0
- /package/dist/utils/{cn.es.js → cn/cn.es.js} +0 -0
- /package/dist/utils/{formatUnits.cjs.js → formatUnits/formatUnits.cjs.js} +0 -0
- /package/dist/utils/{formatUnits.es.js → formatUnits/formatUnits.es.js} +0 -0
- /package/dist/utils/{useSwiper.cjs.js → useSwiper/useSwiper.cjs.js} +0 -0
- /package/dist/utils/{useSwiper.es.js → useSwiper/useSwiper.es.js} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Button as a } from "../../components/Button/Button.es.js";
|
|
3
|
+
import { HighlightedTitle as h } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
|
+
import { StudyGridCard as p } from "../../components/StudyGridCard/StudyGridCard.es.js";
|
|
5
|
+
import { Typography as u } from "../../components/Typography/Typography.es.js";
|
|
6
|
+
import t from "./studies.module.css.es.js";
|
|
7
|
+
function w({ title: o, description: l, articles: n }) {
|
|
8
|
+
const m = n.reduce(
|
|
9
|
+
(e, s) => {
|
|
10
|
+
const i = e[e.length - 1];
|
|
11
|
+
return i.length < 2 ? i.push(s) : e.push([s]), e;
|
|
12
|
+
},
|
|
13
|
+
[[]]
|
|
14
|
+
);
|
|
15
|
+
return /* @__PURE__ */ d("div", { className: t.container, children: [
|
|
16
|
+
/* @__PURE__ */ d("div", { className: t.header, children: [
|
|
17
|
+
/* @__PURE__ */ r(h, { title: o }),
|
|
18
|
+
/* @__PURE__ */ r(u, { as: "p", defaultVariant: "bodyLg", className: t.description, children: l }),
|
|
19
|
+
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(a, { variant: "muted", size: "lg", children: "view all studies" }) })
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ r("div", { className: t.articles, children: m.map((e, s) => /* @__PURE__ */ r("div", { className: t.row, children: e.map((i) => /* @__PURE__ */ r(p, { ...i }, i.title)) }, s)) })
|
|
22
|
+
] });
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
w as Studies
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="studies-module__container___oLKXc",t="studies-module__header___FA3V2",s="studies-module__description___-3MIr",o="studies-module__articles___tUcYS",_="studies-module__row___yHNIP",r={container:e,header:t,description:s,articles:o,row:_};exports.articles=o;exports.container=e;exports.default=r;exports.description=s;exports.header=t;exports.row=_;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const e = "studies-module__container___oLKXc", s = "studies-module__header___FA3V2", _ = "studies-module__description___-3MIr", t = "studies-module__articles___tUcYS", o = "studies-module__row___yHNIP", c = {
|
|
2
|
+
container: e,
|
|
3
|
+
header: s,
|
|
4
|
+
description: _,
|
|
5
|
+
articles: t,
|
|
6
|
+
row: o
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
t as articles,
|
|
10
|
+
e as container,
|
|
11
|
+
c as default,
|
|
12
|
+
_ as description,
|
|
13
|
+
s as header,
|
|
14
|
+
o as row
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");;/* empty css */;/* empty css */;/* empty css */const m=require("react"),S=require("../../node_modules/swiper/modules/navigation.cjs.js"),t=require("../../node_modules/swiper/swiper-react.cjs.js"),f=require("../../components/Cursor/Cursor.cjs.js"),q=require("../../components/ProgramCard/ProgramCard.cjs.js"),n=require("../../components/ProgressButton/ProgressButton.cjs.js"),C=require("../../components/Typography/Typography.cjs.js"),P=require("../../utils/useSwiper/useSwiper.cjs.js"),r=require("./targetedPrograms.module.css.cjs.js"),j=[S.default];function w({title:a,cards:l}){const{setIsEnd:c,handleSlideChange:d,handlePrevClick:s,handleNextClick:i,onSwiperInit:u,handleSwiperResize:p}=P.useSwiper();return e.jsxs("div",{className:r.default.container,children:[e.jsxs("div",{className:r.default.heading,children:[e.jsx(C.Typography,{as:"h2",defaultVariant:"displayMd",mobileVariant:"headingXl",children:a}),e.jsx("div",{className:r.default.progressButtons,"data-device":"desktop",children:e.jsx(n.ProgressButton,{left:{onClick:s},right:{onClick:i}})})]}),e.jsx("div",{className:r.default.carouselArea,children:e.jsx(t.Swiper,{onSwiper:u,onResize:p,onSlideChange:d,onReachEnd:()=>c(!0),modules:j,spaceBetween:16,slidesPerView:"auto",className:r.default.swiper,loop:!0,slidesOffsetBefore:8,children:l.map((o,g)=>{const h=o.type!=="coming_soon"?f.Cursor:m.Fragment;return e.jsx(t.SwiperSlide,{className:r.default.swiperSlide,children:e.jsx(h,{label:"Learn More",colorScheme:"light",children:e.jsx(q.ProgramCard,{...o})})},g)})})}),e.jsx("div",{className:r.default.progressButtons,"data-device":"mobile",children:e.jsx(n.ProgressButton,{left:{onClick:s},right:{onClick:i}})})]})}exports.TargetedPrograms=w;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { Fragment as g } from "react";
|
|
7
|
+
import u from "../../node_modules/swiper/modules/navigation.es.js";
|
|
8
|
+
import { Swiper as S, SwiperSlide as w } from "../../node_modules/swiper/swiper-react.es.js";
|
|
9
|
+
import { Cursor as C } from "../../components/Cursor/Cursor.es.js";
|
|
10
|
+
import { ProgramCard as v } from "../../components/ProgramCard/ProgramCard.es.js";
|
|
11
|
+
import { ProgressButton as a } from "../../components/ProgressButton/ProgressButton.es.js";
|
|
12
|
+
import { Typography as N } from "../../components/Typography/Typography.es.js";
|
|
13
|
+
import { useSwiper as k } from "../../utils/useSwiper/useSwiper.es.js";
|
|
14
|
+
import r from "./targetedPrograms.module.css.es.js";
|
|
15
|
+
const P = [u];
|
|
16
|
+
function T({ title: n, cards: l }) {
|
|
17
|
+
const { setIsEnd: m, handleSlideChange: d, handlePrevClick: i, handleNextClick: o, onSwiperInit: c, handleSwiperResize: p } = k();
|
|
18
|
+
return /* @__PURE__ */ t("div", { className: r.container, children: [
|
|
19
|
+
/* @__PURE__ */ t("div", { className: r.heading, children: [
|
|
20
|
+
/* @__PURE__ */ e(N, { as: "h2", defaultVariant: "displayMd", mobileVariant: "headingXl", children: n }),
|
|
21
|
+
/* @__PURE__ */ e("div", { className: r.progressButtons, "data-device": "desktop", children: /* @__PURE__ */ e(
|
|
22
|
+
a,
|
|
23
|
+
{
|
|
24
|
+
left: {
|
|
25
|
+
onClick: i
|
|
26
|
+
},
|
|
27
|
+
right: {
|
|
28
|
+
onClick: o
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
) })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ e("div", { className: r.carouselArea, children: /* @__PURE__ */ e(
|
|
34
|
+
S,
|
|
35
|
+
{
|
|
36
|
+
onSwiper: c,
|
|
37
|
+
onResize: p,
|
|
38
|
+
onSlideChange: d,
|
|
39
|
+
onReachEnd: () => m(!0),
|
|
40
|
+
modules: P,
|
|
41
|
+
spaceBetween: 16,
|
|
42
|
+
slidesPerView: "auto",
|
|
43
|
+
className: r.swiper,
|
|
44
|
+
loop: !0,
|
|
45
|
+
slidesOffsetBefore: 8,
|
|
46
|
+
children: l.map((s, h) => {
|
|
47
|
+
const f = s.type !== "coming_soon" ? C : g;
|
|
48
|
+
return /* @__PURE__ */ e(w, { className: r.swiperSlide, children: /* @__PURE__ */ e(f, { label: "Learn More", colorScheme: "light", children: /* @__PURE__ */ e(v, { ...s }) }) }, h);
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
) }),
|
|
52
|
+
/* @__PURE__ */ e("div", { className: r.progressButtons, "data-device": "mobile", children: /* @__PURE__ */ e(
|
|
53
|
+
a,
|
|
54
|
+
{
|
|
55
|
+
left: {
|
|
56
|
+
onClick: i
|
|
57
|
+
},
|
|
58
|
+
right: {
|
|
59
|
+
onClick: o
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
) })
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
T as TargetedPrograms
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="targetedPrograms-module__container___NQcj6",r="targetedPrograms-module__heading___tO73m",t="targetedPrograms-module__swiper___9sFIf",s="targetedPrograms-module__swiperSlide___ULZt5",o="targetedPrograms-module__progressButtons___XhApN",_={container:e,heading:r,swiper:t,swiperSlide:s,progressButtons:o};exports.container=e;exports.default=_;exports.heading=r;exports.progressButtons=o;exports.swiper=t;exports.swiperSlide=s;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const e = "targetedPrograms-module__container___NQcj6", r = "targetedPrograms-module__heading___tO73m", s = "targetedPrograms-module__swiper___9sFIf", t = "targetedPrograms-module__swiperSlide___ULZt5", o = "targetedPrograms-module__progressButtons___XhApN", _ = {
|
|
2
|
+
container: e,
|
|
3
|
+
heading: r,
|
|
4
|
+
swiper: s,
|
|
5
|
+
swiperSlide: t,
|
|
6
|
+
progressButtons: o
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
e as container,
|
|
10
|
+
_ as default,
|
|
11
|
+
r as heading,
|
|
12
|
+
o as progressButtons,
|
|
13
|
+
s as swiper,
|
|
14
|
+
t as swiperSlide
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),n=require("../../components/ContentTabs/ContentTabs.cjs.js"),d=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),t=require("./totalCare.module.css.cjs.js"),u=({title:l,label:c,contentTabs:a,colorScheme:i})=>{const[s,r]=o.useState(a.tabs[0]);return e.jsx("section",{className:t.default.root,"data-scheme":i,children:e.jsxs("div",{className:t.default.container,children:[e.jsx(d.HighlightedTitle,{title:l,label:c,className:t.default.header,colorScheme:i}),e.jsxs("div",{className:t.default.content,children:[e.jsx("div",{className:t.default.tags,children:e.jsx(n.ContentTabs,{activeTab:s,tabs:a.tabs,colorScheme:a.colorScheme,onTabClick:r})}),s.image&&e.jsx("div",{className:t.default.imageWrap,children:e.jsx("img",{src:s.image,alt:"Total Care",className:t.default.image})})]})]})})};exports.TotalCare=u;
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import "../../components/
|
|
5
|
-
import "../../components/
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/*
|
|
13
|
-
|
|
14
|
-
/* empty css */
|
|
15
|
-
import s from "./totalCare.module.css.es.js";
|
|
16
|
-
const y = ({ title: r, label: m, contentTabs: i, colorScheme: e }) => {
|
|
17
|
-
const [a, o] = c(i.tabs[0]);
|
|
18
|
-
return /* @__PURE__ */ t.jsx("section", { className: s.root, "data-scheme": e, children: /* @__PURE__ */ t.jsxs("div", { className: s.container, children: [
|
|
19
|
-
/* @__PURE__ */ t.jsx(p, { title: r, label: m, className: s.header, colorScheme: e }),
|
|
20
|
-
/* @__PURE__ */ t.jsxs("div", { className: s.content, children: [
|
|
21
|
-
/* @__PURE__ */ t.jsx("div", { className: s.tags, children: /* @__PURE__ */ t.jsx(
|
|
22
|
-
l,
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as a, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { useState as l } from "react";
|
|
4
|
+
import { ContentTabs as n } from "../../components/ContentTabs/ContentTabs.es.js";
|
|
5
|
+
import { HighlightedTitle as d } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
6
|
+
import e from "./totalCare.module.css.es.js";
|
|
7
|
+
const b = ({ title: m, label: c, contentTabs: s, colorScheme: i }) => {
|
|
8
|
+
const [t, o] = l(s.tabs[0]);
|
|
9
|
+
return /* @__PURE__ */ a("section", { className: e.root, "data-scheme": i, children: /* @__PURE__ */ r("div", { className: e.container, children: [
|
|
10
|
+
/* @__PURE__ */ a(d, { title: m, label: c, className: e.header, colorScheme: i }),
|
|
11
|
+
/* @__PURE__ */ r("div", { className: e.content, children: [
|
|
12
|
+
/* @__PURE__ */ a("div", { className: e.tags, children: /* @__PURE__ */ a(
|
|
13
|
+
n,
|
|
23
14
|
{
|
|
24
|
-
activeTab:
|
|
25
|
-
tabs:
|
|
26
|
-
colorScheme:
|
|
15
|
+
activeTab: t,
|
|
16
|
+
tabs: s.tabs,
|
|
17
|
+
colorScheme: s.colorScheme,
|
|
27
18
|
onTabClick: o
|
|
28
19
|
}
|
|
29
20
|
) }),
|
|
30
|
-
|
|
21
|
+
t.image && /* @__PURE__ */ a("div", { className: e.imageWrap, children: /* @__PURE__ */ a("img", { src: t.image, alt: "Total Care", className: e.image }) })
|
|
31
22
|
] })
|
|
32
23
|
] }) });
|
|
33
24
|
};
|
|
34
25
|
export {
|
|
35
|
-
|
|
26
|
+
b as TotalCare
|
|
36
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../components/Callback/Callback.cjs.js"),c=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),n=require("../../utils/cn/cn.cjs.js"),a=require("./components/ProtocolTags/ProtocolTags.cjs.js"),o=require("./yourProtocol.module.css.cjs.js"),u=({title:i,image:r,tags:s,callbackView:t})=>e.jsxs("section",{className:o.default.root,children:[e.jsxs("div",{className:o.default.content,children:[e.jsx(c.HighlightedTitle,{title:i,className:o.default.title,defaultVariant:"displaySm",mobileVariant:"headingXl"}),e.jsx(a.ProtocolTags,{tags:s}),t&&e.jsx("div",{className:o.default.callback,children:e.jsx(l.Callback,{title:t.title,description:t.description??"",price:t.price??"",image:t.image,button:{href:t.signupUrl??""},size:"sm"})})]}),e.jsx("img",{src:r,alt:"Your Protocol",className:n.cn(o.default.image,o.default.desktop),width:481,height:640})]});exports.YourProtocol=u;
|
|
@@ -1,40 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../../components/
|
|
3
|
-
import "../../components/
|
|
4
|
-
import "../../
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* empty css */
|
|
14
|
-
/* empty css */
|
|
15
|
-
/* empty css */
|
|
16
|
-
import { ProtocolTags as l } from "./components/ProtocolTags/ProtocolTags.es.js";
|
|
17
|
-
import r from "./yourProtocol.module.css.es.js";
|
|
18
|
-
const E = ({ title: i, image: m, tags: s, callbackView: o }) => /* @__PURE__ */ t.jsxs("section", { className: r.root, children: [
|
|
19
|
-
/* @__PURE__ */ t.jsxs("div", { className: r.content, children: [
|
|
20
|
-
/* @__PURE__ */ t.jsx(p, { title: i, className: r.title, defaultVariant: "displaySm", mobileVariant: "headingXl" }),
|
|
21
|
-
/* @__PURE__ */ t.jsx(l, { tags: s }),
|
|
22
|
-
o && /* @__PURE__ */ t.jsx("div", { className: r.callback, children: /* @__PURE__ */ t.jsx(
|
|
23
|
-
a,
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Callback as l } from "../../components/Callback/Callback.es.js";
|
|
3
|
+
import { HighlightedTitle as a } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
4
|
+
import { cn as n } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { ProtocolTags as p } from "./components/ProtocolTags/ProtocolTags.es.js";
|
|
6
|
+
import o from "./yourProtocol.module.css.es.js";
|
|
7
|
+
const N = ({ title: e, image: s, tags: m, callbackView: t }) => /* @__PURE__ */ i("section", { className: o.root, children: [
|
|
8
|
+
/* @__PURE__ */ i("div", { className: o.content, children: [
|
|
9
|
+
/* @__PURE__ */ r(a, { title: e, className: o.title, defaultVariant: "displaySm", mobileVariant: "headingXl" }),
|
|
10
|
+
/* @__PURE__ */ r(p, { tags: m }),
|
|
11
|
+
t && /* @__PURE__ */ r("div", { className: o.callback, children: /* @__PURE__ */ r(
|
|
12
|
+
l,
|
|
24
13
|
{
|
|
25
|
-
title:
|
|
26
|
-
description:
|
|
27
|
-
price:
|
|
28
|
-
image:
|
|
14
|
+
title: t.title,
|
|
15
|
+
description: t.description ?? "",
|
|
16
|
+
price: t.price ?? "",
|
|
17
|
+
image: t.image,
|
|
29
18
|
button: {
|
|
30
|
-
href:
|
|
19
|
+
href: t.signupUrl ?? ""
|
|
31
20
|
},
|
|
32
21
|
size: "sm"
|
|
33
22
|
}
|
|
34
23
|
) })
|
|
35
24
|
] }),
|
|
36
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ r("img", { src: s, alt: "Your Protocol", className: n(o.image, o.desktop), width: 481, height: 640 })
|
|
37
26
|
] });
|
|
38
27
|
export {
|
|
39
|
-
|
|
28
|
+
N as YourProtocol
|
|
40
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("react"),p=require("../../../../components/Tag/Tag.cjs.js"),i=require("../../../../components/Typography/Typography.cjs.js"),n=require("../../../../utils/cn/cn.cjs.js"),l=require("./protocolTags.module.css.cjs.js"),m=({tags:o})=>{var r;const[s,d]=c.useState(((r=o[0])==null?void 0:r.label)||null),t=c.useMemo(()=>{var e;return(e=o.find(u=>u.label===s))==null?void 0:e.description},[s,o]);return a.jsxs("div",{className:l.default.root,children:[a.jsx("div",{className:l.default.tags,children:o.map(e=>a.jsx(p.Tag,{value:e.label,size:"md",active:e.label===s,onClick:d,children:e.label},e.label))}),t&&a.jsxs(a.Fragment,{children:[a.jsx(i.Typography,{as:"p",defaultVariant:"bodyLg",className:n.cn(l.default.description,l.default.desktop),children:t}),a.jsx(i.Typography,{as:"p",defaultVariant:"bodyMd",className:n.cn(l.default.description,l.default.mobile),children:t})]})]})};exports.ProtocolTags=m;
|
|
@@ -1,32 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import "../../../../components/
|
|
5
|
-
import {
|
|
6
|
-
import "../../../../
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/*
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var o;
|
|
20
|
-
return (o = e.find((c) => c.label === t)) == null ? void 0 : o.description;
|
|
21
|
-
}, [t, e]);
|
|
22
|
-
return /* @__PURE__ */ i.jsxs("div", { className: r.root, children: [
|
|
23
|
-
/* @__PURE__ */ i.jsx("div", { className: r.tags, children: e.map((o) => /* @__PURE__ */ i.jsx(b, { value: o.label, size: "md", active: o.label === t, onClick: p, children: o.label }, o.label)) }),
|
|
24
|
-
s && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
25
|
-
/* @__PURE__ */ i.jsx(a, { as: "p", defaultVariant: "bodyLg", className: m(r.description, r.desktop), children: s }),
|
|
26
|
-
/* @__PURE__ */ i.jsx(a, { as: "p", defaultVariant: "bodyMd", className: m(r.description, r.mobile), children: s })
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as t, jsx as o, Fragment as p } from "react/jsx-runtime";
|
|
3
|
+
import { useState as b, useMemo as f } from "react";
|
|
4
|
+
import { Tag as u } from "../../../../components/Tag/Tag.es.js";
|
|
5
|
+
import { Typography as c } from "../../../../components/Typography/Typography.es.js";
|
|
6
|
+
import { cn as n } from "../../../../utils/cn/cn.es.js";
|
|
7
|
+
import l from "./protocolTags.module.css.es.js";
|
|
8
|
+
const V = ({ tags: i }) => {
|
|
9
|
+
var s;
|
|
10
|
+
const [r, m] = b(((s = i[0]) == null ? void 0 : s.label) || null), a = f(() => {
|
|
11
|
+
var e;
|
|
12
|
+
return (e = i.find((d) => d.label === r)) == null ? void 0 : e.description;
|
|
13
|
+
}, [r, i]);
|
|
14
|
+
return /* @__PURE__ */ t("div", { className: l.root, children: [
|
|
15
|
+
/* @__PURE__ */ o("div", { className: l.tags, children: i.map((e) => /* @__PURE__ */ o(u, { value: e.label, size: "md", active: e.label === r, onClick: m, children: e.label }, e.label)) }),
|
|
16
|
+
a && /* @__PURE__ */ t(p, { children: [
|
|
17
|
+
/* @__PURE__ */ o(c, { as: "p", defaultVariant: "bodyLg", className: n(l.description, l.desktop), children: a }),
|
|
18
|
+
/* @__PURE__ */ o(c, { as: "p", defaultVariant: "bodyMd", className: n(l.description, l.mobile), children: a })
|
|
27
19
|
] })
|
|
28
20
|
] });
|
|
29
21
|
};
|
|
30
22
|
export {
|
|
31
|
-
|
|
23
|
+
V as ProtocolTags
|
|
32
24
|
};
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../_virtual/ArrowContainer.cjs.js"),g=require("react/jsx-runtime"),h=require("react"),q=require("./useArrowContainer.cjs.js");var _;function R(){if(_)return e.__exports;_=1;var o=e.__exports&&e.__exports.__assign||function(){return o=Object.assign||function(r){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},o.apply(this,arguments)};Object.defineProperty(e.__exports,"__esModule",{value:!0}),e.__exports.ArrowContainer=void 0;var s=g,l=h,y=q.__require(),C=function(r){var t=r.childRect,n=r.popoverRect,i=r.position,a=r.arrowColor,d=r.arrowSize,m=r.arrowClassName,u=r.arrowStyle,S=r.className,f=r.children,c=r.style,w=(0,y.useArrowContainer)({childRect:t,popoverRect:n,position:i,arrowColor:a,arrowSize:d}),p=w.arrowContainerStyle,v=w.arrowStyle,x=(0,l.useMemo)(function(){return o(o({},p),c)},[p,c]),A=(0,l.useMemo)(function(){return o(o({},v),u)},[v,u]);return(0,s.jsxs)("div",{className:S,style:x,children:[(0,s.jsx)("div",{style:A,className:m}),f]})};return e.__exports.ArrowContainer=C,e.__exports}exports.__require=R;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __exports as e } from "../../../_virtual/ArrowContainer.es.js";
|
|
2
|
+
import g from "react/jsx-runtime";
|
|
3
|
+
import R from "react";
|
|
4
|
+
import { __require as x } from "./useArrowContainer.es.js";
|
|
5
|
+
var v;
|
|
6
|
+
function O() {
|
|
7
|
+
if (v) return e;
|
|
8
|
+
v = 1;
|
|
9
|
+
var o = e && e.__assign || function() {
|
|
10
|
+
return o = Object.assign || function(r) {
|
|
11
|
+
for (var t, n = 1, i = arguments.length; n < i; n++) {
|
|
12
|
+
t = arguments[n];
|
|
13
|
+
for (var a in t) Object.prototype.hasOwnProperty.call(t, a) && (r[a] = t[a]);
|
|
14
|
+
}
|
|
15
|
+
return r;
|
|
16
|
+
}, o.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.ArrowContainer = void 0;
|
|
19
|
+
var s = g, l = R, C = x(), f = function(r) {
|
|
20
|
+
var t = r.childRect, n = r.popoverRect, i = r.position, a = r.arrowColor, y = r.arrowSize, d = r.arrowClassName, u = r.arrowStyle, A = r.className, S = r.children, c = r.style, w = (0, C.useArrowContainer)({
|
|
21
|
+
childRect: t,
|
|
22
|
+
popoverRect: n,
|
|
23
|
+
position: i,
|
|
24
|
+
arrowColor: a,
|
|
25
|
+
arrowSize: y
|
|
26
|
+
}), m = w.arrowContainerStyle, p = w.arrowStyle, h = (0, l.useMemo)(function() {
|
|
27
|
+
return o(o({}, m), c);
|
|
28
|
+
}, [m, c]), _ = (0, l.useMemo)(function() {
|
|
29
|
+
return o(o({}, p), u);
|
|
30
|
+
}, [p, u]);
|
|
31
|
+
return (0, s.jsxs)("div", { className: A, style: h, children: [(0, s.jsx)("div", { style: _, className: d }), S] });
|
|
32
|
+
};
|
|
33
|
+
return e.ArrowContainer = f, e;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
O as __require
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../../_virtual/Popover.cjs2.js"),ve=require("react/jsx-runtime"),fe=require("react"),pe=require("./PopoverPortal.cjs.js"),me=require("./util.cjs.js"),_e=require("./usePopover.cjs.js"),Pe=require("./useMemoizedArray.cjs.js"),ye=require("./useHandlePrevValues.cjs.js"),be=require("./useArrowContainer.cjs.js"),ge=require("./ArrowContainer.cjs.js");var X;function Ee(){return X||(X=1,function(a){var j=g.__exports&&g.__exports.__assign||function(){return j=Object.assign||function(e){for(var n,o=1,T=arguments.length;o<T;o++){n=arguments[o];for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(e[c]=n[c])}return e},j.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0}),a.Popover=a.usePopover=a.ArrowContainer=a.useArrowContainer=void 0;var E=ve,t=fe,Z=pe.__require(),f=me.__require(),V=_e.__require();Object.defineProperty(a,"usePopover",{enumerable:!0,get:function(){return V.usePopover}});var x=Pe.__require(),ee=ye.__require(),re=be.__require();Object.defineProperty(a,"useArrowContainer",{enumerable:!0,get:function(){return re.useArrowContainer}});var ne=ge.__require();Object.defineProperty(a,"ArrowContainer",{enumerable:!0,get:function(){return ne.ArrowContainer}});var oe=["top","left","right","bottom"],te=(0,t.forwardRef)(function(e,n){var o=e.isOpen,T=e.children,c=e.content,Y=e.positions,k=Y===void 0?oe:Y,F=e.align,h=F===void 0?"center":F,N=e.padding,w=N===void 0?0:N,H=e.reposition,C=H===void 0?!0:H,B=e.parentElement,p=B===void 0?window.document.body:B,D=e.boundaryElement,q=D===void 0?p:D,ie=e.containerClassName,m=e.containerStyle,R=e.transform,U=e.transformMode,O=U===void 0?"absolute":U,$=e.boundaryInset,_=$===void 0?0:$,A=e.onClickOutside,W=e.clickOutsideCapture,P=W===void 0?!1:W,y=(0,x.useMemoizedArray)(Array.isArray(k)?k:[k]),G=(0,ee.useHandlePrevValues)({positions:y,reposition:C,transformMode:O,transform:R,boundaryElement:q,boundaryInset:_}),i=G.prev,J=G.updatePrevValues,l=(0,t.useRef)(),K=(0,t.useState)({align:h,nudgedLeft:0,nudgedTop:0,position:y[0],padding:w,childRect:f.EMPTY_RECT,popoverRect:f.EMPTY_RECT,parentRect:f.EMPTY_RECT,boundaryRect:f.EMPTY_RECT,boundaryInset:_,violations:f.EMPTY_RECT,hasViolations:!1}),u=K[0],ue=K[1],ae=(0,t.useCallback)(function(r){return ue(r)},[]),I=(0,V.usePopover)({isOpen:o,childRef:l,containerClassName:ie,parentElement:p,boundaryElement:q,transform:R,transformMode:O,positions:y,align:h,padding:w,boundaryInset:_,reposition:C,onPositionPopover:ae}),M=I.positionPopover,s=I.popoverRef,se=I.scoutRef;(0,t.useLayoutEffect)(function(){var r=!0,d=function(){var v,S;if(o&&r){var Q=(v=l==null?void 0:l.current)===null||v===void 0?void 0:v.getBoundingClientRect(),z=(S=s==null?void 0:s.current)===null||S===void 0?void 0:S.getBoundingClientRect();Q!=null&&z!=null&&(!(0,f.rectsAreEqual)(Q,u.childRect)||z.width!==u.popoverRect.width||z.height!==u.popoverRect.height||u.padding!==w||u.align!==h||y!==i.positions||C!==i.reposition||O!==i.transformMode||R!==i.transform||q!==i.boundaryElement||_!==i.boundaryInset)&&M(),J(),r&&window.requestAnimationFrame(d)}};return d(),function(){r=!1}},[h,q,_,o,w,s,u.align,u.childRect,u.padding,u.popoverRect.height,u.popoverRect.width,M,y,i.boundaryElement,i.boundaryInset,i.positions,i.reposition,i.transform,i.transformMode,C,R,O,J]),(0,t.useEffect)(function(){var r=s.current;return Object.assign(r.style,m),function(){Object.keys(m??{}).forEach(function(d){return delete r.style[d]})}},[m,o,s]);var b=(0,t.useCallback)(function(r){var d,v;o&&!(!((d=s.current)===null||d===void 0)&&d.contains(r.target))&&!(!((v=l.current)===null||v===void 0)&&v.contains(r.target))&&(A==null||A(r))},[o,A,s]),L=(0,t.useCallback)(function(){l.current&&o&&window.requestAnimationFrame(function(){return M()})},[M,o]);(0,t.useEffect)(function(){var r=p.ownerDocument.body;return r.addEventListener("click",b,P),r.addEventListener("contextmenu",b,P),window.addEventListener("resize",L),function(){r.removeEventListener("click",b,P),r.removeEventListener("contextmenu",b,P),window.removeEventListener("resize",L)}},[P,b,L,p]);var de=(0,t.useCallback)(function(r){l.current=r,n!=null&&(typeof n=="object"?n.current=r:typeof n=="function"&&n(r))},[n]),ce=function(){return(0,t.cloneElement)(T,{ref:de})},le=function(){return o?(0,E.jsx)(Z.PopoverPortal,{element:s.current,scoutElement:se.current,container:p,children:typeof c=="function"?c(u):c}):null};return(0,E.jsxs)(E.Fragment,{children:[ce(),le()]})});a.Popover=(0,t.forwardRef)(function(e,n){return typeof window>"u"?e.children:(0,E.jsx)(te,j({},e,{ref:n}))})}(g.__exports)),g.__exports}exports.__require=Ee;
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { __exports as g } from "../../../_virtual/Popover.es2.js";
|
|
2
|
+
import ce from "react/jsx-runtime";
|
|
3
|
+
import fe from "react";
|
|
4
|
+
import { __require as pe } from "./PopoverPortal.es.js";
|
|
5
|
+
import { __require as me } from "./util.es.js";
|
|
6
|
+
import { __require as Pe } from "./usePopover.es.js";
|
|
7
|
+
import { __require as _e } from "./useMemoizedArray.es.js";
|
|
8
|
+
import { __require as ye } from "./useHandlePrevValues.es.js";
|
|
9
|
+
import { __require as be } from "./useArrowContainer.es.js";
|
|
10
|
+
import { __require as ge } from "./ArrowContainer.es.js";
|
|
11
|
+
var X;
|
|
12
|
+
function ke() {
|
|
13
|
+
return X ? g : (X = 1, function(a) {
|
|
14
|
+
var j = g && g.__assign || function() {
|
|
15
|
+
return j = Object.assign || function(e) {
|
|
16
|
+
for (var n, o = 1, k = arguments.length; o < k; o++) {
|
|
17
|
+
n = arguments[o];
|
|
18
|
+
for (var l in n) Object.prototype.hasOwnProperty.call(n, l) && (e[l] = n[l]);
|
|
19
|
+
}
|
|
20
|
+
return e;
|
|
21
|
+
}, j.apply(this, arguments);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(a, "__esModule", { value: !0 }), a.Popover = a.usePopover = a.ArrowContainer = a.useArrowContainer = void 0;
|
|
24
|
+
var E = ce, t = fe, Z = pe(), f = me(), z = Pe();
|
|
25
|
+
Object.defineProperty(a, "usePopover", { enumerable: !0, get: function() {
|
|
26
|
+
return z.usePopover;
|
|
27
|
+
} });
|
|
28
|
+
var x = _e(), ee = ye(), re = be();
|
|
29
|
+
Object.defineProperty(a, "useArrowContainer", { enumerable: !0, get: function() {
|
|
30
|
+
return re.useArrowContainer;
|
|
31
|
+
} });
|
|
32
|
+
var ne = ge();
|
|
33
|
+
Object.defineProperty(a, "ArrowContainer", { enumerable: !0, get: function() {
|
|
34
|
+
return ne.ArrowContainer;
|
|
35
|
+
} });
|
|
36
|
+
var oe = ["top", "left", "right", "bottom"], te = (0, t.forwardRef)(function(e, n) {
|
|
37
|
+
var o = e.isOpen, k = e.children, l = e.content, V = e.positions, T = V === void 0 ? oe : V, Y = e.align, h = Y === void 0 ? "center" : Y, F = e.padding, w = F === void 0 ? 0 : F, N = e.reposition, C = N === void 0 ? !0 : N, H = e.parentElement, p = H === void 0 ? window.document.body : H, B = e.boundaryElement, R = B === void 0 ? p : B, ie = e.containerClassName, m = e.containerStyle, q = e.transform, D = e.transformMode, O = D === void 0 ? "absolute" : D, $ = e.boundaryInset, P = $ === void 0 ? 0 : $, A = e.onClickOutside, W = e.clickOutsideCapture, _ = W === void 0 ? !1 : W, y = (0, x.useMemoizedArray)(Array.isArray(T) ? T : [T]), G = (0, ee.useHandlePrevValues)({
|
|
38
|
+
positions: y,
|
|
39
|
+
reposition: C,
|
|
40
|
+
transformMode: O,
|
|
41
|
+
transform: q,
|
|
42
|
+
boundaryElement: R,
|
|
43
|
+
boundaryInset: P
|
|
44
|
+
}), i = G.prev, J = G.updatePrevValues, v = (0, t.useRef)(), K = (0, t.useState)({
|
|
45
|
+
align: h,
|
|
46
|
+
nudgedLeft: 0,
|
|
47
|
+
nudgedTop: 0,
|
|
48
|
+
position: y[0],
|
|
49
|
+
padding: w,
|
|
50
|
+
childRect: f.EMPTY_RECT,
|
|
51
|
+
popoverRect: f.EMPTY_RECT,
|
|
52
|
+
parentRect: f.EMPTY_RECT,
|
|
53
|
+
boundaryRect: f.EMPTY_RECT,
|
|
54
|
+
boundaryInset: P,
|
|
55
|
+
violations: f.EMPTY_RECT,
|
|
56
|
+
hasViolations: !1
|
|
57
|
+
}), u = K[0], ue = K[1], ae = (0, t.useCallback)(function(r) {
|
|
58
|
+
return ue(r);
|
|
59
|
+
}, []), I = (0, z.usePopover)({
|
|
60
|
+
isOpen: o,
|
|
61
|
+
childRef: v,
|
|
62
|
+
containerClassName: ie,
|
|
63
|
+
parentElement: p,
|
|
64
|
+
boundaryElement: R,
|
|
65
|
+
transform: q,
|
|
66
|
+
transformMode: O,
|
|
67
|
+
positions: y,
|
|
68
|
+
align: h,
|
|
69
|
+
padding: w,
|
|
70
|
+
boundaryInset: P,
|
|
71
|
+
reposition: C,
|
|
72
|
+
onPositionPopover: ae
|
|
73
|
+
}), M = I.positionPopover, s = I.popoverRef, se = I.scoutRef;
|
|
74
|
+
(0, t.useLayoutEffect)(function() {
|
|
75
|
+
var r = !0, d = function() {
|
|
76
|
+
var c, S;
|
|
77
|
+
if (o && r) {
|
|
78
|
+
var Q = (c = v == null ? void 0 : v.current) === null || c === void 0 ? void 0 : c.getBoundingClientRect(), U = (S = s == null ? void 0 : s.current) === null || S === void 0 ? void 0 : S.getBoundingClientRect();
|
|
79
|
+
Q != null && U != null && (!(0, f.rectsAreEqual)(Q, u.childRect) || U.width !== u.popoverRect.width || U.height !== u.popoverRect.height || u.padding !== w || u.align !== h || y !== i.positions || C !== i.reposition || O !== i.transformMode || q !== i.transform || R !== i.boundaryElement || P !== i.boundaryInset) && M(), J(), r && window.requestAnimationFrame(d);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
return d(), function() {
|
|
83
|
+
r = !1;
|
|
84
|
+
};
|
|
85
|
+
}, [
|
|
86
|
+
h,
|
|
87
|
+
R,
|
|
88
|
+
P,
|
|
89
|
+
o,
|
|
90
|
+
w,
|
|
91
|
+
s,
|
|
92
|
+
u.align,
|
|
93
|
+
u.childRect,
|
|
94
|
+
u.padding,
|
|
95
|
+
u.popoverRect.height,
|
|
96
|
+
u.popoverRect.width,
|
|
97
|
+
M,
|
|
98
|
+
y,
|
|
99
|
+
i.boundaryElement,
|
|
100
|
+
i.boundaryInset,
|
|
101
|
+
i.positions,
|
|
102
|
+
i.reposition,
|
|
103
|
+
i.transform,
|
|
104
|
+
i.transformMode,
|
|
105
|
+
C,
|
|
106
|
+
q,
|
|
107
|
+
O,
|
|
108
|
+
J
|
|
109
|
+
]), (0, t.useEffect)(function() {
|
|
110
|
+
var r = s.current;
|
|
111
|
+
return Object.assign(r.style, m), function() {
|
|
112
|
+
Object.keys(m ?? {}).forEach(function(d) {
|
|
113
|
+
return delete r.style[d];
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
}, [m, o, s]);
|
|
117
|
+
var b = (0, t.useCallback)(function(r) {
|
|
118
|
+
var d, c;
|
|
119
|
+
o && !(!((d = s.current) === null || d === void 0) && d.contains(r.target)) && !(!((c = v.current) === null || c === void 0) && c.contains(r.target)) && (A == null || A(r));
|
|
120
|
+
}, [o, A, s]), L = (0, t.useCallback)(function() {
|
|
121
|
+
v.current && o && window.requestAnimationFrame(function() {
|
|
122
|
+
return M();
|
|
123
|
+
});
|
|
124
|
+
}, [M, o]);
|
|
125
|
+
(0, t.useEffect)(function() {
|
|
126
|
+
var r = p.ownerDocument.body;
|
|
127
|
+
return r.addEventListener("click", b, _), r.addEventListener("contextmenu", b, _), window.addEventListener("resize", L), function() {
|
|
128
|
+
r.removeEventListener("click", b, _), r.removeEventListener("contextmenu", b, _), window.removeEventListener("resize", L);
|
|
129
|
+
};
|
|
130
|
+
}, [_, b, L, p]);
|
|
131
|
+
var de = (0, t.useCallback)(function(r) {
|
|
132
|
+
v.current = r, n != null && (typeof n == "object" ? n.current = r : typeof n == "function" && n(r));
|
|
133
|
+
}, [n]), le = function() {
|
|
134
|
+
return (0, t.cloneElement)(k, { ref: de });
|
|
135
|
+
}, ve = function() {
|
|
136
|
+
return o ? (0, E.jsx)(Z.PopoverPortal, { element: s.current, scoutElement: se.current, container: p, children: typeof l == "function" ? l(u) : l }) : null;
|
|
137
|
+
};
|
|
138
|
+
return (0, E.jsxs)(E.Fragment, { children: [le(), ve()] });
|
|
139
|
+
});
|
|
140
|
+
a.Popover = (0, t.forwardRef)(function(e, n) {
|
|
141
|
+
return typeof window > "u" ? e.children : (0, E.jsx)(te, j({}, e, { ref: n }));
|
|
142
|
+
});
|
|
143
|
+
}(g), g);
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
ke as __require
|
|
147
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../_virtual/PopoverPortal.cjs.js"),p=require("react"),v=require("react-dom");var i;function d(){if(i)return r.__exports;i=1,Object.defineProperty(r.__exports,"__esModule",{value:!0}),r.__exports.PopoverPortal=void 0;var u=p,a=v,l=function(o){var e=o.container,t=o.element,n=o.scoutElement,c=o.children;return(0,u.useLayoutEffect)(function(){return e.appendChild(t),e.appendChild(n),function(){e.removeChild(t),e.removeChild(n)}},[e,t,n]),(0,a.createPortal)(c,t)};return r.__exports.PopoverPortal=l,r.__exports}exports.__require=d;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __exports as r } from "../../../_virtual/PopoverPortal.es.js";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import v from "react-dom";
|
|
4
|
+
var a;
|
|
5
|
+
function f() {
|
|
6
|
+
if (a) return r;
|
|
7
|
+
a = 1, Object.defineProperty(r, "__esModule", { value: !0 }), r.PopoverPortal = void 0;
|
|
8
|
+
var i = p, l = v, u = function(o) {
|
|
9
|
+
var e = o.container, t = o.element, n = o.scoutElement, c = o.children;
|
|
10
|
+
return (0, i.useLayoutEffect)(function() {
|
|
11
|
+
return e.appendChild(t), e.appendChild(n), function() {
|
|
12
|
+
e.removeChild(t), e.removeChild(n);
|
|
13
|
+
};
|
|
14
|
+
}, [e, t, n]), (0, l.createPortal)(c, t);
|
|
15
|
+
};
|
|
16
|
+
return r.PopoverPortal = u, r;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
f as __require
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../_virtual/useArrowContainer.cjs.js"),x=require("react");var b;function _(){if(b)return i.__exports;b=1;var u=i.__exports&&i.__exports.__assign||function(){return u=Object.assign||function(a){for(var t,o=1,p=arguments.length;o<p;o++){t=arguments[o];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(a[r]=t[r])}return a},u.apply(this,arguments)};Object.defineProperty(i.__exports,"__esModule",{value:!0}),i.__exports.useArrowContainer=void 0;var l=x,w=function(a){var t=a.childRect,o=a.popoverRect,p=a.position,r=a.arrowSize,c=a.arrowColor,v=(0,l.useMemo)(function(){return{padding:r}},[r]),g=(0,l.useMemo)(function(){return u({position:"absolute"},function(){var s=r*2,e=t.top-o.top+t.height/2-s/2,n=t.left-o.left+t.width/2-s/2,d=r,f=o.width-r,h=o.height-r;switch(n=n<d?d:n,n=n+s>f?f-s:n,e=e<d?d:e,e=e+s>h?h-s:e,e=Number.isNaN(e)?0:e,n=Number.isNaN(n)?0:n,p){case"right":return{borderTop:"".concat(r,"px solid transparent"),borderBottom:"".concat(r,"px solid transparent"),borderRight:"".concat(r,"px solid ").concat(c),left:0,top:e};case"left":return{borderTop:"".concat(r,"px solid transparent"),borderBottom:"".concat(r,"px solid transparent"),borderLeft:"".concat(r,"px solid ").concat(c),right:0,top:e};case"bottom":return{borderLeft:"".concat(r,"px solid transparent"),borderRight:"".concat(r,"px solid transparent"),borderBottom:"".concat(r,"px solid ").concat(c),top:0,left:n};case"top":return{borderLeft:"".concat(r,"px solid transparent"),borderRight:"".concat(r,"px solid transparent"),borderTop:"".concat(r,"px solid ").concat(c),bottom:0,left:n};default:return{display:"hidden"}}}())},[c,r,t.height,t.left,t.top,t.width,o.height,o.left,o.top,o.width,p]);return{arrowContainerStyle:v,arrowStyle:g}};return i.__exports.useArrowContainer=w,i.__exports}exports.__require=_;
|