@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
@@ -0,0 +1,34 @@
1
+ import { __exports as n } from "../../../_virtual/useHandlePrevValues.es.js";
2
+ import l from "react";
3
+ var d;
4
+ function y() {
5
+ if (d) return n;
6
+ d = 1, Object.defineProperty(n, "__esModule", { value: !0 }), n.useHandlePrevValues = void 0;
7
+ var r = l, v = function(e) {
8
+ var t = (0, r.useRef)(e.positions), u = (0, r.useRef)(e.reposition), a = (0, r.useRef)(e.transformMode), o = (0, r.useRef)(e.transform), s = (0, r.useRef)(e.boundaryElement), i = (0, r.useRef)(e.boundaryInset), f = (0, r.useCallback)(function() {
9
+ t.current = e.positions, u.current = e.reposition, a.current = e.transformMode, o.current = e.transform, s.current = e.boundaryElement, i.current = e.boundaryInset;
10
+ }, [
11
+ e.boundaryElement,
12
+ e.boundaryInset,
13
+ e.positions,
14
+ e.reposition,
15
+ e.transform,
16
+ e.transformMode
17
+ ]);
18
+ return {
19
+ prev: {
20
+ positions: t.current,
21
+ reposition: u.current,
22
+ transformMode: a.current,
23
+ transform: o.current,
24
+ boundaryElement: s.current,
25
+ boundaryInset: i.current
26
+ },
27
+ updatePrevValues: f
28
+ };
29
+ };
30
+ return n.useHandlePrevValues = v, n;
31
+ }
32
+ export {
33
+ y as __require
34
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../_virtual/useMemoizedArray.cjs.js"),c=require("react");var i;function _(){if(i)return u.__exports;i=1,Object.defineProperty(u.__exports,"__esModule",{value:!0}),u.__exports.useMemoizedArray=void 0;var o=c,n=function(e){var r=(0,o.useRef)(e),s=(0,o.useMemo)(function(){if(r.current===e)return r.current;if(r.current.length!==e.length)return r.current=e,e;for(var t=0;t<e.length;t+=1)if(e[t]!==r.current[t])return r.current=e,e;return r.current},[e]);return s};return u.__exports.useMemoizedArray=n,u.__exports}exports.__require=_;
@@ -0,0 +1,24 @@
1
+ import { __exports as u } from "../../../_virtual/useMemoizedArray.es.js";
2
+ import c from "react";
3
+ var i;
4
+ function m() {
5
+ if (i) return u;
6
+ i = 1, Object.defineProperty(u, "__esModule", { value: !0 }), u.useMemoizedArray = void 0;
7
+ var o = c, n = function(e) {
8
+ var r = (0, o.useRef)(e), f = (0, o.useMemo)(function() {
9
+ if (r.current === e)
10
+ return r.current;
11
+ if (r.current.length !== e.length)
12
+ return r.current = e, e;
13
+ for (var t = 0; t < e.length; t += 1)
14
+ if (e[t] !== r.current[t])
15
+ return r.current = e, e;
16
+ return r.current;
17
+ }, [e]);
18
+ return f;
19
+ };
20
+ return u.useMemoizedArray = n, u;
21
+ }
22
+ export {
23
+ m as __require
24
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../../../_virtual/usePopover.cjs.js"),se=require("react"),ve=require("./util.cjs.js"),ge=require("./useElementRef.cjs.js");var re;function Re(){if(re)return x.__exports;re=1,Object.defineProperty(x.__exports,"__esModule",{value:!0}),x.__exports.usePopover=void 0;var ae=se,l=ve.__require(),V=ge.__require(),de={position:"fixed",overflow:"visible",top:"0px",left:"0px"},pe={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},ce=function(e){var T=e.isOpen,P=e.childRef,_=e.positions,m=e.containerClassName,q=e.parentElement,i=e.transform,B=e.transformMode,R=e.align,h=e.padding,E=e.reposition,o=e.boundaryInset,w=e.boundaryElement,C=e.onPositionPopover,f=(0,V.useElementRef)({containerClassName:"react-tiny-popover-scout",containerStyle:pe}),u=(0,V.useElementRef)({containerClassName:m!=null&&m.length>0&&m!=="react-tiny-popover-container"?"react-tiny-popover-container ".concat(m):"react-tiny-popover-container",containerStyle:de}),Y=(0,ae.useCallback)(function(j){var I,S,s=j===void 0?{}:j,U=s.positionIndex,N=U===void 0?0:U,k=s.parentRect,r=k===void 0?q.getBoundingClientRect():k,$=s.childRect,v=$===void 0?(I=P==null?void 0:P.current)===null||I===void 0?void 0:I.getBoundingClientRect():$,z=s.scoutRect,M=z===void 0?(S=f==null?void 0:f.current)===null||S===void 0?void 0:S.getBoundingClientRect():z,A=s.popoverRect,y=A===void 0?u.current.getBoundingClientRect():A,D=s.boundaryRect,n=D===void 0?w===q?r:w.getBoundingClientRect():D;if(!(!v||!r||!T)){if(i&&B==="absolute"){var F=typeof i=="function"?i({childRect:v,popoverRect:y,parentRect:r,boundaryRect:n,padding:h,align:R,nudgedTop:0,nudgedLeft:0,boundaryInset:o,violations:l.EMPTY_RECT,hasViolations:!1}):i,G=F.top,H=F.left,J=Math.round(r.left+H-M.left),K=Math.round(r.top+G-M.top);u.current.style.transform="translate(".concat(J,"px, ").concat(K,"px)"),C({childRect:v,popoverRect:(0,l.createRect)({left:J,top:K,width:y.width,height:y.height}),parentRect:r,boundaryRect:n,padding:h,align:R,transform:{top:G,left:H},nudgedTop:0,nudgedLeft:0,boundaryInset:o,violations:l.EMPTY_RECT,hasViolations:!1});return}var O=N===_.length,L=O?_[0]:_[N],Q=(0,l.getNewPopoverRect)({childRect:v,popoverRect:y,boundaryRect:n,position:L,align:R,padding:h,reposition:E},o),b=Q.rect,le=Q.boundaryViolation;if(le&&E&&!O){Y({positionIndex:N+1,childRect:v,popoverRect:y,parentRect:r,boundaryRect:n});return}var W=b.top,X=b.left,Z=b.width,ee=b.height,ue=E&&!O,te=(0,l.getNudgedPopoverRect)(b,n,o),oe=te.left,ne=te.top,a=W,d=X;ue&&(a=ne,d=oe),a=Math.round(a-M.top),d=Math.round(d-M.left),u.current.style.transform="translate(".concat(d,"px, ").concat(a,"px)");var t={top:n.top+o-a,left:n.left+o-d,right:d+Z-n.right+o,bottom:a+ee-n.bottom+o},g={childRect:v,popoverRect:(0,l.createRect)({left:d,top:a,width:Z,height:ee}),parentRect:r,boundaryRect:n,position:L,align:R,padding:h,nudgedTop:ne-W,nudgedLeft:oe-X,boundaryInset:o,violations:{top:t.top<=0?0:t.top,left:t.left<=0?0:t.left,right:t.right<=0?0:t.right,bottom:t.bottom<=0?0:t.bottom},hasViolations:t.top>0||t.left>0||t.right>0||t.bottom>0};if(i){C(g);var ie=typeof i=="function"?i(g):i,p=ie.top,c=ie.left;u.current.style.transform="translate(".concat(Math.round(d+(c??0)),"px, ").concat(Math.round(a+(p??0)),"px)"),g.nudgedLeft+=c??0,g.nudgedTop+=p??0,g.transform={top:p,left:c}}C(g)}},[q,P,f,u,w,T,i,B,_,R,h,E,o,C]);return{positionPopover:Y,popoverRef:u,scoutRef:f}};return x.__exports.usePopover=ce,x.__exports}exports.__require=Re;
@@ -0,0 +1,140 @@
1
+ import { __exports as m } from "../../../_virtual/usePopover.es.js";
2
+ import ve from "react";
3
+ import { __require as se } from "./util.es.js";
4
+ import { __require as Re } from "./useElementRef.es.js";
5
+ var re;
6
+ function be() {
7
+ if (re) return m;
8
+ re = 1, Object.defineProperty(m, "__esModule", { value: !0 }), m.usePopover = void 0;
9
+ var ae = ve, c = se(), S = Re(), de = {
10
+ position: "fixed",
11
+ overflow: "visible",
12
+ top: "0px",
13
+ left: "0px"
14
+ }, pe = {
15
+ position: "fixed",
16
+ top: "0px",
17
+ left: "0px",
18
+ width: "0px",
19
+ height: "0px",
20
+ visibility: "hidden"
21
+ }, le = function(e) {
22
+ var B = e.isOpen, x = e.childRef, P = e.positions, E = e.containerClassName, w = e.parentElement, i = e.transform, T = e.transformMode, g = e.align, f = e.padding, C = e.reposition, o = e.boundaryInset, I = e.boundaryElement, _ = e.onPositionPopover, h = (0, S.useElementRef)({
23
+ containerClassName: "react-tiny-popover-scout",
24
+ containerStyle: pe
25
+ }), u = (0, S.useElementRef)({
26
+ containerClassName: E != null && E.length > 0 && E !== "react-tiny-popover-container" ? "react-tiny-popover-container ".concat(E) : "react-tiny-popover-container",
27
+ containerStyle: de
28
+ }), U = (0, ae.useCallback)(function(Y) {
29
+ var q, N, v = Y === void 0 ? {} : Y, j = v.positionIndex, V = j === void 0 ? 0 : j, k = v.parentRect, r = k === void 0 ? w.getBoundingClientRect() : k, $ = v.childRect, s = $ === void 0 ? (q = x == null ? void 0 : x.current) === null || q === void 0 ? void 0 : q.getBoundingClientRect() : $, z = v.scoutRect, M = z === void 0 ? (N = h == null ? void 0 : h.current) === null || N === void 0 ? void 0 : N.getBoundingClientRect() : z, A = v.popoverRect, y = A === void 0 ? u.current.getBoundingClientRect() : A, D = v.boundaryRect, n = D === void 0 ? I === w ? r : I.getBoundingClientRect() : D;
30
+ if (!(!s || !r || !B)) {
31
+ if (i && T === "absolute") {
32
+ var F = typeof i == "function" ? i({
33
+ childRect: s,
34
+ popoverRect: y,
35
+ parentRect: r,
36
+ boundaryRect: n,
37
+ padding: f,
38
+ align: g,
39
+ nudgedTop: 0,
40
+ nudgedLeft: 0,
41
+ boundaryInset: o,
42
+ violations: c.EMPTY_RECT,
43
+ hasViolations: !1
44
+ }) : i, G = F.top, H = F.left, J = Math.round(r.left + H - M.left), K = Math.round(r.top + G - M.top);
45
+ u.current.style.transform = "translate(".concat(J, "px, ").concat(K, "px)"), _({
46
+ childRect: s,
47
+ popoverRect: (0, c.createRect)({
48
+ left: J,
49
+ top: K,
50
+ width: y.width,
51
+ height: y.height
52
+ }),
53
+ parentRect: r,
54
+ boundaryRect: n,
55
+ padding: f,
56
+ align: g,
57
+ transform: { top: G, left: H },
58
+ nudgedTop: 0,
59
+ nudgedLeft: 0,
60
+ boundaryInset: o,
61
+ violations: c.EMPTY_RECT,
62
+ hasViolations: !1
63
+ });
64
+ return;
65
+ }
66
+ var O = V === P.length, L = O ? P[0] : P[V], Q = (0, c.getNewPopoverRect)({
67
+ childRect: s,
68
+ popoverRect: y,
69
+ boundaryRect: n,
70
+ position: L,
71
+ align: g,
72
+ padding: f,
73
+ reposition: C
74
+ }, o), b = Q.rect, ce = Q.boundaryViolation;
75
+ if (ce && C && !O) {
76
+ U({
77
+ positionIndex: V + 1,
78
+ childRect: s,
79
+ popoverRect: y,
80
+ parentRect: r,
81
+ boundaryRect: n
82
+ });
83
+ return;
84
+ }
85
+ var W = b.top, X = b.left, Z = b.width, ee = b.height, ue = C && !O, te = (0, c.getNudgedPopoverRect)(b, n, o), oe = te.left, ne = te.top, a = W, d = X;
86
+ ue && (a = ne, d = oe), a = Math.round(a - M.top), d = Math.round(d - M.left), u.current.style.transform = "translate(".concat(d, "px, ").concat(a, "px)");
87
+ var t = {
88
+ top: n.top + o - a,
89
+ left: n.left + o - d,
90
+ right: d + Z - n.right + o,
91
+ bottom: a + ee - n.bottom + o
92
+ }, R = {
93
+ childRect: s,
94
+ popoverRect: (0, c.createRect)({ left: d, top: a, width: Z, height: ee }),
95
+ parentRect: r,
96
+ boundaryRect: n,
97
+ position: L,
98
+ align: g,
99
+ padding: f,
100
+ nudgedTop: ne - W,
101
+ nudgedLeft: oe - X,
102
+ boundaryInset: o,
103
+ violations: {
104
+ top: t.top <= 0 ? 0 : t.top,
105
+ left: t.left <= 0 ? 0 : t.left,
106
+ right: t.right <= 0 ? 0 : t.right,
107
+ bottom: t.bottom <= 0 ? 0 : t.bottom
108
+ },
109
+ hasViolations: t.top > 0 || t.left > 0 || t.right > 0 || t.bottom > 0
110
+ };
111
+ if (i) {
112
+ _(R);
113
+ var ie = typeof i == "function" ? i(R) : i, p = ie.top, l = ie.left;
114
+ u.current.style.transform = "translate(".concat(Math.round(d + (l ?? 0)), "px, ").concat(Math.round(a + (p ?? 0)), "px)"), R.nudgedLeft += l ?? 0, R.nudgedTop += p ?? 0, R.transform = { top: p, left: l };
115
+ }
116
+ _(R);
117
+ }
118
+ }, [
119
+ w,
120
+ x,
121
+ h,
122
+ u,
123
+ I,
124
+ B,
125
+ i,
126
+ T,
127
+ P,
128
+ g,
129
+ f,
130
+ C,
131
+ o,
132
+ _
133
+ ]);
134
+ return { positionPopover: U, popoverRef: u, scoutRef: h };
135
+ };
136
+ return m.usePopover = le, m;
137
+ }
138
+ export {
139
+ be as __require
140
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../../../_virtual/util.cjs.js");var s;function N(){return s||(s=1,function(r){var g=h.__exports&&h.__exports.__assign||function(){return g=Object.assign||function(o){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}return o},g.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.getNudgedPopoverRect=r.getNewPopoverRect=r.popoverRectForPosition=r.createContainer=r.rectsAreEqual=r.createRect=r.EMPTY_RECT=void 0,r.EMPTY_RECT={top:0,left:0,right:0,bottom:0,width:0,height:0};var m=function(o){var t=o.top,i=o.left,n=o.width,e=o.height;return{top:t,left:i,width:n,height:e,right:i+n,bottom:t+e}};r.createRect=m;var w=function(o,t){return o===t||(o==null?void 0:o.bottom)===(t==null?void 0:t.bottom)&&(o==null?void 0:o.height)===(t==null?void 0:t.height)&&(o==null?void 0:o.left)===(t==null?void 0:t.left)&&(o==null?void 0:o.right)===(t==null?void 0:t.right)&&(o==null?void 0:o.top)===(t==null?void 0:t.top)&&(o==null?void 0:o.width)===(t==null?void 0:t.width)};r.rectsAreEqual=w;var b=function(o){var t=o.containerStyle,i=o.containerClassName,n=window.document.createElement("div");return i&&(n.className=i),Object.assign(n.style,t),n};r.createContainer=b;var p=function(o,t,i,n,e){var d=t.left+t.width/2,f=t.top+t.height/2,v=i.width,l=i.height,a,u;switch(o){case"left":a=f-l/2,u=t.left-n-v,e==="start"&&(a=t.top),e==="end"&&(a=t.bottom-l);break;case"bottom":a=t.bottom+n,u=d-v/2,e==="start"&&(u=t.left),e==="end"&&(u=t.right-v);break;case"right":a=f-l/2,u=t.right+n,e==="start"&&(a=t.top),e==="end"&&(a=t.bottom-l);break;default:a=t.top-l-n,u=d-v/2,e==="start"&&(u=t.left),e==="end"&&(u=t.right-v);break}return(0,r.createRect)({left:u,top:a,width:v,height:l})};r.popoverRectForPosition=p;var P=function(o,t){var i=o.position,n=o.align,e=o.childRect,d=o.popoverRect,f=o.boundaryRect,v=o.padding,l=o.reposition,a=(0,r.popoverRectForPosition)(i,e,d,v,n),u=l&&(i==="top"&&a.top<f.top+t||i==="left"&&a.left<f.left+t||i==="right"&&a.right>f.right-t||i==="bottom"&&a.bottom>f.bottom-t);return{rect:a,boundaryViolation:u}};r.getNewPopoverRect=P;var _=function(o,t,i){var n=t.top+i,e=t.left+i,d=t.right-i,f=t.bottom-i,v=o.top<n?n:o.top;v=v+o.height>f?f-o.height:v;var l=o.left<e?e:o.left;return l=l+o.width>d?d-o.width:l,(0,r.createRect)(g(g({},o),{top:v,left:l}))};r.getNudgedPopoverRect=_}(h.__exports)),h.__exports}exports.__require=N;
@@ -0,0 +1,81 @@
1
+ import { __exports as d } from "../../../_virtual/util.es.js";
2
+ var m;
3
+ function C() {
4
+ return m ? d : (m = 1, function(n) {
5
+ var g = d && d.__assign || function() {
6
+ return g = Object.assign || function(o) {
7
+ for (var t, i = 1, r = arguments.length; i < r; i++) {
8
+ t = arguments[i];
9
+ for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && (o[e] = t[e]);
10
+ }
11
+ return o;
12
+ }, g.apply(this, arguments);
13
+ };
14
+ Object.defineProperty(n, "__esModule", { value: !0 }), n.getNudgedPopoverRect = n.getNewPopoverRect = n.popoverRectForPosition = n.createContainer = n.rectsAreEqual = n.createRect = n.EMPTY_RECT = void 0, n.EMPTY_RECT = {
15
+ top: 0,
16
+ left: 0,
17
+ right: 0,
18
+ bottom: 0,
19
+ width: 0,
20
+ height: 0
21
+ };
22
+ var w = function(o) {
23
+ var t = o.top, i = o.left, r = o.width, e = o.height;
24
+ return {
25
+ top: t,
26
+ left: i,
27
+ width: r,
28
+ height: e,
29
+ right: i + r,
30
+ bottom: t + e
31
+ };
32
+ };
33
+ n.createRect = w;
34
+ var s = function(o, t) {
35
+ return o === t || (o == null ? void 0 : o.bottom) === (t == null ? void 0 : t.bottom) && (o == null ? void 0 : o.height) === (t == null ? void 0 : t.height) && (o == null ? void 0 : o.left) === (t == null ? void 0 : t.left) && (o == null ? void 0 : o.right) === (t == null ? void 0 : t.right) && (o == null ? void 0 : o.top) === (t == null ? void 0 : t.top) && (o == null ? void 0 : o.width) === (t == null ? void 0 : t.width);
36
+ };
37
+ n.rectsAreEqual = s;
38
+ var b = function(o) {
39
+ var t = o.containerStyle, i = o.containerClassName, r = window.document.createElement("div");
40
+ return i && (r.className = i), Object.assign(r.style, t), r;
41
+ };
42
+ n.createContainer = b;
43
+ var p = function(o, t, i, r, e) {
44
+ var h = t.left + t.width / 2, f = t.top + t.height / 2, v = i.width, l = i.height, a, u;
45
+ switch (o) {
46
+ case "left":
47
+ a = f - l / 2, u = t.left - r - v, e === "start" && (a = t.top), e === "end" && (a = t.bottom - l);
48
+ break;
49
+ case "bottom":
50
+ a = t.bottom + r, u = h - v / 2, e === "start" && (u = t.left), e === "end" && (u = t.right - v);
51
+ break;
52
+ case "right":
53
+ a = f - l / 2, u = t.right + r, e === "start" && (a = t.top), e === "end" && (a = t.bottom - l);
54
+ break;
55
+ default:
56
+ a = t.top - l - r, u = h - v / 2, e === "start" && (u = t.left), e === "end" && (u = t.right - v);
57
+ break;
58
+ }
59
+ return (0, n.createRect)({ left: u, top: a, width: v, height: l });
60
+ };
61
+ n.popoverRectForPosition = p;
62
+ var P = function(o, t) {
63
+ var i = o.position, r = o.align, e = o.childRect, h = o.popoverRect, f = o.boundaryRect, v = o.padding, l = o.reposition, a = (0, n.popoverRectForPosition)(i, e, h, v, r), u = l && (i === "top" && a.top < f.top + t || i === "left" && a.left < f.left + t || i === "right" && a.right > f.right - t || i === "bottom" && a.bottom > f.bottom - t);
64
+ return {
65
+ rect: a,
66
+ boundaryViolation: u
67
+ };
68
+ };
69
+ n.getNewPopoverRect = P;
70
+ var N = function(o, t, i) {
71
+ var r = t.top + i, e = t.left + i, h = t.right - i, f = t.bottom - i, v = o.top < r ? r : o.top;
72
+ v = v + o.height > f ? f - o.height : v;
73
+ var l = o.left < e ? e : o.left;
74
+ return l = l + o.width > h ? h - o.width : l, (0, n.createRect)(g(g({}, o), { top: v, left: l }));
75
+ };
76
+ n.getNudgedPopoverRect = N;
77
+ }(d), d);
78
+ }
79
+ export {
80
+ C as __require
81
+ };
@@ -1,4 +0,0 @@
1
- export { cn } from './cn';
2
- export { isHsIcon } from './isHsIcon';
3
- export { formatUnits } from './formatUnits';
4
- export { useSwiper } from './useSwiper';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../components/Icon/constants.cjs.js");function t(e){return e?Object.values(n.EIconName).includes(e):!1}exports.isHsIcon=t;
@@ -1,4 +1,4 @@
1
- import { EIconName as n } from "../components/Icon/constants.es.js";
1
+ import { EIconName as n } from "../../components/Icon/constants.es.js";
2
2
  function o(e) {
3
3
  return e ? Object.values(n).includes(e) : !1;
4
4
  }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),o=(t=768)=>{const[n,s]=i.useState(!1);return i.useEffect(()=>{if(typeof window>"u")return;const e=()=>s(window.innerWidth<=t&&window.matchMedia("(pointer: coarse)").matches);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),n};exports.useIsMobile=o;
@@ -0,0 +1 @@
1
+ export declare const useIsMobile: (breakpoint?: number) => boolean;
@@ -0,0 +1,12 @@
1
+ import { useState as o, useEffect as s } from "react";
2
+ const d = (i = 768) => {
3
+ const [t, n] = o(!1);
4
+ return s(() => {
5
+ if (typeof window > "u") return;
6
+ const e = () => n(window.innerWidth <= i && window.matchMedia("(pointer: coarse)").matches);
7
+ return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
8
+ }, [i]), t;
9
+ };
10
+ export {
11
+ d as useIsMobile
12
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenpatient-org/healthspan-marketing-ui",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "Design system",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "license": "MIT",
21
21
  "peerDependencies": {
22
- "react": "^18.0.0",
23
- "react-dom": "^18.0.0"
22
+ "react": "^18.3.1",
23
+ "react-dom": "^18.3.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@eslint/js": "^9.28.0",
@@ -38,6 +38,7 @@
38
38
  "eslint-plugin-react": "^7.37.5",
39
39
  "globals": "^16.2.0",
40
40
  "postcss": "^8.5.3",
41
+ "rollup-preserve-directives": "^1.1.3",
41
42
  "storybook": "^8.6.12",
42
43
  "typescript": "^5.8.3",
43
44
  "typescript-eslint": "^8.34.0",
@@ -57,10 +58,215 @@
57
58
  "require": "./dist/index.cjs.js"
58
59
  },
59
60
  "./utils": {
60
- "types": "./dist/utils/index.d.ts",
61
+ "types": "./dist/utils.d.ts",
61
62
  "import": "./dist/utils.es.js",
62
63
  "require": "./dist/utils.cjs.js"
63
64
  },
65
+ "./cn": {
66
+ "types": "./dist/utils/cn/cn.d.ts",
67
+ "import": "./dist/utils/cn/cn.es.js",
68
+ "require": "./dist/utils/cn/cn.cjs.js"
69
+ },
70
+ "./formatUnits": {
71
+ "types": "./dist/utils/formatUnits/formatUnits.d.ts",
72
+ "import": "./dist/utils/formatUnits/formatUnits.es.js",
73
+ "require": "./dist/utils/formatUnits/formatUnits.cjs.js"
74
+ },
75
+ "./isHsIcon": {
76
+ "types": "./dist/utils/isHsIcon/isHsIcon.d.ts",
77
+ "import": "./dist/utils/isHsIcon/isHsIcon.es.js",
78
+ "require": "./dist/utils/isHsIcon/isHsIcon.cjs.js"
79
+ },
80
+ "./useSwiper": {
81
+ "types": "./dist/lib/useSwiper/useSwiper.d.ts",
82
+ "import": "./dist/lib/useSwiper/useSwiper.es.js",
83
+ "require": "./dist/lib/useSwiper/useSwiper.cjs.js"
84
+ },
85
+ "./TextButton": {
86
+ "types": "./dist/components/TextButton/TextButton.d.ts",
87
+ "import": "./dist/components/TextButton/TextButton.es.js",
88
+ "require": "./dist/components/TextButton/TextButton.cjs.js"
89
+ },
90
+ "./Icon": {
91
+ "types": "./dist/components/Icon/constants.d.ts",
92
+ "import": "./dist/components/Icon/constants.es.js",
93
+ "require": "./dist/components/Icon/constants.cjs.js"
94
+ },
95
+ "./Button": {
96
+ "types": "./dist/components/Button/Button.d.ts",
97
+ "import": "./dist/components/Button/Button.es.js",
98
+ "require": "./dist/components/Button/Button.cjs.js"
99
+ },
100
+ "./IconButton": {
101
+ "types": "./dist/components/IconButton/IconButton.d.ts",
102
+ "import": "./dist/components/IconButton/IconButton.es.js",
103
+ "require": "./dist/components/IconButton/IconButton.cjs.js"
104
+ },
105
+ "./ProgressButton": {
106
+ "types": "./dist/components/ProgressButton/ProgressButton.d.ts",
107
+ "import": "./dist/components/ProgressButton/ProgressButton.es.js",
108
+ "require": "./dist/components/ProgressButton/ProgressButton.cjs.js"
109
+ },
110
+ "./Typography": {
111
+ "types": "./dist/components/Typography/Typography.d.ts",
112
+ "import": "./dist/components/Typography/Typography.es.js",
113
+ "require": "./dist/components/Typography/Typography.cjs.js"
114
+ },
115
+ "./TypeBadge": {
116
+ "types": "./dist/components/TypeBadge/TypeBadge.d.ts",
117
+ "import": "./dist/components/TypeBadge/TypeBadge.es.js",
118
+ "require": "./dist/components/TypeBadge/TypeBadge.cjs.js"
119
+ },
120
+ "./Tag": {
121
+ "types": "./dist/components/Tag/Tag.d.ts",
122
+ "import": "./dist/components/Tag/Tag.es.js",
123
+ "require": "./dist/components/Tag/Tag.cjs.js"
124
+ },
125
+ "./Tabs": {
126
+ "types": "./dist/components/Tabs/Tabs.d.ts",
127
+ "import": "./dist/components/Tabs/Tabs.es.js",
128
+ "require": "./dist/components/Tabs/Tabs.cjs.js"
129
+ },
130
+ "./StudyGridCard": {
131
+ "types": "./dist/components/StudyGridCard/StudyGridCard.d.ts",
132
+ "import": "./dist/components/StudyGridCard/StudyGridCard.es.js",
133
+ "require": "./dist/components/StudyGridCard/StudyGridCard.cjs.js"
134
+ },
135
+ "./ProgramCard": {
136
+ "types": "./dist/components/ProgramCard/ProgramCard.d.ts",
137
+ "import": "./dist/components/ProgramCard/ProgramCard.es.js",
138
+ "require": "./dist/components/ProgramCard/ProgramCard.cjs.js"
139
+ },
140
+ "./ProductGalleryCard": {
141
+ "types": "./dist/components/ProductGalleryCard/ProductGalleryCard.d.ts",
142
+ "import": "./dist/components/ProductGalleryCard/ProductGalleryCard.es.js",
143
+ "require": "./dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js"
144
+ },
145
+ "./ProductListing": {
146
+ "types": "./dist/components/ProductListing/ProductListing.d.ts",
147
+ "import": "./dist/components/ProductListing/ProductListing.es.js",
148
+ "require": "./dist/components/ProductListing/ProductListing.cjs.js"
149
+ },
150
+ "./ProductGallery": {
151
+ "types": "./dist/components/ProductGallery/ProductGallery.d.ts",
152
+ "import": "./dist/components/ProductGallery/ProductGallery.es.js",
153
+ "require": "./dist/components/ProductGallery/ProductGallery.cjs.js"
154
+ },
155
+ "./Label": {
156
+ "types": "./dist/components/Label/Label.d.ts",
157
+ "import": "./dist/components/Label/Label.es.js",
158
+ "require": "./dist/components/Label/Label.cjs.js"
159
+ },
160
+ "./InfiniteScroll": {
161
+ "types": "./dist/components/InfiniteScroll/InfiniteScroll.d.ts",
162
+ "import": "./dist/components/InfiniteScroll/InfiniteScroll.es.js",
163
+ "require": "./dist/components/InfiniteScroll/InfiniteScroll.cjs.js"
164
+ },
165
+ "./HighlightedTitle": {
166
+ "types": "./dist/components/HighlightedTitle/HighlightedTitle.d.ts",
167
+ "import": "./dist/components/HighlightedTitle/HighlightedTitle.es.js",
168
+ "require": "./dist/components/HighlightedTitle/HighlightedTitle.cjs.js"
169
+ },
170
+ "./FilterMenu": {
171
+ "types": "./dist/components/FilterMenu/FilterMenu.d.ts",
172
+ "import": "./dist/components/FilterMenu/FilterMenu.es.js",
173
+ "require": "./dist/components/FilterMenu/FilterMenu.cjs.js"
174
+ },
175
+ "./ContentTabs": {
176
+ "types": "./dist/components/ContentTabs/ContentTabs.d.ts",
177
+ "import": "./dist/components/ContentTabs/ContentTabs.es.js",
178
+ "require": "./dist/components/ContentTabs/ContentTabs.cjs.js"
179
+ },
180
+ "./Cursor": {
181
+ "types": "./dist/components/Cursor/Cursor.d.ts",
182
+ "import": "./dist/components/Cursor/Cursor.es.js",
183
+ "require": "./dist/components/Cursor/Cursor.cjs.js"
184
+ },
185
+ "./ComplexTooltip": {
186
+ "types": "./dist/components/ComplexTooltip/ComplexTooltip.d.ts",
187
+ "import": "./dist/components/ComplexTooltip/ComplexTooltip.es.js",
188
+ "require": "./dist/components/ComplexTooltip/ComplexTooltip.cjs.js"
189
+ },
190
+ "./Callback": {
191
+ "types": "./dist/components/Callback/Callback.d.ts",
192
+ "import": "./dist/components/Callback/Callback.es.js",
193
+ "require": "./dist/components/Callback/Callback.cjs.js"
194
+ },
195
+ "./Benefit": {
196
+ "types": "./dist/components/Benefit/Benefit.d.ts",
197
+ "import": "./dist/components/Benefit/Benefit.es.js",
198
+ "require": "./dist/components/Benefit/Benefit.cjs.js"
199
+ },
200
+ "./CallbackModule": {
201
+ "types": "./dist/modules/Callback/Callback.d.ts",
202
+ "import": "./dist/modules/Callback/Callback.es.js",
203
+ "require": "./dist/modules/Callback/Callback.cjs.js"
204
+ },
205
+ "./Comparison": {
206
+ "types": "./dist/modules/Comparison/Comparison.d.ts",
207
+ "import": "./dist/modules/Comparison/Comparison.es.js",
208
+ "require": "./dist/modules/Comparison/Comparison.cjs.js"
209
+ },
210
+ "./FeaturedIn": {
211
+ "types": "./dist/modules/FeaturedIn/FeaturedIn.d.ts",
212
+ "import": "./dist/modules/FeaturedIn/FeaturedIn.es.js",
213
+ "require": "./dist/modules/FeaturedIn/FeaturedIn.cjs.js"
214
+ },
215
+ "./FeaturesGallery": {
216
+ "types": "./dist/modules/FeaturesGallery/FeaturesGallery.d.ts",
217
+ "import": "./dist/modules/FeaturesGallery/FeaturesGallery.es.js",
218
+ "require": "./dist/modules/FeaturesGallery/FeaturesGallery.cjs.js"
219
+ },
220
+ "./FollowTheScience": {
221
+ "types": "./dist/modules/FollowTheScience/FollowTheScience.d.ts",
222
+ "import": "./dist/modules/FollowTheScience/FollowTheScience.es.js",
223
+ "require": "./dist/modules/FollowTheScience/FollowTheScience.cjs.js"
224
+ },
225
+ "./HowItWorks": {
226
+ "types": "./dist/modules/HowItWorks/HowItWorks.d.ts",
227
+ "import": "./dist/modules/HowItWorks/HowItWorks.es.js",
228
+ "require": "./dist/modules/HowItWorks/HowItWorks.cjs.js"
229
+ },
230
+ "./OptimalHealth": {
231
+ "types": "./dist/modules/OptimalHealth/OptimalHealth.d.ts",
232
+ "import": "./dist/modules/OptimalHealth/OptimalHealth.es.js",
233
+ "require": "./dist/modules/OptimalHealth/OptimalHealth.cjs.js"
234
+ },
235
+ "./OurProcess": {
236
+ "types": "./dist/modules/OurProcess/OurProcess.d.ts",
237
+ "import": "./dist/modules/OurProcess/OurProcess.es.js",
238
+ "require": "./dist/modules/OurProcess/OurProcess.cjs.js"
239
+ },
240
+ "./ProductsDisplay": {
241
+ "types": "./dist/modules/ProductsDisplay/ProductsDisplay.d.ts",
242
+ "import": "./dist/modules/ProductsDisplay/ProductsDisplay.es.js",
243
+ "require": "./dist/modules/ProductsDisplay/ProductsDisplay.cjs.js"
244
+ },
245
+ "./Studies": {
246
+ "types": "./dist/modules/Studies/Studies.d.ts",
247
+ "import": "./dist/modules/Studies/Studies.es.js",
248
+ "require": "./dist/modules/Studies/Studies.cjs.js"
249
+ },
250
+ "./TargetedPrograms": {
251
+ "types": "./dist/modules/TargetedPrograms/TargetedPrograms.d.ts",
252
+ "import": "./dist/modules/TargetedPrograms/TargetedPrograms.es.js",
253
+ "require": "./dist/modules/TargetedPrograms/TargetedPrograms.cjs.js"
254
+ },
255
+ "./TotalCare": {
256
+ "types": "./dist/modules/TotalCare/TotalCare.d.ts",
257
+ "import": "./dist/modules/TotalCare/TotalCare.es.js",
258
+ "require": "./dist/modules/TotalCare/TotalCare.cjs.js"
259
+ },
260
+ "./YourProtocol": {
261
+ "types": "./dist/modules/YourProtocol/YourProtocol.d.ts",
262
+ "import": "./dist/modules/YourProtocol/YourProtocol.es.js",
263
+ "require": "./dist/modules/YourProtocol/YourProtocol.cjs.js"
264
+ },
265
+ "./Benefits": {
266
+ "types": "./dist/modules/Benefits/Benefits.d.ts",
267
+ "import": "./dist/modules/Benefits/Benefits.es.js",
268
+ "require": "./dist/modules/Benefits/Benefits.cjs.js"
269
+ },
64
270
  "./dist/*.css": "./dist/*.css"
65
271
  }
66
272
  }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=(n,t,r)=>{const e=n[t];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((l,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})};exports.default=i;
@@ -1,16 +0,0 @@
1
- const l = (r, n, t) => {
2
- const e = r[n];
3
- return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((i, o) => {
4
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5
- o.bind(
6
- null,
7
- new Error(
8
- "Unknown variable dynamic import: " + n + (n.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
9
- )
10
- )
11
- );
12
- });
13
- };
14
- export {
15
- l as default
16
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../node_modules/react/jsx-runtime.cjs.js");var t=e.__require();exports.jsxRuntimeExports=t;
@@ -1,5 +0,0 @@
1
- import { __require as r } from "../node_modules/react/jsx-runtime.es.js";
2
- var i = r();
3
- export {
4
- i as j
5
- };
@@ -1,4 +0,0 @@
1
- var e = { exports: {} };
2
- export {
3
- e as __module
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const C=require("react");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=c(C),l=e=>n.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("g",{id:"Icon/map/pin_drop"},n.createElement("path",{id:"pin_drop",d:"M11.9323 16.2864C13.5759 14.9017 14.8202 13.5639 15.665 12.2729C16.5098 10.9819 16.9323 9.77232 16.9323 8.64415C16.9323 7.15698 16.4656 5.93807 15.5323 4.9874C14.5989 4.03673 13.3989 3.5614 11.9323 3.5614C10.4656 3.5614 9.2656 4.03673 8.33227 4.9874C7.39893 5.93807 6.93227 7.15698 6.93227 8.64415C6.93227 9.77232 7.35468 10.9819 8.19952 12.2729C9.04435 13.5639 10.2886 14.9017 11.9323 16.2864ZM11.9323 18.1864C9.7681 16.5107 8.14377 14.8739 7.05927 13.2759C5.9746 11.6777 5.43227 10.1338 5.43227 8.64415C5.43227 6.72098 6.03743 5.14307 7.24777 3.9104C8.45793 2.67774 10.0194 2.0614 11.9323 2.0614C13.8451 2.0614 15.4066 2.67774 16.6168 3.9104C17.8271 5.14307 18.4323 6.72098 18.4323 8.64415C18.4323 10.1338 17.8899 11.6761 16.8053 13.2709C15.7208 14.8659 14.0964 16.5044 11.9323 18.1864ZM11.9323 10.3692C12.4309 10.3692 12.8568 10.1925 13.21 9.83915C13.5633 9.48598 13.74 9.06007 13.74 8.5614C13.74 8.06273 13.5633 7.63682 13.21 7.28365C12.8568 6.93032 12.4309 6.75365 11.9323 6.75365C11.4336 6.75365 11.0077 6.93032 10.6545 7.28365C10.3012 7.63682 10.1245 8.06273 10.1245 8.5614C10.1245 9.06007 10.3012 9.48598 10.6545 9.83915C11.0077 10.1925 11.4336 10.3692 11.9323 10.3692ZM5.43227 21.0614V19.5614H18.4323V21.0614H5.43227Z",fill:"currentColor"})));exports.default=l;
@@ -1,5 +0,0 @@
1
- import * as C from "react";
2
- const t = (e) => /* @__PURE__ */ C.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ C.createElement("g", { id: "Icon/map/pin_drop" }, /* @__PURE__ */ C.createElement("path", { id: "pin_drop", d: "M11.9323 16.2864C13.5759 14.9017 14.8202 13.5639 15.665 12.2729C16.5098 10.9819 16.9323 9.77232 16.9323 8.64415C16.9323 7.15698 16.4656 5.93807 15.5323 4.9874C14.5989 4.03673 13.3989 3.5614 11.9323 3.5614C10.4656 3.5614 9.2656 4.03673 8.33227 4.9874C7.39893 5.93807 6.93227 7.15698 6.93227 8.64415C6.93227 9.77232 7.35468 10.9819 8.19952 12.2729C9.04435 13.5639 10.2886 14.9017 11.9323 16.2864ZM11.9323 18.1864C9.7681 16.5107 8.14377 14.8739 7.05927 13.2759C5.9746 11.6777 5.43227 10.1338 5.43227 8.64415C5.43227 6.72098 6.03743 5.14307 7.24777 3.9104C8.45793 2.67774 10.0194 2.0614 11.9323 2.0614C13.8451 2.0614 15.4066 2.67774 16.6168 3.9104C17.8271 5.14307 18.4323 6.72098 18.4323 8.64415C18.4323 10.1338 17.8899 11.6761 16.8053 13.2709C15.7208 14.8659 14.0964 16.5044 11.9323 18.1864ZM11.9323 10.3692C12.4309 10.3692 12.8568 10.1925 13.21 9.83915C13.5633 9.48598 13.74 9.06007 13.74 8.5614C13.74 8.06273 13.5633 7.63682 13.21 7.28365C12.8568 6.93032 12.4309 6.75365 11.9323 6.75365C11.4336 6.75365 11.0077 6.93032 10.6545 7.28365C10.3012 7.63682 10.1245 8.06273 10.1245 8.5614C10.1245 9.06007 10.3012 9.48598 10.6545 9.83915C11.0077 10.1925 11.4336 10.3692 11.9323 10.3692ZM5.43227 21.0614V19.5614H18.4323V21.0614H5.43227Z", fill: "currentColor" })));
3
- export {
4
- t as default
5
- };