@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.
Files changed (283) hide show
  1. package/README.md +18 -16
  2. package/dist/_virtual/Popover.cjs.js +1 -0
  3. package/dist/_virtual/Popover.es.js +5 -0
  4. package/dist/_virtual/Popover.es2.js +4 -0
  5. package/dist/_virtual/{jsx-runtime.cjs2.js → PopoverPortal.cjs.js} +1 -1
  6. package/dist/_virtual/PopoverPortal.es.js +4 -0
  7. package/dist/_virtual/useArrowContainer.cjs.js +1 -0
  8. package/dist/_virtual/useArrowContainer.es.js +4 -0
  9. package/dist/_virtual/useElementRef.cjs.js +1 -0
  10. package/dist/_virtual/useHandlePrevValues.cjs.js +1 -0
  11. package/dist/_virtual/useHandlePrevValues.es.js +4 -0
  12. package/dist/_virtual/useMemoizedArray.cjs.js +1 -0
  13. package/dist/_virtual/useMemoizedArray.es.js +4 -0
  14. package/dist/_virtual/usePopover.cjs.js +1 -0
  15. package/dist/_virtual/usePopover.es.js +4 -0
  16. package/dist/_virtual/util.cjs.js +1 -0
  17. package/dist/_virtual/util.es.js +4 -0
  18. package/dist/components/Benefit/Benefit.cjs.js +1 -0
  19. package/dist/components/Benefit/Benefit.es.js +13 -0
  20. package/dist/components/Benefit/benefit.module.css.cjs.js +1 -0
  21. package/dist/components/Benefit/benefit.module.css.es.js +9 -0
  22. package/dist/components/Button/Button.cjs.js +1 -1
  23. package/dist/components/Button/Button.es.js +13 -13
  24. package/dist/components/Callback/Callback.cjs.js +1 -1
  25. package/dist/components/Callback/Callback.es.js +34 -35
  26. package/dist/components/ComplexTooltip/ComplexTooltip.cjs.js +1 -0
  27. package/dist/components/ComplexTooltip/ComplexTooltip.d.ts +5 -13
  28. package/dist/components/ComplexTooltip/ComplexTooltip.es.js +60 -0
  29. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.cjs.js +1 -0
  30. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.d.ts +10 -0
  31. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/ComplexTooltipContent.es.js +50 -0
  32. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.cjs.js +1 -0
  33. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/complexTooltipContent.module.css.es.js +15 -0
  34. package/dist/components/ComplexTooltip/components/ComplexTooltipContent/index.d.ts +1 -0
  35. package/dist/components/ComplexTooltip/index.d.ts +1 -0
  36. package/dist/components/ComplexTooltip/types.d.ts +13 -0
  37. package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
  38. package/dist/components/ContentTabs/ContentTabs.es.js +19 -19
  39. package/dist/components/Cursor/Cursor.cjs.js +1 -0
  40. package/dist/components/Cursor/Cursor.es.js +9 -0
  41. package/dist/components/Cursor/components/ClientCursor.cjs.js +1 -0
  42. package/dist/components/Cursor/components/ClientCursor.es.js +42 -0
  43. package/dist/components/Cursor/components/ServerCursor.cjs.js +1 -0
  44. package/dist/components/Cursor/components/ServerCursor.es.js +4 -0
  45. package/dist/components/Cursor/cursor.module.css.cjs.js +1 -0
  46. package/dist/components/Cursor/cursor.module.css.es.js +11 -0
  47. package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
  48. package/dist/components/FilterMenu/FilterMenu.es.js +18 -17
  49. package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
  50. package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +1 -1
  51. package/dist/components/HighlightedTitle/HighlightedTitle.es.js +22 -33
  52. package/dist/components/Icon/Icon.cjs.js +1 -1
  53. package/dist/components/Icon/Icon.es.js +7 -16
  54. package/dist/components/Icon/iconsMap.cjs.js +1 -0
  55. package/dist/components/Icon/iconsMap.d.ts +4 -0
  56. package/dist/components/Icon/iconsMap.es.js +110 -0
  57. package/dist/components/IconButton/IconButton.cjs.js +1 -1
  58. package/dist/components/IconButton/IconButton.es.js +12 -13
  59. package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
  60. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +34 -33
  61. package/dist/components/Label/Label.cjs.js +1 -1
  62. package/dist/components/Label/Label.es.js +8 -8
  63. package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
  64. package/dist/components/ProductGallery/ProductGallery.es.js +46 -45
  65. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  66. package/dist/components/ProductGalleryCard/ProductGalleryCard.d.ts +5 -1
  67. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +16 -15
  68. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.cjs.js +1 -1
  69. package/dist/components/ProductGalleryCard/productGalleryCard.module.css.es.js +14 -12
  70. package/dist/components/ProductListing/ProductListing.cjs.js +1 -0
  71. package/dist/components/ProductListing/ProductListing.es.js +30 -0
  72. package/dist/components/ProductListing/productListing.module.css.cjs.js +1 -0
  73. package/dist/components/ProductListing/productListing.module.css.es.js +29 -0
  74. package/dist/components/ProductPairs/ProductPairs.cjs.js +1 -0
  75. package/dist/components/ProductPairs/ProductPairs.d.ts +7 -0
  76. package/dist/components/ProductPairs/ProductPairs.es.js +55 -0
  77. package/dist/components/ProductPairs/index.d.ts +1 -0
  78. package/dist/components/ProductPairs/productPairs.module.css.cjs.js +1 -0
  79. package/dist/components/ProductPairs/productPairs.module.css.es.js +17 -0
  80. package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -0
  81. package/dist/components/ProgramCard/ProgramCard.es.js +48 -0
  82. package/dist/components/ProgramCard/assets/program_card_bg.png.cjs.js +1 -0
  83. package/dist/components/ProgramCard/assets/program_card_bg.png.es.js +4 -0
  84. package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -0
  85. package/dist/components/ProgramCard/programCard.module.css.es.js +7 -0
  86. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
  87. package/dist/components/ProgressButton/ProgressButton.es.js +18 -19
  88. package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -0
  89. package/dist/components/StepsCarousel/StepsCarousel.d.ts +13 -0
  90. package/dist/components/StepsCarousel/StepsCarousel.es.js +92 -0
  91. package/dist/components/StepsCarousel/index.d.ts +1 -0
  92. package/dist/components/StepsCarousel/stepsCarousel.module.css.cjs.js +1 -0
  93. package/dist/components/StepsCarousel/stepsCarousel.module.css.es.js +31 -0
  94. package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -0
  95. package/dist/components/StudyGridCard/StudyGridCard.es.js +61 -0
  96. package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -0
  97. package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +19 -0
  98. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  99. package/dist/components/Tabs/Tabs.es.js +20 -20
  100. package/dist/components/Tabs/TabsWithFade.cjs.js +1 -1
  101. package/dist/components/Tabs/TabsWithFade.es.js +16 -15
  102. package/dist/components/Tag/Tag.cjs.js +1 -1
  103. package/dist/components/Tag/Tag.es.js +15 -15
  104. package/dist/components/TextButton/TextButton.cjs.js +1 -1
  105. package/dist/components/TextButton/TextButton.es.js +18 -18
  106. package/dist/components/TypeBadge/TypeBadge.cjs.js +1 -1
  107. package/dist/components/TypeBadge/TypeBadge.es.js +4 -4
  108. package/dist/components/Typography/Typography.cjs.js +1 -1
  109. package/dist/components/Typography/Typography.es.js +9 -9
  110. package/dist/components/index.d.ts +0 -26
  111. package/dist/healthspan-marketing-ui.css +1 -1
  112. package/dist/index.cjs.js +1 -1
  113. package/dist/index.d.ts +0 -3
  114. package/dist/index.es.js +2 -55
  115. package/dist/modules/Benefits/Benefits.cjs.js +1 -0
  116. package/dist/modules/Benefits/Benefits.d.ts +14 -0
  117. package/dist/modules/Benefits/Benefits.es.js +53 -0
  118. package/dist/modules/Benefits/benefits.module.css.cjs.js +1 -0
  119. package/dist/modules/Benefits/benefits.module.css.es.js +25 -0
  120. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.cjs.js +1 -0
  121. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.d.ts +7 -0
  122. package/dist/modules/Benefits/components/BenefitItem/BenefitItem.es.js +37 -0
  123. package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.cjs.js +1 -0
  124. package/dist/modules/Benefits/components/BenefitItem/benefitItem.module.css.es.js +11 -0
  125. package/dist/modules/Benefits/components/BenefitItem/index.d.ts +1 -0
  126. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.cjs.js +1 -0
  127. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.d.ts +6 -0
  128. package/dist/modules/Benefits/components/BenefitTag/BenefitTag.es.js +17 -0
  129. package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.cjs.js +1 -0
  130. package/dist/modules/Benefits/components/BenefitTag/benefitTag.module.css.es.js +9 -0
  131. package/dist/modules/Benefits/components/BenefitTag/index.d.ts +1 -0
  132. package/dist/modules/Benefits/components/index.d.ts +2 -0
  133. package/dist/modules/Benefits/index.d.ts +1 -0
  134. package/dist/modules/Callback/Callback.cjs.js +1 -0
  135. package/dist/modules/Callback/Callback.d.ts +1 -1
  136. package/dist/modules/Callback/Callback.es.js +36 -0
  137. package/dist/modules/Callback/callback.module.css.cjs.js +1 -0
  138. package/dist/modules/Callback/callback.module.css.es.js +13 -0
  139. package/dist/modules/Comparison/Comparison.cjs.js +1 -0
  140. package/dist/modules/Comparison/Comparison.es.js +86 -0
  141. package/dist/modules/Comparison/assets/company-logo.svg.cjs.js +1 -0
  142. package/dist/modules/Comparison/assets/company-logo.svg.es.js +5 -0
  143. package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -0
  144. package/dist/modules/Comparison/comparison.module.css.es.js +39 -0
  145. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.cjs.js +1 -0
  146. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.es.js +42 -0
  147. package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.cjs.js +1 -0
  148. package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.es.js +27 -0
  149. package/dist/modules/Comparison/utils.cjs.js +1 -0
  150. package/dist/modules/Comparison/utils.es.js +4 -0
  151. package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -0
  152. package/dist/modules/FeaturedIn/FeaturedIn.es.js +54 -0
  153. package/dist/modules/FeaturedIn/featuredIn.module.css.cjs.js +1 -0
  154. package/dist/modules/FeaturedIn/featuredIn.module.css.es.js +37 -0
  155. package/dist/modules/FeaturesGallery/FeaturesGallery.cjs.js +1 -0
  156. package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +22 -0
  157. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.cjs.js +1 -0
  158. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +29 -0
  159. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.cjs.js +1 -0
  160. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.es.js +21 -0
  161. package/dist/modules/FeaturesGallery/featuresGallery.module.css.cjs.js +1 -0
  162. package/dist/modules/FeaturesGallery/featuresGallery.module.css.es.js +21 -0
  163. package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -0
  164. package/dist/modules/FollowTheScience/FollowTheScience.es.js +73 -0
  165. package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -0
  166. package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +15 -0
  167. package/dist/modules/HowItWorks/HowItWorks.cjs.js +1 -0
  168. package/dist/modules/HowItWorks/HowItWorks.es.js +16 -0
  169. package/dist/modules/HowItWorks/components/Content/Content.cjs.js +1 -0
  170. package/dist/modules/HowItWorks/components/Content/Content.es.js +65 -0
  171. package/dist/modules/HowItWorks/components/Content/content.module.css.cjs.js +1 -0
  172. package/dist/modules/HowItWorks/components/Content/content.module.css.es.js +21 -0
  173. package/dist/modules/HowItWorks/howItWorks.module.css.cjs.js +1 -0
  174. package/dist/modules/HowItWorks/howItWorks.module.css.es.js +13 -0
  175. package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -0
  176. package/dist/modules/OptimalHealth/OptimalHealth.es.js +19 -0
  177. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -0
  178. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +37 -0
  179. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -0
  180. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +15 -0
  181. package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +1 -0
  182. package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +13 -0
  183. package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -0
  184. package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +19 -0
  185. package/dist/modules/OurProcess/OurProcess.cjs.js +1 -0
  186. package/dist/modules/OurProcess/OurProcess.d.ts +2 -2
  187. package/dist/modules/OurProcess/OurProcess.es.js +15 -0
  188. package/dist/modules/OurProcess/ourProcess.module.css.cjs.js +1 -0
  189. package/dist/modules/OurProcess/ourProcess.module.css.es.js +11 -0
  190. package/dist/modules/PairedProducts/PairedProducts.cjs.js +1 -0
  191. package/dist/modules/PairedProducts/PairedProducts.d.ts +12 -0
  192. package/dist/modules/PairedProducts/PairedProducts.es.js +17 -0
  193. package/dist/modules/PairedProducts/index.d.ts +1 -0
  194. package/dist/modules/PairedProducts/pairedProducts.module.css.cjs.js +1 -0
  195. package/dist/modules/PairedProducts/pairedProducts.module.css.es.js +17 -0
  196. package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
  197. package/dist/modules/ProductsDisplay/ProductsDisplay.d.ts +1 -1
  198. package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +17 -22
  199. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -1
  200. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -1
  201. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +9 -19
  202. package/dist/modules/ProductsDisplay/types.d.ts +2 -2
  203. package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -1
  204. package/dist/modules/ProductsDisplay/useProductsData.d.ts +2 -1
  205. package/dist/modules/ProductsDisplay/useProductsData.es.js +8 -7
  206. package/dist/modules/Studies/Studies.cjs.js +1 -0
  207. package/dist/modules/Studies/Studies.es.js +26 -0
  208. package/dist/modules/Studies/studies.module.css.cjs.js +1 -0
  209. package/dist/modules/Studies/studies.module.css.es.js +15 -0
  210. package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -0
  211. package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +67 -0
  212. package/dist/modules/TargetedPrograms/targetedPrograms.module.css.cjs.js +1 -0
  213. package/dist/modules/TargetedPrograms/targetedPrograms.module.css.es.js +15 -0
  214. package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
  215. package/dist/modules/TotalCare/TotalCare.d.ts +1 -1
  216. package/dist/modules/TotalCare/TotalCare.es.js +18 -27
  217. package/dist/modules/TypesOfTests/TypesOfTests.cjs.js +1 -0
  218. package/dist/modules/TypesOfTests/TypesOfTests.d.ts +10 -0
  219. package/dist/modules/TypesOfTests/TypesOfTests.es.js +67 -0
  220. package/dist/modules/TypesOfTests/index.d.ts +1 -0
  221. package/dist/modules/TypesOfTests/types.d.ts +4 -0
  222. package/dist/modules/TypesOfTests/typesOfTests.module.css.cjs.js +1 -0
  223. package/dist/modules/TypesOfTests/typesOfTests.module.css.es.js +29 -0
  224. package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
  225. package/dist/modules/YourProtocol/YourProtocol.es.js +19 -30
  226. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
  227. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +19 -27
  228. package/dist/modules/index.d.ts +0 -3
  229. package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.cjs.js +1 -0
  230. package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.es.js +37 -0
  231. package/dist/node_modules/react-tiny-popover/dist/Popover.cjs.js +1 -0
  232. package/dist/node_modules/react-tiny-popover/dist/Popover.es.js +147 -0
  233. package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.cjs.js +1 -0
  234. package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.es.js +20 -0
  235. package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.cjs.js +1 -0
  236. package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.es.js +86 -0
  237. package/dist/node_modules/react-tiny-popover/dist/useElementRef.cjs.js +1 -0
  238. package/dist/node_modules/react-tiny-popover/dist/useElementRef.es.js +22 -0
  239. package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.cjs.js +1 -0
  240. package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.es.js +34 -0
  241. package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.cjs.js +1 -0
  242. package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.es.js +24 -0
  243. package/dist/node_modules/react-tiny-popover/dist/usePopover.cjs.js +1 -0
  244. package/dist/node_modules/react-tiny-popover/dist/usePopover.es.js +140 -0
  245. package/dist/node_modules/react-tiny-popover/dist/util.cjs.js +1 -0
  246. package/dist/node_modules/react-tiny-popover/dist/util.es.js +81 -0
  247. package/dist/utils/index.d.ts +0 -4
  248. package/dist/utils/isHsIcon/isHsIcon.cjs.js +1 -0
  249. package/dist/utils/{isHsIcon.es.js → isHsIcon/isHsIcon.es.js} +1 -1
  250. package/dist/utils/useIsMobile.cjs.js +1 -0
  251. package/dist/utils/useIsMobile.d.ts +1 -0
  252. package/dist/utils/useIsMobile.es.js +12 -0
  253. package/package.json +210 -4
  254. package/dist/_virtual/dynamic-import-helper.cjs.js +0 -1
  255. package/dist/_virtual/dynamic-import-helper.es.js +0 -16
  256. package/dist/_virtual/jsx-runtime.cjs.js +0 -1
  257. package/dist/_virtual/jsx-runtime.es.js +0 -5
  258. package/dist/_virtual/jsx-runtime.es2.js +0 -4
  259. package/dist/icons/map/pin-drop.svg.cjs.js +0 -1
  260. package/dist/icons/map/pin-drop.svg.es.js +0 -5
  261. package/dist/modules/OurProcess/components/StepCards/StepCards.d.ts +0 -9
  262. package/dist/modules/OurProcess/components/StepCards/index.d.ts +0 -1
  263. package/dist/modules/OurProcess/types.d.ts +0 -5
  264. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -22
  265. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -604
  266. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +0 -9
  267. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +0 -28
  268. package/dist/node_modules/react/jsx-runtime.cjs.js +0 -1
  269. package/dist/node_modules/react/jsx-runtime.es.js +0 -10
  270. package/dist/utils/isHsIcon.cjs.js +0 -1
  271. package/dist/utils.cjs.js +0 -1
  272. package/dist/utils.es.js +0 -10
  273. /package/dist/_virtual/{react-jsx-runtime.development.cjs.js → ArrowContainer.cjs.js} +0 -0
  274. /package/dist/_virtual/{react-jsx-runtime.production.min.es.js → ArrowContainer.es.js} +0 -0
  275. /package/dist/_virtual/{react-jsx-runtime.production.min.cjs.js → Popover.cjs2.js} +0 -0
  276. /package/dist/_virtual/{react-jsx-runtime.development.es.js → useElementRef.es.js} +0 -0
  277. /package/dist/{utils → lib}/useSwiper.d.ts +0 -0
  278. /package/dist/utils/{cn.cjs.js → cn/cn.cjs.js} +0 -0
  279. /package/dist/utils/{cn.es.js → cn/cn.es.js} +0 -0
  280. /package/dist/utils/{formatUnits.cjs.js → formatUnits/formatUnits.cjs.js} +0 -0
  281. /package/dist/utils/{formatUnits.es.js → formatUnits/formatUnits.es.js} +0 -0
  282. /package/dist/utils/{useSwiper.cjs.js → useSwiper/useSwiper.cjs.js} +0 -0
  283. /package/dist/utils/{useSwiper.es.js → useSwiper/useSwiper.es.js} +0 -0
package/README.md CHANGED
@@ -1,17 +1,6 @@
1
- ## Healthspan - Design System
1
+ # Healthspan - Marketing UI
2
2
 
3
- A modern, reusable UI library built with **React**, **TypeScript**, and **Vite**, designed to power web applications with consistent components and design tokens.
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
- Or with Yarn:
11
+ ## Development
12
+ Start the storybook:
23
13
 
14
+ ```bash
15
+ npm run storybook
24
16
  ```
25
- yarn add @zenpatient-org/healthspan-marketing-ui
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/index.css"
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;
@@ -0,0 +1,5 @@
1
+ import { __require as r } from "../node_modules/react-tiny-popover/dist/Popover.es.js";
2
+ var e = r();
3
+ export {
4
+ e as P
5
+ };
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var o = {};
2
+ export {
3
+ o as __exports
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -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,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -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;
@@ -0,0 +1,9 @@
1
+ const t = "benefit-module__benefit___QQY-K", e = "benefit-module__textButton___qXfU6", n = {
2
+ benefit: t,
3
+ textButton: e
4
+ };
5
+ export {
6
+ t as benefit,
7
+ n as default,
8
+ e as textButton
9
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),R=require("react"),f=require("../../utils/cn.cjs.js"),r=require("../Icon/Icon.cjs.js"),s=require("./button.module.css.cjs.js"),o=R.forwardRef(({variant:u="primary",size:i="md",as:c="button",disabled:e=!1,children:l,prefixIcon:n,suffixIcon:a,...d},x)=>{const m=s.default[u]||"",j=s.default[i]||"",p=e?s.default.disabled:"";return t.jsxRuntimeExports.jsx(c,{ref:x,...d,className:f.cn(s.default.button,m,j,p),disabled:e,children:t.jsxRuntimeExports.jsxs("div",{className:s.default.content,children:[n&&t.jsxRuntimeExports.jsx("div",{className:s.default.iconWrap,children:t.jsxRuntimeExports.jsx(r.Icon,{name:n})}),t.jsxRuntimeExports.jsx("div",{children:l}),a&&t.jsxRuntimeExports.jsx("div",{className:s.default.iconWrap,children:t.jsxRuntimeExports.jsx(r.Icon,{name:a})})]})})});o.displayName="Button";exports.Button=o;
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 { j as s } from "../../_virtual/jsx-runtime.es.js";
2
- import { forwardRef as f } from "react";
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 a from "./button.module.css.es.js";
6
- const v = f(
7
- ({ variant: m = "primary", size: e = "md", as: i = "button", disabled: t = !1, children: c, prefixIcon: r, suffixIcon: o, ...l }, d) => {
8
- const p = a[m] || "", j = a[e] || "", x = t ? a.disabled : "";
9
- return /* @__PURE__ */ s.jsx(i, { ref: d, ...l, className: u(a.button, p, j, x), disabled: t, children: /* @__PURE__ */ s.jsxs("div", { className: a.content, children: [
10
- r && /* @__PURE__ */ s.jsx("div", { className: a.iconWrap, children: /* @__PURE__ */ s.jsx(n, { name: r }) }),
11
- /* @__PURE__ */ s.jsx("div", { children: c }),
12
- o && /* @__PURE__ */ s.jsx("div", { className: a.iconWrap, children: /* @__PURE__ */ s.jsx(n, { name: o }) })
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
- v.displayName = "Button";
16
+ b.displayName = "Button";
17
17
  export {
18
- v as Button
18
+ b as Button
19
19
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_virtual/jsx-runtime.cjs.js"),d=require("../../utils/cn.cjs.js");require("react");const x=require("../Button/Button.cjs.js"),r=require("../Typography/Typography.cjs.js"),e=require("./callback.module.css.cjs.js"),a=require("./constants.cjs.js"),E=({image:i,title:n,description:l,price:o,button:u,size:s="lg"})=>{const c=e.default[s]||"";return t.jsxRuntimeExports.jsxs("div",{className:d.cn(e.default.root,c),children:[t.jsxRuntimeExports.jsxs("div",{className:e.default.productInfo,children:[t.jsxRuntimeExports.jsx("img",{src:i,alt:"product image",className:e.default.productImage}),t.jsxRuntimeExports.jsxs("div",{className:e.default.textContainer,children:[t.jsxRuntimeExports.jsx("div",{className:e.default.titleContainer,children:t.jsxRuntimeExports.jsx(r.Typography,{defaultVariant:a.TITLE_BY_SIZE_DESKTOP[s],mobileVariant:a.TITLE_BY_SIZE_MOBILE[s],className:e.default.title,children:n})}),t.jsxRuntimeExports.jsx("div",{className:e.default.divider}),t.jsxRuntimeExports.jsxs("div",{className:e.default.descriptionContainer,children:[t.jsxRuntimeExports.jsx(r.Typography,{defaultVariant:a.DESC_BY_SIZE_DESKTOP[s],mobileVariant:a.DESC_BY_SIZE_MOBILE[s],className:e.default.description,children:l}),t.jsxRuntimeExports.jsxs(r.Typography,{defaultVariant:a.PRICE_BY_SIZE_DESKTOP[s],mobileVariant:a.PRICE_BY_SIZE_MOBILE[s],className:e.default.price,children:["Starting at ",o]})]})]})]}),t.jsxRuntimeExports.jsx("div",{className:e.default.buttonContainer,children:t.jsxRuntimeExports.jsx(x.Button,{...u,as:"a",size:a.BUTTON_BY_SIZE[s],children:"GET STARTED"})})]})};exports.Callback=E;
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 { j as a } from "../../_virtual/jsx-runtime.es.js";
2
- import { cn as m } from "../../utils/cn.es.js";
3
- import "react";
4
- import { Button as d } from "../Button/Button.es.js";
5
- import { Typography as t } from "../Typography/Typography.es.js";
6
- import r from "./callback.module.css.es.js";
7
- import { TITLE_BY_SIZE_MOBILE as E, TITLE_BY_SIZE_DESKTOP as _, DESC_BY_SIZE_MOBILE as p, DESC_BY_SIZE_DESKTOP as x, PRICE_BY_SIZE_MOBILE as I, PRICE_BY_SIZE_DESKTOP as j, BUTTON_BY_SIZE as S } from "./constants.es.js";
8
- const v = ({ image: i, title: e, description: l, price: n, button: o, size: s = "lg" }) => {
9
- const c = r[s] || "";
10
- return /* @__PURE__ */ a.jsxs("div", { className: m(r.root, c), children: [
11
- /* @__PURE__ */ a.jsxs("div", { className: r.productInfo, children: [
12
- /* @__PURE__ */ a.jsx("img", { src: i, alt: "product image", className: r.productImage }),
13
- /* @__PURE__ */ a.jsxs("div", { className: r.textContainer, children: [
14
- /* @__PURE__ */ a.jsx("div", { className: r.titleContainer, children: /* @__PURE__ */ a.jsx(
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: _[s],
18
- mobileVariant: E[s],
19
- className: r.title,
20
- children: e
16
+ defaultVariant: I[r],
17
+ mobileVariant: _[r],
18
+ className: a.title,
19
+ children: n
21
20
  }
22
21
  ) }),
23
- /* @__PURE__ */ a.jsx("div", { className: r.divider }),
24
- /* @__PURE__ */ a.jsxs("div", { className: r.descriptionContainer, children: [
25
- /* @__PURE__ */ a.jsx(
26
- t,
22
+ /* @__PURE__ */ t("div", { className: a.divider }),
23
+ /* @__PURE__ */ i("div", { className: a.descriptionContainer, children: [
24
+ /* @__PURE__ */ t(
25
+ e,
27
26
  {
28
- defaultVariant: x[s],
29
- mobileVariant: p[s],
30
- className: r.description,
31
- children: l
27
+ defaultVariant: S[r],
28
+ mobileVariant: p[r],
29
+ className: a.description,
30
+ children: o
32
31
  }
33
32
  ),
34
- /* @__PURE__ */ a.jsxs(
35
- t,
33
+ /* @__PURE__ */ i(
34
+ e,
36
35
  {
37
- defaultVariant: j[s],
38
- mobileVariant: I[s],
39
- className: r.price,
36
+ defaultVariant: B[r],
37
+ mobileVariant: T[r],
38
+ className: a.price,
40
39
  children: [
41
40
  "Starting at ",
42
- n
41
+ c
43
42
  ]
44
43
  }
45
44
  )
46
45
  ] })
47
46
  ] })
48
47
  ] }),
49
- /* @__PURE__ */ a.jsx("div", { className: r.buttonContainer, children: /* @__PURE__ */ a.jsx(d, { ...o, as: "a", size: S[s], children: "GET STARTED" }) })
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
- v as Callback
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 { default as React } from 'react';
1
+ import { ReactElement } from 'react';
2
2
  import { PopoverPosition } from 'react-tiny-popover';
3
- import { TColorScheme } from '../../types/common';
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
- isBlurred?: boolean;
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
+ };
@@ -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=_;
@@ -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 {};
@@ -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';
@@ -1 +1,2 @@
1
1
  export { ComplexTooltip } from './ComplexTooltip';
2
+ export { ComplexTooltipContent } from './components/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 t=require("../../_virtual/jsx-runtime.cjs.js"),l=require("../../styles/typography.module.css.cjs.js"),n=require("../../utils/cn.cjs.js"),a=require("../Icon/Icon.cjs.js"),s=require("./contentTabs.module.css.cjs.js");function u({tabs:o,activeTab:i,colorScheme:r,onTabClick:c}){return t.jsxRuntimeExports.jsx("div",{className:n.cn(s.default.root,s.default[r]),children:o.map(e=>t.jsxRuntimeExports.jsxs("div",{className:s.default.tabWrap,children:[t.jsxRuntimeExports.jsxs("button",{className:n.cn(s.default.tab,{[s.default.activeTab]:i.label===e.label}),onClick:()=>c(e),children:[e.icon&&t.jsxRuntimeExports.jsx("div",{className:s.default.icon,children:t.jsxRuntimeExports.jsx(a.Icon,{name:e.icon})}),t.jsxRuntimeExports.jsx("div",{className:l.default.headingXs,children:e.label})]}),t.jsxRuntimeExports.jsx("p",{className:n.cn(s.default.description,{[s.default.descriptionActive]:i.label===e.label},l.default.bodySm),children:e.description})]},String(e.label)))})}exports.ContentTabs=u;
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 { j as i } from "../../_virtual/jsx-runtime.es.js";
2
- import r from "../../styles/typography.module.css.es.js";
3
- import { cn as l } from "../../utils/cn.es.js";
4
- import { Icon as a } from "../Icon/Icon.es.js";
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 h({ tabs: n, activeTab: o, colorScheme: c, onTabClick: m }) {
7
- return /* @__PURE__ */ i.jsx("div", { className: l(e.root, e[c]), children: n.map((s) => /* @__PURE__ */ i.jsxs("div", { className: e.tabWrap, children: [
8
- /* @__PURE__ */ i.jsxs(
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: l(e.tab, {
12
- [e.activeTab]: o.label === s.label
11
+ className: o(e.tab, {
12
+ [e.activeTab]: r.label === i.label
13
13
  }),
14
- onClick: () => m(s),
14
+ onClick: () => m(i),
15
15
  children: [
16
- s.icon && /* @__PURE__ */ i.jsx("div", { className: e.icon, children: /* @__PURE__ */ i.jsx(a, { name: s.icon }) }),
17
- /* @__PURE__ */ i.jsx("div", { className: r.headingXs, children: s.label })
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__ */ i.jsx(
21
+ /* @__PURE__ */ l(
22
22
  "p",
23
23
  {
24
- className: l(
24
+ className: o(
25
25
  e.description,
26
26
  {
27
- [e.descriptionActive]: o.label === s.label
27
+ [e.descriptionActive]: r.label === i.label
28
28
  },
29
- r.bodySm
29
+ c.bodySm
30
30
  ),
31
- children: s.description
31
+ children: i.description
32
32
  }
33
33
  )
34
- ] }, String(s.label))) });
34
+ ] }, String(i.label))) });
35
35
  }
36
36
  export {
37
- h as ContentTabs
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;