@hhgtech/hhg-components 1.29.436 → 1.29.437-beta-2
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/{InputDate-79f8836d.js → InputDate-14626071.js} +5 -5
- package/build/{LastPeriod-e223c98b.js → LastPeriod-6764b2cb.js} +1 -1
- package/build/{MobileBottomNavigationIcon-1289b337.js → MobileBottomNavigationIcon-017baaf3.js} +3 -3
- package/build/{RatingStarsInput-24284f74.js → RatingStarsInput-89c60d50.js} +26 -26
- package/build/{Spinner-4bf72aba.js → Spinner-b85a952b.js} +1 -1
- package/build/{WhatsApp-4e56fee7.js → WhatsApp-40e5ff50.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +55 -367
- package/build/babyGrowth.js +85 -85
- package/build/cache.js +2 -2
- package/build/care.js +18 -18
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/imageUpload/index.d.ts +1 -1
- package/build/components/navigationV2/components/molecules/menuCategoriesList/Item/index.d.ts +5 -0
- package/build/components/navigationV2/components/molecules/menuCategoriesList/Item/index.styled.d.ts +7 -0
- package/build/components/navigationV2/types.d.ts +10 -0
- package/build/components.js +104 -102
- package/build/{constants-852fd644.js → constants-d169449b.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-4a0513f1.js → core-b4cf9db5.js} +1 -1
- package/build/{dataTransform-935ee173.js → dataTransform-4dbfc755.js} +1 -1
- package/build/ecom.js +5 -5
- package/build/{editor-58825b65.js → editor-6111bcfc.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/{InputDate-6c8bbff7.js → InputDate-3840847a.js} +5 -5
- package/build/esm/{LastPeriod-bc587cfa.js → LastPeriod-f4d92d87.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-d3f0daed.js → MobileBottomNavigationIcon-14c75442.js} +3 -3
- package/build/esm/{RatingStarsInput-a8af807b.js → RatingStarsInput-3d06b889.js} +26 -26
- package/build/esm/{Spinner-0f89e0d9.js → Spinner-bff8e494.js} +1 -1
- package/build/esm/{WhatsApp-c3402166.js → WhatsApp-8f47d8de.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +54 -365
- package/build/esm/babyGrowth.js +85 -85
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +18 -18
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/atoms/imageUpload/index.d.ts +1 -1
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/Item/index.d.ts +5 -0
- package/build/esm/components/navigationV2/components/molecules/menuCategoriesList/Item/index.styled.d.ts +7 -0
- package/build/esm/components/navigationV2/types.d.ts +10 -0
- package/build/esm/components.js +103 -102
- package/build/esm/{constants-85eb8e43.js → constants-3dbc3fe5.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-53d010d4.js → core-d1826626.js} +1 -1
- package/build/esm/{dataTransform-81038bad.js → dataTransform-bfedbe3a.js} +1 -1
- package/build/esm/ecom.js +5 -5
- package/build/esm/{editor-8ebf9d42.js → editor-af0083cc.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +20 -20
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +23 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +26 -26
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +26 -26
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +23 -23
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +23 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +28 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-a67cf1c6.js → healthTools-67443f48.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +34 -34
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-d551b3d2.js → index-05832dd1.js} +3 -3
- package/build/esm/{index-3066ecd9.js → index-0ad8a070.js} +6 -6
- package/build/esm/{index-42f45c7f.js → index-0b06a823.js} +25 -25
- package/build/esm/{index-2b41fa9e.js → index-11936e97.js} +96 -32
- package/build/esm/{index-8182a3ba.js → index-1833a093.js} +1 -1
- package/build/esm/{index-b02d7d2b.js → index-1c9184e9.js} +3 -3
- package/build/esm/{index-139c48dc.js → index-274041b4.js} +2 -2
- package/build/esm/{index-bb17e65a.js → index-2801dec7.js} +2 -2
- package/build/esm/{index-dccb1f13.js → index-289c1ca6.js} +2 -2
- package/build/esm/{index-4d17dd75.js → index-29563a39.js} +326 -10
- package/build/esm/{index-8206bdcb.js → index-2f25589d.js} +16 -16
- package/build/esm/{index-0cffe926.js → index-317b76e3.js} +1 -1
- package/build/esm/{index-21c766d8.js → index-318a1878.js} +8 -8
- package/build/esm/{index-b4082cca.js → index-37279730.js} +2 -2
- package/build/esm/{index-f4e0c7e3.js → index-3cc97207.js} +13 -13
- package/build/esm/{index-bd3a8cf9.js → index-411e9a55.js} +14 -14
- package/build/esm/{index-e5abfb0d.js → index-42f7733e.js} +2 -2
- package/build/esm/{index-26c25e9f.js → index-462a07a7.js} +2 -2
- package/build/esm/{index-69bab49a.js → index-4cb37ec0.js} +6 -6
- package/build/esm/{index-d1849b82.js → index-4dce40c4.js} +11 -11
- package/build/esm/{index-4f70133e.js → index-4ded5fe7.js} +2 -2
- package/build/esm/{index-00deb2dd.js → index-504d9c62.js} +23 -23
- package/build/esm/{index-bae12515.js → index-506d305b.js} +2 -2
- package/build/esm/{index-4ff18fd8.js → index-511c42e5.js} +3 -3
- package/build/esm/{index-a3b54f42.js → index-5335c043.js} +2 -2
- package/build/esm/{index-118c353a.js → index-5352621e.js} +10 -10
- package/build/esm/{index-6d631186.js → index-5462e60d.js} +32 -32
- package/build/esm/{index-0fbbbd2e.js → index-54f9a2c6.js} +1 -1
- package/build/esm/{index-fbacb19a.js → index-578cc972.js} +21 -21
- package/build/esm/{index-09798eca.js → index-5ab39e77.js} +4 -4
- package/build/esm/{index-a7e71fb1.js → index-60989924.js} +15 -15
- package/build/esm/{index-747a6fb1.js → index-64024bdd.js} +4 -4
- package/build/esm/{index-0f3f5dab.js → index-664210c7.js} +8 -8
- package/build/esm/{index-fdac9b9e.js → index-68e1d039.js} +13 -13
- package/build/esm/{index-a395e851.js → index-71695d10.js} +13 -13
- package/build/esm/{index-8fbf67af.js → index-72b972b7.js} +13 -13
- package/build/esm/{index-759a4c1c.js → index-802a4110.js} +1 -1
- package/build/esm/{index-925a0fb7.js → index-889533b4.js} +3 -3
- package/build/esm/{index-af9ab72f.js → index-891034a6.js} +22 -22
- package/build/esm/{index-86084e17.js → index-895604d3.js} +32 -32
- package/build/esm/{index-e59166dc.js → index-8d616ffa.js} +2 -2
- package/build/esm/{index-b13065d2.js → index-91343283.js} +2 -2
- package/build/esm/{index-2191c5e9.js → index-9a610726.js} +13 -13
- package/build/esm/{index-0df2e861.js → index-9bf080a8.js} +1 -1
- package/build/esm/{index-ea8c2de9.js → index-9d14e1c6.js} +1 -1
- package/build/esm/{index-ff6cc432.js → index-a686fefd.js} +6 -6
- package/build/esm/{index-0fe6ecf5.js → index-a8220223.js} +16 -16
- package/build/esm/{index-f15bb6d2.js → index-baddabd8.js} +6 -6
- package/build/esm/{index-79cabb83.js → index-bbb82c6b.js} +15 -15
- package/build/esm/{index-2edc1593.js → index-c2ccb553.js} +7 -7
- package/build/esm/{index-67281f83.js → index-c51d0c10.js} +3 -3
- package/build/esm/{index-0d9edf04.js → index-c761c2d6.js} +17 -17
- package/build/esm/{index-ce719781.js → index-c953059b.js} +7 -7
- package/build/esm/{index-027e189f.js → index-c98d483b.js} +13 -13
- package/build/esm/{index-af40ae57.js → index-cb741f64.js} +1 -1
- package/build/esm/{index-e7924420.js → index-ce15832e.js} +17 -17
- package/build/esm/{index-5b9a7a03.js → index-d6dce3f0.js} +3 -3
- package/build/esm/{index-098cbd8c.js → index-d7c85a80.js} +4 -4
- package/build/esm/{index-9836cc2b.js → index-d9087bdd.js} +2 -2
- package/build/esm/{index-89239154.js → index-da73aaf5.js} +2 -2
- package/build/esm/{index-f1fa7f42.js → index-dfb584cb.js} +3 -3
- package/build/esm/{index-6e4aa339.js → index-e11c67f5.js} +2 -2
- package/build/esm/{index-7ed46df4.js → index-e6d516a7.js} +17 -17
- package/build/esm/{index-dcf741b6.js → index-e8241341.js} +15 -15
- package/build/esm/{index-24cd82ca.js → index-e8846cf6.js} +2 -2
- package/build/esm/{index-53d57fd7.js → index-ecc4daa8.js} +5 -5
- package/build/esm/{index-6f8623b2.js → index-f3cafa3a.js} +3 -3
- package/build/esm/{index-c0645e5a.js → index-f7a3a2cd.js} +2 -2
- package/build/esm/{index-5f963442.js → index-f9cde832.js} +17 -17
- package/build/esm/{index-d02e9c01.js → index-facc4954.js} +2 -2
- package/build/esm/index.js +123 -124
- package/build/esm/{labelSorting-b054a7c8.js → labelSorting-560528d5.js} +4 -4
- package/build/esm/lead.js +36 -36
- package/build/esm/{logoIcon-21632207.js → logoIcon-84e7a9d7.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +19 -19
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +77 -77
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +47 -47
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +57 -57
- package/build/esm/{post-29dff00a.js → post-5c88428f.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2.js +31 -31
- package/build/esm/{store-5366a764.js → store-93f269aa.js} +3 -3
- package/build/esm/subot.js +37 -37
- package/build/esm/surveyOrPremiumBanner.js +34 -34
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-47324c99.js → surveyThankyouCard-15d54be1.js} +5 -5
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +52 -52
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +40 -40
- package/build/esm/togetherOrganisms.js +51 -51
- package/build/esm/togetherRichTextEditor.js +18 -18
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{translationsProvider-92e884b9.js → translationsProvider-e95f9d96.js} +1 -1
- package/build/esm/{treePopoverMenu-4be698fd.js → treePopoverMenu-6d23a8d8.js} +19 -19
- package/build/esm/types.js +2 -2
- package/build/esm/{useHealthToolCache-65432df0.js → useHealthToolCache-a335d5af.js} +1 -1
- package/build/esm/{usePhoneValidator-4e7654cc.js → usePhoneValidator-6c23d950.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-1cfc17d8.js → usePlacesAutocomplete-862cb277.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -10
- package/build/esm/{utils-bc200f7b.js → utils-07df3431.js} +3 -3
- package/build/esm/{utils-d75f4e5b.js → utils-21621991.js} +2 -2
- package/build/esm/{utils-83840456.js → utils-42c8476c.js} +5 -5
- package/build/esm/{utils-16c99ed9.js → utils-e0eb228e.js} +1 -1
- package/build/esm/{utils-b26e81b4.js → utils-fcc3c4a1.js} +2 -2
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-f5e29566.js → healthTools-00723994.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +34 -34
- package/build/hooks.js +13 -13
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-7ee13f57.js → index-0242a985.js} +7 -7
- package/build/{index-574a778b.js → index-0c0ba04d.js} +13 -13
- package/build/{index-3e4f8b2e.js → index-0e30f764.js} +3 -3
- package/build/{index-ab7831f3.js → index-0e6abd19.js} +17 -17
- package/build/{index-bf114903.js → index-0e6b6578.js} +3 -3
- package/build/{index-5407515b.js → index-12af726d.js} +1 -1
- package/build/{index-bf99aac8.js → index-16092a1f.js} +2 -2
- package/build/{index-4ed90a26.js → index-1a991ae7.js} +4 -4
- package/build/{index-8ef7f3d7.js → index-2fee616c.js} +15 -15
- package/build/{index-c51690b4.js → index-30a28f6d.js} +13 -13
- package/build/index-34889cd7.js +1175 -0
- package/build/{index-68cea447.js → index-35ece43c.js} +2 -2
- package/build/{index-ffafb0f3.js → index-38f65fe5.js} +16 -16
- package/build/{index-731ba974.js → index-39534671.js} +14 -14
- package/build/{index-16214f9f.js → index-3bc286f0.js} +3 -3
- package/build/{index-d2eb0107.js → index-475af59c.js} +25 -25
- package/build/{index-7d0e34fd.js → index-4e388603.js} +2 -2
- package/build/{index-90184f94.js → index-4f1c4af3.js} +4 -4
- package/build/{index-5062c937.js → index-59924cf2.js} +3 -3
- package/build/{index-99873463.js → index-59b61928.js} +2 -2
- package/build/{index-73cd3d70.js → index-5a3a07af.js} +7 -7
- package/build/{index-457dbb56.js → index-5ef74177.js} +13 -13
- package/build/{index-d87866d0.js → index-606ae76d.js} +6 -6
- package/build/{index-581d64f1.js → index-6b243a35.js} +6 -6
- package/build/{index-c1613883.js → index-6ef60a5c.js} +3 -3
- package/build/{index-2328edc3.js → index-7951994d.js} +2 -2
- package/build/{index-1804851d.js → index-79ef4a61.js} +32 -32
- package/build/{index-bc73ff7f.js → index-7a5399b9.js} +2 -2
- package/build/{index-1a3dd76c.js → index-7f626c6e.js} +13 -13
- package/build/{index-1ea73c25.js → index-7f7148d3.js} +2 -2
- package/build/{index-6f4386e0.js → index-812d8eab.js} +2 -2
- package/build/{index-7afaac4b.js → index-8183992b.js} +3 -3
- package/build/{index-2fb5a44e.js → index-81d82392.js} +13 -13
- package/build/{index-ca8b1462.js → index-8260367b.js} +96 -32
- package/build/{index-f293818b.js → index-846872f9.js} +32 -32
- package/build/{index-da8eb3ad.js → index-847524c4.js} +3 -3
- package/build/{index-6c05b74f.js → index-894d675c.js} +21 -21
- package/build/{index-1daab57c.js → index-92395f62.js} +1 -1
- package/build/{index-ef0fa0af.js → index-945958e5.js} +1 -1
- package/build/{index-bcf3426d.js → index-948d37e2.js} +1 -1
- package/build/{index-59a8e78f.js → index-954ddca1.js} +16 -16
- package/build/{index-ecc6b550.js → index-99cc7c82.js} +17 -17
- package/build/{index-69ed5e37.js → index-9c872847.js} +3 -3
- package/build/{index-032bd3de.js → index-a3c99878.js} +2 -2
- package/build/{index-c9587556.js → index-a998d8b2.js} +2 -2
- package/build/{index-3f8732b4.js → index-b0d61350.js} +1 -1
- package/build/{index-41df8c78.js → index-b4574ecc.js} +15 -15
- package/build/{index-137551db.js → index-b523a860.js} +5 -5
- package/build/{index-0930a373.js → index-b807f3e2.js} +13 -13
- package/build/{index-93044457.js → index-be6698ce.js} +2 -2
- package/build/{index-9da59699.js → index-beaa5380.js} +4 -4
- package/build/{index-fb152a9a.js → index-c071929e.js} +23 -23
- package/build/{index-58f72854.js → index-c495e26f.js} +10 -10
- package/build/{index-b83e4b0f.js → index-c611948a.js} +17 -17
- package/build/{index-a135063e.js → index-d1ea2223.js} +1 -1
- package/build/{index-ceef9938.js → index-d43a962b.js} +17 -17
- package/build/{index-33f7ebd5.js → index-d772f0eb.js} +15 -15
- package/build/{index-89215d97.js → index-d95d3410.js} +2 -2
- package/build/{index-ced01634.js → index-db93f6c7.js} +2 -2
- package/build/{index-dddb73c2.js → index-dde05a6c.js} +11 -11
- package/build/{index-4931f264.js → index-def1b1cf.js} +2 -2
- package/build/{index-20e20819.js → index-e1b3efe9.js} +22 -22
- package/build/{index-4f827964.js → index-e638765f.js} +6 -6
- package/build/{index-600def91.js → index-ee4d46c2.js} +8 -8
- package/build/{index-ae8b725b.js → index-f256e65a.js} +1 -1
- package/build/{index-89a5f77c.js → index-f31829a2.js} +2 -2
- package/build/{index-e3b4098c.js → index-f7cbf430.js} +8 -8
- package/build/{index-997b33e9.js → index-f9bc4d97.js} +2 -2
- package/build/{index-a5162482.js → index-fe7ee8e0.js} +2 -2
- package/build/{index-bfc1baa4.js → index-ff2a6303.js} +6 -6
- package/build/index.js +126 -126
- package/build/{labelSorting-8591a1f7.js → labelSorting-b58083e5.js} +4 -4
- package/build/lead.js +36 -36
- package/build/{logoIcon-f844459d.js → logoIcon-68255181.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +19 -19
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +77 -77
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +47 -47
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +57 -57
- package/build/{post-4866ddd0.js → post-d7957ed1.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2.js +29 -29
- package/build/{store-9fbf003a.js → store-05e41ce8.js} +3 -3
- package/build/subot.js +36 -36
- package/build/surveyOrPremiumBanner.js +34 -34
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-4c543ad6.js → surveyThankyouCard-179b7168.js} +5 -5
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +52 -52
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +40 -40
- package/build/togetherOrganisms.js +51 -51
- package/build/togetherRichTextEditor.js +18 -18
- package/build/togetherShareBox.js +10 -10
- package/build/{translationsProvider-8bfd8dcd.js → translationsProvider-9ac423af.js} +1 -1
- package/build/{treePopoverMenu-3173b7c6.js → treePopoverMenu-f51f103a.js} +19 -19
- package/build/types.js +2 -2
- package/build/{useHealthToolCache-49b91761.js → useHealthToolCache-bc808258.js} +1 -1
- package/build/{usePhoneValidator-42b4420c.js → usePhoneValidator-580b21df.js} +5 -5
- package/build/{usePlacesAutocomplete-16a24e6c.js → usePlacesAutocomplete-56c49c71.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -10
- package/build/{utils-efb9df54.js → utils-1721b02e.js} +3 -3
- package/build/{utils-268e7be6.js → utils-6b81f96f.js} +2 -2
- package/build/{utils-4c15fb7c.js → utils-a008d036.js} +5 -5
- package/build/{utils-756b7229.js → utils-ac21ecf3.js} +2 -2
- package/build/{utils-591412ce.js → utils-b3872bee.js} +1 -1
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/Upload-d3e64c9f.js +0 -29
- package/build/esm/Upload-7bc9425d.js +0 -7
- package/build/index-5fb97aa0.js +0 -840
- /package/build/{BMI_BOYS.percentile.monthly-ff6e801a.js → BMI_BOYS.percentile.monthly-95705be9.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-af0cf00b.js → BMI_BOYS.percentile.weekly-57bbde04.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b69d2481.js → BMI_BOYS.percentile.yearly-1630eb85.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-2315bd3d.js → BMI_BOYS.zscore.monthly-e9bbbc50.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-33981906.js → BMI_BOYS.zscore.weekly-a84dd341.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-8f97532e.js → BMI_BOYS.zscore.yearly-14f2f453.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-c71ad5de.js → BMI_GIRLS.percentile.monthly-51f3db73.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-5097715c.js → BMI_GIRLS.percentile.weekly-3619f89d.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-2d1cc3d2.js → BMI_GIRLS.percentile.yearly-2aa2a2ac.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-0948183b.js → BMI_GIRLS.zscore.monthly-9cdecb47.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-0c27efa2.js → BMI_GIRLS.zscore.weekly-d2a4d31a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-6a5590d8.js → BMI_GIRLS.zscore.yearly-8f20722f.js} +0 -0
- /package/build/{ChevronDown-fbb29ce6.js → ChevronDown-b7f24e01.js} +0 -0
- /package/build/{Close-8ab6763e.js → Close-a2dd1fed.js} +0 -0
- /package/build/{Google-9c9c5f3d.js → Google-94eece79.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-5dfaffb3.js → HEAD CIRCUM_BOYS.percentile.monthly-5dc85373.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-f20bc9e6.js → HEAD CIRCUM_BOYS.percentile.weekly-debd0567.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-7d418691.js → HEAD CIRCUM_BOYS.percentile.yearly-3fa3857c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-0b4e133c.js → HEAD CIRCUM_BOYS.zscore.monthly-8d3aca60.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-68c5933f.js → HEAD CIRCUM_BOYS.zscore.weekly-45487efc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-7716edfb.js → HEAD CIRCUM_BOYS.zscore.yearly-2da4a8db.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-089aef39.js → HEAD CIRCUM_GIRLS.percentile.monthly-debbe98f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-dc9f5596.js → HEAD CIRCUM_GIRLS.percentile.weekly-d2d92332.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-c248ad6c.js → HEAD CIRCUM_GIRLS.percentile.yearly-4eefc4f6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0c2d1236.js → HEAD CIRCUM_GIRLS.zscore.monthly-3df1a24b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-da784852.js → HEAD CIRCUM_GIRLS.zscore.weekly-4cc6269d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-373ced5e.js → HEAD CIRCUM_GIRLS.zscore.yearly-4eb06a1e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-349600e7.js → HEIGHT_BOYS.percentile.monthly-c727c145.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-b2e2eaf8.js → HEIGHT_BOYS.percentile.weekly-b9559482.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-5ba2f7b9.js → HEIGHT_BOYS.percentile.yearly-9b513486.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-d92d5ec2.js → HEIGHT_BOYS.zscore.monthly-2b89ce72.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-4031f9d1.js → HEIGHT_BOYS.zscore.weekly-f20dd79c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-77f0a7d9.js → HEIGHT_BOYS.zscore.yearly-87ca8e24.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-8a571e59.js → HEIGHT_GIRLS.percentile.monthly-ec4cc56f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-ab6e4246.js → HEIGHT_GIRLS.percentile.weekly-e76f47a4.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-c4b57be9.js → HEIGHT_GIRLS.percentile.yearly-a821f058.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-25623a82.js → HEIGHT_GIRLS.zscore.monthly-396d7a74.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-da5f1310.js → HEIGHT_GIRLS.zscore.weekly-19736170.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-01976e3f.js → HEIGHT_GIRLS.zscore.yearly-e2b4070b.js} +0 -0
- /package/build/{Locale-66835f9a.js → Locale-793ddc26.js} +0 -0
- /package/build/{Visible-1c8d9227.js → Visible-19f1eadd.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-653f443e.js → WEIGHT_BOYS.percentile.monthly-f7e5852b.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-0a9fb4ab.js → WEIGHT_BOYS.percentile.weekly-bd489573.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-092f7d90.js → WEIGHT_BOYS.percentile.yearly-ff02d8ab.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-3cbdee43.js → WEIGHT_BOYS.zscore.monthly-0b707fee.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-ff761428.js → WEIGHT_BOYS.zscore.weekly-ab92a2f6.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-b272fc29.js → WEIGHT_BOYS.zscore.yearly-146b4b49.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-e082acbe.js → WEIGHT_GIRLS.percentile.monthly-48260772.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-96b8ec86.js → WEIGHT_GIRLS.percentile.weekly-b2e39430.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-da6db284.js → WEIGHT_GIRLS.percentile.yearly-cb72b1b3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-5dfcd54e.js → WEIGHT_GIRLS.zscore.monthly-690a8363.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-edaad02d.js → WEIGHT_GIRLS.zscore.weekly-c82b0f7b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-4615a345.js → WEIGHT_GIRLS.zscore.yearly-d039dd1f.js} +0 -0
- /package/build/{ageGenerate-e053bb62.js → ageGenerate-c737b7db.js} +0 -0
- /package/build/{animation-1dc11299.js → animation-47372b0d.js} +0 -0
- /package/build/{constants-8b7f26ad.js → constants-160ce9da.js} +0 -0
- /package/build/{constants-c37407b6.js → constants-a042d3ad.js} +0 -0
- /package/build/{constants-f4c590ab.js → constants-e9362c96.js} +0 -0
- /package/build/{dataTransform-857fbeef.js → dataTransform-b737779f.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0a6e454c.js → BMI_BOYS.percentile.monthly-2005c852.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-14613e8d.js → BMI_BOYS.percentile.weekly-36617a2b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-6a326dd2.js → BMI_BOYS.percentile.yearly-810281a2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-92e94167.js → BMI_BOYS.zscore.monthly-355b2da3.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-5851d9f4.js → BMI_BOYS.zscore.weekly-b6f9f882.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-222344fe.js → BMI_BOYS.zscore.yearly-0a1156a2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-1f34a41d.js → BMI_GIRLS.percentile.monthly-679ece44.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-c686d091.js → BMI_GIRLS.percentile.weekly-8faff106.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-8f3053a6.js → BMI_GIRLS.percentile.yearly-6cabaac9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-ddb111ba.js → BMI_GIRLS.zscore.monthly-8377e8d1.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-ead57ef3.js → BMI_GIRLS.zscore.weekly-b7ca2d3e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-f53c85be.js → BMI_GIRLS.zscore.yearly-eba6dfe5.js} +0 -0
- /package/build/esm/{ChevronDown-75045fc3.js → ChevronDown-d71938a6.js} +0 -0
- /package/build/esm/{Close-867d5bf6.js → Close-db512ca0.js} +0 -0
- /package/build/esm/{Google-de48eeaf.js → Google-2c6f5ddd.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-7fbc740b.js → HEAD CIRCUM_BOYS.percentile.monthly-d4d2c424.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-8738de56.js → HEAD CIRCUM_BOYS.percentile.weekly-2a5ff18f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-e4a47533.js → HEAD CIRCUM_BOYS.percentile.yearly-a3945d3f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-2b556ce2.js → HEAD CIRCUM_BOYS.zscore.monthly-78961b38.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-549f6525.js → HEAD CIRCUM_BOYS.zscore.weekly-6e031d4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-09af3a52.js → HEAD CIRCUM_BOYS.zscore.yearly-8704c21a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-7d1a343d.js → HEAD CIRCUM_GIRLS.percentile.monthly-d7c9ae4a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-646fb9bc.js → HEAD CIRCUM_GIRLS.percentile.weekly-c372d2ea.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-e536f7c9.js → HEAD CIRCUM_GIRLS.percentile.yearly-f86217e0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-b7e07946.js → HEAD CIRCUM_GIRLS.zscore.monthly-271bb0c5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-d5b7ddb9.js → HEAD CIRCUM_GIRLS.zscore.weekly-e52ad04c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-28fcbf22.js → HEAD CIRCUM_GIRLS.zscore.yearly-e2356afc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-659dd25e.js → HEIGHT_BOYS.percentile.monthly-5e540f50.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-cab6fd5b.js → HEIGHT_BOYS.percentile.weekly-e0fc68cf.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-7dc5f907.js → HEIGHT_BOYS.percentile.yearly-35bd368d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-c8472600.js → HEIGHT_BOYS.zscore.monthly-c7354002.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-84d86165.js → HEIGHT_BOYS.zscore.weekly-a8a7b700.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-27dc8def.js → HEIGHT_BOYS.zscore.yearly-6b5db143.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-543ea5ed.js → HEIGHT_GIRLS.percentile.monthly-470294cb.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ec0c6ffa.js → HEIGHT_GIRLS.percentile.weekly-25009b1d.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-2ba4f18f.js → HEIGHT_GIRLS.percentile.yearly-a2e98c60.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ad17768a.js → HEIGHT_GIRLS.zscore.monthly-93701e7c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4ffa138f.js → HEIGHT_GIRLS.zscore.weekly-19393b1f.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-ecafa533.js → HEIGHT_GIRLS.zscore.yearly-04e110ab.js} +0 -0
- /package/build/esm/{Locale-bd1932d4.js → Locale-c5e86e5b.js} +0 -0
- /package/build/esm/{Visible-2428d607.js → Visible-39443c54.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-f3cdccb4.js → WEIGHT_BOYS.percentile.monthly-8ef91456.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-514371f0.js → WEIGHT_BOYS.percentile.weekly-75af0c78.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-dcbb9c6f.js → WEIGHT_BOYS.percentile.yearly-e493751e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-740c5d46.js → WEIGHT_BOYS.zscore.monthly-d47eee23.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-9dd84ef0.js → WEIGHT_BOYS.zscore.weekly-0965bafc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-f541c5de.js → WEIGHT_BOYS.zscore.yearly-722f42c6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-5512dda5.js → WEIGHT_GIRLS.percentile.monthly-50508a8d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-5d749a5e.js → WEIGHT_GIRLS.percentile.weekly-824a5f9b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-10f99686.js → WEIGHT_GIRLS.percentile.yearly-a4ab5160.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-3a983b69.js → WEIGHT_GIRLS.zscore.monthly-e42eb7c6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-9c406b56.js → WEIGHT_GIRLS.zscore.weekly-a45c6e75.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-b097b1b1.js → WEIGHT_GIRLS.zscore.yearly-6a2d22d5.js} +0 -0
- /package/build/esm/{ageGenerate-8b37ba87.js → ageGenerate-df6af925.js} +0 -0
- /package/build/esm/{animation-1ff993ba.js → animation-050bd7bb.js} +0 -0
- /package/build/esm/{constants-f62086be.js → constants-39e25946.js} +0 -0
- /package/build/esm/{constants-dc6e8945.js → constants-9a73232c.js} +0 -0
- /package/build/esm/{constants-ea2378da.js → constants-dda703eb.js} +0 -0
- /package/build/esm/{dataTransform-06621fb1.js → dataTransform-309409c1.js} +0 -0
- /package/build/esm/{index-dd851d45.js → index-0ad990c7.js} +0 -0
- /package/build/esm/{index-a2e2adc6.js → index-232e8385.js} +0 -0
- /package/build/esm/{index-efb19164.js → index-7c89a3db.js} +0 -0
- /package/build/esm/{index-fadf9d6f.js → index-a6de7a4e.js} +0 -0
- /package/build/esm/{index-82b4f2b6.js → index-bbafc45e.js} +0 -0
- /package/build/esm/{index-4e1c15b4.js → index-f3f250b9.js} +0 -0
- /package/build/esm/{index-0bcf0fab.js → index-f431e78f.js} +0 -0
- /package/build/esm/{index-107dd534.js → index-f86eb183.js} +0 -0
- /package/build/esm/{index.styles-43d79a33.js → index.styles-3fdcbb0f.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0decfdf4.js → localizeNumberFormat-1d5ea4f2.js} +0 -0
- /package/build/esm/{normalizeLink-8d0ad45e.js → normalizeLink-e9de76ea.js} +0 -0
- /package/build/esm/{number-7e2a1bc8.js → number-bfd34f6e.js} +0 -0
- /package/build/esm/{paths-1c30bf22.js → paths-93661eb9.js} +0 -0
- /package/build/esm/{shared-66ffcc74.js → shared-f5013f25.js} +0 -0
- /package/build/esm/{text-7bd13052.js → text-926c1207.js} +0 -0
- /package/build/esm/{translationsContext-15f0b183.js → translationsContext-bf770015.js} +0 -0
- /package/build/esm/{tslib.es6-ebff6537.js → tslib.es6-af7a282c.js} +0 -0
- /package/build/esm/{types-8991ed16.js → types-297ac2a0.js} +0 -0
- /package/build/esm/{types-49696c34.js → types-4c794adb.js} +0 -0
- /package/build/esm/{useIsInit-f141835b.js → useIsInit-dc5403e5.js} +0 -0
- /package/build/esm/{useOutsideClick-4be73895.js → useOutsideClick-d5373de3.js} +0 -0
- /package/build/esm/{useScrollbarSize-926dd14f.js → useScrollbarSize-494b4fab.js} +0 -0
- /package/build/esm/{useUniqueId-9d4a4d99.js → useUniqueId-e8e6f0da.js} +0 -0
- /package/build/esm/{utils-d47134bf.js → utils-b81640f2.js} +0 -0
- /package/build/{index-7e59c868.js → index-019b1b43.js} +0 -0
- /package/build/{index-4a38271d.js → index-06029dd0.js} +0 -0
- /package/build/{index-3ee1eafb.js → index-55af3e88.js} +0 -0
- /package/build/{index-32f9411f.js → index-8bb7dc2b.js} +0 -0
- /package/build/{index-b9bde54c.js → index-91205e7a.js} +0 -0
- /package/build/{index-fb09a2e1.js → index-ba504693.js} +0 -0
- /package/build/{index-24687417.js → index-c4430148.js} +0 -0
- /package/build/{index-7bd9b821.js → index-c6e3b68b.js} +0 -0
- /package/build/{index.styles-4a307277.js → index.styles-b2810af4.js} +0 -0
- /package/build/{localizeNumberFormat-349b8e3c.js → localizeNumberFormat-2da7728c.js} +0 -0
- /package/build/{normalizeLink-9a3d58af.js → normalizeLink-c3cba2ba.js} +0 -0
- /package/build/{number-a925e68e.js → number-c02de914.js} +0 -0
- /package/build/{paths-fc8c5b54.js → paths-f9c85c2d.js} +0 -0
- /package/build/{shared-9173fc17.js → shared-2b2f1961.js} +0 -0
- /package/build/{text-0ef2e111.js → text-d34dff5c.js} +0 -0
- /package/build/{translationsContext-0b437307.js → translationsContext-bb636034.js} +0 -0
- /package/build/{tslib.es6-7e3d6fb1.js → tslib.es6-9051e8a3.js} +0 -0
- /package/build/{types-f2e7459a.js → types-4c265367.js} +0 -0
- /package/build/{types-a5ddfa9d.js → types-510a7c7f.js} +0 -0
- /package/build/{useIsInit-b1a94f77.js → useIsInit-1fbe2c93.js} +0 -0
- /package/build/{useOutsideClick-ea02f636.js → useOutsideClick-5462ff4d.js} +0 -0
- /package/build/{useScrollbarSize-d710d4ea.js → useScrollbarSize-f33101cb.js} +0 -0
- /package/build/{useUniqueId-919fc1bf.js → useUniqueId-df29ff58.js} +0 -0
- /package/build/{utils-57358b97.js → utils-6d63a160.js} +0 -0
|
@@ -0,0 +1,1175 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var index = require('./index-d95d3410.js');
|
|
5
|
+
var styled = require('@emotion/styled');
|
|
6
|
+
var miscTheme = require('./miscTheme.js');
|
|
7
|
+
var utils = require('./utils-6d63a160.js');
|
|
8
|
+
var core = require('@mantine/core');
|
|
9
|
+
var hooks = require('@mantine/hooks');
|
|
10
|
+
var index$1 = require('./index-1a991ae7.js');
|
|
11
|
+
var index$2 = require('./index-ee4d46c2.js');
|
|
12
|
+
var tslib_es6 = require('./tslib.es6-9051e8a3.js');
|
|
13
|
+
var index$3 = require('./index-7f626c6e.js');
|
|
14
|
+
var miscDefaultClassWrapper = require('./miscDefaultClassWrapper.js');
|
|
15
|
+
var flattenChildren = require('react-keyed-flatten-children');
|
|
16
|
+
var index$4 = require('./index-fe7ee8e0.js');
|
|
17
|
+
var Close = require('./Close-a2dd1fed.js');
|
|
18
|
+
var index$5 = require('./index-948d37e2.js');
|
|
19
|
+
var carousel = require('@mantine/carousel');
|
|
20
|
+
|
|
21
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
22
|
+
|
|
23
|
+
function _interopNamespace(e) {
|
|
24
|
+
if (e && e.__esModule) return e;
|
|
25
|
+
var n = Object.create(null);
|
|
26
|
+
if (e) {
|
|
27
|
+
Object.keys(e).forEach(function (k) {
|
|
28
|
+
if (k !== 'default') {
|
|
29
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
30
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return e[k]; }
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
n["default"] = e;
|
|
38
|
+
return Object.freeze(n);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
42
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
43
|
+
var flattenChildren__default = /*#__PURE__*/_interopDefault(flattenChildren);
|
|
44
|
+
|
|
45
|
+
var styles = {"alert":"CHw-fZZ","content":"_03U6VRS","close":"EO828Vv"};
|
|
46
|
+
|
|
47
|
+
/* eslint-disable prettier/prettier */
|
|
48
|
+
const Upload = (props) => (React__namespace.createElement("svg", Object.assign({ width: "1em", height: "1em", viewBox: "0 0 18 18", fill: "none" }, props),
|
|
49
|
+
React__namespace.createElement("path", { d: "M9.82324 8.7033L10.8228 9.70287C10.9267 9.80662 11.056 9.8573 11.2107 9.85493C11.3655 9.85255 11.4948 9.79943 11.5987 9.69555C11.7026 9.59168 11.7545 9.46074 11.7545 9.30274C11.7545 9.14474 11.7026 9.01462 11.5987 8.91237L9.7353 7.04899C9.59968 6.91337 9.44149 6.84555 9.26074 6.84555C9.07999 6.84555 8.9218 6.91337 8.78618 7.04899L6.91549 8.91968C6.81174 9.02355 6.75987 9.15287 6.75987 9.30762C6.75987 9.46237 6.81174 9.59168 6.91549 9.69555C7.01937 9.79943 7.1503 9.85137 7.3083 9.85137C7.4663 9.85137 7.59643 9.79943 7.69868 9.69555L8.69824 8.7033L8.69824 11.5576C8.69824 11.717 8.75218 11.8506 8.86005 11.9583C8.96793 12.0662 9.10156 12.1201 9.26093 12.1201C9.42043 12.1201 9.55399 12.0662 9.66162 11.9583C9.76937 11.8506 9.82324 11.717 9.82324 11.5576L9.82324 8.7033ZM16.3857 9.3063C16.3857 10.2918 16.1987 11.2181 15.8247 12.0852C15.4507 12.9524 14.9432 13.7066 14.3021 14.348C13.6609 14.9894 12.907 15.4972 12.0402 15.8714C11.1735 16.2456 10.2474 16.4326 9.26205 16.4326C8.27655 16.4326 7.35024 16.2456 6.48312 15.8716C5.61599 15.4976 4.86174 14.9901 4.22037 14.3489C3.57899 13.7078 3.07118 12.9539 2.69693 12.0871C2.3228 11.2204 2.13574 10.2943 2.13574 9.30893C2.13574 8.32343 2.32274 7.39712 2.69674 6.52999C3.07074 5.66287 3.5783 4.90862 4.21943 4.26724C4.86055 3.62587 5.61449 3.11805 6.48124 2.7438C7.34799 2.36968 8.27405 2.18262 9.25943 2.18262C10.2449 2.18262 11.1712 2.36962 12.0384 2.74362C12.9055 3.11762 13.6597 3.62518 14.3011 4.2663C14.9425 4.90743 15.4503 5.66137 15.8246 6.52812C16.1987 7.39487 16.3857 8.32093 16.3857 9.3063ZM15.2607 9.30762C15.2607 7.63262 14.6795 6.21387 13.517 5.05137C12.3545 3.88887 10.9357 3.30762 9.26074 3.30762C7.58574 3.30762 6.16699 3.88887 5.00449 5.05137C3.84199 6.21387 3.26074 7.63262 3.26074 9.30762C3.26074 10.9826 3.84199 12.4014 5.00449 13.5639C6.16699 14.7264 7.58574 15.3076 9.26074 15.3076C10.9357 15.3076 12.3545 14.7264 13.517 13.5639C14.6795 12.4014 15.2607 10.9826 15.2607 9.30762Z", fill: "#595959" })));
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Consider to use Mantine
|
|
53
|
+
*/
|
|
54
|
+
const Alert = ({ style, onClose, text, type, contentIcon, closeIcon, className, description, }) => {
|
|
55
|
+
return (React__namespace["default"].createElement("div", { className: `${styles.alert} ${className || ''}`, style: style, "data-alert-type": type },
|
|
56
|
+
React__namespace["default"].createElement("div", { className: styles.content },
|
|
57
|
+
React__namespace["default"].createElement("div", { className: "icon-title" },
|
|
58
|
+
contentIcon,
|
|
59
|
+
React__namespace["default"].createElement(index.Text, { weight: "bold", size: "label1" }, text)),
|
|
60
|
+
React__namespace["default"].createElement(index.Text, { weight: "regular", size: "p3" }, description)),
|
|
61
|
+
React__namespace["default"].createElement("div", { className: styles.close, onClick: onClose }, closeIcon)));
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const renderNotificationStyles = (type, size, hasIcon, color) => {
|
|
65
|
+
let sizeparams = '';
|
|
66
|
+
if (type === 'numeric') {
|
|
67
|
+
switch (size) {
|
|
68
|
+
case 'medium':
|
|
69
|
+
sizeparams = `
|
|
70
|
+
height: 16px;
|
|
71
|
+
font-size: 11px;
|
|
72
|
+
padding: 1px 6px;
|
|
73
|
+
`;
|
|
74
|
+
case 'large':
|
|
75
|
+
sizeparams = `
|
|
76
|
+
height: 24px;
|
|
77
|
+
font-size: 13px;
|
|
78
|
+
padding: 1px 10px;
|
|
79
|
+
`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
let icon = '';
|
|
83
|
+
if (hasIcon) {
|
|
84
|
+
icon = `
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 0;
|
|
87
|
+
left: 75%;
|
|
88
|
+
`;
|
|
89
|
+
}
|
|
90
|
+
let numericIcon;
|
|
91
|
+
if (hasIcon) {
|
|
92
|
+
numericIcon = `
|
|
93
|
+
left: 70%;
|
|
94
|
+
|
|
95
|
+
${size === 'large'
|
|
96
|
+
? `
|
|
97
|
+
top: -7px;
|
|
98
|
+
`
|
|
99
|
+
: size === 'medium'
|
|
100
|
+
? `
|
|
101
|
+
top: -2px;
|
|
102
|
+
width: 16px;
|
|
103
|
+
height: 16px;
|
|
104
|
+
`
|
|
105
|
+
: ''}
|
|
106
|
+
`;
|
|
107
|
+
}
|
|
108
|
+
let notificationColor = '';
|
|
109
|
+
switch (color) {
|
|
110
|
+
case 'primary':
|
|
111
|
+
notificationColor = `
|
|
112
|
+
background: ${miscTheme.theme.colors.primary50};
|
|
113
|
+
color: ${miscTheme.theme.colors.primary600};
|
|
114
|
+
`;
|
|
115
|
+
break;
|
|
116
|
+
case 'error':
|
|
117
|
+
notificationColor = `
|
|
118
|
+
background: ${miscTheme.theme.colors.error};
|
|
119
|
+
color: white;
|
|
120
|
+
`;
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
switch (type) {
|
|
124
|
+
case 'dot':
|
|
125
|
+
return `
|
|
126
|
+
${icon}
|
|
127
|
+
width: 8px;
|
|
128
|
+
height: 8px;
|
|
129
|
+
font-size: 0px;
|
|
130
|
+
border-radius: 50%;
|
|
131
|
+
${notificationColor}
|
|
132
|
+
`;
|
|
133
|
+
case 'numeric':
|
|
134
|
+
return `
|
|
135
|
+
${icon}
|
|
136
|
+
width: max-content;
|
|
137
|
+
border-radius: 32px;
|
|
138
|
+
${sizeparams}
|
|
139
|
+
${numericIcon}
|
|
140
|
+
${notificationColor}
|
|
141
|
+
`;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
const StyledBadge = styled__default["default"].div `
|
|
145
|
+
position: relative;
|
|
146
|
+
|
|
147
|
+
> div {
|
|
148
|
+
width: max-content;
|
|
149
|
+
position: relative;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
span {
|
|
153
|
+
font-weight: ${miscTheme.theme.sizes.fwBold};
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
align-items: center;
|
|
157
|
+
|
|
158
|
+
${(props) => renderNotificationStyles(props.notificationType, props.notificationSize, props.hasIcon, props.notificationColor)}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
${(props) => props.hasIcon &&
|
|
162
|
+
`
|
|
163
|
+
svg {
|
|
164
|
+
width: 40px;
|
|
165
|
+
height: 40px;
|
|
166
|
+
}
|
|
167
|
+
`}
|
|
168
|
+
`;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
172
|
+
*/
|
|
173
|
+
const Badge = ({ amount, type, size = 'medium', color = 'primary', icon, className, }) => {
|
|
174
|
+
return (React__namespace["default"].createElement(StyledBadge, { "data-notification-type": type, "data-notification-size": size, "data-notification-color": color, "data-has-icon": !!icon || undefined, notificationType: type, notificationSize: size, notificationColor: color, hasIcon: !!icon, className: className },
|
|
175
|
+
React__namespace["default"].createElement("div", null,
|
|
176
|
+
amount && React__namespace["default"].createElement("span", null, amount),
|
|
177
|
+
" ",
|
|
178
|
+
icon && React__namespace["default"].createElement("div", null, icon))));
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
const StyledBorderHeading = styled__default["default"].h4 `
|
|
182
|
+
position: relative;
|
|
183
|
+
line-height: 18px;
|
|
184
|
+
|
|
185
|
+
&:after {
|
|
186
|
+
position: absolute;
|
|
187
|
+
top: 1px;
|
|
188
|
+
left: 0;
|
|
189
|
+
width: 4px;
|
|
190
|
+
height: 18px;
|
|
191
|
+
background-color: ${miscTheme.theme.colors.primaryBase};
|
|
192
|
+
content: '';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&[data-size='lg'] {
|
|
196
|
+
font-size: 18px;
|
|
197
|
+
padding-left: 12px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
&[data-size='sm'] {
|
|
201
|
+
font-size: 14px;
|
|
202
|
+
padding-left: 8px;
|
|
203
|
+
|
|
204
|
+
&::after {
|
|
205
|
+
width: 2px;
|
|
206
|
+
height: 15px;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&[data-type='bold'] {
|
|
211
|
+
font-weight: ${miscTheme.theme.sizes.fwBold};
|
|
212
|
+
}
|
|
213
|
+
&[data-type='semiBold'] {
|
|
214
|
+
font-weight: ${miscTheme.theme.sizes.fwSemiBold};
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&[data-uppercase] {
|
|
218
|
+
text-transform: uppercase;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
${utils.MediaQueries.mbDown} {
|
|
222
|
+
&[data-size='lg'] {
|
|
223
|
+
font-size: 16px;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
`;
|
|
227
|
+
|
|
228
|
+
const BorderHeading = ({ style, children, className, size = 'lg', type = 'bold', upperCase, as = 'h4', color, }) => (React__namespace["default"].createElement(StyledBorderHeading, { style: Object.assign({ color }, style), className: className, "data-size": size, "data-type": type, "data-uppercase": upperCase, as: as }, children));
|
|
229
|
+
|
|
230
|
+
const StyledArrowDownIcon = styled__default["default"](index$1.ShapedArrowDown) `
|
|
231
|
+
flex-shrink: 0;
|
|
232
|
+
color: ${miscTheme.theme.colors.neutral800};
|
|
233
|
+
width: 16px;
|
|
234
|
+
height: 16px;
|
|
235
|
+
transition: transform 0.2s ease-in-out;
|
|
236
|
+
transform: rotate(-180deg);
|
|
237
|
+
&[data-is-collapsed='true'] {
|
|
238
|
+
transform: rotate(0deg);
|
|
239
|
+
}
|
|
240
|
+
`;
|
|
241
|
+
const StyledCardCollapse = styled__default["default"].div `
|
|
242
|
+
background-color: white;
|
|
243
|
+
.icon {
|
|
244
|
+
width: 20px;
|
|
245
|
+
height: 20px;
|
|
246
|
+
flex-shrink: 0;
|
|
247
|
+
color: ${miscTheme.theme.colors.neutral800};
|
|
248
|
+
}
|
|
249
|
+
.title-collapse {
|
|
250
|
+
color: #111111;
|
|
251
|
+
font-weight: var(--fwSemiBold);
|
|
252
|
+
font-size: 1.0625rem;
|
|
253
|
+
line-height: 1.5rem;
|
|
254
|
+
flex-grow: 1;
|
|
255
|
+
}
|
|
256
|
+
`;
|
|
257
|
+
const StyledBox = styled__default["default"].div `
|
|
258
|
+
display: flex;
|
|
259
|
+
padding: 1.5rem 1rem 1rem 1rem;
|
|
260
|
+
gap: 0.75rem;
|
|
261
|
+
align-items: center;
|
|
262
|
+
`;
|
|
263
|
+
|
|
264
|
+
function CardCollapse({ children, title, icon, defaultOpened = true, haveCollapse = true, id, }) {
|
|
265
|
+
const [opened, { toggle }] = hooks.useDisclosure(defaultOpened);
|
|
266
|
+
const handleClick = () => {
|
|
267
|
+
if (haveCollapse) {
|
|
268
|
+
toggle();
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
return (React__namespace["default"].createElement(StyledCardCollapse, { id: id },
|
|
272
|
+
React__namespace["default"].createElement(StyledBox, { onClick: handleClick },
|
|
273
|
+
haveCollapse && icon,
|
|
274
|
+
React__namespace["default"].createElement("div", { className: "title-collapse" }, title),
|
|
275
|
+
haveCollapse && React__namespace["default"].createElement(StyledArrowDownIcon, { "data-is-collapsed": opened })),
|
|
276
|
+
React__namespace["default"].createElement(core.Collapse, { in: haveCollapse ? opened : true, transitionDuration: 200, transitionTimingFunction: "ease" }, children)));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const StyledDropdown = styled__default["default"].div `
|
|
280
|
+
position: relative;
|
|
281
|
+
box-sizing: border-box;
|
|
282
|
+
border: 1px solid ${miscTheme.theme.colors.gray200};
|
|
283
|
+
background: url('../../../public/bgSvg/arrow-down.svg') no-repeat;
|
|
284
|
+
background-position: right 16px center;
|
|
285
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
286
|
+
|
|
287
|
+
&[data-has-icons='true'] {
|
|
288
|
+
border: none;
|
|
289
|
+
background: ${miscTheme.theme.colors.gray100};
|
|
290
|
+
|
|
291
|
+
img,
|
|
292
|
+
svg {
|
|
293
|
+
display: inline-block;
|
|
294
|
+
max-width: 16px;
|
|
295
|
+
margin-right: 6px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
span {
|
|
299
|
+
vertical-align: middle;
|
|
300
|
+
display: inline-block;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
&:hover {
|
|
304
|
+
box-shadow: none;
|
|
305
|
+
}
|
|
306
|
+
> div {
|
|
307
|
+
position: relative;
|
|
308
|
+
width: 100%;
|
|
309
|
+
display: flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
box-sizing: border-box;
|
|
312
|
+
}
|
|
313
|
+
> div::after {
|
|
314
|
+
content: '';
|
|
315
|
+
right: 12px;
|
|
316
|
+
top: 50%;
|
|
317
|
+
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");
|
|
318
|
+
width: 10px;
|
|
319
|
+
height: 8px;
|
|
320
|
+
position: absolute;
|
|
321
|
+
background-repeat: no-repeat;
|
|
322
|
+
transform: translateY(-50%);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&:hover {
|
|
327
|
+
box-shadow: 0 0 2px 2px ${miscTheme.theme.colors.primary200};
|
|
328
|
+
}
|
|
329
|
+
`;
|
|
330
|
+
const StyledDropdownName = styled__default["default"].div `
|
|
331
|
+
padding: 12px 18px 12px 16px;
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
&[data-dropdown-open] {
|
|
334
|
+
padding: 11px 15px 11px 15px;
|
|
335
|
+
border: 1px solid ${miscTheme.theme.colors.primaryBase};
|
|
336
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
337
|
+
box-shadow: 0 0 2px 2px ${miscTheme.theme.colors.primary200};
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
& > svg {
|
|
341
|
+
height: 16px;
|
|
342
|
+
width: 16px;
|
|
343
|
+
}
|
|
344
|
+
`;
|
|
345
|
+
const StyledDropdownList = styled__default["default"].ul `
|
|
346
|
+
position: absolute;
|
|
347
|
+
top: 100%;
|
|
348
|
+
right: 0;
|
|
349
|
+
left: 0;
|
|
350
|
+
display: block;
|
|
351
|
+
margin-top: 4px;
|
|
352
|
+
background: ${miscTheme.theme.colors.white};
|
|
353
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
354
|
+
box-shadow: -1px 1px 2px rgba(67, 70, 74, 0.0001),
|
|
355
|
+
-2px 2px 5px rgba(67, 86, 100, 0.123689);
|
|
356
|
+
cursor: pointer;
|
|
357
|
+
|
|
358
|
+
&[data-has-icons='true'] {
|
|
359
|
+
background: white;
|
|
360
|
+
box-shadow: none;
|
|
361
|
+
border: 1px solid ${miscTheme.theme.colors.gray200};
|
|
362
|
+
filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.04));
|
|
363
|
+
}
|
|
364
|
+
`;
|
|
365
|
+
const StyledDropdownOption = styled__default["default"].li `
|
|
366
|
+
margin: 8px;
|
|
367
|
+
padding: 12px 18px 12px 16px;
|
|
368
|
+
border-radius: ${miscTheme.theme.borderRadius};
|
|
369
|
+
display: flex;
|
|
370
|
+
&:hover,
|
|
371
|
+
:active {
|
|
372
|
+
background: ${miscTheme.theme.colors.gray100};
|
|
373
|
+
}
|
|
374
|
+
`;
|
|
375
|
+
const StyledIcon = styled__default["default"].div `
|
|
376
|
+
display: flex;
|
|
377
|
+
align-items: center;
|
|
378
|
+
margin-right: 8px;
|
|
379
|
+
|
|
380
|
+
& > svg {
|
|
381
|
+
height: 16px;
|
|
382
|
+
width: 16px;
|
|
383
|
+
}
|
|
384
|
+
`;
|
|
385
|
+
|
|
386
|
+
const ShareIconPathStyle = () => (React__namespace["default"].createElement("style", null, '.file-dropdown-path{fill:none;stroke:#595959;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}'));
|
|
387
|
+
const DefaultFileIcon = () => (React__namespace["default"].createElement("svg", { id: "prefix__Layer_1", "data-name": "Layer 1", viewBox: "0 0 12.17 14.83" },
|
|
388
|
+
React__namespace["default"].createElement("defs", null,
|
|
389
|
+
React__namespace["default"].createElement("clipPath", { id: "prefix__clip-path", transform: "translate(-1.92 -1.54)" },
|
|
390
|
+
React__namespace["default"].createElement("path", { fill: "none", d: "M0 .96h16v16H0z" }))),
|
|
391
|
+
React__namespace["default"].createElement("title", null, 'File'),
|
|
392
|
+
React__namespace["default"].createElement("g", { clipPath: "url(#prefix__clip-path)" },
|
|
393
|
+
React__namespace["default"].createElement("path", { className: "file-dropdown-path", d: "M8.67 2.29H4a1.33 1.33 0 00-1.33 1.33v10.67A1.33 1.33 0 004 15.62h8a1.33 1.33 0 001.33-1.33V7z", transform: "translate(-1.92 -1.54)" }),
|
|
394
|
+
React__namespace["default"].createElement("path", { className: "file-dropdown-path", d: "M8.67 2.29V7h4.66", transform: "translate(-1.92 -1.54)" }))));
|
|
395
|
+
const DownloadIcon = () => (React__namespace["default"].createElement("svg", { id: "prefix__Layer_1", "data-name": "Layer 1", viewBox: "0 0 13.5 13.5" },
|
|
396
|
+
React__namespace["default"].createElement("title", null, 'download'),
|
|
397
|
+
React__namespace["default"].createElement("path", { className: "file-dropdown-path", d: "M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M4.67 7.62L8 11l3.33-3.34M8 11V3", transform: "translate(-1.25 -2.21)" })));
|
|
398
|
+
const UploadIcon = () => (React__namespace["default"].createElement("svg", { id: "prefix__Layer_1", "data-name": "Layer 1", viewBox: "0 0 13.5 13.5" },
|
|
399
|
+
React__namespace["default"].createElement("title", null, 'upload'),
|
|
400
|
+
React__namespace["default"].createElement("path", { className: "file-dropdown-path", d: "M14 11v2.66A1.33 1.33 0 0112.67 15H3.33A1.33 1.33 0 012 13.62V11M11.33 6.29L8 3 4.67 6.29M8 3v8", transform: "translate(-1.25 -2.21)" })));
|
|
401
|
+
const FileDropdown = ({ className, value, options, onUploadSelected, id, placeholderIcon, placeholder, style, }) => {
|
|
402
|
+
const [isDropdownOpen, setIsDropdownOpen] = React.useState(false);
|
|
403
|
+
const showDropdown = () => setIsDropdownOpen(!isDropdownOpen);
|
|
404
|
+
const inputList = React.useRef(options.map((option) => {
|
|
405
|
+
return (option.type === 'upload' && (React__namespace["default"].createElement("input", { id: 'uploader-dropdown-input-' + id + '-' + option.value, key: 'uploader-dropdown-input-' + id + '-' + option.value, accept: option.fileAcceptedType, multiple: option.multiple, type: "file", style: { display: 'none' }, onChange: (e) => {
|
|
406
|
+
console.log('change');
|
|
407
|
+
onUploadSelected(e.target.files);
|
|
408
|
+
} })));
|
|
409
|
+
}));
|
|
410
|
+
const onUpload = (dropdownId) => {
|
|
411
|
+
var _a;
|
|
412
|
+
(_a = document.querySelector(dropdownId)) === null || _a === void 0 ? void 0 : _a.click();
|
|
413
|
+
};
|
|
414
|
+
const onDownload = (url) => {
|
|
415
|
+
url && window.open(url, '_blank');
|
|
416
|
+
};
|
|
417
|
+
return (React__namespace["default"].createElement(StyledDropdown, { className: className, "data-dropdown-open": !!isDropdownOpen, id: id, "data-has-icons": true, style: style, onBlur: () => setIsDropdownOpen(false), tabIndex: 0 },
|
|
418
|
+
React__namespace["default"].createElement(ShareIconPathStyle, null),
|
|
419
|
+
React__namespace["default"].createElement(StyledDropdownName, { onClick: showDropdown },
|
|
420
|
+
placeholderIcon || React__namespace["default"].createElement(DefaultFileIcon, null),
|
|
421
|
+
' ',
|
|
422
|
+
React__namespace["default"].createElement("span", null, value && value.value ? value.label : placeholder)),
|
|
423
|
+
isDropdownOpen && (React__namespace["default"].createElement(StyledDropdownList, { onClick: showDropdown, "data-has-icons": true }, options.map((option) => (React__namespace["default"].createElement(StyledDropdownOption, { key: `${id}-${option.value}`, "data-selected": (value && value.value === option.value) || undefined, onClick: () => option.type === 'upload'
|
|
424
|
+
? onUpload('#uploader-dropdown-input-' + id + '-' + option.value)
|
|
425
|
+
: onDownload(option.url) },
|
|
426
|
+
React__namespace["default"].createElement(StyledIcon, null, option.icon || option.type === 'download' ? (React__namespace["default"].createElement(DownloadIcon, null)) : (React__namespace["default"].createElement(UploadIcon, null))),
|
|
427
|
+
option.label))))),
|
|
428
|
+
React__namespace["default"].createElement(React__namespace["default"].Fragment, null, inputList.current)));
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
const StyledGrid = styled__default["default"].div `
|
|
432
|
+
--columns: var(--grid-template-columns, repeat(var(--columns-count), 1fr));
|
|
433
|
+
--columns-desktop: var(
|
|
434
|
+
--grid-template-columns-desktop,
|
|
435
|
+
repeat(var(--columns-count-desktop), 1fr)
|
|
436
|
+
);
|
|
437
|
+
display: grid;
|
|
438
|
+
grid-template-columns: var(--columns);
|
|
439
|
+
grid-gap: var(--grid-gap);
|
|
440
|
+
align-items: var(--align-items);
|
|
441
|
+
|
|
442
|
+
${utils.MediaQueries.tdUp} {
|
|
443
|
+
grid-template-columns: var(--columns-desktop);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
> * {
|
|
447
|
+
justify-self: var(--justify-children);
|
|
448
|
+
}
|
|
449
|
+
`;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* @deprecated Consider to use mantine
|
|
453
|
+
*/
|
|
454
|
+
const Grid = ({ className, columns, columnsDesktop, gridTemplateColumns, gridTemplateColumnsDesktop, gap, children, justifyChildren, style, alignItems, }) => {
|
|
455
|
+
return (React__namespace["default"].createElement(StyledGrid, { className: className, style: Object.assign({ '--columns-count': columns, '--columns-count-desktop': columnsDesktop, '--grid-template-columns': gridTemplateColumns, '--grid-template-columns-desktop': gridTemplateColumnsDesktop, '--justify-children': justifyChildren, '--grid-gap': gap, '--align-items': alignItems }, style) }, children));
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @deprecated Consider to use import { Radio } from '@mantine/core'
|
|
460
|
+
*/
|
|
461
|
+
const Radio = ({ size = 'small', label, name, checked, value, className, isDisabled = false, onChange, dataEventCategory, dataEventAction, dataEventLabel, }) => {
|
|
462
|
+
const isHasTracking = !!dataEventAction && !!dataEventCategory && !!dataEventLabel;
|
|
463
|
+
const trackingProps = isHasTracking
|
|
464
|
+
? {
|
|
465
|
+
'data-event-category': dataEventCategory,
|
|
466
|
+
'data-event-action': dataEventAction,
|
|
467
|
+
'data-event-label': dataEventLabel,
|
|
468
|
+
}
|
|
469
|
+
: {};
|
|
470
|
+
return (React__namespace["default"].createElement(index$2.Radio
|
|
471
|
+
// type,
|
|
472
|
+
, Object.assign({
|
|
473
|
+
// type,
|
|
474
|
+
size: size === 'small' ? 'md' : 'lg', label: label, name: name, checked: checked, value: value, className: className, disabled: isDisabled, onChange: (e) => onChange === null || onChange === void 0 ? void 0 : onChange(e.target.value) }, trackingProps)));
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
const StyledRateStars = styled__default["default"].div `
|
|
478
|
+
display: inline-flex;
|
|
479
|
+
|
|
480
|
+
gap: calc(var(--gap) * 1px);
|
|
481
|
+
> svg {
|
|
482
|
+
width: calc(var(--star-size) * 1px);
|
|
483
|
+
height: calc(var(--star-size) * 1px);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
&[data-selectable='true'] {
|
|
487
|
+
> svg {
|
|
488
|
+
cursor: pointer;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
`;
|
|
492
|
+
|
|
493
|
+
const StarHalfIcon = (props) => {
|
|
494
|
+
return (React__namespace["default"].createElement("svg", Object.assign({}, props, { viewBox: "0 0 24 24", fill: "none" }),
|
|
495
|
+
React__namespace["default"].createElement("path", { d: "m139.287 144.772 5.17 3.12c.38.23.85-.11.75-.54l-1.37-5.88 4.56-3.95c.33-.29.16-.84-.29-.88l-6.01-.51-2.35-5.54a.498.498 0 0 0-.92 0l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z", fill: "#E4E8EC" }),
|
|
496
|
+
React__namespace["default"].createElement("path", { d: "M139.289 144.771s.013-14.488 0-14.488a.49.49 0 0 0-.46.308l-2.35 5.54-6.01.51a.499.499 0 0 0-.28.88l4.56 3.95-1.37 5.88c-.1.43.37.77.75.54z", fill: "#FFC326" })));
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
const StarIcon = (_a) => {
|
|
500
|
+
var { isFull } = _a, props = tslib_es6.__rest(_a, ["isFull"]);
|
|
501
|
+
return (React__namespace["default"].createElement("svg", Object.assign({}, props, { viewBox: "0 0 32 32", fill: "none" }),
|
|
502
|
+
React__namespace["default"].createElement("path", { d: "m16 23.027 6.893 4.16c.507.306 1.134-.147 1-.72l-1.826-7.84 6.08-5.267a.67.67 0 0 0-.387-1.173l-8.013-.68-3.134-7.387a.664.664 0 0 0-1.226 0l-3.133 7.387-8.014.68a.668.668 0 0 0-.373 1.173l6.08 5.267-1.827 7.84c-.133.573.493 1.026 1 .72z", fill: isFull ? '#FFC326' : '#D2D6DC' })));
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* Show 5 (or more) stars and allow user vote (optional)
|
|
508
|
+
*
|
|
509
|
+
*/
|
|
510
|
+
const RateStars = ({ gap = 2, size = 24, star, totalStars = 5, onSelect, hideEmptyStars, style, className, }) => {
|
|
511
|
+
const numberOfFullStars = Math.floor(star);
|
|
512
|
+
const numberOfHalfStars = star - numberOfFullStars >= 0.5 ? 1 : 0;
|
|
513
|
+
const [tempStar, setTempStar] = React.useState(null);
|
|
514
|
+
const tempFullStars = tempStar || numberOfFullStars;
|
|
515
|
+
const tempHalfStars = tempStar ? 0 : numberOfHalfStars;
|
|
516
|
+
return (React__namespace["default"].createElement(StyledRateStars, { "data-selectable": !!onSelect, style: Object.assign({ '--gap': gap, '--star-size': size }, style), className: className }, Array.from({
|
|
517
|
+
length: hideEmptyStars
|
|
518
|
+
? numberOfFullStars + numberOfHalfStars
|
|
519
|
+
: totalStars,
|
|
520
|
+
}).map((_, index) => {
|
|
521
|
+
const onMouseOver = () => !!onSelect && setTempStar(index + 1);
|
|
522
|
+
const onMouseLeave = () => !!onSelect && setTempStar(null);
|
|
523
|
+
return index + 1 <= tempFullStars ? (React__namespace["default"].createElement(StarIcon, { key: index, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect(index + 1), onMouseOver: onMouseOver, onMouseLeave: onMouseLeave, isFull: true })) : index + 1 === tempFullStars + tempHalfStars ? (React__namespace["default"].createElement(StarHalfIcon, { key: index, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect(index + 1), onMouseOver: onMouseOver, onMouseLeave: onMouseLeave })) : (React__namespace["default"].createElement(StarIcon, { key: index, onClick: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect(index + 1), onMouseOver: onMouseOver, onMouseLeave: onMouseLeave }));
|
|
524
|
+
})));
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
const getTag = (tag, isLight) => {
|
|
528
|
+
switch (tag) {
|
|
529
|
+
case 'yellow': {
|
|
530
|
+
const color = isLight ? miscTheme.theme.colors.yellow50 : miscTheme.theme.colors.yellow600;
|
|
531
|
+
return `
|
|
532
|
+
background: ${color};
|
|
533
|
+
p {
|
|
534
|
+
color: var(
|
|
535
|
+
--text-props-color,
|
|
536
|
+
${miscTheme.theme.colors.gray800}
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
`;
|
|
540
|
+
}
|
|
541
|
+
case 'standard': {
|
|
542
|
+
return `
|
|
543
|
+
background: ${miscTheme.theme.colors.white};
|
|
544
|
+
border: 1px solid ${miscTheme.theme.colors.gray200};
|
|
545
|
+
|
|
546
|
+
p {
|
|
547
|
+
color: var(
|
|
548
|
+
--text-props-color,
|
|
549
|
+
${miscTheme.theme.colors.gray800}
|
|
550
|
+
);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
&:hover {
|
|
554
|
+
background: ${miscTheme.theme.colors.gray100};
|
|
555
|
+
}
|
|
556
|
+
`;
|
|
557
|
+
}
|
|
558
|
+
case 'red': {
|
|
559
|
+
const color = isLight ? miscTheme.theme.colors.red50 : miscTheme.theme.colors.red500;
|
|
560
|
+
return `
|
|
561
|
+
background: ${color};
|
|
562
|
+
`;
|
|
563
|
+
}
|
|
564
|
+
case 'green': {
|
|
565
|
+
const color = isLight ? miscTheme.theme.colors.green50 : miscTheme.theme.colors.green500;
|
|
566
|
+
return `
|
|
567
|
+
background: ${color};
|
|
568
|
+
`;
|
|
569
|
+
}
|
|
570
|
+
case 'blue': {
|
|
571
|
+
const color = isLight ? miscTheme.theme.colors.primary50 : miscTheme.theme.colors.primaryBase;
|
|
572
|
+
return `
|
|
573
|
+
background: ${color};
|
|
574
|
+
`;
|
|
575
|
+
}
|
|
576
|
+
case 'teal': {
|
|
577
|
+
const color = isLight ? miscTheme.theme.colors.teal100 : miscTheme.theme.colors.teal600;
|
|
578
|
+
return `
|
|
579
|
+
background: ${color};
|
|
580
|
+
`;
|
|
581
|
+
}
|
|
582
|
+
case 'pink': {
|
|
583
|
+
const color = isLight ? miscTheme.theme.colors.pink200 : miscTheme.theme.colors.pink800;
|
|
584
|
+
return `
|
|
585
|
+
background: ${color};
|
|
586
|
+
`;
|
|
587
|
+
}
|
|
588
|
+
case 'violet': {
|
|
589
|
+
const color = isLight ? miscTheme.theme.colors.violet100 : miscTheme.theme.colors.violet500;
|
|
590
|
+
return `
|
|
591
|
+
background: ${color};
|
|
592
|
+
`;
|
|
593
|
+
}
|
|
594
|
+
case 'grey': {
|
|
595
|
+
const color = isLight ? miscTheme.theme.colors.gray100 : miscTheme.theme.colors.gray600;
|
|
596
|
+
return `
|
|
597
|
+
background: ${color};
|
|
598
|
+
`;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
const StyledTag = styled__default["default"].div `
|
|
603
|
+
--padding-horizontal: 8px;
|
|
604
|
+
--pading-vertical: 2px;
|
|
605
|
+
display: flex;
|
|
606
|
+
align-items: center;
|
|
607
|
+
justify-content: center;
|
|
608
|
+
padding: var(--pading-vertical) var(--padding-horizontal);
|
|
609
|
+
border-radius: 24px;
|
|
610
|
+
|
|
611
|
+
${(props) => props.tagType === 'sponsored' &&
|
|
612
|
+
`
|
|
613
|
+
--offset-size: 4px;
|
|
614
|
+
display: flex;
|
|
615
|
+
align-items: center;
|
|
616
|
+
justify-content: center;
|
|
617
|
+
box-sizing: content-box;
|
|
618
|
+
position: relative;
|
|
619
|
+
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.08);
|
|
620
|
+
border-radius: 0 4px 18px 0;
|
|
621
|
+
height: 24px;
|
|
622
|
+
width: 90px;
|
|
623
|
+
border-left: var(--offset-size) solid ${miscTheme.theme.colors.accentLight};
|
|
624
|
+
padding: 0;
|
|
625
|
+
margin-left: calc(var(--offset-size) * -1);
|
|
626
|
+
|
|
627
|
+
p {
|
|
628
|
+
font-weight: ${miscTheme.theme.sizes.fwBold};
|
|
629
|
+
color: var(
|
|
630
|
+
--text-props-color,
|
|
631
|
+
${miscTheme.theme.colors.secondaryDark}
|
|
632
|
+
);
|
|
633
|
+
font-size: 11px;
|
|
634
|
+
margin-left: calc(var(--offset-size) * -1);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
&::after {
|
|
638
|
+
width: calc(var(--offset-size) * 2);
|
|
639
|
+
height: var(--offset-size);
|
|
640
|
+
background: ${miscTheme.theme.colors.accentMain};
|
|
641
|
+
position: absolute;
|
|
642
|
+
left: calc(var(--offset-size) * -1);
|
|
643
|
+
bottom: calc(var(--offset-size) * -1);
|
|
644
|
+
clip-path: polygon(0 1%, 100% 0%, 100% 100%);
|
|
645
|
+
content: '';
|
|
646
|
+
}
|
|
647
|
+
`}
|
|
648
|
+
|
|
649
|
+
${(props) => props.isInline &&
|
|
650
|
+
`
|
|
651
|
+
display: inline-block;
|
|
652
|
+
`}
|
|
653
|
+
|
|
654
|
+
${(props) => props.tagHasMorePadding &&
|
|
655
|
+
`
|
|
656
|
+
&[data-has-more-padding] {
|
|
657
|
+
padding: calc(var(--pading-vertical) + 5px) var(--padding-horizontal);
|
|
658
|
+
}
|
|
659
|
+
`}
|
|
660
|
+
|
|
661
|
+
p {
|
|
662
|
+
${(props) => props.tagIsLight
|
|
663
|
+
? `
|
|
664
|
+
color: var(--text-props-color, #000);
|
|
665
|
+
`
|
|
666
|
+
: `
|
|
667
|
+
color: var(--text-props-color, ${miscTheme.theme.colors.white});
|
|
668
|
+
`}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
${(props) => getTag(props.tagType, props.tagIsLight)}
|
|
672
|
+
|
|
673
|
+
${(props) => props.tagIsSquared &&
|
|
674
|
+
props.tagType !== 'sponsored' &&
|
|
675
|
+
`
|
|
676
|
+
border-radius: 4px;
|
|
677
|
+
`}
|
|
678
|
+
|
|
679
|
+
${(props) => props.tagIsALink &&
|
|
680
|
+
`
|
|
681
|
+
cursor: pointer;
|
|
682
|
+
`}
|
|
683
|
+
|
|
684
|
+
&[data-is-selected],
|
|
685
|
+
&:active {
|
|
686
|
+
background: ${miscTheme.theme.colors.primary50};
|
|
687
|
+
}
|
|
688
|
+
`;
|
|
689
|
+
|
|
690
|
+
const Tag = ({ type, children, style, isInline, isSquared = false, className, isLight, hasMorePadding, isLink, isSelected, textProps = {
|
|
691
|
+
size: 'sm',
|
|
692
|
+
}, }) => {
|
|
693
|
+
const textColor = textProps.color
|
|
694
|
+
? { '--text-props-color': textProps.color }
|
|
695
|
+
: {};
|
|
696
|
+
return (React__namespace["default"].createElement(StyledTag, { "data-is-squared": isSquared || undefined, "data-tag-type": type, "data-is-light": isLight || undefined, "data-has-more-padding": hasMorePadding || undefined, "data-is-inline": isInline || undefined, style: Object.assign(Object.assign({}, style), textColor), className: className, "data-is-selected": isSelected || undefined, "data-is-link": isLink || undefined, tagType: type, isInline: isInline, tagHasMorePadding: hasMorePadding, tagIsLight: isLight, tagIsSquared: isSquared, tagIsALink: isLink },
|
|
697
|
+
React__namespace["default"].createElement(index$3.Text, Object.assign({}, textProps), children)));
|
|
698
|
+
};
|
|
699
|
+
|
|
700
|
+
const heightIcon = '24px';
|
|
701
|
+
const StyledToggleIcon = miscDefaultClassWrapper.setDefaultClass(styled__default["default"].span `
|
|
702
|
+
position: relative;
|
|
703
|
+
display: block;
|
|
704
|
+
width: 40px;
|
|
705
|
+
height: ${heightIcon};
|
|
706
|
+
background: #c3cbd4;
|
|
707
|
+
border-radius: 100px;
|
|
708
|
+
cursor: pointer;
|
|
709
|
+
|
|
710
|
+
&:after {
|
|
711
|
+
position: absolute;
|
|
712
|
+
top: 2px;
|
|
713
|
+
left: 2px;
|
|
714
|
+
width: 20px;
|
|
715
|
+
height: 20px;
|
|
716
|
+
background: #fff;
|
|
717
|
+
border-radius: 90px;
|
|
718
|
+
content: '';
|
|
719
|
+
transition: 0.3s;
|
|
720
|
+
}
|
|
721
|
+
`, 'hhgcomp-toggle-icon');
|
|
722
|
+
const StyledToggleLabel = styled__default["default"].span `
|
|
723
|
+
padding-left: 15px;
|
|
724
|
+
`;
|
|
725
|
+
const StyledToggle = styled__default["default"].div `
|
|
726
|
+
height: ${heightIcon};
|
|
727
|
+
|
|
728
|
+
input[type='checkbox'] {
|
|
729
|
+
width: 0;
|
|
730
|
+
height: 0;
|
|
731
|
+
visibility: hidden;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
label {
|
|
735
|
+
cursor: pointer;
|
|
736
|
+
display: inline-flex;
|
|
737
|
+
color: ${miscTheme.theme.colors.gray600};
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
input:checked + label ${StyledToggleIcon.classSelector} {
|
|
741
|
+
background: ${miscTheme.theme.colors.primaryBase};
|
|
742
|
+
&:after {
|
|
743
|
+
left: calc(100% - 2px);
|
|
744
|
+
transform: translateX(-100%);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
`;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* @deprecated Consider to use {@link Switch} at {@link https://www.npmjs.com/package/@hhgtech/hhg-components/mantine}
|
|
751
|
+
*/
|
|
752
|
+
const Toggle = ({ className, id, onChange, checked, style, label }) => (React__namespace["default"].createElement(StyledToggle, { className: className, style: style },
|
|
753
|
+
React__namespace["default"].createElement("input", { type: "checkbox", id: id, onChange: onChange, checked: checked }),
|
|
754
|
+
React__namespace["default"].createElement("label", { htmlFor: id },
|
|
755
|
+
React__namespace["default"].createElement(StyledToggleIcon, null),
|
|
756
|
+
label && React__namespace["default"].createElement(StyledToggleLabel, null, label))));
|
|
757
|
+
|
|
758
|
+
// define shared context
|
|
759
|
+
const StepRendererContext = React.createContext({
|
|
760
|
+
currentStep: 0,
|
|
761
|
+
setCurrentStep: () => false,
|
|
762
|
+
setMaxStep: () => false,
|
|
763
|
+
nextStep: () => false,
|
|
764
|
+
prevStep: () => false,
|
|
765
|
+
});
|
|
766
|
+
const StepRenderer = ({ children, onStepChange }) => {
|
|
767
|
+
const [currentStep, setCurrentStep] = React.useState(0);
|
|
768
|
+
const [maxStep, setMaxStep] = React.useState(0);
|
|
769
|
+
const childrenCount = React__namespace["default"].Children.count(children);
|
|
770
|
+
React.useEffect(() => {
|
|
771
|
+
setMaxStep(childrenCount - 1);
|
|
772
|
+
}, [childrenCount]);
|
|
773
|
+
React.useEffect(() => {
|
|
774
|
+
onStepChange === null || onStepChange === void 0 ? void 0 : onStepChange(currentStep);
|
|
775
|
+
}, [currentStep]);
|
|
776
|
+
const nextStep = () => currentStep + 1 <= maxStep && setCurrentStep(currentStep + 1);
|
|
777
|
+
const prevStep = () => currentStep - 1 >= 0 && setCurrentStep(currentStep - 1);
|
|
778
|
+
return (React__namespace["default"].createElement(StepRendererContext.Provider, { value: {
|
|
779
|
+
currentStep,
|
|
780
|
+
setCurrentStep,
|
|
781
|
+
setMaxStep,
|
|
782
|
+
nextStep,
|
|
783
|
+
prevStep,
|
|
784
|
+
} }, flattenChildren__default["default"](children).map((element, idx) => {
|
|
785
|
+
const active = idx === currentStep;
|
|
786
|
+
return (React__namespace["default"].createElement(React.Fragment, { key: idx }, !React__namespace["default"].isValidElement(element)
|
|
787
|
+
? active
|
|
788
|
+
? element
|
|
789
|
+
: null
|
|
790
|
+
: element.props.alwaysRender || active
|
|
791
|
+
? React__namespace["default"].cloneElement(element, {
|
|
792
|
+
isActive: idx === currentStep,
|
|
793
|
+
stepIndex: idx,
|
|
794
|
+
})
|
|
795
|
+
: null));
|
|
796
|
+
})));
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
const StyledIconHeading = styled__default["default"].div `
|
|
800
|
+
display: flex;
|
|
801
|
+
align-items: center;
|
|
802
|
+
gap: 8px;
|
|
803
|
+
`;
|
|
804
|
+
const StyledTitle = styled__default["default"](index$4.Heading) `
|
|
805
|
+
font-weight: var(--fwBold);
|
|
806
|
+
`;
|
|
807
|
+
|
|
808
|
+
const IconHeading = ({ icon, title, className, style }) => {
|
|
809
|
+
return (React__namespace["default"].createElement(StyledIconHeading, { className: className, style: style },
|
|
810
|
+
icon,
|
|
811
|
+
React__namespace["default"].createElement(StyledTitle, { tag: "h6", color: "var(--secondaryDark)" }, title)));
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
const sanitizeHtml = (data) => {
|
|
815
|
+
if (!data)
|
|
816
|
+
return '';
|
|
817
|
+
const convertNewlinesToHtmlBreaks = data
|
|
818
|
+
.replace(/\n$/, '')
|
|
819
|
+
.replace(/\n/g, '<br />');
|
|
820
|
+
return convertNewlinesToHtmlBreaks;
|
|
821
|
+
};
|
|
822
|
+
const HtmlContent = ({ htmlContent, className }) => {
|
|
823
|
+
const htmlClean = sanitizeHtml(htmlContent);
|
|
824
|
+
return (React__namespace["default"].createElement("div", { className: className, dangerouslySetInnerHTML: { __html: htmlClean } }));
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
exports.FILE_UPLOAD_ACCEPTED_RATIOS = void 0;
|
|
828
|
+
(function (FILE_UPLOAD_ACCEPTED_RATIOS) {
|
|
829
|
+
FILE_UPLOAD_ACCEPTED_RATIOS["ONE_TO_ONE"] = "1:1";
|
|
830
|
+
FILE_UPLOAD_ACCEPTED_RATIOS["THREE_TO_ONE"] = "3:1";
|
|
831
|
+
})(exports.FILE_UPLOAD_ACCEPTED_RATIOS || (exports.FILE_UPLOAD_ACCEPTED_RATIOS = {}));
|
|
832
|
+
exports.FILE_UPLOAD_ACCEPTED_TYPES = void 0;
|
|
833
|
+
(function (FILE_UPLOAD_ACCEPTED_TYPES) {
|
|
834
|
+
FILE_UPLOAD_ACCEPTED_TYPES["PNG"] = ".png";
|
|
835
|
+
FILE_UPLOAD_ACCEPTED_TYPES["JPG"] = ".jpg";
|
|
836
|
+
FILE_UPLOAD_ACCEPTED_TYPES["JPEG"] = ".jpeg";
|
|
837
|
+
})(exports.FILE_UPLOAD_ACCEPTED_TYPES || (exports.FILE_UPLOAD_ACCEPTED_TYPES = {}));
|
|
838
|
+
|
|
839
|
+
const getBase64 = (file) => {
|
|
840
|
+
return new Promise((resolve, reject) => {
|
|
841
|
+
const reader = new FileReader();
|
|
842
|
+
reader.onload = () => resolve(reader.result);
|
|
843
|
+
reader.onerror = reject;
|
|
844
|
+
reader.readAsDataURL(file);
|
|
845
|
+
});
|
|
846
|
+
};
|
|
847
|
+
const handleMultipleImageFiles = (fileList) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
848
|
+
if (fileList.length === 0) {
|
|
849
|
+
return [];
|
|
850
|
+
}
|
|
851
|
+
const base64List = yield Promise.all(fileList.map((file) => getBase64(file)));
|
|
852
|
+
return base64List;
|
|
853
|
+
});
|
|
854
|
+
|
|
855
|
+
const StyledImageUploadWrapper = styled__default["default"].div `
|
|
856
|
+
display: flex;
|
|
857
|
+
flex-direction: column;
|
|
858
|
+
|
|
859
|
+
.image-upload-input-error {
|
|
860
|
+
margin-top: ${core.rem(12)};
|
|
861
|
+
display: flex;
|
|
862
|
+
flex-direction: column;
|
|
863
|
+
gap: ${core.rem(4)};
|
|
864
|
+
}
|
|
865
|
+
`;
|
|
866
|
+
const StyledImageUploadContent = styled__default["default"].div `
|
|
867
|
+
display: flex;
|
|
868
|
+
flex-direction: column;
|
|
869
|
+
gap: ${core.rem(4)};
|
|
870
|
+
margin-top: ${core.rem(4)};
|
|
871
|
+
|
|
872
|
+
span {
|
|
873
|
+
color: ${miscTheme.theme.colors.neutral500};
|
|
874
|
+
}
|
|
875
|
+
`;
|
|
876
|
+
const StyledImageUploadInputWrapper = styled__default["default"].div `
|
|
877
|
+
position: relative;
|
|
878
|
+
width: fit-content;
|
|
879
|
+
padding: ${core.rem(8)} ${core.rem(12)};
|
|
880
|
+
border-radius: ${core.rem(12)};
|
|
881
|
+
border: ${core.rem(1)} solid ${miscTheme.theme.colors.neutral200};
|
|
882
|
+
cursor: pointer;
|
|
883
|
+
display: flex;
|
|
884
|
+
align-items: center;
|
|
885
|
+
gap: ${core.rem(8)};
|
|
886
|
+
margin-top: ${core.rem(18)};
|
|
887
|
+
|
|
888
|
+
&.image-upload-dragover {
|
|
889
|
+
border-color: ${miscTheme.theme.colors.primaryBase};
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
&.image-upload-error {
|
|
893
|
+
border-color: ${miscTheme.theme.colors.error};
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
&.image-upload-disabled {
|
|
897
|
+
cursor: not-allowed;
|
|
898
|
+
background-color: ${miscTheme.theme.colors.gray100};
|
|
899
|
+
color: ${miscTheme.theme.colors.gray400};
|
|
900
|
+
border-color: ${miscTheme.theme.colors.gray200};
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
svg {
|
|
904
|
+
width: ${core.rem(18)};
|
|
905
|
+
height: ${core.rem(18)};
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
input {
|
|
909
|
+
position: absolute;
|
|
910
|
+
inset: 0;
|
|
911
|
+
width: 100%;
|
|
912
|
+
height: 100%;
|
|
913
|
+
opacity: 0;
|
|
914
|
+
cursor: pointer;
|
|
915
|
+
z-index: -1;
|
|
916
|
+
}
|
|
917
|
+
`;
|
|
918
|
+
const StyledImageUploadPreviewContainer = styled__default["default"].div `
|
|
919
|
+
position: relative;
|
|
920
|
+
width: ${core.rem(90)};
|
|
921
|
+
height: ${core.rem(90)};
|
|
922
|
+
border-radius: ${core.rem(12)};
|
|
923
|
+
overflow: hidden;
|
|
924
|
+
background-color: ${miscTheme.theme.colors.gray100};
|
|
925
|
+
display: flex;
|
|
926
|
+
align-items: center;
|
|
927
|
+
justify-content: center;
|
|
928
|
+
|
|
929
|
+
img {
|
|
930
|
+
width: 100%;
|
|
931
|
+
height: 100%;
|
|
932
|
+
object-fit: contain;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
svg {
|
|
936
|
+
width: ${core.rem(14)};
|
|
937
|
+
height: ${core.rem(14)};
|
|
938
|
+
color: ${miscTheme.theme.colors.white};
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.image-upload-remove-button {
|
|
942
|
+
cursor: pointer;
|
|
943
|
+
position: absolute;
|
|
944
|
+
top: ${core.rem(6)};
|
|
945
|
+
right: ${core.rem(6)};
|
|
946
|
+
background: ${miscTheme.theme.colors.black};
|
|
947
|
+
border-radius: ${core.rem(12)};
|
|
948
|
+
padding: ${core.rem(2)};
|
|
949
|
+
display: flex;
|
|
950
|
+
|
|
951
|
+
&:hover {
|
|
952
|
+
opacity: 0.8;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
`;
|
|
956
|
+
const StyledImageUploadPreviewContainerGroup = styled__default["default"].div `
|
|
957
|
+
display: flex;
|
|
958
|
+
gap: ${core.rem(8)};
|
|
959
|
+
margin-top: ${core.rem(18)};
|
|
960
|
+
`;
|
|
961
|
+
|
|
962
|
+
const ImageUpload = React.forwardRef(({ label, name, error, acceptedTypes = [
|
|
963
|
+
exports.FILE_UPLOAD_ACCEPTED_TYPES.PNG,
|
|
964
|
+
exports.FILE_UPLOAD_ACCEPTED_TYPES.JPG,
|
|
965
|
+
exports.FILE_UPLOAD_ACCEPTED_TYPES.JPEG,
|
|
966
|
+
], maxSize = 1, acceptedRatios, multiple = false, disabled = false, id, className, onChange, value, showValidationRules = false, description, useBase64 = false, placeholder, }, ref) => {
|
|
967
|
+
const { t } = index$5.useTranslations();
|
|
968
|
+
const [isDragOver, setIsDragOver] = React.useState(false);
|
|
969
|
+
const [validationErrors, setValidationErrors] = React.useState([]);
|
|
970
|
+
const fileInputRef = React.useRef(null);
|
|
971
|
+
const hasError = Boolean(error) || validationErrors.length > 0;
|
|
972
|
+
const normalizedValue = React.useMemo(() => {
|
|
973
|
+
if (!value)
|
|
974
|
+
return [];
|
|
975
|
+
return Array.isArray(value) ? value : [value];
|
|
976
|
+
}, [value]);
|
|
977
|
+
const validateFile = React.useCallback((file) => {
|
|
978
|
+
var _a;
|
|
979
|
+
const errors = [];
|
|
980
|
+
const fileExtension = '.' + ((_a = file.name.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
981
|
+
if (!acceptedTypes.includes(fileExtension)) {
|
|
982
|
+
errors.push(`Unsupported file format. Please upload a ${acceptedTypes.join(', ')} file.`);
|
|
983
|
+
}
|
|
984
|
+
const fileSizeMB = file.size / (1024 * 1024);
|
|
985
|
+
if (fileSizeMB > maxSize) {
|
|
986
|
+
errors.push(`File too large. Please upload an image smaller than ${maxSize}MB.`);
|
|
987
|
+
}
|
|
988
|
+
return {
|
|
989
|
+
file,
|
|
990
|
+
isValid: errors.length === 0,
|
|
991
|
+
errors,
|
|
992
|
+
};
|
|
993
|
+
}, [acceptedTypes, maxSize]);
|
|
994
|
+
const validateImageRatio = React.useCallback((file) => {
|
|
995
|
+
return new Promise((resolve) => {
|
|
996
|
+
if (!acceptedRatios ||
|
|
997
|
+
!acceptedRatios.length ||
|
|
998
|
+
!file.type.startsWith('image/')) {
|
|
999
|
+
resolve([]);
|
|
1000
|
+
return;
|
|
1001
|
+
}
|
|
1002
|
+
const img = new Image();
|
|
1003
|
+
img.onload = () => {
|
|
1004
|
+
const ratio = img.width / img.height;
|
|
1005
|
+
const ratioString = `${ratio.toFixed(1)}:1`;
|
|
1006
|
+
const isValidRatio = acceptedRatios.some((acceptedRatio) => {
|
|
1007
|
+
const [w, h] = acceptedRatio.split(':');
|
|
1008
|
+
const expectedRatio = parseInt(w) / parseInt(h);
|
|
1009
|
+
return Math.abs(ratio - expectedRatio) < 0.1;
|
|
1010
|
+
});
|
|
1011
|
+
resolve(isValidRatio
|
|
1012
|
+
? []
|
|
1013
|
+
: [`Image ratio ${ratioString} is not accepted.`]);
|
|
1014
|
+
};
|
|
1015
|
+
img.onerror = () => resolve(['Invalid image file']);
|
|
1016
|
+
img.src = URL.createObjectURL(file);
|
|
1017
|
+
});
|
|
1018
|
+
}, [acceptedRatios]);
|
|
1019
|
+
const previewList = React.useMemo(() => {
|
|
1020
|
+
return normalizedValue
|
|
1021
|
+
.map((val) => {
|
|
1022
|
+
if (typeof val === 'string')
|
|
1023
|
+
return val;
|
|
1024
|
+
if (val instanceof File)
|
|
1025
|
+
return URL.createObjectURL(val);
|
|
1026
|
+
return '';
|
|
1027
|
+
})
|
|
1028
|
+
.filter(Boolean);
|
|
1029
|
+
}, [normalizedValue]);
|
|
1030
|
+
const processFiles = React.useCallback((files) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
1031
|
+
const fileArray = Array.from(files);
|
|
1032
|
+
const allErrors = [];
|
|
1033
|
+
const validFiles = [];
|
|
1034
|
+
for (const file of fileArray) {
|
|
1035
|
+
const validation = validateFile(file);
|
|
1036
|
+
const ratioErrors = yield validateImageRatio(file);
|
|
1037
|
+
const allFileErrors = [...validation.errors, ...ratioErrors];
|
|
1038
|
+
if (allFileErrors.length === 0) {
|
|
1039
|
+
validFiles.push(file);
|
|
1040
|
+
}
|
|
1041
|
+
else {
|
|
1042
|
+
allErrors.push(...allFileErrors);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
setValidationErrors(allErrors);
|
|
1046
|
+
if (validFiles.length === 0)
|
|
1047
|
+
return;
|
|
1048
|
+
const resultList = useBase64
|
|
1049
|
+
? yield handleMultipleImageFiles(validFiles)
|
|
1050
|
+
: validFiles;
|
|
1051
|
+
onChange({
|
|
1052
|
+
target: {
|
|
1053
|
+
name,
|
|
1054
|
+
value: multiple
|
|
1055
|
+
? [...normalizedValue, ...resultList]
|
|
1056
|
+
: resultList.slice(0, 1),
|
|
1057
|
+
},
|
|
1058
|
+
});
|
|
1059
|
+
}), [
|
|
1060
|
+
validateFile,
|
|
1061
|
+
validateImageRatio,
|
|
1062
|
+
multiple,
|
|
1063
|
+
onChange,
|
|
1064
|
+
name,
|
|
1065
|
+
normalizedValue,
|
|
1066
|
+
]);
|
|
1067
|
+
const handleFileInputChange = (e) => {
|
|
1068
|
+
const files = e.target.files;
|
|
1069
|
+
if (files && files.length > 0) {
|
|
1070
|
+
processFiles(files);
|
|
1071
|
+
}
|
|
1072
|
+
};
|
|
1073
|
+
const removeFile = (index) => {
|
|
1074
|
+
const newFiles = normalizedValue.filter((_, i) => i !== index);
|
|
1075
|
+
setValidationErrors([]);
|
|
1076
|
+
onChange({
|
|
1077
|
+
target: {
|
|
1078
|
+
name,
|
|
1079
|
+
value: multiple ? newFiles : '', // empty string if not multiple
|
|
1080
|
+
},
|
|
1081
|
+
});
|
|
1082
|
+
};
|
|
1083
|
+
const combinedRef = React.useCallback((e) => {
|
|
1084
|
+
fileInputRef.current = e;
|
|
1085
|
+
if (typeof ref === 'function') {
|
|
1086
|
+
ref(e);
|
|
1087
|
+
}
|
|
1088
|
+
else if (ref) {
|
|
1089
|
+
ref.current = e;
|
|
1090
|
+
}
|
|
1091
|
+
}, [ref]);
|
|
1092
|
+
const handleClick = React.useCallback(() => {
|
|
1093
|
+
if (!disabled && fileInputRef.current) {
|
|
1094
|
+
fileInputRef.current.click();
|
|
1095
|
+
}
|
|
1096
|
+
}, [disabled]);
|
|
1097
|
+
const handleDragEnter = React.useCallback((e) => {
|
|
1098
|
+
e.preventDefault();
|
|
1099
|
+
e.stopPropagation();
|
|
1100
|
+
setIsDragOver(true);
|
|
1101
|
+
}, []);
|
|
1102
|
+
const handleDragLeave = React.useCallback((e) => {
|
|
1103
|
+
e.preventDefault();
|
|
1104
|
+
e.stopPropagation();
|
|
1105
|
+
setIsDragOver(false);
|
|
1106
|
+
}, []);
|
|
1107
|
+
const handleDragOver = React.useCallback((e) => {
|
|
1108
|
+
e.preventDefault();
|
|
1109
|
+
e.stopPropagation();
|
|
1110
|
+
}, []);
|
|
1111
|
+
const handleDrop = React.useCallback((e) => {
|
|
1112
|
+
e.preventDefault();
|
|
1113
|
+
e.stopPropagation();
|
|
1114
|
+
setIsDragOver(false);
|
|
1115
|
+
const files = e.dataTransfer.files;
|
|
1116
|
+
if (files.length > 0) {
|
|
1117
|
+
processFiles(files);
|
|
1118
|
+
}
|
|
1119
|
+
}, [processFiles]);
|
|
1120
|
+
return (React__namespace["default"].createElement(StyledImageUploadWrapper, { className: className },
|
|
1121
|
+
React__namespace["default"].createElement("label", { htmlFor: id || name },
|
|
1122
|
+
typeof label === 'string' ? (React__namespace["default"].createElement(index.Text, { size: "title2" }, label)) : (label),
|
|
1123
|
+
description && (React__namespace["default"].createElement(index.Text, { size: "p3", mt: core.rem(4), color: miscTheme.theme.colors.gray700 }, description))),
|
|
1124
|
+
showValidationRules && (React__namespace["default"].createElement(StyledImageUploadContent, null,
|
|
1125
|
+
React__namespace["default"].createElement(index.Text, { size: "p3" },
|
|
1126
|
+
"Formats: ",
|
|
1127
|
+
acceptedTypes.join('/')),
|
|
1128
|
+
acceptedRatios && (React__namespace["default"].createElement(index.Text, { size: "p3" },
|
|
1129
|
+
"Max size: ",
|
|
1130
|
+
maxSize,
|
|
1131
|
+
"MB - Accepted ratios:",
|
|
1132
|
+
' ',
|
|
1133
|
+
acceptedRatios.join('/'))))),
|
|
1134
|
+
(multiple || normalizedValue.length === 0) && (React__namespace["default"].createElement(StyledImageUploadInputWrapper, { className: core.clsx(isDragOver && 'image-upload-dragover', hasError && 'image-upload-error', disabled && 'image-upload-disabled'), onDragEnter: handleDragEnter, onDragLeave: handleDragLeave, onDragOver: handleDragOver, onDrop: handleDrop, onClick: handleClick },
|
|
1135
|
+
React__namespace["default"].createElement("input", { ref: combinedRef, type: "file", id: id || name, name: name, accept: acceptedTypes.join(','), multiple: multiple, onChange: handleFileInputChange, disabled: disabled }),
|
|
1136
|
+
React__namespace["default"].createElement(Upload, null),
|
|
1137
|
+
React__namespace["default"].createElement(index.Text, { size: "p3", fw: 500 }, placeholder || t('common.btn.uploadPhoto')))),
|
|
1138
|
+
normalizedValue.length > 0 && (React__namespace["default"].createElement(StyledImageUploadPreviewContainerGroup, null, previewList.map((img, index) => (React__namespace["default"].createElement(StyledImageUploadPreviewContainer, { key: index },
|
|
1139
|
+
React__namespace["default"].createElement("img", { src: img, alt: `Uploaded file ${index + 1}`, className: "image-upload-preview-image" }),
|
|
1140
|
+
React__namespace["default"].createElement("button", { onClick: (e) => {
|
|
1141
|
+
e.stopPropagation();
|
|
1142
|
+
removeFile(index);
|
|
1143
|
+
}, className: "image-upload-remove-button" },
|
|
1144
|
+
React__namespace["default"].createElement(Close.Close, null))))))),
|
|
1145
|
+
hasError && (React__namespace["default"].createElement("div", { className: "image-upload-input-error" }, [...validationErrors, error].map((err) => (React__namespace["default"].createElement(index.Text, { key: err, className: "error-text", size: "c1", color: miscTheme.theme.colors.red600 }, err)))))));
|
|
1146
|
+
});
|
|
1147
|
+
|
|
1148
|
+
const StyledCarousel = styled__default["default"](carousel.Carousel) `
|
|
1149
|
+
& .mantine-Carousel-control {
|
|
1150
|
+
width: auto;
|
|
1151
|
+
}
|
|
1152
|
+
`;
|
|
1153
|
+
|
|
1154
|
+
const DragFreeCarousel = (_a) => {
|
|
1155
|
+
var { children, gapItem = 8, slideSize = 'auto', withControls = false, withIndicators = false, dragFree = true, align = 'start' } = _a, otherProps = tslib_es6.__rest(_a, ["children", "gapItem", "slideSize", "withControls", "withIndicators", "dragFree", "align"]);
|
|
1156
|
+
return (React__namespace["default"].createElement(StyledCarousel, Object.assign({ slideSize: slideSize, slideGap: gapItem, withControls: withControls, withIndicators: withIndicators, dragFree: dragFree, align: align, containScroll: "trimSnaps" }, otherProps), React__namespace["default"].Children.map(children, (child, index) => (React__namespace["default"].createElement(carousel.Carousel.Slide, { key: index }, child)))));
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
exports.Alert = Alert;
|
|
1160
|
+
exports.Badge = Badge;
|
|
1161
|
+
exports.BorderHeading = BorderHeading;
|
|
1162
|
+
exports.CardCollapse = CardCollapse;
|
|
1163
|
+
exports.DragFreeCarousel = DragFreeCarousel;
|
|
1164
|
+
exports.FileDropdown = FileDropdown;
|
|
1165
|
+
exports.Grid = Grid;
|
|
1166
|
+
exports.HtmlContent = HtmlContent;
|
|
1167
|
+
exports.IconHeading = IconHeading;
|
|
1168
|
+
exports.ImageUpload = ImageUpload;
|
|
1169
|
+
exports.Radio = Radio;
|
|
1170
|
+
exports.RateStars = RateStars;
|
|
1171
|
+
exports.StepRenderer = StepRenderer;
|
|
1172
|
+
exports.StepRendererContext = StepRendererContext;
|
|
1173
|
+
exports.Tag = Tag;
|
|
1174
|
+
exports.Toggle = Toggle;
|
|
1175
|
+
exports.Upload = Upload;
|