@zenpatient-org/healthspan-marketing-ui 0.1.19 → 0.1.21

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 (224) 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.es.js +70 -0
  28. package/dist/components/ComplexTooltip/complexTooltip.module.css.cjs.js +1 -0
  29. package/dist/components/ComplexTooltip/complexTooltip.module.css.es.js +17 -0
  30. package/dist/components/ContentTabs/ContentTabs.cjs.js +1 -1
  31. package/dist/components/ContentTabs/ContentTabs.es.js +19 -19
  32. package/dist/components/Cursor/Cursor.cjs.js +1 -0
  33. package/dist/components/Cursor/Cursor.es.js +9 -0
  34. package/dist/components/Cursor/components/ClientCursor.cjs.js +1 -0
  35. package/dist/components/Cursor/components/ClientCursor.es.js +42 -0
  36. package/dist/components/Cursor/components/ServerCursor.cjs.js +1 -0
  37. package/dist/components/Cursor/components/ServerCursor.es.js +4 -0
  38. package/dist/components/Cursor/cursor.module.css.cjs.js +1 -0
  39. package/dist/components/Cursor/cursor.module.css.es.js +11 -0
  40. package/dist/components/FilterMenu/FilterMenu.cjs.js +1 -1
  41. package/dist/components/FilterMenu/FilterMenu.es.js +18 -17
  42. package/dist/components/HighlightedTitle/HighlightedTitle.cjs.js +1 -1
  43. package/dist/components/HighlightedTitle/HighlightedTitle.d.ts +1 -1
  44. package/dist/components/HighlightedTitle/HighlightedTitle.es.js +22 -33
  45. package/dist/components/Icon/Icon.cjs.js +1 -1
  46. package/dist/components/Icon/Icon.es.js +7 -16
  47. package/dist/components/Icon/iconsMap.cjs.js +1 -0
  48. package/dist/components/Icon/iconsMap.d.ts +4 -0
  49. package/dist/components/Icon/iconsMap.es.js +110 -0
  50. package/dist/components/IconButton/IconButton.cjs.js +1 -1
  51. package/dist/components/IconButton/IconButton.es.js +12 -13
  52. package/dist/components/InfiniteScroll/InfiniteScroll.cjs.js +1 -1
  53. package/dist/components/InfiniteScroll/InfiniteScroll.es.js +34 -33
  54. package/dist/components/Label/Label.cjs.js +1 -1
  55. package/dist/components/Label/Label.es.js +8 -8
  56. package/dist/components/ProductGallery/ProductGallery.cjs.js +1 -1
  57. package/dist/components/ProductGallery/ProductGallery.es.js +46 -45
  58. package/dist/components/ProductGalleryCard/ProductGalleryCard.cjs.js +1 -1
  59. package/dist/components/ProductGalleryCard/ProductGalleryCard.es.js +15 -15
  60. package/dist/components/ProductListing/ProductListing.cjs.js +1 -0
  61. package/dist/components/ProductListing/ProductListing.es.js +30 -0
  62. package/dist/components/ProductListing/productListing.module.css.cjs.js +1 -0
  63. package/dist/components/ProductListing/productListing.module.css.es.js +29 -0
  64. package/dist/components/ProgramCard/ProgramCard.cjs.js +1 -0
  65. package/dist/components/ProgramCard/ProgramCard.es.js +48 -0
  66. package/dist/components/ProgramCard/assets/program_card_bg.png.cjs.js +1 -0
  67. package/dist/components/ProgramCard/assets/program_card_bg.png.es.js +4 -0
  68. package/dist/components/ProgramCard/programCard.module.css.cjs.js +1 -0
  69. package/dist/components/ProgramCard/programCard.module.css.es.js +7 -0
  70. package/dist/components/ProgressButton/ProgressButton.cjs.js +1 -1
  71. package/dist/components/ProgressButton/ProgressButton.es.js +18 -19
  72. package/dist/components/StepsCarousel/StepsCarousel.cjs.js +1 -1
  73. package/dist/components/StepsCarousel/StepsCarousel.es.js +40 -39
  74. package/dist/components/StudyGridCard/StudyGridCard.cjs.js +1 -0
  75. package/dist/components/StudyGridCard/StudyGridCard.es.js +61 -0
  76. package/dist/components/StudyGridCard/studyGridCard.module.css.cjs.js +1 -0
  77. package/dist/components/StudyGridCard/studyGridCard.module.css.es.js +19 -0
  78. package/dist/components/Tabs/Tabs.cjs.js +1 -1
  79. package/dist/components/Tabs/Tabs.es.js +20 -20
  80. package/dist/components/Tabs/TabsWithFade.cjs.js +1 -1
  81. package/dist/components/Tabs/TabsWithFade.es.js +16 -15
  82. package/dist/components/Tag/Tag.cjs.js +1 -1
  83. package/dist/components/Tag/Tag.es.js +15 -15
  84. package/dist/components/TextButton/TextButton.cjs.js +1 -1
  85. package/dist/components/TextButton/TextButton.es.js +18 -18
  86. package/dist/components/TypeBadge/TypeBadge.cjs.js +1 -1
  87. package/dist/components/TypeBadge/TypeBadge.es.js +4 -4
  88. package/dist/components/Typography/Typography.cjs.js +1 -1
  89. package/dist/components/Typography/Typography.es.js +9 -9
  90. package/dist/components/index.d.ts +0 -27
  91. package/dist/healthspan-marketing-ui.css +1 -1
  92. package/dist/index.cjs.js +1 -1
  93. package/dist/index.d.ts +0 -3
  94. package/dist/index.es.js +2 -57
  95. package/dist/modules/Callback/Callback.cjs.js +1 -0
  96. package/dist/modules/Callback/Callback.d.ts +1 -1
  97. package/dist/modules/Callback/Callback.es.js +36 -0
  98. package/dist/modules/Callback/callback.module.css.cjs.js +1 -0
  99. package/dist/modules/Callback/callback.module.css.es.js +13 -0
  100. package/dist/modules/Comparison/Comparison.cjs.js +1 -0
  101. package/dist/modules/Comparison/Comparison.es.js +86 -0
  102. package/dist/modules/Comparison/assets/company-logo.svg.cjs.js +1 -0
  103. package/dist/modules/Comparison/assets/company-logo.svg.es.js +5 -0
  104. package/dist/modules/Comparison/comparison.module.css.cjs.js +1 -0
  105. package/dist/modules/Comparison/comparison.module.css.es.js +39 -0
  106. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.cjs.js +1 -0
  107. package/dist/modules/Comparison/components/ComparisonMobileView/ComparisonMobileView.es.js +42 -0
  108. package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.cjs.js +1 -0
  109. package/dist/modules/Comparison/components/ComparisonMobileView/comparisonMobileView.module.css.es.js +27 -0
  110. package/dist/modules/Comparison/utils.cjs.js +1 -0
  111. package/dist/modules/Comparison/utils.es.js +4 -0
  112. package/dist/modules/FeaturedIn/FeaturedIn.cjs.js +1 -0
  113. package/dist/modules/FeaturedIn/FeaturedIn.es.js +54 -0
  114. package/dist/modules/FeaturedIn/featuredIn.module.css.cjs.js +1 -0
  115. package/dist/modules/FeaturedIn/featuredIn.module.css.es.js +37 -0
  116. package/dist/modules/FeaturesGallery/FeaturesGallery.cjs.js +1 -0
  117. package/dist/modules/FeaturesGallery/FeaturesGallery.es.js +22 -0
  118. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.cjs.js +1 -0
  119. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.es.js +29 -0
  120. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.cjs.js +1 -0
  121. package/dist/modules/FeaturesGallery/components/FeatureGrid/FeatureGrid.module.css.es.js +21 -0
  122. package/dist/modules/FeaturesGallery/featuresGallery.module.css.cjs.js +1 -0
  123. package/dist/modules/FeaturesGallery/featuresGallery.module.css.es.js +21 -0
  124. package/dist/modules/FollowTheScience/FollowTheScience.cjs.js +1 -0
  125. package/dist/modules/FollowTheScience/FollowTheScience.es.js +73 -0
  126. package/dist/modules/FollowTheScience/followTheScience.module.css.cjs.js +1 -0
  127. package/dist/modules/FollowTheScience/followTheScience.module.css.es.js +15 -0
  128. package/dist/modules/HowItWorks/HowItWorks.cjs.js +1 -0
  129. package/dist/modules/HowItWorks/HowItWorks.es.js +16 -0
  130. package/dist/modules/HowItWorks/components/Content/Content.cjs.js +1 -0
  131. package/dist/modules/HowItWorks/components/Content/Content.es.js +65 -0
  132. package/dist/modules/HowItWorks/components/Content/content.module.css.cjs.js +1 -0
  133. package/dist/modules/HowItWorks/components/Content/content.module.css.es.js +21 -0
  134. package/dist/modules/HowItWorks/howItWorks.module.css.cjs.js +1 -0
  135. package/dist/modules/HowItWorks/howItWorks.module.css.es.js +13 -0
  136. package/dist/modules/OptimalHealth/OptimalHealth.cjs.js +1 -0
  137. package/dist/modules/OptimalHealth/OptimalHealth.es.js +19 -0
  138. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.cjs.js +1 -0
  139. package/dist/modules/OptimalHealth/components/ClockImages/ClockImages.es.js +37 -0
  140. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.cjs.js +1 -0
  141. package/dist/modules/OptimalHealth/components/ClockImages/clockImages.module.css.es.js +15 -0
  142. package/dist/modules/OptimalHealth/components/ClockImages/hooks.cjs.js +1 -0
  143. package/dist/modules/OptimalHealth/components/ClockImages/hooks.es.js +13 -0
  144. package/dist/modules/OptimalHealth/optimalHealth.module.css.cjs.js +1 -0
  145. package/dist/modules/OptimalHealth/optimalHealth.module.css.es.js +19 -0
  146. package/dist/modules/OurProcess/OurProcess.cjs.js +1 -0
  147. package/dist/modules/OurProcess/OurProcess.d.ts +1 -1
  148. package/dist/modules/OurProcess/OurProcess.es.js +15 -0
  149. package/dist/modules/OurProcess/ourProcess.module.css.cjs.js +1 -0
  150. package/dist/modules/OurProcess/ourProcess.module.css.es.js +11 -0
  151. package/dist/modules/ProductsDisplay/ProductsDisplay.cjs.js +1 -1
  152. package/dist/modules/ProductsDisplay/ProductsDisplay.es.js +17 -22
  153. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.cjs.js +1 -1
  154. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.d.ts +1 -1
  155. package/dist/modules/ProductsDisplay/components/ProductsDisplayTabs/ProductsDisplayTabs.es.js +9 -19
  156. package/dist/modules/ProductsDisplay/types.d.ts +1 -1
  157. package/dist/modules/ProductsDisplay/useProductsData.cjs.js +1 -1
  158. package/dist/modules/ProductsDisplay/useProductsData.d.ts +2 -1
  159. package/dist/modules/ProductsDisplay/useProductsData.es.js +8 -7
  160. package/dist/modules/Studies/Studies.cjs.js +1 -0
  161. package/dist/modules/Studies/Studies.es.js +26 -0
  162. package/dist/modules/Studies/studies.module.css.cjs.js +1 -0
  163. package/dist/modules/Studies/studies.module.css.es.js +15 -0
  164. package/dist/modules/TargetedPrograms/TargetedPrograms.cjs.js +1 -0
  165. package/dist/modules/TargetedPrograms/TargetedPrograms.es.js +67 -0
  166. package/dist/modules/TargetedPrograms/targetedPrograms.module.css.cjs.js +1 -0
  167. package/dist/modules/TargetedPrograms/targetedPrograms.module.css.es.js +15 -0
  168. package/dist/modules/TotalCare/TotalCare.cjs.js +1 -1
  169. package/dist/modules/TotalCare/TotalCare.d.ts +1 -1
  170. package/dist/modules/TotalCare/TotalCare.es.js +18 -27
  171. package/dist/modules/YourProtocol/YourProtocol.cjs.js +1 -1
  172. package/dist/modules/YourProtocol/YourProtocol.es.js +19 -30
  173. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.cjs.js +1 -1
  174. package/dist/modules/YourProtocol/components/ProtocolTags/ProtocolTags.es.js +19 -27
  175. package/dist/modules/index.d.ts +0 -3
  176. package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.cjs.js +1 -0
  177. package/dist/node_modules/react-tiny-popover/dist/ArrowContainer.es.js +37 -0
  178. package/dist/node_modules/react-tiny-popover/dist/Popover.cjs.js +1 -0
  179. package/dist/node_modules/react-tiny-popover/dist/Popover.es.js +147 -0
  180. package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.cjs.js +1 -0
  181. package/dist/node_modules/react-tiny-popover/dist/PopoverPortal.es.js +20 -0
  182. package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.cjs.js +1 -0
  183. package/dist/node_modules/react-tiny-popover/dist/useArrowContainer.es.js +86 -0
  184. package/dist/node_modules/react-tiny-popover/dist/useElementRef.cjs.js +1 -0
  185. package/dist/node_modules/react-tiny-popover/dist/useElementRef.es.js +22 -0
  186. package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.cjs.js +1 -0
  187. package/dist/node_modules/react-tiny-popover/dist/useHandlePrevValues.es.js +34 -0
  188. package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.cjs.js +1 -0
  189. package/dist/node_modules/react-tiny-popover/dist/useMemoizedArray.es.js +24 -0
  190. package/dist/node_modules/react-tiny-popover/dist/usePopover.cjs.js +1 -0
  191. package/dist/node_modules/react-tiny-popover/dist/usePopover.es.js +140 -0
  192. package/dist/node_modules/react-tiny-popover/dist/util.cjs.js +1 -0
  193. package/dist/node_modules/react-tiny-popover/dist/util.es.js +81 -0
  194. package/dist/utils/index.d.ts +0 -4
  195. package/dist/utils/isHsIcon/isHsIcon.cjs.js +1 -0
  196. package/dist/utils/{isHsIcon.es.js → isHsIcon/isHsIcon.es.js} +1 -1
  197. package/package.json +206 -5
  198. package/dist/_virtual/dynamic-import-helper.cjs.js +0 -1
  199. package/dist/_virtual/dynamic-import-helper.es.js +0 -16
  200. package/dist/_virtual/jsx-runtime.cjs.js +0 -1
  201. package/dist/_virtual/jsx-runtime.es.js +0 -5
  202. package/dist/_virtual/jsx-runtime.es2.js +0 -4
  203. package/dist/icons/map/pin-drop.svg.cjs.js +0 -1
  204. package/dist/icons/map/pin-drop.svg.es.js +0 -5
  205. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +0 -14
  206. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -247
  207. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +0 -9
  208. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -35
  209. package/dist/node_modules/react/jsx-runtime.cjs.js +0 -1
  210. package/dist/node_modules/react/jsx-runtime.es.js +0 -10
  211. package/dist/utils/isHsIcon.cjs.js +0 -1
  212. package/dist/utils.cjs.js +0 -1
  213. package/dist/utils.es.js +0 -10
  214. /package/dist/_virtual/{react-jsx-runtime.development.cjs.js → ArrowContainer.cjs.js} +0 -0
  215. /package/dist/_virtual/{react-jsx-runtime.production.es.js → ArrowContainer.es.js} +0 -0
  216. /package/dist/_virtual/{react-jsx-runtime.production.cjs.js → Popover.cjs2.js} +0 -0
  217. /package/dist/_virtual/{react-jsx-runtime.development.es.js → useElementRef.es.js} +0 -0
  218. /package/dist/{utils → lib}/useSwiper.d.ts +0 -0
  219. /package/dist/utils/{cn.cjs.js → cn/cn.cjs.js} +0 -0
  220. /package/dist/utils/{cn.es.js → cn/cn.es.js} +0 -0
  221. /package/dist/utils/{formatUnits.cjs.js → formatUnits/formatUnits.cjs.js} +0 -0
  222. /package/dist/utils/{formatUnits.es.js → formatUnits/formatUnits.es.js} +0 -0
  223. /package/dist/utils/{useSwiper.cjs.js → useSwiper/useSwiper.cjs.js} +0 -0
  224. /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 e=require("react/jsx-runtime"),o=require("react"),j=require("../../_virtual/Popover.cjs.js"),d=require("../Icon/constants.cjs.js"),q=require("../Icon/Icon.cjs.js"),y=require("../TextButton/TextButton.cjs.js"),m=require("../Typography/Typography.cjs.js"),g=require("../../utils/cn/cn.cjs.js"),n=require("./complexTooltip.module.css.cjs.js"),I=({trigger:r,title:h,description:f,link:a,style:l="light",isBlurred:u=!1,children:x,positions:T=["top","bottom","left","right"]})=>{const[v,i]=o.useState(!1),s=o.useRef(null),c=o.useCallback(()=>{s.current&&clearTimeout(s.current),i(!0)},[]),t=o.useCallback(()=>{s.current=setTimeout(()=>i(!1),200)},[]),p=o.useCallback(()=>i(b=>!b),[]),C=o.useMemo(()=>r==="hover"?{onMouseEnter:c,onMouseLeave:t}:{onClick:p},[r,c,t,p]),_=o.useMemo(()=>r==="hover"?{onMouseEnter:c,onMouseLeave:t}:{},[r,c,t]);return o.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]),e.jsx(j.PopoverExports.Popover,{isOpen:v,positions:T,padding:8,onClickOutside:t,content:e.jsxs("div",{className:g.cn(n.default.content,u&&n.default.blurred),"data-style":l,..._,children:[e.jsxs("div",{className:n.default.contentHeader,children:[e.jsx(m.Typography,{as:"h4",defaultVariant:"headingSm",children:h}),e.jsxs("button",{className:n.default.closeButton,onClick:t,children:["(",e.jsx(q.Icon,{name:d.EIconName.CLOSE,className:n.default.closeIcon}),")"]})]}),e.jsx(m.Typography,{as:"p",defaultVariant:"bodySm",children:f}),a&&e.jsx(y.TextButton,{suffixIcon:d.EIconName.ARROW_FORWARD,as:"a",href:a.url,inverted:l==="dark"&&!u||l==="light"&&u,children:a.label})]}),children:e.jsx("div",{className:n.default.trigger,...C,children:x})})};exports.ComplexTooltip=I;
@@ -0,0 +1,70 @@
1
+ "use client";
2
+ import { jsx as o, jsxs as m } from "react/jsx-runtime";
3
+ import { useState as M, useRef as P, useCallback as u, useMemo as d, useEffect as R } from "react";
4
+ import { P as g } from "../../_virtual/Popover.es.js";
5
+ import { EIconName as f } from "../Icon/constants.es.js";
6
+ import { Icon as k } from "../Icon/Icon.es.js";
7
+ import { TextButton as I } from "../TextButton/TextButton.es.js";
8
+ import { Typography as h } from "../Typography/Typography.es.js";
9
+ import { cn as S } from "../../utils/cn/cn.es.js";
10
+ import t from "./complexTooltip.module.css.es.js";
11
+ const _ = ({
12
+ trigger: n,
13
+ title: v,
14
+ description: C,
15
+ link: a,
16
+ style: c = "light",
17
+ isBlurred: l = !1,
18
+ children: x,
19
+ positions: O = ["top", "bottom", "left", "right"]
20
+ }) => {
21
+ const [b, i] = M(!1), r = P(null), s = u(() => {
22
+ r.current && clearTimeout(r.current), i(!0);
23
+ }, []), e = u(() => {
24
+ r.current = setTimeout(() => i(!1), 200);
25
+ }, []), p = u(() => i((T) => !T), []), E = d(() => n === "hover" ? {
26
+ onMouseEnter: s,
27
+ onMouseLeave: e
28
+ } : {
29
+ onClick: p
30
+ }, [n, s, e, p]), N = d(() => n === "hover" ? {
31
+ onMouseEnter: s,
32
+ onMouseLeave: e
33
+ } : {}, [n, s, e]);
34
+ return R(() => () => {
35
+ r.current && clearTimeout(r.current);
36
+ }, []), /* @__PURE__ */ o(
37
+ g.Popover,
38
+ {
39
+ isOpen: b,
40
+ positions: O,
41
+ padding: 8,
42
+ onClickOutside: e,
43
+ content: /* @__PURE__ */ m("div", { className: S(t.content, l && t.blurred), "data-style": c, ...N, children: [
44
+ /* @__PURE__ */ m("div", { className: t.contentHeader, children: [
45
+ /* @__PURE__ */ o(h, { as: "h4", defaultVariant: "headingSm", children: v }),
46
+ /* @__PURE__ */ m("button", { className: t.closeButton, onClick: e, children: [
47
+ "(",
48
+ /* @__PURE__ */ o(k, { name: f.CLOSE, className: t.closeIcon }),
49
+ ")"
50
+ ] })
51
+ ] }),
52
+ /* @__PURE__ */ o(h, { as: "p", defaultVariant: "bodySm", children: C }),
53
+ a && /* @__PURE__ */ o(
54
+ I,
55
+ {
56
+ suffixIcon: f.ARROW_FORWARD,
57
+ as: "a",
58
+ href: a.url,
59
+ inverted: c === "dark" && !l || c === "light" && l,
60
+ children: a.label
61
+ }
62
+ )
63
+ ] }),
64
+ children: /* @__PURE__ */ o("div", { className: t.trigger, ...E, children: x })
65
+ }
66
+ );
67
+ };
68
+ export {
69
+ _ as ComplexTooltip
70
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="complexTooltip-module__trigger___N3sbu",e="complexTooltip-module__content___Qh4Mj",t="complexTooltip-module__blurred___1OYU3",l="complexTooltip-module__contentHeader___OtbyW",c="complexTooltip-module__closeButton___hH0qs",n="complexTooltip-module__closeIcon___adX6C",_={trigger:o,content:e,blurred:t,contentHeader:l,closeButton:c,closeIcon:n};exports.blurred=t;exports.closeButton=c;exports.closeIcon=n;exports.content=e;exports.contentHeader=l;exports.default=_;exports.trigger=o;
@@ -0,0 +1,17 @@
1
+ const o = "complexTooltip-module__trigger___N3sbu", e = "complexTooltip-module__content___Qh4Mj", t = "complexTooltip-module__blurred___1OYU3", _ = "complexTooltip-module__contentHeader___OtbyW", l = "complexTooltip-module__closeButton___hH0qs", c = "complexTooltip-module__closeIcon___adX6C", n = {
2
+ trigger: o,
3
+ content: e,
4
+ blurred: t,
5
+ contentHeader: _,
6
+ closeButton: l,
7
+ closeIcon: c
8
+ };
9
+ export {
10
+ t as blurred,
11
+ l as closeButton,
12
+ c as closeIcon,
13
+ e as content,
14
+ _ as contentHeader,
15
+ n as default,
16
+ o as trigger
17
+ };
@@ -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;
@@ -0,0 +1,42 @@
1
+ "use client";
2
+ import { jsx as e, jsxs as b, Fragment as E } from "react/jsx-runtime";
3
+ import { useState as o, useRef as L, useEffect as a } from "react";
4
+ import { createPortal as M } from "react-dom";
5
+ import { cn as w } from "../../../utils/cn/cn.es.js";
6
+ import { Typography as V } from "../../Typography/Typography.es.js";
7
+ import t from "../cursor.module.css.es.js";
8
+ function $({ children: c, label: l, colorScheme: m }) {
9
+ const [s, d] = o({ x: 0, y: 0 }), [f, r] = o(!1), p = L(null), [v, n] = o(!1);
10
+ a(() => (n(!0), () => n(!1)), []), a(() => {
11
+ const i = (u) => {
12
+ d({ x: u.clientX, y: u.clientY });
13
+ };
14
+ return window.addEventListener("mousemove", i), () => window.removeEventListener("mousemove", i);
15
+ }, []);
16
+ const h = () => {
17
+ r(!0);
18
+ }, x = () => {
19
+ r(!1);
20
+ }, y = /* @__PURE__ */ e(
21
+ "div",
22
+ {
23
+ ref: p,
24
+ className: w(t.cursor, {
25
+ [t.cursorVisible]: f
26
+ }),
27
+ style: {
28
+ left: `${s.x}px`,
29
+ top: `${s.y}px`
30
+ },
31
+ "data-color-scheme": m,
32
+ children: /* @__PURE__ */ e(V, { as: "p", emphasis: !0, defaultVariant: "labelLg", children: l })
33
+ }
34
+ );
35
+ return /* @__PURE__ */ b(E, { children: [
36
+ /* @__PURE__ */ e("div", { className: t.cursorContainer, onMouseEnter: h, onMouseLeave: x, children: c }),
37
+ v && M(y, document.body)
38
+ ] });
39
+ }
40
+ export {
41
+ $ as ClientCursor
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=({children:r})=>r;exports.ServerCursor=e;
@@ -0,0 +1,4 @@
1
+ const e = ({ children: r }) => r;
2
+ export {
3
+ e as ServerCursor
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="cursor-module__cursor___5Aohf",o="cursor-module__cursorVisible___S6TYo",s="cursor-module__cursorContainer___YHR3l",e={cursor:r,cursorVisible:o,cursorContainer:s};exports.cursor=r;exports.cursorContainer=s;exports.cursorVisible=o;exports.default=e;
@@ -0,0 +1,11 @@
1
+ const r = "cursor-module__cursor___5Aohf", o = "cursor-module__cursorVisible___S6TYo", s = "cursor-module__cursorContainer___YHR3l", c = {
2
+ cursor: r,
3
+ cursorVisible: o,
4
+ cursorContainer: s
5
+ };
6
+ export {
7
+ r as cursor,
8
+ s as cursorContainer,
9
+ o as cursorVisible,
10
+ c as default
11
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../_virtual/jsx-runtime.cjs.js"),h=require("react"),n=require("../../utils/cn.cjs.js"),u=require("../Icon/constants.cjs.js"),g=require("../Icon/Icon.cjs.js"),r=require("../Typography/Typography.cjs.js"),e=require("./filterMenu.module.css.cjs.js");function E({label:o,open:c=!1,options:d,selectedValue:m,onSelect:x}){const[i,p]=h.useState(c),j=()=>p(t=>!t);return s.jsxRuntimeExports.jsxs("div",{className:e.default.root,children:[s.jsxRuntimeExports.jsxs("button",{className:e.default.toggleButton,onClick:j,children:[s.jsxRuntimeExports.jsx(r.Typography,{defaultVariant:"labelLg",emphasis:!0,children:o}),s.jsxRuntimeExports.jsx(g.Icon,{name:i?u.EIconName.REMOVE:u.EIconName.PLUS,className:e.default.toggleIcon})]}),s.jsxRuntimeExports.jsx("div",{className:n.cn(e.default.menu,i&&e.default.isOpen),role:"menu",children:d.map((t,a)=>s.jsxRuntimeExports.jsxs("ul",{className:e.default.subOptions,children:[t.label&&s.jsxRuntimeExports.jsx("li",{className:n.cn(e.default.divider,a!==0&&e.default.dividerLine),children:s.jsxRuntimeExports.jsx(r.Typography,{as:"div",defaultVariant:"bodyMd",weight:"medium",className:e.default.dividerLabel,children:t.label})},a),t.values.map(({value:l,label:f})=>s.jsxRuntimeExports.jsx("li",{className:e.default.option,onClick:()=>x(l,t),children:s.jsxRuntimeExports.jsx(r.Typography,{as:"div",defaultVariant:"bodyMd",className:n.cn(e.default.optionLabel,l===m&&e.default.selected),children:f})},l))]},`${t.label}_${a}`))})]})}exports.FilterMenu=E;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),y=require("react"),t=require("../../utils/cn/cn.cjs.js"),b=require("../Icon/Icon.cjs.js"),i=require("../Icon/constants.cjs.js"),c=require("../Typography/Typography.cjs.js"),e=require("./filterMenu.module.css.cjs.js");function j({label:o,open:d=!1,options:u,selectedValue:m,onSelect:p}){const[r,f]=y.useState(d),h=()=>f(l=>!l);return a.jsxs("div",{className:e.default.root,children:[a.jsxs("button",{className:e.default.toggleButton,onClick:h,children:[a.jsx(c.Typography,{defaultVariant:"labelLg",emphasis:!0,children:o}),a.jsx(b.Icon,{name:r?i.EIconName.REMOVE:i.EIconName.PLUS,className:e.default.toggleIcon})]}),a.jsx("div",{className:t.cn(e.default.menu,r&&e.default.isOpen),role:"menu",children:u.map((l,s)=>a.jsxs("ul",{className:e.default.subOptions,children:[l.label&&a.jsx("li",{className:t.cn(e.default.divider,s!==0&&e.default.dividerLine),children:a.jsx(c.Typography,{as:"div",defaultVariant:"bodyMd",weight:"medium",className:e.default.dividerLabel,children:l.label})},s),l.values.map(({value:n,label:g})=>a.jsx("li",{className:e.default.option,onClick:()=>p(n,l),children:a.jsx(c.Typography,{as:"div",defaultVariant:"bodyMd",className:t.cn(e.default.optionLabel,n===m&&e.default.selected),children:g})},n))]},`${l.label}_${s}`))})]})}exports.FilterMenu=j;