@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 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="programCard-module__card___PuYN2",r={card:e};exports.card=e;exports.default=r;
|
|
@@ -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"),c=require("../../utils/cn/cn.cjs.js"),l=require("../Icon/Icon.cjs.js"),i=require("../Icon/constants.cjs.js"),e=require("./progressButton.module.css.cjs.js"),r=({orientation:n,icon:o,disabled:s=!1,onClick:a})=>t.jsx("button",{className:c.cn(e.default.button,{[e.default.buttonLeft]:n==="left",[e.default.buttonRight]:n==="right"}),disabled:s,onClick:a,children:t.jsx("div",{className:e.default.iconWrap,children:t.jsx(l.Icon,{name:o,className:e.default.icon})})}),d=({invert:n=!1,left:o,right:s})=>t.jsxs("div",{className:c.cn(e.default.root,{[e.default.inverted]:n}),children:[t.jsx(r,{orientation:"left",icon:i.EIconName.ARROW_BACK,disabled:o.disabled,onClick:o.onClick}),t.jsx("div",{className:c.cn(e.default.divider,{[e.default.inverted]:n})}),t.jsx(r,{orientation:"right",icon:i.EIconName.ARROW_FORWARD,disabled:s.disabled,onClick:s.onClick})]});exports.ProgressButton=d;
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import { Icon as l } from "../Icon/Icon.es.js";
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { Icon as d } from "../Icon/Icon.es.js";
|
|
4
|
+
import { EIconName as s } from "../Icon/constants.es.js";
|
|
6
5
|
import o from "./progressButton.module.css.es.js";
|
|
7
|
-
const
|
|
6
|
+
const c = ({ orientation: i, icon: e, disabled: n = !1, onClick: a }) => /* @__PURE__ */ t(
|
|
8
7
|
"button",
|
|
9
8
|
{
|
|
10
|
-
className:
|
|
11
|
-
[o.buttonLeft]:
|
|
12
|
-
[o.buttonRight]:
|
|
9
|
+
className: r(o.button, {
|
|
10
|
+
[o.buttonLeft]: i === "left",
|
|
11
|
+
[o.buttonRight]: i === "right"
|
|
13
12
|
}),
|
|
14
|
-
disabled:
|
|
15
|
-
onClick:
|
|
16
|
-
children: /* @__PURE__ */ t
|
|
13
|
+
disabled: n,
|
|
14
|
+
onClick: a,
|
|
15
|
+
children: /* @__PURE__ */ t("div", { className: o.iconWrap, children: /* @__PURE__ */ t(d, { name: e, className: o.icon }) })
|
|
17
16
|
}
|
|
18
|
-
),
|
|
17
|
+
), R = ({ invert: i = !1, left: e, right: n }) => /* @__PURE__ */ l(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
|
-
className:
|
|
22
|
-
[o.inverted]:
|
|
20
|
+
className: r(o.root, {
|
|
21
|
+
[o.inverted]: i
|
|
23
22
|
}),
|
|
24
23
|
children: [
|
|
25
|
-
/* @__PURE__ */ t
|
|
26
|
-
/* @__PURE__ */ t
|
|
27
|
-
/* @__PURE__ */ t
|
|
24
|
+
/* @__PURE__ */ t(c, { orientation: "left", icon: s.ARROW_BACK, disabled: e.disabled, onClick: e.onClick }),
|
|
25
|
+
/* @__PURE__ */ t("div", { className: r(o.divider, { [o.inverted]: i }) }),
|
|
26
|
+
/* @__PURE__ */ t(c, { orientation: "right", icon: s.ARROW_FORWARD, disabled: n.disabled, onClick: n.onClick })
|
|
28
27
|
]
|
|
29
28
|
}
|
|
30
29
|
);
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
R as ProgressButton
|
|
33
32
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),f=require("../../utils/cn/cn.cjs.js"),p=require("../Label/Label.cjs.js"),k=require("../ProgressButton/ProgressButton.cjs.js"),m=require("../Typography/Typography.cjs.js"),a=require("./stepsCarousel.module.css.cjs.js"),T=({steps:i,colorScheme:c})=>{const[n,o]=l.useState(0),h=l.useRef([]),u=l.useRef(null),d=l.useRef(null),g=l.useCallback(e=>{u.current=e.touches[0].clientX},[]),j=l.useCallback(e=>{d.current=e.touches[0].clientX},[]),y=l.useCallback(()=>{if(u.current!==null&&d.current!==null){const e=d.current-u.current,s=50;o(r=>e>s&&r>0?r-1:e<-s&&r<i.length-1?r+1:r)}u.current=null,d.current=null},[i.length]);return l.useEffect(()=>{var e;h.current[n]&&((e=h.current[n])==null||e.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},[n]),t.jsxs("div",{className:a.default.root,"data-scheme":c,children:[t.jsx("div",{className:a.default.stepsContainer,"data-scheme":c,onTouchStart:g,onTouchMove:j,onTouchEnd:y,children:i.map((e,s)=>{const r=n===s;return t.jsxs("button",{ref:b=>{b&&(h.current[s]=b)},className:f.cn(a.default.card,r&&a.default.cardActive),onClick:()=>o(s),type:"button",children:[t.jsx("div",{className:f.cn(a.default.imageWrapper,r&&a.default.imageWrapperActive),children:t.jsx("img",{src:e.image,alt:e.title,className:a.default.image})}),t.jsx("div",{className:a.default.stepLabel,children:r?t.jsxs(t.Fragment,{children:[t.jsxs(p.Label,{size:"lg",className:a.default.desktop,color:c==="dark"?"white":"black",children:["Step ",s+1]}),t.jsxs(p.Label,{size:"sm",className:a.default.mobile,color:c==="dark"?"white":"black",children:["Step ",s+1]})]}):t.jsxs(m.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,className:a.default.labelText,children:["Step ",s+1]})}),t.jsxs("div",{className:a.default.textContainer,children:[t.jsx(m.Typography,{as:"h3",defaultVariant:"headingXs",mobileVariant:"headingXxs",children:e.title}),e.description&&t.jsx(m.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodySm",className:a.default.cardDescription,children:e.description})]})]},`step-${s}`)})}),t.jsx("div",{className:f.cn(a.default.mobile,a.default.progressButtonContainer),children:t.jsx(k.ProgressButton,{invert:c==="dark",left:{disabled:n<=0,onClick:()=>o(e=>e-1)},right:{disabled:n>=i.length-1,onClick:()=>o(e=>e+1)}})})]})};exports.StepsCarousel=T;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TColorScheme } from '../../types/common';
|
|
2
|
+
|
|
3
|
+
export type TStepsCarouselView = Array<{
|
|
4
|
+
title: string;
|
|
5
|
+
image: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}>;
|
|
8
|
+
type StepsCarouselProps = {
|
|
9
|
+
steps: TStepsCarouselView;
|
|
10
|
+
colorScheme: TColorScheme;
|
|
11
|
+
};
|
|
12
|
+
export declare const StepsCarousel: ({ steps, colorScheme }: StepsCarouselProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as l, jsx as n, Fragment as T } from "react/jsx-runtime";
|
|
3
|
+
import { useState as X, useRef as h, useCallback as b, useEffect as V } from "react";
|
|
4
|
+
import { cn as f } from "../../utils/cn/cn.es.js";
|
|
5
|
+
import { Label as N } from "../Label/Label.es.js";
|
|
6
|
+
import { ProgressButton as y } from "../ProgressButton/ProgressButton.es.js";
|
|
7
|
+
import { Typography as p } from "../Typography/Typography.es.js";
|
|
8
|
+
import t from "./stepsCarousel.module.css.es.js";
|
|
9
|
+
const B = ({ steps: s, colorScheme: i }) => {
|
|
10
|
+
const [c, o] = X(0), m = h([]), u = h(null), d = h(null), k = b((e) => {
|
|
11
|
+
u.current = e.touches[0].clientX;
|
|
12
|
+
}, []), v = b((e) => {
|
|
13
|
+
d.current = e.touches[0].clientX;
|
|
14
|
+
}, []), C = b(() => {
|
|
15
|
+
if (u.current !== null && d.current !== null) {
|
|
16
|
+
const e = d.current - u.current, r = 50;
|
|
17
|
+
o((a) => e > r && a > 0 ? a - 1 : e < -r && a < s.length - 1 ? a + 1 : a);
|
|
18
|
+
}
|
|
19
|
+
u.current = null, d.current = null;
|
|
20
|
+
}, [s.length]);
|
|
21
|
+
return V(() => {
|
|
22
|
+
var e;
|
|
23
|
+
m.current[c] && ((e = m.current[c]) == null || e.scrollIntoView({
|
|
24
|
+
behavior: "smooth",
|
|
25
|
+
inline: "center",
|
|
26
|
+
block: "nearest"
|
|
27
|
+
}));
|
|
28
|
+
}, [c]), /* @__PURE__ */ l("div", { className: t.root, "data-scheme": i, children: [
|
|
29
|
+
/* @__PURE__ */ n(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: t.stepsContainer,
|
|
33
|
+
"data-scheme": i,
|
|
34
|
+
onTouchStart: k,
|
|
35
|
+
onTouchMove: v,
|
|
36
|
+
onTouchEnd: C,
|
|
37
|
+
children: s.map((e, r) => {
|
|
38
|
+
const a = c === r;
|
|
39
|
+
return /* @__PURE__ */ l(
|
|
40
|
+
"button",
|
|
41
|
+
{
|
|
42
|
+
ref: (g) => {
|
|
43
|
+
g && (m.current[r] = g);
|
|
44
|
+
},
|
|
45
|
+
className: f(t.card, a && t.cardActive),
|
|
46
|
+
onClick: () => o(r),
|
|
47
|
+
type: "button",
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ n("div", { className: f(t.imageWrapper, a && t.imageWrapperActive), children: /* @__PURE__ */ n("img", { src: e.image, alt: e.title, className: t.image }) }),
|
|
50
|
+
/* @__PURE__ */ n("div", { className: t.stepLabel, children: a ? /* @__PURE__ */ l(T, { children: [
|
|
51
|
+
/* @__PURE__ */ l(N, { size: "lg", className: t.desktop, color: i === "dark" ? "white" : "black", children: [
|
|
52
|
+
"Step ",
|
|
53
|
+
r + 1
|
|
54
|
+
] }),
|
|
55
|
+
/* @__PURE__ */ l(N, { size: "sm", className: t.mobile, color: i === "dark" ? "white" : "black", children: [
|
|
56
|
+
"Step ",
|
|
57
|
+
r + 1
|
|
58
|
+
] })
|
|
59
|
+
] }) : /* @__PURE__ */ l(p, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, className: t.labelText, children: [
|
|
60
|
+
"Step ",
|
|
61
|
+
r + 1
|
|
62
|
+
] }) }),
|
|
63
|
+
/* @__PURE__ */ l("div", { className: t.textContainer, children: [
|
|
64
|
+
/* @__PURE__ */ n(p, { as: "h3", defaultVariant: "headingXs", mobileVariant: "headingXxs", children: e.title }),
|
|
65
|
+
e.description && /* @__PURE__ */ n(p, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodySm", className: t.cardDescription, children: e.description })
|
|
66
|
+
] })
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
`step-${r}`
|
|
70
|
+
);
|
|
71
|
+
})
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ n("div", { className: f(t.mobile, t.progressButtonContainer), children: /* @__PURE__ */ n(
|
|
75
|
+
y,
|
|
76
|
+
{
|
|
77
|
+
invert: i === "dark",
|
|
78
|
+
left: {
|
|
79
|
+
disabled: c <= 0,
|
|
80
|
+
onClick: () => o((e) => e - 1)
|
|
81
|
+
},
|
|
82
|
+
right: {
|
|
83
|
+
disabled: c >= s.length - 1,
|
|
84
|
+
onClick: () => o((e) => e + 1)
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
) })
|
|
88
|
+
] });
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
B as StepsCarousel
|
|
92
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StepsCarousel, type TStepsCarouselView } from './StepsCarousel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="stepsCarousel-module__root___VidW7",t="stepsCarousel-module__stepsContainer___yWhtm",s="stepsCarousel-module__card___16wd3",o="stepsCarousel-module__imageWrapper___WCmbp",_="stepsCarousel-module__image___RY9-R",r="stepsCarousel-module__cardActive___xdGR8",a="stepsCarousel-module__stepLabel___jnL1f",l="stepsCarousel-module__labelText___TC392",n="stepsCarousel-module__textContainer___l--dI",p="stepsCarousel-module__cardDescription___oPSgY",i="stepsCarousel-module__mobile___4s-pE",d="stepsCarousel-module__progressButtonContainer___PdL6N",c="stepsCarousel-module__desktop___awZBc",u={root:e,stepsContainer:t,card:s,imageWrapper:o,image:_,cardActive:r,stepLabel:a,labelText:l,textContainer:n,cardDescription:p,mobile:i,progressButtonContainer:d,desktop:c};exports.card=s;exports.cardActive=r;exports.cardDescription=p;exports.default=u;exports.desktop=c;exports.image=_;exports.imageWrapper=o;exports.labelText=l;exports.mobile=i;exports.progressButtonContainer=d;exports.root=e;exports.stepLabel=a;exports.stepsContainer=t;exports.textContainer=n;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const e = "stepsCarousel-module__root___VidW7", s = "stepsCarousel-module__stepsContainer___yWhtm", t = "stepsCarousel-module__card___16wd3", o = "stepsCarousel-module__imageWrapper___WCmbp", _ = "stepsCarousel-module__image___RY9-R", r = "stepsCarousel-module__cardActive___xdGR8", a = "stepsCarousel-module__stepLabel___jnL1f", l = "stepsCarousel-module__labelText___TC392", n = "stepsCarousel-module__textContainer___l--dI", p = "stepsCarousel-module__cardDescription___oPSgY", d = "stepsCarousel-module__mobile___4s-pE", c = "stepsCarousel-module__progressButtonContainer___PdL6N", u = "stepsCarousel-module__desktop___awZBc", i = {
|
|
2
|
+
root: e,
|
|
3
|
+
stepsContainer: s,
|
|
4
|
+
card: t,
|
|
5
|
+
imageWrapper: o,
|
|
6
|
+
image: _,
|
|
7
|
+
cardActive: r,
|
|
8
|
+
stepLabel: a,
|
|
9
|
+
labelText: l,
|
|
10
|
+
textContainer: n,
|
|
11
|
+
cardDescription: p,
|
|
12
|
+
mobile: d,
|
|
13
|
+
progressButtonContainer: c,
|
|
14
|
+
desktop: u
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
t as card,
|
|
18
|
+
r as cardActive,
|
|
19
|
+
p as cardDescription,
|
|
20
|
+
i as default,
|
|
21
|
+
u as desktop,
|
|
22
|
+
_ as image,
|
|
23
|
+
o as imageWrapper,
|
|
24
|
+
l as labelText,
|
|
25
|
+
d as mobile,
|
|
26
|
+
c as progressButtonContainer,
|
|
27
|
+
e as root,
|
|
28
|
+
a as stepLabel,
|
|
29
|
+
s as stepsContainer,
|
|
30
|
+
n as textContainer
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime");require("../Icon/Icon.cjs.js");const l=require("../Icon/constants.cjs.js"),m=require("../Label/Label.cjs.js"),d=require("../TextButton/TextButton.cjs.js"),a=require("../Typography/Typography.cjs.js"),t=require("./studyGridCard.module.css.cjs.js");function h(r){return new Date(r).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}).replace(/\//g," / ")}function f({title:r,link:n,inverted:s,image:u,date:c,label:o,readTime:i}){return e.jsxs("div",{className:t.default.study,"data-inverted":s,children:[e.jsx("div",{className:t.default.imagePart,style:{backgroundImage:`url(${u})`},children:o&&e.jsx(m.Label,{...o})}),e.jsxs("div",{className:t.default.dataPart,children:[e.jsxs("div",{className:t.default.info,children:[e.jsx(a.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:h(c)}),!!i&&e.jsxs(e.Fragment,{children:[e.jsx(a.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(a.Typography,{defaultVariant:"labelSm",mobileVariant:"labelXs",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[i," MIN READ"]})]})]}),e.jsx(a.Typography,{className:t.default.title,defaultVariant:"headingSm",mobileVariant:"bodySm",as:"h6",children:r}),e.jsxs("div",{className:t.default.button,children:[e.jsx(d.TextButton,{hideOn:"desktop",className:t.default.mobileButton,size:"sm",as:"a",href:n,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"}),e.jsx(d.TextButton,{hideOn:"mobile",className:t.default.desktopButton,size:"lg",as:"a",href:n,suffixIcon:l.EIconName.ARROW_FORWARD,children:"READ MORE"})]})]})]})}exports.StudyGridCard=f;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as t, jsx as a, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import "../Icon/Icon.es.js";
|
|
3
|
+
import { EIconName as d } from "../Icon/constants.es.js";
|
|
4
|
+
import { Label as f } from "../Label/Label.es.js";
|
|
5
|
+
import { TextButton as s } from "../TextButton/TextButton.es.js";
|
|
6
|
+
import { Typography as r } from "../Typography/Typography.es.js";
|
|
7
|
+
import e from "./studyGridCard.module.css.es.js";
|
|
8
|
+
function b(i) {
|
|
9
|
+
return new Date(i).toLocaleDateString("en-US", {
|
|
10
|
+
month: "2-digit",
|
|
11
|
+
day: "2-digit",
|
|
12
|
+
year: "numeric"
|
|
13
|
+
}).replace(/\//g, " / ");
|
|
14
|
+
}
|
|
15
|
+
function S({ title: i, link: l, inverted: o, image: c, date: u, label: n, readTime: m }) {
|
|
16
|
+
return /* @__PURE__ */ t("div", { className: e.study, "data-inverted": o, children: [
|
|
17
|
+
/* @__PURE__ */ a("div", { className: e.imagePart, style: { backgroundImage: `url(${c})` }, children: n && /* @__PURE__ */ a(f, { ...n }) }),
|
|
18
|
+
/* @__PURE__ */ t("div", { className: e.dataPart, children: [
|
|
19
|
+
/* @__PURE__ */ t("div", { className: e.info, children: [
|
|
20
|
+
/* @__PURE__ */ a(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: b(u) }),
|
|
21
|
+
!!m && /* @__PURE__ */ t(h, { children: [
|
|
22
|
+
/* @__PURE__ */ a(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: "•" }),
|
|
23
|
+
/* @__PURE__ */ t(r, { defaultVariant: "labelSm", mobileVariant: "labelXs", emphasis: !0, weight: "medium", color: "color-neutral-500", children: [
|
|
24
|
+
m,
|
|
25
|
+
" MIN READ"
|
|
26
|
+
] })
|
|
27
|
+
] })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ a(r, { className: e.title, defaultVariant: "headingSm", mobileVariant: "bodySm", as: "h6", children: i }),
|
|
30
|
+
/* @__PURE__ */ t("div", { className: e.button, children: [
|
|
31
|
+
/* @__PURE__ */ a(
|
|
32
|
+
s,
|
|
33
|
+
{
|
|
34
|
+
hideOn: "desktop",
|
|
35
|
+
className: e.mobileButton,
|
|
36
|
+
size: "sm",
|
|
37
|
+
as: "a",
|
|
38
|
+
href: l,
|
|
39
|
+
suffixIcon: d.ARROW_FORWARD,
|
|
40
|
+
children: "READ MORE"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ a(
|
|
44
|
+
s,
|
|
45
|
+
{
|
|
46
|
+
hideOn: "mobile",
|
|
47
|
+
className: e.desktopButton,
|
|
48
|
+
size: "lg",
|
|
49
|
+
as: "a",
|
|
50
|
+
href: l,
|
|
51
|
+
suffixIcon: d.ARROW_FORWARD,
|
|
52
|
+
children: "READ MORE"
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
] })
|
|
57
|
+
] });
|
|
58
|
+
}
|
|
59
|
+
export {
|
|
60
|
+
S as StudyGridCard
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="studyGridCard-module__study___mkYRU",d="studyGridCard-module__imagePart___fvIQO",_="studyGridCard-module__dataPart___mweMi",o="studyGridCard-module__info___xY-Kk",e="studyGridCard-module__title___U2va1",u="studyGridCard-module__button___bvI0u",a="studyGridCard-module__mobileButton___v-RZs",i={study:t,imagePart:d,dataPart:_,info:o,title:e,button:u,mobileButton:a};exports.button=u;exports.dataPart=_;exports.default=i;exports.imagePart=d;exports.info=o;exports.mobileButton=a;exports.study=t;exports.title=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "studyGridCard-module__study___mkYRU", d = "studyGridCard-module__imagePart___fvIQO", _ = "studyGridCard-module__dataPart___mweMi", o = "studyGridCard-module__info___xY-Kk", a = "studyGridCard-module__title___U2va1", u = "studyGridCard-module__button___bvI0u", s = "studyGridCard-module__mobileButton___v-RZs", r = {
|
|
2
|
+
study: t,
|
|
3
|
+
imagePart: d,
|
|
4
|
+
dataPart: _,
|
|
5
|
+
info: o,
|
|
6
|
+
title: a,
|
|
7
|
+
button: u,
|
|
8
|
+
mobileButton: s
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
u as button,
|
|
12
|
+
_ as dataPart,
|
|
13
|
+
r as default,
|
|
14
|
+
d as imagePart,
|
|
15
|
+
o as info,
|
|
16
|
+
s as mobileButton,
|
|
17
|
+
t as study,
|
|
18
|
+
a as title
|
|
19
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),t=require("react"),f=require("../../utils/cn/cn.cjs.js"),i=require("../Icon/Icon.cjs.js"),n=require("./tabs.module.css.cjs.js");function m({activeTab:s,tabs:c,onTabClick:r,size:a="sm",activeLinePosition:d="bottom",inverted:o},u){return l.jsx("div",{ref:u,className:n.default.container,children:c.map(e=>l.jsxs("button",{className:f.cn(n.default.tab,n.default[a],{[n.default.inverted]:o,[n.default.activeTab]:s===e.value,[n.default.disabled]:e.disabled,[n.default.brackets]:a==="lg"&&s===e.value&&c.length>1},n.default[d],e.className),disabled:e.disabled,onClick:()=>r(e.value),children:[e.prefixIcon&&l.jsx("div",{className:n.default.iconWrap,children:l.jsx(i.Icon,{name:e.prefixIcon})}),l.jsx("div",{children:e.label}),e.suffixIcon&&l.jsx("div",{className:n.default.iconWrap,children:l.jsx(i.Icon,{name:e.suffixIcon})})]},String(e.value)))})}const x=t.forwardRef(m);exports.Tabs=x;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as p } from "react";
|
|
3
|
+
import { cn as t } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import { Icon as s } from "../Icon/Icon.es.js";
|
|
5
|
+
import i from "./tabs.module.css.es.js";
|
|
6
|
+
function u({ activeTab: o, tabs: r, onTabClick: c, size: l = "sm", activeLinePosition: m = "bottom", inverted: d }, a) {
|
|
7
|
+
return /* @__PURE__ */ n("div", { ref: a, className: i.container, children: r.map((e) => /* @__PURE__ */ f(
|
|
8
8
|
"button",
|
|
9
9
|
{
|
|
10
|
-
className:
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
className: t(
|
|
11
|
+
i.tab,
|
|
12
|
+
i[l],
|
|
13
13
|
{
|
|
14
|
-
[
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
14
|
+
[i.inverted]: d,
|
|
15
|
+
[i.activeTab]: o === e.value,
|
|
16
|
+
[i.disabled]: e.disabled,
|
|
17
|
+
[i.brackets]: l === "lg" && o === e.value && r.length > 1
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
i[m],
|
|
20
20
|
e.className
|
|
21
21
|
),
|
|
22
22
|
disabled: e.disabled,
|
|
23
23
|
onClick: () => c(e.value),
|
|
24
24
|
children: [
|
|
25
|
-
e.prefixIcon && /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
e.suffixIcon && /* @__PURE__ */
|
|
25
|
+
e.prefixIcon && /* @__PURE__ */ n("div", { className: i.iconWrap, children: /* @__PURE__ */ n(s, { name: e.prefixIcon }) }),
|
|
26
|
+
/* @__PURE__ */ n("div", { children: e.label }),
|
|
27
|
+
e.suffixIcon && /* @__PURE__ */ n("div", { className: i.iconWrap, children: /* @__PURE__ */ n(s, { name: e.suffixIcon }) })
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
String(e.value)
|
|
31
31
|
)) });
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const g = p(u);
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
g as Tabs
|
|
36
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),h=require("../../utils/cn/cn.cjs.js"),b=require("./Tabs.cjs.js"),r=require("./tabs.module.css.cjs.js");function v({tabs:o,activeTab:c,onTabChange:a}){const n=s.useRef(null),[l,u]=s.useState(!1),[d,f]=s.useState(!1),t=s.useCallback(()=>{const e=n.current;e&&(u(e.scrollLeft>0),f(e.scrollLeft+e.clientWidth<e.scrollWidth))},[]);return s.useEffect(()=>{const e=n.current;if(e)return t(),e.addEventListener("scroll",t),window.addEventListener("resize",t),()=>{e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}},[t]),i.jsx("div",{className:h.cn(r.default.tabsWrapper,{[r.default.showFadeLeft]:l,[r.default.showFadeRight]:d}),children:i.jsx("div",{ref:n,className:r.default.tabsTape,children:i.jsx(b.Tabs,{activeTab:c,tabs:o,size:"lg",activeLinePosition:"bottom",onTabClick:a})})})}exports.TabsWithFade=v;
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as m, useState as i, useCallback as u, useEffect as p } from "react";
|
|
4
|
+
import { cn as w } from "../../utils/cn/cn.es.js";
|
|
4
5
|
import { Tabs as L } from "./Tabs.es.js";
|
|
5
|
-
import
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
const e =
|
|
9
|
-
e && (f(e.scrollLeft > 0),
|
|
6
|
+
import r from "./tabs.module.css.es.js";
|
|
7
|
+
function g({ tabs: n, activeTab: l, onTabChange: c }) {
|
|
8
|
+
const s = m(null), [a, f] = i(!1), [d, h] = i(!1), t = u(() => {
|
|
9
|
+
const e = s.current;
|
|
10
|
+
e && (f(e.scrollLeft > 0), h(e.scrollLeft + e.clientWidth < e.scrollWidth));
|
|
10
11
|
}, []);
|
|
11
12
|
return p(() => {
|
|
12
|
-
const e =
|
|
13
|
+
const e = s.current;
|
|
13
14
|
if (e)
|
|
14
15
|
return t(), e.addEventListener("scroll", t), window.addEventListener("resize", t), () => {
|
|
15
16
|
e.removeEventListener("scroll", t), window.removeEventListener("resize", t);
|
|
16
17
|
};
|
|
17
|
-
}, [t]), /* @__PURE__ */ o
|
|
18
|
+
}, [t]), /* @__PURE__ */ o(
|
|
18
19
|
"div",
|
|
19
20
|
{
|
|
20
|
-
className: w(
|
|
21
|
-
[
|
|
22
|
-
[
|
|
21
|
+
className: w(r.tabsWrapper, {
|
|
22
|
+
[r.showFadeLeft]: a,
|
|
23
|
+
[r.showFadeRight]: d
|
|
23
24
|
}),
|
|
24
|
-
children: /* @__PURE__ */ o
|
|
25
|
+
children: /* @__PURE__ */ o("div", { ref: s, className: r.tabsTape, children: /* @__PURE__ */ o(L, { activeTab: l, tabs: n, size: "lg", activeLinePosition: "bottom", onTabClick: c }) })
|
|
25
26
|
}
|
|
26
27
|
);
|
|
27
28
|
}
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
+
g as TabsWithFade
|
|
30
31
|
};
|
|
@@ -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("../../styles/typography.module.css.cjs.js"),m=require("../../utils/cn/cn.cjs.js"),s=require("../Icon/Icon.cjs.js"),t=require("./tag.module.css.cjs.js"),g={md:l.default.labelMd,lg:l.default.labelLg},j=({value:r,children:o,active:d,disabled:u,size:a="md",prefixIcon:n,suffixIcon:c,onClick:i})=>e.jsx("button",{className:m.cn(t.default.tag,g[a],{[t.default.active]:d},t.default[a]),disabled:u,onClick:()=>i(r),children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(s.Icon,{name:n})}),e.jsx("p",{children:o}),c&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(s.Icon,{name:c})})]})});exports.Tag=j;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import c from "../../styles/typography.module.css.es.js";
|
|
3
|
+
import { cn as g } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { Icon as e } from "../Icon/Icon.es.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
md:
|
|
8
|
-
lg:
|
|
9
|
-
},
|
|
5
|
+
import a from "./tag.module.css.es.js";
|
|
6
|
+
const h = {
|
|
7
|
+
md: c.labelMd,
|
|
8
|
+
lg: c.labelLg
|
|
9
|
+
}, f = ({ value: l, children: n, active: i, disabled: s, size: m = "md", prefixIcon: o, suffixIcon: t, onClick: d }) => /* @__PURE__ */ r(
|
|
10
10
|
"button",
|
|
11
11
|
{
|
|
12
|
-
className:
|
|
13
|
-
disabled:
|
|
12
|
+
className: g(a.tag, h[m], { [a.active]: i }, a[m]),
|
|
13
|
+
disabled: s,
|
|
14
14
|
onClick: () => d(l),
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
15
|
+
children: /* @__PURE__ */ p("div", { className: a.content, children: [
|
|
16
|
+
o && /* @__PURE__ */ r("div", { className: a.iconWrap, children: /* @__PURE__ */ r(e, { name: o }) }),
|
|
17
|
+
/* @__PURE__ */ r("p", { children: n }),
|
|
18
|
+
t && /* @__PURE__ */ r("div", { className: a.iconWrap, children: /* @__PURE__ */ r(e, { name: t }) })
|
|
19
19
|
] })
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
f as Tag
|
|
24
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("../../utils/cn/cn.cjs.js"),c=require("../Icon/Icon.cjs.js"),t=require("./textButton.module.css.cjs.js"),v=({size:l="sm",as:o="button",disabled:s=!1,inverted:d=!1,children:r,prefixIcon:n,suffixIcon:a,hideOn:i,...u})=>{const m=t.default[l]||"",j=d?t.default.inverted:"",x=s?t.default.disabled:"";return e.jsx(o,{...u,className:f.cn(t.default.button,j,m,x),disabled:s,"data-hide-on":i,children:e.jsxs("div",{className:t.default.content,children:[n&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:n})}),e.jsx("div",{children:r}),a&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:a})})]})})};exports.TextButton=v;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
1
|
+
import { jsx as e, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { cn as b } from "../../utils/cn/cn.es.js";
|
|
3
3
|
import { Icon as o } from "../Icon/Icon.es.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import s from "./textButton.module.css.es.js";
|
|
5
|
+
const x = ({
|
|
6
6
|
size: r = "sm",
|
|
7
7
|
as: i = "button",
|
|
8
|
-
disabled:
|
|
9
|
-
inverted:
|
|
10
|
-
children:
|
|
8
|
+
disabled: t = !1,
|
|
9
|
+
inverted: c = !1,
|
|
10
|
+
children: l,
|
|
11
11
|
prefixIcon: a,
|
|
12
12
|
suffixIcon: n,
|
|
13
|
-
hideOn:
|
|
13
|
+
hideOn: m,
|
|
14
14
|
...d
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
const p = s[r] || "", v = c ? s.inverted : "", h = t ? s.disabled : "";
|
|
17
|
+
return /* @__PURE__ */ e(
|
|
18
18
|
i,
|
|
19
19
|
{
|
|
20
20
|
...d,
|
|
21
|
-
className:
|
|
22
|
-
disabled:
|
|
23
|
-
"data-hide-on":
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
a && /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
n && /* @__PURE__ */
|
|
21
|
+
className: b(s.button, v, p, h),
|
|
22
|
+
disabled: t,
|
|
23
|
+
"data-hide-on": m,
|
|
24
|
+
children: /* @__PURE__ */ N("div", { className: s.content, children: [
|
|
25
|
+
a && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: a }) }),
|
|
26
|
+
/* @__PURE__ */ e("div", { children: l }),
|
|
27
|
+
n && /* @__PURE__ */ e("div", { className: s.iconWrap, children: /* @__PURE__ */ e(o, { name: n }) })
|
|
28
28
|
] })
|
|
29
29
|
}
|
|
30
30
|
);
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
x as TextButton
|
|
34
34
|
};
|
|
@@ -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("../../assets/svg/badge-icon.svg.cjs.js"),s=require("./typeBadge.module.css.cjs.js");var n=(e=>(e.SENESCENCE="senescence",e.SUPPLEMENTS="supplements",e.OUTLINE="outline",e.ENERGY="energy",e.METABOLISM="metabolism",e.LABS="labs",e))(n||{});const a=({type:e="senescence"})=>t.jsx("div",{className:s.default.typeBadge,"data-type":e,children:t.jsx(r.default,{className:s.default.badgeIcon})});exports.ETypeBadge=n;exports.TypeBadge=a;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import n from "../../assets/svg/badge-icon.svg.es.js";
|
|
3
3
|
import t from "./typeBadge.module.css.es.js";
|
|
4
|
-
var o = /* @__PURE__ */ ((
|
|
4
|
+
var o = /* @__PURE__ */ ((e) => (e.SENESCENCE = "senescence", e.SUPPLEMENTS = "supplements", e.OUTLINE = "outline", e.ENERGY = "energy", e.METABOLISM = "metabolism", e.LABS = "labs", e))(o || {});
|
|
5
5
|
const a = ({
|
|
6
|
-
type:
|
|
6
|
+
type: e = "senescence"
|
|
7
7
|
/* SENESCENCE */
|
|
8
|
-
}) => /* @__PURE__ */
|
|
8
|
+
}) => /* @__PURE__ */ s("div", { className: t.typeBadge, "data-type": e, children: /* @__PURE__ */ s(n, { className: t.badgeIcon }) });
|
|
9
9
|
export {
|
|
10
10
|
o as ETypeBadge,
|
|
11
11
|
a as TypeBadge
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),s=require("../../styles/typography.module.css.cjs.js"),d=require("../../utils/cn/cn.cjs.js"),m=require("./Typography.service.cjs.js"),f=({defaultVariant:t,children:o,className:i="",weight:l,emphasis:r=!1,as:c="span",mobileVariant:a,color:n})=>{const u=s.default[t]||"";let e=l;r&&!l&&(e="medium");const p=e?s.default[`weight${e.charAt(0).toUpperCase()}${e.slice(1)}`]:"",y=t.startsWith("label")&&r?s.default.labelEmphasis:"",g=a?s.default[`mobile__${a}`]:"";return h.jsx(c,{style:m.getMemoizedColorStyles(n),className:d.cn(u,p,y,g,i),children:o})};exports.Typography=f;
|