@hhgtech/hhg-components 1.29.567-beta-2 → 1.29.568
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-16952a6c.js → InputDate-5d68d6d6.js} +8 -8
- package/build/{LastPeriod-3e72cc10.js → LastPeriod-85373df2.js} +1 -1
- package/build/{MobileBottomNavigationIcon-28dd33ab.js → MobileBottomNavigationIcon-f90b397b.js} +3 -3
- package/build/{SiteWideBanner-47cc1c7d.js → SiteWideBanner-c3a3aa9c.js} +13 -13
- package/build/{Spinner-d03ec234.js → Spinner-89b1408f.js} +1 -1
- package/build/{WhatsApp-264e0c50.js → WhatsApp-61c7eb4a.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/appearance-a27c939a.js +38 -0
- package/build/atoms.js +53 -58
- package/build/babyGrowth.js +86 -85
- package/build/cache.js +2 -2
- package/build/care.js +21 -21
- package/build/careBookingSearchBar.js +13 -13
- package/build/careBookingSearchBarV2.js +18 -18
- package/build/components/atoms/datePickerV2/DatePickerInput.d.ts +5 -6
- package/build/components/atoms/datePickerV2/date-picker-v2-calendar-panel.d.ts +11 -0
- package/build/components/atoms/datePickerV2/helpers.d.ts +27 -29
- package/build/components/atoms/datePickerV2/index.d.ts +4 -8
- package/build/components/atoms/datePickerV2/index.styled.d.ts +18 -6
- package/build/components/mantine/datepicker/appearance.d.ts +35 -0
- package/build/components/molecules/datePicker/helpers.d.ts +2 -0
- package/build/components.js +111 -116
- package/build/{constants-ad043b51.js → constants-7f21df7a.js} +1 -1
- package/build/{constants-541de17c.js → constants-a29cfde7.js} +1 -1
- package/build/constants.js +2 -2
- package/build/constantsRiskScreener.js +1 -1
- package/build/constantsSite.js +1 -1
- package/build/{core-f24c1352.js → core-addaef80.js} +1 -1
- package/build/{dataTransform-b774a32c.js → dataTransform-c3845bc5.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-67cb8bf3.js → editor-b009232c.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +25 -24
- package/build/embeddedHeathToolCards_babyPoop.js +21 -21
- package/build/embeddedHeathToolCards_babyVaccine.js +25 -27
- package/build/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +25 -27
- package/build/embeddedHeathToolCards_helpers.js +2 -2
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +25 -27
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +30 -32
- package/build/esm/{InputDate-586a5896.js → InputDate-250b5c0b.js} +7 -7
- package/build/esm/{LastPeriod-22c39fab.js → LastPeriod-a17abf30.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-5a352482.js → MobileBottomNavigationIcon-5d4e2233.js} +3 -3
- package/build/esm/{SiteWideBanner-f4706c43.js → SiteWideBanner-afa64073.js} +13 -13
- package/build/esm/{Spinner-a77c1e1e.js → Spinner-b09419c7.js} +1 -1
- package/build/esm/{WhatsApp-a73993e8.js → WhatsApp-1287d4f0.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/appearance-dbbab6fd.js +33 -0
- package/build/esm/atoms.js +53 -55
- package/build/esm/babyGrowth.js +86 -85
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +21 -21
- package/build/esm/careBookingSearchBar.js +13 -13
- package/build/esm/careBookingSearchBarV2.js +18 -18
- package/build/esm/components/atoms/datePickerV2/DatePickerInput.d.ts +5 -6
- package/build/esm/components/atoms/datePickerV2/date-picker-v2-calendar-panel.d.ts +11 -0
- package/build/esm/components/atoms/datePickerV2/helpers.d.ts +27 -29
- package/build/esm/components/atoms/datePickerV2/index.d.ts +4 -8
- package/build/esm/components/atoms/datePickerV2/index.styled.d.ts +18 -6
- package/build/esm/components/mantine/datepicker/appearance.d.ts +35 -0
- package/build/esm/components/molecules/datePicker/helpers.d.ts +2 -0
- package/build/esm/components.js +111 -113
- package/build/esm/{constants-f3655eec.js → constants-2e283292.js} +1 -1
- package/build/esm/{constants-01414f26.js → constants-623de0b8.js} +1 -1
- package/build/esm/constants.js +2 -2
- package/build/esm/constantsRiskScreener.js +1 -1
- package/build/esm/constantsSite.js +1 -1
- package/build/esm/{core-1df026e9.js → core-a0f7910b.js} +1 -1
- package/build/esm/{dataTransform-6f608409.js → dataTransform-a7b68923.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-2cfeaf6d.js → editor-d110203d.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +25 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +21 -21
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +25 -27
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +25 -27
- package/build/esm/embeddedHeathToolCards_helpers.js +2 -2
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +25 -27
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +30 -32
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{healthTools-d7f4ff5c.js → healthTools-f9efbce2.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +42 -44
- package/build/esm/{helpers-b7e5bd81.js → helpers-37cb0fbf.js} +1 -1
- package/build/esm/hooks.js +14 -14
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-5baf0f98.js → index-1704be2b.js} +17 -17
- package/build/esm/{index-411399cd.js → index-172386b5.js} +1 -1
- package/build/esm/{index-b5c54bb4.js → index-18ca80de.js} +34 -34
- package/build/esm/{index-34135bb0.js → index-1928de3a.js} +3 -3
- package/build/esm/{index-88974c03.js → index-192a738d.js} +2 -2
- package/build/esm/{index-dbcc3c14.js → index-19f4b5e8.js} +29 -29
- package/build/esm/{index-30e94681.js → index-1a26a66f.js} +3 -3
- package/build/esm/{index-093c24d3.js → index-1bd2415d.js} +14 -14
- package/build/esm/{index-24585de3.js → index-2473ae33.js} +6 -6
- package/build/esm/{index-273416c0.js → index-260fb6cf.js} +1 -1
- package/build/esm/{index-1cfaf6b1.js → index-2d241660.js} +2 -2
- package/build/esm/{index-6297d26a.js → index-324caf19.js} +2 -2
- package/build/esm/{index-c5b0ed29.js → index-32d38856.js} +26 -40
- package/build/esm/{index-ae8af2d0.js → index-363374f6.js} +2 -2
- package/build/esm/{index-384d2069.js → index-3bcf9113.js} +16 -16
- package/build/esm/{index-f6ba0de2.js → index-3da3e3bb.js} +2 -2
- package/build/esm/{index-9ae3c9fb.js → index-3db50781.js} +2 -2
- package/build/esm/{index-f39f5739.js → index-3eb6af56.js} +3 -3
- package/build/esm/{index-aaecac13.js → index-3f5230a0.js} +4 -4
- package/build/esm/{index-1aaa109b.js → index-418426ed.js} +6 -6
- package/build/esm/index-423288a4.js +662 -0
- package/build/esm/{index-ec0a9dce.js → index-46f400b5.js} +19 -19
- package/build/esm/{index-90c848b1.js → index-4a6c8eed.js} +1 -1
- package/build/esm/{index-fe942a24.js → index-4c3b4f92.js} +15 -15
- package/build/esm/{index-f4cac6eb.js → index-4dc1b46c.js} +2 -2
- package/build/esm/{index-ed3aa604.js → index-5137b582.js} +13 -13
- package/build/esm/{index-e8323d0a.js → index-52bc4262.js} +2 -2
- package/build/esm/{index-a0d66146.js → index-52bc69ac.js} +17 -17
- package/build/esm/{index-6a22b9dc.js → index-59dbaf55.js} +2 -2
- package/build/esm/{index-9413b8c5.js → index-5ae285bc.js} +3 -3
- package/build/esm/{index-a3a6aab0.js → index-5c32b0b1.js} +7 -7
- package/build/esm/{index-c7fe4937.js → index-5d3ea2b7.js} +9 -9
- package/build/esm/{index-4300330d.js → index-62c9b6cc.js} +19 -19
- package/build/esm/{index-1a8ab504.js → index-637e50e3.js} +2 -2
- package/build/esm/{index-3c4fec9b.js → index-651116e3.js} +2 -2
- package/build/esm/{index-7a4566db.js → index-66640bd9.js} +5 -5
- package/build/esm/{index-428ba4d3.js → index-6a8c9fd4.js} +1 -1
- package/build/esm/{index-70ef7c5f.js → index-76e81932.js} +16 -16
- package/build/esm/{index-8b09633f.js → index-7d775123.js} +17 -17
- package/build/esm/{index-22fb7341.js → index-7df2e7a0.js} +2 -2
- package/build/esm/{index-8eb4deb4.js → index-7f977e99.js} +8 -12
- package/build/esm/{index-d88ecf7d.js → index-84f8ebe6.js} +2 -2
- package/build/esm/{index-d84646ca.js → index-8533afdc.js} +14 -14
- package/build/esm/{index-190c1c3b.js → index-85d32439.js} +13 -13
- package/build/esm/{index-d802036f.js → index-87efada6.js} +7 -7
- package/build/esm/{index-2f657683.js → index-891c1f0a.js} +22 -22
- package/build/esm/{index-9896f62b.js → index-8b7063c4.js} +31 -31
- package/build/esm/{index-ebf61ce7.js → index-8b96ad24.js} +3 -3
- package/build/esm/{index-3a0023d0.js → index-9331eda1.js} +17 -17
- package/build/esm/{index-6cc59c36.js → index-9696667e.js} +13 -13
- package/build/esm/{index-37df6ffc.js → index-a2f8bb0f.js} +1 -1
- package/build/esm/{index-028c41b1.js → index-a4df53ae.js} +21 -21
- package/build/esm/{index-78e9e154.js → index-ab4aaff2.js} +1 -1
- package/build/esm/{index-d215f536.js → index-b0d5ea7e.js} +3 -3
- package/build/esm/{index-8cfb5acc.js → index-b2b26704.js} +31 -31
- package/build/esm/{index-0a708dbe.js → index-b5e36f70.js} +2 -2
- package/build/esm/{index-6432d682.js → index-ba5ecb39.js} +12 -12
- package/build/esm/{index-cdf46754.js → index-c0e0068b.js} +3 -3
- package/build/esm/{index-e376abd2.js → index-c4916bf8.js} +1 -1
- package/build/esm/{index-7a971531.js → index-cfda0787.js} +2 -2
- package/build/esm/{index-e2c9da23.js → index-d1298e2c.js} +17 -17
- package/build/esm/{index-9e35d4be.js → index-d16048f7.js} +18 -18
- package/build/esm/{index-77f9376e.js → index-d40cbd71.js} +16 -16
- package/build/esm/{index-bd7d0f9d.js → index-d622adb7.js} +3 -3
- package/build/esm/{index-f9a0d18c.js → index-d8b25794.js} +2 -2
- package/build/esm/{index-4a9c0b10.js → index-dc773182.js} +6 -6
- package/build/esm/{index-5167a9e1.js → index-e1d5ddcd.js} +5 -5
- package/build/esm/{index-e0ae8e85.js → index-e40de511.js} +7 -7
- package/build/esm/{index-aac21bd6.js → index-e4197fec.js} +2 -2
- package/build/esm/{index-6ff4ad0e.js → index-e57e7dcb.js} +7 -7
- package/build/esm/{index-7c8ab7f0.js → index-ecd088c2.js} +2 -2
- package/build/esm/{index-a3ad0876.js → index-f39666b9.js} +20 -20
- package/build/esm/{index-b4d87247.js → index-fe6c0be6.js} +24 -24
- package/build/esm/index.js +131 -133
- package/build/esm/{labelSorting-ef362cb4.js → labelSorting-fd6b3bdd.js} +4 -4
- package/build/esm/lead/LeadGenTranslationContext.d.ts +1 -4
- package/build/esm/lead/i18n/index.d.ts +1 -1
- package/build/esm/lead/index.d.ts +40 -2
- package/build/esm/lead.js +5674 -642
- package/build/esm/{logoIcon-b3648dab.js → logoIcon-9e4048be.js} +2 -2
- package/build/esm/mantine.js +27 -26
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +3 -3
- package/build/esm/miscGetSocialList.js +6 -6
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +86 -88
- package/build/esm/moleculesArticleCard.js +5 -5
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +50 -50
- package/build/esm/navigationLogoutPopup.js +10 -10
- package/build/esm/navigationProfileButton.js +26 -26
- package/build/esm/onboardingV2.js +30 -29
- package/build/esm/organisms.js +63 -63
- package/build/esm/{post-f85200c5.js → post-e60bccc1.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/index.d.ts +2 -4
- package/build/esm/ssoV2.js +46 -46
- package/build/esm/{store-a7a5c8e6.js → store-a91c686d.js} +3 -4
- package/build/esm/subot/index.d.ts +0 -1
- package/build/esm/subot/subotInline/index.d.ts +1 -1
- package/build/esm/subot/subotInline/subotInline.config.d.ts +0 -3
- package/build/esm/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/esm/subot/subotInlineRevamp/types.d.ts +0 -12
- package/build/esm/subot/subotInlineRevamp/utils.d.ts +2 -4
- package/build/esm/subot.js +70 -107
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-e47097fc.js → surveyThankyouCard-ddbdf7aa.js} +5 -5
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +6 -6
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +6 -6
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +20 -20
- package/build/esm/togetherShareBox.js +12 -12
- package/build/esm/{transform-1e45f8cf.js → transform-dc32a084.js} +40 -168
- package/build/esm/{translationsProvider-46a9b414.js → translationsProvider-21671cda.js} +1 -1
- package/build/esm/{treePopoverMenu-108cbbd7.js → treePopoverMenu-9213f85e.js} +18 -18
- package/build/esm/{types-cc6fa8ec.js → types-b3a90d44.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCartCareService-bf840ca9.js → useCartCareService-69ffd9c2.js} +1 -1
- package/build/esm/{useHealthToolCache-06ab9bab.js → useHealthToolCache-fe96bece.js} +1 -1
- package/build/esm/{usePhoneValidator-fdf69560.js → usePhoneValidator-8d506a04.js} +4 -4
- package/build/esm/{usePlacesAutocomplete-b2cd114b.js → usePlacesAutocomplete-ea37f364.js} +1 -1
- package/build/esm/{useResolvedCaptureUrls-b6a4c452.js → useResolvedCaptureUrls-77d05a0b.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-5a68a1b0.js → utils-0583a8a5.js} +2 -2
- package/build/esm/{utils-6dad1238.js → utils-2b7fd2a2.js} +1 -1
- package/build/esm/{utils-7ae1ea3d.js → utils-a443dbca.js} +4 -4
- package/build/esm/{utils-91bb99ef.js → utils-e4655d57.js} +5 -5
- package/build/esm/{utils-ecf18619.js → utils-f810db6c.js} +4 -4
- package/build/esm/vaccination.js +22 -21
- package/build/footer.js +22 -22
- package/build/gAssets.js +1 -1
- package/build/{healthTools-396edb10.js → healthTools-7569edd0.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +42 -44
- package/build/{helpers-a331ad64.js → helpers-05cbcb94.js} +1 -1
- package/build/hooks.js +14 -14
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-3a7d4f2e.js → index-01c166dc.js} +5 -5
- package/build/{index-792cdbcc.js → index-034fa8ee.js} +6 -6
- package/build/{index-d76b9c69.js → index-04253a71.js} +3 -3
- package/build/{index-8dba5040.js → index-045a912c.js} +1 -1
- package/build/{index-7c45e8fb.js → index-080d0976.js} +1 -1
- package/build/{index-62d4d236.js → index-0b6fdcc5.js} +24 -24
- package/build/{index-7fbb2a87.js → index-0bc29f2a.js} +2 -2
- package/build/{index-5346f94a.js → index-0c636ec3.js} +17 -17
- package/build/{index-a11e2981.js → index-0cea9486.js} +14 -14
- package/build/{index-aeb128a9.js → index-0f0cdd25.js} +16 -16
- package/build/{index-6e690d2d.js → index-14e36716.js} +3 -3
- package/build/{index-7d42a4af.js → index-17f2d09d.js} +20 -20
- package/build/{index-16af7f18.js → index-1b17d3e9.js} +3 -3
- package/build/{index-445c9a53.js → index-2d8be724.js} +1 -1
- package/build/{index-724a968a.js → index-317e2e05.js} +2 -2
- package/build/{index-db0dbf62.js → index-31bf3972.js} +2 -2
- package/build/{index-8981d733.js → index-32e06ac3.js} +2 -2
- package/build/{index-ed628694.js → index-3a8d1456.js} +2 -2
- package/build/{index-5b631551.js → index-3e8f6fde.js} +2 -2
- package/build/{index-f02323ca.js → index-3f09b3f4.js} +14 -14
- package/build/{index-a5b6ec13.js → index-4298694e.js} +2 -2
- package/build/{index-edb96b9e.js → index-4456aec4.js} +3 -3
- package/build/{index-691519e5.js → index-44e516db.js} +1 -1
- package/build/{index-e463fca5.js → index-45a7081c.js} +4 -4
- package/build/{index-f7dee6e0.js → index-47b4e43f.js} +2 -2
- package/build/{index-db47483b.js → index-49e4519c.js} +17 -17
- package/build/{index-3d981ed3.js → index-4a3957b4.js} +9 -9
- package/build/{index-438001e7.js → index-4f140233.js} +22 -22
- package/build/{index-aba5f27c.js → index-554cf58e.js} +31 -31
- package/build/{index-2dbf0a9b.js → index-58aebfd7.js} +1 -1
- package/build/{index-385b3050.js → index-5d1f83d7.js} +13 -13
- package/build/{index-4618264d.js → index-60704ab2.js} +8 -8
- package/build/{index-9f4ce9f4.js → index-615d5147.js} +2 -2
- package/build/{index-62bdd6b8.js → index-654bb60c.js} +25 -40
- package/build/{index-ec8a3677.js → index-6a05002d.js} +17 -17
- package/build/{index-9f8bcb30.js → index-6a9ca749.js} +1 -1
- package/build/{index-c68a7eb6.js → index-6af39013.js} +3 -3
- package/build/{index-98abef60.js → index-6be417d7.js} +7 -7
- package/build/{index-7433da7a.js → index-6c010755.js} +2 -2
- package/build/{index-3bbe389c.js → index-70d29c35.js} +16 -16
- package/build/{index-e508e6cb.js → index-74cf773b.js} +2 -2
- package/build/{index-5022244d.js → index-7831cf1c.js} +2 -2
- package/build/{index-e609356a.js → index-7f80ff7c.js} +34 -34
- package/build/{index-e0d724d1.js → index-80ecd48b.js} +2 -2
- package/build/{index-a14a82f8.js → index-916c7c7c.js} +3 -3
- package/build/{index-24f1439c.js → index-91a961cc.js} +30 -30
- package/build/{index-e66f78e2.js → index-925b1654.js} +31 -31
- package/build/{index-b7a8f9d8.js → index-98585708.js} +17 -17
- package/build/{index-dc334bad.js → index-9ca6eeaa.js} +7 -7
- package/build/{index-6bd5d1da.js → index-9cf8185d.js} +2 -2
- package/build/{index-a1f6accb.js → index-9dde5684.js} +14 -14
- package/build/{index-cb832e8d.js → index-a39f96ba.js} +12 -12
- package/build/{index-e2e3ce61.js → index-a54f14c5.js} +18 -18
- package/build/{index-5b630715.js → index-b136e505.js} +7 -7
- package/build/{index-84e5d4d6.js → index-b63e2afb.js} +6 -6
- package/build/{index-3b5d891f.js → index-b6693f0b.js} +21 -21
- package/build/{index-80b3cf2c.js → index-bfefd586.js} +2 -2
- package/build/{index-50bc68b4.js → index-c2ccd683.js} +3 -3
- package/build/{index-6e54e26b.js → index-c52715a6.js} +3 -3
- package/build/{index-6726aca7.js → index-c559f257.js} +8 -12
- package/build/{index-c0a43f81.js → index-ca3bde17.js} +7 -7
- package/build/{index-9d6f439c.js → index-d3037720.js} +13 -13
- package/build/{index-6648513a.js → index-da9d0ac9.js} +16 -16
- package/build/{index-fd06cb15.js → index-db698e79.js} +5 -5
- package/build/{index-ae61f8e4.js → index-e0a7197e.js} +20 -20
- package/build/{index-95ae31d3.js → index-e6e864d8.js} +2 -2
- package/build/{index-b3e883f9.js → index-e777aeaa.js} +2 -2
- package/build/index-ec4abfbf.js +672 -0
- package/build/{index-aad16cda.js → index-f00ab0b5.js} +2 -2
- package/build/{index-1512f07f.js → index-f6a15a45.js} +15 -15
- package/build/{index-6be309f8.js → index-fad95c19.js} +17 -17
- package/build/{index-04512593.js → index-fd6199fa.js} +19 -19
- package/build/{index-1669687a.js → index-ff5ade81.js} +1 -1
- package/build/index.js +131 -136
- package/build/{labelSorting-1844c416.js → labelSorting-68fca354.js} +4 -4
- package/build/lead/LeadGenTranslationContext.d.ts +1 -4
- package/build/lead/i18n/index.d.ts +1 -1
- package/build/lead/index.d.ts +40 -2
- package/build/lead.js +5704 -652
- package/build/{logoIcon-6f5f5693.js → logoIcon-4b39d3b4.js} +2 -2
- package/build/mantine.js +25 -24
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +3 -3
- package/build/miscGetSocialList.js +6 -6
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +86 -88
- package/build/moleculesArticleCard.js +5 -5
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +50 -50
- package/build/navigationLogoutPopup.js +10 -10
- package/build/navigationProfileButton.js +26 -26
- package/build/onboardingV2.js +29 -28
- package/build/organisms.js +63 -63
- package/build/{post-c7c1e562.js → post-15bd776a.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/index.d.ts +2 -4
- package/build/ssoV2.js +44 -44
- package/build/{store-5d9e3ee8.js → store-57ae262f.js} +3 -4
- package/build/subot/index.d.ts +0 -1
- package/build/subot/subotInline/index.d.ts +1 -1
- package/build/subot/subotInline/subotInline.config.d.ts +0 -3
- package/build/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/subot/subotInlineRevamp/types.d.ts +0 -12
- package/build/subot/subotInlineRevamp/utils.d.ts +2 -4
- package/build/subot.js +70 -107
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-f3b256da.js → surveyThankyouCard-135dd168.js} +5 -5
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +6 -6
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +6 -6
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +13 -13
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +20 -20
- package/build/togetherShareBox.js +12 -12
- package/build/{transform-baa2ac38.js → transform-949182ae.js} +99 -227
- package/build/{translationsProvider-69eb57aa.js → translationsProvider-3f3154a0.js} +1 -1
- package/build/{treePopoverMenu-6612e89a.js → treePopoverMenu-14922469.js} +18 -18
- package/build/{types-bd3b6910.js → types-f0f8c59d.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCartCareService-1103ff1b.js → useCartCareService-c146c47b.js} +1 -1
- package/build/{useHealthToolCache-35adcd47.js → useHealthToolCache-9c55a48e.js} +1 -1
- package/build/{usePhoneValidator-7397c4bd.js → usePhoneValidator-d114aece.js} +4 -4
- package/build/{usePlacesAutocomplete-b8dc2910.js → usePlacesAutocomplete-1de0fbd1.js} +1 -1
- package/build/{useResolvedCaptureUrls-9ec7d3df.js → useResolvedCaptureUrls-63ca6511.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-9c054e84.js → utils-0721a73b.js} +4 -4
- package/build/{utils-01b50016.js → utils-12d0806a.js} +1 -1
- package/build/{utils-1ee79a65.js → utils-9b548c3d.js} +4 -4
- package/build/{utils-fdd642d2.js → utils-aaa8edf3.js} +5 -5
- package/build/{utils-46affe8a.js → utils-cb5ea10f.js} +2 -2
- package/build/vaccination.js +22 -21
- package/package.json +6 -4
- package/build/LeadGenCore-18dafb12.js +0 -5131
- package/build/components/atoms/datePickerV2/Calendar.d.ts +0 -6
- package/build/esm/LeadGenCore-da4c032b.js +0 -5092
- package/build/esm/components/atoms/datePickerV2/Calendar.d.ts +0 -6
- package/build/esm/index-ac25de08.js +0 -543
- package/build/esm/lead/LeadGenCore.d.ts +0 -75
- package/build/esm/lead/LeadGenSlim.d.ts +0 -33
- package/build/esm/lead/i18n/leadTranslations.d.ts +0 -6
- package/build/esm/leadSlim.d.ts +0 -1
- package/build/esm/leadSlim.js +0 -74
- package/build/index-362cc312.js +0 -574
- package/build/lead/LeadGenCore.d.ts +0 -75
- package/build/lead/LeadGenSlim.d.ts +0 -33
- package/build/lead/i18n/leadTranslations.d.ts +0 -6
- package/build/leadSlim.d.ts +0 -1
- package/build/leadSlim.js +0 -82
- /package/build/{BMI_BOYS.percentile.monthly-6a330e16.js → BMI_BOYS.percentile.monthly-346a065a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-c6133977.js → BMI_BOYS.percentile.weekly-08923aa5.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-f22b9a99.js → BMI_BOYS.percentile.yearly-a271f74f.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-dc2486fa.js → BMI_BOYS.zscore.monthly-9d036871.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-19b62836.js → BMI_BOYS.zscore.weekly-50b1b8e2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-01063821.js → BMI_BOYS.zscore.yearly-e27ca6cf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-ec895112.js → BMI_GIRLS.percentile.monthly-c92ff670.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-23bf80f0.js → BMI_GIRLS.percentile.weekly-0473116c.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-f8123ae9.js → BMI_GIRLS.percentile.yearly-b781b97c.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-9e831f45.js → BMI_GIRLS.zscore.monthly-6e079ce6.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-752ae2f3.js → BMI_GIRLS.zscore.weekly-cd4574b0.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-28b081e2.js → BMI_GIRLS.zscore.yearly-d9c6aa74.js} +0 -0
- /package/build/{ChevronDown-0aa6dab7.js → ChevronDown-a1cba1b6.js} +0 -0
- /package/build/{Google-7c552369.js → Google-fc1ac514.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-79b9ec01.js → HEAD CIRCUM_BOYS.percentile.monthly-1aacb73f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-5e4c6be5.js → HEAD CIRCUM_BOYS.percentile.weekly-43484041.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-bf74f892.js → HEAD CIRCUM_BOYS.percentile.yearly-9e784237.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-19207efc.js → HEAD CIRCUM_BOYS.zscore.monthly-a52f1123.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-08bfa929.js → HEAD CIRCUM_BOYS.zscore.weekly-1ff53c68.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-2345c472.js → HEAD CIRCUM_BOYS.zscore.yearly-97675e52.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-76d50df9.js → HEAD CIRCUM_GIRLS.percentile.monthly-c80f8cb2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-88a57331.js → HEAD CIRCUM_GIRLS.percentile.weekly-8c99a35b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-0fa9d887.js → HEAD CIRCUM_GIRLS.percentile.yearly-6d6692ec.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-5fe68496.js → HEAD CIRCUM_GIRLS.zscore.monthly-f08c2c4c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-a96524dc.js → HEAD CIRCUM_GIRLS.zscore.weekly-ac2c663d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-6d0885ee.js → HEAD CIRCUM_GIRLS.zscore.yearly-5583785e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-ec61e7ab.js → HEIGHT_BOYS.percentile.monthly-4cfb335e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-37e83dfe.js → HEIGHT_BOYS.percentile.weekly-b5bb17ac.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-56ad57c3.js → HEIGHT_BOYS.percentile.yearly-9accf3db.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-2b9bd211.js → HEIGHT_BOYS.zscore.monthly-c51c1bf4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-7c9402ad.js → HEIGHT_BOYS.zscore.weekly-55c8d31f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-881e5313.js → HEIGHT_BOYS.zscore.yearly-531e01ef.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1474650a.js → HEIGHT_GIRLS.percentile.monthly-ad344d04.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-2dd9bda4.js → HEIGHT_GIRLS.percentile.weekly-92206181.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-6450d9d0.js → HEIGHT_GIRLS.percentile.yearly-3851b6ff.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-e3331b55.js → HEIGHT_GIRLS.zscore.monthly-6402b905.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-560b2ee0.js → HEIGHT_GIRLS.zscore.weekly-1817a856.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-e43e13e5.js → HEIGHT_GIRLS.zscore.yearly-92f7fc96.js} +0 -0
- /package/build/{Visible-c4aa5635.js → Visible-cb47f4f1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-6bd2113e.js → WEIGHT_BOYS.percentile.monthly-3db14a13.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-1e9c7d6b.js → WEIGHT_BOYS.percentile.weekly-dee72736.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-0cda9b49.js → WEIGHT_BOYS.percentile.yearly-d20f56af.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-4d25eeeb.js → WEIGHT_BOYS.zscore.monthly-a1d0d1c5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-0140fc1b.js → WEIGHT_BOYS.zscore.weekly-7533d0a5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-0058e432.js → WEIGHT_BOYS.zscore.yearly-06efa305.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-6fe7d121.js → WEIGHT_GIRLS.percentile.monthly-0b1d2923.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-60ba0a1f.js → WEIGHT_GIRLS.percentile.weekly-62f7f4b8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-0f90e388.js → WEIGHT_GIRLS.percentile.yearly-52fa314d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-db6c5759.js → WEIGHT_GIRLS.zscore.monthly-01922c94.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-53a4dff9.js → WEIGHT_GIRLS.zscore.weekly-52eae952.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-758cb807.js → WEIGHT_GIRLS.zscore.yearly-ad4d2afa.js} +0 -0
- /package/build/{ageGenerate-2c8b68b1.js → ageGenerate-2a66f815.js} +0 -0
- /package/build/{animation-76f354d1.js → animation-563ee89a.js} +0 -0
- /package/build/{constants-13a83424.js → constants-0da283e1.js} +0 -0
- /package/build/{constants-7d1984a4.js → constants-70deeef6.js} +0 -0
- /package/build/{constants-16308d83.js → constants-9b269303.js} +0 -0
- /package/build/{context-3e6914b2.js → context-7832b6e5.js} +0 -0
- /package/build/{dataTransform-a9cab1ad.js → dataTransform-f386ce1b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-6d2573e9.js → BMI_BOYS.percentile.monthly-848c0c6e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-505ba25b.js → BMI_BOYS.percentile.weekly-41640ec0.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-dd5889ce.js → BMI_BOYS.percentile.yearly-ee0be92a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-63ea97fc.js → BMI_BOYS.zscore.monthly-88c094c8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-34d5c90b.js → BMI_BOYS.zscore.weekly-c334ae43.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-9ef852c6.js → BMI_BOYS.zscore.yearly-4d5bf106.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-9f97272c.js → BMI_GIRLS.percentile.monthly-5a61e45f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-5d7b2094.js → BMI_GIRLS.percentile.weekly-72cb4b8c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-0079feed.js → BMI_GIRLS.percentile.yearly-47320043.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-89ddcac7.js → BMI_GIRLS.zscore.monthly-cad52bf7.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-6094b6d3.js → BMI_GIRLS.zscore.weekly-63a4e3e4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-2102189d.js → BMI_GIRLS.zscore.yearly-e2326065.js} +0 -0
- /package/build/esm/{ChevronDown-a26df514.js → ChevronDown-d440d444.js} +0 -0
- /package/build/esm/{Google-bfb3d6fc.js → Google-db786a0f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-10fcb06c.js → HEAD CIRCUM_BOYS.percentile.monthly-1d8a645b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-80440466.js → HEAD CIRCUM_BOYS.percentile.weekly-21505b75.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-37cef57a.js → HEAD CIRCUM_BOYS.percentile.yearly-a9b60c74.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-d8a45360.js → HEAD CIRCUM_BOYS.zscore.monthly-bc8c3972.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-dad69a86.js → HEAD CIRCUM_BOYS.zscore.weekly-c616433d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-00469046.js → HEAD CIRCUM_BOYS.zscore.yearly-4dcadab8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-4a98517d.js → HEAD CIRCUM_GIRLS.percentile.monthly-f292f515.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2c4e29fa.js → HEAD CIRCUM_GIRLS.percentile.weekly-de5c94f1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-8ddc589e.js → HEAD CIRCUM_GIRLS.percentile.yearly-33dc43f3.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-87f9f555.js → HEAD CIRCUM_GIRLS.zscore.monthly-61371a2c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e2531eb2.js → HEAD CIRCUM_GIRLS.zscore.weekly-4309ed66.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-93bd8fbb.js → HEAD CIRCUM_GIRLS.zscore.yearly-44684044.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-23ea6479.js → HEIGHT_BOYS.percentile.monthly-ee5addd6.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-b6033694.js → HEIGHT_BOYS.percentile.weekly-3d8e08d5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-ffb40a06.js → HEIGHT_BOYS.percentile.yearly-73565d71.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-da298b9f.js → HEIGHT_BOYS.zscore.monthly-9689cc0f.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-17ff6793.js → HEIGHT_BOYS.zscore.weekly-2f419356.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-b550e028.js → HEIGHT_BOYS.zscore.yearly-f7bdeb14.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-6d0d75f7.js → HEIGHT_GIRLS.percentile.monthly-9e00a3c5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-e33213c5.js → HEIGHT_GIRLS.percentile.weekly-205dfcc5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-8a07e212.js → HEIGHT_GIRLS.percentile.yearly-d1d3d7ff.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-d468f95d.js → HEIGHT_GIRLS.zscore.monthly-1d7d4fb4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-da13cb0e.js → HEIGHT_GIRLS.zscore.weekly-a9050af2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-9cef635e.js → HEIGHT_GIRLS.zscore.yearly-f6559c1d.js} +0 -0
- /package/build/esm/{Visible-2e90980f.js → Visible-077d0378.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-628bb2a5.js → WEIGHT_BOYS.percentile.monthly-00624424.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-8a3b102d.js → WEIGHT_BOYS.percentile.weekly-dc4ff008.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-0023338e.js → WEIGHT_BOYS.percentile.yearly-6fc15c28.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-85f2e198.js → WEIGHT_BOYS.zscore.monthly-19511a35.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-59fece93.js → WEIGHT_BOYS.zscore.weekly-2473a2f2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-bf57fbe4.js → WEIGHT_BOYS.zscore.yearly-ab05a4ce.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-e5b5bf35.js → WEIGHT_GIRLS.percentile.monthly-590da89a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-88107f18.js → WEIGHT_GIRLS.percentile.weekly-d72cf8da.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-48196342.js → WEIGHT_GIRLS.percentile.yearly-5442f9fc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a4533131.js → WEIGHT_GIRLS.zscore.monthly-63849f47.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-fc6fa0ab.js → WEIGHT_GIRLS.zscore.weekly-f002ab5c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-437fe569.js → WEIGHT_GIRLS.zscore.yearly-55081b6e.js} +0 -0
- /package/build/esm/{ageGenerate-b2218e34.js → ageGenerate-b53c4ebb.js} +0 -0
- /package/build/esm/{animation-826e1d58.js → animation-8be7a4de.js} +0 -0
- /package/build/esm/{constants-c079f029.js → constants-5558458c.js} +0 -0
- /package/build/esm/{constants-c212b81a.js → constants-9fa2154a.js} +0 -0
- /package/build/esm/{constants-3bdcd664.js → constants-df7b8411.js} +0 -0
- /package/build/esm/{context-35f52bad.js → context-725b51ab.js} +0 -0
- /package/build/esm/{dataTransform-d23a4e0a.js → dataTransform-2bcea364.js} +0 -0
- /package/build/esm/{index-8507ddd7.js → index-0cd2e9c2.js} +0 -0
- /package/build/esm/{index-7bc5f2f2.js → index-1edeb754.js} +0 -0
- /package/build/esm/{index-403a3eec.js → index-2b4b36f1.js} +0 -0
- /package/build/esm/{index-90972b91.js → index-9a280a73.js} +0 -0
- /package/build/esm/{index-4046ee2e.js → index-a9bd608f.js} +0 -0
- /package/build/esm/{index-1cb17a42.js → index-b2717af7.js} +0 -0
- /package/build/esm/{index-ee6f157b.js → index-d48313f5.js} +0 -0
- /package/build/esm/{index-ec87e8b2.js → index-e16f5a94.js} +0 -0
- /package/build/esm/{index-2b42049a.js → index-ead19745.js} +0 -0
- /package/build/esm/{index.styles-7597a44e.js → index.styles-622a9225.js} +0 -0
- /package/build/esm/{localizeNumberFormat-c7326354.js → localizeNumberFormat-220144f6.js} +0 -0
- /package/build/esm/{number-0d6835e8.js → number-0afc47fb.js} +0 -0
- /package/build/esm/{paths-a0fb43da.js → paths-3bc116a9.js} +0 -0
- /package/build/esm/{routing-8c46c2b2.js → routing-941074ed.js} +0 -0
- /package/build/esm/{shared-9f223841.js → shared-15bb776a.js} +0 -0
- /package/build/esm/{translationsContext-acece8fa.js → translationsContext-a6bf76d9.js} +0 -0
- /package/build/esm/{tslib.es6-55db3c85.js → tslib.es6-f9725aa4.js} +0 -0
- /package/build/esm/{types-411535b1.js → types-264dacb8.js} +0 -0
- /package/build/esm/{useImageAspectRatio-bb25f275.js → useImageAspectRatio-c7e3f76e.js} +0 -0
- /package/build/esm/{useOutsideClick-c6a3e348.js → useOutsideClick-3d3ee062.js} +0 -0
- /package/build/esm/{useScrollbarSize-37514a56.js → useScrollbarSize-ccf76db8.js} +0 -0
- /package/build/esm/{useUniqueId-9c41f60f.js → useUniqueId-a7a77daa.js} +0 -0
- /package/build/esm/{utils-c22b2d6b.js → utils-4f630add.js} +0 -0
- /package/build/esm/{utils-cbf7d169.js → utils-7acd0804.js} +0 -0
- /package/build/{index-68e2d632.js → index-047bc97d.js} +0 -0
- /package/build/{index-25d10ba2.js → index-0d379465.js} +0 -0
- /package/build/{index-7a178e88.js → index-446bd753.js} +0 -0
- /package/build/{index-dc4824a2.js → index-6bfbb2a1.js} +0 -0
- /package/build/{index-e8b262c2.js → index-8be2f501.js} +0 -0
- /package/build/{index-833d9331.js → index-db602972.js} +0 -0
- /package/build/{index-562323b6.js → index-df11b679.js} +0 -0
- /package/build/{index-b2308092.js → index-ec7e5840.js} +0 -0
- /package/build/{index-fd06bec3.js → index-fc71f972.js} +0 -0
- /package/build/{index.styles-494c4585.js → index.styles-2fdd4291.js} +0 -0
- /package/build/{localizeNumberFormat-0df85c8a.js → localizeNumberFormat-58762f9e.js} +0 -0
- /package/build/{number-17deffea.js → number-26073621.js} +0 -0
- /package/build/{paths-79769afc.js → paths-1611c51c.js} +0 -0
- /package/build/{routing-cae1d792.js → routing-da358226.js} +0 -0
- /package/build/{shared-34a0c7f7.js → shared-e8928647.js} +0 -0
- /package/build/{translationsContext-c9d11485.js → translationsContext-5a59bfde.js} +0 -0
- /package/build/{tslib.es6-b6943142.js → tslib.es6-28c765de.js} +0 -0
- /package/build/{types-0fe9831f.js → types-897a6f42.js} +0 -0
- /package/build/{useImageAspectRatio-8f640360.js → useImageAspectRatio-e29f02c5.js} +0 -0
- /package/build/{useOutsideClick-591c2456.js → useOutsideClick-3a8855e1.js} +0 -0
- /package/build/{useScrollbarSize-ab0ad851.js → useScrollbarSize-2ed0a89c.js} +0 -0
- /package/build/{useUniqueId-7f03fbaa.js → useUniqueId-4ce5f3c7.js} +0 -0
- /package/build/{utils-df72ae47.js → utils-4a1fbc42.js} +0 -0
- /package/build/{utils-f307adb6.js → utils-b1660723.js} +0 -0
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
import { a as __rest } from './tslib.es6-f9725aa4.js';
|
|
2
|
+
import React__default, { useState, useEffect, useMemo, forwardRef } from 'react';
|
|
3
|
+
import { L as LOCALE } from './index-a9bd608f.js';
|
|
4
|
+
import { UnstyledButton, Popover, Input } from '@mantine/core';
|
|
5
|
+
import { CalendarOutline } from '@hhgtech/icons/core';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import { Z as ZINDEX_HEADER, I as ISO_FORMAT } from './index-6a8c9fd4.js';
|
|
8
|
+
import { g as getDatePickerV2InputFieldProps } from './appearance-dbbab6fd.js';
|
|
9
|
+
import { DatesProvider, Month } from '@mantine/dates';
|
|
10
|
+
import { ChevronLeft, ChevronDown, ChevronRight } from '@hhgtech/icons/arrow';
|
|
11
|
+
import { M as MAPPED_LOCALE } from './index-e40de511.js';
|
|
12
|
+
import styled from '@emotion/styled';
|
|
13
|
+
import { theme } from './miscTheme.js';
|
|
14
|
+
|
|
15
|
+
const MONTHS_TRANSLATION = {
|
|
16
|
+
'vi-VN': [
|
|
17
|
+
'Tháng 1',
|
|
18
|
+
'Tháng 2',
|
|
19
|
+
'Tháng 3',
|
|
20
|
+
'Tháng 4',
|
|
21
|
+
'Tháng 5',
|
|
22
|
+
'Tháng 6',
|
|
23
|
+
'Tháng 7',
|
|
24
|
+
'Tháng 8',
|
|
25
|
+
'Tháng 9',
|
|
26
|
+
'Tháng 10',
|
|
27
|
+
'Tháng 11',
|
|
28
|
+
'Tháng 12',
|
|
29
|
+
],
|
|
30
|
+
'id-ID': [
|
|
31
|
+
'Januari',
|
|
32
|
+
'Februari',
|
|
33
|
+
'Maret',
|
|
34
|
+
'April',
|
|
35
|
+
'Mei',
|
|
36
|
+
'Juni',
|
|
37
|
+
'Juli',
|
|
38
|
+
'Agustus',
|
|
39
|
+
'September',
|
|
40
|
+
'Oktober',
|
|
41
|
+
'November',
|
|
42
|
+
'Desember',
|
|
43
|
+
],
|
|
44
|
+
'ms-MY': [
|
|
45
|
+
'Januari',
|
|
46
|
+
'Februari',
|
|
47
|
+
'Mac',
|
|
48
|
+
'April',
|
|
49
|
+
'Mei',
|
|
50
|
+
'Jun',
|
|
51
|
+
'Julai',
|
|
52
|
+
'Ogos',
|
|
53
|
+
'September',
|
|
54
|
+
'Oktober',
|
|
55
|
+
'November',
|
|
56
|
+
'Disember',
|
|
57
|
+
],
|
|
58
|
+
'km-KH': [
|
|
59
|
+
'មករា',
|
|
60
|
+
'ខែកុម្ភៈ',
|
|
61
|
+
'មីនា',
|
|
62
|
+
'ខែមេសា',
|
|
63
|
+
'ឧសភា',
|
|
64
|
+
'មិថុនា',
|
|
65
|
+
'ខែកក្កដា',
|
|
66
|
+
'សីហា',
|
|
67
|
+
'ខែកញ្ញា',
|
|
68
|
+
'តុលា',
|
|
69
|
+
'វិច្ឆិកា',
|
|
70
|
+
'ធ្នូ',
|
|
71
|
+
],
|
|
72
|
+
'en-PH': [
|
|
73
|
+
'January',
|
|
74
|
+
'February',
|
|
75
|
+
'March',
|
|
76
|
+
'April',
|
|
77
|
+
'May',
|
|
78
|
+
'June',
|
|
79
|
+
'July',
|
|
80
|
+
'August',
|
|
81
|
+
'September',
|
|
82
|
+
'October',
|
|
83
|
+
'November',
|
|
84
|
+
'December',
|
|
85
|
+
],
|
|
86
|
+
'th-TH': [
|
|
87
|
+
'มกราคม',
|
|
88
|
+
'กุมภาพันธ์',
|
|
89
|
+
'มีนาคม',
|
|
90
|
+
'เมษายน',
|
|
91
|
+
'อาจ',
|
|
92
|
+
'มิถุนายน',
|
|
93
|
+
'กรกฎาคม',
|
|
94
|
+
'สิงหาคม',
|
|
95
|
+
'กันยายน',
|
|
96
|
+
'ตุลาคม',
|
|
97
|
+
'พฤศจิกายน',
|
|
98
|
+
'ธันวาคม',
|
|
99
|
+
],
|
|
100
|
+
'my-MM': [
|
|
101
|
+
'ဇန်နဝါရီလ',
|
|
102
|
+
'ဖေဖော်ဝါရီလ',
|
|
103
|
+
'မတ်လ',
|
|
104
|
+
'ပြီလ',
|
|
105
|
+
'မေလ',
|
|
106
|
+
'ဇွန',
|
|
107
|
+
'ဇူလိုင်လ',
|
|
108
|
+
'သြဂုတ်လ',
|
|
109
|
+
'စက်တင်ဘာ',
|
|
110
|
+
'အောက်တိုဘာ',
|
|
111
|
+
'နိုဝင်ဘာ',
|
|
112
|
+
'ဒီဇင်ဘာ',
|
|
113
|
+
],
|
|
114
|
+
'zh-TW': [
|
|
115
|
+
'一月',
|
|
116
|
+
'二月',
|
|
117
|
+
'三月',
|
|
118
|
+
'四月',
|
|
119
|
+
'五月',
|
|
120
|
+
'六月',
|
|
121
|
+
'七月',
|
|
122
|
+
'八月',
|
|
123
|
+
'九月',
|
|
124
|
+
'十月',
|
|
125
|
+
'十一月',
|
|
126
|
+
'十二月',
|
|
127
|
+
],
|
|
128
|
+
'hi-IN': [
|
|
129
|
+
'जनवरी',
|
|
130
|
+
'फ़रवरी',
|
|
131
|
+
'जुलूस',
|
|
132
|
+
'अप्रैल',
|
|
133
|
+
'मई',
|
|
134
|
+
'जून',
|
|
135
|
+
'जुलाई',
|
|
136
|
+
'अगस्त',
|
|
137
|
+
'सितंबर',
|
|
138
|
+
'अक्टूबर',
|
|
139
|
+
'नवंबर',
|
|
140
|
+
'दिसंबर',
|
|
141
|
+
],
|
|
142
|
+
'zh-SG': [
|
|
143
|
+
'一月',
|
|
144
|
+
'二月',
|
|
145
|
+
'三月',
|
|
146
|
+
'四月',
|
|
147
|
+
'五月',
|
|
148
|
+
'六月',
|
|
149
|
+
'七月',
|
|
150
|
+
'八月',
|
|
151
|
+
'九月',
|
|
152
|
+
'十月',
|
|
153
|
+
'十一月',
|
|
154
|
+
'十二月',
|
|
155
|
+
],
|
|
156
|
+
'tl-PH': [
|
|
157
|
+
'January',
|
|
158
|
+
'February',
|
|
159
|
+
'March',
|
|
160
|
+
'April',
|
|
161
|
+
'May',
|
|
162
|
+
'June',
|
|
163
|
+
'July',
|
|
164
|
+
'August',
|
|
165
|
+
'September',
|
|
166
|
+
'October',
|
|
167
|
+
'November',
|
|
168
|
+
'December',
|
|
169
|
+
],
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
/** Previous/next month days in grid (not selected). */
|
|
173
|
+
const DAY_PICKER_OUTSIDE_DAY_COLOR = '#111111';
|
|
174
|
+
const toValidDate = (value) => {
|
|
175
|
+
if (value instanceof Date && !Number.isNaN(value.getTime())) {
|
|
176
|
+
return value;
|
|
177
|
+
}
|
|
178
|
+
return undefined;
|
|
179
|
+
};
|
|
180
|
+
function mapCalendarPropsToMantineDates(calendarProps, excludeDate) {
|
|
181
|
+
let minDate = calendarProps === null || calendarProps === void 0 ? void 0 : calendarProps.minDate;
|
|
182
|
+
let maxDate = calendarProps === null || calendarProps === void 0 ? void 0 : calendarProps.maxDate;
|
|
183
|
+
const excludeMatchers = [];
|
|
184
|
+
if (excludeDate) {
|
|
185
|
+
excludeMatchers.push(excludeDate);
|
|
186
|
+
}
|
|
187
|
+
const disabled = calendarProps === null || calendarProps === void 0 ? void 0 : calendarProps.disabled;
|
|
188
|
+
const matchers = disabled
|
|
189
|
+
? Array.isArray(disabled)
|
|
190
|
+
? disabled
|
|
191
|
+
: [disabled]
|
|
192
|
+
: [];
|
|
193
|
+
for (const matcher of matchers) {
|
|
194
|
+
if (typeof matcher === 'function') {
|
|
195
|
+
excludeMatchers.push(matcher);
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
if (matcher instanceof Date) {
|
|
199
|
+
excludeMatchers.push((date) => date.toDateString() === matcher.toDateString());
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
202
|
+
if (matcher && typeof matcher === 'object') {
|
|
203
|
+
if ('after' in matcher) {
|
|
204
|
+
const afterDate = toValidDate(matcher.after);
|
|
205
|
+
if (afterDate &&
|
|
206
|
+
(!maxDate || afterDate.getTime() < maxDate.getTime())) {
|
|
207
|
+
maxDate = afterDate;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
if ('before' in matcher) {
|
|
211
|
+
const beforeDate = toValidDate(matcher.before);
|
|
212
|
+
if (beforeDate &&
|
|
213
|
+
(!minDate || beforeDate.getTime() > minDate.getTime())) {
|
|
214
|
+
minDate = beforeDate;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if ('dayOfWeek' in matcher && matcher.dayOfWeek !== undefined) {
|
|
218
|
+
const days = Array.isArray(matcher.dayOfWeek)
|
|
219
|
+
? matcher.dayOfWeek
|
|
220
|
+
: [matcher.dayOfWeek];
|
|
221
|
+
excludeMatchers.push((date) => days.includes(date.getDay()));
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const combinedExclude = excludeMatchers.length > 0
|
|
226
|
+
? (date) => excludeMatchers.some((fn) => fn(date))
|
|
227
|
+
: undefined;
|
|
228
|
+
return {
|
|
229
|
+
minDate,
|
|
230
|
+
maxDate,
|
|
231
|
+
excludeDate: combinedExclude,
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
const DATE_PICKER_POPOVER_Z_INDEX = ZINDEX_HEADER + 1;
|
|
235
|
+
const MONTHS_FALLBACK_LOCALE = 'en-PH';
|
|
236
|
+
const LOCALE_TO_MONTHS_KEY = {
|
|
237
|
+
[LOCALE.Vietnam]: 'vi-VN',
|
|
238
|
+
[LOCALE.Indonesia]: 'id-ID',
|
|
239
|
+
[LOCALE.Malaysia]: 'ms-MY',
|
|
240
|
+
[LOCALE.Cambodia]: 'km-KH',
|
|
241
|
+
[LOCALE.PhilippinesEnglish]: 'en-PH',
|
|
242
|
+
[LOCALE.PhilippinesTagalog]: 'tl-PH',
|
|
243
|
+
[LOCALE.Thailand]: 'th-TH',
|
|
244
|
+
[LOCALE.Myanmar]: 'my-MM',
|
|
245
|
+
[LOCALE.Taiwan]: 'zh-TW',
|
|
246
|
+
[LOCALE.India]: 'hi-IN',
|
|
247
|
+
[LOCALE.Singapore]: 'zh-SG',
|
|
248
|
+
'vi-VN_MB': 'vi-VN',
|
|
249
|
+
};
|
|
250
|
+
/** BCP-47 tags for `Intl` when static lists are missing or incomplete. */
|
|
251
|
+
const INTL_MONTH_LOCALE = {
|
|
252
|
+
'zh-SG': 'zh-Hans-SG',
|
|
253
|
+
};
|
|
254
|
+
function resolveMonthsTranslationKey(locale) {
|
|
255
|
+
var _a;
|
|
256
|
+
const normalized = String(locale).trim();
|
|
257
|
+
if (normalized in MONTHS_TRANSLATION) {
|
|
258
|
+
return normalized;
|
|
259
|
+
}
|
|
260
|
+
const mapped = LOCALE_TO_MONTHS_KEY[normalized];
|
|
261
|
+
if (mapped) {
|
|
262
|
+
return mapped;
|
|
263
|
+
}
|
|
264
|
+
const lower = normalized.toLowerCase();
|
|
265
|
+
const fromEnum = (_a = Object.entries(LOCALE_TO_MONTHS_KEY).find(([key]) => key.toLowerCase() === lower)) === null || _a === void 0 ? void 0 : _a[1];
|
|
266
|
+
if (fromEnum) {
|
|
267
|
+
return fromEnum;
|
|
268
|
+
}
|
|
269
|
+
return MONTHS_FALLBACK_LOCALE;
|
|
270
|
+
}
|
|
271
|
+
function getIntlMonthLabels(bcp47) {
|
|
272
|
+
if (typeof Intl === 'undefined' || !Intl.DateTimeFormat) {
|
|
273
|
+
return undefined;
|
|
274
|
+
}
|
|
275
|
+
try {
|
|
276
|
+
const formatter = new Intl.DateTimeFormat(bcp47, { month: 'long' });
|
|
277
|
+
return Array.from({ length: 12 }, (_, month) => formatter.format(new Date(2020, month, 1)));
|
|
278
|
+
}
|
|
279
|
+
catch (_a) {
|
|
280
|
+
return undefined;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/** Month labels for the calendar header dropdown (aligned with legacy DatePicker). */
|
|
284
|
+
function getMonthLabelsForLocale(locale) {
|
|
285
|
+
var _a, _b;
|
|
286
|
+
const key = resolveMonthsTranslationKey(locale);
|
|
287
|
+
if (key === 'vi-VN') {
|
|
288
|
+
return MONTHS_TRANSLATION['vi-VN'];
|
|
289
|
+
}
|
|
290
|
+
const staticLabels = MONTHS_TRANSLATION[key];
|
|
291
|
+
if (staticLabels) {
|
|
292
|
+
return staticLabels;
|
|
293
|
+
}
|
|
294
|
+
const intlLocale = (_a = INTL_MONTH_LOCALE[key]) !== null && _a !== void 0 ? _a : key;
|
|
295
|
+
return ((_b = getIntlMonthLabels(intlLocale)) !== null && _b !== void 0 ? _b : MONTHS_TRANSLATION[MONTHS_FALLBACK_LOCALE]);
|
|
296
|
+
}
|
|
297
|
+
function getCalendarYearRange(minDate, maxDate) {
|
|
298
|
+
var _a, _b;
|
|
299
|
+
const currentYear = dayjs().year();
|
|
300
|
+
const from = (_a = minDate === null || minDate === void 0 ? void 0 : minDate.getFullYear()) !== null && _a !== void 0 ? _a : currentYear - 100;
|
|
301
|
+
const to = (_b = maxDate === null || maxDate === void 0 ? void 0 : maxDate.getFullYear()) !== null && _b !== void 0 ? _b : currentYear + 10;
|
|
302
|
+
return { from: Math.min(from, to), to: Math.max(from, to) };
|
|
303
|
+
}
|
|
304
|
+
/** Month shown when opening the panel (not the same as `minDate` floor). */
|
|
305
|
+
function getInitialCalendarMonth(value, minDate, maxDate) {
|
|
306
|
+
if (value) {
|
|
307
|
+
return dayjs(value).startOf('month').toDate();
|
|
308
|
+
}
|
|
309
|
+
let candidate = dayjs().startOf('month');
|
|
310
|
+
if (maxDate) {
|
|
311
|
+
const maxMonth = dayjs(maxDate).startOf('month');
|
|
312
|
+
if (candidate.isAfter(maxMonth)) {
|
|
313
|
+
candidate = maxMonth;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
if (minDate) {
|
|
317
|
+
const minMonth = dayjs(minDate).startOf('month');
|
|
318
|
+
if (candidate.isBefore(minMonth)) {
|
|
319
|
+
candidate = minMonth;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return candidate.toDate();
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
const CELL_SIZE = '2.625rem';
|
|
326
|
+
const DAY_CELL_SIZE = '2.5rem';
|
|
327
|
+
const CALENDAR_GRID_WIDTH = `calc(${DAY_CELL_SIZE} * 7)`;
|
|
328
|
+
const StyledRoot = styled.div `
|
|
329
|
+
width: ${({ $fullWidth }) => ($fullWidth ? '100%' : 'auto')};
|
|
330
|
+
`;
|
|
331
|
+
const StyledLabel = styled.div `
|
|
332
|
+
margin-bottom: 0.25rem;
|
|
333
|
+
`;
|
|
334
|
+
const StyledError = styled.div `
|
|
335
|
+
margin-top: 0.25rem;
|
|
336
|
+
font-size: 0.75rem;
|
|
337
|
+
color: ${theme.colors.red600};
|
|
338
|
+
`;
|
|
339
|
+
const StyledInputWrapper = styled.div `
|
|
340
|
+
display: flex;
|
|
341
|
+
width: 100%;
|
|
342
|
+
flex-direction: column;
|
|
343
|
+
gap: 0.25rem;
|
|
344
|
+
|
|
345
|
+
.mantine-Popover-dropdown:has(.hhg-date-picker-v2-calendar-root) {
|
|
346
|
+
border: 0 !important;
|
|
347
|
+
background-color: transparent !important;
|
|
348
|
+
box-shadow: none !important;
|
|
349
|
+
padding: 0 !important;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.mantine-DatePickerInput-root,
|
|
353
|
+
.mantine-Input-root {
|
|
354
|
+
width: 100%;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
input {
|
|
358
|
+
border-radius: 0.5rem;
|
|
359
|
+
border-color: ${theme.colors.gray200};
|
|
360
|
+
color: ${theme.colors.gray800};
|
|
361
|
+
|
|
362
|
+
&::placeholder {
|
|
363
|
+
color: ${theme.colors.gray400};
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
&:focus,
|
|
367
|
+
&:focus-visible {
|
|
368
|
+
border-color: ${theme.colors.blue600};
|
|
369
|
+
box-shadow: 0 0 0 2px ${theme.colors.blue200};
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
&:disabled {
|
|
373
|
+
cursor: not-allowed;
|
|
374
|
+
background: ${theme.colors.gray50};
|
|
375
|
+
color: ${theme.colors.gray400};
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
svg {
|
|
380
|
+
width: 18px;
|
|
381
|
+
height: 18px;
|
|
382
|
+
flex-shrink: 0;
|
|
383
|
+
color: ${theme.colors.gray500};
|
|
384
|
+
}
|
|
385
|
+
`;
|
|
386
|
+
const StyledCalendarPanel = styled.div `
|
|
387
|
+
box-sizing: border-box;
|
|
388
|
+
width: max-content;
|
|
389
|
+
max-width: 100%;
|
|
390
|
+
overflow: hidden;
|
|
391
|
+
border-radius: 0.5rem;
|
|
392
|
+
border: 1px solid ${theme.colors.gray200};
|
|
393
|
+
background: ${theme.colors.white};
|
|
394
|
+
padding: 0.75rem 1rem;
|
|
395
|
+
box-shadow: 0 6px 12px rgba(67, 86, 100, 0.12);
|
|
396
|
+
|
|
397
|
+
.hhg-date-picker-v2-month {
|
|
398
|
+
width: ${CALENDAR_GRID_WIDTH};
|
|
399
|
+
max-width: 100%;
|
|
400
|
+
margin: 0 auto;
|
|
401
|
+
border-collapse: collapse;
|
|
402
|
+
table-layout: fixed;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.hhg-date-picker-v2-month-cell {
|
|
406
|
+
width: ${DAY_CELL_SIZE};
|
|
407
|
+
padding: 0;
|
|
408
|
+
text-align: center;
|
|
409
|
+
vertical-align: middle;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.hhg-date-picker-v2-weekdays-row .hhg-date-picker-v2-weekday {
|
|
413
|
+
width: ${DAY_CELL_SIZE};
|
|
414
|
+
padding: 0 0 0.5rem;
|
|
415
|
+
text-align: center;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.hhg-date-picker-v2-weekday {
|
|
419
|
+
font-size: 0.875rem;
|
|
420
|
+
font-weight: 500;
|
|
421
|
+
color: ${theme.colors.gray500};
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.hhg-date-picker-v2-day {
|
|
425
|
+
width: ${DAY_CELL_SIZE};
|
|
426
|
+
height: ${DAY_CELL_SIZE};
|
|
427
|
+
border-radius: 0.375rem;
|
|
428
|
+
font-size: 0.875rem;
|
|
429
|
+
font-weight: 400;
|
|
430
|
+
color: ${theme.colors.gray800};
|
|
431
|
+
|
|
432
|
+
&:hover:not([data-disabled]) {
|
|
433
|
+
background: ${theme.colors.gray100};
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&[data-weekend]:not([data-selected]):not([data-disabled]) {
|
|
437
|
+
color: ${theme.colors.red600};
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&[data-outside]:not([data-selected]):not([data-disabled]) {
|
|
441
|
+
color: ${DAY_PICKER_OUTSIDE_DAY_COLOR};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
&[data-selected] {
|
|
445
|
+
background: ${theme.colors.blue600};
|
|
446
|
+
color: ${theme.colors.white};
|
|
447
|
+
|
|
448
|
+
&:hover:not([data-disabled]) {
|
|
449
|
+
background: ${theme.colors.blue600};
|
|
450
|
+
color: ${theme.colors.white};
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&[data-disabled] {
|
|
455
|
+
color: ${theme.colors.gray400};
|
|
456
|
+
cursor: not-allowed;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
`;
|
|
460
|
+
const StyledCalendarHeader = styled.div `
|
|
461
|
+
display: flex;
|
|
462
|
+
width: ${CALENDAR_GRID_WIDTH};
|
|
463
|
+
max-width: 100%;
|
|
464
|
+
height: ${CELL_SIZE};
|
|
465
|
+
align-items: center;
|
|
466
|
+
justify-content: space-between;
|
|
467
|
+
margin: 0 auto 0.5rem;
|
|
468
|
+
|
|
469
|
+
button {
|
|
470
|
+
display: flex;
|
|
471
|
+
width: ${CELL_SIZE};
|
|
472
|
+
height: ${CELL_SIZE};
|
|
473
|
+
align-items: center;
|
|
474
|
+
justify-content: center;
|
|
475
|
+
padding: 0;
|
|
476
|
+
color: ${theme.colors.gray700};
|
|
477
|
+
cursor: pointer;
|
|
478
|
+
|
|
479
|
+
&:disabled {
|
|
480
|
+
cursor: not-allowed;
|
|
481
|
+
opacity: 0.2;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
svg {
|
|
485
|
+
width: 24px;
|
|
486
|
+
height: 24px;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
`;
|
|
490
|
+
const StyledCalendarDropdown = styled.div `
|
|
491
|
+
display: flex;
|
|
492
|
+
flex: 1;
|
|
493
|
+
min-width: 0;
|
|
494
|
+
align-items: center;
|
|
495
|
+
justify-content: center;
|
|
496
|
+
gap: 0.375rem;
|
|
497
|
+
padding: 0 0.25rem;
|
|
498
|
+
font-size: 0.875rem;
|
|
499
|
+
font-weight: 500;
|
|
500
|
+
`;
|
|
501
|
+
const StyledDropdownRoot = styled.div `
|
|
502
|
+
position: relative;
|
|
503
|
+
|
|
504
|
+
&:hover {
|
|
505
|
+
background: ${theme.colors.gray100};
|
|
506
|
+
border-radius: 0.5rem;
|
|
507
|
+
}
|
|
508
|
+
`;
|
|
509
|
+
const StyledMonthYearLabel = styled.span `
|
|
510
|
+
display: flex;
|
|
511
|
+
height: 2rem;
|
|
512
|
+
align-items: center;
|
|
513
|
+
gap: 0.25rem;
|
|
514
|
+
padding: 0 0.25rem 0 0.5rem;
|
|
515
|
+
font-size: 1rem;
|
|
516
|
+
font-weight: 500;
|
|
517
|
+
color: ${theme.colors.gray800};
|
|
518
|
+
user-select: none;
|
|
519
|
+
pointer-events: none;
|
|
520
|
+
|
|
521
|
+
svg {
|
|
522
|
+
width: 0.875rem;
|
|
523
|
+
height: 0.875rem;
|
|
524
|
+
color: ${theme.colors.gray500};
|
|
525
|
+
}
|
|
526
|
+
`;
|
|
527
|
+
const StyledDropdownSelect = styled.select `
|
|
528
|
+
position: absolute;
|
|
529
|
+
inset: 0;
|
|
530
|
+
cursor: pointer;
|
|
531
|
+
opacity: 0;
|
|
532
|
+
border: none;
|
|
533
|
+
background: transparent;
|
|
534
|
+
`;
|
|
535
|
+
|
|
536
|
+
function DatePickerV2CalendarPanel({ locale, value, minDate, maxDate, excludeDate, onSelect, }) {
|
|
537
|
+
var _a;
|
|
538
|
+
const mantineLocale = MAPPED_LOCALE[locale];
|
|
539
|
+
const [month, setMonth] = useState(() => getInitialCalendarMonth(value, minDate, maxDate));
|
|
540
|
+
useEffect(() => {
|
|
541
|
+
setMonth(getInitialCalendarMonth(value, minDate, maxDate));
|
|
542
|
+
}, [value, minDate, maxDate]);
|
|
543
|
+
const { from: yearFrom, to: yearTo } = useMemo(() => getCalendarYearRange(minDate, maxDate), [minDate, maxDate]);
|
|
544
|
+
const years = useMemo(() => {
|
|
545
|
+
const items = [];
|
|
546
|
+
for (let y = yearFrom; y <= yearTo; y += 1) {
|
|
547
|
+
items.push(y);
|
|
548
|
+
}
|
|
549
|
+
return items;
|
|
550
|
+
}, [yearFrom, yearTo]);
|
|
551
|
+
const monthOptions = useMemo(() => {
|
|
552
|
+
const labels = getMonthLabelsForLocale(locale);
|
|
553
|
+
return labels.map((label, index) => ({
|
|
554
|
+
value: String(index),
|
|
555
|
+
label,
|
|
556
|
+
}));
|
|
557
|
+
}, [locale]);
|
|
558
|
+
const displayMonthIndex = month.getMonth();
|
|
559
|
+
const displayYear = month.getFullYear();
|
|
560
|
+
const shiftMonth = (delta) => {
|
|
561
|
+
setMonth((current) => dayjs(current).add(delta, 'month').startOf('month').toDate());
|
|
562
|
+
};
|
|
563
|
+
const canGoPrevious = !minDate ||
|
|
564
|
+
dayjs(month).subtract(1, 'month').endOf('month').toDate() >= minDate;
|
|
565
|
+
const canGoNext = !maxDate ||
|
|
566
|
+
dayjs(month).add(1, 'month').startOf('month').toDate() <= maxDate;
|
|
567
|
+
return (React__default.createElement(StyledCalendarPanel, { className: "hhg-date-picker-v2-calendar-root" },
|
|
568
|
+
React__default.createElement(StyledCalendarHeader, null,
|
|
569
|
+
React__default.createElement(UnstyledButton, { type: "button", "aria-label": "Previous month", disabled: !canGoPrevious, onClick: () => shiftMonth(-1) },
|
|
570
|
+
React__default.createElement(ChevronLeft, null)),
|
|
571
|
+
React__default.createElement(StyledCalendarDropdown, null,
|
|
572
|
+
React__default.createElement(StyledDropdownRoot, null,
|
|
573
|
+
React__default.createElement(StyledMonthYearLabel, null, (_a = monthOptions[displayMonthIndex]) === null || _a === void 0 ? void 0 :
|
|
574
|
+
_a.label,
|
|
575
|
+
React__default.createElement(ChevronDown, null)),
|
|
576
|
+
React__default.createElement(StyledDropdownSelect, { "aria-label": "Select month", value: String(displayMonthIndex), onChange: (event) => {
|
|
577
|
+
const nextMonth = Number(event.currentTarget.value);
|
|
578
|
+
setMonth(dayjs(month).month(nextMonth).startOf('month').toDate());
|
|
579
|
+
} }, monthOptions.map((option) => (React__default.createElement("option", { key: option.value, value: option.value }, option.label))))),
|
|
580
|
+
React__default.createElement(StyledDropdownRoot, null,
|
|
581
|
+
React__default.createElement(StyledMonthYearLabel, null,
|
|
582
|
+
displayYear,
|
|
583
|
+
React__default.createElement(ChevronDown, null)),
|
|
584
|
+
React__default.createElement(StyledDropdownSelect, { "aria-label": "Select year", value: String(displayYear), onChange: (event) => {
|
|
585
|
+
const nextYear = Number(event.currentTarget.value);
|
|
586
|
+
setMonth(dayjs(month).year(nextYear).startOf('month').toDate());
|
|
587
|
+
} }, years.map((year) => (React__default.createElement("option", { key: year, value: year }, year)))))),
|
|
588
|
+
React__default.createElement(UnstyledButton, { type: "button", "aria-label": "Next month", disabled: !canGoNext, onClick: () => shiftMonth(1) },
|
|
589
|
+
React__default.createElement(ChevronRight, null))),
|
|
590
|
+
React__default.createElement(DatesProvider, { settings: { locale: mantineLocale, firstDayOfWeek: 1 } },
|
|
591
|
+
React__default.createElement(Month, { month: month, locale: mantineLocale, firstDayOfWeek: 1, size: "md", withCellSpacing: false, minDate: minDate, maxDate: maxDate, excludeDate: excludeDate, hideOutsideDates: false, weekdayFormat: "dd", classNames: {
|
|
592
|
+
month: 'hhg-date-picker-v2-month',
|
|
593
|
+
monthCell: 'hhg-date-picker-v2-month-cell',
|
|
594
|
+
weekdaysRow: 'hhg-date-picker-v2-weekdays-row',
|
|
595
|
+
day: 'hhg-date-picker-v2-day',
|
|
596
|
+
weekday: 'hhg-date-picker-v2-weekday',
|
|
597
|
+
}, getDayProps: (date) => {
|
|
598
|
+
const selected = Boolean(value && dayjs(date).isSame(value, 'date'));
|
|
599
|
+
return {
|
|
600
|
+
selected,
|
|
601
|
+
onClick: (event) => {
|
|
602
|
+
event.preventDefault();
|
|
603
|
+
onSelect(date);
|
|
604
|
+
},
|
|
605
|
+
};
|
|
606
|
+
} }))));
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
const DatePickerV2Input = forwardRef((props, ref) => {
|
|
610
|
+
var _a;
|
|
611
|
+
const { name, value, locale = LOCALE.Vietnam, disabled, placeholder, startSection, endSection, wrapperProps, calendarProps, excludeDate, className, onBlur, onChange, } = props;
|
|
612
|
+
const displayFormat = ((_a = ISO_FORMAT[locale]) === null || _a === void 0 ? void 0 : _a.dateFormat) || 'DD/MM/YYYY';
|
|
613
|
+
const [opened, setOpened] = useState(false);
|
|
614
|
+
const { minDate, maxDate, excludeDate: excludeDateFn, } = useMemo(() => mapCalendarPropsToMantineDates(calendarProps, excludeDate), [calendarProps, excludeDate]);
|
|
615
|
+
const formattedValue = value ? dayjs(value).format(displayFormat) : '';
|
|
616
|
+
useEffect(() => {
|
|
617
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur();
|
|
618
|
+
}, [value, onBlur]);
|
|
619
|
+
const fieldProps = getDatePickerV2InputFieldProps({
|
|
620
|
+
className,
|
|
621
|
+
rootFlex: Boolean(startSection),
|
|
622
|
+
});
|
|
623
|
+
const dateField = (React__default.createElement(Popover, { opened: opened, onChange: setOpened, position: "bottom-start", withinPortal: true, offset: 8, zIndex: DATE_PICKER_POPOVER_Z_INDEX, disabled: disabled, styles: {
|
|
624
|
+
dropdown: {
|
|
625
|
+
border: 0,
|
|
626
|
+
backgroundColor: 'transparent',
|
|
627
|
+
boxShadow: 'none',
|
|
628
|
+
padding: 0,
|
|
629
|
+
width: 'max-content',
|
|
630
|
+
maxWidth: 'none',
|
|
631
|
+
},
|
|
632
|
+
} },
|
|
633
|
+
React__default.createElement(Popover.Target, null,
|
|
634
|
+
React__default.createElement(Input, Object.assign({}, fieldProps, { ref: ref, name: name, disabled: disabled, readOnly: true, value: formattedValue, placeholder: placeholder || displayFormat, rightSection: endSection !== null && endSection !== void 0 ? endSection : React__default.createElement(CalendarOutline, null), onClick: () => {
|
|
635
|
+
if (!disabled) {
|
|
636
|
+
setOpened((current) => !current);
|
|
637
|
+
}
|
|
638
|
+
} }))),
|
|
639
|
+
React__default.createElement(Popover.Dropdown, { p: 0 },
|
|
640
|
+
React__default.createElement(DatePickerV2CalendarPanel, { key: locale, locale: locale, value: value, minDate: minDate, maxDate: maxDate, excludeDate: excludeDateFn, onSelect: (date) => {
|
|
641
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(date);
|
|
642
|
+
setOpened(false);
|
|
643
|
+
} }))));
|
|
644
|
+
return (React__default.createElement(StyledInputWrapper, Object.assign({}, wrapperProps), startSection ? (React__default.createElement("div", { style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } },
|
|
645
|
+
startSection,
|
|
646
|
+
dateField)) : (dateField)));
|
|
647
|
+
});
|
|
648
|
+
DatePickerV2Input.displayName = 'DatePickerV2Input';
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Date picker for health tools and discover (Mantine `DatePickerInput`).
|
|
652
|
+
*/
|
|
653
|
+
const DatePickerV2 = (props) => {
|
|
654
|
+
const { label, error, fullWidth = true, locale = LOCALE.Vietnam, onChange, className, wrapperProps } = props, rest = __rest(props, ["label", "error", "fullWidth", "locale", "onChange", "className", "wrapperProps"]);
|
|
655
|
+
return (React__default.createElement(StyledRoot, { "$fullWidth": fullWidth },
|
|
656
|
+
label ? React__default.createElement(StyledLabel, null, label) : null,
|
|
657
|
+
React__default.createElement(DatePickerV2Input, Object.assign({}, rest, { locale: locale, className: className, wrapperProps: wrapperProps, onChange: (date) => onChange === null || onChange === void 0 ? void 0 : onChange(date !== null && date !== void 0 ? date : null) })),
|
|
658
|
+
error && typeof error !== 'boolean' ? (React__default.createElement(StyledError, null, error)) : null,
|
|
659
|
+
error === true ? React__default.createElement(StyledError, null) : null));
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
export { DatePickerV2 as D, MONTHS_TRANSLATION as M, DatePickerV2Input as a };
|