@hhgtech/hhg-components 1.29.80 → 1.29.81

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 (344) hide show
  1. package/build/{index-1250dd06.js → WhatsApp-82018096.js} +24 -276
  2. package/build/adapters.js +17 -16
  3. package/build/atoms.js +100 -0
  4. package/build/babyGrowth.js +162 -164
  5. package/build/cache.js +3 -3
  6. package/build/care.js +17 -17
  7. package/build/components.js +181 -165
  8. package/build/{constants-ca71f9e5.js → constants-3a475a22.js} +2 -2
  9. package/build/constants-513a9a41.js +318 -0
  10. package/build/{constants-4e7c419e.js → constants-936f45e9.js} +0 -136
  11. package/build/constants-dd16fb4d.js +425 -0
  12. package/build/constants.js +3 -3
  13. package/build/{core-bb2587e7.js → core-9e44ee99.js} +2 -2
  14. package/build/{index-5d9ad07e.js → dataTransform-6b4d7a4e.js} +3 -52
  15. package/build/{dataTransform-469b75eb.js → dataTransform-c1701cbd.js} +1 -1
  16. package/build/defaultClassWrapper-e87ca8ef.js +21 -0
  17. package/build/ecom.js +5 -5
  18. package/build/esm/WhatsApp-7d3732e2.js +46 -0
  19. package/build/esm/adapters.js +17 -16
  20. package/build/esm/atoms.js +57 -0
  21. package/build/esm/babyGrowth.js +87 -89
  22. package/build/esm/cache.js +3 -3
  23. package/build/esm/care.js +17 -17
  24. package/build/esm/components.js +91 -75
  25. package/build/esm/constants-6bdb97a8.js +417 -0
  26. package/build/esm/constants-71d9f33b.js +307 -0
  27. package/build/esm/{constants-7661ce64.js → constants-ebf80e5f.js} +2 -2
  28. package/build/esm/{constants-508ba335.js → constants-f77fc231.js} +1 -127
  29. package/build/esm/constants.js +3 -3
  30. package/build/esm/{core-5a22b83e.js → core-c72e0ff5.js} +2 -2
  31. package/build/esm/{index-9b54376f.js → dataTransform-3e8e25ba.js} +5 -53
  32. package/build/esm/{dataTransform-f5db5afb.js → dataTransform-6c032113.js} +1 -1
  33. package/build/esm/defaultClassWrapper-31caf23b.js +15 -0
  34. package/build/esm/ecom.js +5 -5
  35. package/build/esm/fixedBottomAdBlock-13ed4a34.js +3474 -0
  36. package/build/esm/footer.js +18 -18
  37. package/build/esm/gAssets.js +4 -4
  38. package/build/esm/{getDynamicHealthTool-09fda8b3.js → getDynamicHealthTool-7681e43a.js} +4 -4
  39. package/build/esm/{getSocialList-96301dbb.js → getSocialList-e8142513.js} +5 -6
  40. package/build/esm/healthToolsForm.js +40 -0
  41. package/build/esm/healthToolsForms.d.ts +7 -0
  42. package/build/esm/hooks.js +17 -17
  43. package/build/esm/i18n.js +2 -2
  44. package/build/esm/i18nV2.js +2 -2
  45. package/build/esm/index-16514f4d.js +156 -0
  46. package/build/esm/{index-3c7f109c.js → index-1da2ca0b.js} +2 -2
  47. package/build/esm/{utils-ff5d88a2.js → index-1ecbcf21.js} +71 -105
  48. package/build/esm/{index-92eedeb0.js → index-21eac858.js} +12 -201
  49. package/build/esm/{index-c4699d44.js → index-2774583d.js} +35 -176
  50. package/build/esm/index-29d04985.js +14 -0
  51. package/build/esm/index-2b9213cf.js +195 -0
  52. package/build/esm/index-3078acec.js +275 -0
  53. package/build/esm/index-376bee14.js +847 -0
  54. package/build/esm/index-38f50764.js +557 -0
  55. package/build/esm/index-42ad7763.js +95 -0
  56. package/build/esm/{index-53a86337.js → index-598ab51b.js} +5 -5
  57. package/build/esm/{index-df29c4e0.js → index-69248434.js} +33 -5
  58. package/build/esm/index-6ac73f00.js +1114 -0
  59. package/build/esm/index-703205e3.js +54 -0
  60. package/build/esm/{index-82861dba.js → index-73301602.js} +2 -2
  61. package/build/esm/index-76d20d3f.js +100 -0
  62. package/build/esm/{index-e68d4285.js → index-780a08de.js} +2 -2
  63. package/build/esm/{index-80f4d7df.js → index-78255d6c.js} +2 -2
  64. package/build/esm/{index-da2b8f22.js → index-7cbe2a10.js} +12 -11
  65. package/build/esm/{index-2d47a346.js → index-7e756cb8.js} +11 -10
  66. package/build/esm/{index.styled-9e147e72.js → index-87a2ea8c.js} +21 -3
  67. package/build/esm/index-88ad2ca3.js +1681 -0
  68. package/build/esm/index-8952ceac.js +202 -0
  69. package/build/esm/index-996f7caf.js +148 -0
  70. package/build/esm/{index-ef855343.js → index-9f1899f2.js} +4 -4
  71. package/build/esm/{index-32e2b169.js → index-b1bb27aa.js} +81 -9
  72. package/build/esm/{index-c807ef87.js → index-bef3c9bd.js} +3 -3
  73. package/build/esm/{index-bcd13f1d.js → index-c1af3a8e.js} +13 -12
  74. package/build/esm/{index-4dcdce19.js → index-c200bff6.js} +2 -2
  75. package/build/esm/{index-5773eb18.js → index-cb4afb33.js} +6 -6
  76. package/build/esm/{index-679d5383.js → index-cdac57da.js} +1 -1
  77. package/build/esm/{index-474e0ae5.js → index-cf6beac8.js} +2 -13
  78. package/build/esm/{index-77dddeb9.js → index-d218b94e.js} +2 -2
  79. package/build/esm/index-d6201fa4.js +42 -0
  80. package/build/esm/index-e104ad21.js +335 -0
  81. package/build/esm/index-e26514ee.js +262 -0
  82. package/build/esm/index-f27edf45.js +130 -0
  83. package/build/esm/index.js +89 -73
  84. package/build/esm/lead.js +23 -33
  85. package/build/esm/logoIcon-d93bc56e.js +104 -0
  86. package/build/esm/mantine.js +22 -20
  87. package/build/esm/misc.js +21 -21
  88. package/build/esm/molecules.js +88 -0
  89. package/build/esm/navigation.js +37 -37
  90. package/build/esm/onboardingV2.js +26 -35
  91. package/build/esm/organisms.js +57 -0
  92. package/build/esm/pwg.js +19 -19
  93. package/build/esm/{routing-7bc3e320.js → routing-bebdc8b7.js} +2 -2
  94. package/build/esm/subot.js +31 -27
  95. package/build/esm/surveyOrPremiumBanner.js +45 -0
  96. package/build/esm/surveyQuestionCard.js +13 -0
  97. package/build/esm/surveyThankyouCard-bf6080eb.js +446 -0
  98. package/build/esm/together.js +35 -37
  99. package/build/esm/{types-957334f2.js → types-2580132c.js} +28 -30
  100. package/build/esm/{types-ee1be1e3.js → types-be952df2.js} +13 -13
  101. package/build/esm/types.js +1 -1
  102. package/build/esm/{useCategory-7e020652.js → useCategory-8f109eb7.js} +5 -5
  103. package/build/esm/{useHealthToolCache-c70e4fd5.js → useHealthToolCache-d97dfa00.js} +2 -2
  104. package/build/esm/{useMantineLocale-1373e175.js → useMantineLocale-4fb67342.js} +3 -3
  105. package/build/esm/{usePlacesAutocomplete-4bfe976e.js → usePlacesAutocomplete-fe2e4cbe.js} +1 -1
  106. package/build/esm/{useTranslations-adad3b06.js → useTranslations-fbf6a6ab.js} +1 -1
  107. package/build/esm/{utils-b14c10f9.js → utils-cef111b6.js} +1 -1
  108. package/build/esm/{utils-dee27bfd.js → utils-d5a0b58f.js} +8 -356
  109. package/build/esm/vaccination.js +18 -29
  110. package/build/fixedBottomAdBlock-0d4379d1.js +3521 -0
  111. package/build/footer.js +18 -18
  112. package/build/gAssets.js +4 -4
  113. package/build/{getDynamicHealthTool-357666f7.js → getDynamicHealthTool-2a92e1a5.js} +4 -4
  114. package/build/{getSocialList-c1404aff.js → getSocialList-97e7bcc1.js} +8 -9
  115. package/build/healthToolsForm.js +54 -0
  116. package/build/healthToolsForms.d.ts +7 -0
  117. package/build/hooks.js +17 -17
  118. package/build/i18n.js +1 -1
  119. package/build/i18nV2.js +1 -1
  120. package/build/index-058b3c0f.js +1127 -0
  121. package/build/{index-94fd9ea6.js → index-05f106c2.js} +32 -222
  122. package/build/index-06fa8444.js +102 -0
  123. package/build/{index-858f60e0.js → index-1efa7d84.js} +2 -2
  124. package/build/index-247a9eb2.js +1693 -0
  125. package/build/{index-94a2b0f9.js → index-264eeddd.js} +2 -2
  126. package/build/index-3d0d22b3.js +565 -0
  127. package/build/index-3dcb9bc6.js +61 -0
  128. package/build/{index-91027d35.js → index-4af08ec2.js} +2 -2
  129. package/build/index-6acb08c0.js +343 -0
  130. package/build/{index-bf6e5e4e.js → index-6bc3f8c3.js} +5 -5
  131. package/build/{index-b0414701.js → index-6c27b627.js} +56 -199
  132. package/build/index-73cde644.js +156 -0
  133. package/build/{index-5029b5d8.js → index-77a2b9ee.js} +1 -1
  134. package/build/{index-d710511f.js → index-7c1dc717.js} +12 -11
  135. package/build/index-7da7b531.js +107 -0
  136. package/build/{index-f0a532c7.js → index-838b0f95.js} +6 -6
  137. package/build/index-a7de42d1.js +202 -0
  138. package/build/{index-3a03bb34.js → index-a86ea1b6.js} +2 -2
  139. package/build/index-aa818139.js +49 -0
  140. package/build/{index-61ef343d.js → index-b773bc3d.js} +4 -4
  141. package/build/index-bef2bc73.js +136 -0
  142. package/build/{utils-263a60f7.js → index-c225ef22.js} +76 -120
  143. package/build/{index-8c826f3e.js → index-c2900d8c.js} +2 -2
  144. package/build/index-cb0544e5.js +866 -0
  145. package/build/{index-e60c98f8.js → index-d34cd464.js} +2 -2
  146. package/build/{index-82a3ba38.js → index-d5b4089d.js} +85 -12
  147. package/build/index-dba2e361.js +20 -0
  148. package/build/{index-917c975c.js → index-dcbd8bf3.js} +37 -9
  149. package/build/index-dd1392e3.js +167 -0
  150. package/build/{index-ed587907.js → index-def9867a.js} +11 -10
  151. package/build/index-e0bf03ac.js +277 -0
  152. package/build/index-ee964d3c.js +209 -0
  153. package/build/index-f10efb61.js +270 -0
  154. package/build/{index-040620f6.js → index-f1f4fbb9.js} +13 -12
  155. package/build/{index-c67602d7.js → index-f28c47ce.js} +1 -13
  156. package/build/{index-2b32b21e.js → index-f6575703.js} +2 -2
  157. package/build/{index.styled-8aca5145.js → index-fe7345fa.js} +22 -4
  158. package/build/index.js +202 -186
  159. package/build/lead.js +29 -39
  160. package/build/logoIcon-ee9a5501.js +110 -0
  161. package/build/mantine.js +24 -23
  162. package/build/misc.js +21 -21
  163. package/build/molecules.js +149 -0
  164. package/build/navigation.js +37 -37
  165. package/build/onboardingV2.js +45 -54
  166. package/build/organisms.js +74 -0
  167. package/build/pwg.js +19 -19
  168. package/build/{routing-bc8197d8.js → routing-f6d54205.js} +2 -2
  169. package/build/subot.js +43 -39
  170. package/build/surveyOrPremiumBanner.js +53 -0
  171. package/build/surveyQuestionCard.js +22 -0
  172. package/build/surveyThankyouCard-ead6b355.js +454 -0
  173. package/build/together.js +37 -39
  174. package/build/{types-6996fb20.js → types-4ba4268f.js} +13 -13
  175. package/build/{types-c8956642.js → types-6c5643a2.js} +60 -62
  176. package/build/types.js +1 -1
  177. package/build/{useCategory-7d1f8a7d.js → useCategory-e2c91f59.js} +5 -5
  178. package/build/{useHealthToolCache-b7dea4aa.js → useHealthToolCache-2a53367b.js} +2 -2
  179. package/build/{useMantineLocale-b243f628.js → useMantineLocale-a4f0c61d.js} +3 -3
  180. package/build/{usePlacesAutocomplete-08b86d2d.js → usePlacesAutocomplete-c76d0caf.js} +1 -1
  181. package/build/{useTranslations-d5456a98.js → useTranslations-200168a3.js} +1 -1
  182. package/build/{utils-9f62698f.js → utils-95d9832e.js} +16 -375
  183. package/build/{utils-d421a448.js → utils-af695515.js} +1 -1
  184. package/build/vaccination.js +58 -69
  185. package/package.json +1 -1
  186. package/build/Instagram-91ba1e26.js +0 -32
  187. package/build/esm/Instagram-319a8e34.js +0 -26
  188. package/build/esm/index-13bf84f4.js +0 -298
  189. package/build/esm/index-1a3f36c3.js +0 -1086
  190. package/build/esm/index-800b956a.js +0 -7245
  191. package/build/esm/index-aebf96f3.js +0 -33
  192. package/build/esm/index-d48b5db6.js +0 -71
  193. package/build/esm/index-d5b66388.js +0 -23
  194. package/build/esm/index.styles-0ef0135c.js +0 -1322
  195. package/build/index-0523771b.js +0 -7324
  196. package/build/index-20ebc0bd.js +0 -30
  197. package/build/index-dbf560f2.js +0 -1100
  198. package/build/index-efcbac97.js +0 -39
  199. package/build/index-f5103542.js +0 -77
  200. package/build/index.styles-2bdfde5f.js +0 -1361
  201. /package/build/{BMI_BOYS.percentile.monthly-c38ce03a.js → BMI_BOYS.percentile.monthly-71fb1c9f.js} +0 -0
  202. /package/build/{BMI_BOYS.percentile.weekly-1eccee42.js → BMI_BOYS.percentile.weekly-b2b344a7.js} +0 -0
  203. /package/build/{BMI_BOYS.percentile.yearly-0e7d5cb6.js → BMI_BOYS.percentile.yearly-031ddade.js} +0 -0
  204. /package/build/{BMI_BOYS.zscore.monthly-f72f392f.js → BMI_BOYS.zscore.monthly-bb1f9962.js} +0 -0
  205. /package/build/{BMI_BOYS.zscore.weekly-94fd04e6.js → BMI_BOYS.zscore.weekly-d6198d53.js} +0 -0
  206. /package/build/{BMI_BOYS.zscore.yearly-90d5e091.js → BMI_BOYS.zscore.yearly-48255337.js} +0 -0
  207. /package/build/{BMI_GIRLS.percentile.monthly-de3a9a14.js → BMI_GIRLS.percentile.monthly-e3e284ee.js} +0 -0
  208. /package/build/{BMI_GIRLS.percentile.weekly-1e1ce2b7.js → BMI_GIRLS.percentile.weekly-9f2d3977.js} +0 -0
  209. /package/build/{BMI_GIRLS.percentile.yearly-70a44f31.js → BMI_GIRLS.percentile.yearly-c79f34ce.js} +0 -0
  210. /package/build/{BMI_GIRLS.zscore.monthly-be4399a5.js → BMI_GIRLS.zscore.monthly-11092df0.js} +0 -0
  211. /package/build/{BMI_GIRLS.zscore.weekly-6121376b.js → BMI_GIRLS.zscore.weekly-5c375d2b.js} +0 -0
  212. /package/build/{BMI_GIRLS.zscore.yearly-822e7686.js → BMI_GIRLS.zscore.yearly-adbba8e3.js} +0 -0
  213. /package/build/{ChevronDown-f9d31306.js → ChevronDown-f7e25d61.js} +0 -0
  214. /package/build/{Close-27e0dcf1.js → Close-36b0da99.js} +0 -0
  215. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5e094c3e.js → HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js} +0 -0
  216. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-24f827d8.js → HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js} +0 -0
  217. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d7478410.js → HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js} +0 -0
  218. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1123cad6.js → HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js} +0 -0
  219. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a5b55615.js → HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js} +0 -0
  220. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d818764.js → HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js} +0 -0
  221. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-dddf5ad9.js → HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js} +0 -0
  222. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a80d6989.js → HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js} +0 -0
  223. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-01850b67.js → HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js} +0 -0
  224. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-82890053.js → HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js} +0 -0
  225. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-069f8c8f.js → HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js} +0 -0
  226. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-ae5ef237.js → HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js} +0 -0
  227. /package/build/{HEIGHT_BOYS.percentile.monthly-d0da1664.js → HEIGHT_BOYS.percentile.monthly-35138a98.js} +0 -0
  228. /package/build/{HEIGHT_BOYS.percentile.weekly-55446b8a.js → HEIGHT_BOYS.percentile.weekly-0216c35b.js} +0 -0
  229. /package/build/{HEIGHT_BOYS.percentile.yearly-f2f5b19f.js → HEIGHT_BOYS.percentile.yearly-f698e45d.js} +0 -0
  230. /package/build/{HEIGHT_BOYS.zscore.monthly-e6ed98ef.js → HEIGHT_BOYS.zscore.monthly-01195728.js} +0 -0
  231. /package/build/{HEIGHT_BOYS.zscore.weekly-d0d37479.js → HEIGHT_BOYS.zscore.weekly-993e9cf2.js} +0 -0
  232. /package/build/{HEIGHT_BOYS.zscore.yearly-4023b808.js → HEIGHT_BOYS.zscore.yearly-fee3ed69.js} +0 -0
  233. /package/build/{HEIGHT_GIRLS.percentile.monthly-6d9aeadc.js → HEIGHT_GIRLS.percentile.monthly-27b2474a.js} +0 -0
  234. /package/build/{HEIGHT_GIRLS.percentile.weekly-2087c9b4.js → HEIGHT_GIRLS.percentile.weekly-77bff236.js} +0 -0
  235. /package/build/{HEIGHT_GIRLS.percentile.yearly-f98d8b05.js → HEIGHT_GIRLS.percentile.yearly-6200a720.js} +0 -0
  236. /package/build/{HEIGHT_GIRLS.zscore.monthly-99d299e3.js → HEIGHT_GIRLS.zscore.monthly-94978e64.js} +0 -0
  237. /package/build/{HEIGHT_GIRLS.zscore.weekly-c46ed349.js → HEIGHT_GIRLS.zscore.weekly-7951beb1.js} +0 -0
  238. /package/build/{HEIGHT_GIRLS.zscore.yearly-fddefca4.js → HEIGHT_GIRLS.zscore.yearly-c2eca714.js} +0 -0
  239. /package/build/{Visible-01dfaec9.js → Visible-eee51ba6.js} +0 -0
  240. /package/build/{WEIGHT_BOYS.percentile.monthly-cead8ece.js → WEIGHT_BOYS.percentile.monthly-6a6f901b.js} +0 -0
  241. /package/build/{WEIGHT_BOYS.percentile.weekly-a97fa31a.js → WEIGHT_BOYS.percentile.weekly-737fb867.js} +0 -0
  242. /package/build/{WEIGHT_BOYS.percentile.yearly-c2c41945.js → WEIGHT_BOYS.percentile.yearly-7772b5e5.js} +0 -0
  243. /package/build/{WEIGHT_BOYS.zscore.monthly-d8de7dc2.js → WEIGHT_BOYS.zscore.monthly-8db2e7d6.js} +0 -0
  244. /package/build/{WEIGHT_BOYS.zscore.weekly-41a6f6bf.js → WEIGHT_BOYS.zscore.weekly-ddd37c1a.js} +0 -0
  245. /package/build/{WEIGHT_BOYS.zscore.yearly-5762fa8a.js → WEIGHT_BOYS.zscore.yearly-332a8f7b.js} +0 -0
  246. /package/build/{WEIGHT_GIRLS.percentile.monthly-526fb18a.js → WEIGHT_GIRLS.percentile.monthly-3edad688.js} +0 -0
  247. /package/build/{WEIGHT_GIRLS.percentile.weekly-6c63ed2b.js → WEIGHT_GIRLS.percentile.weekly-f113a82a.js} +0 -0
  248. /package/build/{WEIGHT_GIRLS.percentile.yearly-0ecdbd3a.js → WEIGHT_GIRLS.percentile.yearly-95afbeaf.js} +0 -0
  249. /package/build/{WEIGHT_GIRLS.zscore.monthly-0c353536.js → WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js} +0 -0
  250. /package/build/{WEIGHT_GIRLS.zscore.weekly-97898ff6.js → WEIGHT_GIRLS.zscore.weekly-2b113519.js} +0 -0
  251. /package/build/{WEIGHT_GIRLS.zscore.yearly-cbebe807.js → WEIGHT_GIRLS.zscore.yearly-c82b04db.js} +0 -0
  252. /package/build/{animation-8605b5bb.js → animation-e1375a3b.js} +0 -0
  253. /package/build/{cart-ab5762b8.js → cart-67147d06.js} +0 -0
  254. /package/build/{cookieHelper-b2132ffc.js → cookieHelper-17491ce8.js} +0 -0
  255. /package/build/{doctor-f121fd79.js → doctor-17b525f8.js} +0 -0
  256. /package/build/esm/{BMI_BOYS.percentile.monthly-e507536d.js → BMI_BOYS.percentile.monthly-7c9d4923.js} +0 -0
  257. /package/build/esm/{BMI_BOYS.percentile.weekly-3cbf7392.js → BMI_BOYS.percentile.weekly-c410294a.js} +0 -0
  258. /package/build/esm/{BMI_BOYS.percentile.yearly-c7d54bc3.js → BMI_BOYS.percentile.yearly-695a4fe2.js} +0 -0
  259. /package/build/esm/{BMI_BOYS.zscore.monthly-4d09aca0.js → BMI_BOYS.zscore.monthly-9fb9f281.js} +0 -0
  260. /package/build/esm/{BMI_BOYS.zscore.weekly-319b78c5.js → BMI_BOYS.zscore.weekly-d2109e4b.js} +0 -0
  261. /package/build/esm/{BMI_BOYS.zscore.yearly-764732c5.js → BMI_BOYS.zscore.yearly-bfa5361b.js} +0 -0
  262. /package/build/esm/{BMI_GIRLS.percentile.monthly-5a8e4069.js → BMI_GIRLS.percentile.monthly-f5f60596.js} +0 -0
  263. /package/build/esm/{BMI_GIRLS.percentile.weekly-a2fe6df1.js → BMI_GIRLS.percentile.weekly-26e4e864.js} +0 -0
  264. /package/build/esm/{BMI_GIRLS.percentile.yearly-810fe911.js → BMI_GIRLS.percentile.yearly-5a2b297d.js} +0 -0
  265. /package/build/esm/{BMI_GIRLS.zscore.monthly-afab03b0.js → BMI_GIRLS.zscore.monthly-4e80bed5.js} +0 -0
  266. /package/build/esm/{BMI_GIRLS.zscore.weekly-8f4e7198.js → BMI_GIRLS.zscore.weekly-03b79f0b.js} +0 -0
  267. /package/build/esm/{BMI_GIRLS.zscore.yearly-7f043621.js → BMI_GIRLS.zscore.yearly-822ed949.js} +0 -0
  268. /package/build/esm/{ChevronDown-d24fd24b.js → ChevronDown-74267eb8.js} +0 -0
  269. /package/build/esm/{Close-6243d246.js → Close-372aa467.js} +0 -0
  270. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-91c12176.js → HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js} +0 -0
  271. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-40e77c68.js → HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js} +0 -0
  272. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-1a284ec4.js → HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js} +0 -0
  273. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-16f716a6.js → HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js} +0 -0
  274. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-07d20112.js → HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1201a10a.js → HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a6348baf.js → HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-af26363f.js → HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e7637928.js → HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9be0e0ca.js → HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3ffe9dcd.js → HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d7226db1.js → HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js} +0 -0
  282. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c2e21892.js → HEIGHT_BOYS.percentile.monthly-359c4335.js} +0 -0
  283. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-22018f1e.js → HEIGHT_BOYS.percentile.weekly-a4d4acd3.js} +0 -0
  284. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-391cd377.js → HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js} +0 -0
  285. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e11f50f4.js → HEIGHT_BOYS.zscore.monthly-12331258.js} +0 -0
  286. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8e2c8306.js → HEIGHT_BOYS.zscore.weekly-172054d3.js} +0 -0
  287. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-78e974bb.js → HEIGHT_BOYS.zscore.yearly-bb47a3be.js} +0 -0
  288. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0a49ff89.js → HEIGHT_GIRLS.percentile.monthly-c93c0b34.js} +0 -0
  289. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5e158a8e.js → HEIGHT_GIRLS.percentile.weekly-f1f83097.js} +0 -0
  290. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f5544ab2.js → HEIGHT_GIRLS.percentile.yearly-ccee4e55.js} +0 -0
  291. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-92f67ec2.js → HEIGHT_GIRLS.zscore.monthly-caf5410c.js} +0 -0
  292. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f5d11f32.js → HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js} +0 -0
  293. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4fe6aad9.js → HEIGHT_GIRLS.zscore.yearly-c3af35d3.js} +0 -0
  294. /package/build/esm/{Visible-7f408f98.js → Visible-3f9d7dca.js} +0 -0
  295. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b09ae73a.js → WEIGHT_BOYS.percentile.monthly-8a4647df.js} +0 -0
  296. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-733a24a9.js → WEIGHT_BOYS.percentile.weekly-a2a6adf1.js} +0 -0
  297. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-2bfcfc93.js → WEIGHT_BOYS.percentile.yearly-073df8b7.js} +0 -0
  298. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c0d3a746.js → WEIGHT_BOYS.zscore.monthly-bb9e73d2.js} +0 -0
  299. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b41ff498.js → WEIGHT_BOYS.zscore.weekly-ef32ce7a.js} +0 -0
  300. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-15bb7570.js → WEIGHT_BOYS.zscore.yearly-6cc77688.js} +0 -0
  301. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5b79dea8.js → WEIGHT_GIRLS.percentile.monthly-a4b518bc.js} +0 -0
  302. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-33052637.js → WEIGHT_GIRLS.percentile.weekly-dcedaebb.js} +0 -0
  303. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-64382b53.js → WEIGHT_GIRLS.percentile.yearly-9e66577e.js} +0 -0
  304. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-63f19584.js → WEIGHT_GIRLS.zscore.monthly-c07cb81f.js} +0 -0
  305. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-938ebce2.js → WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js} +0 -0
  306. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-016e1cfc.js → WEIGHT_GIRLS.zscore.yearly-e99ce511.js} +0 -0
  307. /package/build/esm/{animation-bf170ee9.js → animation-0b2299dc.js} +0 -0
  308. /package/build/esm/{cart-5bdb4fa5.js → cart-f961dadc.js} +0 -0
  309. /package/build/esm/{cookieHelper-ff6c13b4.js → cookieHelper-73ce3871.js} +0 -0
  310. /package/build/esm/{doctor-f4cadffb.js → doctor-8a07ca44.js} +0 -0
  311. /package/build/esm/{index-6c0f560b.js → index-782fed08.js} +0 -0
  312. /package/build/esm/{index-528e64f4.js → index-b65a8764.js} +0 -0
  313. /package/build/esm/{index-b87433a0.js → index-c3264b34.js} +0 -0
  314. /package/build/esm/{index-eeedf0f0.js → index-e3787b20.js} +0 -0
  315. /package/build/esm/{isProduction-2838b9ae.js → isProduction-5684a28c.js} +0 -0
  316. /package/build/esm/{localizeNumberFormat-9303c122.js → localizeNumberFormat-42ae8d89.js} +0 -0
  317. /package/build/esm/{normalizeLink-38ab69f4.js → normalizeLink-d6f57223.js} +0 -0
  318. /package/build/esm/{number-fcae69c7.js → number-13f075cf.js} +0 -0
  319. /package/build/esm/{paths-d1c61fa8.js → paths-49a813e7.js} +0 -0
  320. /package/build/esm/{theme-0af1cc3d.js → theme-f18c2351.js} +0 -0
  321. /package/build/esm/{translationsContext-036458b7.js → translationsContext-f3d1a7bd.js} +0 -0
  322. /package/build/esm/{tslib.es6-2673b49d.js → tslib.es6-761239c7.js} +0 -0
  323. /package/build/esm/{useIsInit-2c5ff93d.js → useIsInit-ee864235.js} +0 -0
  324. /package/build/esm/{useOutsideClick-7023de23.js → useOutsideClick-7451aa57.js} +0 -0
  325. /package/build/esm/{useScrollbarSize-dfdab229.js → useScrollbarSize-84bb5b47.js} +0 -0
  326. /package/build/esm/{useUniqueId-d4b0bdd3.js → useUniqueId-c23213b6.js} +0 -0
  327. /package/build/esm/{utils-511a24f4.js → utils-f8761b9d.js} +0 -0
  328. /package/build/{index-c524c362.js → index-97ebd7e1.js} +0 -0
  329. /package/build/{index-bced434a.js → index-ba3797bb.js} +0 -0
  330. /package/build/{index-5c400e5e.js → index-bba97c2e.js} +0 -0
  331. /package/build/{index-18ddaa1b.js → index-df5cd44b.js} +0 -0
  332. /package/build/{isProduction-2e55aee3.js → isProduction-aa963bf9.js} +0 -0
  333. /package/build/{localizeNumberFormat-2befc6e4.js → localizeNumberFormat-90d4f9d5.js} +0 -0
  334. /package/build/{normalizeLink-0fd36e61.js → normalizeLink-451ae6d8.js} +0 -0
  335. /package/build/{number-92da0262.js → number-c2338382.js} +0 -0
  336. /package/build/{paths-350514c4.js → paths-e0bbfce7.js} +0 -0
  337. /package/build/{theme-f410baf6.js → theme-e4f7f487.js} +0 -0
  338. /package/build/{translationsContext-11cafcfc.js → translationsContext-39528d2f.js} +0 -0
  339. /package/build/{tslib.es6-4bc45883.js → tslib.es6-7e140b89.js} +0 -0
  340. /package/build/{useIsInit-0f6d1879.js → useIsInit-38cec0c4.js} +0 -0
  341. /package/build/{useOutsideClick-e067cc79.js → useOutsideClick-e579e1ac.js} +0 -0
  342. /package/build/{useScrollbarSize-ed50b4a6.js → useScrollbarSize-5a8be010.js} +0 -0
  343. /package/build/{useUniqueId-4ce69bff.js → useUniqueId-8929fe5f.js} +0 -0
  344. /package/build/{utils-4849d92a.js → utils-524bda7c.js} +0 -0
@@ -0,0 +1,107 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var theme = require('./theme-e4f7f487.js');
5
+ var styled = require('@emotion/styled');
6
+ var index = require('./index-fe7345fa.js');
7
+ var index$1 = require('./index-def9867a.js');
8
+
9
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
10
+
11
+ var React__default = /*#__PURE__*/_interopDefault(React);
12
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
13
+
14
+ const StyledRadioImageGroup = styled__default["default"].div `
15
+ display: flex;
16
+ width: 100%;
17
+
18
+ &[data-direction='vertical'] {
19
+ flex-direction: column;
20
+ }
21
+
22
+ &[data-direction='horizontal'] {
23
+ flex-wrap: wrap;
24
+ }
25
+ `;
26
+ const StyledRadioImageItem = styled__default["default"].div `
27
+ display: flex;
28
+
29
+ padding: 8px;
30
+
31
+ border-radius: ${theme.theme.borderRadius};
32
+ cursor: pointer;
33
+
34
+ & > div {
35
+ display: flex;
36
+ width: 100%;
37
+ height: 100%;
38
+ flex-direction: column;
39
+ align-items: center;
40
+ justify-content: flex-start;
41
+ }
42
+
43
+ &[data-is-mb='false'] {
44
+ &[data-selected='true'] {
45
+ border: 1px solid #2d87f3;
46
+ background: white;
47
+ }
48
+ &[data-selected='false'] {
49
+ border: 1px solid #f2f2f2;
50
+ box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
51
+ }
52
+ }
53
+
54
+ &[data-is-mb='true'] {
55
+ border-radius: 16px;
56
+ background: white;
57
+ padding: 16px auto;
58
+
59
+ &[data-selected='true'] {
60
+ border: 1px solid ${theme.theme.mbColors.mint};
61
+ box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
62
+ }
63
+ &[data-selected='false'] {
64
+ border: none;
65
+ }
66
+ }
67
+
68
+ &[data-disabled='true'] {
69
+ cursor: auto;
70
+ }
71
+
72
+ .radio-group-item-heading {
73
+ margin-top: 8px;
74
+ //height: 48px;
75
+ text-align: center;
76
+ }
77
+
78
+ .gender-image {
79
+ width: 70px;
80
+ height: 70px;
81
+ &[data-is-mobile='true'] {
82
+ width: 40px;
83
+ height: 40px;
84
+ }
85
+ }
86
+ `;
87
+
88
+ const RadioImageGroup = ({ value, options, className, direction = 'horizontal', onChange, isDisabled, siteType, }) => {
89
+ const [check, setCheck] = React.useState(value);
90
+ const handleOnChange = (v) => {
91
+ if (isDisabled)
92
+ return;
93
+ setCheck(v);
94
+ onChange && onChange(v);
95
+ };
96
+ const isMarryBaby = siteType === 'marryBaby';
97
+ return (React__default["default"].createElement(StyledRadioImageGroup, { className: className, "data-direction": direction }, options.map((option, index$2) => (React__default["default"].createElement(StyledRadioImageItem, { "data-selected": (value || check) === option.value, "data-is-mb": isMarryBaby, "data-disabled": isDisabled, key: index$2, onClick: () => {
98
+ handleOnChange(option.value);
99
+ } },
100
+ React__default["default"].createElement("div", null,
101
+ option.content,
102
+ option.label && (React__default["default"].createElement(React__default["default"].Fragment, null, isMarryBaby ? (React__default["default"].createElement(index.MarryBabyText, { type: "subtitle-2", color: (value || check) === option.value
103
+ ? theme.theme.mbColors.dark
104
+ : theme.theme.mbColors.midGray }, option.label)) : (React__default["default"].createElement(index$1.Text, { type: "bold", color: (value || check) === option.value ? '#2D87F3' : 'black', className: "radio-group-item-heading", size: "label1" }, option.label))))))))));
105
+ };
106
+
107
+ exports.RadioImageGroup = RadioImageGroup;
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('./tslib.es6-4bc45883.js');
3
+ var tslib_es6 = require('./tslib.es6-7e140b89.js');
4
4
  var React = require('react');
5
- var index = require('./index-18ddaa1b.js');
5
+ var index = require('./index-df5cd44b.js');
6
6
  var styled = require('@emotion/styled');
7
- var index$2 = require('./index-858f60e0.js');
8
- var theme = require('./theme-f410baf6.js');
9
- var index$1 = require('./index-94fd9ea6.js');
10
- var index$3 = require('./index-ed587907.js');
7
+ var index$2 = require('./index-1efa7d84.js');
8
+ var theme = require('./theme-e4f7f487.js');
9
+ var index$1 = require('./index-05f106c2.js');
10
+ var index$3 = require('./index-def9867a.js');
11
11
 
12
12
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
13
13
 
@@ -0,0 +1,202 @@
1
+ 'use strict';
2
+
3
+ var tslib_es6 = require('./tslib.es6-7e140b89.js');
4
+ var React = require('react');
5
+ var core = require('@mantine/core');
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
8
+
9
+ var React__default = /*#__PURE__*/_interopDefault(React);
10
+
11
+ const ANIMATION_DURATION = '100ms';
12
+
13
+ var useStyles = core.createStyles((_theme, _params) => {
14
+ var _a, _b, _c, _d, _e, _f;
15
+ const { other } = _theme;
16
+ const { template } = other;
17
+ const { size, variant, skipHover, isError, isSuccess, color, children, theme: themeProp, } = _params;
18
+ const isMb = template === 'mb' || themeProp === 'marryBaby';
19
+ const finalColor = color || (themeProp && isMb ? 'mb' : _theme.primaryColor);
20
+ const isHexColor = finalColor.startsWith('#');
21
+ const hexColor50 = isHexColor
22
+ ? _theme.fn.lighten(color, 0.9)
23
+ : ((_b = (_a = _theme.colors) === null || _a === void 0 ? void 0 : _a[finalColor]) === null || _b === void 0 ? void 0 : _b[0]) || '';
24
+ const hexColor = isHexColor
25
+ ? finalColor
26
+ : (_d = (_c = _theme.colors) === null || _c === void 0 ? void 0 : _c[finalColor]) === null || _d === void 0 ? void 0 : _d[_theme.fn.primaryShade()];
27
+ const hoverHexColor = isHexColor
28
+ ? _theme.fn.darken(color, 0.05)
29
+ : (_f = (_e = _theme.colors) === null || _e === void 0 ? void 0 : _e[finalColor]) === null || _f === void 0 ? void 0 : _f[_theme.fn.primaryShade() + 1];
30
+ return {
31
+ root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ transition: `all ${ANIMATION_DURATION} ease-in-out`, '&:focus': {
32
+ outline: 'none',
33
+ } }, (!children && {
34
+ paddingLeft: '10px',
35
+ paddingRight: '10px',
36
+ '.mantine-Button-icon': {
37
+ margin: 0,
38
+ },
39
+ })), (() => {
40
+ switch (size) {
41
+ case 'xl':
42
+ return {
43
+ height: 56,
44
+ fontWeight: 600,
45
+ fontSize: isMb ? '14px' : '16px',
46
+ lineHeight: '24px',
47
+ };
48
+ case 'lg':
49
+ return {
50
+ height: 48,
51
+ fontWeight: 600,
52
+ fontSize: isMb ? '14px' : '16px',
53
+ lineHeight: '24px',
54
+ };
55
+ case 'md':
56
+ return {
57
+ height: 40,
58
+ fontWeight: 600,
59
+ fontSize: '14px',
60
+ lineHeight: '22px',
61
+ };
62
+ case 'sm':
63
+ return {
64
+ height: 32,
65
+ fontWeight: 600,
66
+ fontSize: isMb ? '12px' : '14px',
67
+ lineHeight: '22px',
68
+ paddingLeft: '16px',
69
+ paddingRight: '16px',
70
+ };
71
+ case 'xs':
72
+ return {
73
+ height: 24,
74
+ fontWeight: 600,
75
+ fontSize: '12px',
76
+ lineHeight: '18px',
77
+ paddingLeft: '8px',
78
+ paddingRight: '8px',
79
+ };
80
+ }
81
+ })()), (() => {
82
+ switch (variant) {
83
+ case 'primary': {
84
+ return Object.assign({ color: _theme.white, backgroundColor: hexColor }, (!skipHover && {
85
+ '&:hover': {
86
+ backgroundColor: hoverHexColor,
87
+ },
88
+ }));
89
+ }
90
+ case 'secondary':
91
+ return Object.assign({ color: hexColor, backgroundColor: 'transparent', border: `1px solid ${hexColor}` }, (!skipHover && {
92
+ '&:hover': {
93
+ backgroundColor: hexColor50,
94
+ border: `1px solid ${hexColor}`,
95
+ },
96
+ }));
97
+ case 'white':
98
+ return {
99
+ color: hexColor,
100
+ backgroundColor: 'transparent',
101
+ border: `1px solid transparent`,
102
+ '&:hover': {
103
+ backgroundColor: 'transparent',
104
+ borderColor: `transparent`,
105
+ },
106
+ };
107
+ case 'tertiary':
108
+ return {
109
+ color: _theme.colors.gray[8],
110
+ backgroundColor: _theme.white,
111
+ border: `1px solid ${_theme.colors.neutral[2]}`,
112
+ '&:hover': Object.assign({}, (!skipHover
113
+ ? {
114
+ backgroundColor: _theme.colors.neutral[0],
115
+ border: `1px solid ${_theme.colors.neutral[0]}`,
116
+ }
117
+ : {
118
+ backgroundColor: _theme.white,
119
+ border: `1px solid ${_theme.colors.neutral[2]}`,
120
+ })),
121
+ };
122
+ case 'light': {
123
+ return {
124
+ color: hexColor,
125
+ backgroundColor: hexColor50,
126
+ border: `1px solid transparent`,
127
+ '&:hover': Object.assign({}, (!skipHover
128
+ ? {
129
+ backgroundColor: _theme.white,
130
+ border: `1px solid ${hexColor50}`,
131
+ }
132
+ : {
133
+ backgroundColor: hexColor50,
134
+ border: `1px solid transparent`,
135
+ })),
136
+ };
137
+ }
138
+ case 'ghost':
139
+ return Object.assign({ color: hexColor, backgroundColor: 'transparent', border: `1px solid transparent` }, (!skipHover && {
140
+ '&:hover': {
141
+ backgroundColor: hexColor50,
142
+ border: `1px solid transparent`,
143
+ },
144
+ }));
145
+ }
146
+ })()), { '&[data-disabled]': {
147
+ backgroundColor: _theme.colors.gray[1],
148
+ color: _theme.colors.gray[4],
149
+ } }), (isError
150
+ ? Object.assign({ color: _theme.colors.red[6], backgroundColor: _theme.white, border: `1px solid ${_theme.colors.red[6]}` }, (!skipHover && {
151
+ '&:hover': {
152
+ backgroundColor: _theme.colors.red[0],
153
+ border: `1px solid ${_theme.colors.red[6]}`,
154
+ },
155
+ })) : {})), (isSuccess
156
+ ? Object.assign({ color: _theme.colors.green[8], backgroundColor: _theme.colors.green[0] }, (!skipHover && {
157
+ '&:hover': {
158
+ backgroundColor: _theme.colors.green[0],
159
+ },
160
+ })) : {})),
161
+ };
162
+ });
163
+
164
+ const MAPPED_VARIANT = {
165
+ primary: 'filled',
166
+ secondary: 'outline',
167
+ tertiary: 'default',
168
+ light: 'light',
169
+ ghost: 'subtle',
170
+ error: 'outline',
171
+ white: 'white',
172
+ success: 'subtle',
173
+ };
174
+ function filterObject(obj) {
175
+ const ret = {};
176
+ Object.keys(obj)
177
+ .filter((key) => obj[key] !== undefined)
178
+ .forEach((key) => (ret[key] = obj[key]));
179
+ return ret;
180
+ }
181
+ const Button = (props) => {
182
+ var _a, _b;
183
+ const theme = core.useMantineTheme();
184
+ const _c = Object.assign(Object.assign({}, (_b = (_a = theme.components) === null || _a === void 0 ? void 0 : _a.Button) === null || _b === void 0 ? void 0 : _b.defaultProps), filterObject(props)), { variant, size, color, skipHover, className, dataEventCategory, dataEventAction, dataEventLabel, children, theme: themeProp } = _c, rest = tslib_es6.__rest(_c, ["variant", "size", "color", "skipHover", "className", "dataEventCategory", "dataEventAction", "dataEventLabel", "children", "theme"]);
185
+ const isError = variant === 'error';
186
+ const { classes, cx } = useStyles({
187
+ variant,
188
+ size,
189
+ color,
190
+ skipHover,
191
+ isError,
192
+ isSuccess: variant === 'success',
193
+ children,
194
+ theme: themeProp,
195
+ });
196
+ return (React__default["default"].createElement(core.Button, Object.assign({ className: cx(className, variant), classNames: {
197
+ root: classes.root,
198
+ }, variant: MAPPED_VARIANT[variant], "data-variant": variant, "data-event-category": dataEventCategory, "data-event-action": dataEventAction, "data-event-label": dataEventLabel }, rest), children));
199
+ };
200
+
201
+ exports.ANIMATION_DURATION = ANIMATION_DURATION;
202
+ exports.Button = Button;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var locale = require('date-fns/locale');
4
- var index$1 = require('./index-18ddaa1b.js');
5
- var isProduction = require('./isProduction-2e55aee3.js');
4
+ var index$1 = require('./index-df5cd44b.js');
5
+ var isProduction = require('./isProduction-aa963bf9.js');
6
6
 
7
7
  const siteHost = {
8
8
  HELLO_HEALTH_GROUP: 'hellohealthgroup.com',
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var styled = require('@emotion/styled');
5
+ var index = require('./index-dd1392e3.js');
6
+ var theme = require('./theme-e4f7f487.js');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefault(React);
11
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
12
+
13
+ const StyledTextArea = styled__default["default"].div `
14
+ textarea {
15
+ width: 100%;
16
+ height: var(--textarea-height, 116px);
17
+ padding: 1rem;
18
+ border: 1px solid ${theme.theme.colors.gray200};
19
+ border-radius: 6px;
20
+ color: ${theme.theme.colors.gray800};
21
+ font-size: 14px;
22
+ resize: none;
23
+
24
+ &:focus {
25
+ box-shadow: 0px 0px 2px 2px #91caff;
26
+ }
27
+
28
+ &::placeholder {
29
+ color: ${theme.theme.colors.gray500};
30
+ }
31
+
32
+ &:disabled {
33
+ background-color: ${theme.theme.colors.neutral50};
34
+ cursor: not-allowed;
35
+ }
36
+ }
37
+ `;
38
+ /**
39
+ * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
40
+ */
41
+ const TextArea = React__default["default"].forwardRef(({ height, placeholder, labelText, labelColor, id, name, onChange, value, className, onKeyPress, disabled = false, }, ref) => {
42
+ return (React__default["default"].createElement(StyledTextArea, { className: className, style: { ['--textarea-height']: height || '116px' } },
43
+ labelText && (React__default["default"].createElement(index.Label, { size: "label2", style: { color: labelColor || '#595959' }, htmlFor: id }, labelText)),
44
+ React__default["default"].createElement("textarea", { name: name, ref: ref, placeholder: placeholder, id: id, onChange: (e) => onChange && onChange(e.target.value),
45
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
+ onKeyPress: (e) => onKeyPress && onKeyPress(e), value: value, disabled: disabled })));
47
+ });
48
+
49
+ exports.TextArea = TextArea;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index$1 = require('./index-1250dd06.js');
4
- var index$2 = require('./index-3a03bb34.js');
5
- var index = require('./index-18ddaa1b.js');
3
+ var index$1 = require('./index-e0bf03ac.js');
4
+ var index$2 = require('./index-a86ea1b6.js');
5
+ var index = require('./index-df5cd44b.js');
6
6
  var Cookies = require('js-cookie');
7
7
  var uuid = require('uuid');
8
- var isProduction = require('./isProduction-2e55aee3.js');
8
+ var isProduction = require('./isProduction-aa963bf9.js');
9
9
 
10
10
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
11
11
 
@@ -0,0 +1,136 @@
1
+ 'use strict';
2
+
3
+ var tslib_es6 = require('./tslib.es6-7e140b89.js');
4
+ var React = require('react');
5
+ var other = require('@hhgtech/icons/other');
6
+ var core = require('@mantine/core');
7
+ var index$1 = require('./index-05f106c2.js');
8
+ require('@mantine/dates');
9
+ require('./index-a86ea1b6.js');
10
+ require('./index-df5cd44b.js');
11
+ var index = require('./index-1efa7d84.js');
12
+ require('./useMantineLocale-a4f0c61d.js');
13
+ var index$2 = require('./index-d34cd464.js');
14
+ require('./index-a7de42d1.js');
15
+ require('./theme-e4f7f487.js');
16
+ var useTranslations = require('./useTranslations-200168a3.js');
17
+ require('@mantine/hooks');
18
+ require('./utils-524bda7c.js');
19
+
20
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
21
+
22
+ var React__default = /*#__PURE__*/_interopDefault(React);
23
+
24
+ var useStyles = core.createStyles((theme, { type }) => {
25
+ const isMarryBaby = theme.other.template === 'mb';
26
+ return {
27
+ root: {},
28
+ wrapper: Object.assign({ gap: core.rem(8) }, (type === 'radio' && {
29
+ justifyContent: 'flex-end',
30
+ gap: core.rem(24),
31
+ })),
32
+ groupErr: {
33
+ fontSize: core.rem(14),
34
+ },
35
+ itemRoot: Object.assign({}, (type === 'button'
36
+ ? {
37
+ flexGrow: 1,
38
+ width: '50%',
39
+ '&[data-checked="true"]': {
40
+ '.mantine-Radio-label': {
41
+ borderColor: theme.fn.primaryColor(),
42
+ },
43
+ },
44
+ }
45
+ : type === 'radio'
46
+ ? { padding: `${core.rem(10)} 0`, margin: 0 }
47
+ : {})),
48
+ itemLabelWrapper: {
49
+ padding: 0,
50
+ width: '100%',
51
+ },
52
+ itemLabel: Object.assign({ whiteSpace: 'nowrap' }, (type === 'button'
53
+ ? {
54
+ position: 'relative',
55
+ padding: `${core.rem(6)} ${core.rem(16)}`,
56
+ border: `1px solid ${isMarryBaby ? '#EAEAEC' : theme.colors.gray[2]}`,
57
+ borderRadius: core.rem(isMarryBaby ? 16 : 4),
58
+ cursor: 'pointer',
59
+ '&[data-disabled="true"]': {
60
+ background: theme.colors.gray[1],
61
+ color: `${theme.colors.gray[4]} !important`,
62
+ img: {
63
+ opacity: 0.5,
64
+ },
65
+ },
66
+ img: {
67
+ height: core.rem(26),
68
+ },
69
+ }
70
+ : type === 'radio'
71
+ ? { fontSize: core.rem(14) }
72
+ : {})),
73
+ itemInner: Object.assign(Object.assign({}, (type === 'button' && {
74
+ display: 'none',
75
+ })), (type === 'radio' && {
76
+ alignSelf: 'center',
77
+ })),
78
+ itemBody: Object.assign({}, (type === 'radio' && {
79
+ alignItems: 'center',
80
+ })),
81
+ };
82
+ });
83
+
84
+ const GenderOptionControl = (_a) => {
85
+ var { label, availableValue: availableValueInit, styles, isBaby, genderValue = {
86
+ male: 'male',
87
+ female: 'female',
88
+ }, type = 'button', hideLabel } = _a, radioProps = tslib_es6.__rest(_a, ["label", "availableValue", "styles", "isBaby", "genderValue", "type", "hideLabel"]);
89
+ const { t } = useTranslations.useTranslations();
90
+ const { classes, cx, theme } = useStyles({ type }, {
91
+ name: 'GenderOptionControl',
92
+ styles,
93
+ });
94
+ const isMarryBaby = theme.other.template === 'mb';
95
+ const [availableValue, setAvailableValue] = React.useState();
96
+ const ref = React.useRef(null);
97
+ const genderOptions = React.useMemo(() => [
98
+ {
99
+ value: genderValue.male,
100
+ label: isBaby ? t('gender.boy') : t('gender.male'),
101
+ icon: isBaby ? (isMarryBaby ? (React__default["default"].createElement(other.BabyBoyMB, null)) : (index.CommonGAssets.getAssetPath('health-tools/boy-icon.svg'))) : (index.CommonGAssets.getAssetPath('health-tools/male-icon.svg')),
102
+ },
103
+ {
104
+ value: genderValue.female,
105
+ label: isBaby ? t('gender.girl') : t('gender.female'),
106
+ icon: isBaby ? (isMarryBaby ? (React__default["default"].createElement(other.BabyGirlMB, null)) : (index.CommonGAssets.getAssetPath('health-tools/girl-icon.svg'))) : (index.CommonGAssets.getAssetPath('health-tools/female-icon.svg')),
107
+ },
108
+ ], []);
109
+ React.useEffect(() => {
110
+ setAvailableValue(availableValueInit);
111
+ }, [availableValueInit]);
112
+ return (React__default["default"].createElement(core.Box, { ref: ref, className: classes.root },
113
+ React__default["default"].createElement(index$1.Radio.Group, Object.assign({ className: "radio-group", label: !hideLabel ? (React__default["default"].createElement(index$2.Text, { as: "label", size: "s4", weight: "semiBold" }, label ||
114
+ (isBaby
115
+ ? t('tools.selectBabyGender')
116
+ : t('tools.selectGender')))) : undefined, size: "lg" }, radioProps, { classNames: {
117
+ error: classes.groupErr,
118
+ } }, (type === 'radio' && {
119
+ error: null,
120
+ })),
121
+ React__default["default"].createElement(core.Flex, { className: cx(classes.wrapper) }, genderOptions.map((i) => (React__default["default"].createElement(index$1.Radio, Object.assign({ className: "gender-item", size: "sm", classNames: {
122
+ root: classes.itemRoot,
123
+ labelWrapper: classes.itemLabelWrapper,
124
+ label: classes.itemLabel,
125
+ inner: classes.itemInner,
126
+ body: classes.itemBody,
127
+ }, key: i.value, value: i.value }, (availableValue &&
128
+ i.value !== availableValue && {
129
+ disabled: true,
130
+ }), { label: React__default["default"].createElement(core.Flex, { gap: core.rem(8), align: 'center', justify: 'center', sx: { zIndex: 0 } },
131
+ type === 'button' &&
132
+ (typeof i.icon === 'string' ? (React__default["default"].createElement("img", { src: i.icon, className: "gender-image", alt: "female", loading: "lazy" })) : (i.icon)),
133
+ React__default["default"].createElement(index$2.Text, { size: "p3" }, i.label)) }))))))));
134
+ };
135
+
136
+ exports.GenderOptionControl = GenderOptionControl;