@hhgtech/hhg-components 1.29.45 → 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-b5951003.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/due-date/dueDate.d.ts +5 -2
- package/build/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- 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 +6 -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 +1 -0
- package/build/components.js +59 -60
- package/build/{constants-ce8caeb2.js → constants-113796d0.js} +2 -2
- package/build/{constants-97f85d3c.js → constants-317df919.js} +2 -2
- package/build/constants.js +3 -3
- package/build/{core-0102fdae.js → core-57328e8c.js} +2 -2
- package/build/{dataTransform-4b5e389f.js → dataTransform-66d88eaa.js} +1 -1
- package/build/ecom.js +26 -7
- package/build/esm/{WhatsApp-c5ccc324.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/due-date/dueDate.d.ts +5 -2
- package/build/esm/components/molecules/healthTools/components/borderBoxControl/index.styled.d.ts +1 -1
- 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 +6 -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 +1 -0
- package/build/esm/components.js +58 -60
- package/build/esm/{constants-fe7395e5.js → constants-b05bc757.js} +2 -2
- package/build/esm/{constants-26f03b1f.js → constants-c50b825b.js} +2 -2
- package/build/esm/constants.js +3 -3
- package/build/esm/{core-78cadfa4.js → core-49ccf099.js} +2 -2
- package/build/esm/{dataTransform-0bcb6042.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-a55689bf.js → getDynamicHealthTool-0465f7c4.js} +4 -4
- package/build/esm/{getSocialList-918a05e4.js → getSocialList-332f3b07.js} +4 -4
- package/build/esm/hooks.js +17 -17
- package/build/esm/i18n-values/id-ID.js +1 -1
- package/build/esm/i18n-values/km-KH.js +1 -1
- package/build/esm/i18n-values/ms-MY.js +1 -1
- package/build/esm/i18n-values/my-MM.js +1 -1
- package/build/esm/i18n-values/th-TH.js +1 -1
- package/build/esm/i18n-values/tl-PH.js +1 -1
- package/build/esm/i18n-values/vi-VN.js +1 -1
- package/build/esm/i18n-values/zh-TW.js +1 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-8f75a052.js → index-05f62597.js} +12 -12
- package/build/esm/{index-c82ef63d.js → index-0b997c18.js} +2 -2
- package/build/esm/{index-f7b2cf2b.js → index-0d6c85cf.js} +10 -10
- package/build/esm/{index-01f5218f.js → index-0ea9b42c.js} +32 -32
- package/build/esm/{index-de5fbde2.js → index-251e9c68.js} +5 -5
- package/build/esm/{index-5a9b98ee.js → index-34682a6e.js} +2 -2
- package/build/esm/{index-bbaa196e.js → index-353fd37d.js} +6 -6
- package/build/esm/{index-43885bfb.js → index-45eb8295.js} +3 -3
- package/build/esm/{index-3eade222.js → index-4d3ff457.js} +4 -4
- package/build/esm/{index-e9e548e7.js → index-576eefff.js} +1 -1
- package/build/esm/{index-10423264.js → index-57a7a3e6.js} +11 -11
- package/build/esm/{index-0730cb03.js → index-604a2f74.js} +2 -2
- package/build/esm/{index-1bbc81b2.js → index-638bd74d.js} +2 -2
- package/build/esm/{index-e5356e0c.js → index-663ce8ad.js} +228 -191
- package/build/esm/{index-950a89f0.js → index-746c355d.js} +2 -2
- package/build/esm/{index-f4d48e7c.js → index-7872ac55.js} +10 -10
- package/build/esm/{index-8393482c.js → index-988f9bc7.js} +2 -2
- package/build/esm/{index-8ff9e988.js → index-b0e0fbe0.js} +2 -2
- package/build/esm/{index-72b59998.js → index-baff4b23.js} +4 -4
- package/build/esm/{index-5b5db772.js → index-cddd0673.js} +405 -835
- package/build/esm/{index-f19ef956.js → index-e8cc5934.js} +9 -9
- package/build/esm/{index-49cc4e66.js → index-f53544db.js} +2 -2
- package/build/esm/{index-c9f15b6f.js → index-f8020b17.js} +4 -4
- package/build/esm/{index-de0b462c.js → index-ff8c9d5e.js} +2 -2
- package/build/esm/index.js +65 -67
- package/build/esm/{index.styled-03c6007b.js → index.styled-81557262.js} +2 -2
- package/build/esm/{index.styles-950cf52f.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-de0894b8.js → routing-b4329fc1.js} +2 -2
- package/build/esm/subot.js +22 -22
- package/build/esm/together.js +34 -34
- package/build/esm/{types-af32dd4c.js → types-511b9222.js} +13 -13
- package/build/esm/{types-ebd078bc.js → types-c75135fe.js} +30 -30
- package/build/esm/types.js +1 -1
- package/build/esm/{useCategory-e0237136.js → useCategory-68e4bda3.js} +5 -5
- package/build/esm/{useHealthToolCache-7e55185d.js → useHealthToolCache-c3daa804.js} +2 -2
- package/build/esm/{useMantineLocale-39bfcb4d.js → useMantineLocale-0143b7da.js} +3 -3
- package/build/esm/{usePlacesAutocomplete-5a5d482c.js → usePlacesAutocomplete-db17e379.js} +1 -1
- package/build/esm/{useTranslations-bd5502b7.js → useTranslations-1ed73aa5.js} +1 -1
- package/build/esm/{utils-86ffeab3.js → utils-4ac92073.js} +1 -1
- package/build/esm/{utils-f28f8d21.js → utils-9ad73105.js} +4 -4
- package/build/esm/{utils-0966b189.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-0d6713bf.js → getDynamicHealthTool-b52ab59e.js} +4 -4
- package/build/{getSocialList-e5aa2ff7.js → getSocialList-1196e062.js} +4 -4
- package/build/hooks.js +17 -17
- package/build/i18n-values/id-ID.js +1 -1
- package/build/i18n-values/km-KH.js +1 -1
- package/build/i18n-values/ms-MY.js +1 -1
- package/build/i18n-values/my-MM.js +1 -1
- package/build/i18n-values/th-TH.js +1 -1
- package/build/i18n-values/tl-PH.js +1 -1
- package/build/i18n-values/vi-VN.js +1 -1
- package/build/i18n-values/zh-TW.js +1 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-f1afe37f.js → index-0ef5fb7b.js} +5 -5
- package/build/{index-599b38dd.js → index-28e41405.js} +2 -2
- package/build/{index-5efe02fe.js → index-3164239a.js} +2 -2
- package/build/{index-c0627e2c.js → index-377ec4b5.js} +9 -9
- package/build/{index-554d9614.js → index-3ea447ec.js} +2 -2
- package/build/{index-f43223d7.js → index-59a03ee5.js} +2 -2
- package/build/{index-75f66b73.js → index-5abdda03.js} +4 -4
- package/build/{index-2dd59c7f.js → index-5dd6ca2b.js} +2 -2
- package/build/{index-840d7784.js → index-5f79500b.js} +2 -2
- package/build/{index-56ebc3c0.js → index-65a70d84.js} +2 -2
- package/build/{index-9e48430e.js → index-7344f1c2.js} +2 -2
- package/build/{index-c363f6b0.js → index-7fdcece5.js} +10 -10
- package/build/{index-930490b6.js → index-839fc4d7.js} +3 -3
- package/build/{index-e94d8fc3.js → index-862b85ee.js} +214 -183
- package/build/{index-c3f73a4d.js → index-8fde4d03.js} +12 -12
- package/build/{index-c95ec192.js → index-a1c28eba.js} +1 -1
- package/build/{index-2faf9fb0.js → index-a8450c08.js} +11 -11
- package/build/{index-20b11d3c.js → index-b6163fc1.js} +398 -827
- package/build/{index-c4e64941.js → index-c698c565.js} +9 -9
- package/build/{index-dd4e16ff.js → index-c715aa7e.js} +4 -4
- package/build/{index-9a9b0f4c.js → index-cef9f4c3.js} +6 -6
- package/build/{index-7cdd7861.js → index-d737b1fb.js} +2 -2
- package/build/{index-6a930317.js → index-d8d1a000.js} +4 -4
- package/build/{index-aa71b901.js → index-dfbd3e9f.js} +32 -32
- package/build/index.js +66 -67
- package/build/{index.styled-76b0da80.js → index.styled-3d074d06.js} +2 -2
- package/build/{index.styles-3003e63e.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-2d227970.js → routing-89950c42.js} +2 -2
- package/build/subot.js +22 -22
- package/build/together.js +34 -34
- package/build/{types-da9c5d86.js → types-31c2a9ae.js} +13 -13
- package/build/{types-0f65b2a5.js → types-3950841d.js} +30 -30
- package/build/types.js +1 -1
- package/build/{useCategory-a50da042.js → useCategory-5daa9df5.js} +5 -5
- package/build/{useHealthToolCache-4a695b1d.js → useHealthToolCache-b077e564.js} +2 -2
- package/build/{useMantineLocale-71cf4d6c.js → useMantineLocale-36d8cc0e.js} +3 -3
- package/build/{usePlacesAutocomplete-2add26e6.js → usePlacesAutocomplete-bf982b9b.js} +1 -1
- package/build/{useTranslations-0d5204fb.js → useTranslations-88508475.js} +1 -1
- package/build/{utils-5366ac41.js → utils-5fb09c5a.js} +1 -1
- package/build/{utils-3aa45436.js → utils-a06b2158.js} +4 -4
- package/build/{utils-f0f0e055.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-99141b34.js +0 -32
- package/build/esm/types-f5618480.js +0 -21
- package/build/index-bbe26f9e.js +0 -38
- package/build/types-9797b47f.js +0 -24
- /package/build/{BMI_BOYS.percentile.monthly-9c29a23f.js → BMI_BOYS.percentile.monthly-ffb08f65.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-96f661ae.js → BMI_BOYS.percentile.weekly-ec67979e.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-3bdab2f0.js → BMI_BOYS.percentile.yearly-9d273e2f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-576e7055.js → BMI_BOYS.zscore.monthly-bb7aadce.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-bacea677.js → BMI_BOYS.zscore.weekly-1b7b882b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-2c3c59f4.js → BMI_BOYS.zscore.yearly-52d70f25.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-794fd475.js → BMI_GIRLS.percentile.monthly-9a2eeb52.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-b2c08cba.js → BMI_GIRLS.percentile.weekly-3860e560.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-2369520b.js → BMI_GIRLS.percentile.yearly-6bf2ed05.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-b3053357.js → BMI_GIRLS.zscore.monthly-1ee53921.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-9123455b.js → BMI_GIRLS.zscore.weekly-c474d29d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-2b6af718.js → BMI_GIRLS.zscore.yearly-d380a8c5.js} +0 -0
- /package/build/{ChevronDown-ab3567be.js → ChevronDown-88afe3da.js} +0 -0
- /package/build/{Close-1ac64b3b.js → Close-53d986dd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-55995aba.js → HEAD CIRCUM_BOYS.percentile.monthly-7eb0b785.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-167404f2.js → HEAD CIRCUM_BOYS.percentile.weekly-11b96f8f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e2dc4904.js → HEAD CIRCUM_BOYS.percentile.yearly-1b1f8d08.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-03d67857.js → HEAD CIRCUM_BOYS.zscore.monthly-59e3b087.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0efc7ef7.js → HEAD CIRCUM_BOYS.zscore.weekly-ccbb5e5e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-32379b73.js → HEAD CIRCUM_BOYS.zscore.yearly-365a9c7f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-7b841b10.js → HEAD CIRCUM_GIRLS.percentile.monthly-7fc335ff.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-04a27573.js → HEAD CIRCUM_GIRLS.percentile.weekly-060ac259.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-2f548873.js → HEAD CIRCUM_GIRLS.percentile.yearly-d9c8e997.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-4aa8ecd1.js → HEAD CIRCUM_GIRLS.zscore.monthly-d4b13867.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-1d41c48e.js → HEAD CIRCUM_GIRLS.zscore.weekly-14112cc3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-006fcbf4.js → HEAD CIRCUM_GIRLS.zscore.yearly-9e768d23.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-d59cc011.js → HEIGHT_BOYS.percentile.monthly-9a4d2772.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-eb992e20.js → HEIGHT_BOYS.percentile.weekly-79f83747.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-4a18ec0a.js → HEIGHT_BOYS.percentile.yearly-8ff7e47f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-7e42c513.js → HEIGHT_BOYS.zscore.monthly-079ccbfb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-d9649c9d.js → HEIGHT_BOYS.zscore.weekly-952a0515.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-c13343c2.js → HEIGHT_BOYS.zscore.yearly-a2ba64ad.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-b0f01700.js → HEIGHT_GIRLS.percentile.monthly-a578480c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d8a1128d.js → HEIGHT_GIRLS.percentile.weekly-356af15f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d206f236.js → HEIGHT_GIRLS.percentile.yearly-4c3682a1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f1e0683f.js → HEIGHT_GIRLS.zscore.monthly-c8759031.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-91c33876.js → HEIGHT_GIRLS.zscore.weekly-4ef46a0b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-9298c292.js → HEIGHT_GIRLS.zscore.yearly-6d7e0a8a.js} +0 -0
- /package/build/{Visible-b23b4e5e.js → Visible-ad8392df.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d7ed5bb7.js → WEIGHT_BOYS.percentile.monthly-daa2efd4.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-0dc7da2d.js → WEIGHT_BOYS.percentile.weekly-b5a5b9bb.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-2aa798d5.js → WEIGHT_BOYS.percentile.yearly-f7609843.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-d6984192.js → WEIGHT_BOYS.zscore.monthly-2f750f0e.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-e0bb799a.js → WEIGHT_BOYS.zscore.weekly-c4ff9057.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-d91c8d5e.js → WEIGHT_BOYS.zscore.yearly-2588a17d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-c7f7790e.js → WEIGHT_GIRLS.percentile.monthly-b58279ad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e3af1820.js → WEIGHT_GIRLS.percentile.weekly-ab2d7852.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-74add497.js → WEIGHT_GIRLS.percentile.yearly-b7ba7e4c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-8e41c166.js → WEIGHT_GIRLS.zscore.monthly-b1752d2d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-073e2cd7.js → WEIGHT_GIRLS.zscore.weekly-8eba155e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-78c9204e.js → WEIGHT_GIRLS.zscore.yearly-a52bebca.js} +0 -0
- /package/build/{animation-91a940d2.js → animation-6f30cb05.js} +0 -0
- /package/build/{cart-02be64fb.js → cart-4a2718b1.js} +0 -0
- /package/build/{cookieHelper-7c9b676f.js → cookieHelper-e52ef565.js} +0 -0
- /package/build/{doctor-851e4987.js → doctor-c4e9c3d5.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-a8a076e4.js → BMI_BOYS.percentile.monthly-f9a24f1a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-0a4f1706.js → BMI_BOYS.percentile.weekly-9b068394.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-f6bc63ed.js → BMI_BOYS.percentile.yearly-8f9817f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-f96baf3f.js → BMI_BOYS.zscore.monthly-ca5090c9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-cd7251e3.js → BMI_BOYS.zscore.weekly-2ac0171a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-14af9b25.js → BMI_BOYS.zscore.yearly-c8f877f2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-4115b04e.js → BMI_GIRLS.percentile.monthly-91bfffa4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-427d0c38.js → BMI_GIRLS.percentile.weekly-968bc42c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-5e2fb4d2.js → BMI_GIRLS.percentile.yearly-234ad4bd.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-3d99b0c4.js → BMI_GIRLS.zscore.monthly-c7684196.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-019b691f.js → BMI_GIRLS.zscore.weekly-fda37cd4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-752c6960.js → BMI_GIRLS.zscore.yearly-4a8a2143.js} +0 -0
- /package/build/esm/{ChevronDown-826c3008.js → ChevronDown-40401701.js} +0 -0
- /package/build/esm/{Close-6556a9d3.js → Close-7865ad11.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-58d890f5.js → HEAD CIRCUM_BOYS.percentile.monthly-561fdcd4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-24909132.js → HEAD CIRCUM_BOYS.percentile.weekly-fad738be.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-c04c72eb.js → HEAD CIRCUM_BOYS.percentile.yearly-c17a811a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4a3999ca.js → HEAD CIRCUM_BOYS.zscore.monthly-b088fb23.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-05165bfa.js → HEAD CIRCUM_BOYS.zscore.weekly-c84c5040.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-885634b1.js → HEAD CIRCUM_BOYS.zscore.yearly-c07af658.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-fb465e77.js → HEAD CIRCUM_GIRLS.percentile.monthly-02f1fe89.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-8c2acdce.js → HEAD CIRCUM_GIRLS.percentile.weekly-4fb8f592.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-cb968e5d.js → HEAD CIRCUM_GIRLS.percentile.yearly-6f94d285.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-2ef05e20.js → HEAD CIRCUM_GIRLS.zscore.monthly-3a39a9ef.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c2993a6c.js → HEAD CIRCUM_GIRLS.zscore.weekly-5598bd91.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-9a74bede.js → HEAD CIRCUM_GIRLS.zscore.yearly-55d0e1c5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-a0da4191.js → HEIGHT_BOYS.percentile.monthly-850ec09b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-caec0d42.js → HEIGHT_BOYS.percentile.weekly-ff524192.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-2be15d1b.js → HEIGHT_BOYS.percentile.yearly-a1192bc6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-1965edc0.js → HEIGHT_BOYS.zscore.monthly-6d6118bd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-708c3621.js → HEIGHT_BOYS.zscore.weekly-080f7d2b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-1abd5dfb.js → HEIGHT_BOYS.zscore.yearly-4ae02176.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-ddb1b694.js → HEIGHT_GIRLS.percentile.monthly-9e7c1213.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-b0b20da2.js → HEIGHT_GIRLS.percentile.weekly-7ee03e8c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-2c8e4d29.js → HEIGHT_GIRLS.percentile.yearly-d6056508.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-437c60a7.js → HEIGHT_GIRLS.zscore.monthly-ae5b73cc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-7f347a2a.js → HEIGHT_GIRLS.zscore.weekly-cbdb7ea1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-d2a7a9eb.js → HEIGHT_GIRLS.zscore.yearly-f90bb72a.js} +0 -0
- /package/build/esm/{Visible-6156bcfb.js → Visible-b3c0ac79.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-69e1a4a9.js → WEIGHT_BOYS.percentile.monthly-5860cd35.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-05c08720.js → WEIGHT_BOYS.percentile.weekly-51f39ba4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-92a2a723.js → WEIGHT_BOYS.percentile.yearly-8af6da0b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-85e4c1e7.js → WEIGHT_BOYS.zscore.monthly-0e3e59eb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-2f6ac430.js → WEIGHT_BOYS.zscore.weekly-a43864fd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bf024500.js → WEIGHT_BOYS.zscore.yearly-2fd4a6c2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-2b9a6954.js → WEIGHT_GIRLS.percentile.monthly-7a30cec6.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-19ea6986.js → WEIGHT_GIRLS.percentile.weekly-72814fe3.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-16570444.js → WEIGHT_GIRLS.percentile.yearly-3618eb8f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9dd7c0c0.js → WEIGHT_GIRLS.zscore.monthly-e0729681.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-4dd02687.js → WEIGHT_GIRLS.zscore.weekly-70dac28a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-5019803e.js → WEIGHT_GIRLS.zscore.yearly-51010d29.js} +0 -0
- /package/build/esm/{animation-a05a22f3.js → animation-846a3492.js} +0 -0
- /package/build/esm/{cart-a793ef3f.js → cart-7fd7d530.js} +0 -0
- /package/build/esm/{cookieHelper-8fe37cb2.js → cookieHelper-bc14538c.js} +0 -0
- /package/build/esm/{doctor-59dfb281.js → doctor-5502d454.js} +0 -0
- /package/build/esm/{index-ddb4c753.js → index-893ee6c2.js} +0 -0
- /package/build/esm/{index-7be202e4.js → index-aa5d9b56.js} +0 -0
- /package/build/esm/{index-e11a78d9.js → index-c621a102.js} +0 -0
- /package/build/esm/{index-32e9928d.js → index-fb359845.js} +0 -0
- /package/build/esm/{isProduction-5b5083e1.js → isProduction-8b94b2e8.js} +0 -0
- /package/build/esm/{localizeNumberFormat-b9b1c494.js → localizeNumberFormat-c4cb7a3d.js} +0 -0
- /package/build/esm/{normalizeLink-c21ecec7.js → normalizeLink-8ec944ea.js} +0 -0
- /package/build/esm/{number-7565570e.js → number-a62f57cd.js} +0 -0
- /package/build/esm/{paths-9905ad52.js → paths-5635c7aa.js} +0 -0
- /package/build/esm/{theme-9b3c5ce8.js → theme-4a099635.js} +0 -0
- /package/build/esm/{translationsContext-8634b4e4.js → translationsContext-d6309014.js} +0 -0
- /package/build/esm/{tslib.es6-2805eb0d.js → tslib.es6-059585f8.js} +0 -0
- /package/build/esm/{useIsInit-0832d735.js → useIsInit-1795ce28.js} +0 -0
- /package/build/esm/{useOutsideClick-6e8f0827.js → useOutsideClick-0b2f39ea.js} +0 -0
- /package/build/esm/{useScrollbarSize-5621f902.js → useScrollbarSize-2691a669.js} +0 -0
- /package/build/esm/{useUniqueId-bfe0477d.js → useUniqueId-19a128f0.js} +0 -0
- /package/build/esm/{utils-1c4436fb.js → utils-36a2e88c.js} +0 -0
- /package/build/{index-2efdd30f.js → index-438cd223.js} +0 -0
- /package/build/{index-811930df.js → index-a42fdce3.js} +0 -0
- /package/build/{index-38c9426b.js → index-e124055f.js} +0 -0
- /package/build/{index-96d1c81a.js → index-eef67236.js} +0 -0
- /package/build/{isProduction-c6eef4f7.js → isProduction-e5d35ff7.js} +0 -0
- /package/build/{localizeNumberFormat-42e3f6c8.js → localizeNumberFormat-89cf3c66.js} +0 -0
- /package/build/{normalizeLink-19e85c9c.js → normalizeLink-ec8d5cd0.js} +0 -0
- /package/build/{number-31b56185.js → number-fe5b817c.js} +0 -0
- /package/build/{paths-d896f18f.js → paths-ecacd73d.js} +0 -0
- /package/build/{theme-c301ffa8.js → theme-3d64c4bb.js} +0 -0
- /package/build/{translationsContext-59e2a34f.js → translationsContext-c38c15c8.js} +0 -0
- /package/build/{tslib.es6-deb50113.js → tslib.es6-e9ceb687.js} +0 -0
- /package/build/{useIsInit-61e5469b.js → useIsInit-02f88206.js} +0 -0
- /package/build/{useOutsideClick-b3444568.js → useOutsideClick-18d6bbd9.js} +0 -0
- /package/build/{useScrollbarSize-8b676ee5.js → useScrollbarSize-d5111bfe.js} +0 -0
- /package/build/{useUniqueId-11121d45.js → useUniqueId-fa63e86f.js} +0 -0
- /package/build/{utils-552ff173.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({
|