@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
@@ -0,0 +1,86 @@
1
+ import { __exports as i } from "../../../_virtual/useArrowContainer.es.js";
2
+ import m from "react";
3
+ var w;
4
+ function y() {
5
+ if (w) return i;
6
+ w = 1;
7
+ var u = i && i.__assign || function() {
8
+ return u = Object.assign || function(a) {
9
+ for (var t, o = 1, s = arguments.length; o < s; o++) {
10
+ t = arguments[o];
11
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && (a[r] = t[r]);
12
+ }
13
+ return a;
14
+ }, u.apply(this, arguments);
15
+ };
16
+ Object.defineProperty(i, "__esModule", { value: !0 }), i.useArrowContainer = void 0;
17
+ var l = m, b = function(a) {
18
+ var t = a.childRect, o = a.popoverRect, s = a.position, r = a.arrowSize, p = a.arrowColor, v = (0, l.useMemo)(function() {
19
+ return {
20
+ padding: r
21
+ };
22
+ }, [r]), g = (0, l.useMemo)(function() {
23
+ return u({ position: "absolute" }, function() {
24
+ var c = r * 2, e = t.top - o.top + t.height / 2 - c / 2, n = t.left - o.left + t.width / 2 - c / 2, d = r, f = o.width - r, h = o.height - r;
25
+ switch (n = n < d ? d : n, n = n + c > f ? f - c : n, e = e < d ? d : e, e = e + c > h ? h - c : e, e = Number.isNaN(e) ? 0 : e, n = Number.isNaN(n) ? 0 : n, s) {
26
+ case "right":
27
+ return {
28
+ borderTop: "".concat(r, "px solid transparent"),
29
+ borderBottom: "".concat(r, "px solid transparent"),
30
+ borderRight: "".concat(r, "px solid ").concat(p),
31
+ left: 0,
32
+ top: e
33
+ };
34
+ case "left":
35
+ return {
36
+ borderTop: "".concat(r, "px solid transparent"),
37
+ borderBottom: "".concat(r, "px solid transparent"),
38
+ borderLeft: "".concat(r, "px solid ").concat(p),
39
+ right: 0,
40
+ top: e
41
+ };
42
+ case "bottom":
43
+ return {
44
+ borderLeft: "".concat(r, "px solid transparent"),
45
+ borderRight: "".concat(r, "px solid transparent"),
46
+ borderBottom: "".concat(r, "px solid ").concat(p),
47
+ top: 0,
48
+ left: n
49
+ };
50
+ case "top":
51
+ return {
52
+ borderLeft: "".concat(r, "px solid transparent"),
53
+ borderRight: "".concat(r, "px solid transparent"),
54
+ borderTop: "".concat(r, "px solid ").concat(p),
55
+ bottom: 0,
56
+ left: n
57
+ };
58
+ default:
59
+ return {
60
+ display: "hidden"
61
+ };
62
+ }
63
+ }());
64
+ }, [
65
+ p,
66
+ r,
67
+ t.height,
68
+ t.left,
69
+ t.top,
70
+ t.width,
71
+ o.height,
72
+ o.left,
73
+ o.top,
74
+ o.width,
75
+ s
76
+ ]);
77
+ return {
78
+ arrowContainerStyle: v,
79
+ arrowStyle: g
80
+ };
81
+ };
82
+ return i.useArrowContainer = b, i;
83
+ }
84
+ export {
85
+ y as __require
86
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../_virtual/useElementRef.cjs.js"),l=require("react"),f=require("./util.cjs.js");var o;function _(){if(o)return t.__exports;o=1,Object.defineProperty(t.__exports,"__esModule",{value:!0}),t.__exports.useElementRef=void 0;var r=l,i=f.__require(),c=function(s){var n=s.containerClassName,u=s.containerStyle,a=(0,r.useRef)(),e=(0,r.useState)(function(){return(0,i.createContainer)({containerStyle:u,containerClassName:n})})[0];return(0,r.useLayoutEffect)(function(){e.className=n},[n,e]),(0,r.useLayoutEffect)(function(){Object.assign(e.style,u)},[u,e]),a.current=e,a};return t.__exports.useElementRef=c,t.__exports}exports.__require=_;
@@ -0,0 +1,22 @@
1
+ import { __exports as t } from "../../../_virtual/useElementRef.es.js";
2
+ import c from "react";
3
+ import { __require as l } from "./util.es.js";
4
+ var i;
5
+ function R() {
6
+ if (i) return t;
7
+ i = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.useElementRef = void 0;
8
+ var r = c, o = l(), f = function(u) {
9
+ var n = u.containerClassName, a = u.containerStyle, s = (0, r.useRef)(), e = (0, r.useState)(function() {
10
+ return (0, o.createContainer)({ containerStyle: a, containerClassName: n });
11
+ })[0];
12
+ return (0, r.useLayoutEffect)(function() {
13
+ e.className = n;
14
+ }, [n, e]), (0, r.useLayoutEffect)(function() {
15
+ Object.assign(e.style, a);
16
+ }, [a, e]), s.current = e, s;
17
+ };
18
+ return t.useElementRef = f, t;
19
+ }
20
+ export {
21
+ R as __require
22
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../_virtual/useHandlePrevValues.cjs.js"),c=require("react");var d;function f(){if(d)return n.__exports;d=1,Object.defineProperty(n.__exports,"__esModule",{value:!0}),n.__exports.useHandlePrevValues=void 0;var r=c,v=function(e){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),l=(0,r.useCallback)(function(){t.current=e.positions,u.current=e.reposition,a.current=e.transformMode,o.current=e.transform,s.current=e.boundaryElement,i.current=e.boundaryInset},[e.boundaryElement,e.boundaryInset,e.positions,e.reposition,e.transform,e.transformMode]);return{prev:{positions:t.current,reposition:u.current,transformMode:a.current,transform:o.current,boundaryElement:s.current,boundaryInset:i.current},updatePrevValues:l}};return n.__exports.useHandlePrevValues=v,n.__exports}exports.__require=f;
@@ -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
  }