@zenpatient-org/healthspan-marketing-ui 0.1.20 → 0.1.22
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.d.ts +5 -13
- package/dist/components/ComplexTooltip/ComplexTooltip.es.js +60 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +10 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +50 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.cjs.js +1 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.es.js +15 -0
- package/dist/components/ComplexTooltip/components/ComplexTooltipContent/index.d.ts +1 -0
- package/dist/components/ComplexTooltip/index.d.ts +1 -0
- package/dist/components/ComplexTooltip/types.d.ts +13 -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.d.ts +5 -1
- package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +16 -15
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
- package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +14 -12
- 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/ProductPairs/ProductPairs.cjs.js +1 -0
- package/dist/components/ProductPairs/ProductPairs.d.ts +7 -0
- package/dist/components/ProductPairs/ProductPairs.es.js +55 -0
- package/dist/components/ProductPairs/index.d.ts +1 -0
- package/dist/components/ProductPairs/productPairs.module.css.cjs.js +1 -0
- package/dist/components/ProductPairs/productPairs.module.css.es.js +17 -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 -0
- package/dist/components/StepsCarousel/StepsCarousel.d.ts +13 -0
- package/dist/components/StepsCarousel/StepsCarousel.es.js +92 -0
- package/dist/components/StepsCarousel/index.d.ts +1 -0
- package/dist/components/StepsCarousel/stepsCarousel.module.css.cjs.js +1 -0
- package/dist/components/StepsCarousel/stepsCarousel.module.css.es.js +31 -0
- 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 -26
- 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 -55
- package/dist/modules/Benefits/Benefits.cjs.js +1 -0
- package/dist/modules/Benefits/Benefits.d.ts +14 -0
- package/dist/modules/Benefits/Benefits.es.js +53 -0
- package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/benefits.module.css.es.js +25 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.d.ts +7 -0
- package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +37 -0
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.es.js +11 -0
- package/dist/modules/Benefits/components/BenefitItem/index.d.ts +1 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.d.ts +6 -0
- package/dist/modules/Benefits/components/BenefitTag/BenefitTag.es.js +17 -0
- package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.cjs.js +1 -0
- package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.es.js +9 -0
- package/dist/modules/Benefits/components/BenefitTag/index.d.ts +1 -0
- package/dist/modules/Benefits/components/index.d.ts +2 -0
- package/dist/modules/Benefits/index.d.ts +1 -0
- 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 +2 -2
- 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/PairedProducts/PairedProducts.cjs.js +1 -0
- package/dist/modules/PairedProducts/PairedProducts.d.ts +12 -0
- package/dist/modules/PairedProducts/PairedProducts.es.js +17 -0
- package/dist/modules/PairedProducts/index.d.ts +1 -0
- package/dist/modules/PairedProducts/pairedProducts.module.css.cjs.js +1 -0
- package/dist/modules/PairedProducts/pairedProducts.module.css.es.js +17 -0
- package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
- package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +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 +2 -2
- 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/TypesOfTests/TypesOfTests.cjs.js +1 -0
- package/dist/modules/TypesOfTests/TypesOfTests.d.ts +10 -0
- package/dist/modules/TypesOfTests/TypesOfTests.es.js +67 -0
- package/dist/modules/TypesOfTests/index.d.ts +1 -0
- package/dist/modules/TypesOfTests/types.d.ts +4 -0
- package/dist/modules/TypesOfTests/typesOfTests.module.css.cjs.js +1 -0
- package/dist/modules/TypesOfTests/typesOfTests.module.css.es.js +29 -0
- 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/dist/utils/useIsMobile.cjs.js +1 -0
- package/dist/utils/useIsMobile.d.ts +1 -0
- package/dist/utils/useIsMobile.es.js +12 -0
- package/package.json +210 -4
- 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/modules/OurProcess/components/StepCards/StepCards.d.ts +0 -9
- package/dist/modules/OurProcess/components/StepCards/index.d.ts +0 -1
- package/dist/modules/OurProcess/types.d.ts +0 -5
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -22
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -604
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +0 -9
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +0 -28
- 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.min.es.js → ArrowContainer.es.js} +0 -0
- /package/dist/_virtual/{react-jsx-runtime.production.min.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,42 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e, jsxs as b, Fragment as E } from "react/jsx-runtime";
|
|
3
|
+
import { useState as o, useRef as L, useEffect as a } from "react";
|
|
4
|
+
import { createPortal as M } from "react-dom";
|
|
5
|
+
import { cn as w } from "../../../utils/cn/cn.es.js";
|
|
6
|
+
import { Typography as V } from "../../Typography/Typography.es.js";
|
|
7
|
+
import t from "../cursor.module.css.es.js";
|
|
8
|
+
function $({ children: c, label: l, colorScheme: m }) {
|
|
9
|
+
const [s, d] = o({ x: 0, y: 0 }), [f, r] = o(!1), p = L(null), [v, n] = o(!1);
|
|
10
|
+
a(() => (n(!0), () => n(!1)), []), a(() => {
|
|
11
|
+
const i = (u) => {
|
|
12
|
+
d({ x: u.clientX, y: u.clientY });
|
|
13
|
+
};
|
|
14
|
+
return window.addEventListener("mousemove", i), () => window.removeEventListener("mousemove", i);
|
|
15
|
+
}, []);
|
|
16
|
+
const h = () => {
|
|
17
|
+
r(!0);
|
|
18
|
+
}, x = () => {
|
|
19
|
+
r(!1);
|
|
20
|
+
}, y = /* @__PURE__ */ e(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
ref: p,
|
|
24
|
+
className: w(t.cursor, {
|
|
25
|
+
[t.cursorVisible]: f
|
|
26
|
+
}),
|
|
27
|
+
style: {
|
|
28
|
+
left: `${s.x}px`,
|
|
29
|
+
top: `${s.y}px`
|
|
30
|
+
},
|
|
31
|
+
"data-color-scheme": m,
|
|
32
|
+
children: /* @__PURE__ */ e(V, { as: "p", emphasis: !0, defaultVariant: "labelLg", children: l })
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
return /* @__PURE__ */ b(E, { children: [
|
|
36
|
+
/* @__PURE__ */ e("div", { className: t.cursorContainer, onMouseEnter: h, onMouseLeave: x, children: c }),
|
|
37
|
+
v && M(y, document.body)
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
$ as ClientCursor
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=({children:r})=>r;exports.ServerCursor=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="cursor-module__cursor___5Aohf",o="cursor-module__cursorVisible___S6TYo",s="cursor-module__cursorContainer___YHR3l",e={cursor:r,cursorVisible:o,cursorContainer:s};exports.cursor=r;exports.cursorContainer=s;exports.cursorVisible=o;exports.default=e;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const r = "cursor-module__cursor___5Aohf", o = "cursor-module__cursorVisible___S6TYo", s = "cursor-module__cursorContainer___YHR3l", c = {
|
|
2
|
+
cursor: r,
|
|
3
|
+
cursorVisible: o,
|
|
4
|
+
cursorContainer: s
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
r as cursor,
|
|
8
|
+
s as cursorContainer,
|
|
9
|
+
o as cursorVisible,
|
|
10
|
+
c as default
|
|
11
|
+
};
|
|
@@ -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"),y=require("react"),t=require("../../utils/cn/cn.cjs.js"),b=require("../Icon/Icon.cjs.js"),i=require("../Icon/constants.cjs.js"),c=require("../Typography/Typography.cjs.js"),e=require("./filterMenu.module.css.cjs.js");function j({label:o,open:d=!1,options:u,selectedValue:m,onSelect:p}){const[r,f]=y.useState(d),h=()=>f(l=>!l);return a.jsxs("div",{className:e.default.root,children:[a.jsxs("button",{className:e.default.toggleButton,onClick:h,children:[a.jsx(c.Typography,{defaultVariant:"labelLg",emphasis:!0,children:o}),a.jsx(b.Icon,{name:r?i.EIconName.REMOVE:i.EIconName.PLUS,className:e.default.toggleIcon})]}),a.jsx("div",{className:t.cn(e.default.menu,r&&e.default.isOpen),role:"menu",children:u.map((l,s)=>a.jsxs("ul",{className:e.default.subOptions,children:[l.label&&a.jsx("li",{className:t.cn(e.default.divider,s!==0&&e.default.dividerLine),children:a.jsx(c.Typography,{as:"div",defaultVariant:"bodyMd",weight:"medium",className:e.default.dividerLabel,children:l.label})},s),l.values.map(({value:n,label:g})=>a.jsx("li",{className:e.default.option,onClick:()=>p(n,l),children:a.jsx(c.Typography,{as:"div",defaultVariant:"bodyMd",className:t.cn(e.default.optionLabel,n===m&&e.default.selected),children:g})},n))]},`${l.label}_${s}`))})]})}exports.FilterMenu=j;
|
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useState as g } from "react";
|
|
4
|
+
import { cn as n } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { Icon as v } from "../Icon/Icon.es.js";
|
|
4
6
|
import { EIconName as m } from "../Icon/constants.es.js";
|
|
5
|
-
import { Icon as x } from "../Icon/Icon.es.js";
|
|
6
7
|
import { Typography as o } from "../Typography/Typography.es.js";
|
|
7
8
|
import e from "./filterMenu.module.css.es.js";
|
|
8
|
-
function
|
|
9
|
-
const [t,
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */
|
|
9
|
+
function j({ label: c, open: d = !1, options: p, selectedValue: u, onSelect: h }) {
|
|
10
|
+
const [t, f] = g(d), b = () => f((l) => !l);
|
|
11
|
+
return /* @__PURE__ */ r("div", { className: e.root, children: [
|
|
12
|
+
/* @__PURE__ */ r("button", { className: e.toggleButton, onClick: b, children: [
|
|
13
|
+
/* @__PURE__ */ a(o, { defaultVariant: "labelLg", emphasis: !0, children: c }),
|
|
14
|
+
/* @__PURE__ */ a(v, { name: t ? m.REMOVE : m.PLUS, className: e.toggleIcon })
|
|
14
15
|
] }),
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
l.label && /* @__PURE__ */
|
|
17
|
-
l.values.map(({ value: i, label:
|
|
16
|
+
/* @__PURE__ */ a("div", { className: n(e.menu, t && e.isOpen), role: "menu", children: p.map((l, s) => /* @__PURE__ */ r("ul", { className: e.subOptions, children: [
|
|
17
|
+
l.label && /* @__PURE__ */ a("li", { className: n(e.divider, s !== 0 && e.dividerLine), children: /* @__PURE__ */ a(o, { as: "div", defaultVariant: "bodyMd", weight: "medium", className: e.dividerLabel, children: l.label }) }, s),
|
|
18
|
+
l.values.map(({ value: i, label: N }) => /* @__PURE__ */ a("li", { className: e.option, onClick: () => h(i, l), children: /* @__PURE__ */ a(
|
|
18
19
|
o,
|
|
19
20
|
{
|
|
20
21
|
as: "div",
|
|
21
22
|
defaultVariant: "bodyMd",
|
|
22
|
-
className:
|
|
23
|
-
children:
|
|
23
|
+
className: n(e.optionLabel, i === u && e.selected),
|
|
24
|
+
children: N
|
|
24
25
|
}
|
|
25
26
|
) }, i))
|
|
26
|
-
] }, `${l.label}_${
|
|
27
|
+
] }, `${l.label}_${s}`)) })
|
|
27
28
|
] });
|
|
28
29
|
}
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
j as FilterMenu
|
|
31
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),a=require("../Typography/Typography.cjs.js"),r=require("../../utils/cn/cn.cjs.js"),e=require("./highlightedTitle.module.css.cjs.js"),h=({title:l,label:t,className:s,defaultVariant:d="displayMd",as:n="h2",mobileVariant:o="headingLg",colorScheme:c="light"})=>i.jsxs("div",{"data-scheme":c,className:r.cn(e.default.root,s),children:[t&&i.jsx(a.Typography,{as:"p",defaultVariant:"labelMd",emphasis:!0,className:e.default.tag,children:t}),i.jsx(a.Typography,{as:n,defaultVariant:d,mobileVariant:o,className:r.cn(e.default.title,{[e.default.taggedTitle]:!!t}),children:l})]});exports.HighlightedTitle=h;
|
|
@@ -1,41 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../
|
|
3
|
-
import "
|
|
4
|
-
import "../Tag/Tag.es.js";
|
|
5
|
-
import "../Tabs/Tabs.es.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import { cn as o } from "../../utils/cn.es.js";
|
|
8
|
-
import "../Icon/Icon.es.js";
|
|
9
|
-
import { Typography as m } from "../Typography/Typography.es.js";
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as i } from "../Typography/Typography.es.js";
|
|
3
|
+
import { cn as r } from "../../utils/cn/cn.es.js";
|
|
10
4
|
import t from "./highlightedTitle.module.css.es.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
colorScheme: d = "light"
|
|
24
|
-
}) => /* @__PURE__ */ r.jsxs("div", { "data-scheme": d, className: o(t.root, e), children: [
|
|
25
|
-
i && /* @__PURE__ */ r.jsx(m, { as: "p", defaultVariant: "labelMd", emphasis: !0, className: t.tag, children: i }),
|
|
26
|
-
/* @__PURE__ */ r.jsx(
|
|
27
|
-
m,
|
|
5
|
+
const y = ({
|
|
6
|
+
title: s,
|
|
7
|
+
label: e,
|
|
8
|
+
className: o,
|
|
9
|
+
defaultVariant: l = "displayMd",
|
|
10
|
+
as: m = "h2",
|
|
11
|
+
mobileVariant: d = "headingLg",
|
|
12
|
+
colorScheme: h = "light"
|
|
13
|
+
}) => /* @__PURE__ */ p("div", { "data-scheme": h, className: r(t.root, o), children: [
|
|
14
|
+
e && /* @__PURE__ */ a(i, { as: "p", defaultVariant: "labelMd", emphasis: !0, className: t.tag, children: e }),
|
|
15
|
+
/* @__PURE__ */ a(
|
|
16
|
+
i,
|
|
28
17
|
{
|
|
29
|
-
as:
|
|
30
|
-
defaultVariant:
|
|
31
|
-
mobileVariant:
|
|
32
|
-
className:
|
|
33
|
-
[t.taggedTitle]: !!
|
|
18
|
+
as: m,
|
|
19
|
+
defaultVariant: l,
|
|
20
|
+
mobileVariant: d,
|
|
21
|
+
className: r(t.title, {
|
|
22
|
+
[t.taggedTitle]: !!e
|
|
34
23
|
}),
|
|
35
|
-
children:
|
|
24
|
+
children: s
|
|
36
25
|
}
|
|
37
26
|
)
|
|
38
27
|
] });
|
|
39
28
|
export {
|
|
40
|
-
|
|
29
|
+
y as HighlightedTitle
|
|
41
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),e=require("./iconsMap.cjs.js"),i=r.memo(function({name:n,className:c}){const o=e.ICON_COMPONENTS[n];return o?t.jsx(o,{className:c}):(console.warn(`Icon "${n}" not found. Available icons: ${Object.keys(e.ICON_COMPONENTS).join(", ")}`),null)});exports.Icon=i;
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const [r, c] = e(null);
|
|
8
|
-
return p(() => {
|
|
9
|
-
let s = !0;
|
|
10
|
-
return g(o) && n(/* @__PURE__ */ Object.assign({ "../../icons/action/alert-error-fill.svg": () => import("../../icons/action/alert-error-fill.svg.es.js"), "../../icons/action/alert-error.svg": () => import("../../icons/action/alert-error.svg.es.js"), "../../icons/action/check.svg": () => import("../../icons/action/check.svg.es.js"), "../../icons/action/circle-check-fill.svg": () => import("../../icons/action/circle-check-fill.svg.es.js"), "../../icons/action/circle-check.svg": () => import("../../icons/action/circle-check.svg.es.js"), "../../icons/action/close.svg": () => import("../../icons/action/close.svg.es.js"), "../../icons/action/help.svg": () => import("../../icons/action/help.svg.es.js"), "../../icons/action/info.svg": () => import("../../icons/action/info.svg.es.js"), "../../icons/action/menu.svg": () => import("../../icons/action/menu.svg.es.js"), "../../icons/action/plus.svg": () => import("../../icons/action/plus.svg.es.js"), "../../icons/action/remove.svg": () => import("../../icons/action/remove.svg.es.js"), "../../icons/action/search.svg": () => import("../../icons/action/search.svg.es.js"), "../../icons/action/warning.svg": () => import("../../icons/action/warning.svg.es.js"), "../../icons/arrow/arrow-back.svg": () => import("../../icons/arrow/arrow-back.svg.es.js"), "../../icons/arrow/arrow-downward.svg": () => import("../../icons/arrow/arrow-downward.svg.es.js"), "../../icons/arrow/arrow-forward.svg": () => import("../../icons/arrow/arrow-forward.svg.es.js"), "../../icons/arrow/arrow-insert.svg": () => import("../../icons/arrow/arrow-insert.svg.es.js"), "../../icons/arrow/arrow-outward.svg": () => import("../../icons/arrow/arrow-outward.svg.es.js"), "../../icons/arrow/arrow-return.svg": () => import("../../icons/arrow/arrow-return.svg.es.js"), "../../icons/arrow/arrow-upward.svg": () => import("../../icons/arrow/arrow-upward.svg.es.js"), "../../icons/arrow/chevron-back.svg": () => import("../../icons/arrow/chevron-back.svg.es.js"), "../../icons/arrow/chevron-down.svg": () => import("../../icons/arrow/chevron-down.svg.es.js"), "../../icons/arrow/chevron-forward.svg": () => import("../../icons/arrow/chevron-forward.svg.es.js"), "../../icons/arrow/chevron-up.svg": () => import("../../icons/arrow/chevron-up.svg.es.js"), "../../icons/chat/message-fill.svg": () => import("../../icons/chat/message-fill.svg.es.js"), "../../icons/chat/message.svg": () => import("../../icons/chat/message.svg.es.js"), "../../icons/eCommerce/calendar.svg": () => import("../../icons/eCommerce/calendar.svg.es.js"), "../../icons/eCommerce/cart.svg": () => import("../../icons/eCommerce/cart.svg.es.js"), "../../icons/eCommerce/package-fill.svg": () => import("../../icons/eCommerce/package-fill.svg.es.js"), "../../icons/eCommerce/package.svg": () => import("../../icons/eCommerce/package.svg.es.js"), "../../icons/faces/smile-fill.svg": () => import("../../icons/faces/smile-fill.svg.es.js"), "../../icons/faces/smile.svg": () => import("../../icons/faces/smile.svg.es.js"), "../../icons/global/filter.svg": () => import("../../icons/global/filter.svg.es.js"), "../../icons/global/pin-drop.svg": () => import("../../icons/global/pin-drop.svg.es.js"), "../../icons/indicators/circle-dash-fill.svg": () => import("../../icons/indicators/circle-dash-fill.svg.es.js"), "../../icons/indicators/circle-dash.svg": () => import("../../icons/indicators/circle-dash.svg.es.js"), "../../icons/map/pin-drop.svg": () => import("../../icons/map/pin-drop.svg.es.js"), "../../icons/medical/coaching.svg": () => import("../../icons/medical/coaching.svg.es.js"), "../../icons/medical/labs.svg": () => import("../../icons/medical/labs.svg.es.js"), "../../icons/medical/myspan.svg": () => import("../../icons/medical/myspan.svg.es.js"), "../../icons/medical/optimizations.svg": () => import("../../icons/medical/optimizations.svg.es.js"), "../../icons/medical/protocols.svg": () => import("../../icons/medical/protocols.svg.es.js"), "../../icons/medical/ruler.svg": () => import("../../icons/medical/ruler.svg.es.js"), "../../icons/medical/scale.svg": () => import("../../icons/medical/scale.svg.es.js"), "../../icons/social/facebook.svg": () => import("../../icons/social/facebook.svg.es.js"), "../../icons/social/heart-fill.svg": () => import("../../icons/social/heart-fill.svg.es.js"), "../../icons/social/heart.svg": () => import("../../icons/social/heart.svg.es.js"), "../../icons/social/instagram.svg": () => import("../../icons/social/instagram.svg.es.js"), "../../icons/social/star-fill.svg": () => import("../../icons/social/star-fill.svg.es.js"), "../../icons/social/star-half.svg": () => import("../../icons/social/star-half.svg.es.js"), "../../icons/social/star-outline.svg": () => import("../../icons/social/star-outline.svg.es.js"), "../../icons/social/star.svg": () => import("../../icons/social/star.svg.es.js"), "../../icons/social/x.svg": () => import("../../icons/social/x.svg.es.js") }), `../../icons/${v[o]}/${o}.svg`, 5).then((t) => {
|
|
11
|
-
s && c(t);
|
|
12
|
-
}), () => {
|
|
13
|
-
s = !1;
|
|
14
|
-
};
|
|
15
|
-
}, [o]), r ? l(r.default, { className: i }) : /* @__PURE__ */ a.jsx("div", { className: i, children: "💡" });
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { memo as e } from "react";
|
|
3
|
+
import { ICON_COMPONENTS as r } from "./iconsMap.es.js";
|
|
4
|
+
const l = e(function({ name: o, className: t }) {
|
|
5
|
+
const n = r[o];
|
|
6
|
+
return n ? /* @__PURE__ */ c(n, { className: t }) : (console.warn(`Icon "${o}" not found. Available icons: ${Object.keys(r).join(", ")}`), null);
|
|
16
7
|
});
|
|
17
8
|
export {
|
|
18
|
-
|
|
9
|
+
l as Icon
|
|
19
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./constants.cjs.js"),r=require("../../icons/action/alert-error-fill.svg.cjs.js"),a=require("../../icons/action/alert-error.svg.cjs.js"),o=require("../../icons/action/check.svg.cjs.js"),c=require("../../icons/action/circle-check-fill.svg.cjs.js"),t=require("../../icons/action/circle-check.svg.cjs.js"),n=require("../../icons/action/close.svg.cjs.js"),u=require("../../icons/action/help.svg.cjs.js"),E=require("../../icons/action/info.svg.cjs.js"),l=require("../../icons/action/menu.svg.cjs.js"),s=require("../../icons/action/plus.svg.cjs.js"),I=require("../../icons/action/remove.svg.cjs.js"),i=require("../../icons/action/search.svg.cjs.js"),N=require("../../icons/action/warning.svg.cjs.js"),m=require("../../icons/arrow/arrow-back.svg.cjs.js"),d=require("../../icons/arrow/arrow-downward.svg.cjs.js"),R=require("../../icons/arrow/arrow-forward.svg.cjs.js"),f=require("../../icons/arrow/arrow-insert.svg.cjs.js"),q=require("../../icons/arrow/arrow-outward.svg.cjs.js"),A=require("../../icons/arrow/arrow-return.svg.cjs.js"),O=require("../../icons/arrow/arrow-upward.svg.cjs.js"),C=require("../../icons/arrow/chevron-back.svg.cjs.js"),L=require("../../icons/arrow/chevron-down.svg.cjs.js"),_=require("../../icons/arrow/chevron-forward.svg.cjs.js"),S=require("../../icons/arrow/chevron-up.svg.cjs.js"),F=require("../../icons/chat/message-fill.svg.cjs.js"),T=require("../../icons/chat/message.svg.cjs.js"),D=require("../../icons/eCommerce/calendar.svg.cjs.js"),H=require("../../icons/eCommerce/cart.svg.cjs.js"),w=require("../../icons/eCommerce/package-fill.svg.cjs.js"),W=require("../../icons/eCommerce/package.svg.cjs.js"),h=require("../../icons/faces/smile-fill.svg.cjs.js"),P=require("../../icons/faces/smile.svg.cjs.js"),p=require("../../icons/indicators/circle-dash-fill.svg.cjs.js"),M=require("../../icons/indicators/circle-dash.svg.cjs.js"),U=require("../../icons/global/pin-drop.svg.cjs.js"),g=require("../../icons/global/filter.svg.cjs.js"),k=require("../../icons/medical/coaching.svg.cjs.js"),K=require("../../icons/medical/labs.svg.cjs.js"),G=require("../../icons/medical/myspan.svg.cjs.js"),v=require("../../icons/medical/optimizations.svg.cjs.js"),B=require("../../icons/medical/protocols.svg.cjs.js"),V=require("../../icons/medical/ruler.svg.cjs.js"),b=require("../../icons/medical/scale.svg.cjs.js"),y=require("../../icons/social/facebook.svg.cjs.js"),j=require("../../icons/social/heart-fill.svg.cjs.js"),x=require("../../icons/social/heart.svg.cjs.js"),z=require("../../icons/social/instagram.svg.cjs.js"),X=require("../../icons/social/star-fill.svg.cjs.js"),Y=require("../../icons/social/star-half.svg.cjs.js"),Z=require("../../icons/social/star-outline.svg.cjs.js"),J=require("../../icons/social/star.svg.cjs.js"),Q=require("../../icons/social/x.svg.cjs.js"),$={[e.EIconName.ALERT_ERROR_FILL]:r.default,[e.EIconName.ALERT_ERROR]:a.default,[e.EIconName.CHECK]:o.default,[e.EIconName.CIRCLE_CHECK_FILL]:c.default,[e.EIconName.CIRCLE_CHECK]:t.default,[e.EIconName.CLOSE]:n.default,[e.EIconName.HELP]:u.default,[e.EIconName.INFO]:E.default,[e.EIconName.MENU]:l.default,[e.EIconName.PLUS]:s.default,[e.EIconName.REMOVE]:I.default,[e.EIconName.SEARCH]:i.default,[e.EIconName.WARNING]:N.default,[e.EIconName.ARROW_BACK]:m.default,[e.EIconName.ARROW_DOWNWARD]:d.default,[e.EIconName.ARROW_FORWARD]:R.default,[e.EIconName.ARROW_INSERT]:f.default,[e.EIconName.ARROW_OUTWARD]:q.default,[e.EIconName.ARROW_RETURN]:A.default,[e.EIconName.ARROW_UPWARD]:O.default,[e.EIconName.CHEVRON_BACK]:C.default,[e.EIconName.CHEVRON_DOWN]:L.default,[e.EIconName.CHEVRON_FORWARD]:_.default,[e.EIconName.CHEVRON_UP]:S.default,[e.EIconName.MESSAGE_FILL]:F.default,[e.EIconName.MESSAGE]:T.default,[e.EIconName.CALENDAR]:D.default,[e.EIconName.CART]:H.default,[e.EIconName.PACKAGE_FILL]:w.default,[e.EIconName.PACKAGE]:W.default,[e.EIconName.SMILE_FILL]:h.default,[e.EIconName.SMILE]:P.default,[e.EIconName.CIRCLE_DASH_FILL]:p.default,[e.EIconName.CIRCLE_DASH]:M.default,[e.EIconName.PIN_DROP]:U.default,[e.EIconName.FILTER]:g.default,[e.EIconName.COACHING]:k.default,[e.EIconName.LABS]:K.default,[e.EIconName.MYSPAN]:G.default,[e.EIconName.OPTIMIZATIONS]:v.default,[e.EIconName.PROTOCOLS]:B.default,[e.EIconName.RULER]:V.default,[e.EIconName.SCALE]:b.default,[e.EIconName.FACEBOOK]:y.default,[e.EIconName.HEART_FILL]:j.default,[e.EIconName.HEART]:x.default,[e.EIconName.INSTAGRAM]:z.default,[e.EIconName.STAR_FILL]:X.default,[e.EIconName.STAR_HALF]:Y.default,[e.EIconName.STAR_OUTLINE]:Z.default,[e.EIconName.STAR]:J.default,[e.EIconName.X]:Q.default};exports.ICON_COMPONENTS=$;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { EIconName as r } from "./constants.es.js";
|
|
2
|
+
import o from "../../icons/action/alert-error-fill.svg.es.js";
|
|
3
|
+
import m from "../../icons/action/alert-error.svg.es.js";
|
|
4
|
+
import S from "../../icons/action/check.svg.es.js";
|
|
5
|
+
import i from "../../icons/action/circle-check-fill.svg.es.js";
|
|
6
|
+
import t from "../../icons/action/circle-check.svg.es.js";
|
|
7
|
+
import p from "../../icons/action/close.svg.es.js";
|
|
8
|
+
import R from "../../icons/action/help.svg.es.js";
|
|
9
|
+
import g from "../../icons/action/info.svg.es.js";
|
|
10
|
+
import v from "../../icons/action/menu.svg.es.js";
|
|
11
|
+
import f from "../../icons/action/plus.svg.es.js";
|
|
12
|
+
import A from "../../icons/action/remove.svg.es.js";
|
|
13
|
+
import C from "../../icons/action/search.svg.es.js";
|
|
14
|
+
import E from "../../icons/action/warning.svg.es.js";
|
|
15
|
+
import e from "../../icons/arrow/arrow-back.svg.es.js";
|
|
16
|
+
import O from "../../icons/arrow/arrow-downward.svg.es.js";
|
|
17
|
+
import a from "../../icons/arrow/arrow-forward.svg.es.js";
|
|
18
|
+
import L from "../../icons/arrow/arrow-insert.svg.es.js";
|
|
19
|
+
import l from "../../icons/arrow/arrow-outward.svg.es.js";
|
|
20
|
+
import I from "../../icons/arrow/arrow-return.svg.es.js";
|
|
21
|
+
import _ from "../../icons/arrow/arrow-upward.svg.es.js";
|
|
22
|
+
import F from "../../icons/arrow/chevron-back.svg.es.js";
|
|
23
|
+
import N from "../../icons/arrow/chevron-down.svg.es.js";
|
|
24
|
+
import n from "../../icons/arrow/chevron-forward.svg.es.js";
|
|
25
|
+
import H from "../../icons/arrow/chevron-up.svg.es.js";
|
|
26
|
+
import T from "../../icons/chat/message-fill.svg.es.js";
|
|
27
|
+
import c from "../../icons/chat/message.svg.es.js";
|
|
28
|
+
import P from "../../icons/eCommerce/calendar.svg.es.js";
|
|
29
|
+
import D from "../../icons/eCommerce/cart.svg.es.js";
|
|
30
|
+
import W from "../../icons/eCommerce/package-fill.svg.es.js";
|
|
31
|
+
import s from "../../icons/eCommerce/package.svg.es.js";
|
|
32
|
+
import w from "../../icons/faces/smile-fill.svg.es.js";
|
|
33
|
+
import M from "../../icons/faces/smile.svg.es.js";
|
|
34
|
+
import h from "../../icons/indicators/circle-dash-fill.svg.es.js";
|
|
35
|
+
import U from "../../icons/indicators/circle-dash.svg.es.js";
|
|
36
|
+
import k from "../../icons/global/pin-drop.svg.es.js";
|
|
37
|
+
import K from "../../icons/global/filter.svg.es.js";
|
|
38
|
+
import G from "../../icons/medical/coaching.svg.es.js";
|
|
39
|
+
import d from "../../icons/medical/labs.svg.es.js";
|
|
40
|
+
import u from "../../icons/medical/myspan.svg.es.js";
|
|
41
|
+
import B from "../../icons/medical/optimizations.svg.es.js";
|
|
42
|
+
import V from "../../icons/medical/protocols.svg.es.js";
|
|
43
|
+
import b from "../../icons/medical/ruler.svg.es.js";
|
|
44
|
+
import X from "../../icons/medical/scale.svg.es.js";
|
|
45
|
+
import x from "../../icons/social/facebook.svg.es.js";
|
|
46
|
+
import y from "../../icons/social/heart-fill.svg.es.js";
|
|
47
|
+
import z from "../../icons/social/heart.svg.es.js";
|
|
48
|
+
import Y from "../../icons/social/instagram.svg.es.js";
|
|
49
|
+
import Z from "../../icons/social/star-fill.svg.es.js";
|
|
50
|
+
import j from "../../icons/social/star-half.svg.es.js";
|
|
51
|
+
import q from "../../icons/social/star-outline.svg.es.js";
|
|
52
|
+
import J from "../../icons/social/star.svg.es.js";
|
|
53
|
+
import Q from "../../icons/social/x.svg.es.js";
|
|
54
|
+
const Qr = {
|
|
55
|
+
[r.ALERT_ERROR_FILL]: o,
|
|
56
|
+
[r.ALERT_ERROR]: m,
|
|
57
|
+
[r.CHECK]: S,
|
|
58
|
+
[r.CIRCLE_CHECK_FILL]: i,
|
|
59
|
+
[r.CIRCLE_CHECK]: t,
|
|
60
|
+
[r.CLOSE]: p,
|
|
61
|
+
[r.HELP]: R,
|
|
62
|
+
[r.INFO]: g,
|
|
63
|
+
[r.MENU]: v,
|
|
64
|
+
[r.PLUS]: f,
|
|
65
|
+
[r.REMOVE]: A,
|
|
66
|
+
[r.SEARCH]: C,
|
|
67
|
+
[r.WARNING]: E,
|
|
68
|
+
[r.ARROW_BACK]: e,
|
|
69
|
+
[r.ARROW_DOWNWARD]: O,
|
|
70
|
+
[r.ARROW_FORWARD]: a,
|
|
71
|
+
[r.ARROW_INSERT]: L,
|
|
72
|
+
[r.ARROW_OUTWARD]: l,
|
|
73
|
+
[r.ARROW_RETURN]: I,
|
|
74
|
+
[r.ARROW_UPWARD]: _,
|
|
75
|
+
[r.CHEVRON_BACK]: F,
|
|
76
|
+
[r.CHEVRON_DOWN]: N,
|
|
77
|
+
[r.CHEVRON_FORWARD]: n,
|
|
78
|
+
[r.CHEVRON_UP]: H,
|
|
79
|
+
[r.MESSAGE_FILL]: T,
|
|
80
|
+
[r.MESSAGE]: c,
|
|
81
|
+
[r.CALENDAR]: P,
|
|
82
|
+
[r.CART]: D,
|
|
83
|
+
[r.PACKAGE_FILL]: W,
|
|
84
|
+
[r.PACKAGE]: s,
|
|
85
|
+
[r.SMILE_FILL]: w,
|
|
86
|
+
[r.SMILE]: M,
|
|
87
|
+
[r.CIRCLE_DASH_FILL]: h,
|
|
88
|
+
[r.CIRCLE_DASH]: U,
|
|
89
|
+
[r.PIN_DROP]: k,
|
|
90
|
+
[r.FILTER]: K,
|
|
91
|
+
[r.COACHING]: G,
|
|
92
|
+
[r.LABS]: d,
|
|
93
|
+
[r.MYSPAN]: u,
|
|
94
|
+
[r.OPTIMIZATIONS]: B,
|
|
95
|
+
[r.PROTOCOLS]: V,
|
|
96
|
+
[r.RULER]: b,
|
|
97
|
+
[r.SCALE]: X,
|
|
98
|
+
[r.FACEBOOK]: x,
|
|
99
|
+
[r.HEART_FILL]: y,
|
|
100
|
+
[r.HEART]: z,
|
|
101
|
+
[r.INSTAGRAM]: Y,
|
|
102
|
+
[r.STAR_FILL]: Z,
|
|
103
|
+
[r.STAR_HALF]: j,
|
|
104
|
+
[r.STAR_OUTLINE]: q,
|
|
105
|
+
[r.STAR]: J,
|
|
106
|
+
[r.X]: Q
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
Qr as ICON_COMPONENTS
|
|
110
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),l=require("../../utils/cn/cn.cjs.js"),d=require("../Icon/Icon.cjs.js"),e=require("./iconButton.module.css.cjs.js"),m=({iconName:t,variant:s="emphasis",size:o="md",as:c="button",disabled:r=!1,...u})=>{const a=e.default[s]||"",i=e.default[o]||"";return n.jsx(c,{...u,className:l.cn(e.default.button,a,i),disabled:r,children:n.jsx("div",{className:e.default.iconWrap,children:n.jsx(d.Icon,{name:t})})})};exports.IconButton=m;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import "
|
|
4
|
-
import { Icon as l } from "../Icon/Icon.es.js";
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { Icon as p } from "../Icon/Icon.es.js";
|
|
5
4
|
import s from "./iconButton.module.css.es.js";
|
|
6
|
-
const
|
|
5
|
+
const b = ({
|
|
7
6
|
iconName: t,
|
|
8
|
-
variant:
|
|
9
|
-
size:
|
|
10
|
-
as:
|
|
11
|
-
disabled:
|
|
12
|
-
...
|
|
7
|
+
variant: n = "emphasis",
|
|
8
|
+
size: r = "md",
|
|
9
|
+
as: a = "button",
|
|
10
|
+
disabled: m = !1,
|
|
11
|
+
...c
|
|
13
12
|
}) => {
|
|
14
|
-
const e = s[
|
|
15
|
-
return /* @__PURE__ */ o
|
|
13
|
+
const e = s[n] || "", i = s[r] || "";
|
|
14
|
+
return /* @__PURE__ */ o(a, { ...c, className: l(s.button, e, i), disabled: m, children: /* @__PURE__ */ o("div", { className: s.iconWrap, children: /* @__PURE__ */ o(p, { name: t }) }) });
|
|
16
15
|
};
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
b as IconButton
|
|
19
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),t=require("react"),M=require("../../utils/cn/cn.cjs.js"),R=require("./infiniteScroll.module.css.cjs.js");function _({items:s,speed:S=50,contentClassName:x,itemClassName:y,rootClassName:b,renderItem:v},w){const u=t.useRef(null),[a,q]=t.useState(0),[i,A]=t.useState(0),f=t.useRef(null),h=t.useRef(!1),m=t.useRef(performance.now()),[T,W]=t.useState(2);t.useEffect(()=>{u.current&&s.length>0&&setTimeout(()=>{var o,c,l;const n=((c=(o=u.current)==null?void 0:o.parentElement)==null?void 0:c.offsetWidth)||0,e=(((l=u.current)==null?void 0:l.scrollWidth)||0)/2,r=Math.ceil(n*2/e);W(Math.max(2,r%2===0?r:r+1)),A(e)},0)},[s]);const d=t.useCallback(n=>{if(!h.current){const e=n??performance.now(),r=e-m.current||16.67;m.current=e,q(o=>{const c=o-S*(r/1e3);return Math.abs(c)>=i?c+i:c})}f.current=requestAnimationFrame(d)},[i,S]);t.useEffect(()=>(m.current=performance.now(),f.current=requestAnimationFrame(d),()=>{f.current&&cancelAnimationFrame(f.current)}),[d]);const E=t.useCallback(()=>{h.current=!0},[]),F=t.useCallback(()=>{h.current=!1,m.current=performance.now()},[]),C=t.useCallback((n,e=300)=>{const r=a,o=n-r,c=performance.now(),l=j=>{const k=j-c,g=Math.min(k/e,1),I=1-Math.pow(1-g,3);q(r+o*I),g<1&&requestAnimationFrame(l)};requestAnimationFrame(l)},[a]);return t.useImperativeHandle(w,()=>({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.jsx("div",{className:M.cn(R.default.root,b),onMouseEnter:E,onMouseLeave:F,children:p.jsx("div",{className:M.cn(R.default.content,x),style:{transform:`translate3D(${a}px, 0, 0)`},ref:u,children:Array.from({length:s.length*T},(n,e)=>p.jsx("div",{className:M.cn(R.default.item,y),children:v(s[e%s.length],e)},e))})})}const L=t.forwardRef(_);exports.InfiniteScroll=L;
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as M } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as D, useRef as f, useState as g, useEffect as A, useCallback as h, useImperativeHandle as H } from "react";
|
|
4
|
+
import { cn as w } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import x from "./infiniteScroll.module.css.es.js";
|
|
6
|
+
function P({ items: c, speed: y = 50, contentClassName: W, itemClassName: q, rootClassName: F, renderItem: S }, T) {
|
|
7
|
+
const l = f(null), [s, C] = g(0), [i, E] = g(0), m = f(null), d = f(!1), u = f(performance.now()), [I, L] = g(2);
|
|
7
8
|
A(() => {
|
|
8
9
|
l.current && c.length > 0 && setTimeout(() => {
|
|
9
10
|
var o, r, a;
|
|
10
|
-
const
|
|
11
|
-
|
|
11
|
+
const t = ((r = (o = l.current) == null ? void 0 : o.parentElement) == null ? void 0 : r.offsetWidth) || 0, e = (((a = l.current) == null ? void 0 : a.scrollWidth) || 0) / 2, n = Math.ceil(t * 2 / e);
|
|
12
|
+
L(Math.max(2, n % 2 === 0 ? n : n + 1)), E(e);
|
|
12
13
|
}, 0);
|
|
13
14
|
}, [c]);
|
|
14
|
-
const
|
|
15
|
-
(
|
|
16
|
-
if (!
|
|
17
|
-
const
|
|
18
|
-
u.current =
|
|
19
|
-
const r = o -
|
|
15
|
+
const p = h(
|
|
16
|
+
(t) => {
|
|
17
|
+
if (!d.current) {
|
|
18
|
+
const e = t ?? performance.now(), n = e - u.current || 16.67;
|
|
19
|
+
u.current = e, C((o) => {
|
|
20
|
+
const r = o - y * (n / 1e3);
|
|
20
21
|
return Math.abs(r) >= i ? r + i : r;
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
m.current = requestAnimationFrame(
|
|
24
|
+
m.current = requestAnimationFrame(p);
|
|
24
25
|
},
|
|
25
|
-
[i,
|
|
26
|
+
[i, y]
|
|
26
27
|
);
|
|
27
|
-
A(() => (u.current = performance.now(), m.current = requestAnimationFrame(
|
|
28
|
+
A(() => (u.current = performance.now(), m.current = requestAnimationFrame(p), () => {
|
|
28
29
|
m.current && cancelAnimationFrame(m.current);
|
|
29
|
-
}), [
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
}, []),
|
|
33
|
-
|
|
34
|
-
}, []),
|
|
35
|
-
(
|
|
36
|
-
const n = s, o =
|
|
37
|
-
const
|
|
38
|
-
|
|
30
|
+
}), [p]);
|
|
31
|
+
const N = h(() => {
|
|
32
|
+
d.current = !0;
|
|
33
|
+
}, []), X = h(() => {
|
|
34
|
+
d.current = !1, u.current = performance.now();
|
|
35
|
+
}, []), R = h(
|
|
36
|
+
(t, e = 300) => {
|
|
37
|
+
const n = s, o = t - n, r = performance.now(), a = (b) => {
|
|
38
|
+
const j = b - r, v = Math.min(j / e, 1), k = 1 - Math.pow(1 - v, 3);
|
|
39
|
+
C(n + o * k), v < 1 && requestAnimationFrame(a);
|
|
39
40
|
};
|
|
40
41
|
requestAnimationFrame(a);
|
|
41
42
|
},
|
|
42
43
|
[s]
|
|
43
44
|
);
|
|
44
|
-
return H(
|
|
45
|
+
return H(T, () => ({
|
|
45
46
|
scrollLeft: () => {
|
|
46
|
-
const
|
|
47
|
-
|
|
47
|
+
const t = s - 200, e = Math.max(t, -i);
|
|
48
|
+
R(e);
|
|
48
49
|
},
|
|
49
50
|
scrollRight: () => {
|
|
50
|
-
const
|
|
51
|
-
|
|
51
|
+
const t = s + 200, e = Math.min(t, 0);
|
|
52
|
+
R(e);
|
|
52
53
|
}
|
|
53
|
-
})), /* @__PURE__ */
|
|
54
|
+
})), /* @__PURE__ */ M("div", { className: w(x.root, F), onMouseEnter: N, onMouseLeave: X, children: /* @__PURE__ */ M("div", { className: w(x.content, W), style: { transform: `translate3D(${s}px, 0, 0)` }, ref: l, children: Array.from({ length: c.length * I }, (t, e) => /* @__PURE__ */ M("div", { className: w(x.item, q), children: S(c[e % c.length], e) }, e)) }) });
|
|
54
55
|
}
|
|
55
56
|
const G = D(P);
|
|
56
57
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),e=require("../../styles/typography.module.css.cjs.js"),s=require("../../utils/cn/cn.cjs.js"),u=require("./label.module.css.cjs.js"),c={sm:e.default.labelXs,lg:e.default.labelSm},n=({children:t,color:a,size:l="sm",className:r})=>o.jsx("div",{className:s.cn(u.default.root,e.default.labelEmphasis,c[l],r),"data-size":l,"data-color":a,children:t});exports.Label=n;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { cn as l } from "../../utils/cn.es.js";
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import o from "../../styles/typography.module.css.es.js";
|
|
3
|
+
import { cn as l } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import e from "./label.module.css.es.js";
|
|
5
|
-
const
|
|
6
|
-
sm:
|
|
7
|
-
lg:
|
|
8
|
-
},
|
|
5
|
+
const p = {
|
|
6
|
+
sm: o.labelXs,
|
|
7
|
+
lg: o.labelSm
|
|
8
|
+
}, f = ({ children: m, color: t, size: r = "sm", className: a }) => /* @__PURE__ */ s("div", { className: l(e.root, o.labelEmphasis, p[r], a), "data-size": r, "data-color": t, children: m });
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
f as Label
|
|
11
11
|
};
|