@hhgtech/hhg-components 1.29.80 → 1.29.82

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 (370) hide show
  1. package/build/{index-1250dd06.js → WhatsApp-46f4f408.js} +24 -276
  2. package/build/adapters.js +17 -16
  3. package/build/atoms.js +102 -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 -163
  8. package/build/{constants-ca71f9e5.js → constants-223c01fc.js} +2 -2
  9. package/build/{constants-4e7c419e.js → constants-8743b014.js} +0 -136
  10. package/build/constants-a78fa8b3.js +318 -0
  11. package/build/constants-f182fc32.js +425 -0
  12. package/build/constants.js +3 -3
  13. package/build/{core-bb2587e7.js → core-9d69a722.js} +2 -2
  14. package/build/{dataTransform-469b75eb.js → dataTransform-ded2692d.js} +1 -1
  15. package/build/{index-5d9ad07e.js → dataTransform-e39297c1.js} +3 -52
  16. package/build/defaultClassWrapper-b7719693.js +21 -0
  17. package/build/ecom.js +5 -5
  18. package/build/esm/WhatsApp-c599b715.js +46 -0
  19. package/build/esm/adapters.js +17 -16
  20. package/build/esm/atoms.js +59 -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 -73
  25. package/build/esm/constants-a5827634.js +307 -0
  26. package/build/esm/{constants-7661ce64.js → constants-bb470362.js} +2 -2
  27. package/build/esm/{constants-508ba335.js → constants-f6b2e49d.js} +1 -127
  28. package/build/esm/constants-fa475b0f.js +417 -0
  29. package/build/esm/constants.js +3 -3
  30. package/build/esm/{core-5a22b83e.js → core-80bfe8b7.js} +2 -2
  31. package/build/esm/{dataTransform-f5db5afb.js → dataTransform-55f67eed.js} +1 -1
  32. package/build/esm/{index-9b54376f.js → dataTransform-623716c3.js} +5 -53
  33. package/build/esm/defaultClassWrapper-00903c00.js +15 -0
  34. package/build/esm/ecom.js +5 -5
  35. package/build/esm/fixedBottomAdBlock-60a5d48f.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-82855adc.js} +4 -4
  39. package/build/esm/{getSocialList-96301dbb.js → getSocialList-7d2cf48d.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-da2b8f22.js → index-01405723.js} +12 -11
  46. package/build/esm/index-01b5d2e9.js +202 -0
  47. package/build/esm/index-02d3f05b.js +1681 -0
  48. package/build/esm/{index-82861dba.js → index-046778af.js} +2 -2
  49. package/build/esm/{index-df29c4e0.js → index-049e0270.js} +33 -5
  50. package/build/esm/index-07f3f47e.js +14 -0
  51. package/build/esm/index-0b745f46.js +1349 -0
  52. package/build/esm/{index-e68d4285.js → index-0ca9b175.js} +2 -2
  53. package/build/esm/{index-c4699d44.js → index-0cd3523c.js} +35 -176
  54. package/build/esm/index-0ee66974.js +95 -0
  55. package/build/esm/index-10ab6596.js +489 -0
  56. package/build/esm/{index-5773eb18.js → index-13d8dd4b.js} +6 -6
  57. package/build/esm/{index.styled-9e147e72.js → index-1c9b481b.js} +21 -3
  58. package/build/esm/index-1d3c6ce7.js +195 -0
  59. package/build/esm/{index-474e0ae5.js → index-21256394.js} +2 -13
  60. package/build/esm/{index-2d47a346.js → index-219e3a35.js} +11 -10
  61. package/build/esm/{index-679d5383.js → index-29908d2c.js} +1 -1
  62. package/build/esm/{utils-ff5d88a2.js → index-2dc7803d.js} +71 -105
  63. package/build/esm/{index-4dcdce19.js → index-5723381f.js} +2 -2
  64. package/build/esm/{index-c807ef87.js → index-6210f454.js} +3 -3
  65. package/build/esm/index-7a1ea734.js +100 -0
  66. package/build/esm/{index-53a86337.js → index-7c384ae6.js} +5 -5
  67. package/build/esm/index-8eb04f36.js +130 -0
  68. package/build/esm/index-8fcf671c.js +335 -0
  69. package/build/esm/{index-80f4d7df.js → index-9471fca1.js} +2 -2
  70. package/build/esm/{index-92eedeb0.js → index-9b3a8b6d.js} +12 -201
  71. package/build/esm/{index-3c7f109c.js → index-9b9c1499.js} +2 -2
  72. package/build/esm/index-9f99909b.js +54 -0
  73. package/build/esm/index-ac2a8f95.js +1114 -0
  74. package/build/esm/index-acf8b60e.js +42 -0
  75. package/build/esm/index-ad1c7c38.js +275 -0
  76. package/build/esm/{index-bcd13f1d.js → index-bcedec73.js} +13 -12
  77. package/build/esm/{index-ef855343.js → index-c013ba1b.js} +4 -4
  78. package/build/esm/index-c2584051.js +262 -0
  79. package/build/esm/{types-957334f2.js → index-c430773c.js} +559 -3519
  80. package/build/esm/index-cdc50618.js +25 -0
  81. package/build/esm/{index-77dddeb9.js → index-cfedca38.js} +2 -2
  82. package/build/esm/index-d6a5f5cf.js +557 -0
  83. package/build/esm/index-e0b0d6a2.js +847 -0
  84. package/build/esm/index-ea63e0d2.js +148 -0
  85. package/build/esm/{index-32e2b169.js → index-f22f6e6e.js} +65 -28
  86. package/build/esm/index-f4b938f2.js +18 -0
  87. package/build/esm/index-f660abb7.js +156 -0
  88. package/build/esm/index-fa67d66e.js +789 -0
  89. package/build/esm/index.js +98 -73
  90. package/build/esm/labelSorting-7351409a.js +47 -0
  91. package/build/esm/lead.js +23 -33
  92. package/build/esm/logoIcon-3a581efb.js +104 -0
  93. package/build/esm/mantine.js +22 -20
  94. package/build/esm/misc.js +21 -21
  95. package/build/esm/molecules.js +88 -0
  96. package/build/esm/navigation.js +37 -37
  97. package/build/esm/onboardingV2.js +26 -35
  98. package/build/esm/organisms.js +57 -0
  99. package/build/esm/pwg.js +19 -19
  100. package/build/esm/{routing-7bc3e320.js → routing-9e330438.js} +2 -2
  101. package/build/esm/subot.js +31 -27
  102. package/build/esm/surveyOrPremiumBanner.js +45 -0
  103. package/build/esm/surveyQuestionCard.js +13 -0
  104. package/build/esm/surveyThankyouCard-ec204631.js +446 -0
  105. package/build/esm/together.js +52 -45
  106. package/build/esm/togetherAtoms.js +41 -0
  107. package/build/esm/togetherComponentGlobalContext.js +12 -0
  108. package/build/esm/togetherMolecules.js +53 -0
  109. package/build/esm/togetherOrganisms.js +57 -0
  110. package/build/esm/treePopoverMenu-cb214db6.js +332 -0
  111. package/build/esm/types-721e7a66.js +5 -0
  112. package/build/esm/{types-ee1be1e3.js → types-ffcf5fb4.js} +13 -13
  113. package/build/esm/types.js +1 -1
  114. package/build/esm/{useCategory-7e020652.js → useCategory-553bee0b.js} +5 -5
  115. package/build/esm/{useHealthToolCache-c70e4fd5.js → useHealthToolCache-6ce1724e.js} +2 -2
  116. package/build/esm/{useMantineLocale-1373e175.js → useMantineLocale-453f8013.js} +3 -3
  117. package/build/esm/{usePlacesAutocomplete-4bfe976e.js → usePlacesAutocomplete-8925d4fb.js} +1 -1
  118. package/build/esm/useTogetherAuthRequiredAction.js +60 -0
  119. package/build/esm/{useTranslations-adad3b06.js → useTranslations-b970f667.js} +1 -1
  120. package/build/esm/{utils-dee27bfd.js → utils-3b29eb79.js} +8 -356
  121. package/build/esm/{utils-b14c10f9.js → utils-6d45bdd1.js} +1 -1
  122. package/build/esm/vaccination.js +18 -29
  123. package/build/fixedBottomAdBlock-0129a006.js +3521 -0
  124. package/build/footer.js +18 -18
  125. package/build/gAssets.js +4 -4
  126. package/build/{getDynamicHealthTool-357666f7.js → getDynamicHealthTool-f08b5fab.js} +4 -4
  127. package/build/{getSocialList-c1404aff.js → getSocialList-8cc32f7c.js} +8 -9
  128. package/build/healthToolsForm.js +54 -0
  129. package/build/healthToolsForms.d.ts +7 -0
  130. package/build/hooks.js +17 -17
  131. package/build/i18n.js +1 -1
  132. package/build/i18nV2.js +1 -1
  133. package/build/index-00a78d81.js +565 -0
  134. package/build/index-077bf48f.js +803 -0
  135. package/build/{index-bf6e5e4e.js → index-0b727664.js} +5 -5
  136. package/build/{index-917c975c.js → index-10760994.js} +37 -9
  137. package/build/index-130e0f35.js +1693 -0
  138. package/build/{index-82a3ba38.js → index-16ed0d98.js} +68 -33
  139. package/build/{index-040620f6.js → index-1e1d8eb1.js} +13 -12
  140. package/build/{index-e60c98f8.js → index-1fdf2f01.js} +2 -2
  141. package/build/{index-61ef343d.js → index-206afefb.js} +4 -4
  142. package/build/{types-c8956642.js → index-2afbeb3d.js} +761 -3727
  143. package/build/{index.styled-8aca5145.js → index-2fd9063e.js} +22 -4
  144. package/build/index-33432b02.js +270 -0
  145. package/build/index-3eb666e6.js +202 -0
  146. package/build/{index-94a2b0f9.js → index-405faafa.js} +2 -2
  147. package/build/index-4357a324.js +136 -0
  148. package/build/index-466a2c32.js +1362 -0
  149. package/build/index-4b7d4b5b.js +156 -0
  150. package/build/{index-5029b5d8.js → index-4bc690c9.js} +1 -1
  151. package/build/index-4cdcdbbe.js +498 -0
  152. package/build/index-53e14542.js +102 -0
  153. package/build/{index-91027d35.js → index-54aeefca.js} +2 -2
  154. package/build/index-60f6d762.js +1127 -0
  155. package/build/{index-858f60e0.js → index-64d8db08.js} +2 -2
  156. package/build/index-6aeb5ff5.js +866 -0
  157. package/build/index-71843eb4.js +61 -0
  158. package/build/index-765ed75d.js +209 -0
  159. package/build/index-7953fb8e.js +167 -0
  160. package/build/{index-d710511f.js → index-7ecc69af.js} +12 -11
  161. package/build/index-82c85f9d.js +277 -0
  162. package/build/index-9e8877c0.js +25 -0
  163. package/build/index-a2664204.js +107 -0
  164. package/build/{index-c67602d7.js → index-a6a9855f.js} +1 -13
  165. package/build/index-a8680a58.js +49 -0
  166. package/build/{index-ed587907.js → index-a9bbb5aa.js} +11 -10
  167. package/build/{utils-263a60f7.js → index-a9bdf889.js} +76 -120
  168. package/build/{index-f0a532c7.js → index-b66ae554.js} +6 -6
  169. package/build/index-ca616373.js +20 -0
  170. package/build/{index-b0414701.js → index-d9919cd2.js} +57 -200
  171. package/build/index-dd074159.js +32 -0
  172. package/build/{index-94fd9ea6.js → index-dff7ee1b.js} +32 -222
  173. package/build/{index-3a03bb34.js → index-e3bbd009.js} +2 -2
  174. package/build/index-ec34e358.js +343 -0
  175. package/build/{index-8c826f3e.js → index-f222ee45.js} +2 -2
  176. package/build/{index-2b32b21e.js → index-fd3e1d16.js} +2 -2
  177. package/build/index.js +251 -226
  178. package/build/labelSorting-f86081b7.js +53 -0
  179. package/build/lead.js +29 -39
  180. package/build/logoIcon-21a16853.js +110 -0
  181. package/build/mantine.js +24 -23
  182. package/build/misc.js +21 -21
  183. package/build/molecules.js +149 -0
  184. package/build/navigation.js +37 -37
  185. package/build/onboardingV2.js +45 -54
  186. package/build/organisms.js +74 -0
  187. package/build/pwg.js +19 -19
  188. package/build/{routing-bc8197d8.js → routing-d6c9099a.js} +2 -2
  189. package/build/subot.js +115 -111
  190. package/build/surveyOrPremiumBanner.js +53 -0
  191. package/build/surveyQuestionCard.js +22 -0
  192. package/build/surveyThankyouCard-5b23b8f6.js +454 -0
  193. package/build/together.js +100 -93
  194. package/build/togetherAtoms.js +55 -0
  195. package/build/togetherComponentGlobalContext.js +26 -0
  196. package/build/togetherMolecules.js +86 -0
  197. package/build/togetherOrganisms.js +71 -0
  198. package/build/treePopoverMenu-c0cb395f.js +343 -0
  199. package/build/{types-6996fb20.js → types-8d9c5f21.js} +13 -13
  200. package/build/types-b25ffde0.js +7 -0
  201. package/build/types.js +1 -1
  202. package/build/{useCategory-7d1f8a7d.js → useCategory-b695fd3a.js} +5 -5
  203. package/build/{useHealthToolCache-b7dea4aa.js → useHealthToolCache-048807ea.js} +2 -2
  204. package/build/{useMantineLocale-b243f628.js → useMantineLocale-0d63dfea.js} +3 -3
  205. package/build/{usePlacesAutocomplete-08b86d2d.js → usePlacesAutocomplete-9520e525.js} +1 -1
  206. package/build/useTogetherAuthRequiredAction.js +70 -0
  207. package/build/{useTranslations-d5456a98.js → useTranslations-685f989b.js} +1 -1
  208. package/build/{utils-9f62698f.js → utils-169c6a7d.js} +16 -375
  209. package/build/{utils-d421a448.js → utils-1a00c0f8.js} +1 -1
  210. package/build/vaccination.js +58 -69
  211. package/package.json +1 -1
  212. package/build/Instagram-91ba1e26.js +0 -32
  213. package/build/esm/Instagram-319a8e34.js +0 -26
  214. package/build/esm/index-13bf84f4.js +0 -298
  215. package/build/esm/index-1a3f36c3.js +0 -1086
  216. package/build/esm/index-800b956a.js +0 -7245
  217. package/build/esm/index-aebf96f3.js +0 -33
  218. package/build/esm/index-d48b5db6.js +0 -71
  219. package/build/esm/index-d5b66388.js +0 -23
  220. package/build/esm/index.styles-0ef0135c.js +0 -1322
  221. package/build/index-0523771b.js +0 -7324
  222. package/build/index-20ebc0bd.js +0 -30
  223. package/build/index-dbf560f2.js +0 -1100
  224. package/build/index-efcbac97.js +0 -39
  225. package/build/index-f5103542.js +0 -77
  226. package/build/index.styles-2bdfde5f.js +0 -1361
  227. /package/build/{BMI_BOYS.percentile.monthly-c38ce03a.js → BMI_BOYS.percentile.monthly-1aa95e30.js} +0 -0
  228. /package/build/{BMI_BOYS.percentile.weekly-1eccee42.js → BMI_BOYS.percentile.weekly-61d78e1c.js} +0 -0
  229. /package/build/{BMI_BOYS.percentile.yearly-0e7d5cb6.js → BMI_BOYS.percentile.yearly-f80e040e.js} +0 -0
  230. /package/build/{BMI_BOYS.zscore.monthly-f72f392f.js → BMI_BOYS.zscore.monthly-a6c7c8ff.js} +0 -0
  231. /package/build/{BMI_BOYS.zscore.weekly-94fd04e6.js → BMI_BOYS.zscore.weekly-742f7028.js} +0 -0
  232. /package/build/{BMI_BOYS.zscore.yearly-90d5e091.js → BMI_BOYS.zscore.yearly-c19cccd5.js} +0 -0
  233. /package/build/{BMI_GIRLS.percentile.monthly-de3a9a14.js → BMI_GIRLS.percentile.monthly-089d3981.js} +0 -0
  234. /package/build/{BMI_GIRLS.percentile.weekly-1e1ce2b7.js → BMI_GIRLS.percentile.weekly-0cc52cda.js} +0 -0
  235. /package/build/{BMI_GIRLS.percentile.yearly-70a44f31.js → BMI_GIRLS.percentile.yearly-10bc603f.js} +0 -0
  236. /package/build/{BMI_GIRLS.zscore.monthly-be4399a5.js → BMI_GIRLS.zscore.monthly-c3fe57f3.js} +0 -0
  237. /package/build/{BMI_GIRLS.zscore.weekly-6121376b.js → BMI_GIRLS.zscore.weekly-b83a54db.js} +0 -0
  238. /package/build/{BMI_GIRLS.zscore.yearly-822e7686.js → BMI_GIRLS.zscore.yearly-5f13cda2.js} +0 -0
  239. /package/build/{ChevronDown-f9d31306.js → ChevronDown-2fd86d66.js} +0 -0
  240. /package/build/{Close-27e0dcf1.js → Close-711196b0.js} +0 -0
  241. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5e094c3e.js → HEAD CIRCUM_BOYS.percentile.monthly-03b8d7fb.js} +0 -0
  242. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-24f827d8.js → HEAD CIRCUM_BOYS.percentile.weekly-9ebd3eb6.js} +0 -0
  243. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-d7478410.js → HEAD CIRCUM_BOYS.percentile.yearly-8e97b738.js} +0 -0
  244. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1123cad6.js → HEAD CIRCUM_BOYS.zscore.monthly-e7892261.js} +0 -0
  245. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-a5b55615.js → HEAD CIRCUM_BOYS.zscore.weekly-47c5af84.js} +0 -0
  246. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d818764.js → HEAD CIRCUM_BOYS.zscore.yearly-9a1bc325.js} +0 -0
  247. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-dddf5ad9.js → HEAD CIRCUM_GIRLS.percentile.monthly-d84491d7.js} +0 -0
  248. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a80d6989.js → HEAD CIRCUM_GIRLS.percentile.weekly-a6f38c3e.js} +0 -0
  249. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-01850b67.js → HEAD CIRCUM_GIRLS.percentile.yearly-5771d277.js} +0 -0
  250. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-82890053.js → HEAD CIRCUM_GIRLS.zscore.monthly-e3633bcc.js} +0 -0
  251. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-069f8c8f.js → HEAD CIRCUM_GIRLS.zscore.weekly-23b0ab1a.js} +0 -0
  252. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-ae5ef237.js → HEAD CIRCUM_GIRLS.zscore.yearly-20f29cf1.js} +0 -0
  253. /package/build/{HEIGHT_BOYS.percentile.monthly-d0da1664.js → HEIGHT_BOYS.percentile.monthly-57cc12ee.js} +0 -0
  254. /package/build/{HEIGHT_BOYS.percentile.weekly-55446b8a.js → HEIGHT_BOYS.percentile.weekly-c788506a.js} +0 -0
  255. /package/build/{HEIGHT_BOYS.percentile.yearly-f2f5b19f.js → HEIGHT_BOYS.percentile.yearly-ac56c1f2.js} +0 -0
  256. /package/build/{HEIGHT_BOYS.zscore.monthly-e6ed98ef.js → HEIGHT_BOYS.zscore.monthly-1bb78253.js} +0 -0
  257. /package/build/{HEIGHT_BOYS.zscore.weekly-d0d37479.js → HEIGHT_BOYS.zscore.weekly-22737c43.js} +0 -0
  258. /package/build/{HEIGHT_BOYS.zscore.yearly-4023b808.js → HEIGHT_BOYS.zscore.yearly-90f6cd0a.js} +0 -0
  259. /package/build/{HEIGHT_GIRLS.percentile.monthly-6d9aeadc.js → HEIGHT_GIRLS.percentile.monthly-019f80d2.js} +0 -0
  260. /package/build/{HEIGHT_GIRLS.percentile.weekly-2087c9b4.js → HEIGHT_GIRLS.percentile.weekly-ceed9817.js} +0 -0
  261. /package/build/{HEIGHT_GIRLS.percentile.yearly-f98d8b05.js → HEIGHT_GIRLS.percentile.yearly-3e5192ac.js} +0 -0
  262. /package/build/{HEIGHT_GIRLS.zscore.monthly-99d299e3.js → HEIGHT_GIRLS.zscore.monthly-f8fca0b6.js} +0 -0
  263. /package/build/{HEIGHT_GIRLS.zscore.weekly-c46ed349.js → HEIGHT_GIRLS.zscore.weekly-827b17e8.js} +0 -0
  264. /package/build/{HEIGHT_GIRLS.zscore.yearly-fddefca4.js → HEIGHT_GIRLS.zscore.yearly-3cdb483d.js} +0 -0
  265. /package/build/{Visible-01dfaec9.js → Visible-515a4eec.js} +0 -0
  266. /package/build/{WEIGHT_BOYS.percentile.monthly-cead8ece.js → WEIGHT_BOYS.percentile.monthly-2ecbd498.js} +0 -0
  267. /package/build/{WEIGHT_BOYS.percentile.weekly-a97fa31a.js → WEIGHT_BOYS.percentile.weekly-75c9c25c.js} +0 -0
  268. /package/build/{WEIGHT_BOYS.percentile.yearly-c2c41945.js → WEIGHT_BOYS.percentile.yearly-03e7cea6.js} +0 -0
  269. /package/build/{WEIGHT_BOYS.zscore.monthly-d8de7dc2.js → WEIGHT_BOYS.zscore.monthly-2ff9fb56.js} +0 -0
  270. /package/build/{WEIGHT_BOYS.zscore.weekly-41a6f6bf.js → WEIGHT_BOYS.zscore.weekly-e9f7fe2d.js} +0 -0
  271. /package/build/{WEIGHT_BOYS.zscore.yearly-5762fa8a.js → WEIGHT_BOYS.zscore.yearly-4a96f34f.js} +0 -0
  272. /package/build/{WEIGHT_GIRLS.percentile.monthly-526fb18a.js → WEIGHT_GIRLS.percentile.monthly-5bf09e30.js} +0 -0
  273. /package/build/{WEIGHT_GIRLS.percentile.weekly-6c63ed2b.js → WEIGHT_GIRLS.percentile.weekly-f737ae23.js} +0 -0
  274. /package/build/{WEIGHT_GIRLS.percentile.yearly-0ecdbd3a.js → WEIGHT_GIRLS.percentile.yearly-56ebc8eb.js} +0 -0
  275. /package/build/{WEIGHT_GIRLS.zscore.monthly-0c353536.js → WEIGHT_GIRLS.zscore.monthly-4697d3b5.js} +0 -0
  276. /package/build/{WEIGHT_GIRLS.zscore.weekly-97898ff6.js → WEIGHT_GIRLS.zscore.weekly-3633820e.js} +0 -0
  277. /package/build/{WEIGHT_GIRLS.zscore.yearly-cbebe807.js → WEIGHT_GIRLS.zscore.yearly-a9a04790.js} +0 -0
  278. /package/build/{animation-8605b5bb.js → animation-85d012ee.js} +0 -0
  279. /package/build/{cart-ab5762b8.js → cart-8877bd63.js} +0 -0
  280. /package/build/{cookieHelper-b2132ffc.js → cookieHelper-86ae022e.js} +0 -0
  281. /package/build/{doctor-f121fd79.js → doctor-2c14fed1.js} +0 -0
  282. /package/build/esm/{BMI_BOYS.percentile.monthly-e507536d.js → BMI_BOYS.percentile.monthly-42ff2c64.js} +0 -0
  283. /package/build/esm/{BMI_BOYS.percentile.weekly-3cbf7392.js → BMI_BOYS.percentile.weekly-b4a6c521.js} +0 -0
  284. /package/build/esm/{BMI_BOYS.percentile.yearly-c7d54bc3.js → BMI_BOYS.percentile.yearly-d3bc1a77.js} +0 -0
  285. /package/build/esm/{BMI_BOYS.zscore.monthly-4d09aca0.js → BMI_BOYS.zscore.monthly-c4506dfa.js} +0 -0
  286. /package/build/esm/{BMI_BOYS.zscore.weekly-319b78c5.js → BMI_BOYS.zscore.weekly-ddf3b3f9.js} +0 -0
  287. /package/build/esm/{BMI_BOYS.zscore.yearly-764732c5.js → BMI_BOYS.zscore.yearly-e0e3139e.js} +0 -0
  288. /package/build/esm/{BMI_GIRLS.percentile.monthly-5a8e4069.js → BMI_GIRLS.percentile.monthly-96686bcc.js} +0 -0
  289. /package/build/esm/{BMI_GIRLS.percentile.weekly-a2fe6df1.js → BMI_GIRLS.percentile.weekly-c3106a65.js} +0 -0
  290. /package/build/esm/{BMI_GIRLS.percentile.yearly-810fe911.js → BMI_GIRLS.percentile.yearly-b38c1f1f.js} +0 -0
  291. /package/build/esm/{BMI_GIRLS.zscore.monthly-afab03b0.js → BMI_GIRLS.zscore.monthly-f8a7836f.js} +0 -0
  292. /package/build/esm/{BMI_GIRLS.zscore.weekly-8f4e7198.js → BMI_GIRLS.zscore.weekly-4c1fc771.js} +0 -0
  293. /package/build/esm/{BMI_GIRLS.zscore.yearly-7f043621.js → BMI_GIRLS.zscore.yearly-dce5e66a.js} +0 -0
  294. /package/build/esm/{ChevronDown-d24fd24b.js → ChevronDown-31ea3e19.js} +0 -0
  295. /package/build/esm/{Close-6243d246.js → Close-40d598bc.js} +0 -0
  296. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-91c12176.js → HEAD CIRCUM_BOYS.percentile.monthly-34e3fa1c.js} +0 -0
  297. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-40e77c68.js → HEAD CIRCUM_BOYS.percentile.weekly-d3f3568f.js} +0 -0
  298. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-1a284ec4.js → HEAD CIRCUM_BOYS.percentile.yearly-dfae3ad2.js} +0 -0
  299. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-16f716a6.js → HEAD CIRCUM_BOYS.zscore.monthly-95840c2f.js} +0 -0
  300. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-07d20112.js → HEAD CIRCUM_BOYS.zscore.weekly-8b198c1c.js} +0 -0
  301. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1201a10a.js → HEAD CIRCUM_BOYS.zscore.yearly-b7d639ad.js} +0 -0
  302. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a6348baf.js → HEAD CIRCUM_GIRLS.percentile.monthly-47caa070.js} +0 -0
  303. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-af26363f.js → HEAD CIRCUM_GIRLS.percentile.weekly-bae46665.js} +0 -0
  304. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e7637928.js → HEAD CIRCUM_GIRLS.percentile.yearly-81989cdd.js} +0 -0
  305. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-9be0e0ca.js → HEAD CIRCUM_GIRLS.zscore.monthly-f2f7d985.js} +0 -0
  306. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-3ffe9dcd.js → HEAD CIRCUM_GIRLS.zscore.weekly-e287ddb7.js} +0 -0
  307. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d7226db1.js → HEAD CIRCUM_GIRLS.zscore.yearly-8790b62a.js} +0 -0
  308. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-c2e21892.js → HEIGHT_BOYS.percentile.monthly-5d2b6466.js} +0 -0
  309. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-22018f1e.js → HEIGHT_BOYS.percentile.weekly-a38ad13e.js} +0 -0
  310. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-391cd377.js → HEIGHT_BOYS.percentile.yearly-e4841712.js} +0 -0
  311. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-e11f50f4.js → HEIGHT_BOYS.zscore.monthly-d8e722f8.js} +0 -0
  312. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-8e2c8306.js → HEIGHT_BOYS.zscore.weekly-a92ea3ca.js} +0 -0
  313. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-78e974bb.js → HEIGHT_BOYS.zscore.yearly-3af1adce.js} +0 -0
  314. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-0a49ff89.js → HEIGHT_GIRLS.percentile.monthly-c5203801.js} +0 -0
  315. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-5e158a8e.js → HEIGHT_GIRLS.percentile.weekly-4c25d07f.js} +0 -0
  316. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f5544ab2.js → HEIGHT_GIRLS.percentile.yearly-f91e2e27.js} +0 -0
  317. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-92f67ec2.js → HEIGHT_GIRLS.zscore.monthly-b2a60aca.js} +0 -0
  318. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f5d11f32.js → HEIGHT_GIRLS.zscore.weekly-0a98c520.js} +0 -0
  319. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-4fe6aad9.js → HEIGHT_GIRLS.zscore.yearly-8070d58f.js} +0 -0
  320. /package/build/esm/{Visible-7f408f98.js → Visible-e3e4fb6f.js} +0 -0
  321. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-b09ae73a.js → WEIGHT_BOYS.percentile.monthly-b262b97d.js} +0 -0
  322. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-733a24a9.js → WEIGHT_BOYS.percentile.weekly-7e817f9f.js} +0 -0
  323. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-2bfcfc93.js → WEIGHT_BOYS.percentile.yearly-b7f1786a.js} +0 -0
  324. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c0d3a746.js → WEIGHT_BOYS.zscore.monthly-014af835.js} +0 -0
  325. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b41ff498.js → WEIGHT_BOYS.zscore.weekly-4577f724.js} +0 -0
  326. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-15bb7570.js → WEIGHT_BOYS.zscore.yearly-08fd3f13.js} +0 -0
  327. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5b79dea8.js → WEIGHT_GIRLS.percentile.monthly-a6e1aa0d.js} +0 -0
  328. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-33052637.js → WEIGHT_GIRLS.percentile.weekly-4c0b6f94.js} +0 -0
  329. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-64382b53.js → WEIGHT_GIRLS.percentile.yearly-bf689a3a.js} +0 -0
  330. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-63f19584.js → WEIGHT_GIRLS.zscore.monthly-f82fc3c8.js} +0 -0
  331. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-938ebce2.js → WEIGHT_GIRLS.zscore.weekly-854ce987.js} +0 -0
  332. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-016e1cfc.js → WEIGHT_GIRLS.zscore.yearly-2a3b869a.js} +0 -0
  333. /package/build/esm/{animation-bf170ee9.js → animation-85d9a0ed.js} +0 -0
  334. /package/build/esm/{cart-5bdb4fa5.js → cart-1ac23ce7.js} +0 -0
  335. /package/build/esm/{cookieHelper-ff6c13b4.js → cookieHelper-6c3b4790.js} +0 -0
  336. /package/build/esm/{doctor-f4cadffb.js → doctor-e0c2476d.js} +0 -0
  337. /package/build/esm/{index-eeedf0f0.js → index-189d7601.js} +0 -0
  338. /package/build/esm/{index-b87433a0.js → index-21bca818.js} +0 -0
  339. /package/build/esm/{index-6c0f560b.js → index-266a32ff.js} +0 -0
  340. /package/build/esm/{index-528e64f4.js → index-8684181f.js} +0 -0
  341. /package/build/esm/{isProduction-2838b9ae.js → isProduction-1937d355.js} +0 -0
  342. /package/build/esm/{localizeNumberFormat-9303c122.js → localizeNumberFormat-1f000110.js} +0 -0
  343. /package/build/esm/{normalizeLink-38ab69f4.js → normalizeLink-7a93ebb9.js} +0 -0
  344. /package/build/esm/{number-fcae69c7.js → number-1d1ba14a.js} +0 -0
  345. /package/build/esm/{paths-d1c61fa8.js → paths-b83be1a0.js} +0 -0
  346. /package/build/esm/{theme-0af1cc3d.js → theme-7dadf4a1.js} +0 -0
  347. /package/build/esm/{translationsContext-036458b7.js → translationsContext-42a1fa63.js} +0 -0
  348. /package/build/esm/{tslib.es6-2673b49d.js → tslib.es6-06ba3978.js} +0 -0
  349. /package/build/esm/{useIsInit-2c5ff93d.js → useIsInit-f4dec279.js} +0 -0
  350. /package/build/esm/{useOutsideClick-7023de23.js → useOutsideClick-210c1134.js} +0 -0
  351. /package/build/esm/{useScrollbarSize-dfdab229.js → useScrollbarSize-909ae7ec.js} +0 -0
  352. /package/build/esm/{useUniqueId-d4b0bdd3.js → useUniqueId-5885911d.js} +0 -0
  353. /package/build/esm/{utils-511a24f4.js → utils-d7bbdb52.js} +0 -0
  354. /package/build/{index-18ddaa1b.js → index-1f3fc2e3.js} +0 -0
  355. /package/build/{index-5c400e5e.js → index-2de1eb4a.js} +0 -0
  356. /package/build/{index-bced434a.js → index-6fdcd09d.js} +0 -0
  357. /package/build/{index-c524c362.js → index-bc9e8eae.js} +0 -0
  358. /package/build/{isProduction-2e55aee3.js → isProduction-20cd663d.js} +0 -0
  359. /package/build/{localizeNumberFormat-2befc6e4.js → localizeNumberFormat-7ff6bd3a.js} +0 -0
  360. /package/build/{normalizeLink-0fd36e61.js → normalizeLink-d307f624.js} +0 -0
  361. /package/build/{number-92da0262.js → number-dddf656c.js} +0 -0
  362. /package/build/{paths-350514c4.js → paths-7da79c64.js} +0 -0
  363. /package/build/{theme-f410baf6.js → theme-be20929b.js} +0 -0
  364. /package/build/{translationsContext-11cafcfc.js → translationsContext-00fdb62e.js} +0 -0
  365. /package/build/{tslib.es6-4bc45883.js → tslib.es6-bd3f8718.js} +0 -0
  366. /package/build/{useIsInit-0f6d1879.js → useIsInit-e06b96f5.js} +0 -0
  367. /package/build/{useOutsideClick-e067cc79.js → useOutsideClick-d95a32b6.js} +0 -0
  368. /package/build/{useScrollbarSize-ed50b4a6.js → useScrollbarSize-1499b1c3.js} +0 -0
  369. /package/build/{useUniqueId-4ce69bff.js → useUniqueId-1af8848e.js} +0 -0
  370. /package/build/{utils-4849d92a.js → utils-15a9772e.js} +0 -0
@@ -1,1322 +0,0 @@
1
- import styled from '@emotion/styled';
2
- import { t as theme } from './theme-0af1cc3d.js';
3
- import { M as MediaQueries } from './utils-511a24f4.js';
4
- import { _ as __rest } from './tslib.es6-2673b49d.js';
5
- import React__default, { useState, createContext, useEffect, Fragment } from 'react';
6
- import { L as Label, b as StyledDisplayIcon, d as StyledActionIcon, e as StyledErrorLabel } from './constants-508ba335.js';
7
- import { s as setDefaultClass } from './utils-dee27bfd.js';
8
- import { css } from '@emotion/react';
9
- import { s as slideInUp, e as slideOutDown, b as slideInLeft, f as slideOutLeft, c as slideInRight, g as slideOutRight, a as slideInDown, d as slideOutUp } from './animation-bf170ee9.js';
10
- import { createStyles, rem } from '@mantine/core';
11
- import flattenChildren from 'react-keyed-flatten-children';
12
-
13
- const StyledAvatar = styled.div `
14
- background-color: var(--background-color, transparent);
15
- color: white;
16
- cursor: pointer;
17
- img {
18
- --width: var(--width-prop, 40px);
19
- --height: var(--height-prop, 40px);
20
- width: var(--width);
21
- height: var(--height);
22
- }
23
- &[data-has-max='true'] {
24
- img {
25
- max-width: var(--width);
26
- max-height: var(--height);
27
- }
28
- }
29
-
30
- &[data-avatar-type='square'] {
31
- img {
32
- --width: var(--width-prop, 72px);
33
- --height: var(--height-prop, 72px);
34
- border-radius: ${theme.borderRadius};
35
- }
36
- }
37
-
38
- &[data-avatar-type='rounded'] {
39
- img {
40
- border-radius: 50%;
41
- }
42
- }
43
-
44
- &[data-custom-size='true'] {
45
- display: flex;
46
- overflow: hidden;
47
- overflow: hidden;
48
- width: var(--size);
49
- height: var(--size);
50
- align-items: center;
51
- justify-content: center;
52
- background-size: cover;
53
- font-size: calc(var(--size) / 2);
54
- font-weight: bold;
55
- &[data-avatar-type='square'] {
56
- border-radius: ${theme.borderRadius};
57
- }
58
- &[data-avatar-type='rounded'] {
59
- border-radius: 50%;
60
- img {
61
- --width: 100%;
62
- --height: 100%;
63
- }
64
- }
65
- img {
66
- object-fit: cover;
67
- }
68
- }
69
- `;
70
-
71
- const renderNotificationStyles = (type, size, hasIcon, color) => {
72
- let sizeparams = '';
73
- if (type === 'numeric') {
74
- switch (size) {
75
- case 'medium':
76
- sizeparams = `
77
- height: 16px;
78
- font-size: 11px;
79
- padding: 1px 6px;
80
- `;
81
- case 'large':
82
- sizeparams = `
83
- height: 24px;
84
- font-size: 13px;
85
- padding: 1px 10px;
86
- `;
87
- }
88
- }
89
- let icon = '';
90
- if (hasIcon) {
91
- icon = `
92
- position: absolute;
93
- top: 0;
94
- left: 75%;
95
- `;
96
- }
97
- let numericIcon;
98
- if (hasIcon) {
99
- numericIcon = `
100
- left: 70%;
101
-
102
- ${size === 'large'
103
- ? `
104
- top: -7px;
105
- `
106
- : size === 'medium'
107
- ? `
108
- top: -2px;
109
- width: 16px;
110
- height: 16px;
111
- `
112
- : ''}
113
- `;
114
- }
115
- let notificationColor = '';
116
- switch (color) {
117
- case 'primary':
118
- notificationColor = `
119
- background: ${theme.colors.primary50};
120
- color: ${theme.colors.primary600};
121
- `;
122
- break;
123
- case 'error':
124
- notificationColor = `
125
- background: ${theme.colors.error};
126
- color: white;
127
- `;
128
- break;
129
- }
130
- switch (type) {
131
- case 'dot':
132
- return `
133
- ${icon}
134
- width: 8px;
135
- height: 8px;
136
- font-size: 0px;
137
- border-radius: 50%;
138
- ${notificationColor}
139
- `;
140
- case 'numeric':
141
- return `
142
- ${icon}
143
- width: max-content;
144
- border-radius: 32px;
145
- ${sizeparams}
146
- ${numericIcon}
147
- ${notificationColor}
148
- `;
149
- }
150
- };
151
- const StyledBadge = styled.div `
152
- position: relative;
153
-
154
- > div {
155
- width: max-content;
156
- position: relative;
157
- }
158
-
159
- span {
160
- font-weight: ${theme.sizes.fwBold};
161
- display: flex;
162
- justify-content: center;
163
- align-items: center;
164
-
165
- ${(props) => renderNotificationStyles(props.notificationType, props.notificationSize, props.hasIcon, props.notificationColor)}
166
- }
167
-
168
- ${(props) => props.hasIcon &&
169
- `
170
- svg {
171
- width: 40px;
172
- height: 40px;
173
- }
174
- `}
175
- `;
176
-
177
- const StyledBorderHeading = styled.h4 `
178
- position: relative;
179
- line-height: 18px;
180
-
181
- &:after {
182
- position: absolute;
183
- top: 1px;
184
- left: 0;
185
- width: 4px;
186
- height: 18px;
187
- background-color: ${theme.colors.primaryBase};
188
- content: '';
189
- }
190
-
191
- &[data-size='lg'] {
192
- font-size: 18px;
193
- padding-left: 12px;
194
- }
195
-
196
- &[data-size='sm'] {
197
- font-size: 14px;
198
- padding-left: 8px;
199
-
200
- &::after {
201
- width: 2px;
202
- height: 15px;
203
- }
204
- }
205
-
206
- &[data-type='bold'] {
207
- font-weight: ${theme.sizes.fwBold};
208
- }
209
- &[data-type='semiBold'] {
210
- font-weight: ${theme.sizes.fwSemiBold};
211
- }
212
-
213
- &[data-uppercase] {
214
- text-transform: uppercase;
215
- }
216
-
217
- ${MediaQueries.mbDown} {
218
- &[data-size='lg'] {
219
- font-size: 16px;
220
- }
221
- }
222
- `;
223
-
224
- const StyledDivider = styled.hr `
225
- border-width: 1px;
226
- border-color: ${theme.colors.neutral200};
227
- border-style: ${(props) => props.dividerType};
228
- `;
229
-
230
- const StyledDropdown = styled.div `
231
- position: relative;
232
- box-sizing: border-box;
233
- border: 1px solid ${theme.colors.gray200};
234
- background: url('../../../public/bgSvg/arrow-down.svg') no-repeat;
235
- background-position: right 16px center;
236
- border-radius: ${theme.borderRadius};
237
-
238
- &[data-has-icons='true'] {
239
- border: none;
240
- background: ${theme.colors.gray100};
241
-
242
- img,
243
- svg {
244
- display: inline-block;
245
- max-width: 16px;
246
- margin-right: 6px;
247
- }
248
-
249
- span {
250
- vertical-align: middle;
251
- display: inline-block;
252
- }
253
-
254
- &:hover {
255
- box-shadow: none;
256
- }
257
- > div {
258
- position: relative;
259
- width: 100%;
260
- display: flex;
261
- align-items: center;
262
- box-sizing: border-box;
263
- }
264
- > div::after {
265
- content: '';
266
- right: 12px;
267
- top: 50%;
268
- background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23595959' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
269
- width: 10px;
270
- height: 8px;
271
- position: absolute;
272
- background-repeat: no-repeat;
273
- transform: translateY(-50%);
274
- }
275
- }
276
-
277
- &:hover {
278
- box-shadow: 0 0 2px 2px ${theme.colors.primary200};
279
- }
280
- `;
281
- const StyledDropdownName = styled.div `
282
- padding: 12px 18px 12px 16px;
283
- cursor: pointer;
284
- &[data-dropdown-open] {
285
- padding: 11px 15px 11px 15px;
286
- border: 1px solid ${theme.colors.primaryBase};
287
- border-radius: ${theme.borderRadius};
288
- box-shadow: 0 0 2px 2px ${theme.colors.primary200};
289
- }
290
-
291
- & > svg {
292
- height: 16px;
293
- width: 16px;
294
- }
295
- `;
296
- const StyledDropdownList = styled.ul `
297
- position: absolute;
298
- top: 100%;
299
- right: 0;
300
- left: 0;
301
- display: block;
302
- margin-top: 4px;
303
- background: ${theme.colors.white};
304
- border-radius: ${theme.borderRadius};
305
- box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
306
- -2px 2px 5px rgba(67, 86, 100, 0.123689);
307
- cursor: pointer;
308
-
309
- &[data-has-icons='true'] {
310
- background: white;
311
- box-shadow: none;
312
- border: 1px solid ${theme.colors.gray200};
313
- filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
314
- }
315
- `;
316
- const StyledDropdownOption = styled.li `
317
- margin: 8px;
318
- padding: 12px 18px 12px 16px;
319
- border-radius: ${theme.borderRadius};
320
- display: flex;
321
- &:hover,
322
- :active {
323
- background: ${theme.colors.gray100};
324
- }
325
- `;
326
- const StyledIcon = styled.div `
327
- display: flex;
328
- align-items: center;
329
- margin-right: 8px;
330
-
331
- & > svg {
332
- height: 16px;
333
- width: 16px;
334
- }
335
- `;
336
-
337
- const StyledGrid = styled.div `
338
- --columns: var(--grid-template-columns, repeat(var(--columns-count), 1fr));
339
- --columns-desktop: var(
340
- --grid-template-columns-desktop,
341
- repeat(var(--columns-count-desktop), 1fr)
342
- );
343
- display: grid;
344
- grid-template-columns: var(--columns);
345
- grid-gap: var(--grid-gap);
346
- align-items: var(--align-items);
347
-
348
- ${MediaQueries.tdUp} {
349
- grid-template-columns: var(--columns-desktop);
350
- }
351
-
352
- > * {
353
- justify-self: var(--justify-children);
354
- }
355
- `;
356
-
357
- const StyledPagination = styled.div `
358
- display: flex;
359
- align-items: center;
360
- justify-content: space-between;
361
- user-select: none;
362
- li {
363
- transition: all 0.3s ease;
364
- }
365
- [data-page-active] {
366
- background: ${theme.colors.primaryBase};
367
- color: ${theme.colors.white};
368
-
369
- > a {
370
- color: ${theme.colors.white};
371
- }
372
- }
373
- `;
374
- const StyledPageBlock = styled.div `
375
- display: flex;
376
- width: 32px;
377
- height: 32px;
378
- box-sizing: border-box;
379
- align-items: center;
380
- justify-content: center;
381
- border: 1px solid ${theme.colors.gray200};
382
- margin: 0 2px;
383
- border-radius: 4px;
384
- color: ${theme.colors.gray800};
385
- cursor: pointer;
386
- font-size: 14px;
387
- font-weight: ${theme.sizes.fwBold};
388
-
389
- &[data-last-page] {
390
- border: none;
391
- background-color: ${theme.colors.gray100};
392
- cursor: not-allowed;
393
- pointer-events: none;
394
-
395
- svg {
396
- path {
397
- stroke: ${theme.colors.gray300};
398
- }
399
- }
400
- }
401
- `;
402
- const StyledPaginationBlock = styled.li `
403
- display: flex;
404
- width: 32px;
405
- height: 32px;
406
- align-items: center;
407
- justify-content: center;
408
- margin: 0 2px;
409
- border-radius: 4px;
410
- color: ${theme.colors.gray800};
411
- cursor: pointer;
412
- font-size: 14px;
413
- font-weight: ${theme.sizes.fwBold};
414
-
415
- > a {
416
- color: ${theme.colors.gray800};
417
- text-decoration: unset;
418
- display: block;
419
- width: 100%;
420
- height: 100%;
421
- line-height: 32px;
422
- text-align: center;
423
- }
424
- `;
425
-
426
- const StyledInput = styled.div `
427
- position: relative;
428
- width: 100%;
429
-
430
- &[data-has-error] {
431
- input {
432
- border-color: ${theme.colors.red700};
433
- }
434
- }
435
-
436
- input {
437
- width: 100%;
438
- padding: 12px 16px;
439
- border: solid 1px ${theme.colors.gray200};
440
- border-radius: ${theme.borderRadius};
441
-
442
- &:active,
443
- &:focus,
444
- .focused & {
445
- border-color: ${theme.colors.primaryBase};
446
- box-shadow: 0px 0px 2px 2px ${theme.colors.primary200};
447
- }
448
-
449
- &:disabled {
450
- background-color: ${theme.colors.gray100};
451
- cursor: not-allowed;
452
- }
453
- }
454
-
455
- &[data-has-action-icon] {
456
- input {
457
- padding: 12px 48px 12px 16px;
458
- }
459
- }
460
- &[data-has-display-icon] {
461
- input {
462
- padding: 12px 16px 12px 48px;
463
- }
464
- }
465
-
466
- &[data-has-action-icon][data-has-display-icon] {
467
- input {
468
- padding: 12px 48px;
469
- }
470
- }
471
-
472
- &[data-size='lg'] {
473
- input {
474
- font-size: 16px;
475
- font-weight: ${theme.sizes.fwRegular};
476
- ${MediaQueries.mbDown} {
477
- font-size: 22px;
478
- line-height: 1.2;
479
- }
480
-
481
- ${MediaQueries.mbUp} {
482
- font-size: 26px;
483
- line-height: 1.2;
484
- }
485
- }
486
- }
487
- &[data-size='md'] {
488
- input {
489
- font-weight: ${theme.sizes.fwRegular};
490
- ${MediaQueries.mbDown} {
491
- font-size: 14px;
492
- line-height: 1.2;
493
- }
494
-
495
- ${MediaQueries.mbUp} {
496
- font-size: 16px;
497
- line-height: 1.2;
498
- }
499
- }
500
- }
501
- &[data-size='sm'] {
502
- input {
503
- font-weight: ${theme.sizes.fwRegular};
504
- ${MediaQueries.mbDown} {
505
- font-size: 13px;
506
- line-height: 1.5;
507
- }
508
-
509
- ${MediaQueries.mbUp} {
510
- font-size: 13px;
511
- line-height: 1.5;
512
- }
513
- }
514
- }
515
- `;
516
-
517
- /**
518
- * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
519
- */
520
- const PureInput = React__default.forwardRef((_a, ref) => {
521
- var { name, errorMessage, autoComplete = 'off', defaultValue, actionIcon: ActionIcon, displayIcon: DisplayIcon, isDeleteAction, onActionClick, label, placeholder, className, onChange, onKeyPress, isDisabled, CustomInput, size, style, autoFocus, type = 'text', isNumerousKeyboard = false, onFocus, enterKeyHint, nativeOnChange } = _a, other = __rest(_a, ["name", "errorMessage", "autoComplete", "defaultValue", "actionIcon", "displayIcon", "isDeleteAction", "onActionClick", "label", "placeholder", "className", "onChange", "onKeyPress", "isDisabled", "CustomInput", "size", "style", "autoFocus", "type", "isNumerousKeyboard", "onFocus", "enterKeyHint", "nativeOnChange"]);
522
- const [localValue, setLocalValue] = useState(defaultValue);
523
- const handleOnChange = (v) => {
524
- setLocalValue(v);
525
- onChange(v);
526
- };
527
- const handleOnActionClick = () => {
528
- var _a;
529
- if (isDeleteAction) {
530
- setLocalValue('');
531
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
532
- }
533
- onActionClick && onActionClick();
534
- };
535
- return (React__default.createElement(StyledInput, { "data-size": size, className: className, "data-has-action-icon": !!ActionIcon || undefined, "data-has-display-icon": !!DisplayIcon || undefined, "data-has-error": (errorMessage && errorMessage.length > 0) || undefined, style: style },
536
- label && (React__default.createElement(Label, { size: "label2", htmlFor: name, className: "inputLabel" }, label)),
537
- React__default.createElement("div", { style: { position: 'relative' } },
538
- CustomInput ? (CustomInput) : (React__default.createElement("input", Object.assign({ id: name, name: name, placeholder: placeholder, onChange: nativeOnChange !== null && nativeOnChange !== void 0 ? nativeOnChange : ((e) => handleOnChange(e.target.value)), onKeyPress: onKeyPress, type: type, "aria-label": type, disabled: isDisabled, value: localValue, autoComplete: autoComplete, ref: ref, autoFocus: autoFocus, inputMode: isNumerousKeyboard || type === 'number' ? 'numeric' : type, pattern: isNumerousKeyboard ? '[0-9]*' : '.*', onFocus: onFocus, enterKeyHint: enterKeyHint }, other))),
539
- DisplayIcon && (React__default.createElement(StyledDisplayIcon, { className: "displayIcon" }, DisplayIcon)),
540
- ActionIcon && (React__default.createElement(StyledActionIcon, { className: "actionIcon", onClick: handleOnActionClick }, ActionIcon))),
541
- errorMessage && errorMessage.length > 0 && (React__default.createElement(StyledErrorLabel, { className: "errorLabel" }, errorMessage))));
542
- });
543
- PureInput.displayName = 'PureInput';
544
-
545
- const getTag = (tag, isLight) => {
546
- switch (tag) {
547
- case 'yellow': {
548
- const color = isLight ? theme.colors.yellow50 : theme.colors.yellow600;
549
- return `
550
- background: ${color};
551
- p {
552
- color: var(
553
- --text-props-color,
554
- ${theme.colors.gray800}
555
- );
556
- }
557
- `;
558
- }
559
- case 'standard': {
560
- return `
561
- background: ${theme.colors.white};
562
- border: 1px solid ${theme.colors.gray200};
563
-
564
- p {
565
- color: var(
566
- --text-props-color,
567
- ${theme.colors.gray800}
568
- );
569
- }
570
-
571
- &:hover {
572
- background: ${theme.colors.gray100};
573
- }
574
- `;
575
- }
576
- case 'red': {
577
- const color = isLight ? theme.colors.red50 : theme.colors.red500;
578
- return `
579
- background: ${color};
580
- `;
581
- }
582
- case 'green': {
583
- const color = isLight ? theme.colors.green50 : theme.colors.green500;
584
- return `
585
- background: ${color};
586
- `;
587
- }
588
- case 'blue': {
589
- const color = isLight ? theme.colors.primary50 : theme.colors.primaryBase;
590
- return `
591
- background: ${color};
592
- `;
593
- }
594
- case 'teal': {
595
- const color = isLight ? theme.colors.teal100 : theme.colors.teal600;
596
- return `
597
- background: ${color};
598
- `;
599
- }
600
- case 'pink': {
601
- const color = isLight ? theme.colors.pink200 : theme.colors.pink800;
602
- return `
603
- background: ${color};
604
- `;
605
- }
606
- case 'violet': {
607
- const color = isLight ? theme.colors.violet100 : theme.colors.violet500;
608
- return `
609
- background: ${color};
610
- `;
611
- }
612
- case 'grey': {
613
- const color = isLight ? theme.colors.gray100 : theme.colors.gray600;
614
- return `
615
- background: ${color};
616
- `;
617
- }
618
- }
619
- };
620
- const StyledTag = styled.div `
621
- --padding-horizontal: 8px;
622
- --pading-vertical: 2px;
623
- display: flex;
624
- align-items: center;
625
- justify-content: center;
626
- padding: var(--pading-vertical) var(--padding-horizontal);
627
- border-radius: 24px;
628
-
629
- ${(props) => props.tagType === 'sponsored' &&
630
- `
631
- --offset-size: 4px;
632
- display: flex;
633
- align-items: center;
634
- justify-content: center;
635
- box-sizing: content-box;
636
- position: relative;
637
- box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
638
- border-radius: 0 4px 18px 0;
639
- height: 24px;
640
- width: 90px;
641
- border-left: var(--offset-size) solid ${theme.colors.accentLight};
642
- padding: 0;
643
- margin-left: calc(var(--offset-size) * -1);
644
-
645
- p {
646
- font-weight: ${theme.sizes.fwBold};
647
- color: var(
648
- --text-props-color,
649
- ${theme.colors.secondaryDark}
650
- );
651
- font-size: 11px;
652
- margin-left: calc(var(--offset-size) * -1);
653
- }
654
-
655
- &::after {
656
- width: calc(var(--offset-size) * 2);
657
- height: var(--offset-size);
658
- background: ${theme.colors.accentMain};
659
- position: absolute;
660
- left: calc(var(--offset-size) * -1);
661
- bottom: calc(var(--offset-size) * -1);
662
- clip-path: polygon(0 1%, 100% 0%, 100% 100%);
663
- content: '';
664
- }
665
- `}
666
-
667
- ${(props) => props.isInline &&
668
- `
669
- display: inline-block;
670
- `}
671
-
672
- ${(props) => props.tagHasMorePadding &&
673
- `
674
- &[data-has-more-padding] {
675
- padding: calc(var(--pading-vertical) + 5px) var(--padding-horizontal);
676
- }
677
- `}
678
-
679
- p {
680
- ${(props) => props.tagIsLight
681
- ? `
682
- color: var(--text-props-color, #000);
683
- `
684
- : `
685
- color: var(--text-props-color, ${theme.colors.white});
686
- `}
687
- }
688
-
689
- ${(props) => getTag(props.tagType, props.tagIsLight)}
690
-
691
- ${(props) => props.tagIsSquared &&
692
- props.tagType !== 'sponsored' &&
693
- `
694
- border-radius: 4px;
695
- `}
696
-
697
- ${(props) => props.tagIsALink &&
698
- `
699
- cursor: pointer;
700
- `}
701
-
702
- &[data-is-selected],
703
- &:active {
704
- background: ${theme.colors.primary50};
705
- }
706
- `;
707
-
708
- const heightIcon = '24px';
709
- const StyledToggleIcon = setDefaultClass(styled.span `
710
- position: relative;
711
- display: block;
712
- width: 40px;
713
- height: ${heightIcon};
714
- background: #c3cbd4;
715
- border-radius: 100px;
716
- cursor: pointer;
717
-
718
- &:after {
719
- position: absolute;
720
- top: 2px;
721
- left: 2px;
722
- width: 20px;
723
- height: 20px;
724
- background: #fff;
725
- border-radius: 90px;
726
- content: '';
727
- transition: 0.3s;
728
- }
729
- `, 'hhgcomp-toggle-icon');
730
- const StyledToggleLabel = styled.span `
731
- padding-left: 15px;
732
- `;
733
- const StyledToggle = styled.div `
734
- height: ${heightIcon};
735
-
736
- input[type='checkbox'] {
737
- width: 0;
738
- height: 0;
739
- visibility: hidden;
740
- }
741
-
742
- label {
743
- cursor: pointer;
744
- display: inline-flex;
745
- color: ${theme.colors.gray600};
746
- }
747
-
748
- input:checked + label ${StyledToggleIcon.classSelector} {
749
- background: ${theme.colors.primaryBase};
750
- &:after {
751
- left: calc(100% - 2px);
752
- transform: translateX(-100%);
753
- }
754
- }
755
- `;
756
-
757
- const StyledTextArea = styled.div `
758
- textarea {
759
- width: 100%;
760
- height: var(--textarea-height, 116px);
761
- padding: 1rem;
762
- border: 1px solid ${theme.colors.gray200};
763
- border-radius: 6px;
764
- color: ${theme.colors.gray800};
765
- font-size: 14px;
766
- resize: none;
767
-
768
- &:focus {
769
- box-shadow: 0px 0px 2px 2px #91caff;
770
- }
771
-
772
- &::placeholder {
773
- color: ${theme.colors.gray500};
774
- }
775
-
776
- &:disabled {
777
- background-color: ${theme.colors.neutral50};
778
- cursor: not-allowed;
779
- }
780
- }
781
- `;
782
- /**
783
- * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
784
- */
785
- const TextArea = React__default.forwardRef(({ height, placeholder, labelText, labelColor, id, name, onChange, value, className, onKeyPress, disabled = false, }, ref) => {
786
- return (React__default.createElement(StyledTextArea, { className: className, style: { ['--textarea-height']: height || '116px' } },
787
- labelText && (React__default.createElement(Label, { size: "label2", style: { color: labelColor || '#595959' }, htmlFor: id }, labelText)),
788
- React__default.createElement("textarea", { name: name, ref: ref, placeholder: placeholder, id: id, onChange: (e) => onChange && onChange(e.target.value),
789
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
790
- onKeyPress: (e) => onKeyPress && onKeyPress(e), value: value, disabled: disabled })));
791
- });
792
-
793
- const StyledCheckbox = styled.div `
794
- display: flex;
795
- cursor: pointer;
796
-
797
- &[data-theme='marryBaby'] {
798
- input {
799
- width: 20px;
800
- height: 20px;
801
- border: 1.3px solid ${theme.mbColors.midGray};
802
- border-radius: 9px;
803
-
804
- cursor: inherit;
805
- transition: border-color 0.4s, box-shadow 0.4s;
806
-
807
- &:hover,
808
- &:active {
809
- border-color: ${theme.mbColors.cobalt};
810
- box-shadow: 0 0 2px 2px ${theme.mbColors.cobalt};
811
- }
812
-
813
- &:focus-visible {
814
- border: 2px solid ${theme.mbColors.cobalt};
815
- }
816
-
817
- &:checked {
818
- border: 0;
819
- background: ${theme.mbColors.cobalt}
820
- url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4L3.45455 6L8 1' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
821
- no-repeat center center;
822
- }
823
- }
824
-
825
- label {
826
- max-width: 15rem;
827
- margin-left: 8px;
828
- width: calc(100% - 24px);
829
- cursor: inherit;
830
- font-weight: 600;
831
- font-size: 12px;
832
- line-height: 20px;
833
- letter-spacing: -0.2px;
834
- color: ${theme.mbColors.gray};
835
- }
836
- }
837
- input {
838
- width: 20px;
839
- height: 20px;
840
- border: solid 1px ${theme.colors.gray500};
841
- border-radius: 2px;
842
-
843
- cursor: inherit;
844
- transition: border-color 0.4s, box-shadow 0.4s;
845
-
846
- &:hover,
847
- &:active {
848
- border-color: ${theme.colors.primaryBase};
849
- box-shadow: 0 0 2px 2px ${theme.colors.primary200};
850
- }
851
-
852
- &:focus-visible {
853
- border: 2px solid ${theme.colors.primaryActive};
854
- }
855
-
856
- &:checked {
857
- border: 0;
858
- background: ${theme.colors.primaryBase}
859
- url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L4.125 8L1 4.81819' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A")
860
- no-repeat center center;
861
- }
862
- }
863
-
864
- label {
865
- max-width: 15rem;
866
- margin-left: 8px;
867
- font-weight: ${theme.sizes.fwRegular};
868
- width: calc(100% - 24px);
869
- cursor: inherit;
870
-
871
- ${MediaQueries.mbDown} {
872
- font-size: 14px;
873
- line-height: 24px;
874
- }
875
-
876
- ${MediaQueries.mbUp} {
877
- font-size: 16px;
878
- line-height: 22px;
879
- }
880
- }
881
-
882
- &[data-is-rectangle] > input {
883
- position: relative;
884
- width: unset;
885
- height: unset;
886
- padding: 5px 12px;
887
- border: 1px solid ${theme.colors.neutral100};
888
- border-radius: 32px;
889
-
890
- &::after {
891
- color: ${theme.colors.gray800};
892
- content: attr(data-label-text);
893
- font-size: 13px;
894
- }
895
- &:checked {
896
- border-color: ${theme.colors.primary50};
897
- &::after {
898
- color: ${theme.colors.primaryBase};
899
- }
900
- }
901
- &:checked {
902
- background: ${theme.colors.primary50};
903
- }
904
- }
905
-
906
- &[data-disabled] {
907
- color: ${theme.colors.gray300};
908
- cursor: not-allowed;
909
- input {
910
- border-color: ${theme.colors.gray300};
911
- &:hover {
912
- border-color: ${theme.colors.gray300};
913
- box-shadow: none;
914
- }
915
- }
916
- }
917
- `;
918
-
919
- const StyledRateStars = styled.div `
920
- display: inline-flex;
921
-
922
- gap: calc(var(--gap) * 1px);
923
- > svg {
924
- width: calc(var(--star-size) * 1px);
925
- height: calc(var(--star-size) * 1px);
926
- }
927
-
928
- &[data-selectable='true'] {
929
- > svg {
930
- cursor: pointer;
931
- }
932
- }
933
- `;
934
-
935
- const DURATION = '600ms';
936
- const generateStyleBasedOnPlacement = (placement, open) => {
937
- switch (placement) {
938
- case 'top':
939
- return css `
940
- top: 0;
941
- width: 100%;
942
- border-radius: 0px 0px 6px 6px;
943
- ${open
944
- ? css `
945
- animation: ${slideInDown} ${DURATION} ease-in-out forwards;
946
- `
947
- : null}
948
-
949
- &.slideOut {
950
- animation: ${slideOutUp} ${DURATION} ease-in-out forwards;
951
- }
952
- `;
953
- case 'right':
954
- return css `
955
- right: 0;
956
- height: 100%;
957
- min-width: 300px;
958
- border-radius: 6px 0px 0px 6px;
959
-
960
- ${open
961
- ? css `
962
- animation: ${slideInRight} ${DURATION} ease-in-out forwards;
963
- `
964
- : null}
965
-
966
- &.slideOut {
967
- animation: ${slideOutRight} ${DURATION} ease-in-out forwards;
968
- }
969
- `;
970
- case 'bottom':
971
- return css `
972
- bottom: 0;
973
- width: 100%;
974
- border-radius: 6px 6px 0px 0px;
975
- ${open
976
- ? css `
977
- animation: ${slideInUp} ${DURATION} ease-in-out forwards;
978
- `
979
- : null}
980
-
981
- &.slideOut {
982
- animation: ${slideOutDown} ${DURATION} ease-in-out forwards;
983
- }
984
- `;
985
- case 'left':
986
- return css `
987
- left: 0;
988
- height: 100%;
989
- min-width: 300px;
990
- border-radius: 0px 6px 6px 0px;
991
-
992
- ${open
993
- ? css `
994
- animation: ${slideInLeft} ${DURATION} ease-in-out forwards;
995
- `
996
- : null}
997
-
998
- &.slideOut {
999
- animation: ${slideOutLeft} ${DURATION} ease-in-out forwards;
1000
- }
1001
- `;
1002
- default:
1003
- return css `
1004
- left: 0;
1005
- height: 100%;
1006
- min-width: 300px;
1007
- border-radius: 0px 6px 6px 0px;
1008
-
1009
- ${open
1010
- ? css `
1011
- animation: ${slideInUp} ${DURATION} ease-in-out forwards;
1012
- `
1013
- : null}
1014
-
1015
- &.slideOut {
1016
- animation: ${slideOutDown} ${DURATION} ease-in-out forwards;
1017
- }
1018
- `;
1019
- }
1020
- };
1021
-
1022
- const StyledDrawer = styled.div `
1023
- position: fixed;
1024
- inset: 0;
1025
- z-index: ${theme.zIndexes.drawer};
1026
- pointer-events: ${(props) => (props.open ? 'auto' : 'none')};
1027
- `;
1028
- const StyledDrawerPanel = styled.div `
1029
- position: fixed;
1030
- z-index: 300;
1031
- background: #ffffff;
1032
- visibility: ${(props) => (props.open ? 'visible' : 'hidden')};
1033
- max-height: calc(100vh - 100px);
1034
- display: flex;
1035
- flex-direction: column;
1036
- .title {
1037
- display: flex;
1038
- align-items: center;
1039
- justify-content: space-between;
1040
- padding: 16px;
1041
- ${(props) => props.hasTitle
1042
- ? css `
1043
- border-bottom: 1px solid ${theme.colors.neutral100};
1044
- `
1045
- : null}
1046
- }
1047
-
1048
- .close-button {
1049
- margin-left: auto;
1050
- }
1051
-
1052
- ${(props) => generateStyleBasedOnPlacement(props.placement, props.open)}
1053
- `;
1054
- const StyledDrawerContent = styled.div `
1055
- min-height: 200px;
1056
- padding: 16px;
1057
- overflow-y: auto;
1058
- `;
1059
-
1060
- const StyledBackdrop = styled.div `
1061
- position: fixed;
1062
- inset: 0;
1063
- display: flex;
1064
- align-items: center;
1065
- justify-content: center;
1066
- width: 100%;
1067
- height: 100%;
1068
- overflow-x: hidden;
1069
- overflow-y: auto;
1070
- outline: 0;
1071
- background-color: rgba(38, 38, 38, 0.3);
1072
- z-index: 1;
1073
- &[data-open='false'] {
1074
- visibility: hidden;
1075
- pointer-events: none;
1076
- }
1077
- &[data-open='true'] {
1078
- visibility: visible;
1079
- pointer-events: auto;
1080
- }
1081
- `;
1082
-
1083
- const StyledRadioImageGroup = styled.div `
1084
- display: flex;
1085
- width: 100%;
1086
-
1087
- &[data-direction='vertical'] {
1088
- flex-direction: column;
1089
- }
1090
-
1091
- &[data-direction='horizontal'] {
1092
- flex-wrap: wrap;
1093
- }
1094
- `;
1095
- const StyledRadioImageItem = styled.div `
1096
- display: flex;
1097
-
1098
- padding: 8px;
1099
-
1100
- border-radius: ${theme.borderRadius};
1101
- cursor: pointer;
1102
-
1103
- & > div {
1104
- display: flex;
1105
- width: 100%;
1106
- height: 100%;
1107
- flex-direction: column;
1108
- align-items: center;
1109
- justify-content: flex-start;
1110
- }
1111
-
1112
- &[data-is-mb='false'] {
1113
- &[data-selected='true'] {
1114
- border: 1px solid #2d87f3;
1115
- background: white;
1116
- }
1117
- &[data-selected='false'] {
1118
- border: 1px solid #f2f2f2;
1119
- box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
1120
- }
1121
- }
1122
-
1123
- &[data-is-mb='true'] {
1124
- border-radius: 16px;
1125
- background: white;
1126
- padding: 16px auto;
1127
-
1128
- &[data-selected='true'] {
1129
- border: 1px solid ${theme.mbColors.mint};
1130
- box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
1131
- }
1132
- &[data-selected='false'] {
1133
- border: none;
1134
- }
1135
- }
1136
-
1137
- &[data-disabled='true'] {
1138
- cursor: auto;
1139
- }
1140
-
1141
- .radio-group-item-heading {
1142
- margin-top: 8px;
1143
- //height: 48px;
1144
- text-align: center;
1145
- }
1146
-
1147
- .gender-image {
1148
- width: 70px;
1149
- height: 70px;
1150
- &[data-is-mobile='true'] {
1151
- width: 40px;
1152
- height: 40px;
1153
- }
1154
- }
1155
- `;
1156
-
1157
- var useStyles$1 = createStyles((theme) => {
1158
- return {
1159
- root: {
1160
- display: 'inline-block',
1161
- // height: 1rem,
1162
- flexShrink: 0,
1163
- padding: '2px 0.5rem',
1164
- marginLeft: '4px',
1165
- borderRadius: theme.radius.xs,
1166
- // color: white,
1167
- fontSize: '12px',
1168
- fontWeight: 400,
1169
- lineHeight: '18px',
1170
- '&[data-label-type="admin"]': {
1171
- background: theme.primaryColor[0],
1172
- color: theme.primaryColor[9],
1173
- // &[data-is-marrybaby='true'] {
1174
- // background: #{map-get($mbColors, 'tonePink')};
1175
- // color: #{map-get($mbColors, 'cRed')};
1176
- // }
1177
- },
1178
- '&[data-label-type="local admin"]': {
1179
- background: theme.primaryColor[8],
1180
- },
1181
- '&[data-label-type="ambassador"]': {
1182
- background: theme.colors.green[4],
1183
- },
1184
- '&[data-label-type="expert"]': {
1185
- background: theme.colors.yellow[6],
1186
- // &[data-is-marrybaby='true'] {
1187
- // background: #{map-get($mbColors, 'cOrange')};
1188
- // color: #{map-get($colors, 'cWhite')};
1189
- // }
1190
- },
1191
- '&[data-label-type="moderator"]': {
1192
- background: theme.colors.red[0],
1193
- color: theme.colors.red[8],
1194
- // &[data-is-marrybaby='true'] {
1195
- // background: #{map-get($mbColors, 'toneBlue')};
1196
- // color: #{map-get($mbColors, 'cobalt')};
1197
- // }
1198
- },
1199
- '&[data-label-type="sponsor"]': {
1200
- background: theme.colors.teal[4],
1201
- },
1202
- '&[data-label-type="guide"]': {
1203
- background: theme.colors.teal[4],
1204
- },
1205
- '&[data-label-type="influencer"]': {
1206
- background: theme.colors.teal[4],
1207
- },
1208
- },
1209
- };
1210
- });
1211
-
1212
- const StyledContainer = styled.div `
1213
- display: flex;
1214
- align-items: center;
1215
- gap: 8px;
1216
- button[data-color='tertiary'] {
1217
- background: white;
1218
- }
1219
- `;
1220
-
1221
- // define shared context
1222
- const StepRendererContext = createContext({
1223
- currentStep: 0,
1224
- setCurrentStep: () => false,
1225
- setMaxStep: () => false,
1226
- nextStep: () => false,
1227
- prevStep: () => false,
1228
- });
1229
- const StepRenderer = ({ children, onStepChange }) => {
1230
- const [currentStep, setCurrentStep] = useState(0);
1231
- const [maxStep, setMaxStep] = useState(0);
1232
- const childrenCount = React__default.Children.count(children);
1233
- useEffect(() => {
1234
- setMaxStep(childrenCount - 1);
1235
- }, [childrenCount]);
1236
- useEffect(() => {
1237
- onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(currentStep);
1238
- }, [currentStep]);
1239
- const nextStep = () => currentStep + 1 <= maxStep && setCurrentStep(currentStep + 1);
1240
- const prevStep = () => currentStep - 1 >= 0 && setCurrentStep(currentStep - 1);
1241
- return (React__default.createElement(StepRendererContext.Provider, { value: {
1242
- currentStep,
1243
- setCurrentStep,
1244
- setMaxStep,
1245
- nextStep,
1246
- prevStep,
1247
- } }, flattenChildren(children).map((element, idx) => {
1248
- const active = idx === currentStep;
1249
- return (React__default.createElement(Fragment, { key: idx }, !React__default.isValidElement(element)
1250
- ? active
1251
- ? element
1252
- : null
1253
- : element.props.alwaysRender || active
1254
- ? React__default.cloneElement(element, {
1255
- isActive: idx === currentStep,
1256
- stepIndex: idx,
1257
- })
1258
- : null));
1259
- })));
1260
- };
1261
-
1262
- var useStyles = createStyles((theme, { type }) => {
1263
- const isMarryBaby = theme.other.template === 'mb';
1264
- return {
1265
- root: {},
1266
- wrapper: Object.assign({ gap: rem(8) }, (type === 'radio' && {
1267
- justifyContent: 'flex-end',
1268
- gap: rem(24),
1269
- })),
1270
- groupErr: {
1271
- fontSize: rem(14),
1272
- },
1273
- itemRoot: Object.assign({}, (type === 'button'
1274
- ? {
1275
- flexGrow: 1,
1276
- width: '50%',
1277
- '&[data-checked="true"]': {
1278
- '.mantine-Radio-label': {
1279
- borderColor: theme.fn.primaryColor(),
1280
- },
1281
- },
1282
- }
1283
- : type === 'radio'
1284
- ? { padding: `${rem(10)} 0`, margin: 0 }
1285
- : {})),
1286
- itemLabelWrapper: {
1287
- padding: 0,
1288
- width: '100%',
1289
- },
1290
- itemLabel: Object.assign({ whiteSpace: 'nowrap' }, (type === 'button'
1291
- ? {
1292
- position: 'relative',
1293
- padding: `${rem(6)} ${rem(16)}`,
1294
- border: `1px solid ${isMarryBaby ? '#EAEAEC' : theme.colors.gray[2]}`,
1295
- borderRadius: rem(isMarryBaby ? 16 : 4),
1296
- cursor: 'pointer',
1297
- '&[data-disabled="true"]': {
1298
- background: theme.colors.gray[1],
1299
- color: `${theme.colors.gray[4]} !important`,
1300
- img: {
1301
- opacity: 0.5,
1302
- },
1303
- },
1304
- img: {
1305
- height: rem(26),
1306
- },
1307
- }
1308
- : type === 'radio'
1309
- ? { fontSize: rem(14) }
1310
- : {})),
1311
- itemInner: Object.assign(Object.assign({}, (type === 'button' && {
1312
- display: 'none',
1313
- })), (type === 'radio' && {
1314
- alignSelf: 'center',
1315
- })),
1316
- itemBody: Object.assign({}, (type === 'radio' && {
1317
- alignItems: 'center',
1318
- })),
1319
- };
1320
- });
1321
-
1322
- export { StyledRadioImageGroup as A, StyledRadioImageItem as B, useStyles as C, PureInput as P, StepRenderer as S, TextArea as T, StepRendererContext as a, StyledAvatar as b, StyledBadge as c, StyledBorderHeading as d, StyledDropdown as e, StyledDropdownName as f, StyledDropdownList as g, StyledDropdownOption as h, StyledIcon as i, StyledGrid as j, StyledPagination as k, StyledPageBlock as l, StyledPaginationBlock as m, StyledTag as n, StyledToggle as o, StyledToggleIcon as p, StyledToggleLabel as q, StyledCheckbox as r, StyledRateStars as s, StyledDivider as t, useStyles$1 as u, StyledContainer as v, StyledBackdrop as w, StyledDrawer as x, StyledDrawerPanel as y, StyledDrawerContent as z };