@hhgtech/hhg-components 1.29.44 → 1.29.46
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/{WhatsApp-e8724620.js → WhatsApp-4bf1be49.js} +1 -1
- package/build/adapters.js +15 -15
- package/build/babyGrowth.js +80 -80
- package/build/cache.js +3 -3
- package/build/care.js +17 -17
- package/build/components/atoms/icons/ConceptionDate.d.ts +4 -0
- package/build/components/atoms/icons/IVF.d.ts +4 -0
- package/build/components/molecules/embeddedHeathToolCards/babyVaccine/index.d.ts +8 -0
- package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
- package/build/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +3 -17
- package/build/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- package/build/components/molecules/healthTools/form/babyVaccineForm/context.d.ts +10 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/defaultLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/index.d.ts +18 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/inlineLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/babyVaccineForm/mbLayout.d.ts +3 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/context.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/defaultLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/index.d.ts +6 -0
- package/build/components/molecules/healthTools/form/dueDateForm/conceptionForm/inlineLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/context.d.ts +20 -0
- package/build/components/molecules/healthTools/form/dueDateForm/formSwitcher.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/index.d.ts +22 -0
- package/build/components/molecules/healthTools/form/dueDateForm/index.styled.d.ts +33 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/context.d.ts +11 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/defaultLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/index.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/ivfForm/inlineLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/context.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/defaultLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/index.d.ts +7 -0
- package/build/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/inlineLayout.d.ts +2 -0
- package/build/components/molecules/healthTools/form/dueDateForm/utils.d.ts +12 -0
- package/build/components/molecules/healthTools/form/ovulationForm/context.d.ts +7 -1
- package/build/components/molecules/healthTools/form/ovulationForm/index.d.ts +2 -1
- package/build/components/molecules/healthTools/formWrapper/chipGroup/index.d.ts +13 -0
- package/build/{esm/components/molecules/healthTools/form/ovulationForm/calculatorType → components/molecules/healthTools/formWrapper/chipGroup}/index.styles.d.ts +1 -0
- package/build/components/molecules/healthTools/formWrapper/index.d.ts +5 -1
- package/build/components/molecules/index.d.ts +3 -0
- package/build/components.js +61 -60
- package/build/{constants-07a9e6cb.js → constants-113796d0.js} +2 -2
- package/build/{constants-9478163a.js → constants-317df919.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-e503fa42.js → core-57328e8c.js} +2 -2
- package/build/{dataTransform-2f6ca87c.js → dataTransform-66d88eaa.js} +1 -1
- package/build/ecom.js +26 -7
- package/build/esm/{WhatsApp-9dbce6f2.js → WhatsApp-9c19ab07.js} +1 -1
- package/build/esm/adapters.js +15 -15
- package/build/esm/babyGrowth.js +81 -81
- package/build/esm/cache.js +3 -3
- package/build/esm/care.js +17 -17
- package/build/esm/components/atoms/icons/ConceptionDate.d.ts +4 -0
- package/build/esm/components/atoms/icons/IVF.d.ts +4 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/babyVaccine/index.d.ts +8 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +5 -2
- package/build/esm/components/molecules/embeddedHeathToolCards/ovulation/ovulation.d.ts +3 -17
- package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/context.d.ts +10 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/defaultLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/index.d.ts +18 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/inlineLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/babyVaccineForm/mbLayout.d.ts +3 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/context.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/defaultLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/index.d.ts +6 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/conceptionForm/inlineLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/context.d.ts +20 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/formSwitcher.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/index.d.ts +22 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/index.styled.d.ts +33 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/context.d.ts +11 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/defaultLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/index.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/ivfForm/inlineLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/context.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/defaultLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/index.d.ts +7 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/lastPeriodForm/inlineLayout.d.ts +2 -0
- package/build/esm/components/molecules/healthTools/form/dueDateForm/utils.d.ts +12 -0
- package/build/esm/components/molecules/healthTools/form/ovulationForm/context.d.ts +7 -1
- package/build/esm/components/molecules/healthTools/form/ovulationForm/index.d.ts +2 -1
- package/build/esm/components/molecules/healthTools/formWrapper/chipGroup/index.d.ts +13 -0
- package/build/{components/molecules/healthTools/form/ovulationForm/calculatorType → esm/components/molecules/healthTools/formWrapper/chipGroup}/index.styles.d.ts +1 -0
- package/build/esm/components/molecules/healthTools/formWrapper/index.d.ts +5 -1
- package/build/esm/components/molecules/index.d.ts +3 -0
- package/build/esm/components.js +58 -60
- package/build/esm/{constants-e3536cb0.js → constants-b05bc757.js} +2 -2
- package/build/esm/{constants-c042f99f.js → constants-c50b825b.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-55c889b2.js → core-49ccf099.js} +2 -2
- package/build/esm/{dataTransform-2a3b1414.js → dataTransform-1ce154e5.js} +1 -1
- package/build/esm/ecom.js +26 -7
- package/build/esm/footer.js +18 -18
- package/build/esm/gAssets.js +4 -4
- package/build/esm/{getDynamicHealthTool-75eac0f0.js → getDynamicHealthTool-0465f7c4.js} +4 -4
- package/build/esm/{getSocialList-cffac849.js → getSocialList-332f3b07.js} +4 -4
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -0
- package/build/esm/i18n-values/hi-IN.js +1 -0
- package/build/esm/i18n-values/id-ID.js +2 -1
- package/build/esm/i18n-values/km-KH.js +2 -1
- package/build/esm/i18n-values/ms-MY.js +2 -1
- package/build/esm/i18n-values/my-MM.js +2 -1
- package/build/esm/i18n-values/th-TH.js +2 -1
- package/build/esm/i18n-values/tl-PH.js +2 -1
- package/build/esm/i18n-values/vi-VN.js +2 -1
- package/build/esm/i18n-values/vi-VN_MB.js +1 -0
- package/build/esm/i18n-values/zh-TW.js +2 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-724596e6.js → index-05f62597.js} +12 -12
- package/build/esm/{index-7aff3435.js → index-0b997c18.js} +2 -2
- package/build/esm/{index-f0ac2d9c.js → index-0d6c85cf.js} +10 -10
- package/build/esm/{index-7ef38b29.js → index-0ea9b42c.js} +32 -32
- package/build/esm/{index-329afe30.js → index-251e9c68.js} +5 -5
- package/build/esm/{index-c0c2dfbe.js → index-34682a6e.js} +2 -2
- package/build/esm/{index-6c8cda18.js → index-353fd37d.js} +6 -6
- package/build/esm/{index-aebda8f4.js → index-45eb8295.js} +3 -3
- package/build/esm/{index-8a31b708.js → index-4d3ff457.js} +4 -4
- package/build/esm/{index-56195940.js → index-576eefff.js} +1 -1
- package/build/esm/{index-da45fa92.js → index-57a7a3e6.js} +11 -11
- package/build/esm/{index-d73390b2.js → index-604a2f74.js} +2 -2
- package/build/esm/{index-c826cac0.js → index-638bd74d.js} +2 -2
- package/build/esm/{index-af5ce53c.js → index-663ce8ad.js} +228 -191
- package/build/esm/{index-4a001eda.js → index-746c355d.js} +2 -2
- package/build/esm/{index-52e1cb2b.js → index-7872ac55.js} +10 -10
- package/build/esm/{index-48fd5f17.js → index-988f9bc7.js} +2 -2
- package/build/esm/{index-f55cc5a7.js → index-b0e0fbe0.js} +2 -2
- package/build/esm/{index-23fa4098.js → index-baff4b23.js} +4 -4
- package/build/esm/{index-f80d4ff8.js → index-cddd0673.js} +515 -849
- package/build/esm/{index-343490b3.js → index-e8cc5934.js} +9 -9
- package/build/esm/{index-db0a1f04.js → index-f53544db.js} +2 -2
- package/build/esm/{index-c8a34381.js → index-f8020b17.js} +4 -4
- package/build/esm/{index-a2cdc317.js → index-ff8c9d5e.js} +2 -2
- package/build/esm/index.js +65 -67
- package/build/esm/{index.styled-e18670ac.js → index.styled-81557262.js} +2 -2
- package/build/esm/{index.styles-59f43d64.js → index.styles-bdadf1c8.js} +6 -6
- package/build/esm/lead/components/close.d.ts +1 -1
- package/build/esm/lead.js +28 -28
- package/build/esm/mantine.js +51 -26
- package/build/esm/misc.js +19 -19
- package/build/esm/navigation.js +35 -35
- package/build/esm/onboardingV2.js +31 -31
- package/build/esm/pwg.js +19 -19
- package/build/esm/{routing-e49e8c2d.js → routing-b4329fc1.js} +2 -2
- package/build/esm/subot.js +22 -22
- package/build/esm/together.js +34 -34
- package/build/esm/{types-5c146654.js → types-511b9222.js} +13 -13
- package/build/esm/{types-4f36505b.js → types-c75135fe.js} +30 -30
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-0a83368e.js → useCategory-68e4bda3.js} +5 -5
- package/build/esm/{useHealthToolCache-59feafe2.js → useHealthToolCache-c3daa804.js} +2 -2
- package/build/esm/{useMantineLocale-6a509174.js → useMantineLocale-0143b7da.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-3d150f39.js → usePlacesAutocomplete-db17e379.js} +1 -1
- package/build/esm/{useTranslations-3ea1638d.js → useTranslations-1ed73aa5.js} +1 -1
- package/build/esm/{utils-25cc1cc1.js → utils-4ac92073.js} +1 -1
- package/build/esm/{utils-8a09aa51.js → utils-9ad73105.js} +4 -4
- package/build/esm/{utils-101d2ed1.js → utils-b83d7305.js} +6 -6
- package/build/esm/vaccination.js +26 -26
- package/build/footer.js +18 -18
- package/build/gAssets.js +4 -4
- package/build/{getDynamicHealthTool-d88a5e5c.js → getDynamicHealthTool-b52ab59e.js} +4 -4
- package/build/{getSocialList-473ff63e.js → getSocialList-1196e062.js} +4 -4
- package/build/hooks.js +17 -17
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -0
- package/build/i18n-values/hi-IN.js +1 -0
- package/build/i18n-values/id-ID.js +2 -1
- package/build/i18n-values/km-KH.js +2 -1
- package/build/i18n-values/ms-MY.js +2 -1
- package/build/i18n-values/my-MM.js +2 -1
- package/build/i18n-values/th-TH.js +2 -1
- package/build/i18n-values/tl-PH.js +2 -1
- package/build/i18n-values/vi-VN.js +2 -1
- package/build/i18n-values/vi-VN_MB.js +1 -0
- package/build/i18n-values/zh-TW.js +2 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-997a78d5.js → index-0ef5fb7b.js} +5 -5
- package/build/{index-c10c6d1e.js → index-28e41405.js} +2 -2
- package/build/{index-124b40db.js → index-3164239a.js} +2 -2
- package/build/{index-df3a7b3f.js → index-377ec4b5.js} +9 -9
- package/build/{index-fe3c222e.js → index-3ea447ec.js} +2 -2
- package/build/{index-cba1387f.js → index-59a03ee5.js} +2 -2
- package/build/{index-7f262dce.js → index-5abdda03.js} +4 -4
- package/build/{index-c2ac4561.js → index-5dd6ca2b.js} +2 -2
- package/build/{index-ed90d9b2.js → index-5f79500b.js} +2 -2
- package/build/{index-c66838fb.js → index-65a70d84.js} +2 -2
- package/build/{index-cbb000d2.js → index-7344f1c2.js} +2 -2
- package/build/{index-f7e4c060.js → index-7fdcece5.js} +10 -10
- package/build/{index-4a3a9242.js → index-839fc4d7.js} +3 -3
- package/build/{index-700708e8.js → index-862b85ee.js} +214 -183
- package/build/{index-f84d349e.js → index-8fde4d03.js} +12 -12
- package/build/{index-a6b3d160.js → index-a1c28eba.js} +1 -1
- package/build/{index-9c2050b5.js → index-a8450c08.js} +11 -11
- package/build/{index-5cf94c14.js → index-b6163fc1.js} +545 -876
- package/build/{index-1b816464.js → index-c698c565.js} +9 -9
- package/build/{index-acee5b80.js → index-c715aa7e.js} +4 -4
- package/build/{index-3950786c.js → index-cef9f4c3.js} +6 -6
- package/build/{index-0ac8dfc2.js → index-d737b1fb.js} +2 -2
- package/build/{index-915a13a1.js → index-d8d1a000.js} +4 -4
- package/build/{index-738cd2f1.js → index-dfbd3e9f.js} +32 -32
- package/build/index.js +68 -67
- package/build/{index.styled-944d0268.js → index.styled-3d074d06.js} +2 -2
- package/build/{index.styles-e8260d43.js → index.styles-dccb467a.js} +6 -6
- package/build/lead/components/close.d.ts +1 -1
- package/build/lead.js +28 -28
- package/build/mantine.js +46 -21
- package/build/misc.js +19 -19
- package/build/navigation.js +35 -35
- package/build/onboardingV2.js +30 -30
- package/build/pwg.js +19 -19
- package/build/{routing-d5905665.js → routing-89950c42.js} +2 -2
- package/build/subot.js +22 -22
- package/build/together.js +34 -34
- package/build/{types-77cc40b2.js → types-31c2a9ae.js} +13 -13
- package/build/{types-89c5c272.js → types-3950841d.js} +30 -30
- package/build/types.js +1 -1
- package/build/{useCategory-ccae31bb.js → useCategory-5daa9df5.js} +5 -5
- package/build/{useHealthToolCache-2046236a.js → useHealthToolCache-b077e564.js} +2 -2
- package/build/{useMantineLocale-531aaed6.js → useMantineLocale-36d8cc0e.js} +3 -3
- package/build/{usePlacesAutocomplete-f403c86c.js → usePlacesAutocomplete-bf982b9b.js} +1 -1
- package/build/{useTranslations-3a6844ce.js → useTranslations-88508475.js} +1 -1
- package/build/{utils-d237afdc.js → utils-5fb09c5a.js} +1 -1
- package/build/{utils-6fd64172.js → utils-a06b2158.js} +4 -4
- package/build/{utils-48e7d57a.js → utils-c0969c6d.js} +5 -7
- package/build/vaccination.js +26 -26
- package/package.json +1 -1
- package/build/components/molecules/healthTools/form/ovulationForm/calculatorType/index.d.ts +0 -6
- package/build/esm/components/molecules/healthTools/form/ovulationForm/calculatorType/index.d.ts +0 -6
- package/build/esm/index-57b0dda2.js +0 -32
- package/build/esm/types-58c673f9.js +0 -21
- package/build/index-d74282a1.js +0 -38
- package/build/types-db558dfc.js +0 -24
- /package/build/{BMI_BOYS.percentile.monthly-0210e05b.js → BMI_BOYS.percentile.monthly-ffb08f65.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-baa68483.js → BMI_BOYS.percentile.weekly-ec67979e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-d3ac5e26.js → BMI_BOYS.percentile.yearly-9d273e2f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-af3644b0.js → BMI_BOYS.zscore.monthly-bb7aadce.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-29c97f80.js → BMI_BOYS.zscore.weekly-1b7b882b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-7ecdf6d3.js → BMI_BOYS.zscore.yearly-52d70f25.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-b8d6bb6e.js → BMI_GIRLS.percentile.monthly-9a2eeb52.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-126944ab.js → BMI_GIRLS.percentile.weekly-3860e560.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-0a25b119.js → BMI_GIRLS.percentile.yearly-6bf2ed05.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-4ba1bed0.js → BMI_GIRLS.zscore.monthly-1ee53921.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-d8185726.js → BMI_GIRLS.zscore.weekly-c474d29d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-50d70903.js → BMI_GIRLS.zscore.yearly-d380a8c5.js} +0 -0
- /package/build/{ChevronDown-978d063e.js → ChevronDown-88afe3da.js} +0 -0
- /package/build/{Close-678049d9.js → Close-53d986dd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-d2c0cf1c.js → HEAD CIRCUM_BOYS.percentile.monthly-7eb0b785.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-4969666f.js → HEAD CIRCUM_BOYS.percentile.weekly-11b96f8f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-067ab2dc.js → HEAD CIRCUM_BOYS.percentile.yearly-1b1f8d08.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-519faaa0.js → HEAD CIRCUM_BOYS.zscore.monthly-59e3b087.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-055e35c2.js → HEAD CIRCUM_BOYS.zscore.weekly-ccbb5e5e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-02f3d990.js → HEAD CIRCUM_BOYS.zscore.yearly-365a9c7f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-0c27151b.js → HEAD CIRCUM_GIRLS.percentile.monthly-7fc335ff.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-a70dae36.js → HEAD CIRCUM_GIRLS.percentile.weekly-060ac259.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-adc1ad62.js → HEAD CIRCUM_GIRLS.percentile.yearly-d9c8e997.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d7b091dd.js → HEAD CIRCUM_GIRLS.zscore.monthly-d4b13867.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-4df271df.js → HEAD CIRCUM_GIRLS.zscore.weekly-14112cc3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-84dd2dcd.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e768d23.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-1b5c8bfa.js → HEIGHT_BOYS.percentile.monthly-9a4d2772.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-296f084a.js → HEIGHT_BOYS.percentile.weekly-79f83747.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-37f08533.js → HEIGHT_BOYS.percentile.yearly-8ff7e47f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-6854a9ab.js → HEIGHT_BOYS.zscore.monthly-079ccbfb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-068c84f6.js → HEIGHT_BOYS.zscore.weekly-952a0515.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-caf5d65a.js → HEIGHT_BOYS.zscore.yearly-a2ba64ad.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-dd4dc1ec.js → HEIGHT_GIRLS.percentile.monthly-a578480c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-6d71cf1d.js → HEIGHT_GIRLS.percentile.weekly-356af15f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-8ada2b39.js → HEIGHT_GIRLS.percentile.yearly-4c3682a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-667bf3ec.js → HEIGHT_GIRLS.zscore.monthly-c8759031.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-8ee41983.js → HEIGHT_GIRLS.zscore.weekly-4ef46a0b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-748cf945.js → HEIGHT_GIRLS.zscore.yearly-6d7e0a8a.js} +0 -0
- /package/build/{Visible-4165f9e9.js → Visible-ad8392df.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-ea282b83.js → WEIGHT_BOYS.percentile.monthly-daa2efd4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-e5963dc0.js → WEIGHT_BOYS.percentile.weekly-b5a5b9bb.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-9468dbf0.js → WEIGHT_BOYS.percentile.yearly-f7609843.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e2fb2cfd.js → WEIGHT_BOYS.zscore.monthly-2f750f0e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-42487b42.js → WEIGHT_BOYS.zscore.weekly-c4ff9057.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-d88f8e25.js → WEIGHT_BOYS.zscore.yearly-2588a17d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1cb90ff5.js → WEIGHT_GIRLS.percentile.monthly-b58279ad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e73e1270.js → WEIGHT_GIRLS.percentile.weekly-ab2d7852.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-f96d8aac.js → WEIGHT_GIRLS.percentile.yearly-b7ba7e4c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-3c7a63f3.js → WEIGHT_GIRLS.zscore.monthly-b1752d2d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-51f55505.js → WEIGHT_GIRLS.zscore.weekly-8eba155e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-e82813bd.js → WEIGHT_GIRLS.zscore.yearly-a52bebca.js} +0 -0
- /package/build/{animation-1d1642c9.js → animation-6f30cb05.js} +0 -0
- /package/build/{cart-20fba50b.js → cart-4a2718b1.js} +0 -0
- /package/build/{cookieHelper-9a3f8df6.js → cookieHelper-e52ef565.js} +0 -0
- /package/build/{doctor-bd95dbc6.js → doctor-c4e9c3d5.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-f311c5fa.js → BMI_BOYS.percentile.monthly-f9a24f1a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-ca9bcf79.js → BMI_BOYS.percentile.weekly-9b068394.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-5a312b62.js → BMI_BOYS.percentile.yearly-8f9817f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-f6856684.js → BMI_BOYS.zscore.monthly-ca5090c9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-cfab8456.js → BMI_BOYS.zscore.weekly-2ac0171a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-24a1dc88.js → BMI_BOYS.zscore.yearly-c8f877f2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-b580780e.js → BMI_GIRLS.percentile.monthly-91bfffa4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-2ed6bff3.js → BMI_GIRLS.percentile.weekly-968bc42c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-5173a209.js → BMI_GIRLS.percentile.yearly-234ad4bd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-bcb8f3af.js → BMI_GIRLS.zscore.monthly-c7684196.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-20f43555.js → BMI_GIRLS.zscore.weekly-fda37cd4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e39e7c4b.js → BMI_GIRLS.zscore.yearly-4a8a2143.js} +0 -0
- /package/build/esm/{ChevronDown-d4489952.js → ChevronDown-40401701.js} +0 -0
- /package/build/esm/{Close-657d46b8.js → Close-7865ad11.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-38021261.js → HEAD CIRCUM_BOYS.percentile.monthly-561fdcd4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-55c66c6e.js → HEAD CIRCUM_BOYS.percentile.weekly-fad738be.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-4b094a19.js → HEAD CIRCUM_BOYS.percentile.yearly-c17a811a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-5dcc303b.js → HEAD CIRCUM_BOYS.zscore.monthly-b088fb23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8cdc7680.js → HEAD CIRCUM_BOYS.zscore.weekly-c84c5040.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b536abce.js → HEAD CIRCUM_BOYS.zscore.yearly-c07af658.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c9189721.js → HEAD CIRCUM_GIRLS.percentile.monthly-02f1fe89.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c6d86ffd.js → HEAD CIRCUM_GIRLS.percentile.weekly-4fb8f592.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-ef95ac84.js → HEAD CIRCUM_GIRLS.percentile.yearly-6f94d285.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-dd0fc8c3.js → HEAD CIRCUM_GIRLS.zscore.monthly-3a39a9ef.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0ba067fa.js → HEAD CIRCUM_GIRLS.zscore.weekly-5598bd91.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-a675e8c8.js → HEAD CIRCUM_GIRLS.zscore.yearly-55d0e1c5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-82109679.js → HEIGHT_BOYS.percentile.monthly-850ec09b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f989e3bb.js → HEIGHT_BOYS.percentile.weekly-ff524192.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-dd80031f.js → HEIGHT_BOYS.percentile.yearly-a1192bc6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5b996782.js → HEIGHT_BOYS.zscore.monthly-6d6118bd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-25932154.js → HEIGHT_BOYS.zscore.weekly-080f7d2b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b6d2489a.js → HEIGHT_BOYS.zscore.yearly-4ae02176.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7149bb81.js → HEIGHT_GIRLS.percentile.monthly-9e7c1213.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-c56405c5.js → HEIGHT_GIRLS.percentile.weekly-7ee03e8c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-7732850d.js → HEIGHT_GIRLS.percentile.yearly-d6056508.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-53c6dd61.js → HEIGHT_GIRLS.zscore.monthly-ae5b73cc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a0efce21.js → HEIGHT_GIRLS.zscore.weekly-cbdb7ea1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-fa254281.js → HEIGHT_GIRLS.zscore.yearly-f90bb72a.js} +0 -0
- /package/build/esm/{Visible-06d5ecea.js → Visible-b3c0ac79.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-a59a623f.js → WEIGHT_BOYS.percentile.monthly-5860cd35.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-75d3a2a9.js → WEIGHT_BOYS.percentile.weekly-51f39ba4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5e42a69a.js → WEIGHT_BOYS.percentile.yearly-8af6da0b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-be6dbbb5.js → WEIGHT_BOYS.zscore.monthly-0e3e59eb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-7297b525.js → WEIGHT_BOYS.zscore.weekly-a43864fd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-efb3f378.js → WEIGHT_BOYS.zscore.yearly-2fd4a6c2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-8e5b7d12.js → WEIGHT_GIRLS.percentile.monthly-7a30cec6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-b2616c0d.js → WEIGHT_GIRLS.percentile.weekly-72814fe3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-42960ad7.js → WEIGHT_GIRLS.percentile.yearly-3618eb8f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-b028967c.js → WEIGHT_GIRLS.zscore.monthly-e0729681.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c53b2d36.js → WEIGHT_GIRLS.zscore.weekly-70dac28a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-00cf3ec5.js → WEIGHT_GIRLS.zscore.yearly-51010d29.js} +0 -0
- /package/build/esm/{animation-c85ef1aa.js → animation-846a3492.js} +0 -0
- /package/build/esm/{cart-a09f93df.js → cart-7fd7d530.js} +0 -0
- /package/build/esm/{cookieHelper-4166d977.js → cookieHelper-bc14538c.js} +0 -0
- /package/build/esm/{doctor-9918e324.js → doctor-5502d454.js} +0 -0
- /package/build/esm/{index-3e04178f.js → index-893ee6c2.js} +0 -0
- /package/build/esm/{index-be8d21e4.js → index-aa5d9b56.js} +0 -0
- /package/build/esm/{index-5b97be17.js → index-c621a102.js} +0 -0
- /package/build/esm/{index-b63d88c2.js → index-fb359845.js} +0 -0
- /package/build/esm/{isProduction-8ddd1c09.js → isProduction-8b94b2e8.js} +0 -0
- /package/build/esm/{localizeNumberFormat-567af8b4.js → localizeNumberFormat-c4cb7a3d.js} +0 -0
- /package/build/esm/{normalizeLink-00141ab9.js → normalizeLink-8ec944ea.js} +0 -0
- /package/build/esm/{number-f58f7319.js → number-a62f57cd.js} +0 -0
- /package/build/esm/{paths-6c0107cc.js → paths-5635c7aa.js} +0 -0
- /package/build/esm/{theme-7c208c30.js → theme-4a099635.js} +0 -0
- /package/build/esm/{translationsContext-9021710e.js → translationsContext-d6309014.js} +0 -0
- /package/build/esm/{tslib.es6-2c23b4a0.js → tslib.es6-059585f8.js} +0 -0
- /package/build/esm/{useIsInit-c7f70254.js → useIsInit-1795ce28.js} +0 -0
- /package/build/esm/{useOutsideClick-4a5bba56.js → useOutsideClick-0b2f39ea.js} +0 -0
- /package/build/esm/{useScrollbarSize-718c8d7c.js → useScrollbarSize-2691a669.js} +0 -0
- /package/build/esm/{useUniqueId-ce0a21e6.js → useUniqueId-19a128f0.js} +0 -0
- /package/build/esm/{utils-72d20560.js → utils-36a2e88c.js} +0 -0
- /package/build/{index-da4e36c3.js → index-438cd223.js} +0 -0
- /package/build/{index-896edc0e.js → index-a42fdce3.js} +0 -0
- /package/build/{index-6e65f064.js → index-e124055f.js} +0 -0
- /package/build/{index-d2b208bb.js → index-eef67236.js} +0 -0
- /package/build/{isProduction-6c46b850.js → isProduction-e5d35ff7.js} +0 -0
- /package/build/{localizeNumberFormat-b9ffbd83.js → localizeNumberFormat-89cf3c66.js} +0 -0
- /package/build/{normalizeLink-05857ba2.js → normalizeLink-ec8d5cd0.js} +0 -0
- /package/build/{number-3ee7ee9e.js → number-fe5b817c.js} +0 -0
- /package/build/{paths-d1a45b42.js → paths-ecacd73d.js} +0 -0
- /package/build/{theme-de064836.js → theme-3d64c4bb.js} +0 -0
- /package/build/{translationsContext-073aabc8.js → translationsContext-c38c15c8.js} +0 -0
- /package/build/{tslib.es6-a3b945ae.js → tslib.es6-e9ceb687.js} +0 -0
- /package/build/{useIsInit-24b144df.js → useIsInit-02f88206.js} +0 -0
- /package/build/{useOutsideClick-03608b1c.js → useOutsideClick-18d6bbd9.js} +0 -0
- /package/build/{useScrollbarSize-709e0dea.js → useScrollbarSize-d5111bfe.js} +0 -0
- /package/build/{useUniqueId-d3ce4826.js → useUniqueId-fa63e86f.js} +0 -0
- /package/build/{utils-c6a0ba99.js → utils-19821978.js} +0 -0
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import React__default, { useRef, useEffect, useState, useMemo, createContext, useContext } from 'react';
|
|
2
|
-
import { Portal, Box, Flex, rem, createStyles, useMantineTheme, Switch } from '@mantine/core';
|
|
3
|
-
import { t as toggleNoScroll, M as MediaQueries } from './utils-
|
|
4
|
-
import { w as StyledBackdrop, x as StyledDrawer, y as StyledDrawerPanel, z as StyledDrawerContent, A as StyledRadioImageGroup, B as StyledRadioImageItem, C as useStyles$
|
|
5
|
-
import { T as Text } from './index-
|
|
6
|
-
import { t as theme } from './theme-
|
|
7
|
-
import { M as MarryBabyText } from './index-
|
|
8
|
-
import { T as Text$1 } from './index-
|
|
9
|
-
import { u as useScrollbarSize } from './useScrollbarSize-
|
|
2
|
+
import { Portal, Box, Flex, rem, createStyles, Input, Chip, useMantineTheme, Switch } from '@mantine/core';
|
|
3
|
+
import { t as toggleNoScroll, M as MediaQueries } from './utils-36a2e88c.js';
|
|
4
|
+
import { w as StyledBackdrop, x as StyledDrawer, y as StyledDrawerPanel, z as StyledDrawerContent, A as StyledRadioImageGroup, B as StyledRadioImageItem, C as useStyles$a, P as PureInput } from './index.styles-bdadf1c8.js';
|
|
5
|
+
import { T as Text } from './index-0b997c18.js';
|
|
6
|
+
import { t as theme } from './theme-4a099635.js';
|
|
7
|
+
import { M as MarryBabyText } from './index-34682a6e.js';
|
|
8
|
+
import { T as Text$1 } from './index-7872ac55.js';
|
|
9
|
+
import { u as useScrollbarSize } from './useScrollbarSize-2691a669.js';
|
|
10
10
|
import { createPortal } from 'react-dom';
|
|
11
11
|
import styled from '@emotion/styled';
|
|
12
|
-
import { s as setDefaultClass } from './utils-
|
|
13
|
-
import { _ as __rest } from './tslib.es6-
|
|
12
|
+
import { s as setDefaultClass } from './utils-b83d7305.js';
|
|
13
|
+
import { _ as __rest } from './tslib.es6-059585f8.js';
|
|
14
14
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
15
|
-
import { G as Gender } from './index-
|
|
15
|
+
import { G as Gender } from './index-893ee6c2.js';
|
|
16
16
|
import { Controller, useForm } from 'react-hook-form';
|
|
17
17
|
import { BabyBoyMB, BabyGirlMB, CalendarMB } from '@hhgtech/icons/other';
|
|
18
|
-
import { R as Radio, B as Button, c as Input$
|
|
19
|
-
import { C as CommonGAssets } from './index-
|
|
20
|
-
import { I as Input } from './index-
|
|
21
|
-
import './utils-
|
|
22
|
-
import { D as DatePicker } from './index-
|
|
23
|
-
import { u as useTranslations } from './useTranslations-
|
|
18
|
+
import { R as Radio, B as Button, c as Input$2 } from './index-0d6c85cf.js';
|
|
19
|
+
import { C as CommonGAssets } from './index-ff8c9d5e.js';
|
|
20
|
+
import { I as Input$1 } from './index-f53544db.js';
|
|
21
|
+
import './utils-9ad73105.js';
|
|
22
|
+
import { D as DatePicker } from './index-251e9c68.js';
|
|
23
|
+
import { u as useTranslations } from './useTranslations-1ed73aa5.js';
|
|
24
24
|
import '@mantine/hooks';
|
|
25
|
-
import './useMantineLocale-
|
|
26
|
-
import './index-
|
|
27
|
-
import './WhatsApp-
|
|
28
|
-
import './index.styled-
|
|
29
|
-
import './index-
|
|
30
|
-
import { L as Label } from './constants-
|
|
25
|
+
import './useMantineLocale-0143b7da.js';
|
|
26
|
+
import './index-604a2f74.js';
|
|
27
|
+
import './WhatsApp-9c19ab07.js';
|
|
28
|
+
import './index.styled-81557262.js';
|
|
29
|
+
import './index-aa5d9b56.js';
|
|
30
|
+
import { L as Label } from './constants-b05bc757.js';
|
|
31
31
|
import '@mantine/dates';
|
|
32
|
-
import
|
|
32
|
+
import 'date-fns';
|
|
33
33
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
34
34
|
|
|
35
35
|
const Backdrop = ({ open = false, onClickOutside, }) => {
|
|
@@ -101,7 +101,7 @@ const GenderOptionControl = (_a) => {
|
|
|
101
101
|
female: 'female',
|
|
102
102
|
}, type = 'button', hideLabel } = _a, radioProps = __rest(_a, ["label", "availableValue", "styles", "isBaby", "genderValue", "type", "hideLabel"]);
|
|
103
103
|
const { t } = useTranslations();
|
|
104
|
-
const { classes, cx, theme } = useStyles$
|
|
104
|
+
const { classes, cx, theme } = useStyles$a({ type }, {
|
|
105
105
|
name: 'GenderOptionControl',
|
|
106
106
|
styles,
|
|
107
107
|
});
|
|
@@ -385,168 +385,100 @@ const Modal = ({ type = 'lead', closeIcon, isOpen = true, onClose, children, cla
|
|
|
385
385
|
children))), elRef.current);
|
|
386
386
|
};
|
|
387
387
|
|
|
388
|
-
styled(PureInput) `
|
|
389
|
-
& input,
|
|
390
|
-
.mantine-Input-input {
|
|
391
|
-
border-color: ${theme.mbColors.lightGray};
|
|
392
|
-
background-color: ${theme.colors.white};
|
|
393
|
-
border-radius: 16px;
|
|
394
|
-
transition: all 0.2s ease;
|
|
395
|
-
&:focus,
|
|
396
|
-
&:hover {
|
|
397
|
-
border-color: ${theme.mbColors.pink};
|
|
398
|
-
box-shadow: none;
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
& .displayIcon {
|
|
403
|
-
pointer-events: none;
|
|
404
|
-
}
|
|
405
|
-
`;
|
|
406
|
-
const StyledTextField = styled(Input) `
|
|
407
|
-
& label {
|
|
408
|
-
position: absolute;
|
|
409
|
-
z-index: 1;
|
|
410
|
-
top: 16px;
|
|
411
|
-
|
|
412
|
-
left: 16px;
|
|
413
|
-
color: ${theme.mbColors.midGray};
|
|
414
|
-
pointer-events: none;
|
|
415
|
-
transition: all 0.2s ease;
|
|
416
|
-
white-space: nowrap;
|
|
417
|
-
overflow: hidden;
|
|
418
|
-
text-overflow: ellipsis;
|
|
419
|
-
max-width: 240px;
|
|
420
|
-
|
|
421
|
-
&[data-size='label2'] {
|
|
422
|
-
font-size: 12px;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
${MediaQueries.tdDown} {
|
|
426
|
-
max-width: 220px;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
& input,
|
|
430
|
-
.mantine-Input-input {
|
|
431
|
-
::placeholder {
|
|
432
|
-
color: ${theme.mbColors.gray};
|
|
433
|
-
font-size: 14px;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
::-webkit-input-placeholder {
|
|
437
|
-
/* Chrome/Opera/Safari */
|
|
438
|
-
color: ${theme.mbColors.gray};
|
|
439
|
-
font-size: 14px;
|
|
440
|
-
}
|
|
441
|
-
::-moz-placeholder {
|
|
442
|
-
/* Firefox 19+ */
|
|
443
|
-
color: ${theme.mbColors.gray};
|
|
444
|
-
font-size: 14px;
|
|
445
|
-
}
|
|
446
|
-
:-ms-input-placeholder {
|
|
447
|
-
/* IE 10+ */
|
|
448
|
-
color: ${theme.mbColors.gray};
|
|
449
|
-
font-size: 14px;
|
|
450
|
-
}
|
|
451
|
-
:-moz-placeholder {
|
|
452
|
-
/* Firefox 18- */
|
|
453
|
-
color: ${theme.mbColors.gray};
|
|
454
|
-
font-size: 14px;
|
|
455
|
-
}
|
|
456
|
-
height: ${(props) => (props.size === 'sm' ? 48 : 72)}px !important;
|
|
457
|
-
padding-top: 27px !important;
|
|
458
|
-
border-color: ${theme.mbColors.lightGray} !important;
|
|
459
|
-
background-color: ${theme.colors.white};
|
|
460
|
-
border-radius: 16px !important;
|
|
461
|
-
transition: all 0.2s ease;
|
|
462
|
-
padding-top: ${(props) => (props.value ? '38px' : '27px')} !important;
|
|
463
|
-
|
|
464
|
-
&:focus,
|
|
465
|
-
&:hover {
|
|
466
|
-
border-color: ${theme.mbColors.pink};
|
|
467
|
-
box-shadow: none;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
.mantine-Input-rightSection,
|
|
471
|
-
.mantine-Input-leftSection {
|
|
472
|
-
padding-top: 20px;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
&[data-has-action-icon] {
|
|
476
|
-
input,
|
|
477
|
-
.mantine-Input-input {
|
|
478
|
-
padding-top: ${(props) => (props.value ? '38px' : '27px')} !important;
|
|
479
|
-
padding-bottom: ${(props) => (props.value ? '16px' : '27px')} !important;
|
|
480
|
-
height: unset !important;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
label {
|
|
484
|
-
position: absolute;
|
|
485
|
-
z-index: 1;
|
|
486
|
-
top: 16px;
|
|
487
|
-
padding-right: 46px;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
`;
|
|
491
|
-
|
|
492
388
|
var DueDateCalculatorType;
|
|
493
389
|
(function (DueDateCalculatorType) {
|
|
494
390
|
DueDateCalculatorType[DueDateCalculatorType["lastPeriod"] = 0] = "lastPeriod";
|
|
495
391
|
DueDateCalculatorType[DueDateCalculatorType["conception"] = 1] = "conception";
|
|
496
392
|
DueDateCalculatorType[DueDateCalculatorType["IVF"] = 2] = "IVF";
|
|
497
393
|
})(DueDateCalculatorType || (DueDateCalculatorType = {}));
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
394
|
+
const DateToInputValue = (date) => {
|
|
395
|
+
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
var useStyles$9 = createStyles(() => {
|
|
503
399
|
return {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
otherInfo: {
|
|
507
|
-
method: DueDateCalculatorType.lastPeriod + 1,
|
|
508
|
-
first_day: format(lastPeriodDate, API_DATE_FORMAT),
|
|
509
|
-
cycle_length_days: periodLength,
|
|
510
|
-
conception_date: null,
|
|
511
|
-
ivf_transfer_date: null,
|
|
512
|
-
days_transfer: null,
|
|
400
|
+
root: {
|
|
401
|
+
justifyContent: 'flex-start',
|
|
513
402
|
},
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
dueDate.setDate(dueDate.getDate() + 265);
|
|
519
|
-
return {
|
|
520
|
-
startDate: conceptionDate,
|
|
521
|
-
dueDate,
|
|
522
|
-
otherInfo: {
|
|
523
|
-
method: DueDateCalculatorType.conception + 1,
|
|
524
|
-
conception_date: format(conceptionDate, API_DATE_FORMAT),
|
|
525
|
-
first_day: null,
|
|
526
|
-
cycle_length_days: null,
|
|
527
|
-
ivf_transfer_date: null,
|
|
528
|
-
days_transfer: null,
|
|
403
|
+
group: {
|
|
404
|
+
display: 'flex',
|
|
405
|
+
alignItems: 'stretch',
|
|
406
|
+
gap: rem(8),
|
|
529
407
|
},
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
return {
|
|
536
|
-
startDate: IVFDate,
|
|
537
|
-
dueDate,
|
|
538
|
-
otherInfo: {
|
|
539
|
-
method: DueDateCalculatorType.IVF + 1,
|
|
540
|
-
ivf_transfer_date: format(IVFDate, API_DATE_FORMAT),
|
|
541
|
-
days_transfer: numDayTransfer,
|
|
542
|
-
conception_date: null,
|
|
543
|
-
first_day: null,
|
|
544
|
-
cycle_length_days: null,
|
|
408
|
+
item: {
|
|
409
|
+
flex: '1 1 0px',
|
|
410
|
+
},
|
|
411
|
+
icon: {
|
|
412
|
+
flexShrink: 0,
|
|
545
413
|
},
|
|
546
414
|
};
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
const ChipGroup = (_a) => {
|
|
418
|
+
var { data = [], label, isMobile, layout = 'horizonal', classNames, styles } = _a, props = __rest(_a, ["data", "label", "isMobile", "layout", "classNames", "styles"]);
|
|
419
|
+
const { classes, theme } = useStyles$9(undefined, {
|
|
420
|
+
name: 'ChipGroup',
|
|
421
|
+
classNames,
|
|
422
|
+
styles,
|
|
423
|
+
});
|
|
424
|
+
const isMarryBaby = theme.other.template === 'mb';
|
|
425
|
+
const iconSize = isMobile
|
|
426
|
+
? 48
|
|
427
|
+
: isMarryBaby
|
|
428
|
+
? 32
|
|
429
|
+
: layout === 'vertical'
|
|
430
|
+
? 32
|
|
431
|
+
: 18;
|
|
432
|
+
return (React__default.createElement(Box, null,
|
|
433
|
+
React__default.createElement(Input.Wrapper, { label: label },
|
|
434
|
+
React__default.createElement(Chip.Group, Object.assign({}, props),
|
|
435
|
+
React__default.createElement(Box, { className: classes.group }, data.map((i, idx) => (React__default.createElement(Chip, { className: classes.item, key: idx, value: String(i.value), styles: {
|
|
436
|
+
iconWrapper: {
|
|
437
|
+
display: 'none',
|
|
438
|
+
},
|
|
439
|
+
label: {
|
|
440
|
+
width: '100%',
|
|
441
|
+
borderRadius: rem(isMarryBaby ? 12 : 8),
|
|
442
|
+
padding: 0,
|
|
443
|
+
border: `1px solid ${isMarryBaby ? '#EAEAEC' : theme.colors.neutral[2]}`,
|
|
444
|
+
height: '100%',
|
|
445
|
+
'&[data-checked]': {
|
|
446
|
+
padding: 0,
|
|
447
|
+
backgroundColor: isMarryBaby
|
|
448
|
+
? '#FFE9F1'
|
|
449
|
+
: theme.colors.blue[0],
|
|
450
|
+
border: `1px solid ${isMarryBaby ? '#F5B4CB' : theme.colors.blue[1]}`,
|
|
451
|
+
},
|
|
452
|
+
[theme.fn.smallerThan('sm')]: {
|
|
453
|
+
alignItems: 'flex-start',
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
} },
|
|
457
|
+
React__default.createElement(Box, { sx: Object.assign(Object.assign(Object.assign({ width: '100%', display: 'flex', gap: rem(isMarryBaby ? 2 : 8), padding: '8px 16px 8px 12px', justifyContent: 'center', alignItems: 'center' }, (isMarryBaby && {
|
|
458
|
+
flexDirection: 'column',
|
|
459
|
+
})), (layout === 'vertical' && {
|
|
460
|
+
flexDirection: 'column',
|
|
461
|
+
padding: '16px 8px 8px',
|
|
462
|
+
})), { [theme.fn.smallerThan('sm')]: {
|
|
463
|
+
flexDirection: 'column',
|
|
464
|
+
padding: '16px 8px 8px',
|
|
465
|
+
} }) },
|
|
466
|
+
React__default.isValidElement(i.icon)
|
|
467
|
+
? React__default.cloneElement(i.icon, {
|
|
468
|
+
size: iconSize,
|
|
469
|
+
isMarryBaby,
|
|
470
|
+
className: classes.icon,
|
|
471
|
+
})
|
|
472
|
+
: null,
|
|
473
|
+
React__default.createElement(Text, { size: 'p4', styles: {
|
|
474
|
+
root: Object.assign(Object.assign({}, (isMarryBaby && {
|
|
475
|
+
textAlign: 'center',
|
|
476
|
+
})), { whiteSpace: 'normal', [theme.fn.smallerThan('sm')]: {
|
|
477
|
+
fontSize: rem(12),
|
|
478
|
+
lineHeight: rem(18),
|
|
479
|
+
textAlign: 'center',
|
|
480
|
+
} }),
|
|
481
|
+
} }, i.label))))))))));
|
|
550
482
|
};
|
|
551
483
|
|
|
552
484
|
const FormLayoutContext = createContext({});
|
|
@@ -812,7 +744,7 @@ const Control = (_a) => {
|
|
|
812
744
|
};
|
|
813
745
|
|
|
814
746
|
const _HealthToolFormWrapper = (_a) => {
|
|
815
|
-
var { children, formLayout: formLayoutProp, styles, classNames, className } = _a, rest = __rest(_a, ["children", "formLayout", "styles", "classNames", "className"]);
|
|
747
|
+
var { children, formLayout: formLayoutProp, styles, classNames, className, component = 'form' } = _a, rest = __rest(_a, ["children", "formLayout", "styles", "classNames", "className", "component"]);
|
|
816
748
|
const formLayout = formLayoutProp || 'default';
|
|
817
749
|
const { classes, cx } = useStyles$7({ formLayout }, {
|
|
818
750
|
name: 'HealthToolFormWrapper',
|
|
@@ -822,7 +754,7 @@ const _HealthToolFormWrapper = (_a) => {
|
|
|
822
754
|
return (React__default.createElement(FormLayoutContext.Provider, { value: {
|
|
823
755
|
formLayout,
|
|
824
756
|
} },
|
|
825
|
-
React__default.createElement(Box, Object.assign({ component:
|
|
757
|
+
React__default.createElement(Box, Object.assign({ component: component, className: cx(className, classes.root) }, rest), children)));
|
|
826
758
|
};
|
|
827
759
|
const HealthToolFormWrapper = _HealthToolFormWrapper;
|
|
828
760
|
HealthToolFormWrapper.Control = Control;
|
|
@@ -832,10 +764,115 @@ HealthToolFormWrapper.Error = Error;
|
|
|
832
764
|
HealthToolFormWrapper.FormRow = FormRow;
|
|
833
765
|
HealthToolFormWrapper.Submit = SubmitBtn;
|
|
834
766
|
HealthToolFormWrapper.Unit = Unit;
|
|
835
|
-
HealthToolFormWrapper.Switching = Switching;
|
|
767
|
+
HealthToolFormWrapper.Switching = Switching;
|
|
768
|
+
HealthToolFormWrapper.ChipGroup = ChipGroup;
|
|
836
769
|
|
|
837
770
|
const BabyGrowthFormContext = createContext({});
|
|
838
771
|
|
|
772
|
+
styled(PureInput) `
|
|
773
|
+
& input,
|
|
774
|
+
.mantine-Input-input {
|
|
775
|
+
border-color: ${theme.mbColors.lightGray};
|
|
776
|
+
background-color: ${theme.colors.white};
|
|
777
|
+
border-radius: 16px;
|
|
778
|
+
transition: all 0.2s ease;
|
|
779
|
+
&:focus,
|
|
780
|
+
&:hover {
|
|
781
|
+
border-color: ${theme.mbColors.pink};
|
|
782
|
+
box-shadow: none;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
& .displayIcon {
|
|
787
|
+
pointer-events: none;
|
|
788
|
+
}
|
|
789
|
+
`;
|
|
790
|
+
const StyledTextField = styled(Input$1) `
|
|
791
|
+
& label {
|
|
792
|
+
position: absolute;
|
|
793
|
+
z-index: 1;
|
|
794
|
+
top: 16px;
|
|
795
|
+
|
|
796
|
+
left: 16px;
|
|
797
|
+
color: ${theme.mbColors.midGray};
|
|
798
|
+
pointer-events: none;
|
|
799
|
+
transition: all 0.2s ease;
|
|
800
|
+
white-space: nowrap;
|
|
801
|
+
overflow: hidden;
|
|
802
|
+
text-overflow: ellipsis;
|
|
803
|
+
max-width: 240px;
|
|
804
|
+
|
|
805
|
+
&[data-size='label2'] {
|
|
806
|
+
font-size: 12px;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
${MediaQueries.tdDown} {
|
|
810
|
+
max-width: 220px;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
& input,
|
|
814
|
+
.mantine-Input-input {
|
|
815
|
+
::placeholder {
|
|
816
|
+
color: ${theme.mbColors.gray};
|
|
817
|
+
font-size: 14px;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
::-webkit-input-placeholder {
|
|
821
|
+
/* Chrome/Opera/Safari */
|
|
822
|
+
color: ${theme.mbColors.gray};
|
|
823
|
+
font-size: 14px;
|
|
824
|
+
}
|
|
825
|
+
::-moz-placeholder {
|
|
826
|
+
/* Firefox 19+ */
|
|
827
|
+
color: ${theme.mbColors.gray};
|
|
828
|
+
font-size: 14px;
|
|
829
|
+
}
|
|
830
|
+
:-ms-input-placeholder {
|
|
831
|
+
/* IE 10+ */
|
|
832
|
+
color: ${theme.mbColors.gray};
|
|
833
|
+
font-size: 14px;
|
|
834
|
+
}
|
|
835
|
+
:-moz-placeholder {
|
|
836
|
+
/* Firefox 18- */
|
|
837
|
+
color: ${theme.mbColors.gray};
|
|
838
|
+
font-size: 14px;
|
|
839
|
+
}
|
|
840
|
+
height: ${(props) => (props.size === 'sm' ? 48 : 72)}px !important;
|
|
841
|
+
padding-top: 27px !important;
|
|
842
|
+
border-color: ${theme.mbColors.lightGray} !important;
|
|
843
|
+
background-color: ${theme.colors.white};
|
|
844
|
+
border-radius: 16px !important;
|
|
845
|
+
transition: all 0.2s ease;
|
|
846
|
+
padding-top: ${(props) => (props.value ? '38px' : '27px')} !important;
|
|
847
|
+
|
|
848
|
+
&:focus,
|
|
849
|
+
&:hover {
|
|
850
|
+
border-color: ${theme.mbColors.pink};
|
|
851
|
+
box-shadow: none;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
.mantine-Input-rightSection,
|
|
855
|
+
.mantine-Input-leftSection {
|
|
856
|
+
padding-top: 20px;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
&[data-has-action-icon] {
|
|
860
|
+
input,
|
|
861
|
+
.mantine-Input-input {
|
|
862
|
+
padding-top: ${(props) => (props.value ? '38px' : '27px')} !important;
|
|
863
|
+
padding-bottom: ${(props) => (props.value ? '16px' : '27px')} !important;
|
|
864
|
+
height: unset !important;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
label {
|
|
868
|
+
position: absolute;
|
|
869
|
+
z-index: 1;
|
|
870
|
+
top: 16px;
|
|
871
|
+
padding-right: 46px;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
`;
|
|
875
|
+
|
|
839
876
|
styled.div `
|
|
840
877
|
display: flex;
|
|
841
878
|
flex-direction: column;
|
|
@@ -893,23 +930,23 @@ const DefaultForm = (props) => {
|
|
|
893
930
|
React__default.createElement(StyledTextField, { label: t('babyGrowth.input.birthday'), name: "birthday", size: "md", value: String(value), CustomInput: React__default.createElement(DatePicker, Object.assign({}, commonDateProps, { onChange: onChange, maxDate: new Date(), className: (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', rightSection: React__default.createElement(CalendarMB, { size: 32 }) })) }))) }),
|
|
894
931
|
React__default.createElement(StyledRow, null,
|
|
895
932
|
React__default.createElement(Controller, { control: control, name: "height", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
896
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.height')} ${t('babyGrowth.cm')}`, name: "height", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
933
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.height')} ${t('babyGrowth.cm')}`, name: "height", size: "md", value: String(value), CustomInput: React__default.createElement(Input$1, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
897
934
|
? 'error-input'
|
|
898
935
|
: '', name: "height", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
899
936
|
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) }),
|
|
900
937
|
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
901
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.weight')} ${t('babyGrowth.kg')}`, name: "weight", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
938
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.weight')} ${t('babyGrowth.kg')}`, name: "weight", size: "md", value: String(value), CustomInput: React__default.createElement(Input$1, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
902
939
|
? 'error-input'
|
|
903
940
|
: '', name: "weight", size: "md", placeholder: "Nh\u1EADp th\u00F4ng tin", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
904
941
|
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) })),
|
|
905
942
|
React__default.createElement(StyledRow, null,
|
|
906
943
|
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
907
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.headCircumference')} ${t('babyGrowth.cm')}`, name: "head", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
944
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.headCircumference')} ${t('babyGrowth.cm')}`, name: "head", size: "md", value: String(value), CustomInput: React__default.createElement(Input$1, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message)
|
|
908
945
|
? 'error-input'
|
|
909
946
|
: '', name: "head", size: "md", value: String(value), onChange: onChange, type: "number", placeholder: "Nh\u1EADp th\u00F4ng tin", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) &&
|
|
910
947
|
e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }) }))) }),
|
|
911
948
|
React__default.createElement(Controller, { control: control, name: "bmi", render: ({ field: { value } }) => (React__default.createElement(StyledFormControl, null,
|
|
912
|
-
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.input.bmi')} ${t('babyGrowth.kg.m2')}`, name: "date", size: "md", value: String(value), CustomInput: React__default.createElement(Input, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true, style: { color: '#9495A0' } }) }))) })),
|
|
949
|
+
React__default.createElement(StyledTextField, { label: `${t('babyGrowth.input.bmi')} ${t('babyGrowth.kg.m2')}`, name: "date", size: "md", value: String(value), CustomInput: React__default.createElement(Input$1, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true, style: { color: '#9495A0' } }) }))) })),
|
|
913
950
|
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(StyledFormControl, null,
|
|
914
951
|
React__default.createElement(StyledTextField, { label: t('babyGrowth.input.measurementDate'), name: "date", size: "md", value: DateToInputValue(value), CustomInput: React__default.createElement(DatePicker, Object.assign({}, commonDateProps, { defaultValue: new Date(), maxDate: new Date(), onChange: onChange, className: (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', rightSection: React__default.createElement(CalendarMB, { size: 32 }) })) }))) }),
|
|
915
952
|
React__default.createElement(HealthToolFormWrapper.Submit, { type: "submit", "data-event-category": "Health Tool", "data-event-action": "Baby Growth", "data-event-label": currentUrl }, t('babyGrowth.input.submit')))) : (React__default.createElement(React__default.Fragment, null,
|
|
@@ -922,23 +959,23 @@ const DefaultForm = (props) => {
|
|
|
922
959
|
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "height" },
|
|
923
960
|
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.height')),
|
|
924
961
|
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.cm'))),
|
|
925
|
-
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "height", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
962
|
+
React__default.createElement(Input$1, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "height", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
926
963
|
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
927
964
|
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "weight" },
|
|
928
965
|
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.weight')),
|
|
929
966
|
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.kg'))),
|
|
930
|
-
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "weight", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) })),
|
|
967
|
+
React__default.createElement(Input$1, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "weight", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) })),
|
|
931
968
|
React__default.createElement(StyledRow, null,
|
|
932
969
|
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error }, }) => (React__default.createElement(StyledFormControl, null,
|
|
933
970
|
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "head" },
|
|
934
971
|
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.headCircumference')),
|
|
935
972
|
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.cm'))),
|
|
936
|
-
React__default.createElement(Input, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "head", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
973
|
+
React__default.createElement(Input$1, { className: isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error-input' : '', name: "head", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur() }))) }),
|
|
937
974
|
React__default.createElement(Controller, { control: control, name: "bmi", render: ({ field: { value } }) => (React__default.createElement(StyledFormControl, null,
|
|
938
975
|
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "bmi" },
|
|
939
976
|
React__default.createElement(Text, { size: "s4", weight: "semiBold" }, t('babyGrowth.input.bmi')),
|
|
940
977
|
React__default.createElement(Text, { as: "span", size: "n1", color: theme.colors.gray400 }, t('babyGrowth.kg.m2'))),
|
|
941
|
-
React__default.createElement(Input, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true }))) })),
|
|
978
|
+
React__default.createElement(Input$1, { name: "bmi", size: "md", type: "number", value: String(value), isDisabled: true }))) })),
|
|
942
979
|
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange }, fieldState: { error } }) => (React__default.createElement(StyledFormControl, null,
|
|
943
980
|
React__default.createElement(StyledInlineLabel, { size: "label1", htmlFor: "measurementDate" },
|
|
944
981
|
React__default.createElement(Text, { as: "label", size: "s4", weight: "semiBold" }, t('babyGrowth.input.measurementDate'))),
|
|
@@ -1000,12 +1037,12 @@ const InlineForm = (_a) => {
|
|
|
1000
1037
|
React__default.createElement("span", { className: classes.bmiVal }, !isNaN(Number(value)) && value !== '0' ? value : ''),
|
|
1001
1038
|
t('babyGrowth.kg.m2')))) }),
|
|
1002
1039
|
React__default.createElement(Controller, { control: control, name: "height", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(Box, { className: cx(isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error' : '') },
|
|
1003
|
-
React__default.createElement(Input$
|
|
1040
|
+
React__default.createElement(Input$2, { name: "height", placeholder: t('babyGrowth.height'), size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.cm')) }))) }),
|
|
1004
1041
|
React__default.createElement(Controller, { control: control, name: "weight", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(Box, { className: cx(isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error' : '') },
|
|
1005
|
-
React__default.createElement(Input$
|
|
1042
|
+
React__default.createElement(Input$2, { name: "weight", placeholder: t('babyGrowth.weight'), size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.kg')) }))) })),
|
|
1006
1043
|
React__default.createElement(Controller, { control: control, name: "head", render: ({ field: { onChange, value }, fieldState: { error } }) => (React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('babyGrowth.headCircumference') },
|
|
1007
1044
|
React__default.createElement(Box, { className: cx(isEmptyThreeFields || (error === null || error === void 0 ? void 0 : error.message) ? 'error' : '') },
|
|
1008
|
-
React__default.createElement(Input$
|
|
1045
|
+
React__default.createElement(Input$2, { name: "head", placeholder: "0", size: "md", value: String(value), onChange: onChange, type: "number", onKeyDown: (e) => ['e', 'E', '+', '-'].includes(e.key) && e.preventDefault(), onWheelCapture: (event) => event.currentTarget.blur(), rightSection: React__default.createElement(HealthToolFormWrapper.Unit, null, t('babyGrowth.cm')) })))) }),
|
|
1009
1046
|
React__default.createElement(Controller, { control: control, name: "measurementDate", render: ({ field: { onChange } }) => (React__default.createElement(HealthToolFormWrapper.BorderInlineControl, { label: t('babyGrowth.input.measurementDate') },
|
|
1010
1047
|
React__default.createElement(DatePicker, Object.assign({}, commonDateProps, { defaultValue: new Date(), onChange: onChange, maxDate: new Date() })))) }),
|
|
1011
1048
|
React__default.createElement(HealthToolFormWrapper.Submit, Object.assign({ type: "submit", "data-event-category": "Health Tool", "data-event-action": "Baby Growth", "data-event-label": currentUrl, className: classes.submitBtn }, submitProps), t('babyGrowth.input.submit'))));
|
|
@@ -1083,4 +1120,4 @@ const BabyGrowthForm = (_a) => {
|
|
|
1083
1120
|
} }, formLayout === 'default' ? (React__default.createElement(DefaultForm, Object.assign({}, commonProps))) : (React__default.createElement(InlineForm, Object.assign({}, commonProps)))));
|
|
1084
1121
|
};
|
|
1085
1122
|
|
|
1086
|
-
export {
|
|
1123
|
+
export { BabyGrowthForm as B, Drawer as D, GenderOptionControl as G, HealthToolFormWrapper as H, Modal as M, RadioImageGroup as R, DueDateCalculatorType as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-059585f8.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { B as Button$1 } from './index-
|
|
3
|
+
import { B as Button$1 } from './index-0d6c85cf.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Consider to use at '@hhgtech/hhg-components/mantine'
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-059585f8.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './index-
|
|
3
|
+
import './index-0d6c85cf.js';
|
|
4
4
|
import '@mantine/core';
|
|
5
5
|
import '@mantine/dates';
|
|
6
|
-
import './index-
|
|
7
|
-
import './index-
|
|
8
|
-
import './index-
|
|
9
|
-
import './useMantineLocale-
|
|
10
|
-
import { T as Text$1 } from './index-
|
|
11
|
-
import './theme-
|
|
12
|
-
import './translationsContext-
|
|
6
|
+
import './index-604a2f74.js';
|
|
7
|
+
import './index-893ee6c2.js';
|
|
8
|
+
import './index-ff8c9d5e.js';
|
|
9
|
+
import './useMantineLocale-0143b7da.js';
|
|
10
|
+
import { T as Text$1 } from './index-0b997c18.js';
|
|
11
|
+
import './theme-4a099635.js';
|
|
12
|
+
import './translationsContext-d6309014.js';
|
|
13
13
|
import 'string-format';
|
|
14
14
|
import '@mantine/hooks';
|
|
15
|
-
import './utils-
|
|
15
|
+
import './utils-36a2e88c.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @deprecated Consider to use import { Text } from '@hhgtech/hhg-components/mantine'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-059585f8.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { Modal as Modal$1 } from '@mantine/core';
|
|
4
|
-
import { g as useStyles } from './index-
|
|
4
|
+
import { g as useStyles } from './index-0d6c85cf.js';
|
|
5
5
|
|
|
6
6
|
const Modal = (_a) => {
|
|
7
7
|
var { styles, classNames, transitionProps } = _a, rest = __rest(_a, ["styles", "classNames", "transitionProps"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __rest } from './tslib.es6-059585f8.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { useMantineTheme } from '@mantine/core';
|
|
4
|
-
import { T as Text } from './index-
|
|
4
|
+
import { T as Text } from './index-0b997c18.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Consider to use import { Title } from '@mantine/core'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
|
-
import { L as LOCALE } from './index-
|
|
3
|
-
import { C as CommonGAssets } from './index-
|
|
4
|
-
import { i as isChristmas, a as LunarNewYearLocale, b as isLunarNewYear, c as isNewYear, d as isRamadan, e as isVNHungKing, f as isVN3004, g as isLabourDay, S as StyledLogo, L as LogoIcon, h as StyledProLogo } from './utils-
|
|
5
|
-
import { I as ImageWrap } from './index-
|
|
2
|
+
import { L as LOCALE } from './index-893ee6c2.js';
|
|
3
|
+
import { C as CommonGAssets } from './index-ff8c9d5e.js';
|
|
4
|
+
import { i as isChristmas, a as LunarNewYearLocale, b as isLunarNewYear, c as isNewYear, d as isRamadan, e as isVNHungKing, f as isVN3004, g as isLabourDay, S as StyledLogo, L as LogoIcon, h as StyledProLogo } from './utils-9ad73105.js';
|
|
5
|
+
import { I as ImageWrap } from './index-0d6c85cf.js';
|
|
6
6
|
|
|
7
7
|
const Logo = ({ type, className, style, isLightLogo, customSize, badge, locale, dateForSeasonal, isPro, }) => {
|
|
8
8
|
const [seasonalChecks, setSeasonalChecks] = useState({
|