@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,1322 +0,0 @@
1
- import { createStyles, rem } from '@mantine/core';
2
- import styled from '@emotion/styled';
3
- import { t as theme } from './theme-eb1b39f6.js';
4
- import { M as MediaQueries } from './utils-0d590d5e.js';
5
- import { _ as __rest } from './tslib.es6-efad16cf.js';
6
- import React__default, { useState, createContext, useEffect, Fragment } from 'react';
7
- import { L as Label, b as StyledDisplayIcon, d as StyledActionIcon, e as StyledErrorLabel } from './index-122dd8ee.js';
8
- import { s as setDefaultClass } from './defaultClassWrapper-fcdfc7a3.js';
9
- import { css } from '@emotion/react';
10
- 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-9a3ca482.js';
11
- import flattenChildren from 'react-keyed-flatten-children';
12
-
13
- var useStyles$1 = createStyles((theme) => {
14
- return {
15
- root: {
16
- display: 'inline-block',
17
- // height: 1rem,
18
- flexShrink: 0,
19
- padding: '2px 0.5rem',
20
- marginLeft: '4px',
21
- borderRadius: theme.radius.xs,
22
- // color: white,
23
- fontSize: '12px',
24
- fontWeight: 400,
25
- lineHeight: '18px',
26
- '&[data-label-type="admin"]': {
27
- background: theme.primaryColor[0],
28
- color: theme.primaryColor[9],
29
- // &[data-is-marrybaby='true'] {
30
- // background: #{map-get($mbColors, 'tonePink')};
31
- // color: #{map-get($mbColors, 'cRed')};
32
- // }
33
- },
34
- '&[data-label-type="local admin"]': {
35
- background: theme.primaryColor[8],
36
- },
37
- '&[data-label-type="ambassador"]': {
38
- background: theme.colors.green[4],
39
- },
40
- '&[data-label-type="expert"]': {
41
- background: theme.colors.yellow[6],
42
- // &[data-is-marrybaby='true'] {
43
- // background: #{map-get($mbColors, 'cOrange')};
44
- // color: #{map-get($colors, 'cWhite')};
45
- // }
46
- },
47
- '&[data-label-type="moderator"]': {
48
- background: theme.colors.red[0],
49
- color: theme.colors.red[8],
50
- // &[data-is-marrybaby='true'] {
51
- // background: #{map-get($mbColors, 'toneBlue')};
52
- // color: #{map-get($mbColors, 'cobalt')};
53
- // }
54
- },
55
- '&[data-label-type="sponsor"]': {
56
- background: theme.colors.teal[4],
57
- },
58
- '&[data-label-type="guide"]': {
59
- background: theme.colors.teal[4],
60
- },
61
- '&[data-label-type="influencer"]': {
62
- background: theme.colors.teal[4],
63
- },
64
- },
65
- };
66
- });
67
-
68
- const StyledContainer = styled.div `
69
- display: flex;
70
- align-items: center;
71
- gap: 8px;
72
- button[data-color='tertiary'] {
73
- background: white;
74
- }
75
- `;
76
-
77
- const StyledDivider = styled.hr `
78
- border-width: 1px;
79
- border-color: ${theme.colors.neutral200};
80
- border-style: ${(props) => props.dividerType};
81
- `;
82
-
83
- const StyledAvatar = styled.div `
84
- background-color: var(--background-color, transparent);
85
- color: white;
86
- cursor: pointer;
87
- img {
88
- --width: var(--width-prop, 40px);
89
- --height: var(--height-prop, 40px);
90
- width: var(--width);
91
- height: var(--height);
92
- }
93
- &[data-has-max='true'] {
94
- img {
95
- max-width: var(--width);
96
- max-height: var(--height);
97
- }
98
- }
99
-
100
- &[data-avatar-type='square'] {
101
- img {
102
- --width: var(--width-prop, 72px);
103
- --height: var(--height-prop, 72px);
104
- border-radius: ${theme.borderRadius};
105
- }
106
- }
107
-
108
- &[data-avatar-type='rounded'] {
109
- img {
110
- border-radius: 50%;
111
- }
112
- }
113
-
114
- &[data-custom-size='true'] {
115
- display: flex;
116
- overflow: hidden;
117
- overflow: hidden;
118
- width: var(--size);
119
- height: var(--size);
120
- align-items: center;
121
- justify-content: center;
122
- background-size: cover;
123
- font-size: calc(var(--size) / 2);
124
- font-weight: bold;
125
- &[data-avatar-type='square'] {
126
- border-radius: ${theme.borderRadius};
127
- }
128
- &[data-avatar-type='rounded'] {
129
- border-radius: 50%;
130
- img {
131
- --width: 100%;
132
- --height: 100%;
133
- }
134
- }
135
- img {
136
- object-fit: cover;
137
- }
138
- }
139
- `;
140
-
141
- const renderNotificationStyles = (type, size, hasIcon, color) => {
142
- let sizeparams = '';
143
- if (type === 'numeric') {
144
- switch (size) {
145
- case 'medium':
146
- sizeparams = `
147
- height: 16px;
148
- font-size: 11px;
149
- padding: 1px 6px;
150
- `;
151
- case 'large':
152
- sizeparams = `
153
- height: 24px;
154
- font-size: 13px;
155
- padding: 1px 10px;
156
- `;
157
- }
158
- }
159
- let icon = '';
160
- if (hasIcon) {
161
- icon = `
162
- position: absolute;
163
- top: 0;
164
- left: 75%;
165
- `;
166
- }
167
- let numericIcon;
168
- if (hasIcon) {
169
- numericIcon = `
170
- left: 70%;
171
-
172
- ${size === 'large'
173
- ? `
174
- top: -7px;
175
- `
176
- : size === 'medium'
177
- ? `
178
- top: -2px;
179
- width: 16px;
180
- height: 16px;
181
- `
182
- : ''}
183
- `;
184
- }
185
- let notificationColor = '';
186
- switch (color) {
187
- case 'primary':
188
- notificationColor = `
189
- background: ${theme.colors.primary50};
190
- color: ${theme.colors.primary600};
191
- `;
192
- break;
193
- case 'error':
194
- notificationColor = `
195
- background: ${theme.colors.error};
196
- color: white;
197
- `;
198
- break;
199
- }
200
- switch (type) {
201
- case 'dot':
202
- return `
203
- ${icon}
204
- width: 8px;
205
- height: 8px;
206
- font-size: 0px;
207
- border-radius: 50%;
208
- ${notificationColor}
209
- `;
210
- case 'numeric':
211
- return `
212
- ${icon}
213
- width: max-content;
214
- border-radius: 32px;
215
- ${sizeparams}
216
- ${numericIcon}
217
- ${notificationColor}
218
- `;
219
- }
220
- };
221
- const StyledBadge = styled.div `
222
- position: relative;
223
-
224
- > div {
225
- width: max-content;
226
- position: relative;
227
- }
228
-
229
- span {
230
- font-weight: ${theme.sizes.fwBold};
231
- display: flex;
232
- justify-content: center;
233
- align-items: center;
234
-
235
- ${(props) => renderNotificationStyles(props.notificationType, props.notificationSize, props.hasIcon, props.notificationColor)}
236
- }
237
-
238
- ${(props) => props.hasIcon &&
239
- `
240
- svg {
241
- width: 40px;
242
- height: 40px;
243
- }
244
- `}
245
- `;
246
-
247
- const StyledBorderHeading = styled.h4 `
248
- position: relative;
249
- line-height: 18px;
250
-
251
- &:after {
252
- position: absolute;
253
- top: 1px;
254
- left: 0;
255
- width: 4px;
256
- height: 18px;
257
- background-color: ${theme.colors.primaryBase};
258
- content: '';
259
- }
260
-
261
- &[data-size='lg'] {
262
- font-size: 18px;
263
- padding-left: 12px;
264
- }
265
-
266
- &[data-size='sm'] {
267
- font-size: 14px;
268
- padding-left: 8px;
269
-
270
- &::after {
271
- width: 2px;
272
- height: 15px;
273
- }
274
- }
275
-
276
- &[data-type='bold'] {
277
- font-weight: ${theme.sizes.fwBold};
278
- }
279
- &[data-type='semiBold'] {
280
- font-weight: ${theme.sizes.fwSemiBold};
281
- }
282
-
283
- &[data-uppercase] {
284
- text-transform: uppercase;
285
- }
286
-
287
- ${MediaQueries.mbDown} {
288
- &[data-size='lg'] {
289
- font-size: 16px;
290
- }
291
- }
292
- `;
293
-
294
- const StyledDropdown = styled.div `
295
- position: relative;
296
- box-sizing: border-box;
297
- border: 1px solid ${theme.colors.gray200};
298
- background: url('../../../public/bgSvg/arrow-down.svg') no-repeat;
299
- background-position: right 16px center;
300
- border-radius: ${theme.borderRadius};
301
-
302
- &[data-has-icons='true'] {
303
- border: none;
304
- background: ${theme.colors.gray100};
305
-
306
- img,
307
- svg {
308
- display: inline-block;
309
- max-width: 16px;
310
- margin-right: 6px;
311
- }
312
-
313
- span {
314
- vertical-align: middle;
315
- display: inline-block;
316
- }
317
-
318
- &:hover {
319
- box-shadow: none;
320
- }
321
- > div {
322
- position: relative;
323
- width: 100%;
324
- display: flex;
325
- align-items: center;
326
- box-sizing: border-box;
327
- }
328
- > div::after {
329
- content: '';
330
- right: 12px;
331
- top: 50%;
332
- 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");
333
- width: 10px;
334
- height: 8px;
335
- position: absolute;
336
- background-repeat: no-repeat;
337
- transform: translateY(-50%);
338
- }
339
- }
340
-
341
- &:hover {
342
- box-shadow: 0 0 2px 2px ${theme.colors.primary200};
343
- }
344
- `;
345
- const StyledDropdownName = styled.div `
346
- padding: 12px 18px 12px 16px;
347
- cursor: pointer;
348
- &[data-dropdown-open] {
349
- padding: 11px 15px 11px 15px;
350
- border: 1px solid ${theme.colors.primaryBase};
351
- border-radius: ${theme.borderRadius};
352
- box-shadow: 0 0 2px 2px ${theme.colors.primary200};
353
- }
354
-
355
- & > svg {
356
- height: 16px;
357
- width: 16px;
358
- }
359
- `;
360
- const StyledDropdownList = styled.ul `
361
- position: absolute;
362
- top: 100%;
363
- right: 0;
364
- left: 0;
365
- display: block;
366
- margin-top: 4px;
367
- background: ${theme.colors.white};
368
- border-radius: ${theme.borderRadius};
369
- box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
370
- -2px 2px 5px rgba(67, 86, 100, 0.123689);
371
- cursor: pointer;
372
-
373
- &[data-has-icons='true'] {
374
- background: white;
375
- box-shadow: none;
376
- border: 1px solid ${theme.colors.gray200};
377
- filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
378
- }
379
- `;
380
- const StyledDropdownOption = styled.li `
381
- margin: 8px;
382
- padding: 12px 18px 12px 16px;
383
- border-radius: ${theme.borderRadius};
384
- display: flex;
385
- &:hover,
386
- :active {
387
- background: ${theme.colors.gray100};
388
- }
389
- `;
390
- const StyledIcon = styled.div `
391
- display: flex;
392
- align-items: center;
393
- margin-right: 8px;
394
-
395
- & > svg {
396
- height: 16px;
397
- width: 16px;
398
- }
399
- `;
400
-
401
- const StyledGrid = styled.div `
402
- --columns: var(--grid-template-columns, repeat(var(--columns-count), 1fr));
403
- --columns-desktop: var(
404
- --grid-template-columns-desktop,
405
- repeat(var(--columns-count-desktop), 1fr)
406
- );
407
- display: grid;
408
- grid-template-columns: var(--columns);
409
- grid-gap: var(--grid-gap);
410
- align-items: var(--align-items);
411
-
412
- ${MediaQueries.tdUp} {
413
- grid-template-columns: var(--columns-desktop);
414
- }
415
-
416
- > * {
417
- justify-self: var(--justify-children);
418
- }
419
- `;
420
-
421
- const StyledPagination = styled.div `
422
- display: flex;
423
- align-items: center;
424
- justify-content: space-between;
425
- user-select: none;
426
- li {
427
- transition: all 0.3s ease;
428
- }
429
- [data-page-active] {
430
- background: ${theme.colors.primaryBase};
431
- color: ${theme.colors.white};
432
-
433
- > a {
434
- color: ${theme.colors.white};
435
- }
436
- }
437
- `;
438
- const StyledPageBlock = styled.div `
439
- display: flex;
440
- width: 32px;
441
- height: 32px;
442
- box-sizing: border-box;
443
- align-items: center;
444
- justify-content: center;
445
- border: 1px solid ${theme.colors.gray200};
446
- margin: 0 2px;
447
- border-radius: 4px;
448
- color: ${theme.colors.gray800};
449
- cursor: pointer;
450
- font-size: 14px;
451
- font-weight: ${theme.sizes.fwBold};
452
-
453
- &[data-last-page] {
454
- border: none;
455
- background-color: ${theme.colors.gray100};
456
- cursor: not-allowed;
457
- pointer-events: none;
458
-
459
- svg {
460
- path {
461
- stroke: ${theme.colors.gray300};
462
- }
463
- }
464
- }
465
- `;
466
- const StyledPaginationBlock = styled.li `
467
- display: flex;
468
- width: 32px;
469
- height: 32px;
470
- align-items: center;
471
- justify-content: center;
472
- margin: 0 2px;
473
- border-radius: 4px;
474
- color: ${theme.colors.gray800};
475
- cursor: pointer;
476
- font-size: 14px;
477
- font-weight: ${theme.sizes.fwBold};
478
-
479
- > a {
480
- color: ${theme.colors.gray800};
481
- text-decoration: unset;
482
- display: block;
483
- width: 100%;
484
- height: 100%;
485
- line-height: 32px;
486
- text-align: center;
487
- }
488
- `;
489
-
490
- const StyledInput = styled.div `
491
- position: relative;
492
- width: 100%;
493
-
494
- &[data-has-error] {
495
- input {
496
- border-color: ${theme.colors.red700};
497
- }
498
- }
499
-
500
- input {
501
- width: 100%;
502
- padding: 12px 16px;
503
- border: solid 1px ${theme.colors.gray200};
504
- border-radius: ${theme.borderRadius};
505
-
506
- &:active,
507
- &:focus,
508
- .focused & {
509
- border-color: ${theme.colors.primaryBase};
510
- box-shadow: 0px 0px 2px 2px ${theme.colors.primary200};
511
- }
512
-
513
- &:disabled {
514
- background-color: ${theme.colors.gray100};
515
- cursor: not-allowed;
516
- }
517
- }
518
-
519
- &[data-has-action-icon] {
520
- input {
521
- padding: 12px 48px 12px 16px;
522
- }
523
- }
524
- &[data-has-display-icon] {
525
- input {
526
- padding: 12px 16px 12px 48px;
527
- }
528
- }
529
-
530
- &[data-has-action-icon][data-has-display-icon] {
531
- input {
532
- padding: 12px 48px;
533
- }
534
- }
535
-
536
- &[data-size='lg'] {
537
- input {
538
- font-size: 16px;
539
- font-weight: ${theme.sizes.fwRegular};
540
- ${MediaQueries.mbDown} {
541
- font-size: 22px;
542
- line-height: 1.2;
543
- }
544
-
545
- ${MediaQueries.mbUp} {
546
- font-size: 26px;
547
- line-height: 1.2;
548
- }
549
- }
550
- }
551
- &[data-size='md'] {
552
- input {
553
- font-weight: ${theme.sizes.fwRegular};
554
- ${MediaQueries.mbDown} {
555
- font-size: 14px;
556
- line-height: 1.2;
557
- }
558
-
559
- ${MediaQueries.mbUp} {
560
- font-size: 16px;
561
- line-height: 1.2;
562
- }
563
- }
564
- }
565
- &[data-size='sm'] {
566
- input {
567
- font-weight: ${theme.sizes.fwRegular};
568
- ${MediaQueries.mbDown} {
569
- font-size: 13px;
570
- line-height: 1.5;
571
- }
572
-
573
- ${MediaQueries.mbUp} {
574
- font-size: 13px;
575
- line-height: 1.5;
576
- }
577
- }
578
- }
579
- `;
580
-
581
- /**
582
- * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
583
- */
584
- const PureInput = React__default.forwardRef((_a, ref) => {
585
- 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"]);
586
- const [localValue, setLocalValue] = useState(defaultValue);
587
- const handleOnChange = (v) => {
588
- setLocalValue(v);
589
- onChange(v);
590
- };
591
- const handleOnActionClick = () => {
592
- var _a;
593
- if (isDeleteAction) {
594
- setLocalValue('');
595
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
596
- }
597
- onActionClick && onActionClick();
598
- };
599
- 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 },
600
- label && (React__default.createElement(Label, { size: "label2", htmlFor: name, className: "inputLabel" }, label)),
601
- React__default.createElement("div", { style: { position: 'relative' } },
602
- 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))),
603
- DisplayIcon && (React__default.createElement(StyledDisplayIcon, { className: "displayIcon" }, DisplayIcon)),
604
- ActionIcon && (React__default.createElement(StyledActionIcon, { className: "actionIcon", onClick: handleOnActionClick }, ActionIcon))),
605
- errorMessage && errorMessage.length > 0 && (React__default.createElement(StyledErrorLabel, { className: "errorLabel" }, errorMessage))));
606
- });
607
- PureInput.displayName = 'PureInput';
608
-
609
- const getTag = (tag, isLight) => {
610
- switch (tag) {
611
- case 'yellow': {
612
- const color = isLight ? theme.colors.yellow50 : theme.colors.yellow600;
613
- return `
614
- background: ${color};
615
- p {
616
- color: var(
617
- --text-props-color,
618
- ${theme.colors.gray800}
619
- );
620
- }
621
- `;
622
- }
623
- case 'standard': {
624
- return `
625
- background: ${theme.colors.white};
626
- border: 1px solid ${theme.colors.gray200};
627
-
628
- p {
629
- color: var(
630
- --text-props-color,
631
- ${theme.colors.gray800}
632
- );
633
- }
634
-
635
- &:hover {
636
- background: ${theme.colors.gray100};
637
- }
638
- `;
639
- }
640
- case 'red': {
641
- const color = isLight ? theme.colors.red50 : theme.colors.red500;
642
- return `
643
- background: ${color};
644
- `;
645
- }
646
- case 'green': {
647
- const color = isLight ? theme.colors.green50 : theme.colors.green500;
648
- return `
649
- background: ${color};
650
- `;
651
- }
652
- case 'blue': {
653
- const color = isLight ? theme.colors.primary50 : theme.colors.primaryBase;
654
- return `
655
- background: ${color};
656
- `;
657
- }
658
- case 'teal': {
659
- const color = isLight ? theme.colors.teal100 : theme.colors.teal600;
660
- return `
661
- background: ${color};
662
- `;
663
- }
664
- case 'pink': {
665
- const color = isLight ? theme.colors.pink200 : theme.colors.pink800;
666
- return `
667
- background: ${color};
668
- `;
669
- }
670
- case 'violet': {
671
- const color = isLight ? theme.colors.violet100 : theme.colors.violet500;
672
- return `
673
- background: ${color};
674
- `;
675
- }
676
- case 'grey': {
677
- const color = isLight ? theme.colors.gray100 : theme.colors.gray600;
678
- return `
679
- background: ${color};
680
- `;
681
- }
682
- }
683
- };
684
- const StyledTag = styled.div `
685
- --padding-horizontal: 8px;
686
- --pading-vertical: 2px;
687
- display: flex;
688
- align-items: center;
689
- justify-content: center;
690
- padding: var(--pading-vertical) var(--padding-horizontal);
691
- border-radius: 24px;
692
-
693
- ${(props) => props.tagType === 'sponsored' &&
694
- `
695
- --offset-size: 4px;
696
- display: flex;
697
- align-items: center;
698
- justify-content: center;
699
- box-sizing: content-box;
700
- position: relative;
701
- box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
702
- border-radius: 0 4px 18px 0;
703
- height: 24px;
704
- width: 90px;
705
- border-left: var(--offset-size) solid ${theme.colors.accentLight};
706
- padding: 0;
707
- margin-left: calc(var(--offset-size) * -1);
708
-
709
- p {
710
- font-weight: ${theme.sizes.fwBold};
711
- color: var(
712
- --text-props-color,
713
- ${theme.colors.secondaryDark}
714
- );
715
- font-size: 11px;
716
- margin-left: calc(var(--offset-size) * -1);
717
- }
718
-
719
- &::after {
720
- width: calc(var(--offset-size) * 2);
721
- height: var(--offset-size);
722
- background: ${theme.colors.accentMain};
723
- position: absolute;
724
- left: calc(var(--offset-size) * -1);
725
- bottom: calc(var(--offset-size) * -1);
726
- clip-path: polygon(0 1%, 100% 0%, 100% 100%);
727
- content: '';
728
- }
729
- `}
730
-
731
- ${(props) => props.isInline &&
732
- `
733
- display: inline-block;
734
- `}
735
-
736
- ${(props) => props.tagHasMorePadding &&
737
- `
738
- &[data-has-more-padding] {
739
- padding: calc(var(--pading-vertical) + 5px) var(--padding-horizontal);
740
- }
741
- `}
742
-
743
- p {
744
- ${(props) => props.tagIsLight
745
- ? `
746
- color: var(--text-props-color, #000);
747
- `
748
- : `
749
- color: var(--text-props-color, ${theme.colors.white});
750
- `}
751
- }
752
-
753
- ${(props) => getTag(props.tagType, props.tagIsLight)}
754
-
755
- ${(props) => props.tagIsSquared &&
756
- props.tagType !== 'sponsored' &&
757
- `
758
- border-radius: 4px;
759
- `}
760
-
761
- ${(props) => props.tagIsALink &&
762
- `
763
- cursor: pointer;
764
- `}
765
-
766
- &[data-is-selected],
767
- &:active {
768
- background: ${theme.colors.primary50};
769
- }
770
- `;
771
-
772
- const heightIcon = '24px';
773
- const StyledToggleIcon = setDefaultClass(styled.span `
774
- position: relative;
775
- display: block;
776
- width: 40px;
777
- height: ${heightIcon};
778
- background: #c3cbd4;
779
- border-radius: 100px;
780
- cursor: pointer;
781
-
782
- &:after {
783
- position: absolute;
784
- top: 2px;
785
- left: 2px;
786
- width: 20px;
787
- height: 20px;
788
- background: #fff;
789
- border-radius: 90px;
790
- content: '';
791
- transition: 0.3s;
792
- }
793
- `, 'hhgcomp-toggle-icon');
794
- const StyledToggleLabel = styled.span `
795
- padding-left: 15px;
796
- `;
797
- const StyledToggle = styled.div `
798
- height: ${heightIcon};
799
-
800
- input[type='checkbox'] {
801
- width: 0;
802
- height: 0;
803
- visibility: hidden;
804
- }
805
-
806
- label {
807
- cursor: pointer;
808
- display: inline-flex;
809
- color: ${theme.colors.gray600};
810
- }
811
-
812
- input:checked + label ${StyledToggleIcon.classSelector} {
813
- background: ${theme.colors.primaryBase};
814
- &:after {
815
- left: calc(100% - 2px);
816
- transform: translateX(-100%);
817
- }
818
- }
819
- `;
820
-
821
- const StyledTextArea = styled.div `
822
- textarea {
823
- width: 100%;
824
- height: var(--textarea-height, 116px);
825
- padding: 1rem;
826
- border: 1px solid ${theme.colors.gray200};
827
- border-radius: 6px;
828
- color: ${theme.colors.gray800};
829
- font-size: 14px;
830
- resize: none;
831
-
832
- &:focus {
833
- box-shadow: 0px 0px 2px 2px #91caff;
834
- }
835
-
836
- &::placeholder {
837
- color: ${theme.colors.gray500};
838
- }
839
-
840
- &:disabled {
841
- background-color: ${theme.colors.neutral50};
842
- cursor: not-allowed;
843
- }
844
- }
845
- `;
846
- /**
847
- * @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
848
- */
849
- const TextArea = React__default.forwardRef(({ height, placeholder, labelText, labelColor, id, name, onChange, value, className, onKeyPress, disabled = false, }, ref) => {
850
- return (React__default.createElement(StyledTextArea, { className: className, style: { ['--textarea-height']: height || '116px' } },
851
- labelText && (React__default.createElement(Label, { size: "label2", style: { color: labelColor || '#595959' }, htmlFor: id }, labelText)),
852
- React__default.createElement("textarea", { name: name, ref: ref, placeholder: placeholder, id: id, onChange: (e) => onChange && onChange(e.target.value),
853
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
854
- onKeyPress: (e) => onKeyPress && onKeyPress(e), value: value, disabled: disabled })));
855
- });
856
-
857
- const StyledCheckbox = styled.div `
858
- display: flex;
859
- cursor: pointer;
860
-
861
- &[data-theme='marryBaby'] {
862
- input {
863
- width: 20px;
864
- height: 20px;
865
- border: 1.3px solid ${theme.mbColors.midGray};
866
- border-radius: 9px;
867
-
868
- cursor: inherit;
869
- transition: border-color 0.4s, box-shadow 0.4s;
870
-
871
- &:hover,
872
- &:active {
873
- border-color: ${theme.mbColors.cobalt};
874
- box-shadow: 0 0 2px 2px ${theme.mbColors.cobalt};
875
- }
876
-
877
- &:focus-visible {
878
- border: 2px solid ${theme.mbColors.cobalt};
879
- }
880
-
881
- &:checked {
882
- border: 0;
883
- background: ${theme.mbColors.cobalt}
884
- 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")
885
- no-repeat center center;
886
- }
887
- }
888
-
889
- label {
890
- max-width: 15rem;
891
- margin-left: 8px;
892
- width: calc(100% - 24px);
893
- cursor: inherit;
894
- font-weight: 600;
895
- font-size: 12px;
896
- line-height: 20px;
897
- letter-spacing: -0.2px;
898
- color: ${theme.mbColors.gray};
899
- }
900
- }
901
- input {
902
- width: 20px;
903
- height: 20px;
904
- border: solid 1px ${theme.colors.gray500};
905
- border-radius: 2px;
906
-
907
- cursor: inherit;
908
- transition: border-color 0.4s, box-shadow 0.4s;
909
-
910
- &:hover,
911
- &:active {
912
- border-color: ${theme.colors.primaryBase};
913
- box-shadow: 0 0 2px 2px ${theme.colors.primary200};
914
- }
915
-
916
- &:focus-visible {
917
- border: 2px solid ${theme.colors.primaryActive};
918
- }
919
-
920
- &:checked {
921
- border: 0;
922
- background: ${theme.colors.primaryBase}
923
- 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")
924
- no-repeat center center;
925
- }
926
- }
927
-
928
- label {
929
- max-width: 15rem;
930
- margin-left: 8px;
931
- font-weight: ${theme.sizes.fwRegular};
932
- width: calc(100% - 24px);
933
- cursor: inherit;
934
-
935
- ${MediaQueries.mbDown} {
936
- font-size: 14px;
937
- line-height: 24px;
938
- }
939
-
940
- ${MediaQueries.mbUp} {
941
- font-size: 16px;
942
- line-height: 22px;
943
- }
944
- }
945
-
946
- &[data-is-rectangle] > input {
947
- position: relative;
948
- width: unset;
949
- height: unset;
950
- padding: 5px 12px;
951
- border: 1px solid ${theme.colors.neutral100};
952
- border-radius: 32px;
953
-
954
- &::after {
955
- color: ${theme.colors.gray800};
956
- content: attr(data-label-text);
957
- font-size: 13px;
958
- }
959
- &:checked {
960
- border-color: ${theme.colors.primary50};
961
- &::after {
962
- color: ${theme.colors.primaryBase};
963
- }
964
- }
965
- &:checked {
966
- background: ${theme.colors.primary50};
967
- }
968
- }
969
-
970
- &[data-disabled] {
971
- color: ${theme.colors.gray300};
972
- cursor: not-allowed;
973
- input {
974
- border-color: ${theme.colors.gray300};
975
- &:hover {
976
- border-color: ${theme.colors.gray300};
977
- box-shadow: none;
978
- }
979
- }
980
- }
981
- `;
982
-
983
- const StyledRateStars = styled.div `
984
- display: inline-flex;
985
-
986
- gap: calc(var(--gap) * 1px);
987
- > svg {
988
- width: calc(var(--star-size) * 1px);
989
- height: calc(var(--star-size) * 1px);
990
- }
991
-
992
- &[data-selectable='true'] {
993
- > svg {
994
- cursor: pointer;
995
- }
996
- }
997
- `;
998
-
999
- const DURATION = '600ms';
1000
- const generateStyleBasedOnPlacement = (placement, open) => {
1001
- switch (placement) {
1002
- case 'top':
1003
- return css `
1004
- top: 0;
1005
- width: 100%;
1006
- border-radius: 0px 0px 6px 6px;
1007
- ${open
1008
- ? css `
1009
- animation: ${slideInDown} ${DURATION} ease-in-out forwards;
1010
- `
1011
- : null}
1012
-
1013
- &.slideOut {
1014
- animation: ${slideOutUp} ${DURATION} ease-in-out forwards;
1015
- }
1016
- `;
1017
- case 'right':
1018
- return css `
1019
- right: 0;
1020
- height: 100%;
1021
- min-width: 300px;
1022
- border-radius: 6px 0px 0px 6px;
1023
-
1024
- ${open
1025
- ? css `
1026
- animation: ${slideInRight} ${DURATION} ease-in-out forwards;
1027
- `
1028
- : null}
1029
-
1030
- &.slideOut {
1031
- animation: ${slideOutRight} ${DURATION} ease-in-out forwards;
1032
- }
1033
- `;
1034
- case 'bottom':
1035
- return css `
1036
- bottom: 0;
1037
- width: 100%;
1038
- border-radius: 6px 6px 0px 0px;
1039
- ${open
1040
- ? css `
1041
- animation: ${slideInUp} ${DURATION} ease-in-out forwards;
1042
- `
1043
- : null}
1044
-
1045
- &.slideOut {
1046
- animation: ${slideOutDown} ${DURATION} ease-in-out forwards;
1047
- }
1048
- `;
1049
- case 'left':
1050
- return css `
1051
- left: 0;
1052
- height: 100%;
1053
- min-width: 300px;
1054
- border-radius: 0px 6px 6px 0px;
1055
-
1056
- ${open
1057
- ? css `
1058
- animation: ${slideInLeft} ${DURATION} ease-in-out forwards;
1059
- `
1060
- : null}
1061
-
1062
- &.slideOut {
1063
- animation: ${slideOutLeft} ${DURATION} ease-in-out forwards;
1064
- }
1065
- `;
1066
- default:
1067
- return css `
1068
- left: 0;
1069
- height: 100%;
1070
- min-width: 300px;
1071
- border-radius: 0px 6px 6px 0px;
1072
-
1073
- ${open
1074
- ? css `
1075
- animation: ${slideInUp} ${DURATION} ease-in-out forwards;
1076
- `
1077
- : null}
1078
-
1079
- &.slideOut {
1080
- animation: ${slideOutDown} ${DURATION} ease-in-out forwards;
1081
- }
1082
- `;
1083
- }
1084
- };
1085
-
1086
- const StyledDrawer = styled.div `
1087
- position: fixed;
1088
- inset: 0;
1089
- z-index: ${theme.zIndexes.drawer};
1090
- pointer-events: ${(props) => (props.open ? 'auto' : 'none')};
1091
- `;
1092
- const StyledDrawerPanel = styled.div `
1093
- position: fixed;
1094
- z-index: 300;
1095
- background: #ffffff;
1096
- visibility: ${(props) => (props.open ? 'visible' : 'hidden')};
1097
- max-height: calc(100vh - 100px);
1098
- display: flex;
1099
- flex-direction: column;
1100
- .title {
1101
- display: flex;
1102
- align-items: center;
1103
- justify-content: space-between;
1104
- padding: 16px;
1105
- ${(props) => props.hasTitle
1106
- ? css `
1107
- border-bottom: 1px solid ${theme.colors.neutral100};
1108
- `
1109
- : null}
1110
- }
1111
-
1112
- .close-button {
1113
- margin-left: auto;
1114
- }
1115
-
1116
- ${(props) => generateStyleBasedOnPlacement(props.placement, props.open)}
1117
- `;
1118
- const StyledDrawerContent = styled.div `
1119
- min-height: 200px;
1120
- padding: 16px;
1121
- overflow-y: auto;
1122
- `;
1123
-
1124
- const StyledBackdrop = styled.div `
1125
- position: fixed;
1126
- inset: 0;
1127
- display: flex;
1128
- align-items: center;
1129
- justify-content: center;
1130
- width: 100%;
1131
- height: 100%;
1132
- overflow-x: hidden;
1133
- overflow-y: auto;
1134
- outline: 0;
1135
- background-color: rgba(38, 38, 38, 0.3);
1136
- z-index: 1;
1137
- &[data-open='false'] {
1138
- visibility: hidden;
1139
- pointer-events: none;
1140
- }
1141
- &[data-open='true'] {
1142
- visibility: visible;
1143
- pointer-events: auto;
1144
- }
1145
- `;
1146
-
1147
- const StyledRadioImageGroup = styled.div `
1148
- display: flex;
1149
- width: 100%;
1150
-
1151
- &[data-direction='vertical'] {
1152
- flex-direction: column;
1153
- }
1154
-
1155
- &[data-direction='horizontal'] {
1156
- flex-wrap: wrap;
1157
- }
1158
- `;
1159
- const StyledRadioImageItem = styled.div `
1160
- display: flex;
1161
-
1162
- padding: 8px;
1163
-
1164
- border-radius: ${theme.borderRadius};
1165
- cursor: pointer;
1166
-
1167
- & > div {
1168
- display: flex;
1169
- width: 100%;
1170
- height: 100%;
1171
- flex-direction: column;
1172
- align-items: center;
1173
- justify-content: flex-start;
1174
- }
1175
-
1176
- &[data-is-mb='false'] {
1177
- &[data-selected='true'] {
1178
- border: 1px solid #2d87f3;
1179
- background: white;
1180
- }
1181
- &[data-selected='false'] {
1182
- border: 1px solid #f2f2f2;
1183
- box-shadow: 0px 5px 12px rgba(40, 74, 117, 0.08);
1184
- }
1185
- }
1186
-
1187
- &[data-is-mb='true'] {
1188
- border-radius: 16px;
1189
- background: white;
1190
- padding: 16px auto;
1191
-
1192
- &[data-selected='true'] {
1193
- border: 1px solid ${theme.mbColors.mint};
1194
- box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.06);
1195
- }
1196
- &[data-selected='false'] {
1197
- border: none;
1198
- }
1199
- }
1200
-
1201
- &[data-disabled='true'] {
1202
- cursor: auto;
1203
- }
1204
-
1205
- .radio-group-item-heading {
1206
- margin-top: 8px;
1207
- //height: 48px;
1208
- text-align: center;
1209
- }
1210
-
1211
- .gender-image {
1212
- width: 70px;
1213
- height: 70px;
1214
- &[data-is-mobile='true'] {
1215
- width: 40px;
1216
- height: 40px;
1217
- }
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, StyledContainer as t, useStyles$1 as u, StyledDivider as v, StyledBackdrop as w, StyledDrawer as x, StyledDrawerPanel as y, StyledDrawerContent as z };