@hhgtech/hhg-components 1.29.79 → 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 (346) hide show
  1. package/build/{index-aefa01a7.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 +18 -18
  7. package/build/components.js +179 -163
  8. package/build/{constants-94957c92.js → constants-3a475a22.js} +2 -2
  9. package/build/constants-513a9a41.js +318 -0
  10. package/build/{index-6036e2a0.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-279a7b4f.js → core-9e44ee99.js} +2 -2
  14. package/build/{index-5033f644.js → dataTransform-6b4d7a4e.js} +85 -134
  15. package/build/{dataTransform-1c96db25.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-78d473b4.js → constants-ebf80e5f.js} +2 -2
  28. package/build/esm/{index-122dd8ee.js → constants-f77fc231.js} +1 -127
  29. package/build/esm/constants.js +3 -3
  30. package/build/esm/{core-2715a7c7.js → core-c72e0ff5.js} +2 -2
  31. package/build/esm/{index-f672661d.js → dataTransform-3e8e25ba.js} +87 -135
  32. package/build/esm/{dataTransform-24bd11e8.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-d805169a.js → getDynamicHealthTool-7681e43a.js} +4 -4
  39. package/build/esm/{getSocialList-c8edb201.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-2a4e676a.js → index-1da2ca0b.js} +2 -2
  47. package/build/esm/{utils-45e55363.js → index-1ecbcf21.js} +71 -105
  48. package/build/esm/{index-e2d856fc.js → index-21eac858.js} +1043 -1232
  49. package/build/esm/{index-c5b3a3ba.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-47a90477.js → index-598ab51b.js} +5 -5
  57. package/build/esm/{index-ecb46439.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-7c6316a6.js → index-73301602.js} +2 -2
  61. package/build/esm/index-76d20d3f.js +100 -0
  62. package/build/esm/{index-ec38e886.js → index-780a08de.js} +2 -2
  63. package/build/esm/{index-92fd8661.js → index-78255d6c.js} +2 -2
  64. package/build/esm/{index-9b3bf9da.js → index-7cbe2a10.js} +12 -11
  65. package/build/esm/{index-5265867b.js → index-7e756cb8.js} +11 -10
  66. package/build/esm/{index.styled-eb1001c3.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-272d3d01.js → index-9f1899f2.js} +4 -4
  71. package/build/esm/{index-63be4c47.js → index-b1bb27aa.js} +134 -62
  72. package/build/esm/{index-ef96fd13.js → index-bef3c9bd.js} +3 -3
  73. package/build/esm/{index-670d21ca.js → index-c1af3a8e.js} +13 -12
  74. package/build/esm/{index-b2eed677.js → index-c200bff6.js} +2 -2
  75. package/build/esm/{index-0de64a0f.js → index-cb4afb33.js} +6 -6
  76. package/build/esm/{index-741ce3ab.js → index-cdac57da.js} +1 -1
  77. package/build/esm/{index-49d819b7.js → index-cf6beac8.js} +2 -13
  78. package/build/esm/{index-ad5c69c9.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.css +1 -1
  84. package/build/esm/index.js +89 -73
  85. package/build/esm/lead.js +23 -33
  86. package/build/esm/logoIcon-d93bc56e.js +104 -0
  87. package/build/esm/mantine.js +22 -20
  88. package/build/esm/misc.js +21 -21
  89. package/build/esm/molecules.js +88 -0
  90. package/build/esm/navigation.js +37 -37
  91. package/build/esm/onboardingV2.js +26 -35
  92. package/build/esm/organisms.js +57 -0
  93. package/build/esm/pwg.js +19 -19
  94. package/build/esm/{routing-e7ff0e08.js → routing-bebdc8b7.js} +2 -2
  95. package/build/esm/subot.js +31 -27
  96. package/build/esm/surveyOrPremiumBanner.js +45 -0
  97. package/build/esm/surveyQuestionCard.js +13 -0
  98. package/build/esm/surveyThankyouCard-bf6080eb.js +446 -0
  99. package/build/esm/together.js +35 -37
  100. package/build/esm/{types-37f2c5d4.js → types-2580132c.js} +28 -30
  101. package/build/esm/{types-ce933060.js → types-be952df2.js} +13 -13
  102. package/build/esm/types.js +1 -1
  103. package/build/esm/{useCategory-8e1387db.js → useCategory-8f109eb7.js} +5 -5
  104. package/build/esm/{useHealthToolCache-28115f15.js → useHealthToolCache-d97dfa00.js} +2 -2
  105. package/build/esm/{useMantineLocale-bcfdeb0c.js → useMantineLocale-4fb67342.js} +3 -3
  106. package/build/esm/{usePlacesAutocomplete-837f491d.js → usePlacesAutocomplete-fe2e4cbe.js} +1 -1
  107. package/build/esm/{useTranslations-b8c49c9b.js → useTranslations-fbf6a6ab.js} +1 -1
  108. package/build/esm/{utils-86ef2283.js → utils-cef111b6.js} +1 -1
  109. package/build/esm/{defaultClassWrapper-fcdfc7a3.js → utils-d5a0b58f.js} +60 -408
  110. package/build/esm/vaccination.js +18 -29
  111. package/build/fixedBottomAdBlock-0d4379d1.js +3521 -0
  112. package/build/footer.js +18 -18
  113. package/build/gAssets.js +4 -4
  114. package/build/{getDynamicHealthTool-27b332df.js → getDynamicHealthTool-2a92e1a5.js} +4 -4
  115. package/build/{getSocialList-d16604ba.js → getSocialList-97e7bcc1.js} +8 -9
  116. package/build/healthToolsForm.js +54 -0
  117. package/build/healthToolsForms.d.ts +7 -0
  118. package/build/hooks.js +17 -17
  119. package/build/i18n.js +1 -1
  120. package/build/i18nV2.js +1 -1
  121. package/build/index-058b3c0f.js +1127 -0
  122. package/build/{index-e914bc7c.js → index-05f106c2.js} +1050 -1240
  123. package/build/index-06fa8444.js +102 -0
  124. package/build/{index-e932125b.js → index-1efa7d84.js} +2 -2
  125. package/build/index-247a9eb2.js +1693 -0
  126. package/build/{index-4f5ce9db.js → index-264eeddd.js} +2 -2
  127. package/build/index-3d0d22b3.js +565 -0
  128. package/build/index-3dcb9bc6.js +61 -0
  129. package/build/{index-aff82754.js → index-4af08ec2.js} +2 -2
  130. package/build/index-6acb08c0.js +343 -0
  131. package/build/{index-1b7f73fa.js → index-6bc3f8c3.js} +5 -5
  132. package/build/{index-a903fdaa.js → index-6c27b627.js} +58 -201
  133. package/build/index-73cde644.js +156 -0
  134. package/build/{index-65765b10.js → index-77a2b9ee.js} +1 -1
  135. package/build/{index-dbaa00eb.js → index-7c1dc717.js} +12 -11
  136. package/build/index-7da7b531.js +107 -0
  137. package/build/{index-8c04d412.js → index-838b0f95.js} +6 -6
  138. package/build/index-a7de42d1.js +202 -0
  139. package/build/{index-517f6538.js → index-a86ea1b6.js} +2 -2
  140. package/build/index-aa818139.js +49 -0
  141. package/build/{index-4cd9cc62.js → index-b773bc3d.js} +4 -4
  142. package/build/index-bef2bc73.js +136 -0
  143. package/build/{utils-120200ad.js → index-c225ef22.js} +76 -120
  144. package/build/{index-42621fec.js → index-c2900d8c.js} +2 -2
  145. package/build/index-cb0544e5.js +866 -0
  146. package/build/{index-5aac5fb6.js → index-d34cd464.js} +2 -2
  147. package/build/{index-4026b8c5.js → index-d5b4089d.js} +141 -68
  148. package/build/index-dba2e361.js +20 -0
  149. package/build/{index-586f0a4f.js → index-dcbd8bf3.js} +37 -9
  150. package/build/index-dd1392e3.js +167 -0
  151. package/build/{index-875d81d3.js → index-def9867a.js} +11 -10
  152. package/build/index-e0bf03ac.js +277 -0
  153. package/build/index-ee964d3c.js +209 -0
  154. package/build/index-f10efb61.js +270 -0
  155. package/build/{index-701c74a1.js → index-f1f4fbb9.js} +13 -12
  156. package/build/{index-27c71242.js → index-f28c47ce.js} +1 -13
  157. package/build/{index-e39f5b25.js → index-f6575703.js} +2 -2
  158. package/build/{index.styled-8c14cf6c.js → index-fe7345fa.js} +22 -4
  159. package/build/index.css +1 -1
  160. package/build/index.js +190 -174
  161. package/build/lead.js +29 -39
  162. package/build/logoIcon-ee9a5501.js +110 -0
  163. package/build/mantine.js +24 -23
  164. package/build/misc.js +21 -21
  165. package/build/molecules.js +149 -0
  166. package/build/navigation.js +37 -37
  167. package/build/onboardingV2.js +45 -54
  168. package/build/organisms.js +74 -0
  169. package/build/pwg.js +19 -19
  170. package/build/{routing-40d4f591.js → routing-f6d54205.js} +2 -2
  171. package/build/subot.js +113 -109
  172. package/build/surveyOrPremiumBanner.js +53 -0
  173. package/build/surveyQuestionCard.js +22 -0
  174. package/build/surveyThankyouCard-ead6b355.js +454 -0
  175. package/build/together.js +41 -43
  176. package/build/{types-692f1edc.js → types-4ba4268f.js} +49 -49
  177. package/build/{types-ade68559.js → types-6c5643a2.js} +203 -205
  178. package/build/types.js +1 -1
  179. package/build/{useCategory-bbe47716.js → useCategory-e2c91f59.js} +5 -5
  180. package/build/{useHealthToolCache-80cb8990.js → useHealthToolCache-2a53367b.js} +2 -2
  181. package/build/{useMantineLocale-97b962eb.js → useMantineLocale-a4f0c61d.js} +3 -3
  182. package/build/{usePlacesAutocomplete-99a452c0.js → usePlacesAutocomplete-c76d0caf.js} +1 -1
  183. package/build/{useTranslations-76f64595.js → useTranslations-200168a3.js} +1 -1
  184. package/build/{defaultClassWrapper-feaae206.js → utils-95d9832e.js} +68 -427
  185. package/build/{utils-dc4471cf.js → utils-af695515.js} +1 -1
  186. package/build/vaccination.js +58 -69
  187. package/package.json +1 -1
  188. package/build/Instagram-5735e971.js +0 -32
  189. package/build/esm/Instagram-98c713bc.js +0 -26
  190. package/build/esm/index-18a80466.js +0 -33
  191. package/build/esm/index-1f6890ad.js +0 -1086
  192. package/build/esm/index-40fc06d9.js +0 -298
  193. package/build/esm/index-47d01c08.js +0 -23
  194. package/build/esm/index-687f9ee4.js +0 -71
  195. package/build/esm/index-aeb4ceda.js +0 -7245
  196. package/build/esm/index.styles-bff4ac47.js +0 -1322
  197. package/build/index-561d71d9.js +0 -7324
  198. package/build/index-5ff91adf.js +0 -39
  199. package/build/index-74b64958.js +0 -77
  200. package/build/index-84f7ce80.js +0 -30
  201. package/build/index-c9e324de.js +0 -1100
  202. package/build/index.styles-61201019.js +0 -1361
  203. /package/build/{BMI_BOYS.percentile.monthly-b2166d34.js → BMI_BOYS.percentile.monthly-71fb1c9f.js} +0 -0
  204. /package/build/{BMI_BOYS.percentile.weekly-8b80b329.js → BMI_BOYS.percentile.weekly-b2b344a7.js} +0 -0
  205. /package/build/{BMI_BOYS.percentile.yearly-233e699b.js → BMI_BOYS.percentile.yearly-031ddade.js} +0 -0
  206. /package/build/{BMI_BOYS.zscore.monthly-17ed8572.js → BMI_BOYS.zscore.monthly-bb1f9962.js} +0 -0
  207. /package/build/{BMI_BOYS.zscore.weekly-36c9735b.js → BMI_BOYS.zscore.weekly-d6198d53.js} +0 -0
  208. /package/build/{BMI_BOYS.zscore.yearly-e43d7246.js → BMI_BOYS.zscore.yearly-48255337.js} +0 -0
  209. /package/build/{BMI_GIRLS.percentile.monthly-94ddebb1.js → BMI_GIRLS.percentile.monthly-e3e284ee.js} +0 -0
  210. /package/build/{BMI_GIRLS.percentile.weekly-dc53474b.js → BMI_GIRLS.percentile.weekly-9f2d3977.js} +0 -0
  211. /package/build/{BMI_GIRLS.percentile.yearly-897e47f7.js → BMI_GIRLS.percentile.yearly-c79f34ce.js} +0 -0
  212. /package/build/{BMI_GIRLS.zscore.monthly-44dcd046.js → BMI_GIRLS.zscore.monthly-11092df0.js} +0 -0
  213. /package/build/{BMI_GIRLS.zscore.weekly-6e9400e5.js → BMI_GIRLS.zscore.weekly-5c375d2b.js} +0 -0
  214. /package/build/{BMI_GIRLS.zscore.yearly-3cd8c63d.js → BMI_GIRLS.zscore.yearly-adbba8e3.js} +0 -0
  215. /package/build/{ChevronDown-2775b53a.js → ChevronDown-f7e25d61.js} +0 -0
  216. /package/build/{Close-f419724f.js → Close-36b0da99.js} +0 -0
  217. /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-35ed4380.js → HEAD CIRCUM_BOYS.percentile.monthly-163b99ad.js} +0 -0
  218. /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-c7dc736d.js → HEAD CIRCUM_BOYS.percentile.weekly-c9882014.js} +0 -0
  219. /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4c3b2318.js → HEAD CIRCUM_BOYS.percentile.yearly-9d2bc91e.js} +0 -0
  220. /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1f1cc8dd.js → HEAD CIRCUM_BOYS.zscore.monthly-1d2a215c.js} +0 -0
  221. /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-67593063.js → HEAD CIRCUM_BOYS.zscore.weekly-1f139c91.js} +0 -0
  222. /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-197c548c.js → HEAD CIRCUM_BOYS.zscore.yearly-ba15501b.js} +0 -0
  223. /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-47029e7a.js → HEAD CIRCUM_GIRLS.percentile.monthly-a546201a.js} +0 -0
  224. /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-faf6b122.js → HEAD CIRCUM_GIRLS.percentile.weekly-66cd5a7e.js} +0 -0
  225. /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-f79cdc09.js → HEAD CIRCUM_GIRLS.percentile.yearly-9db3c653.js} +0 -0
  226. /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-329fc5a0.js → HEAD CIRCUM_GIRLS.zscore.monthly-0405e2cb.js} +0 -0
  227. /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-aa73a5d6.js → HEAD CIRCUM_GIRLS.zscore.weekly-b2cc3ad2.js} +0 -0
  228. /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-5fdab08f.js → HEAD CIRCUM_GIRLS.zscore.yearly-3115f993.js} +0 -0
  229. /package/build/{HEIGHT_BOYS.percentile.monthly-190579ee.js → HEIGHT_BOYS.percentile.monthly-35138a98.js} +0 -0
  230. /package/build/{HEIGHT_BOYS.percentile.weekly-d902f59f.js → HEIGHT_BOYS.percentile.weekly-0216c35b.js} +0 -0
  231. /package/build/{HEIGHT_BOYS.percentile.yearly-87254461.js → HEIGHT_BOYS.percentile.yearly-f698e45d.js} +0 -0
  232. /package/build/{HEIGHT_BOYS.zscore.monthly-c741a8bb.js → HEIGHT_BOYS.zscore.monthly-01195728.js} +0 -0
  233. /package/build/{HEIGHT_BOYS.zscore.weekly-c0b2c6c0.js → HEIGHT_BOYS.zscore.weekly-993e9cf2.js} +0 -0
  234. /package/build/{HEIGHT_BOYS.zscore.yearly-1a506923.js → HEIGHT_BOYS.zscore.yearly-fee3ed69.js} +0 -0
  235. /package/build/{HEIGHT_GIRLS.percentile.monthly-9b2b4c93.js → HEIGHT_GIRLS.percentile.monthly-27b2474a.js} +0 -0
  236. /package/build/{HEIGHT_GIRLS.percentile.weekly-5ddecf9a.js → HEIGHT_GIRLS.percentile.weekly-77bff236.js} +0 -0
  237. /package/build/{HEIGHT_GIRLS.percentile.yearly-fa289855.js → HEIGHT_GIRLS.percentile.yearly-6200a720.js} +0 -0
  238. /package/build/{HEIGHT_GIRLS.zscore.monthly-c9db2d0d.js → HEIGHT_GIRLS.zscore.monthly-94978e64.js} +0 -0
  239. /package/build/{HEIGHT_GIRLS.zscore.weekly-c38c0951.js → HEIGHT_GIRLS.zscore.weekly-7951beb1.js} +0 -0
  240. /package/build/{HEIGHT_GIRLS.zscore.yearly-d78a2a93.js → HEIGHT_GIRLS.zscore.yearly-c2eca714.js} +0 -0
  241. /package/build/{Visible-34df6ee7.js → Visible-eee51ba6.js} +0 -0
  242. /package/build/{WEIGHT_BOYS.percentile.monthly-7a5f3721.js → WEIGHT_BOYS.percentile.monthly-6a6f901b.js} +0 -0
  243. /package/build/{WEIGHT_BOYS.percentile.weekly-d86f23fa.js → WEIGHT_BOYS.percentile.weekly-737fb867.js} +0 -0
  244. /package/build/{WEIGHT_BOYS.percentile.yearly-c154651c.js → WEIGHT_BOYS.percentile.yearly-7772b5e5.js} +0 -0
  245. /package/build/{WEIGHT_BOYS.zscore.monthly-8f39952a.js → WEIGHT_BOYS.zscore.monthly-8db2e7d6.js} +0 -0
  246. /package/build/{WEIGHT_BOYS.zscore.weekly-3118363f.js → WEIGHT_BOYS.zscore.weekly-ddd37c1a.js} +0 -0
  247. /package/build/{WEIGHT_BOYS.zscore.yearly-d463cfe7.js → WEIGHT_BOYS.zscore.yearly-332a8f7b.js} +0 -0
  248. /package/build/{WEIGHT_GIRLS.percentile.monthly-4d025f09.js → WEIGHT_GIRLS.percentile.monthly-3edad688.js} +0 -0
  249. /package/build/{WEIGHT_GIRLS.percentile.weekly-89f1f560.js → WEIGHT_GIRLS.percentile.weekly-f113a82a.js} +0 -0
  250. /package/build/{WEIGHT_GIRLS.percentile.yearly-e79630f6.js → WEIGHT_GIRLS.percentile.yearly-95afbeaf.js} +0 -0
  251. /package/build/{WEIGHT_GIRLS.zscore.monthly-64bd7db5.js → WEIGHT_GIRLS.zscore.monthly-d27c4bd4.js} +0 -0
  252. /package/build/{WEIGHT_GIRLS.zscore.weekly-628674eb.js → WEIGHT_GIRLS.zscore.weekly-2b113519.js} +0 -0
  253. /package/build/{WEIGHT_GIRLS.zscore.yearly-5bb1b712.js → WEIGHT_GIRLS.zscore.yearly-c82b04db.js} +0 -0
  254. /package/build/{animation-21a29164.js → animation-e1375a3b.js} +0 -0
  255. /package/build/{cart-cd1f9e9e.js → cart-67147d06.js} +0 -0
  256. /package/build/{cookieHelper-6fd4e238.js → cookieHelper-17491ce8.js} +0 -0
  257. /package/build/{doctor-15fac518.js → doctor-17b525f8.js} +0 -0
  258. /package/build/esm/{BMI_BOYS.percentile.monthly-bc430a4a.js → BMI_BOYS.percentile.monthly-7c9d4923.js} +0 -0
  259. /package/build/esm/{BMI_BOYS.percentile.weekly-404f8241.js → BMI_BOYS.percentile.weekly-c410294a.js} +0 -0
  260. /package/build/esm/{BMI_BOYS.percentile.yearly-cc6a1393.js → BMI_BOYS.percentile.yearly-695a4fe2.js} +0 -0
  261. /package/build/esm/{BMI_BOYS.zscore.monthly-e94926d8.js → BMI_BOYS.zscore.monthly-9fb9f281.js} +0 -0
  262. /package/build/esm/{BMI_BOYS.zscore.weekly-8d1da103.js → BMI_BOYS.zscore.weekly-d2109e4b.js} +0 -0
  263. /package/build/esm/{BMI_BOYS.zscore.yearly-94f8b37e.js → BMI_BOYS.zscore.yearly-bfa5361b.js} +0 -0
  264. /package/build/esm/{BMI_GIRLS.percentile.monthly-356bd71d.js → BMI_GIRLS.percentile.monthly-f5f60596.js} +0 -0
  265. /package/build/esm/{BMI_GIRLS.percentile.weekly-72979d47.js → BMI_GIRLS.percentile.weekly-26e4e864.js} +0 -0
  266. /package/build/esm/{BMI_GIRLS.percentile.yearly-729c84f5.js → BMI_GIRLS.percentile.yearly-5a2b297d.js} +0 -0
  267. /package/build/esm/{BMI_GIRLS.zscore.monthly-6dea8018.js → BMI_GIRLS.zscore.monthly-4e80bed5.js} +0 -0
  268. /package/build/esm/{BMI_GIRLS.zscore.weekly-da7a5d01.js → BMI_GIRLS.zscore.weekly-03b79f0b.js} +0 -0
  269. /package/build/esm/{BMI_GIRLS.zscore.yearly-0b0a5cae.js → BMI_GIRLS.zscore.yearly-822ed949.js} +0 -0
  270. /package/build/esm/{ChevronDown-5f18ca6b.js → ChevronDown-74267eb8.js} +0 -0
  271. /package/build/esm/{Close-87c65991.js → Close-372aa467.js} +0 -0
  272. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-1c910c23.js → HEAD CIRCUM_BOYS.percentile.monthly-21b04c4c.js} +0 -0
  273. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2da702f0.js → HEAD CIRCUM_BOYS.percentile.weekly-049a9d97.js} +0 -0
  274. /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9fbeb684.js → HEAD CIRCUM_BOYS.percentile.yearly-a4bbbaba.js} +0 -0
  275. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-c93df36e.js → HEAD CIRCUM_BOYS.zscore.monthly-7cb348c6.js} +0 -0
  276. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-930f82b2.js → HEAD CIRCUM_BOYS.zscore.weekly-678a1a52.js} +0 -0
  277. /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-f7523042.js → HEAD CIRCUM_BOYS.zscore.yearly-db81b17e.js} +0 -0
  278. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-d93ddef7.js → HEAD CIRCUM_GIRLS.percentile.monthly-cee33cd5.js} +0 -0
  279. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2c7db258.js → HEAD CIRCUM_GIRLS.percentile.weekly-2cec19c3.js} +0 -0
  280. /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-07202ee1.js → HEAD CIRCUM_GIRLS.percentile.yearly-5949e664.js} +0 -0
  281. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-fafa785c.js → HEAD CIRCUM_GIRLS.zscore.monthly-7c2bffab.js} +0 -0
  282. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-28b41bdb.js → HEAD CIRCUM_GIRLS.zscore.weekly-356dd00a.js} +0 -0
  283. /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c5b3bc8b.js → HEAD CIRCUM_GIRLS.zscore.yearly-e7b62215.js} +0 -0
  284. /package/build/esm/{HEIGHT_BOYS.percentile.monthly-0a092d31.js → HEIGHT_BOYS.percentile.monthly-359c4335.js} +0 -0
  285. /package/build/esm/{HEIGHT_BOYS.percentile.weekly-5827b445.js → HEIGHT_BOYS.percentile.weekly-a4d4acd3.js} +0 -0
  286. /package/build/esm/{HEIGHT_BOYS.percentile.yearly-b88283c2.js → HEIGHT_BOYS.percentile.yearly-ec9a7f9b.js} +0 -0
  287. /package/build/esm/{HEIGHT_BOYS.zscore.monthly-d275f074.js → HEIGHT_BOYS.zscore.monthly-12331258.js} +0 -0
  288. /package/build/esm/{HEIGHT_BOYS.zscore.weekly-20bbf392.js → HEIGHT_BOYS.zscore.weekly-172054d3.js} +0 -0
  289. /package/build/esm/{HEIGHT_BOYS.zscore.yearly-2eea3a9c.js → HEIGHT_BOYS.zscore.yearly-bb47a3be.js} +0 -0
  290. /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-9ad65492.js → HEIGHT_GIRLS.percentile.monthly-c93c0b34.js} +0 -0
  291. /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-898065d3.js → HEIGHT_GIRLS.percentile.weekly-f1f83097.js} +0 -0
  292. /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-ac5ceb79.js → HEIGHT_GIRLS.percentile.yearly-ccee4e55.js} +0 -0
  293. /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-327bdfa5.js → HEIGHT_GIRLS.zscore.monthly-caf5410c.js} +0 -0
  294. /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e25ddbc7.js → HEIGHT_GIRLS.zscore.weekly-b1e28b0e.js} +0 -0
  295. /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-5531c2e3.js → HEIGHT_GIRLS.zscore.yearly-c3af35d3.js} +0 -0
  296. /package/build/esm/{Visible-70c720bb.js → Visible-3f9d7dca.js} +0 -0
  297. /package/build/esm/{WEIGHT_BOYS.percentile.monthly-e199416b.js → WEIGHT_BOYS.percentile.monthly-8a4647df.js} +0 -0
  298. /package/build/esm/{WEIGHT_BOYS.percentile.weekly-0965076a.js → WEIGHT_BOYS.percentile.weekly-a2a6adf1.js} +0 -0
  299. /package/build/esm/{WEIGHT_BOYS.percentile.yearly-d04404d7.js → WEIGHT_BOYS.percentile.yearly-073df8b7.js} +0 -0
  300. /package/build/esm/{WEIGHT_BOYS.zscore.monthly-be1ae0cd.js → WEIGHT_BOYS.zscore.monthly-bb9e73d2.js} +0 -0
  301. /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8b6854c4.js → WEIGHT_BOYS.zscore.weekly-ef32ce7a.js} +0 -0
  302. /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bd90b96f.js → WEIGHT_BOYS.zscore.yearly-6cc77688.js} +0 -0
  303. /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a4bb8428.js → WEIGHT_GIRLS.percentile.monthly-a4b518bc.js} +0 -0
  304. /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-c288d810.js → WEIGHT_GIRLS.percentile.weekly-dcedaebb.js} +0 -0
  305. /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-73a5ae07.js → WEIGHT_GIRLS.percentile.yearly-9e66577e.js} +0 -0
  306. /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-cbcfdab4.js → WEIGHT_GIRLS.zscore.monthly-c07cb81f.js} +0 -0
  307. /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-185ff336.js → WEIGHT_GIRLS.zscore.weekly-9c5c3e8e.js} +0 -0
  308. /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-c31a0aee.js → WEIGHT_GIRLS.zscore.yearly-e99ce511.js} +0 -0
  309. /package/build/esm/{animation-9a3ca482.js → animation-0b2299dc.js} +0 -0
  310. /package/build/esm/{cart-5f758c33.js → cart-f961dadc.js} +0 -0
  311. /package/build/esm/{cookieHelper-9c963e09.js → cookieHelper-73ce3871.js} +0 -0
  312. /package/build/esm/{doctor-1d62f054.js → doctor-8a07ca44.js} +0 -0
  313. /package/build/esm/{index-931414db.js → index-782fed08.js} +0 -0
  314. /package/build/esm/{index-4687d5f8.js → index-b65a8764.js} +0 -0
  315. /package/build/esm/{index-90e772e4.js → index-c3264b34.js} +0 -0
  316. /package/build/esm/{index-877eed06.js → index-e3787b20.js} +0 -0
  317. /package/build/esm/{isProduction-d39b7ab2.js → isProduction-5684a28c.js} +0 -0
  318. /package/build/esm/{localizeNumberFormat-f838842a.js → localizeNumberFormat-42ae8d89.js} +0 -0
  319. /package/build/esm/{normalizeLink-65565106.js → normalizeLink-d6f57223.js} +0 -0
  320. /package/build/esm/{number-cad310d0.js → number-13f075cf.js} +0 -0
  321. /package/build/esm/{paths-8fc18a86.js → paths-49a813e7.js} +0 -0
  322. /package/build/esm/{theme-eb1b39f6.js → theme-f18c2351.js} +0 -0
  323. /package/build/esm/{translationsContext-dfb42bf8.js → translationsContext-f3d1a7bd.js} +0 -0
  324. /package/build/esm/{tslib.es6-efad16cf.js → tslib.es6-761239c7.js} +0 -0
  325. /package/build/esm/{useIsInit-f341c0e8.js → useIsInit-ee864235.js} +0 -0
  326. /package/build/esm/{useOutsideClick-e10b28ce.js → useOutsideClick-7451aa57.js} +0 -0
  327. /package/build/esm/{useScrollbarSize-594c61c3.js → useScrollbarSize-84bb5b47.js} +0 -0
  328. /package/build/esm/{useUniqueId-d5f7586b.js → useUniqueId-c23213b6.js} +0 -0
  329. /package/build/esm/{utils-0d590d5e.js → utils-f8761b9d.js} +0 -0
  330. /package/build/{index-d54d6c50.js → index-97ebd7e1.js} +0 -0
  331. /package/build/{index-d8c60733.js → index-ba3797bb.js} +0 -0
  332. /package/build/{index-d628859e.js → index-bba97c2e.js} +0 -0
  333. /package/build/{index-0b957c10.js → index-df5cd44b.js} +0 -0
  334. /package/build/{isProduction-7f7f09ad.js → isProduction-aa963bf9.js} +0 -0
  335. /package/build/{localizeNumberFormat-011e6f65.js → localizeNumberFormat-90d4f9d5.js} +0 -0
  336. /package/build/{normalizeLink-23b10200.js → normalizeLink-451ae6d8.js} +0 -0
  337. /package/build/{number-249e0e0b.js → number-c2338382.js} +0 -0
  338. /package/build/{paths-02f54499.js → paths-e0bbfce7.js} +0 -0
  339. /package/build/{theme-416e0fd4.js → theme-e4f7f487.js} +0 -0
  340. /package/build/{translationsContext-6f3c14ea.js → translationsContext-39528d2f.js} +0 -0
  341. /package/build/{tslib.es6-dd1fc8f2.js → tslib.es6-7e140b89.js} +0 -0
  342. /package/build/{useIsInit-bb64ffbf.js → useIsInit-38cec0c4.js} +0 -0
  343. /package/build/{useOutsideClick-bd35bba1.js → useOutsideClick-e579e1ac.js} +0 -0
  344. /package/build/{useScrollbarSize-57b0fd8a.js → useScrollbarSize-5a8be010.js} +0 -0
  345. /package/build/{useUniqueId-4bafae28.js → useUniqueId-8929fe5f.js} +0 -0
  346. /package/build/{utils-3a589c92.js → utils-524bda7c.js} +0 -0
@@ -1,1361 +0,0 @@
1
- 'use strict';
2
-
3
- var core = require('@mantine/core');
4
- var styled = require('@emotion/styled');
5
- var theme = require('./theme-416e0fd4.js');
6
- var utils = require('./utils-3a589c92.js');
7
- var tslib_es6 = require('./tslib.es6-dd1fc8f2.js');
8
- var React = require('react');
9
- var index = require('./index-6036e2a0.js');
10
- var defaultClassWrapper = require('./defaultClassWrapper-feaae206.js');
11
- var react = require('@emotion/react');
12
- var animation = require('./animation-21a29164.js');
13
- var flattenChildren = require('react-keyed-flatten-children');
14
-
15
- function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
16
-
17
- var styled__default = /*#__PURE__*/_interopDefault(styled);
18
- var React__default = /*#__PURE__*/_interopDefault(React);
19
- var flattenChildren__default = /*#__PURE__*/_interopDefault(flattenChildren);
20
-
21
- var useStyles$1 = core.createStyles((theme) => {
22
- return {
23
- root: {
24
- display: 'inline-block',
25
- // height: 1rem,
26
- flexShrink: 0,
27
- padding: '2px 0.5rem',
28
- marginLeft: '4px',
29
- borderRadius: theme.radius.xs,
30
- // color: white,
31
- fontSize: '12px',
32
- fontWeight: 400,
33
- lineHeight: '18px',
34
- '&[data-label-type="admin"]': {
35
- background: theme.primaryColor[0],
36
- color: theme.primaryColor[9],
37
- // &[data-is-marrybaby='true'] {
38
- // background: #{map-get($mbColors, 'tonePink')};
39
- // color: #{map-get($mbColors, 'cRed')};
40
- // }
41
- },
42
- '&[data-label-type="local admin"]': {
43
- background: theme.primaryColor[8],
44
- },
45
- '&[data-label-type="ambassador"]': {
46
- background: theme.colors.green[4],
47
- },
48
- '&[data-label-type="expert"]': {
49
- background: theme.colors.yellow[6],
50
- // &[data-is-marrybaby='true'] {
51
- // background: #{map-get($mbColors, 'cOrange')};
52
- // color: #{map-get($colors, 'cWhite')};
53
- // }
54
- },
55
- '&[data-label-type="moderator"]': {
56
- background: theme.colors.red[0],
57
- color: theme.colors.red[8],
58
- // &[data-is-marrybaby='true'] {
59
- // background: #{map-get($mbColors, 'toneBlue')};
60
- // color: #{map-get($mbColors, 'cobalt')};
61
- // }
62
- },
63
- '&[data-label-type="sponsor"]': {
64
- background: theme.colors.teal[4],
65
- },
66
- '&[data-label-type="guide"]': {
67
- background: theme.colors.teal[4],
68
- },
69
- '&[data-label-type="influencer"]': {
70
- background: theme.colors.teal[4],
71
- },
72
- },
73
- };
74
- });
75
-
76
- const StyledContainer = styled__default["default"].div `
77
- display: flex;
78
- align-items: center;
79
- gap: 8px;
80
- button[data-color='tertiary'] {
81
- background: white;
82
- }
83
- `;
84
-
85
- const StyledDivider = styled__default["default"].hr `
86
- border-width: 1px;
87
- border-color: ${theme.theme.colors.neutral200};
88
- border-style: ${(props) => props.dividerType};
89
- `;
90
-
91
- const StyledAvatar = styled__default["default"].div `
92
- background-color: var(--background-color, transparent);
93
- color: white;
94
- cursor: pointer;
95
- img {
96
- --width: var(--width-prop, 40px);
97
- --height: var(--height-prop, 40px);
98
- width: var(--width);
99
- height: var(--height);
100
- }
101
- &[data-has-max='true'] {
102
- img {
103
- max-width: var(--width);
104
- max-height: var(--height);
105
- }
106
- }
107
-
108
- &[data-avatar-type='square'] {
109
- img {
110
- --width: var(--width-prop, 72px);
111
- --height: var(--height-prop, 72px);
112
- border-radius: ${theme.theme.borderRadius};
113
- }
114
- }
115
-
116
- &[data-avatar-type='rounded'] {
117
- img {
118
- border-radius: 50%;
119
- }
120
- }
121
-
122
- &[data-custom-size='true'] {
123
- display: flex;
124
- overflow: hidden;
125
- overflow: hidden;
126
- width: var(--size);
127
- height: var(--size);
128
- align-items: center;
129
- justify-content: center;
130
- background-size: cover;
131
- font-size: calc(var(--size) / 2);
132
- font-weight: bold;
133
- &[data-avatar-type='square'] {
134
- border-radius: ${theme.theme.borderRadius};
135
- }
136
- &[data-avatar-type='rounded'] {
137
- border-radius: 50%;
138
- img {
139
- --width: 100%;
140
- --height: 100%;
141
- }
142
- }
143
- img {
144
- object-fit: cover;
145
- }
146
- }
147
- `;
148
-
149
- const renderNotificationStyles = (type, size, hasIcon, color) => {
150
- let sizeparams = '';
151
- if (type === 'numeric') {
152
- switch (size) {
153
- case 'medium':
154
- sizeparams = `
155
- height: 16px;
156
- font-size: 11px;
157
- padding: 1px 6px;
158
- `;
159
- case 'large':
160
- sizeparams = `
161
- height: 24px;
162
- font-size: 13px;
163
- padding: 1px 10px;
164
- `;
165
- }
166
- }
167
- let icon = '';
168
- if (hasIcon) {
169
- icon = `
170
- position: absolute;
171
- top: 0;
172
- left: 75%;
173
- `;
174
- }
175
- let numericIcon;
176
- if (hasIcon) {
177
- numericIcon = `
178
- left: 70%;
179
-
180
- ${size === 'large'
181
- ? `
182
- top: -7px;
183
- `
184
- : size === 'medium'
185
- ? `
186
- top: -2px;
187
- width: 16px;
188
- height: 16px;
189
- `
190
- : ''}
191
- `;
192
- }
193
- let notificationColor = '';
194
- switch (color) {
195
- case 'primary':
196
- notificationColor = `
197
- background: ${theme.theme.colors.primary50};
198
- color: ${theme.theme.colors.primary600};
199
- `;
200
- break;
201
- case 'error':
202
- notificationColor = `
203
- background: ${theme.theme.colors.error};
204
- color: white;
205
- `;
206
- break;
207
- }
208
- switch (type) {
209
- case 'dot':
210
- return `
211
- ${icon}
212
- width: 8px;
213
- height: 8px;
214
- font-size: 0px;
215
- border-radius: 50%;
216
- ${notificationColor}
217
- `;
218
- case 'numeric':
219
- return `
220
- ${icon}
221
- width: max-content;
222
- border-radius: 32px;
223
- ${sizeparams}
224
- ${numericIcon}
225
- ${notificationColor}
226
- `;
227
- }
228
- };
229
- const StyledBadge = styled__default["default"].div `
230
- position: relative;
231
-
232
- > div {
233
- width: max-content;
234
- position: relative;
235
- }
236
-
237
- span {
238
- font-weight: ${theme.theme.sizes.fwBold};
239
- display: flex;
240
- justify-content: center;
241
- align-items: center;
242
-
243
- ${(props) => renderNotificationStyles(props.notificationType, props.notificationSize, props.hasIcon, props.notificationColor)}
244
- }
245
-
246
- ${(props) => props.hasIcon &&
247
- `
248
- svg {
249
- width: 40px;
250
- height: 40px;
251
- }
252
- `}
253
- `;
254
-
255
- const StyledBorderHeading = styled__default["default"].h4 `
256
- position: relative;
257
- line-height: 18px;
258
-
259
- &:after {
260
- position: absolute;
261
- top: 1px;
262
- left: 0;
263
- width: 4px;
264
- height: 18px;
265
- background-color: ${theme.theme.colors.primaryBase};
266
- content: '';
267
- }
268
-
269
- &[data-size='lg'] {
270
- font-size: 18px;
271
- padding-left: 12px;
272
- }
273
-
274
- &[data-size='sm'] {
275
- font-size: 14px;
276
- padding-left: 8px;
277
-
278
- &::after {
279
- width: 2px;
280
- height: 15px;
281
- }
282
- }
283
-
284
- &[data-type='bold'] {
285
- font-weight: ${theme.theme.sizes.fwBold};
286
- }
287
- &[data-type='semiBold'] {
288
- font-weight: ${theme.theme.sizes.fwSemiBold};
289
- }
290
-
291
- &[data-uppercase] {
292
- text-transform: uppercase;
293
- }
294
-
295
- ${utils.MediaQueries.mbDown} {
296
- &[data-size='lg'] {
297
- font-size: 16px;
298
- }
299
- }
300
- `;
301
-
302
- const StyledDropdown = styled__default["default"].div `
303
- position: relative;
304
- box-sizing: border-box;
305
- border: 1px solid ${theme.theme.colors.gray200};
306
- background: url('../../../public/bgSvg/arrow-down.svg') no-repeat;
307
- background-position: right 16px center;
308
- border-radius: ${theme.theme.borderRadius};
309
-
310
- &[data-has-icons='true'] {
311
- border: none;
312
- background: ${theme.theme.colors.gray100};
313
-
314
- img,
315
- svg {
316
- display: inline-block;
317
- max-width: 16px;
318
- margin-right: 6px;
319
- }
320
-
321
- span {
322
- vertical-align: middle;
323
- display: inline-block;
324
- }
325
-
326
- &:hover {
327
- box-shadow: none;
328
- }
329
- > div {
330
- position: relative;
331
- width: 100%;
332
- display: flex;
333
- align-items: center;
334
- box-sizing: border-box;
335
- }
336
- > div::after {
337
- content: '';
338
- right: 12px;
339
- top: 50%;
340
- 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");
341
- width: 10px;
342
- height: 8px;
343
- position: absolute;
344
- background-repeat: no-repeat;
345
- transform: translateY(-50%);
346
- }
347
- }
348
-
349
- &:hover {
350
- box-shadow: 0 0 2px 2px ${theme.theme.colors.primary200};
351
- }
352
- `;
353
- const StyledDropdownName = styled__default["default"].div `
354
- padding: 12px 18px 12px 16px;
355
- cursor: pointer;
356
- &[data-dropdown-open] {
357
- padding: 11px 15px 11px 15px;
358
- border: 1px solid ${theme.theme.colors.primaryBase};
359
- border-radius: ${theme.theme.borderRadius};
360
- box-shadow: 0 0 2px 2px ${theme.theme.colors.primary200};
361
- }
362
-
363
- & > svg {
364
- height: 16px;
365
- width: 16px;
366
- }
367
- `;
368
- const StyledDropdownList = styled__default["default"].ul `
369
- position: absolute;
370
- top: 100%;
371
- right: 0;
372
- left: 0;
373
- display: block;
374
- margin-top: 4px;
375
- background: ${theme.theme.colors.white};
376
- border-radius: ${theme.theme.borderRadius};
377
- box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
378
- -2px 2px 5px rgba(67, 86, 100, 0.123689);
379
- cursor: pointer;
380
-
381
- &[data-has-icons='true'] {
382
- background: white;
383
- box-shadow: none;
384
- border: 1px solid ${theme.theme.colors.gray200};
385
- filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
386
- }
387
- `;
388
- const StyledDropdownOption = styled__default["default"].li `
389
- margin: 8px;
390
- padding: 12px 18px 12px 16px;
391
- border-radius: ${theme.theme.borderRadius};
392
- display: flex;
393
- &:hover,
394
- :active {
395
- background: ${theme.theme.colors.gray100};
396
- }
397
- `;
398
- const StyledIcon = styled__default["default"].div `
399
- display: flex;
400
- align-items: center;
401
- margin-right: 8px;
402
-
403
- & > svg {
404
- height: 16px;
405
- width: 16px;
406
- }
407
- `;
408
-
409
- const StyledGrid = styled__default["default"].div `
410
- --columns: var(--grid-template-columns, repeat(var(--columns-count), 1fr));
411
- --columns-desktop: var(
412
- --grid-template-columns-desktop,
413
- repeat(var(--columns-count-desktop), 1fr)
414
- );
415
- display: grid;
416
- grid-template-columns: var(--columns);
417
- grid-gap: var(--grid-gap);
418
- align-items: var(--align-items);
419
-
420
- ${utils.MediaQueries.tdUp} {
421
- grid-template-columns: var(--columns-desktop);
422
- }
423
-
424
- > * {
425
- justify-self: var(--justify-children);
426
- }
427
- `;
428
-
429
- const StyledPagination = styled__default["default"].div `
430
- display: flex;
431
- align-items: center;
432
- justify-content: space-between;
433
- user-select: none;
434
- li {
435
- transition: all 0.3s ease;
436
- }
437
- [data-page-active] {
438
- background: ${theme.theme.colors.primaryBase};
439
- color: ${theme.theme.colors.white};
440
-
441
- > a {
442
- color: ${theme.theme.colors.white};
443
- }
444
- }
445
- `;
446
- const StyledPageBlock = styled__default["default"].div `
447
- display: flex;
448
- width: 32px;
449
- height: 32px;
450
- box-sizing: border-box;
451
- align-items: center;
452
- justify-content: center;
453
- border: 1px solid ${theme.theme.colors.gray200};
454
- margin: 0 2px;
455
- border-radius: 4px;
456
- color: ${theme.theme.colors.gray800};
457
- cursor: pointer;
458
- font-size: 14px;
459
- font-weight: ${theme.theme.sizes.fwBold};
460
-
461
- &[data-last-page] {
462
- border: none;
463
- background-color: ${theme.theme.colors.gray100};
464
- cursor: not-allowed;
465
- pointer-events: none;
466
-
467
- svg {
468
- path {
469
- stroke: ${theme.theme.colors.gray300};
470
- }
471
- }
472
- }
473
- `;
474
- const StyledPaginationBlock = styled__default["default"].li `
475
- display: flex;
476
- width: 32px;
477
- height: 32px;
478
- align-items: center;
479
- justify-content: center;
480
- margin: 0 2px;
481
- border-radius: 4px;
482
- color: ${theme.theme.colors.gray800};
483
- cursor: pointer;
484
- font-size: 14px;
485
- font-weight: ${theme.theme.sizes.fwBold};
486
-
487
- > a {
488
- color: ${theme.theme.colors.gray800};
489
- text-decoration: unset;
490
- display: block;
491
- width: 100%;
492
- height: 100%;
493
- line-height: 32px;
494
- text-align: center;
495
- }
496
- `;
497
-
498
- const StyledInput = styled__default["default"].div `
499
- position: relative;
500
- width: 100%;
501
-
502
- &[data-has-error] {
503
- input {
504
- border-color: ${theme.theme.colors.red700};
505
- }
506
- }
507
-
508
- input {
509
- width: 100%;
510
- padding: 12px 16px;
511
- border: solid 1px ${theme.theme.colors.gray200};
512
- border-radius: ${theme.theme.borderRadius};
513
-
514
- &:active,
515
- &:focus,
516
- .focused & {
517
- border-color: ${theme.theme.colors.primaryBase};
518
- box-shadow: 0px 0px 2px 2px ${theme.theme.colors.primary200};
519
- }
520
-
521
- &:disabled {
522
- background-color: ${theme.theme.colors.gray100};
523
- cursor: not-allowed;
524
- }
525
- }
526
-
527
- &[data-has-action-icon] {
528
- input {
529
- padding: 12px 48px 12px 16px;
530
- }
531
- }
532
- &[data-has-display-icon] {
533
- input {
534
- padding: 12px 16px 12px 48px;
535
- }
536
- }
537
-
538
- &[data-has-action-icon][data-has-display-icon] {
539
- input {
540
- padding: 12px 48px;
541
- }
542
- }
543
-
544
- &[data-size='lg'] {
545
- input {
546
- font-size: 16px;
547
- font-weight: ${theme.theme.sizes.fwRegular};
548
- ${utils.MediaQueries.mbDown} {
549
- font-size: 22px;
550
- line-height: 1.2;
551
- }
552
-
553
- ${utils.MediaQueries.mbUp} {
554
- font-size: 26px;
555
- line-height: 1.2;
556
- }
557
- }
558
- }
559
- &[data-size='md'] {
560
- input {
561
- font-weight: ${theme.theme.sizes.fwRegular};
562
- ${utils.MediaQueries.mbDown} {
563
- font-size: 14px;
564
- line-height: 1.2;
565
- }
566
-
567
- ${utils.MediaQueries.mbUp} {
568
- font-size: 16px;
569
- line-height: 1.2;
570
- }
571
- }
572
- }
573
- &[data-size='sm'] {
574
- input {
575
- font-weight: ${theme.theme.sizes.fwRegular};
576
- ${utils.MediaQueries.mbDown} {
577
- font-size: 13px;
578
- line-height: 1.5;
579
- }
580
-
581
- ${utils.MediaQueries.mbUp} {
582
- font-size: 13px;
583
- line-height: 1.5;
584
- }
585
- }
586
- }
587
- `;
588
-
589
- /**
590
- * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
591
- */
592
- const PureInput = React__default["default"].forwardRef((_a, ref) => {
593
- 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 = tslib_es6.__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"]);
594
- const [localValue, setLocalValue] = React.useState(defaultValue);
595
- const handleOnChange = (v) => {
596
- setLocalValue(v);
597
- onChange(v);
598
- };
599
- const handleOnActionClick = () => {
600
- var _a;
601
- if (isDeleteAction) {
602
- setLocalValue('');
603
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
604
- }
605
- onActionClick && onActionClick();
606
- };
607
- return (React__default["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 },
608
- label && (React__default["default"].createElement(index.Label, { size: "label2", htmlFor: name, className: "inputLabel" }, label)),
609
- React__default["default"].createElement("div", { style: { position: 'relative' } },
610
- CustomInput ? (CustomInput) : (React__default["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))),
611
- DisplayIcon && (React__default["default"].createElement(index.StyledDisplayIcon, { className: "displayIcon" }, DisplayIcon)),
612
- ActionIcon && (React__default["default"].createElement(index.StyledActionIcon, { className: "actionIcon", onClick: handleOnActionClick }, ActionIcon))),
613
- errorMessage && errorMessage.length > 0 && (React__default["default"].createElement(index.StyledErrorLabel, { className: "errorLabel" }, errorMessage))));
614
- });
615
- PureInput.displayName = 'PureInput';
616
-
617
- const getTag = (tag, isLight) => {
618
- switch (tag) {
619
- case 'yellow': {
620
- const color = isLight ? theme.theme.colors.yellow50 : theme.theme.colors.yellow600;
621
- return `
622
- background: ${color};
623
- p {
624
- color: var(
625
- --text-props-color,
626
- ${theme.theme.colors.gray800}
627
- );
628
- }
629
- `;
630
- }
631
- case 'standard': {
632
- return `
633
- background: ${theme.theme.colors.white};
634
- border: 1px solid ${theme.theme.colors.gray200};
635
-
636
- p {
637
- color: var(
638
- --text-props-color,
639
- ${theme.theme.colors.gray800}
640
- );
641
- }
642
-
643
- &:hover {
644
- background: ${theme.theme.colors.gray100};
645
- }
646
- `;
647
- }
648
- case 'red': {
649
- const color = isLight ? theme.theme.colors.red50 : theme.theme.colors.red500;
650
- return `
651
- background: ${color};
652
- `;
653
- }
654
- case 'green': {
655
- const color = isLight ? theme.theme.colors.green50 : theme.theme.colors.green500;
656
- return `
657
- background: ${color};
658
- `;
659
- }
660
- case 'blue': {
661
- const color = isLight ? theme.theme.colors.primary50 : theme.theme.colors.primaryBase;
662
- return `
663
- background: ${color};
664
- `;
665
- }
666
- case 'teal': {
667
- const color = isLight ? theme.theme.colors.teal100 : theme.theme.colors.teal600;
668
- return `
669
- background: ${color};
670
- `;
671
- }
672
- case 'pink': {
673
- const color = isLight ? theme.theme.colors.pink200 : theme.theme.colors.pink800;
674
- return `
675
- background: ${color};
676
- `;
677
- }
678
- case 'violet': {
679
- const color = isLight ? theme.theme.colors.violet100 : theme.theme.colors.violet500;
680
- return `
681
- background: ${color};
682
- `;
683
- }
684
- case 'grey': {
685
- const color = isLight ? theme.theme.colors.gray100 : theme.theme.colors.gray600;
686
- return `
687
- background: ${color};
688
- `;
689
- }
690
- }
691
- };
692
- const StyledTag = styled__default["default"].div `
693
- --padding-horizontal: 8px;
694
- --pading-vertical: 2px;
695
- display: flex;
696
- align-items: center;
697
- justify-content: center;
698
- padding: var(--pading-vertical) var(--padding-horizontal);
699
- border-radius: 24px;
700
-
701
- ${(props) => props.tagType === 'sponsored' &&
702
- `
703
- --offset-size: 4px;
704
- display: flex;
705
- align-items: center;
706
- justify-content: center;
707
- box-sizing: content-box;
708
- position: relative;
709
- box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
710
- border-radius: 0 4px 18px 0;
711
- height: 24px;
712
- width: 90px;
713
- border-left: var(--offset-size) solid ${theme.theme.colors.accentLight};
714
- padding: 0;
715
- margin-left: calc(var(--offset-size) * -1);
716
-
717
- p {
718
- font-weight: ${theme.theme.sizes.fwBold};
719
- color: var(
720
- --text-props-color,
721
- ${theme.theme.colors.secondaryDark}
722
- );
723
- font-size: 11px;
724
- margin-left: calc(var(--offset-size) * -1);
725
- }
726
-
727
- &::after {
728
- width: calc(var(--offset-size) * 2);
729
- height: var(--offset-size);
730
- background: ${theme.theme.colors.accentMain};
731
- position: absolute;
732
- left: calc(var(--offset-size) * -1);
733
- bottom: calc(var(--offset-size) * -1);
734
- clip-path: polygon(0 1%, 100% 0%, 100% 100%);
735
- content: '';
736
- }
737
- `}
738
-
739
- ${(props) => props.isInline &&
740
- `
741
- display: inline-block;
742
- `}
743
-
744
- ${(props) => props.tagHasMorePadding &&
745
- `
746
- &[data-has-more-padding] {
747
- padding: calc(var(--pading-vertical) + 5px) var(--padding-horizontal);
748
- }
749
- `}
750
-
751
- p {
752
- ${(props) => props.tagIsLight
753
- ? `
754
- color: var(--text-props-color, #000);
755
- `
756
- : `
757
- color: var(--text-props-color, ${theme.theme.colors.white});
758
- `}
759
- }
760
-
761
- ${(props) => getTag(props.tagType, props.tagIsLight)}
762
-
763
- ${(props) => props.tagIsSquared &&
764
- props.tagType !== 'sponsored' &&
765
- `
766
- border-radius: 4px;
767
- `}
768
-
769
- ${(props) => props.tagIsALink &&
770
- `
771
- cursor: pointer;
772
- `}
773
-
774
- &[data-is-selected],
775
- &:active {
776
- background: ${theme.theme.colors.primary50};
777
- }
778
- `;
779
-
780
- const heightIcon = '24px';
781
- const StyledToggleIcon = defaultClassWrapper.setDefaultClass(styled__default["default"].span `
782
- position: relative;
783
- display: block;
784
- width: 40px;
785
- height: ${heightIcon};
786
- background: #c3cbd4;
787
- border-radius: 100px;
788
- cursor: pointer;
789
-
790
- &:after {
791
- position: absolute;
792
- top: 2px;
793
- left: 2px;
794
- width: 20px;
795
- height: 20px;
796
- background: #fff;
797
- border-radius: 90px;
798
- content: '';
799
- transition: 0.3s;
800
- }
801
- `, 'hhgcomp-toggle-icon');
802
- const StyledToggleLabel = styled__default["default"].span `
803
- padding-left: 15px;
804
- `;
805
- const StyledToggle = styled__default["default"].div `
806
- height: ${heightIcon};
807
-
808
- input[type='checkbox'] {
809
- width: 0;
810
- height: 0;
811
- visibility: hidden;
812
- }
813
-
814
- label {
815
- cursor: pointer;
816
- display: inline-flex;
817
- color: ${theme.theme.colors.gray600};
818
- }
819
-
820
- input:checked + label ${StyledToggleIcon.classSelector} {
821
- background: ${theme.theme.colors.primaryBase};
822
- &:after {
823
- left: calc(100% - 2px);
824
- transform: translateX(-100%);
825
- }
826
- }
827
- `;
828
-
829
- const StyledTextArea = styled__default["default"].div `
830
- textarea {
831
- width: 100%;
832
- height: var(--textarea-height, 116px);
833
- padding: 1rem;
834
- border: 1px solid ${theme.theme.colors.gray200};
835
- border-radius: 6px;
836
- color: ${theme.theme.colors.gray800};
837
- font-size: 14px;
838
- resize: none;
839
-
840
- &:focus {
841
- box-shadow: 0px 0px 2px 2px #91caff;
842
- }
843
-
844
- &::placeholder {
845
- color: ${theme.theme.colors.gray500};
846
- }
847
-
848
- &:disabled {
849
- background-color: ${theme.theme.colors.neutral50};
850
- cursor: not-allowed;
851
- }
852
- }
853
- `;
854
- /**
855
- * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
856
- */
857
- const TextArea = React__default["default"].forwardRef(({ height, placeholder, labelText, labelColor, id, name, onChange, value, className, onKeyPress, disabled = false, }, ref) => {
858
- return (React__default["default"].createElement(StyledTextArea, { className: className, style: { ['--textarea-height']: height || '116px' } },
859
- labelText && (React__default["default"].createElement(index.Label, { size: "label2", style: { color: labelColor || '#595959' }, htmlFor: id }, labelText)),
860
- React__default["default"].createElement("textarea", { name: name, ref: ref, placeholder: placeholder, id: id, onChange: (e) => onChange && onChange(e.target.value),
861
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
862
- onKeyPress: (e) => onKeyPress && onKeyPress(e), value: value, disabled: disabled })));
863
- });
864
-
865
- const StyledCheckbox = styled__default["default"].div `
866
- display: flex;
867
- cursor: pointer;
868
-
869
- &[data-theme='marryBaby'] {
870
- input {
871
- width: 20px;
872
- height: 20px;
873
- border: 1.3px solid ${theme.theme.mbColors.midGray};
874
- border-radius: 9px;
875
-
876
- cursor: inherit;
877
- transition: border-color 0.4s, box-shadow 0.4s;
878
-
879
- &:hover,
880
- &:active {
881
- border-color: ${theme.theme.mbColors.cobalt};
882
- box-shadow: 0 0 2px 2px ${theme.theme.mbColors.cobalt};
883
- }
884
-
885
- &:focus-visible {
886
- border: 2px solid ${theme.theme.mbColors.cobalt};
887
- }
888
-
889
- &:checked {
890
- border: 0;
891
- background: ${theme.theme.mbColors.cobalt}
892
- 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")
893
- no-repeat center center;
894
- }
895
- }
896
-
897
- label {
898
- max-width: 15rem;
899
- margin-left: 8px;
900
- width: calc(100% - 24px);
901
- cursor: inherit;
902
- font-weight: 600;
903
- font-size: 12px;
904
- line-height: 20px;
905
- letter-spacing: -0.2px;
906
- color: ${theme.theme.mbColors.gray};
907
- }
908
- }
909
- input {
910
- width: 20px;
911
- height: 20px;
912
- border: solid 1px ${theme.theme.colors.gray500};
913
- border-radius: 2px;
914
-
915
- cursor: inherit;
916
- transition: border-color 0.4s, box-shadow 0.4s;
917
-
918
- &:hover,
919
- &:active {
920
- border-color: ${theme.theme.colors.primaryBase};
921
- box-shadow: 0 0 2px 2px ${theme.theme.colors.primary200};
922
- }
923
-
924
- &:focus-visible {
925
- border: 2px solid ${theme.theme.colors.primaryActive};
926
- }
927
-
928
- &:checked {
929
- border: 0;
930
- background: ${theme.theme.colors.primaryBase}
931
- 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")
932
- no-repeat center center;
933
- }
934
- }
935
-
936
- label {
937
- max-width: 15rem;
938
- margin-left: 8px;
939
- font-weight: ${theme.theme.sizes.fwRegular};
940
- width: calc(100% - 24px);
941
- cursor: inherit;
942
-
943
- ${utils.MediaQueries.mbDown} {
944
- font-size: 14px;
945
- line-height: 24px;
946
- }
947
-
948
- ${utils.MediaQueries.mbUp} {
949
- font-size: 16px;
950
- line-height: 22px;
951
- }
952
- }
953
-
954
- &[data-is-rectangle] > input {
955
- position: relative;
956
- width: unset;
957
- height: unset;
958
- padding: 5px 12px;
959
- border: 1px solid ${theme.theme.colors.neutral100};
960
- border-radius: 32px;
961
-
962
- &::after {
963
- color: ${theme.theme.colors.gray800};
964
- content: attr(data-label-text);
965
- font-size: 13px;
966
- }
967
- &:checked {
968
- border-color: ${theme.theme.colors.primary50};
969
- &::after {
970
- color: ${theme.theme.colors.primaryBase};
971
- }
972
- }
973
- &:checked {
974
- background: ${theme.theme.colors.primary50};
975
- }
976
- }
977
-
978
- &[data-disabled] {
979
- color: ${theme.theme.colors.gray300};
980
- cursor: not-allowed;
981
- input {
982
- border-color: ${theme.theme.colors.gray300};
983
- &:hover {
984
- border-color: ${theme.theme.colors.gray300};
985
- box-shadow: none;
986
- }
987
- }
988
- }
989
- `;
990
-
991
- const StyledRateStars = styled__default["default"].div `
992
- display: inline-flex;
993
-
994
- gap: calc(var(--gap) * 1px);
995
- > svg {
996
- width: calc(var(--star-size) * 1px);
997
- height: calc(var(--star-size) * 1px);
998
- }
999
-
1000
- &[data-selectable='true'] {
1001
- > svg {
1002
- cursor: pointer;
1003
- }
1004
- }
1005
- `;
1006
-
1007
- const DURATION = '600ms';
1008
- const generateStyleBasedOnPlacement = (placement, open) => {
1009
- switch (placement) {
1010
- case 'top':
1011
- return react.css `
1012
- top: 0;
1013
- width: 100%;
1014
- border-radius: 0px 0px 6px 6px;
1015
- ${open
1016
- ? react.css `
1017
- animation: ${animation.slideInDown} ${DURATION} ease-in-out forwards;
1018
- `
1019
- : null}
1020
-
1021
- &.slideOut {
1022
- animation: ${animation.slideOutUp} ${DURATION} ease-in-out forwards;
1023
- }
1024
- `;
1025
- case 'right':
1026
- return react.css `
1027
- right: 0;
1028
- height: 100%;
1029
- min-width: 300px;
1030
- border-radius: 6px 0px 0px 6px;
1031
-
1032
- ${open
1033
- ? react.css `
1034
- animation: ${animation.slideInRight} ${DURATION} ease-in-out forwards;
1035
- `
1036
- : null}
1037
-
1038
- &.slideOut {
1039
- animation: ${animation.slideOutRight} ${DURATION} ease-in-out forwards;
1040
- }
1041
- `;
1042
- case 'bottom':
1043
- return react.css `
1044
- bottom: 0;
1045
- width: 100%;
1046
- border-radius: 6px 6px 0px 0px;
1047
- ${open
1048
- ? react.css `
1049
- animation: ${animation.slideInUp} ${DURATION} ease-in-out forwards;
1050
- `
1051
- : null}
1052
-
1053
- &.slideOut {
1054
- animation: ${animation.slideOutDown} ${DURATION} ease-in-out forwards;
1055
- }
1056
- `;
1057
- case 'left':
1058
- return react.css `
1059
- left: 0;
1060
- height: 100%;
1061
- min-width: 300px;
1062
- border-radius: 0px 6px 6px 0px;
1063
-
1064
- ${open
1065
- ? react.css `
1066
- animation: ${animation.slideInLeft} ${DURATION} ease-in-out forwards;
1067
- `
1068
- : null}
1069
-
1070
- &.slideOut {
1071
- animation: ${animation.slideOutLeft} ${DURATION} ease-in-out forwards;
1072
- }
1073
- `;
1074
- default:
1075
- return react.css `
1076
- left: 0;
1077
- height: 100%;
1078
- min-width: 300px;
1079
- border-radius: 0px 6px 6px 0px;
1080
-
1081
- ${open
1082
- ? react.css `
1083
- animation: ${animation.slideInUp} ${DURATION} ease-in-out forwards;
1084
- `
1085
- : null}
1086
-
1087
- &.slideOut {
1088
- animation: ${animation.slideOutDown} ${DURATION} ease-in-out forwards;
1089
- }
1090
- `;
1091
- }
1092
- };
1093
-
1094
- const StyledDrawer = styled__default["default"].div `
1095
- position: fixed;
1096
- inset: 0;
1097
- z-index: ${theme.theme.zIndexes.drawer};
1098
- pointer-events: ${(props) => (props.open ? 'auto' : 'none')};
1099
- `;
1100
- const StyledDrawerPanel = styled__default["default"].div `
1101
- position: fixed;
1102
- z-index: 300;
1103
- background: #ffffff;
1104
- visibility: ${(props) => (props.open ? 'visible' : 'hidden')};
1105
- max-height: calc(100vh - 100px);
1106
- display: flex;
1107
- flex-direction: column;
1108
- .title {
1109
- display: flex;
1110
- align-items: center;
1111
- justify-content: space-between;
1112
- padding: 16px;
1113
- ${(props) => props.hasTitle
1114
- ? react.css `
1115
- border-bottom: 1px solid ${theme.theme.colors.neutral100};
1116
- `
1117
- : null}
1118
- }
1119
-
1120
- .close-button {
1121
- margin-left: auto;
1122
- }
1123
-
1124
- ${(props) => generateStyleBasedOnPlacement(props.placement, props.open)}
1125
- `;
1126
- const StyledDrawerContent = styled__default["default"].div `
1127
- min-height: 200px;
1128
- padding: 16px;
1129
- overflow-y: auto;
1130
- `;
1131
-
1132
- const StyledBackdrop = styled__default["default"].div `
1133
- position: fixed;
1134
- inset: 0;
1135
- display: flex;
1136
- align-items: center;
1137
- justify-content: center;
1138
- width: 100%;
1139
- height: 100%;
1140
- overflow-x: hidden;
1141
- overflow-y: auto;
1142
- outline: 0;
1143
- background-color: rgba(38, 38, 38, 0.3);
1144
- z-index: 1;
1145
- &[data-open='false'] {
1146
- visibility: hidden;
1147
- pointer-events: none;
1148
- }
1149
- &[data-open='true'] {
1150
- visibility: visible;
1151
- pointer-events: auto;
1152
- }
1153
- `;
1154
-
1155
- const StyledRadioImageGroup = styled__default["default"].div `
1156
- display: flex;
1157
- width: 100%;
1158
-
1159
- &[data-direction='vertical'] {
1160
- flex-direction: column;
1161
- }
1162
-
1163
- &[data-direction='horizontal'] {
1164
- flex-wrap: wrap;
1165
- }
1166
- `;
1167
- const StyledRadioImageItem = styled__default["default"].div `
1168
- display: flex;
1169
-
1170
- padding: 8px;
1171
-
1172
- border-radius: ${theme.theme.borderRadius};
1173
- cursor: pointer;
1174
-
1175
- & > div {
1176
- display: flex;
1177
- width: 100%;
1178
- height: 100%;
1179
- flex-direction: column;
1180
- align-items: center;
1181
- justify-content: flex-start;
1182
- }
1183
-
1184
- &[data-is-mb='false'] {
1185
- &[data-selected='true'] {
1186
- border: 1px solid #2d87f3;
1187
- background: white;
1188
- }
1189
- &[data-selected='false'] {
1190
- border: 1px solid #f2f2f2;
1191
- box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
1192
- }
1193
- }
1194
-
1195
- &[data-is-mb='true'] {
1196
- border-radius: 16px;
1197
- background: white;
1198
- padding: 16px auto;
1199
-
1200
- &[data-selected='true'] {
1201
- border: 1px solid ${theme.theme.mbColors.mint};
1202
- box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
1203
- }
1204
- &[data-selected='false'] {
1205
- border: none;
1206
- }
1207
- }
1208
-
1209
- &[data-disabled='true'] {
1210
- cursor: auto;
1211
- }
1212
-
1213
- .radio-group-item-heading {
1214
- margin-top: 8px;
1215
- //height: 48px;
1216
- text-align: center;
1217
- }
1218
-
1219
- .gender-image {
1220
- width: 70px;
1221
- height: 70px;
1222
- &[data-is-mobile='true'] {
1223
- width: 40px;
1224
- height: 40px;
1225
- }
1226
- }
1227
- `;
1228
-
1229
- // define shared context
1230
- const StepRendererContext = React.createContext({
1231
- currentStep: 0,
1232
- setCurrentStep: () => false,
1233
- setMaxStep: () => false,
1234
- nextStep: () => false,
1235
- prevStep: () => false,
1236
- });
1237
- const StepRenderer = ({ children, onStepChange }) => {
1238
- const [currentStep, setCurrentStep] = React.useState(0);
1239
- const [maxStep, setMaxStep] = React.useState(0);
1240
- const childrenCount = React__default["default"].Children.count(children);
1241
- React.useEffect(() => {
1242
- setMaxStep(childrenCount - 1);
1243
- }, [childrenCount]);
1244
- React.useEffect(() => {
1245
- onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(currentStep);
1246
- }, [currentStep]);
1247
- const nextStep = () => currentStep + 1 <= maxStep && setCurrentStep(currentStep + 1);
1248
- const prevStep = () => currentStep - 1 >= 0 && setCurrentStep(currentStep - 1);
1249
- return (React__default["default"].createElement(StepRendererContext.Provider, { value: {
1250
- currentStep,
1251
- setCurrentStep,
1252
- setMaxStep,
1253
- nextStep,
1254
- prevStep,
1255
- } }, flattenChildren__default["default"](children).map((element, idx) => {
1256
- const active = idx === currentStep;
1257
- return (React__default["default"].createElement(React.Fragment, { key: idx }, !React__default["default"].isValidElement(element)
1258
- ? active
1259
- ? element
1260
- : null
1261
- : element.props.alwaysRender || active
1262
- ? React__default["default"].cloneElement(element, {
1263
- isActive: idx === currentStep,
1264
- stepIndex: idx,
1265
- })
1266
- : null));
1267
- })));
1268
- };
1269
-
1270
- var useStyles = core.createStyles((theme, { type }) => {
1271
- const isMarryBaby = theme.other.template === 'mb';
1272
- return {
1273
- root: {},
1274
- wrapper: Object.assign({ gap: core.rem(8) }, (type === 'radio' && {
1275
- justifyContent: 'flex-end',
1276
- gap: core.rem(24),
1277
- })),
1278
- groupErr: {
1279
- fontSize: core.rem(14),
1280
- },
1281
- itemRoot: Object.assign({}, (type === 'button'
1282
- ? {
1283
- flexGrow: 1,
1284
- width: '50%',
1285
- '&[data-checked="true"]': {
1286
- '.mantine-Radio-label': {
1287
- borderColor: theme.fn.primaryColor(),
1288
- },
1289
- },
1290
- }
1291
- : type === 'radio'
1292
- ? { padding: `${core.rem(10)} 0`, margin: 0 }
1293
- : {})),
1294
- itemLabelWrapper: {
1295
- padding: 0,
1296
- width: '100%',
1297
- },
1298
- itemLabel: Object.assign({ whiteSpace: 'nowrap' }, (type === 'button'
1299
- ? {
1300
- position: 'relative',
1301
- padding: `${core.rem(6)} ${core.rem(16)}`,
1302
- border: `1px solid ${isMarryBaby ? '#EAEAEC' : theme.colors.gray[2]}`,
1303
- borderRadius: core.rem(isMarryBaby ? 16 : 4),
1304
- cursor: 'pointer',
1305
- '&[data-disabled="true"]': {
1306
- background: theme.colors.gray[1],
1307
- color: `${theme.colors.gray[4]} !important`,
1308
- img: {
1309
- opacity: 0.5,
1310
- },
1311
- },
1312
- img: {
1313
- height: core.rem(26),
1314
- },
1315
- }
1316
- : type === 'radio'
1317
- ? { fontSize: core.rem(14) }
1318
- : {})),
1319
- itemInner: Object.assign(Object.assign({}, (type === 'button' && {
1320
- display: 'none',
1321
- })), (type === 'radio' && {
1322
- alignSelf: 'center',
1323
- })),
1324
- itemBody: Object.assign({}, (type === 'radio' && {
1325
- alignItems: 'center',
1326
- })),
1327
- };
1328
- });
1329
-
1330
- exports.PureInput = PureInput;
1331
- exports.StepRenderer = StepRenderer;
1332
- exports.StepRendererContext = StepRendererContext;
1333
- exports.StyledAvatar = StyledAvatar;
1334
- exports.StyledBackdrop = StyledBackdrop;
1335
- exports.StyledBadge = StyledBadge;
1336
- exports.StyledBorderHeading = StyledBorderHeading;
1337
- exports.StyledCheckbox = StyledCheckbox;
1338
- exports.StyledContainer = StyledContainer;
1339
- exports.StyledDivider = StyledDivider;
1340
- exports.StyledDrawer = StyledDrawer;
1341
- exports.StyledDrawerContent = StyledDrawerContent;
1342
- exports.StyledDrawerPanel = StyledDrawerPanel;
1343
- exports.StyledDropdown = StyledDropdown;
1344
- exports.StyledDropdownList = StyledDropdownList;
1345
- exports.StyledDropdownName = StyledDropdownName;
1346
- exports.StyledDropdownOption = StyledDropdownOption;
1347
- exports.StyledGrid = StyledGrid;
1348
- exports.StyledIcon = StyledIcon;
1349
- exports.StyledPageBlock = StyledPageBlock;
1350
- exports.StyledPagination = StyledPagination;
1351
- exports.StyledPaginationBlock = StyledPaginationBlock;
1352
- exports.StyledRadioImageGroup = StyledRadioImageGroup;
1353
- exports.StyledRadioImageItem = StyledRadioImageItem;
1354
- exports.StyledRateStars = StyledRateStars;
1355
- exports.StyledTag = StyledTag;
1356
- exports.StyledToggle = StyledToggle;
1357
- exports.StyledToggleIcon = StyledToggleIcon;
1358
- exports.StyledToggleLabel = StyledToggleLabel;
1359
- exports.TextArea = TextArea;
1360
- exports.useStyles = useStyles$1;
1361
- exports.useStyles$1 = useStyles;