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