@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
package/README.md
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
# Healthspan - Marketing UI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## ✨ Features
|
|
6
|
-
|
|
7
|
-
- React components with full TypeScript support
|
|
8
|
-
- Design tokens: colors, spacing, typography via CSS variables
|
|
9
|
-
- CSS Modules for scoped styles
|
|
10
|
-
- Icon system with SVG + enums
|
|
11
|
-
- Bundled with Vite (ESM + UMD)
|
|
12
|
-
- Ready for NPM publishing
|
|
13
|
-
|
|
14
|
-
---
|
|
3
|
+
This is the marketing UI library for Healthspan Marketing Website v3.
|
|
15
4
|
|
|
16
5
|
## Installation
|
|
17
6
|
|
|
@@ -19,10 +8,23 @@ A modern, reusable UI library built with **React**, **TypeScript**, and **Vite**
|
|
|
19
8
|
npm install @zenpatient-org/healthspan-marketing-ui
|
|
20
9
|
```
|
|
21
10
|
|
|
22
|
-
|
|
11
|
+
## Development
|
|
12
|
+
Start the storybook:
|
|
23
13
|
|
|
14
|
+
```bash
|
|
15
|
+
npm run storybook
|
|
24
16
|
```
|
|
25
|
-
|
|
17
|
+
|
|
18
|
+
When you create a new public component, you need to add it to the `components` section of the `vite.config.ts` file. Also, you need to add the component to the `exports` section of the `package.json` file.
|
|
19
|
+
|
|
20
|
+
⚠️ Be sure to use 'use client' in the component file if it is a [client component](https://18.react.dev/reference/rsc/use-client).
|
|
21
|
+
|
|
22
|
+
Avoid using barrel exports. Instead, import the components directly from the `src` directory.
|
|
23
|
+
|
|
24
|
+
## Importing the components and modules
|
|
25
|
+
```tsx
|
|
26
|
+
import { Button } from '@zenpatient-org/healthspan-marketing-ui/Button';
|
|
27
|
+
import { CallbackModule } from '@zenpatient-org/healthspan-marketing-ui/CallbackModule';
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
### To build for publishing:
|
|
@@ -44,5 +46,5 @@ npm publish
|
|
|
44
46
|
Design tokens (colors, spacing, etc.) are injected via CSS variables globally. Just import the global styles once:
|
|
45
47
|
|
|
46
48
|
```tsx
|
|
47
|
-
import "@zenpatient-org/healthspan-marketing-ui/dist/
|
|
49
|
+
import "@zenpatient-org/healthspan-marketing-ui/dist/healthspan-marketing-ui.css"
|
|
48
50
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../node_modules/react-tiny-popover/dist/Popover.cjs.js");var r=e.__require();exports.PopoverExports=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("../Typography/Typography.cjs.js"),a=require("./benefit.module.css.cjs.js");function o({title:i,description:r,button:n}){return e.jsxs("div",{className:a.default.benefit,children:[e.jsx(t.Typography,{as:"h3",defaultVariant:"headingMd",mobileVariant:"headingSm",children:i}),e.jsx(t.Typography,{as:"p",defaultVariant:"bodyMd",mobileVariant:"bodyXs",children:r}),e.jsx("div",{className:a.default.textButton,children:n})]})}exports.Benefit=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as i } from "../Typography/Typography.es.js";
|
|
3
|
+
import a from "./benefit.module.css.es.js";
|
|
4
|
+
function m({ title: t, description: r, button: n }) {
|
|
5
|
+
return /* @__PURE__ */ d("div", { className: a.benefit, children: [
|
|
6
|
+
/* @__PURE__ */ e(i, { as: "h3", defaultVariant: "headingMd", mobileVariant: "headingSm", children: t }),
|
|
7
|
+
/* @__PURE__ */ e(i, { as: "p", defaultVariant: "bodyMd", mobileVariant: "bodyXs", children: r }),
|
|
8
|
+
/* @__PURE__ */ e("div", { className: a.textButton, children: n })
|
|
9
|
+
] });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
m as Benefit
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="benefit-module__benefit___QQY-K",e="benefit-module__textButton___qXfU6",n={benefit:t,textButton:e};exports.benefit=t;exports.default=n;exports.textButton=e;
|
|
@@ -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"),q=require("react"),v=require("../../utils/cn/cn.cjs.js"),c=require("../Icon/Icon.cjs.js"),t=require("./button.module.css.cjs.js"),o=q.forwardRef(({variant:r="primary",size:l="md",as:u="button",disabled:s=!1,children:d,prefixIcon:n,suffixIcon:a,...i},m)=>{const f=t.default[r]||"",j=t.default[l]||"",b=s?t.default.disabled:"";return e.jsx(u,{ref:m,...i,className:v.cn(t.default.button,f,j,b),disabled:s,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:d}),a&&e.jsx("div",{className:t.default.iconWrap,children:e.jsx(c.Icon,{name:a})})]})})});o.displayName="Button";exports.Button=o;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as u } from "../../utils/cn.es.js";
|
|
1
|
+
import { jsx as a, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { cn as u } from "../../utils/cn/cn.es.js";
|
|
4
4
|
import { Icon as n } from "../Icon/Icon.es.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
({ variant: m = "primary", size: e = "md", as: i = "button", disabled:
|
|
8
|
-
const p =
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
o && /* @__PURE__ */
|
|
5
|
+
import s from "./button.module.css.es.js";
|
|
6
|
+
const b = h(
|
|
7
|
+
({ variant: m = "primary", size: e = "md", as: i = "button", disabled: r = !1, children: c, prefixIcon: t, suffixIcon: o, ...l }, d) => {
|
|
8
|
+
const p = s[m] || "", f = s[e] || "", v = r ? s.disabled : "";
|
|
9
|
+
return /* @__PURE__ */ a(i, { ref: d, ...l, className: u(s.button, p, f, v), disabled: r, children: /* @__PURE__ */ N("div", { className: s.content, children: [
|
|
10
|
+
t && /* @__PURE__ */ a("div", { className: s.iconWrap, children: /* @__PURE__ */ a(n, { name: t }) }),
|
|
11
|
+
/* @__PURE__ */ a("div", { children: c }),
|
|
12
|
+
o && /* @__PURE__ */ a("div", { className: s.iconWrap, children: /* @__PURE__ */ a(n, { name: o }) })
|
|
13
13
|
] }) });
|
|
14
14
|
}
|
|
15
15
|
);
|
|
16
|
-
|
|
16
|
+
b.displayName = "Button";
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
b as Button
|
|
19
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 a=require("react/jsx-runtime"),u=require("../../utils/cn/cn.cjs.js"),_=require("../Button/Button.cjs.js"),r=require("../Typography/Typography.cjs.js"),e=require("./callback.module.css.cjs.js"),l=require("./constants.cjs.js"),m=({image:s,title:n,description:c,price:i,button:d,size:t="lg"})=>{const o=e.default[t]||"";return a.jsxs("div",{className:u.cn(e.default.root,o),children:[a.jsxs("div",{className:e.default.productInfo,children:[a.jsx("img",{src:s,alt:"product image",className:e.default.productImage}),a.jsxs("div",{className:e.default.textContainer,children:[a.jsx("div",{className:e.default.titleContainer,children:a.jsx(r.Typography,{defaultVariant:l.TITLE_BY_SIZE_DESKTOP[t],mobileVariant:l.TITLE_BY_SIZE_MOBILE[t],className:e.default.title,children:n})}),a.jsx("div",{className:e.default.divider}),a.jsxs("div",{className:e.default.descriptionContainer,children:[a.jsx(r.Typography,{defaultVariant:l.DESC_BY_SIZE_DESKTOP[t],mobileVariant:l.DESC_BY_SIZE_MOBILE[t],className:e.default.description,children:c}),a.jsxs(r.Typography,{defaultVariant:l.PRICE_BY_SIZE_DESKTOP[t],mobileVariant:l.PRICE_BY_SIZE_MOBILE[t],className:e.default.price,children:["Starting at ",i]})]})]})]}),a.jsx("div",{className:e.default.buttonContainer,children:a.jsx(_.Button,{...d,as:"a",size:l.BUTTON_BY_SIZE[t],children:"GET STARTED"})})]})};exports.Callback=m;
|
|
@@ -1,54 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/* @__PURE__ */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
t,
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as d } from "../../utils/cn/cn.es.js";
|
|
3
|
+
import { Button as E } from "../Button/Button.es.js";
|
|
4
|
+
import { Typography as e } from "../Typography/Typography.es.js";
|
|
5
|
+
import a from "./callback.module.css.es.js";
|
|
6
|
+
import { TITLE_BY_SIZE_MOBILE as _, TITLE_BY_SIZE_DESKTOP as I, DESC_BY_SIZE_MOBILE as p, DESC_BY_SIZE_DESKTOP as S, PRICE_BY_SIZE_MOBILE as T, PRICE_BY_SIZE_DESKTOP as B, BUTTON_BY_SIZE as N } from "./constants.es.js";
|
|
7
|
+
const Y = ({ image: l, title: n, description: o, price: c, button: s, size: r = "lg" }) => {
|
|
8
|
+
const m = a[r] || "";
|
|
9
|
+
return /* @__PURE__ */ i("div", { className: d(a.root, m), children: [
|
|
10
|
+
/* @__PURE__ */ i("div", { className: a.productInfo, children: [
|
|
11
|
+
/* @__PURE__ */ t("img", { src: l, alt: "product image", className: a.productImage }),
|
|
12
|
+
/* @__PURE__ */ i("div", { className: a.textContainer, children: [
|
|
13
|
+
/* @__PURE__ */ t("div", { className: a.titleContainer, children: /* @__PURE__ */ t(
|
|
14
|
+
e,
|
|
16
15
|
{
|
|
17
|
-
defaultVariant:
|
|
18
|
-
mobileVariant:
|
|
19
|
-
className:
|
|
20
|
-
children:
|
|
16
|
+
defaultVariant: I[r],
|
|
17
|
+
mobileVariant: _[r],
|
|
18
|
+
className: a.title,
|
|
19
|
+
children: n
|
|
21
20
|
}
|
|
22
21
|
) }),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
|
|
22
|
+
/* @__PURE__ */ t("div", { className: a.divider }),
|
|
23
|
+
/* @__PURE__ */ i("div", { className: a.descriptionContainer, children: [
|
|
24
|
+
/* @__PURE__ */ t(
|
|
25
|
+
e,
|
|
27
26
|
{
|
|
28
|
-
defaultVariant:
|
|
29
|
-
mobileVariant: p[
|
|
30
|
-
className:
|
|
31
|
-
children:
|
|
27
|
+
defaultVariant: S[r],
|
|
28
|
+
mobileVariant: p[r],
|
|
29
|
+
className: a.description,
|
|
30
|
+
children: o
|
|
32
31
|
}
|
|
33
32
|
),
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
33
|
+
/* @__PURE__ */ i(
|
|
34
|
+
e,
|
|
36
35
|
{
|
|
37
|
-
defaultVariant:
|
|
38
|
-
mobileVariant:
|
|
39
|
-
className:
|
|
36
|
+
defaultVariant: B[r],
|
|
37
|
+
mobileVariant: T[r],
|
|
38
|
+
className: a.price,
|
|
40
39
|
children: [
|
|
41
40
|
"Starting at ",
|
|
42
|
-
|
|
41
|
+
c
|
|
43
42
|
]
|
|
44
43
|
}
|
|
45
44
|
)
|
|
46
45
|
] })
|
|
47
46
|
] })
|
|
48
47
|
] }),
|
|
49
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ t("div", { className: a.buttonContainer, children: /* @__PURE__ */ t(E, { ...s, as: "a", size: N[r], children: "GET STARTED" }) })
|
|
50
49
|
] });
|
|
51
50
|
};
|
|
52
51
|
export {
|
|
53
|
-
|
|
52
|
+
Y as Callback
|
|
54
53
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),e=require("react"),x=require("../../_virtual/Popover.cjs.js"),h=require("../../utils/useIsMobile.cjs.js"),k=require("./components/ComplexTooltipContent/ComplexTooltipContent.cjs.js"),q=({trigger:n,title:p,description:a,link:m,style:f="light",isBlurred:M=!1,children:c,positions:b=["top","bottom","left","right"],onClose:r})=>{const[v,u]=e.useState(!1),o=e.useRef(null),s=e.useCallback(()=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>u(!0),200)},[]),t=e.useCallback(()=>{o.current=setTimeout(()=>{u(!1),r==null||r()},200)},[r]),l=e.useCallback(()=>u(d=>!d),[]),C=e.useMemo(()=>n==="hover"?{onMouseEnter:s,onMouseLeave:t}:{onClick:l},[n,s,t,l]),T=e.useMemo(()=>n==="hover"?{onMouseEnter:s,onMouseLeave:t}:{},[n,s,t]);return e.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]),h.useIsMobile()?c:i.jsx(x.PopoverExports.Popover,{isOpen:v,positions:b,padding:8,onClickOutside:t,content:i.jsx(k.ComplexTooltipContent,{title:p,description:a,link:m,style:f,isBlurred:M,onClose:t,...T}),children:i.jsx("div",{...C,children:c})})};exports.ComplexTooltip=q;
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
2
|
import { PopoverPosition } from 'react-tiny-popover';
|
|
3
|
-
import {
|
|
3
|
+
import { CommonComplexTooltipProps } from './types';
|
|
4
4
|
|
|
5
5
|
type ComplexTooltipProps = {
|
|
6
|
+
children: ReactElement;
|
|
6
7
|
trigger: 'hover' | 'click';
|
|
7
|
-
title: string;
|
|
8
|
-
description: string;
|
|
9
|
-
link?: {
|
|
10
|
-
label: string;
|
|
11
|
-
url: string;
|
|
12
|
-
};
|
|
13
|
-
children: React.ReactElement;
|
|
14
|
-
style: Omit<TColorScheme, 'custom'>;
|
|
15
8
|
positions?: Array<PopoverPosition>;
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
export declare const ComplexTooltip: ({ trigger, title, description, link, style, isBlurred, children, positions, }: ComplexTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
} & CommonComplexTooltipProps;
|
|
10
|
+
export declare const ComplexTooltip: ({ trigger, title, description, link, style, isBlurred, children, positions, onClose, }: ComplexTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
11
|
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { useState as C, useRef as P, useCallback as i, useMemo as l, useEffect as k } from "react";
|
|
4
|
+
import { P as E } from "../../_virtual/Popover.es.js";
|
|
5
|
+
import { useIsMobile as O } from "../../utils/useIsMobile.es.js";
|
|
6
|
+
import { ComplexTooltipContent as L } from "./components/ComplexTooltipContent/ComplexTooltipContent.es.js";
|
|
7
|
+
const y = ({
|
|
8
|
+
trigger: t,
|
|
9
|
+
title: m,
|
|
10
|
+
description: a,
|
|
11
|
+
link: f,
|
|
12
|
+
style: v = "light",
|
|
13
|
+
isBlurred: M = !1,
|
|
14
|
+
children: c,
|
|
15
|
+
positions: d = ["top", "bottom", "left", "right"],
|
|
16
|
+
onClose: r
|
|
17
|
+
}) => {
|
|
18
|
+
const [h, s] = C(!1), e = P(null), n = i(() => {
|
|
19
|
+
e.current && clearTimeout(e.current), e.current = setTimeout(() => s(!0), 200);
|
|
20
|
+
}, []), o = i(() => {
|
|
21
|
+
e.current = setTimeout(() => {
|
|
22
|
+
s(!1), r == null || r();
|
|
23
|
+
}, 200);
|
|
24
|
+
}, [r]), p = i(() => s((x) => !x), []), T = l(() => t === "hover" ? {
|
|
25
|
+
onMouseEnter: n,
|
|
26
|
+
onMouseLeave: o
|
|
27
|
+
} : {
|
|
28
|
+
onClick: p
|
|
29
|
+
}, [t, n, o, p]), b = l(() => t === "hover" ? {
|
|
30
|
+
onMouseEnter: n,
|
|
31
|
+
onMouseLeave: o
|
|
32
|
+
} : {}, [t, n, o]);
|
|
33
|
+
return k(() => () => {
|
|
34
|
+
e.current && clearTimeout(e.current);
|
|
35
|
+
}, []), O() ? c : /* @__PURE__ */ u(
|
|
36
|
+
E.Popover,
|
|
37
|
+
{
|
|
38
|
+
isOpen: h,
|
|
39
|
+
positions: d,
|
|
40
|
+
padding: 8,
|
|
41
|
+
onClickOutside: o,
|
|
42
|
+
content: /* @__PURE__ */ u(
|
|
43
|
+
L,
|
|
44
|
+
{
|
|
45
|
+
title: m,
|
|
46
|
+
description: a,
|
|
47
|
+
link: f,
|
|
48
|
+
style: v,
|
|
49
|
+
isBlurred: M,
|
|
50
|
+
onClose: o,
|
|
51
|
+
...b
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
children: /* @__PURE__ */ u("div", { ...T, children: c })
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
y as ComplexTooltip
|
|
60
|
+
};
|
package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("../../../Icon/Icon.cjs.js"),r=require("../../../Icon/constants.cjs.js"),h=require("../../../TextButton/TextButton.cjs.js"),s=require("../../../Typography/Typography.cjs.js"),x=require("../../../../utils/cn/cn.cjs.js"),t=require("./complexTooltipContent.module.css.cjs.js"),_=({style:n,title:l,description:u,link:o,isBlurred:c,className:i,onMouseEnter:d,onMouseLeave:p,onClose:a})=>e.jsxs("div",{className:x.cn(t.default.content,c&&t.default.blurred,i),"data-style":n,onMouseEnter:d,onMouseLeave:p,children:[e.jsxs("div",{className:t.default.contentHeader,children:[e.jsx(s.Typography,{as:"h4",defaultVariant:"headingSm",children:l}),a&&e.jsxs("button",{className:t.default.closeButton,onClick:a,children:["(",e.jsx(m.Icon,{name:r.EIconName.CLOSE,className:t.default.closeIcon}),")"]})]}),e.jsx(s.Typography,{as:"p",defaultVariant:"bodySm",children:u}),o&&e.jsx(h.TextButton,{suffixIcon:r.EIconName.ARROW_FORWARD,as:"a",href:o.url,inverted:n==="dark"&&!c||n==="light"&&c,children:o.label})]});exports.ComplexTooltipContent=_;
|
package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommonComplexTooltipProps } from '../../types';
|
|
2
|
+
|
|
3
|
+
type ComplexTooltipContentProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
onMouseEnter?: () => void;
|
|
6
|
+
onMouseLeave?: () => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
} & CommonComplexTooltipProps;
|
|
9
|
+
export declare const ComplexTooltipContent: ({ style, title, description, link, isBlurred, className, onMouseEnter, onMouseLeave, onClose, }: ComplexTooltipContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as h } from "../../../Icon/Icon.es.js";
|
|
3
|
+
import { EIconName as c } from "../../../Icon/constants.es.js";
|
|
4
|
+
import { TextButton as u } from "../../../TextButton/TextButton.es.js";
|
|
5
|
+
import { Typography as i } from "../../../Typography/Typography.es.js";
|
|
6
|
+
import { cn as x } from "../../../../utils/cn/cn.es.js";
|
|
7
|
+
import o from "./complexTooltipContent.module.css.es.js";
|
|
8
|
+
const C = ({
|
|
9
|
+
style: r,
|
|
10
|
+
title: l,
|
|
11
|
+
description: s,
|
|
12
|
+
link: e,
|
|
13
|
+
isBlurred: a,
|
|
14
|
+
className: d,
|
|
15
|
+
onMouseEnter: p,
|
|
16
|
+
onMouseLeave: f,
|
|
17
|
+
onClose: m
|
|
18
|
+
}) => /* @__PURE__ */ n(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
className: x(o.content, a && o.blurred, d),
|
|
22
|
+
"data-style": r,
|
|
23
|
+
onMouseEnter: p,
|
|
24
|
+
onMouseLeave: f,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ n("div", { className: o.contentHeader, children: [
|
|
27
|
+
/* @__PURE__ */ t(i, { as: "h4", defaultVariant: "headingSm", children: l }),
|
|
28
|
+
m && /* @__PURE__ */ n("button", { className: o.closeButton, onClick: m, children: [
|
|
29
|
+
"(",
|
|
30
|
+
/* @__PURE__ */ t(h, { name: c.CLOSE, className: o.closeIcon }),
|
|
31
|
+
")"
|
|
32
|
+
] })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ t(i, { as: "p", defaultVariant: "bodySm", children: s }),
|
|
35
|
+
e && /* @__PURE__ */ t(
|
|
36
|
+
u,
|
|
37
|
+
{
|
|
38
|
+
suffixIcon: c.ARROW_FORWARD,
|
|
39
|
+
as: "a",
|
|
40
|
+
href: e.url,
|
|
41
|
+
inverted: r === "dark" && !a || r === "light" && a,
|
|
42
|
+
children: e.label
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
export {
|
|
49
|
+
C as ComplexTooltipContent
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="complexTooltipContent-module__content___gGk3B",e="complexTooltipContent-module__blurred___5ZgFB",t="complexTooltipContent-module__contentHeader___zWu-A",n="complexTooltipContent-module__closeButton___LvHd5",l="complexTooltipContent-module__closeIcon___8Nx3Z",c={content:o,blurred:e,contentHeader:t,closeButton:n,closeIcon:l};exports.blurred=e;exports.closeButton=n;exports.closeIcon=l;exports.content=o;exports.contentHeader=t;exports.default=c;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const o = "complexTooltipContent-module__content___gGk3B", t = "complexTooltipContent-module__blurred___5ZgFB", e = "complexTooltipContent-module__contentHeader___zWu-A", n = "complexTooltipContent-module__closeButton___LvHd5", c = "complexTooltipContent-module__closeIcon___8Nx3Z", l = {
|
|
2
|
+
content: o,
|
|
3
|
+
blurred: t,
|
|
4
|
+
contentHeader: e,
|
|
5
|
+
closeButton: n,
|
|
6
|
+
closeIcon: c
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
t as blurred,
|
|
10
|
+
n as closeButton,
|
|
11
|
+
c as closeIcon,
|
|
12
|
+
o as content,
|
|
13
|
+
e as contentHeader,
|
|
14
|
+
l as default
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ComplexTooltipContent } from './ComplexTooltipContent';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TColorScheme } from '../../types/common';
|
|
2
|
+
|
|
3
|
+
export type CommonComplexTooltipProps = {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
link?: {
|
|
7
|
+
label: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
style: Omit<TColorScheme, 'custom'>;
|
|
11
|
+
isBlurred?: boolean;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
};
|
|
@@ -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("../../styles/typography.module.css.cjs.js"),c=require("../../utils/cn/cn.cjs.js"),r=require("../Icon/Icon.cjs.js"),n=require("./contentTabs.module.css.cjs.js");function d({tabs:i,activeTab:s,colorScheme:a,onTabClick:o}){return l.jsx("div",{className:c.cn(n.default.root,n.default[a]),children:i.map(e=>l.jsxs("div",{className:n.default.tabWrap,children:[l.jsxs("button",{className:c.cn(n.default.tab,{[n.default.activeTab]:s.label===e.label}),onClick:()=>o(e),children:[e.icon&&l.jsx("div",{className:n.default.icon,children:l.jsx(r.Icon,{name:e.icon})}),l.jsx("div",{className:t.default.headingXs,children:e.label})]}),l.jsx("p",{className:c.cn(n.default.description,{[n.default.descriptionActive]:s.label===e.label},t.default.bodySm),children:e.description})]},String(e.label)))})}exports.ContentTabs=d;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Icon as
|
|
1
|
+
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import c from "../../styles/typography.module.css.es.js";
|
|
3
|
+
import { cn as o } from "../../utils/cn/cn.es.js";
|
|
4
|
+
import { Icon as d } from "../Icon/Icon.es.js";
|
|
5
5
|
import e from "./contentTabs.module.css.es.js";
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
6
|
+
function v({ tabs: s, activeTab: r, colorScheme: a, onTabClick: m }) {
|
|
7
|
+
return /* @__PURE__ */ l("div", { className: o(e.root, e[a]), children: s.map((i) => /* @__PURE__ */ n("div", { className: e.tabWrap, children: [
|
|
8
|
+
/* @__PURE__ */ n(
|
|
9
9
|
"button",
|
|
10
10
|
{
|
|
11
|
-
className:
|
|
12
|
-
[e.activeTab]:
|
|
11
|
+
className: o(e.tab, {
|
|
12
|
+
[e.activeTab]: r.label === i.label
|
|
13
13
|
}),
|
|
14
|
-
onClick: () => m(
|
|
14
|
+
onClick: () => m(i),
|
|
15
15
|
children: [
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
i.icon && /* @__PURE__ */ l("div", { className: e.icon, children: /* @__PURE__ */ l(d, { name: i.icon }) }),
|
|
17
|
+
/* @__PURE__ */ l("div", { className: c.headingXs, children: i.label })
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
20
|
),
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ l(
|
|
22
22
|
"p",
|
|
23
23
|
{
|
|
24
|
-
className:
|
|
24
|
+
className: o(
|
|
25
25
|
e.description,
|
|
26
26
|
{
|
|
27
|
-
[e.descriptionActive]:
|
|
27
|
+
[e.descriptionActive]: r.label === i.label
|
|
28
28
|
},
|
|
29
|
-
|
|
29
|
+
c.bodySm
|
|
30
30
|
),
|
|
31
|
-
children:
|
|
31
|
+
children: i.description
|
|
32
32
|
}
|
|
33
33
|
)
|
|
34
|
-
] }, String(
|
|
34
|
+
] }, String(i.label))) });
|
|
35
35
|
}
|
|
36
36
|
export {
|
|
37
|
-
|
|
37
|
+
v as ContentTabs
|
|
38
38
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./components/ClientCursor.cjs.js"),n=require("./components/ServerCursor.cjs.js");function s({children:r,label:u,colorScheme:o}){return typeof window>"u"?e.jsx(n.ServerCursor,{children:r}):e.jsx(t.ClientCursor,{label:u,colorScheme:o,children:r})}exports.Cursor=s;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { ClientCursor as f } from "./components/ClientCursor.es.js";
|
|
3
|
+
import { ServerCursor as i } from "./components/ServerCursor.es.js";
|
|
4
|
+
function p({ children: r, label: t, colorScheme: e }) {
|
|
5
|
+
return typeof window > "u" ? /* @__PURE__ */ o(i, { children: r }) : /* @__PURE__ */ o(f, { label: t, colorScheme: e, children: r });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
p as Cursor
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),x=require("react-dom"),q=require("../../../utils/cn/cn.cjs.js"),b=require("../../Typography/Typography.cjs.js"),s=require("../cursor.module.css.cjs.js");function g({children:c,label:a,colorScheme:l}){const[r,d]=e.useState({x:0,y:0}),[f,o]=e.useState(!1),m=e.useRef(null),[p,n]=e.useState(!1);e.useEffect(()=>(n(!0),()=>n(!1)),[]),e.useEffect(()=>{const u=i=>{d({x:i.clientX,y:i.clientY})};return window.addEventListener("mousemove",u),()=>window.removeEventListener("mousemove",u)},[]);const y=()=>{o(!0)},h=()=>{o(!1)},v=t.jsx("div",{ref:m,className:q.cn(s.default.cursor,{[s.default.cursorVisible]:f}),style:{left:`${r.x}px`,top:`${r.y}px`},"data-color-scheme":l,children:t.jsx(b.Typography,{as:"p",emphasis:!0,defaultVariant:"labelLg",children:a})});return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:s.default.cursorContainer,onMouseEnter:y,onMouseLeave:h,children:c}),p&&x.createPortal(v,document.body)]})}exports.ClientCursor=g;
|