@laerdal/life-react-components 3.5.1-dev.12 → 3.5.1-dev.13
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/dist/Accordion/AccordionItem.js +69 -47
- package/dist/Accordion/AccordionMenu.js +91 -64
- package/dist/Accordion/ContentAccordion.js +154 -105
- package/dist/Accordion/index.js +8 -7
- package/dist/Accordion/styles.js +16 -12
- package/dist/AuthPage/AuthPage.d.ts +1 -1
- package/dist/AuthPage/AuthPage.js +36 -29
- package/dist/AuthPage/ScreenSetsContainer.js +9 -9
- package/dist/AuthPage/index.js +5 -4
- package/dist/Banners/Banner.d.ts +2 -2
- package/dist/Banners/Banner.js +182 -112
- package/dist/Banners/OverviewBanner.d.ts +1 -1
- package/dist/Banners/OverviewBanner.js +32 -39
- package/dist/Banners/index.js +5 -4
- package/dist/Banners/styles.js +53 -55
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +126 -67
- package/dist/Breadcrumb/BreadcrumbItem.js +2 -1
- package/dist/Breadcrumb/index.js +5 -4
- package/dist/Breadcrumb/styles.js +32 -24
- package/dist/Button/BackButton.js +48 -45
- package/dist/Button/Button.js +195 -85
- package/dist/Button/DualFunctionButton.js +160 -71
- package/dist/Button/Iconbutton.js +127 -70
- package/dist/Button/index.js +9 -8
- package/dist/Card/HorizontalCard/HorizontalCard.js +78 -55
- package/dist/Card/HorizontalCard/HorizontalCardActions.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardActions.js +92 -39
- package/dist/Card/HorizontalCard/HorizontalCardBody.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardBody.js +38 -23
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.js +34 -21
- package/dist/Card/HorizontalCard/index.js +5 -4
- package/dist/Card/HorizontalCard/types.d.ts +5 -5
- package/dist/Card/HorizontalCard/types.js +2 -1
- package/dist/Card/VerticalCard/Card.js +81 -61
- package/dist/Card/VerticalCard/CardBottomSection.js +110 -45
- package/dist/Card/VerticalCard/CardMiddleSection.js +66 -32
- package/dist/Card/VerticalCard/CardTopSection.js +101 -33
- package/dist/Card/VerticalCard/index.js +8 -7
- package/dist/Card/index.js +3 -2
- package/dist/Chips/ActionChip.js +63 -41
- package/dist/Chips/ChipStyles.js +11 -12
- package/dist/Chips/ChipTypes.d.ts +1 -1
- package/dist/Chips/ChipTypes.js +2 -1
- package/dist/Chips/ChoiceChips.js +93 -66
- package/dist/Chips/FilterChip.js +64 -43
- package/dist/Chips/InputChip.js +106 -65
- package/dist/Chips/index.js +7 -6
- package/dist/ChipsInput/ChipDropdownInput.js +361 -224
- package/dist/ChipsInput/ChipInput.js +124 -95
- package/dist/ChipsInput/ChipInputField.js +195 -114
- package/dist/ChipsInput/ChipInputTypes.js +2 -1
- package/dist/ChipsInput/index.js +3 -2
- package/dist/Dropdown/BasicDropdown.d.ts +3 -3
- package/dist/Dropdown/BasicDropdown.js +305 -153
- package/dist/Dropdown/CommonStyling.js +44 -24
- package/dist/Dropdown/DropdownButton.js +206 -103
- package/dist/Dropdown/DropdownButtonTypes.d.ts +3 -3
- package/dist/Dropdown/DropdownButtonTypes.js +2 -1
- package/dist/Dropdown/DropdownContent.js +605 -339
- package/dist/Dropdown/DropdownFilter.js +318 -161
- package/dist/Dropdown/index.js +9 -8
- package/dist/Footer/Components/FooterBottomLinks.js +41 -20
- package/dist/Footer/Components/FooterDropdownLinks.js +61 -25
- package/dist/Footer/Components/FooterNavSection.js +62 -32
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.js +95 -42
- package/dist/Footer/Components/FooterTop.js +60 -34
- package/dist/Footer/Footer.js +20 -17
- package/dist/Footer/SiteFooter.js +89 -51
- package/dist/Footer/index.js +3 -2
- package/dist/GlobalNavigationBar/GlobalNavigationBar.d.ts +1 -1
- package/dist/GlobalNavigationBar/GlobalNavigationBar.js +192 -89
- package/dist/GlobalNavigationBar/Logo.d.ts +1 -1
- package/dist/GlobalNavigationBar/Logo.js +74 -33
- package/dist/GlobalNavigationBar/desktop/DesktopActions.js +146 -88
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js +66 -42
- package/dist/GlobalNavigationBar/desktop/MainMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.js +282 -175
- package/dist/GlobalNavigationBar/desktop/RightSideNav.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js +64 -46
- package/dist/GlobalNavigationBar/desktop/SubMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.js +248 -131
- package/dist/GlobalNavigationBar/desktop/UserMenu.js +155 -90
- package/dist/GlobalNavigationBar/index.js +4 -3
- package/dist/GlobalNavigationBar/mobile/CommonStyles.js +26 -28
- package/dist/GlobalNavigationBar/mobile/MobileActionContainer.js +32 -18
- package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenu.js +146 -94
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.js +145 -89
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js +152 -108
- package/dist/GlobalNavigationBar/types.d.ts +8 -8
- package/dist/GlobalNavigationBar/types.js +2 -1
- package/dist/GlobalNavigationBar/utils.js +10 -7
- package/dist/HyperLink/HyperLink.js +42 -36
- package/dist/HyperLink/index.js +4 -3
- package/dist/HyperLink/styling.js +7 -9
- package/dist/Image/ImageWithFallbacks.d.ts +1 -1
- package/dist/Image/ImageWithFallbacks.js +106 -87
- package/dist/Image/index.js +3 -2
- package/dist/InputFields/Checkbox.js +95 -65
- package/dist/InputFields/DatepickerField.d.ts +1 -1
- package/dist/InputFields/DatepickerField.js +335 -227
- package/dist/InputFields/DatepickerFieldHeader.js +80 -43
- package/dist/InputFields/Label.d.ts +1 -1
- package/dist/InputFields/Label.js +116 -77
- package/dist/InputFields/NumberField.js +304 -194
- package/dist/InputFields/PasswordField.d.ts +1 -1
- package/dist/InputFields/PasswordField.js +129 -60
- package/dist/InputFields/QuickSearch.d.ts +1 -1
- package/dist/InputFields/QuickSearch.js +189 -92
- package/dist/InputFields/RadioButton.d.ts +1 -1
- package/dist/InputFields/RadioButton.js +96 -54
- package/dist/InputFields/ResponsiveComponentWrapper.d.ts +1 -1
- package/dist/InputFields/ResponsiveComponentWrapper.js +44 -20
- package/dist/InputFields/RichTextField.js +111 -83
- package/dist/InputFields/SearchBar.d.ts +1 -1
- package/dist/InputFields/SearchBar.js +187 -63
- package/dist/InputFields/TextField.d.ts +1 -1
- package/dist/InputFields/TextField.js +121 -51
- package/dist/InputFields/Textarea.js +88 -57
- package/dist/InputFields/components/SearchBarInput.d.ts +1 -1
- package/dist/InputFields/components/SearchBarInput.js +73 -26
- package/dist/InputFields/components/SearchField.js +45 -44
- package/dist/InputFields/index.js +14 -13
- package/dist/InputFields/styling.js +38 -33
- package/dist/InputFields/types.d.ts +2 -2
- package/dist/InputFields/types.js +3 -2
- package/dist/Layouts/index.js +41 -25
- package/dist/LinearProgress/LinearProgress.js +105 -78
- package/dist/LinearProgress/index.js +4 -3
- package/dist/List/ListRow.js +140 -83
- package/dist/List/index.js +3 -2
- package/dist/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.js +46 -26
- package/dist/LoadingIndicator/index.js +2 -1
- package/dist/LoadingPage/GlobalLoadingPage.js +36 -26
- package/dist/LoadingPage/index.js +2 -1
- package/dist/MenuItem/MenuItem.d.ts +1 -1
- package/dist/MenuItem/MenuItem.js +101 -60
- package/dist/MenuItem/index.js +2 -1
- package/dist/MiniProductCard/MiniProductCard.d.ts +1 -1
- package/dist/MiniProductCard/MiniProductCard.js +47 -30
- package/dist/MiniProductCard/index.js +2 -1
- package/dist/Modals/Modal.d.ts +1 -1
- package/dist/Modals/Modal.js +55 -36
- package/dist/Modals/ModalContainer.d.ts +2 -2
- package/dist/Modals/ModalContainer.js +185 -130
- package/dist/Modals/ModalContent.js +246 -159
- package/dist/Modals/ModalDialog.js +339 -166
- package/dist/Modals/ModalNote.js +66 -27
- package/dist/Modals/ModalStyles.js +94 -53
- package/dist/Modals/ModalTypes.d.ts +2 -2
- package/dist/Modals/ModalTypes.js +2 -1
- package/dist/Modals/index.js +7 -6
- package/dist/NavItem/NavItem.d.ts +1 -1
- package/dist/NavItem/NavItem.js +18 -26
- package/dist/NavItem/NestedNavItem.js +28 -18
- package/dist/NavItem/index.js +2 -1
- package/dist/NotificationDot/NotificationDot.js +47 -17
- package/dist/NotificationDot/index.js +2 -1
- package/dist/Paginator/Paginator.js +147 -77
- package/dist/Paginator/index.js +3 -2
- package/dist/Panel/Panel.d.ts +1 -1
- package/dist/Panel/Panel.js +131 -82
- package/dist/Panel/index.js +2 -1
- package/dist/Popover/Popover.js +226 -101
- package/dist/Popover/index.js +2 -1
- package/dist/ProfileButton/ProfileButton.d.ts +2 -2
- package/dist/ProfileButton/ProfileButton.js +75 -52
- package/dist/ProfileButton/index.js +2 -1
- package/dist/QuizButton/QuizButton.d.ts +1 -1
- package/dist/QuizButton/QuizButton.js +121 -53
- package/dist/QuizButton/index.js +2 -1
- package/dist/SegmentControl/SegmentControl.js +78 -57
- package/dist/SegmentControl/index.js +3 -2
- package/dist/Services/functions.js +12 -11
- package/dist/SideMenu/SideMenu.js +30 -43
- package/dist/SideMenu/SideMenuBody.js +38 -24
- package/dist/SideMenu/SideMenuFooter.js +46 -43
- package/dist/SideMenu/SideMenuHeader.js +42 -46
- package/dist/SideMenu/index.js +3 -2
- package/dist/SideMenu/types.d.ts +3 -3
- package/dist/SideMenu/types.js +2 -1
- package/dist/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/SkipToContent/SkipToContent.js +24 -17
- package/dist/SkipToContent/index.js +2 -1
- package/dist/Switcher/MobileCustomMenuContent.js +37 -26
- package/dist/Switcher/MobileSwitcherMenu.js +55 -21
- package/dist/Switcher/SwitcherMenuItem.js +44 -18
- package/dist/Switcher/index.js +4 -3
- package/dist/Table/Table.js +391 -286
- package/dist/Table/TableBody.js +244 -116
- package/dist/Table/TableFooter.js +94 -41
- package/dist/Table/TableHeaders.js +31 -26
- package/dist/Table/TableStyles.js +48 -40
- package/dist/Table/TableTypes.d.ts +4 -4
- package/dist/Table/TableTypes.js +2 -2
- package/dist/Table/index.js +4 -3
- package/dist/Tabs/HorizontalTabs.js +161 -116
- package/dist/Tabs/TabLink.js +117 -76
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tabs/Tabs.js +80 -62
- package/dist/Tabs/VerticalTabs.js +46 -13
- package/dist/Tabs/index.js +4 -3
- package/dist/Tag/Tag.d.ts +2 -2
- package/dist/Tag/Tag.js +49 -41
- package/dist/Tag/index.js +2 -1
- package/dist/Tile/Tile.js +42 -43
- package/dist/Tile/TileBody.js +18 -15
- package/dist/Tile/TileCommonItems.js +117 -75
- package/dist/Tile/TileFooter.js +28 -19
- package/dist/Tile/TileHeader.js +81 -57
- package/dist/Tile/TileTypes.d.ts +8 -8
- package/dist/Tile/TileTypes.js +2 -1
- package/dist/Tile/index.js +4 -3
- package/dist/Toasters/Toast.d.ts +2 -2
- package/dist/Toasters/Toast.js +241 -166
- package/dist/Toasters/ToastContext.d.ts +2 -2
- package/dist/Toasters/ToastContext.js +145 -69
- package/dist/Toasters/index.js +5 -4
- package/dist/Toggles/ToggleButton.js +71 -48
- package/dist/Toggles/ToggleSwitch.js +83 -61
- package/dist/Toggles/TogglerStyles.js +12 -13
- package/dist/Toggles/TogglerTypes.js +2 -1
- package/dist/Toggles/index.js +4 -3
- package/dist/Tooltips/TooltipOverflow.js +102 -71
- package/dist/Tooltips/TooltipStyles.d.ts +1 -1
- package/dist/Tooltips/TooltipStyles.js +70 -41
- package/dist/Tooltips/TooltipTypes.js +2 -1
- package/dist/Tooltips/TooltipWrapper.js +93 -65
- package/dist/Tooltips/index.js +4 -3
- package/dist/assets/index.d.ts +1 -1
- package/dist/assets/index.js +154 -41
- package/dist/common/ActionWithin.js +45 -25
- package/dist/common/ClickOutside.js +23 -20
- package/dist/common/EventHandlers.js +9 -8
- package/dist/common/FocusOutside.js +23 -20
- package/dist/common/FocusVisible.d.ts +1 -1
- package/dist/common/FocusVisible.js +89 -75
- package/dist/common/InputStyling.js +6 -8
- package/dist/common/NavigationHelper.js +24 -18
- package/dist/common/ScrollableContainer.js +25 -22
- package/dist/common/StackState.js +29 -10
- package/dist/common/index.js +7 -6
- package/dist/icons/contenticons/Adaptive.js +37 -31
- package/dist/icons/contenticons/Add.js +37 -31
- package/dist/icons/contenticons/Adult.js +37 -31
- package/dist/icons/contenticons/AedNoShockAdvised.js +37 -31
- package/dist/icons/contenticons/AedPads.js +37 -31
- package/dist/icons/contenticons/AedPadsCorrect.js +37 -31
- package/dist/icons/contenticons/AedPadsError.js +37 -31
- package/dist/icons/contenticons/AedShockAdvised.js +37 -31
- package/dist/icons/contenticons/Ambulance.js +37 -31
- package/dist/icons/contenticons/Assignments.js +37 -31
- package/dist/icons/contenticons/Attention.js +37 -31
- package/dist/icons/contenticons/AutomaticMode.js +37 -31
- package/dist/icons/contenticons/AwardWinningPerson.js +37 -31
- package/dist/icons/contenticons/Biohazard.js +37 -31
- package/dist/icons/contenticons/Bleeding.js +37 -31
- package/dist/icons/contenticons/Book.js +37 -31
- package/dist/icons/contenticons/Buildings.js +37 -31
- package/dist/icons/contenticons/CPRCall.js +37 -31
- package/dist/icons/contenticons/CPRCycles.js +37 -31
- package/dist/icons/contenticons/CPRTraining.js +37 -31
- package/dist/icons/contenticons/Calendar.js +37 -31
- package/dist/icons/contenticons/Call.js +37 -31
- package/dist/icons/contenticons/Certificate.js +37 -31
- package/dist/icons/contenticons/ChestCompressionFraction.js +37 -31
- package/dist/icons/contenticons/Child.js +37 -31
- package/dist/icons/contenticons/Cleaning.js +37 -31
- package/dist/icons/contenticons/ClinicalFindings.js +37 -31
- package/dist/icons/contenticons/Cloud.js +37 -31
- package/dist/icons/contenticons/CloudAttension.js +37 -31
- package/dist/icons/contenticons/CloudChecked.js +37 -31
- package/dist/icons/contenticons/CloudDownload.js +37 -31
- package/dist/icons/contenticons/CloudLocked.js +37 -31
- package/dist/icons/contenticons/CloudNoConnection.js +37 -31
- package/dist/icons/contenticons/CloudSyncing.js +37 -31
- package/dist/icons/contenticons/CloudUpload.js +37 -31
- package/dist/icons/contenticons/Code.js +37 -31
- package/dist/icons/contenticons/CoffeeBreak.js +37 -31
- package/dist/icons/contenticons/Contact.js +37 -31
- package/dist/icons/contenticons/ContactInfo.js +37 -31
- package/dist/icons/contenticons/Cookie.js +37 -31
- package/dist/icons/contenticons/CountAloud.js +37 -31
- package/dist/icons/contenticons/Dashboard.js +37 -31
- package/dist/icons/contenticons/Data.js +37 -31
- package/dist/icons/contenticons/DecisionFlow.js +37 -31
- package/dist/icons/contenticons/Defribilator.js +37 -31
- package/dist/icons/contenticons/DefribilatorMonitor.js +37 -31
- package/dist/icons/contenticons/Depth.js +37 -31
- package/dist/icons/contenticons/Desktop.js +37 -31
- package/dist/icons/contenticons/DeviceChecked.js +37 -31
- package/dist/icons/contenticons/Dispatcher.js +37 -31
- package/dist/icons/contenticons/Doctor.js +37 -31
- package/dist/icons/contenticons/DocumentChecked.js +37 -31
- package/dist/icons/contenticons/Download.js +37 -31
- package/dist/icons/contenticons/ELearning.js +37 -31
- package/dist/icons/contenticons/EMSRescuer.js +37 -31
- package/dist/icons/contenticons/ESimulation.js +37 -31
- package/dist/icons/contenticons/Edit.js +37 -31
- package/dist/icons/contenticons/Educator.js +37 -31
- package/dist/icons/contenticons/Elderly.js +37 -31
- package/dist/icons/contenticons/Embryo.js +37 -31
- package/dist/icons/contenticons/EventLog.js +37 -31
- package/dist/icons/contenticons/Faq.js +37 -31
- package/dist/icons/contenticons/Female.js +37 -31
- package/dist/icons/contenticons/FirstAid.js +37 -31
- package/dist/icons/contenticons/Geriatric.js +37 -31
- package/dist/icons/contenticons/GiftCard.js +37 -31
- package/dist/icons/contenticons/Goals.js +37 -31
- package/dist/icons/contenticons/Grid.js +37 -31
- package/dist/icons/contenticons/GuidedTour.js +37 -31
- package/dist/icons/contenticons/HandPlacement.js +37 -31
- package/dist/icons/contenticons/HandPlacementCorrect.js +37 -31
- package/dist/icons/contenticons/HandPlacementIncorrect.js +37 -31
- package/dist/icons/contenticons/HeadTilt.js +37 -31
- package/dist/icons/contenticons/Heart.js +37 -31
- package/dist/icons/contenticons/HeartPulse.js +37 -31
- package/dist/icons/contenticons/HeartShock.js +37 -31
- package/dist/icons/contenticons/Help.js +37 -31
- package/dist/icons/contenticons/Hierarchy.js +37 -31
- package/dist/icons/contenticons/Hospital.js +37 -31
- package/dist/icons/contenticons/Hospitalized.js +37 -31
- package/dist/icons/contenticons/House.js +37 -31
- package/dist/icons/contenticons/Infant.js +37 -31
- package/dist/icons/contenticons/Information.js +37 -31
- package/dist/icons/contenticons/Injustice.js +37 -31
- package/dist/icons/contenticons/Institute.js +37 -31
- package/dist/icons/contenticons/Justice.js +37 -31
- package/dist/icons/contenticons/Laptop.js +37 -31
- package/dist/icons/contenticons/Leaflet.js +37 -31
- package/dist/icons/contenticons/Learner.js +37 -31
- package/dist/icons/contenticons/Levels.js +37 -31
- package/dist/icons/contenticons/LevelsDecreasing.js +37 -31
- package/dist/icons/contenticons/LevelsIncreasing.js +37 -31
- package/dist/icons/contenticons/LevelsStarred.js +37 -31
- package/dist/icons/contenticons/Maintenance.js +37 -31
- package/dist/icons/contenticons/Male.js +37 -31
- package/dist/icons/contenticons/Manikin.js +37 -31
- package/dist/icons/contenticons/ManikinCorrect.js +37 -31
- package/dist/icons/contenticons/ManikinError.js +37 -31
- package/dist/icons/contenticons/ManualMode.js +37 -31
- package/dist/icons/contenticons/MapPoint.js +37 -31
- package/dist/icons/contenticons/MaskLeak.js +37 -31
- package/dist/icons/contenticons/MedicalHistory.js +37 -31
- package/dist/icons/contenticons/MedicalRecord.js +37 -31
- package/dist/icons/contenticons/Medication.js +37 -31
- package/dist/icons/contenticons/Metronome.js +37 -31
- package/dist/icons/contenticons/MoodHappy.js +37 -31
- package/dist/icons/contenticons/MoodIndifferent.js +37 -31
- package/dist/icons/contenticons/MoodSad.js +37 -31
- package/dist/icons/contenticons/MoodVeryHappy.js +37 -31
- package/dist/icons/contenticons/MoodVerySad.js +37 -31
- package/dist/icons/contenticons/Newborn.js +37 -31
- package/dist/icons/contenticons/NoInterruption.js +37 -31
- package/dist/icons/contenticons/Note.js +37 -31
- package/dist/icons/contenticons/Pain.js +37 -31
- package/dist/icons/contenticons/Patient.js +37 -31
- package/dist/icons/contenticons/PatientAssignment.js +37 -31
- package/dist/icons/contenticons/PatientMonitor.js +37 -31
- package/dist/icons/contenticons/PatientStretcher.js +37 -31
- package/dist/icons/contenticons/PatientTransfer.js +37 -31
- package/dist/icons/contenticons/PatientTreatment.js +37 -31
- package/dist/icons/contenticons/Person.js +37 -31
- package/dist/icons/contenticons/PhysiologicalModel.js +37 -31
- package/dist/icons/contenticons/PieChart.js +37 -31
- package/dist/icons/contenticons/Pill.js +37 -31
- package/dist/icons/contenticons/Pregnant.js +37 -31
- package/dist/icons/contenticons/Print.js +37 -31
- package/dist/icons/contenticons/ProvidersOrders.js +37 -31
- package/dist/icons/contenticons/Pulse.js +37 -31
- package/dist/icons/contenticons/RQICart.js +37 -31
- package/dist/icons/contenticons/Rate.js +37 -31
- package/dist/icons/contenticons/RateTooFast.js +37 -31
- package/dist/icons/contenticons/RateTooSlow.js +37 -31
- package/dist/icons/contenticons/Recoil.js +37 -31
- package/dist/icons/contenticons/Ruler.js +37 -31
- package/dist/icons/contenticons/Screens.js +37 -31
- package/dist/icons/contenticons/Search.js +37 -31
- package/dist/icons/contenticons/Sepsis.js +37 -31
- package/dist/icons/contenticons/Settings.js +37 -31
- package/dist/icons/contenticons/Shock.js +37 -31
- package/dist/icons/contenticons/ShockAdvised.js +37 -31
- package/dist/icons/contenticons/ShockAutomated.js +37 -31
- package/dist/icons/contenticons/ShockNotAdvised.js +37 -31
- package/dist/icons/contenticons/Sleep.js +37 -31
- package/dist/icons/contenticons/Smartphone.js +37 -31
- package/dist/icons/contenticons/Speech.js +37 -31
- package/dist/icons/contenticons/SpeechBubble.js +37 -31
- package/dist/icons/contenticons/SpeechBubbles.js +37 -31
- package/dist/icons/contenticons/Star.js +37 -31
- package/dist/icons/contenticons/Stethoscope.js +37 -31
- package/dist/icons/contenticons/Stock.js +37 -31
- package/dist/icons/contenticons/Stopwatch.js +37 -31
- package/dist/icons/contenticons/Suitcase.js +37 -31
- package/dist/icons/contenticons/SwitchCamera.js +37 -31
- package/dist/icons/contenticons/SwitchRoles.js +37 -31
- package/dist/icons/contenticons/Tablet.js +37 -31
- package/dist/icons/contenticons/Talking.js +37 -31
- package/dist/icons/contenticons/TargetGroup.js +37 -31
- package/dist/icons/contenticons/TaskTrainer.js +37 -31
- package/dist/icons/contenticons/TeamLead.js +37 -31
- package/dist/icons/contenticons/TeamWork.js +37 -31
- package/dist/icons/contenticons/Terms.js +37 -31
- package/dist/icons/contenticons/TimelineReview.js +37 -31
- package/dist/icons/contenticons/Translation.js +37 -31
- package/dist/icons/contenticons/Trophy.js +37 -31
- package/dist/icons/contenticons/Trophy1st.js +37 -31
- package/dist/icons/contenticons/Trophy2nd.js +37 -31
- package/dist/icons/contenticons/Trophy3rd.js +37 -31
- package/dist/icons/contenticons/TrophyStar.js +37 -31
- package/dist/icons/contenticons/Truck.js +37 -31
- package/dist/icons/contenticons/TwoRescuerCPR.js +37 -31
- package/dist/icons/contenticons/USB.js +37 -31
- package/dist/icons/contenticons/Ultrasound.js +37 -31
- package/dist/icons/contenticons/VentilationLungs.js +37 -31
- package/dist/icons/contenticons/VentilationPressure.js +37 -31
- package/dist/icons/contenticons/VentilationVolume.js +37 -31
- package/dist/icons/contenticons/Video.js +37 -31
- package/dist/icons/contenticons/VideoRecording.js +37 -31
- package/dist/icons/contenticons/Visibility.js +37 -31
- package/dist/icons/contenticons/VitalSigns.js +37 -31
- package/dist/icons/contenticons/index.js +180 -179
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +67 -41
- package/dist/icons/systemicons/Accessibility.js +37 -31
- package/dist/icons/systemicons/Add.js +37 -31
- package/dist/icons/systemicons/AddUser.js +37 -31
- package/dist/icons/systemicons/Adult.js +37 -31
- package/dist/icons/systemicons/AedPads.js +37 -31
- package/dist/icons/systemicons/AedPadsCorrect.js +37 -31
- package/dist/icons/systemicons/AedPadsError.js +37 -31
- package/dist/icons/systemicons/Archive.js +37 -31
- package/dist/icons/systemicons/ArrowCollapse.js +37 -31
- package/dist/icons/systemicons/ArrowDropDown.js +37 -31
- package/dist/icons/systemicons/ArrowDropLeft.js +37 -31
- package/dist/icons/systemicons/ArrowDropRight.js +37 -31
- package/dist/icons/systemicons/ArrowDropUp.js +37 -31
- package/dist/icons/systemicons/ArrowExpand.js +37 -31
- package/dist/icons/systemicons/ArrowLineDown.js +37 -31
- package/dist/icons/systemicons/ArrowLineLeft.js +37 -31
- package/dist/icons/systemicons/ArrowLineRight.js +37 -31
- package/dist/icons/systemicons/ArrowLineUp.js +37 -31
- package/dist/icons/systemicons/ArrowStopLeft.js +37 -31
- package/dist/icons/systemicons/ArrowStopRight.js +37 -31
- package/dist/icons/systemicons/Assignments.js +37 -31
- package/dist/icons/systemicons/Asterisk.js +37 -31
- package/dist/icons/systemicons/Attachment.js +37 -31
- package/dist/icons/systemicons/Attention.js +37 -31
- package/dist/icons/systemicons/AudioDescriptionOn.js +37 -31
- package/dist/icons/systemicons/BackwardsFiveSec.js +37 -31
- package/dist/icons/systemicons/Battery0.js +37 -31
- package/dist/icons/systemicons/Battery1.js +37 -31
- package/dist/icons/systemicons/Battery2.js +37 -31
- package/dist/icons/systemicons/Battery3.js +37 -31
- package/dist/icons/systemicons/Battery4.js +37 -31
- package/dist/icons/systemicons/Battery5.js +37 -31
- package/dist/icons/systemicons/Battery6.js +37 -31
- package/dist/icons/systemicons/BatteryFull.js +37 -31
- package/dist/icons/systemicons/Bluetooth.js +37 -31
- package/dist/icons/systemicons/Book.js +37 -31
- package/dist/icons/systemicons/BookmarkAdd.js +37 -31
- package/dist/icons/systemicons/BookmarkCollection.js +37 -31
- package/dist/icons/systemicons/BookmarkOff.js +37 -31
- package/dist/icons/systemicons/BookmarkOn.js +37 -31
- package/dist/icons/systemicons/Bullet.js +37 -31
- package/dist/icons/systemicons/Calendar.js +37 -31
- package/dist/icons/systemicons/CheckMark.js +37 -31
- package/dist/icons/systemicons/CheckboxOff.js +37 -31
- package/dist/icons/systemicons/CheckboxOn.js +37 -31
- package/dist/icons/systemicons/CheckboxSemi.js +37 -31
- package/dist/icons/systemicons/ChevronDown.js +37 -31
- package/dist/icons/systemicons/ChevronLeft.js +37 -31
- package/dist/icons/systemicons/ChevronRight.js +37 -31
- package/dist/icons/systemicons/ChevronUp.js +37 -31
- package/dist/icons/systemicons/Child.js +37 -31
- package/dist/icons/systemicons/Clear.js +37 -31
- package/dist/icons/systemicons/Close.js +37 -31
- package/dist/icons/systemicons/ClosedCaptionOn.js +37 -31
- package/dist/icons/systemicons/Cloud.js +37 -31
- package/dist/icons/systemicons/CloudAttention.js +37 -31
- package/dist/icons/systemicons/CloudCheck.js +37 -31
- package/dist/icons/systemicons/CloudDownload.js +37 -31
- package/dist/icons/systemicons/CloudLocked.js +37 -31
- package/dist/icons/systemicons/CloudNoConnection.js +37 -31
- package/dist/icons/systemicons/CloudSyncing.js +37 -31
- package/dist/icons/systemicons/CloudUpload.js +37 -31
- package/dist/icons/systemicons/CoffeeBreak.js +37 -31
- package/dist/icons/systemicons/Copy.js +37 -31
- package/dist/icons/systemicons/Dashboard.js +37 -31
- package/dist/icons/systemicons/DecisionFlow.js +37 -31
- package/dist/icons/systemicons/Delete.js +37 -31
- package/dist/icons/systemicons/Document.js +39 -31
- package/dist/icons/systemicons/Download.js +37 -31
- package/dist/icons/systemicons/DragHandle.js +37 -31
- package/dist/icons/systemicons/DragIndicator.js +37 -31
- package/dist/icons/systemicons/Edit.js +37 -31
- package/dist/icons/systemicons/Educator.js +37 -31
- package/dist/icons/systemicons/Equals.js +37 -31
- package/dist/icons/systemicons/EventLog.js +37 -31
- package/dist/icons/systemicons/Export.js +37 -31
- package/dist/icons/systemicons/ExportCVS.js +37 -31
- package/dist/icons/systemicons/ExportDoc.js +37 -31
- package/dist/icons/systemicons/ExportEXL.js +37 -31
- package/dist/icons/systemicons/ExportJpg.js +37 -31
- package/dist/icons/systemicons/ExportPDF.js +37 -31
- package/dist/icons/systemicons/ExportPNG.js +37 -31
- package/dist/icons/systemicons/ExtendTextArea.js +37 -31
- package/dist/icons/systemicons/Facebook.js +37 -31
- package/dist/icons/systemicons/Filter.js +37 -31
- package/dist/icons/systemicons/Flickr.js +37 -31
- package/dist/icons/systemicons/Forward.js +37 -31
- package/dist/icons/systemicons/ForwardFiveSec.js +37 -31
- package/dist/icons/systemicons/ForwardSlash.js +37 -31
- package/dist/icons/systemicons/Fullscreen.js +37 -31
- package/dist/icons/systemicons/FullscreenExit.js +37 -31
- package/dist/icons/systemicons/GearSettings.js +37 -31
- package/dist/icons/systemicons/GridView.js +37 -31
- package/dist/icons/systemicons/Group.js +37 -31
- package/dist/icons/systemicons/GuidedTour.js +37 -31
- package/dist/icons/systemicons/HeartShock.js +37 -31
- package/dist/icons/systemicons/Help.js +37 -31
- package/dist/icons/systemicons/Hierarchy.js +37 -31
- package/dist/icons/systemicons/History.js +37 -31
- package/dist/icons/systemicons/Home.js +37 -31
- package/dist/icons/systemicons/Image.js +37 -31
- package/dist/icons/systemicons/Infant.js +37 -31
- package/dist/icons/systemicons/Information.js +37 -31
- package/dist/icons/systemicons/Institute.js +37 -31
- package/dist/icons/systemicons/Keyboard.js +37 -31
- package/dist/icons/systemicons/Language.js +37 -31
- package/dist/icons/systemicons/Learner.js +37 -31
- package/dist/icons/systemicons/Legend.js +37 -31
- package/dist/icons/systemicons/Legend1Circle.js +37 -31
- package/dist/icons/systemicons/Legend2Triangle.js +37 -31
- package/dist/icons/systemicons/Legend3Star.js +37 -31
- package/dist/icons/systemicons/Legend4Square.js +37 -31
- package/dist/icons/systemicons/Legend5Diamond.js +37 -31
- package/dist/icons/systemicons/Legend6Nabla.js +37 -31
- package/dist/icons/systemicons/Legend7Pentagon.js +37 -31
- package/dist/icons/systemicons/Legend8Rectangle.js +37 -31
- package/dist/icons/systemicons/LegendStrokeDashed.js +37 -31
- package/dist/icons/systemicons/LegendStrokeSolid.js +37 -31
- package/dist/icons/systemicons/LikeOff.js +37 -31
- package/dist/icons/systemicons/LikeOn.js +37 -31
- package/dist/icons/systemicons/Link.js +37 -31
- package/dist/icons/systemicons/LinkedIn.js +37 -31
- package/dist/icons/systemicons/ListView.js +37 -31
- package/dist/icons/systemicons/LoadingMedium.js +30 -8
- package/dist/icons/systemicons/LoadingSmall.js +30 -8
- package/dist/icons/systemicons/LockedOff.js +37 -31
- package/dist/icons/systemicons/LockedOn.js +37 -31
- package/dist/icons/systemicons/Login.js +37 -31
- package/dist/icons/systemicons/Logout.js +37 -31
- package/dist/icons/systemicons/Loop.js +37 -31
- package/dist/icons/systemicons/Mail.js +37 -31
- package/dist/icons/systemicons/Manikin.js +37 -31
- package/dist/icons/systemicons/MapPoint.js +37 -31
- package/dist/icons/systemicons/Menu.js +37 -31
- package/dist/icons/systemicons/Metronome.js +37 -31
- package/dist/icons/systemicons/Microphone.js +37 -31
- package/dist/icons/systemicons/Minus.js +37 -31
- package/dist/icons/systemicons/MoreHorizontal.js +37 -31
- package/dist/icons/systemicons/MoreVertical.js +37 -31
- package/dist/icons/systemicons/Notification.js +37 -31
- package/dist/icons/systemicons/NotificationNew.js +37 -31
- package/dist/icons/systemicons/OpenFolder.js +37 -31
- package/dist/icons/systemicons/OpenNewWindow.js +37 -31
- package/dist/icons/systemicons/OverView.js +37 -31
- package/dist/icons/systemicons/Pause.js +37 -31
- package/dist/icons/systemicons/PieChart.js +37 -31
- package/dist/icons/systemicons/Pin.js +37 -31
- package/dist/icons/systemicons/Play.js +37 -31
- package/dist/icons/systemicons/PlayList.js +37 -31
- package/dist/icons/systemicons/PlayOutline.js +37 -31
- package/dist/icons/systemicons/PlaybackSpeed.js +37 -31
- package/dist/icons/systemicons/Plus.js +37 -31
- package/dist/icons/systemicons/PointDown.js +37 -31
- package/dist/icons/systemicons/PointLeft.js +37 -31
- package/dist/icons/systemicons/PointRight.js +37 -31
- package/dist/icons/systemicons/PointUp.js +37 -31
- package/dist/icons/systemicons/Print.js +37 -31
- package/dist/icons/systemicons/RadioButtonOff.js +37 -31
- package/dist/icons/systemicons/RadioButtonOn.js +37 -31
- package/dist/icons/systemicons/Record.js +37 -31
- package/dist/icons/systemicons/Refresh.js +37 -31
- package/dist/icons/systemicons/Replay.js +37 -31
- package/dist/icons/systemicons/Rewind.js +37 -31
- package/dist/icons/systemicons/SUN.js +37 -31
- package/dist/icons/systemicons/Save.js +37 -31
- package/dist/icons/systemicons/Search.js +37 -31
- package/dist/icons/systemicons/SendTo.js +37 -31
- package/dist/icons/systemicons/Share.js +37 -31
- package/dist/icons/systemicons/Shock.js +37 -31
- package/dist/icons/systemicons/ShockAdvised.js +37 -31
- package/dist/icons/systemicons/ShockAutomated.js +37 -31
- package/dist/icons/systemicons/ShockNotAdvised.js +37 -31
- package/dist/icons/systemicons/ShoppingCart.js +37 -31
- package/dist/icons/systemicons/SkipForward.js +37 -31
- package/dist/icons/systemicons/Sort.js +37 -31
- package/dist/icons/systemicons/SpeechBuble.js +37 -31
- package/dist/icons/systemicons/StarFilled.js +37 -31
- package/dist/icons/systemicons/StarOutlined.js +37 -31
- package/dist/icons/systemicons/Stop.js +37 -31
- package/dist/icons/systemicons/Support.js +37 -31
- package/dist/icons/systemicons/SwitchApp.js +37 -31
- package/dist/icons/systemicons/Team.js +37 -31
- package/dist/icons/systemicons/TechnicalWarning.js +37 -31
- package/dist/icons/systemicons/ThumbsDown.js +37 -31
- package/dist/icons/systemicons/ThumbsUp.js +37 -31
- package/dist/icons/systemicons/Time.js +37 -31
- package/dist/icons/systemicons/TimeLimited.js +37 -31
- package/dist/icons/systemicons/Timeline.js +37 -31
- package/dist/icons/systemicons/Tip.js +37 -31
- package/dist/icons/systemicons/Transcript.js +37 -31
- package/dist/icons/systemicons/Translation.js +37 -31
- package/dist/icons/systemicons/Twitter.js +37 -31
- package/dist/icons/systemicons/Upload.js +37 -31
- package/dist/icons/systemicons/Usb.js +37 -31
- package/dist/icons/systemicons/User.js +37 -31
- package/dist/icons/systemicons/Video.js +37 -31
- package/dist/icons/systemicons/VisibleOff.js +37 -31
- package/dist/icons/systemicons/VisibleOn.js +37 -31
- package/dist/icons/systemicons/VolumeDown.js +37 -31
- package/dist/icons/systemicons/VolumeOff.js +37 -31
- package/dist/icons/systemicons/VolumeUp.js +37 -31
- package/dist/icons/systemicons/Youtube.js +37 -31
- package/dist/icons/systemicons/Zoom.js +37 -31
- package/dist/icons/systemicons/ZoomOut.js +37 -31
- package/dist/icons/systemicons/index.js +205 -204
- package/dist/index.js +46 -45
- package/dist/styles/breakpoints.js +7 -6
- package/dist/styles/colors.js +110 -89
- package/dist/styles/focus-styles.js +7 -9
- package/dist/styles/global.js +25 -13
- package/dist/styles/index.cjs +2 -2
- package/dist/styles/index.cjs.map +1 -1
- package/dist/styles/index.d.ts +1 -1
- package/dist/styles/index.js +18 -20
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/overwritecolors.cjs +2 -2
- package/dist/styles/overwritecolors.cjs.map +1 -1
- package/dist/styles/overwritecolors.d.ts +2 -1
- package/dist/styles/overwritecolors.js +12 -12
- package/dist/styles/overwritecolors.js.map +1 -1
- package/dist/styles/shadowstyles.js +8 -7
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +279 -130
- package/dist/styles/z-indexes.js +17 -16
- package/dist/types.js +52 -51
- package/dist/utils/utils.js +4 -3
- package/package.json +1 -1
|
@@ -1,237 +1,345 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
5
|
+
import _pt from "prop-types";
|
|
6
|
+
var _excluded = ["disabled", "readOnly", "onChange", "invalid", "value", "validationMessage", "dateFormat", "autoComplete", "placeholder", "required", "yearPicker", "yearsBeforeCurrentDate", "yearsAfterCurrentDate", "margin", "overflowTooltipPosition", "onBlur", "showQuarterYearPicker", "id", "dataTestId"];
|
|
7
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
10
|
/**
|
|
28
11
|
* Import react libraries.
|
|
29
|
-
*/
|
|
30
|
-
import React from 'react';
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
|
|
31
15
|
/**
|
|
32
16
|
* Import third-party libraries.
|
|
33
|
-
*/
|
|
34
|
-
import styled from 'styled-components';
|
|
35
|
-
import DatePicker from 'react-datepicker';
|
|
36
|
-
import en from 'date-fns/locale/en-GB';
|
|
37
|
-
import dayjs from 'dayjs';
|
|
38
|
-
import advancedFormat from 'dayjs/plugin/advancedFormat';
|
|
39
|
-
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
40
|
-
dayjs.extend(advancedFormat);
|
|
41
|
-
dayjs.extend(quarterOfYear);
|
|
17
|
+
*/
|
|
18
|
+
import styled from 'styled-components';
|
|
19
|
+
import DatePicker from 'react-datepicker';
|
|
20
|
+
import en from 'date-fns/locale/en-GB';
|
|
21
|
+
import dayjs from 'dayjs';
|
|
22
|
+
import advancedFormat from 'dayjs/plugin/advancedFormat';
|
|
23
|
+
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
24
|
+
dayjs.extend(advancedFormat);
|
|
25
|
+
dayjs.extend(quarterOfYear);
|
|
26
|
+
|
|
42
27
|
/**
|
|
43
28
|
* Import custom components.
|
|
44
|
-
*/
|
|
45
|
-
import COLORS from '../styles/colors';
|
|
46
|
-
import { SystemIcons } from '../icons';
|
|
47
|
-
import { DatepickerFieldHeader } from './DatepickerFieldHeader';
|
|
48
|
-
import { ComponentTextStyle, focusStyles, scrollBarStyling } from '../styles';
|
|
49
|
-
import TooltipOverflow from '../Tooltips/TooltipOverflow';
|
|
29
|
+
*/
|
|
30
|
+
import COLORS from '../styles/colors';
|
|
31
|
+
import { SystemIcons } from '../icons';
|
|
32
|
+
import { DatepickerFieldHeader } from './DatepickerFieldHeader';
|
|
33
|
+
import { ComponentTextStyle, focusStyles, scrollBarStyling } from '../styles';
|
|
34
|
+
import TooltipOverflow from '../Tooltips/TooltipOverflow';
|
|
35
|
+
|
|
50
36
|
/**
|
|
51
37
|
* Import custom styles.
|
|
52
|
-
*/
|
|
53
|
-
import { ErrorMessage, InputFieldStyling, InputWrapper } from './styling';
|
|
54
|
-
import 'react-datepicker/dist/react-datepicker.css';
|
|
55
|
-
import { ComponentMStyling, ComponentSStyling } from '../styles';
|
|
56
|
-
import { Z_INDEXES } from '../styles';
|
|
57
|
-
import { useFocusVisibleRef } from '../common';
|
|
58
|
-
import { Size } from '../types';
|
|
38
|
+
*/
|
|
39
|
+
import { ErrorMessage, InputFieldStyling, InputWrapper } from './styling';
|
|
40
|
+
import 'react-datepicker/dist/react-datepicker.css';
|
|
41
|
+
import { ComponentMStyling, ComponentSStyling } from '../styles';
|
|
42
|
+
import { Z_INDEXES } from '../styles';
|
|
43
|
+
import { useFocusVisibleRef } from '../common';
|
|
44
|
+
import { Size } from '../types';
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Add custom types.
|
|
48
|
+
*/
|
|
49
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
50
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
51
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
59
52
|
/**
|
|
60
53
|
* Add custom styles.
|
|
61
|
-
*/
|
|
62
|
-
var DatePickerContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .react-datepicker-popper {\n z-index: ", ";\n }\n\n .react-datepicker-popper[data-placement^=bottom] {\n padding-top: 0px;\n }\n\n \n .react-datepicker-popper[data-placement^=top] {\n padding-bottom: 0px;\n }\n\n > div {\n display: block;\n\n ", "\n .react-datepicker {\n box-sizing: border-box;\n box-shadow: 0px 2px 4px rgb(0 0 0 / 15%);\n border: 1px solid #e5e5e5;\n }\n .react-datepicker__input-container{\n z-index: 0;\n }\n\n .react-datepicker__navigation {\n line-height: normal;\n text-indent: inherit;\n border: none;\n border-radius: 4px;\n height: 48px;\n width: 48px;\n outline: none;\n margin: 0px;\n color: transparent;\n\n &:hover {\n background: ", ";\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23215369' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23215369' /%3E%3C/svg%3E\");\n }\n }\n\n &:focus {\n ", "\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23163746' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23163746' /%3E%3C/svg%3E\");\n }\n }\n\n &::before {\n text-align: center;\n display: inline-block;\n content: '';\n height: 32px;\n width: 32px;\n vertical-align: middle;\n }\n\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23666666' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23666666' /%3E%3C/svg%3E\");\n }\n }\n\n .react-datepicker__month-container,\n .react-datepicker__year--container {\n width: 336px;\n }\n\n .react-datepicker__month {\n margin: 0px;\n }\n\n .react-datepicker__triangle {\n left: 50% !important;\n display: none;\n }\n\n .react-datepicker-popper[data-placement^='bottom'] {\n margin-top: 0;\n }\n\n .react-datepicker-popper[data-placement^='bottom'] .react-datepicker__triangle {\n border-bottom-color: ", ";\n }\n\n .react-datepicker__header {\n border-bottom: 1px solid ", ";\n background: ", ";\n height: ", ";\n padding-top: 0px;\n }\n\n .react-datepicker-year-header {\n height: 48px;\n line-height: 48px !important;\n align-items: center;\n\n ", "\n }\n\n .react-datepicker__current-month {\n height: 48px;\n display: inline-flex;\n align-items: center;\n margin-right: 5px;\n\n ", "\n }\n\n .react-datepicker__year {\n max-height: 300px;\n overflow-y: scroll;\n\n ", "\n }\n\n .react-datepicker__quarter-wrapper{\n width: 100%;\n display: flex;\n align-content: space-evenly;\n flex-wrap: wrap;\n align-items: center;\n gap: 20px;\n }\n\n .react-datepicker__year-wrapper {\n max-width: 100%;\n justify-content: space-around;\n }\n\n .react-datepicker__navigation-icon {\n display: none;\n }\n\n .react-datepicker__day-name {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n height: 48px;\n margin: 0px;\n width: 48px;\n\n ", "\n }\n\n \n\n .react-datepicker__year-text {\n background: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-top: 20px;\n padding-top: 10px;\n padding-bottom: 10px;\n\n ", "\n &.react-datepicker__year-text--disabled {\n display: none;\n }\n\n &.react-datepicker__day--keyboard-selected {\n color: ", ";\n background: ", ";\n font-weight: 400;\n border: none;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n\n &.react-datepicker__year-text--selected {\n color: ", " !important;\n background: ", " !important;\n }\n }\n\n .react-datepicker__day, .react-datepicker__quarter-text {\n background: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n height: 40px;\n width: 40px;\n margin: 4px;\n\n ", "\n &.react-datepicker__day--keyboard-selected, .react-datepicker__quarter-text--keyboard-selected {\n color: ", ";\n background: ", ";\n flex-grow: 1;\n font-weight: 400;\n border: none;\n }\n\n &.react-datepicker__quarter--selected {\n color: ", " !important;\n flex-grow: 1;\n background: ", " !important;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n\n &.react-datepicker__day--selected {\n color: ", " !important;\n background: ", " !important;\n }\n\n &.react-datepicker__day--today {\n border-radius: 0.3rem;\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n }\n }\n }\n"], ["\n .react-datepicker-popper {\n z-index: ", ";\n }\n\n .react-datepicker-popper[data-placement^=bottom] {\n padding-top: 0px;\n }\n\n \n .react-datepicker-popper[data-placement^=top] {\n padding-bottom: 0px;\n }\n\n > div {\n display: block;\n\n ", "\n .react-datepicker {\n box-sizing: border-box;\n box-shadow: 0px 2px 4px rgb(0 0 0 / 15%);\n border: 1px solid #e5e5e5;\n }\n .react-datepicker__input-container{\n z-index: 0;\n }\n\n .react-datepicker__navigation {\n line-height: normal;\n text-indent: inherit;\n border: none;\n border-radius: 4px;\n height: 48px;\n width: 48px;\n outline: none;\n margin: 0px;\n color: transparent;\n\n &:hover {\n background: ", ";\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23215369' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23215369' /%3E%3C/svg%3E\");\n }\n }\n\n &:focus {\n ", "\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23163746' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23163746' /%3E%3C/svg%3E\");\n }\n }\n\n &::before {\n text-align: center;\n display: inline-block;\n content: '';\n height: 32px;\n width: 32px;\n vertical-align: middle;\n }\n\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23666666' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23666666' /%3E%3C/svg%3E\");\n }\n }\n\n .react-datepicker__month-container,\n .react-datepicker__year--container {\n width: 336px;\n }\n\n .react-datepicker__month {\n margin: 0px;\n }\n\n .react-datepicker__triangle {\n left: 50% !important;\n display: none;\n }\n\n .react-datepicker-popper[data-placement^='bottom'] {\n margin-top: 0;\n }\n\n .react-datepicker-popper[data-placement^='bottom'] .react-datepicker__triangle {\n border-bottom-color: ", ";\n }\n\n .react-datepicker__header {\n border-bottom: 1px solid ", ";\n background: ", ";\n height: ", ";\n padding-top: 0px;\n }\n\n .react-datepicker-year-header {\n height: 48px;\n line-height: 48px !important;\n align-items: center;\n\n ", "\n }\n\n .react-datepicker__current-month {\n height: 48px;\n display: inline-flex;\n align-items: center;\n margin-right: 5px;\n\n ", "\n }\n\n .react-datepicker__year {\n max-height: 300px;\n overflow-y: scroll;\n\n ", "\n }\n\n .react-datepicker__quarter-wrapper{\n width: 100%;\n display: flex;\n align-content: space-evenly;\n flex-wrap: wrap;\n align-items: center;\n gap: 20px;\n }\n\n .react-datepicker__year-wrapper {\n max-width: 100%;\n justify-content: space-around;\n }\n\n .react-datepicker__navigation-icon {\n display: none;\n }\n\n .react-datepicker__day-name {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n height: 48px;\n margin: 0px;\n width: 48px;\n\n ", "\n }\n\n \n\n .react-datepicker__year-text {\n background: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-top: 20px;\n padding-top: 10px;\n padding-bottom: 10px;\n\n ", "\n &.react-datepicker__year-text--disabled {\n display: none;\n }\n\n &.react-datepicker__day--keyboard-selected {\n color: ", ";\n background: ", ";\n font-weight: 400;\n border: none;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n\n &.react-datepicker__year-text--selected {\n color: ", " !important;\n background: ", " !important;\n }\n }\n\n .react-datepicker__day, .react-datepicker__quarter-text {\n background: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n height: 40px;\n width: 40px;\n margin: 4px;\n\n ", "\n &.react-datepicker__day--keyboard-selected, .react-datepicker__quarter-text--keyboard-selected {\n color: ", ";\n background: ", ";\n flex-grow: 1;\n font-weight: 400;\n border: none;\n }\n\n &.react-datepicker__quarter--selected {\n color: ", " !important;\n flex-grow: 1;\n background: ", " !important;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n\n &.react-datepicker__day--selected {\n color: ", " !important;\n background: ", " !important;\n }\n\n &.react-datepicker__day--today {\n border-radius: 0.3rem;\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n }\n }\n }\n"])), Z_INDEXES.dropdown, function (props) { return (props.margin ? "margin: ".concat(props.margin, ";") : ''); }, COLORS.primary_20, focusStyles, COLORS.neutral_20, COLORS.neutral_200, COLORS.neutral_20, function (props) { return (!props.yearPicker ? '96px' : '54px'); }, ComponentSStyling(ComponentTextStyle.Bold, COLORS.neutral_600), ComponentSStyling(ComponentTextStyle.Bold, COLORS.neutral_600), scrollBarStyling(Size.Small), ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), COLORS.white, ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), COLORS.neutral_600, COLORS.white, COLORS.primary_700, COLORS.primary_20, focusStyles, COLORS.white, COLORS.primary_500, COLORS.white, ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), COLORS.neutral_600, COLORS.white, COLORS.white, COLORS.primary_500, COLORS.primary_700, COLORS.primary_20, focusStyles, COLORS.white, COLORS.primary_500, COLORS.neutral_700, COLORS.neutral_100, COLORS.primary_700, COLORS.primary_20, focusStyles);
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
var
|
|
54
|
+
*/
|
|
55
|
+
var DatePickerContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .react-datepicker-popper {\n z-index: ", ";\n }\n\n .react-datepicker-popper[data-placement^=bottom] {\n padding-top: 0px;\n }\n\n \n .react-datepicker-popper[data-placement^=top] {\n padding-bottom: 0px;\n }\n\n > div {\n display: block;\n\n ", "\n .react-datepicker {\n box-sizing: border-box;\n box-shadow: 0px 2px 4px rgb(0 0 0 / 15%);\n border: 1px solid #e5e5e5;\n }\n .react-datepicker__input-container{\n z-index: 0;\n }\n\n .react-datepicker__navigation {\n line-height: normal;\n text-indent: inherit;\n border: none;\n border-radius: 4px;\n height: 48px;\n width: 48px;\n outline: none;\n margin: 0px;\n color: transparent;\n\n &:hover {\n background: ", ";\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23215369' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23215369' /%3E%3C/svg%3E\");\n }\n }\n\n &:focus {\n ", "\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23163746' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23163746' /%3E%3C/svg%3E\");\n }\n }\n\n &::before {\n text-align: center;\n display: inline-block;\n content: '';\n height: 32px;\n width: 32px;\n vertical-align: middle;\n }\n\n &.react-datepicker__navigation--next::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M9.24214 19.8807C8.85113 19.4907 8.85034 18.8575 9.24038 18.4665L15.5184 12.1727L9.24037 5.87895C8.85034 5.48794 8.85113 4.85478 9.24214 4.46474C9.63315 4.0747 10.2663 4.07549 10.6564 4.46651L17.6389 11.4665C18.0282 11.8568 18.0282 12.4886 17.6389 12.879L10.6564 19.879C10.2663 20.27 9.63316 20.2708 9.24214 19.8807Z' fill='%23666666' /%3E%3C/svg%3E\");\n }\n\n &.react-datepicker__navigation--previous::before {\n background-image: url(\"data:image/svg+xml,%3Csvg style='width: 32px; height: 32px;' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M15.1975 4.46474C15.5885 4.85478 15.5893 5.48794 15.1993 5.87895L8.92124 12.1727L15.1993 18.4665C15.5893 18.8575 15.5885 19.4907 15.1975 19.8807C14.8065 20.2708 14.1734 20.27 13.7833 19.879L6.8008 12.879C6.41145 12.4886 6.41145 11.8568 6.8008 11.4665L13.7833 4.46651C14.1734 4.0755 14.8065 4.0747 15.1975 4.46474Z' fill='%23666666' /%3E%3C/svg%3E\");\n }\n }\n\n .react-datepicker__month-container,\n .react-datepicker__year--container {\n width: 336px;\n }\n\n .react-datepicker__month {\n margin: 0px;\n }\n\n .react-datepicker__triangle {\n left: 50% !important;\n display: none;\n }\n\n .react-datepicker-popper[data-placement^='bottom'] {\n margin-top: 0;\n }\n\n .react-datepicker-popper[data-placement^='bottom'] .react-datepicker__triangle {\n border-bottom-color: ", ";\n }\n\n .react-datepicker__header {\n border-bottom: 1px solid ", ";\n background: ", ";\n height: ", ";\n padding-top: 0px;\n }\n\n .react-datepicker-year-header {\n height: 48px;\n line-height: 48px !important;\n align-items: center;\n\n ", "\n }\n\n .react-datepicker__current-month {\n height: 48px;\n display: inline-flex;\n align-items: center;\n margin-right: 5px;\n\n ", "\n }\n\n .react-datepicker__year {\n max-height: 300px;\n overflow-y: scroll;\n\n ", "\n }\n\n .react-datepicker__quarter-wrapper{\n width: 100%;\n display: flex;\n align-content: space-evenly;\n flex-wrap: wrap;\n align-items: center;\n gap: 20px;\n }\n\n .react-datepicker__year-wrapper {\n max-width: 100%;\n justify-content: space-around;\n }\n\n .react-datepicker__navigation-icon {\n display: none;\n }\n\n .react-datepicker__day-name {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n height: 48px;\n margin: 0px;\n width: 48px;\n\n ", "\n }\n\n \n\n .react-datepicker__year-text {\n background: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-top: 20px;\n padding-top: 10px;\n padding-bottom: 10px;\n\n ", "\n &.react-datepicker__year-text--disabled {\n display: none;\n }\n\n &.react-datepicker__day--keyboard-selected {\n color: ", ";\n background: ", ";\n font-weight: 400;\n border: none;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n\n &.react-datepicker__year-text--selected {\n color: ", " !important;\n background: ", " !important;\n }\n }\n\n .react-datepicker__day, .react-datepicker__quarter-text {\n background: ", ";\n border: none;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n flex-grow: 1;\n height: 40px;\n width: 40px;\n margin: 4px;\n\n ", "\n &.react-datepicker__day--keyboard-selected, .react-datepicker__quarter-text--keyboard-selected {\n color: ", ";\n background: ", ";\n flex-grow: 1;\n font-weight: 400;\n border: none;\n }\n\n &.react-datepicker__quarter--selected {\n color: ", " !important;\n flex-grow: 1;\n background: ", " !important;\n }\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n\n &.react-datepicker__day--selected {\n color: ", " !important;\n background: ", " !important;\n }\n\n &.react-datepicker__day--today {\n border-radius: 0.3rem;\n color: ", ";\n background: ", ";\n\n &:hover {\n color: ", ";\n background: ", ";\n }\n\n &:focus {\n ", "\n }\n }\n }\n }\n"])), Z_INDEXES.dropdown, function (props) {
|
|
56
|
+
return props.margin ? "margin: ".concat(props.margin, ";") : '';
|
|
57
|
+
}, COLORS.primary_20, focusStyles, COLORS.neutral_20, COLORS.neutral_200, COLORS.neutral_20, function (props) {
|
|
58
|
+
return !props.yearPicker ? '96px' : '54px';
|
|
59
|
+
}, ComponentSStyling(ComponentTextStyle.Bold, COLORS.neutral_600), ComponentSStyling(ComponentTextStyle.Bold, COLORS.neutral_600), scrollBarStyling(Size.Small), ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), COLORS.white, ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), COLORS.neutral_600, COLORS.white, COLORS.primary_700, COLORS.primary_20, focusStyles, COLORS.white, COLORS.primary_500, COLORS.white, ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_600), COLORS.neutral_600, COLORS.white, COLORS.white, COLORS.primary_500, COLORS.primary_700, COLORS.primary_20, focusStyles, COLORS.white, COLORS.primary_500, COLORS.neutral_700, COLORS.neutral_100, COLORS.primary_700, COLORS.primary_20, focusStyles);
|
|
60
|
+
var IconWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n pointer-events: none;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\n z-index: ", ";\n"])), +Z_INDEXES.focus + 1);
|
|
61
|
+
var DatepickerRow = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n align-items: center;\n"])));
|
|
62
|
+
var StyledInputFieldStyling = styled(InputFieldStyling)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding-left: 48px !important;\n \n &::placeholder {\n color: ", ";\n }\n\n &:focus:not(.focus-visible) {\n box-shadow: inset 0px 0px 0px 2px ", ";\n }\n\n &:hover {\n box-shadow: inset 0px 0px 0px 2px ", ";\n\n ::placeholder {\n color: ", ";\n }\n\n cursor: pointer;\n background-color: ", ";\n color: ", ";\n }\n\n &:active,\n &.open {\n box-shadow: inset 0px 0px 0px 2px ", ";\n background-color: ", ";\n color: ", ";\n\n ::placeholder {\n color: ", ";\n }\n }\n \n &:disabled {\n background-color: ", ";\n }\n\n & ~ ", "{\n color: ", ";\n }\n\n &:hover ~ ", " {\n color: ", ";\n }\n\n &:active ~ ", ", &.open ~ ", " {\n color: ", ";\n }\n\n &[tabindex='-1'] ~ ", " {\n color: ", ";\n }\n"])), COLORS.neutral_500, COLORS.primary_300, COLORS.primary_200, COLORS.primary_700, COLORS.primary_20, COLORS.primary_700, COLORS.primary_300, COLORS.primary_100, COLORS.primary_800, COLORS.primary_800, COLORS.white, IconWrapper, COLORS.neutral_600, IconWrapper, COLORS.primary_700, IconWrapper, IconWrapper, COLORS.primary_800, IconWrapper, COLORS.neutral_300);
|
|
63
|
+
var quarterComponentsClassPrefix = 'react-datepicker__quarter-';
|
|
64
|
+
var DatepickerField = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
65
|
+
var disabled = _ref.disabled,
|
|
66
|
+
readOnly = _ref.readOnly,
|
|
67
|
+
_onChange = _ref.onChange,
|
|
68
|
+
invalid = _ref.invalid,
|
|
69
|
+
value = _ref.value,
|
|
70
|
+
validationMessage = _ref.validationMessage,
|
|
71
|
+
dateFormat = _ref.dateFormat,
|
|
72
|
+
autoComplete = _ref.autoComplete,
|
|
73
|
+
placeholder = _ref.placeholder,
|
|
74
|
+
required = _ref.required,
|
|
75
|
+
yearPicker = _ref.yearPicker,
|
|
76
|
+
yearsBeforeCurrentDate = _ref.yearsBeforeCurrentDate,
|
|
77
|
+
yearsAfterCurrentDate = _ref.yearsAfterCurrentDate,
|
|
78
|
+
margin = _ref.margin,
|
|
79
|
+
overflowTooltipPosition = _ref.overflowTooltipPosition,
|
|
80
|
+
onBlur = _ref.onBlur,
|
|
81
|
+
showQuarterYearPicker = _ref.showQuarterYearPicker,
|
|
82
|
+
id = _ref.id,
|
|
83
|
+
dataTestId = _ref.dataTestId,
|
|
84
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
85
|
+
// Globally used variables within the component
|
|
86
|
+
var inputRef = useFocusVisibleRef();
|
|
87
|
+
var datepickerRef = React.useRef(null);
|
|
88
|
+
var focusedQuarterRef = React.useRef(1);
|
|
89
|
+
var _React$useState = React.useState(-1),
|
|
90
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
91
|
+
activeMonthPage = _React$useState2[0],
|
|
92
|
+
setActiveMonthPage = _React$useState2[1];
|
|
93
|
+
var _React$useState3 = React.useState(false),
|
|
94
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
95
|
+
yearPickerMode = _React$useState4[0],
|
|
96
|
+
setYearPickerMode = _React$useState4[1];
|
|
97
|
+
var _React$useState5 = React.useState(null),
|
|
98
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
99
|
+
openAt = _React$useState6[0],
|
|
100
|
+
setOpenAt = _React$useState6[1];
|
|
101
|
+
// 'open' flag is used only for tracking current state of the dropdown,
|
|
102
|
+
// for explicitly opening/closing the picker we are using 'datepickerRef.current.setOpen'
|
|
103
|
+
var _React$useState7 = React.useState(false),
|
|
104
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
105
|
+
open = _React$useState8[0],
|
|
106
|
+
setOpen = _React$useState8[1];
|
|
107
|
+
var getFormattedValue = function getFormattedValue() {
|
|
108
|
+
if (showQuarterYearPicker) {
|
|
109
|
+
var val = dayjs(value);
|
|
110
|
+
return val.year() + ', Q' + val.quarter();
|
|
111
|
+
} else return dayjs(value).format(dateFormat ? dateFormat : 'MMMM Do, YYYY');
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Format the date in a specific way.
|
|
115
|
+
*/
|
|
116
|
+
React.useEffect(function () {
|
|
117
|
+
if (value) inputRef.current.value = getFormattedValue();
|
|
118
|
+
}, [value]);
|
|
119
|
+
function getQuarterItem(classname) {
|
|
120
|
+
return document.getElementsByClassName(quarterComponentsClassPrefix + classname)[0];
|
|
121
|
+
}
|
|
122
|
+
React.useEffect(function () {
|
|
123
|
+
if (yearPickerMode) {
|
|
124
|
+
var _selectedDate$parentE;
|
|
125
|
+
//unfortunately, since there are no refs, and year pickers is rendered not by our code, but by 'react-datepicker'
|
|
126
|
+
//we have to touch DOM directly
|
|
127
|
+
var selectedDate = document.getElementsByClassName('react-datepicker__year-text--selected')[0];
|
|
128
|
+
var dropdownParent = selectedDate === null || selectedDate === void 0 ? void 0 : (_selectedDate$parentE = selectedDate.parentElement) === null || _selectedDate$parentE === void 0 ? void 0 : _selectedDate$parentE.parentElement;
|
|
129
|
+
if (selectedDate && dropdownParent) dropdownParent.scrollTop = selectedDate.offsetTop - 2 * selectedDate.offsetHeight;
|
|
130
|
+
}
|
|
131
|
+
}, [yearPickerMode]);
|
|
132
|
+
React.useEffect(function () {
|
|
133
|
+
if (showQuarterYearPicker && open) {
|
|
134
|
+
var wrapper = getQuarterItem('wrapper');
|
|
135
|
+
var handler = function handler(event) {
|
|
136
|
+
switch (event.key) {
|
|
137
|
+
case ' ':
|
|
138
|
+
case 'Enter':
|
|
139
|
+
var currentQ = getQuarterItem(focusedQuarterRef.current + '');
|
|
140
|
+
currentQ.click();
|
|
141
|
+
break;
|
|
142
|
+
case 'ArrowLeft':
|
|
143
|
+
if (focusedQuarterRef.current > 1) {
|
|
144
|
+
var _currentQ = getQuarterItem(focusedQuarterRef.current + '');
|
|
145
|
+
var previousQ = getQuarterItem(focusedQuarterRef.current - 1 + '');
|
|
146
|
+
if (previousQ) {
|
|
147
|
+
_currentQ.tabIndex = -1;
|
|
148
|
+
previousQ.tabIndex = 0;
|
|
149
|
+
previousQ.focus();
|
|
150
|
+
focusedQuarterRef.current = focusedQuarterRef.current - 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
break;
|
|
154
|
+
case 'ArrowRight':
|
|
155
|
+
if (focusedQuarterRef.current < 4) {
|
|
156
|
+
var _currentQ2 = getQuarterItem(focusedQuarterRef.current + '');
|
|
157
|
+
var nextQ = getQuarterItem(focusedQuarterRef.current + 1 + '');
|
|
158
|
+
if (nextQ) {
|
|
159
|
+
_currentQ2.tabIndex = -1;
|
|
160
|
+
nextQ.tabIndex = 0;
|
|
161
|
+
nextQ.focus();
|
|
162
|
+
focusedQuarterRef.current = focusedQuarterRef.current + 1;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
wrapper.addEventListener('keydown', handler);
|
|
169
|
+
//unfortunately since there are no efs, and quarter picker is rendered not by our code, but by 'react-datepicker'
|
|
170
|
+
//we have to touch DOM directly
|
|
171
|
+
|
|
172
|
+
var selectedQuarter = getQuarterItem('-selected');
|
|
173
|
+
if (selectedQuarter) {
|
|
174
|
+
for (var i = 1; i < 5; i++) {
|
|
175
|
+
if (selectedQuarter.innerText.includes('Q' + i)) {
|
|
176
|
+
focusedQuarterRef.current = i;
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
selectedQuarter.setAttribute("tabIndex", "0");
|
|
181
|
+
} else {
|
|
182
|
+
var firstQuarter = getQuarterItem('1');
|
|
183
|
+
if (firstQuarter) {
|
|
184
|
+
focusedQuarterRef.current = 1;
|
|
185
|
+
firstQuarter.setAttribute("tabIndex", "0");
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return function () {
|
|
189
|
+
wrapper.removeEventListener('keydown', handler);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
}, [showQuarterYearPicker, open]);
|
|
193
|
+
|
|
194
|
+
//we have to manually reopen the calendar when needed, to guarantee that datepicker will show selected date after year selection
|
|
195
|
+
//otherwise after year selection datepicker will show January month of the selected year
|
|
196
|
+
React.useEffect(function () {
|
|
197
|
+
if (openAt) {
|
|
198
|
+
datepickerRef.current.setOpen(true);
|
|
199
|
+
//setOpenAt(null);
|
|
200
|
+
}
|
|
201
|
+
}, [openAt]);
|
|
202
|
+
React.useImperativeHandle(ref, function () {
|
|
203
|
+
return inputRef.current;
|
|
204
|
+
}, [inputRef]);
|
|
205
|
+
var handleCalendarClose = function handleCalendarClose() {
|
|
206
|
+
var _inputRef$current;
|
|
207
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.blur();
|
|
208
|
+
setOpen(false);
|
|
209
|
+
};
|
|
210
|
+
var handleCalendarOpen = function handleCalendarOpen() {
|
|
211
|
+
if (openAt) setOpenAt(null);
|
|
212
|
+
setOpen(true);
|
|
213
|
+
};
|
|
214
|
+
var maxDate = new Date(value && new Date(value) > new Date() ? new Date(value) : new Date());
|
|
215
|
+
maxDate.setFullYear(maxDate.getFullYear() + (yearsAfterCurrentDate !== null && yearsAfterCurrentDate !== void 0 ? yearsAfterCurrentDate : 50));
|
|
216
|
+
|
|
217
|
+
//itemsNumber - controls number of year select options generated in the dropdown
|
|
218
|
+
//items related to dates higher than 'maxDate' will be hidden, thus to avoid creating hundreds of invisible divs, we divide by 5
|
|
219
|
+
var minDate = new Date(value && new Date(value) < new Date() ? new Date(value) : new Date());
|
|
220
|
+
var itemsNumber = Math.round((minDate.getFullYear() - (yearsBeforeCurrentDate !== null && yearsBeforeCurrentDate !== void 0 ? yearsBeforeCurrentDate : 15)) / 5);
|
|
221
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
222
|
+
if (e.key === 'Escape' || e.key === 'Esc') datepickerRef.current.setOpen(false);
|
|
223
|
+
};
|
|
224
|
+
var handleBlur = function handleBlur(e) {
|
|
225
|
+
// @ts-ignore
|
|
226
|
+
if (!e.currentTarget.contains(e.relatedTarget)) {
|
|
227
|
+
onBlur && onBlur(e);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
var iconSize = 24;
|
|
231
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
232
|
+
children: [/*#__PURE__*/_jsx(DatePickerContainer, {
|
|
233
|
+
quarterPicker: showQuarterYearPicker,
|
|
234
|
+
"data-testid": dataTestId,
|
|
235
|
+
yearPicker: yearPickerMode,
|
|
236
|
+
margin: margin || '',
|
|
237
|
+
onBlur: handleBlur,
|
|
238
|
+
children: /*#__PURE__*/_jsx(DatePicker, {
|
|
239
|
+
ref: datepickerRef,
|
|
240
|
+
onCalendarOpen: handleCalendarOpen,
|
|
241
|
+
onCalendarClose: handleCalendarClose,
|
|
242
|
+
onKeyDown: handleKeyDown,
|
|
243
|
+
id: id,
|
|
244
|
+
onClickOutside: function onClickOutside() {
|
|
245
|
+
return datepickerRef.current.setOpen(false);
|
|
246
|
+
},
|
|
247
|
+
onChange: function onChange(e) {
|
|
248
|
+
if (_onChange) {
|
|
249
|
+
if (yearPickerMode) {
|
|
250
|
+
var newDate = new Date();
|
|
251
|
+
newDate.setFullYear(e.getFullYear());
|
|
252
|
+
newDate.setMonth(activeMonthPage);
|
|
253
|
+
setOpenAt(newDate);
|
|
254
|
+
} else _onChange(e);
|
|
255
|
+
}
|
|
256
|
+
if (yearPickerMode) setYearPickerMode(false);
|
|
257
|
+
},
|
|
258
|
+
disabled: disabled || readOnly,
|
|
259
|
+
locale: en,
|
|
260
|
+
showQuarterYearPicker: showQuarterYearPicker,
|
|
261
|
+
dateFormat: showQuarterYearPicker ? "yyyy, QQQ" : undefined,
|
|
262
|
+
showYearPicker: yearPickerMode
|
|
263
|
+
//we manipulate 'yearItemNumber' and 'maxDate' to guarantee number of year select options shown before and after selected year
|
|
264
|
+
,
|
|
265
|
+
yearItemNumber: yearPickerMode ? itemsNumber : undefined,
|
|
266
|
+
maxDate: yearPickerMode ? maxDate : undefined,
|
|
267
|
+
selected: value,
|
|
268
|
+
openToDate: openAt !== null && openAt !== void 0 ? openAt : undefined,
|
|
269
|
+
preventOpenOnFocus: true,
|
|
270
|
+
shouldCloseOnSelect: true,
|
|
271
|
+
renderCustomHeader: yearPicker ? function (params) {
|
|
272
|
+
return /*#__PURE__*/React.createElement(DatepickerFieldHeader, _objectSpread(_objectSpread({}, params), {}, {
|
|
273
|
+
setActiveMonthPage: setActiveMonthPage,
|
|
274
|
+
customHeaderCount: 0,
|
|
275
|
+
yearPickerMode: yearPickerMode,
|
|
276
|
+
setYearPickerMode: setYearPickerMode
|
|
277
|
+
}), null);
|
|
278
|
+
} : undefined,
|
|
279
|
+
customInput: /*#__PURE__*/_jsxs(InputWrapper, {
|
|
280
|
+
disabled: disabled,
|
|
281
|
+
readOnly: readOnly,
|
|
282
|
+
children: [/*#__PURE__*/_jsxs(DatepickerRow, {
|
|
283
|
+
children: [/*#__PURE__*/_jsx(StyledInputFieldStyling, _objectSpread({
|
|
284
|
+
ref: inputRef,
|
|
285
|
+
type: "text",
|
|
286
|
+
name: "datepicker",
|
|
287
|
+
onKeyDown: function onKeyDown(e) {
|
|
288
|
+
return e.key === 'Enter' && datepickerRef.current.setOpen(true);
|
|
289
|
+
},
|
|
290
|
+
className: invalid ? 'invalid' : '' + (open ? ' open' : ''),
|
|
291
|
+
tabIndex: disabled || readOnly ? -1 : 0,
|
|
292
|
+
onFocus: function onFocus(e) {
|
|
293
|
+
var _inputRef$current2;
|
|
294
|
+
return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.setSelectionRange(0, 0);
|
|
295
|
+
},
|
|
296
|
+
autoComplete: autoComplete,
|
|
297
|
+
placeholder: placeholder,
|
|
298
|
+
extraRightPadding: iconSize,
|
|
299
|
+
disabled: disabled,
|
|
300
|
+
readOnly: true,
|
|
301
|
+
suppressReadOnlyStyles: !readOnly,
|
|
302
|
+
required: required
|
|
303
|
+
}, rest)), /*#__PURE__*/_jsx(IconWrapper, {
|
|
304
|
+
children: /*#__PURE__*/_jsx(SystemIcons.Calendar, {
|
|
305
|
+
size: "24"
|
|
306
|
+
})
|
|
307
|
+
})]
|
|
308
|
+
}), !open && /*#__PURE__*/_jsx(TooltipOverflow, {
|
|
309
|
+
position: overflowTooltipPosition,
|
|
310
|
+
input: inputRef,
|
|
311
|
+
withArrow: true,
|
|
312
|
+
maxWidth: "100%",
|
|
313
|
+
size: Size.Small,
|
|
314
|
+
align: "end",
|
|
315
|
+
children: getFormattedValue()
|
|
316
|
+
})]
|
|
317
|
+
})
|
|
318
|
+
})
|
|
319
|
+
}), validationMessage && /*#__PURE__*/_jsxs(ErrorMessage, {
|
|
320
|
+
children: [/*#__PURE__*/_jsx(SystemIcons.TechnicalWarning, {
|
|
321
|
+
color: COLORS.critical_400
|
|
322
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
323
|
+
children: validationMessage
|
|
324
|
+
})]
|
|
325
|
+
})]
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
DatepickerField.propTypes = {
|
|
329
|
+
value: _pt.instanceOf(Date),
|
|
330
|
+
onChange: _pt.func,
|
|
331
|
+
onBlur: _pt.func,
|
|
332
|
+
showQuarterYearPicker: _pt.bool,
|
|
333
|
+
invalid: _pt.bool,
|
|
334
|
+
dateFormat: _pt.string,
|
|
335
|
+
validationMessage: _pt.string,
|
|
336
|
+
autoComplete: _pt.string,
|
|
337
|
+
placeholder: _pt.string,
|
|
338
|
+
yearPicker: _pt.bool,
|
|
339
|
+
yearsBeforeCurrentDate: _pt.number,
|
|
340
|
+
yearsAfterCurrentDate: _pt.number,
|
|
341
|
+
margin: _pt.string,
|
|
342
|
+
overflowTooltipPosition: _pt.oneOf(['top', 'bottom'])
|
|
343
|
+
};
|
|
344
|
+
export default DatepickerField;
|
|
345
|
+
//# sourceMappingURL=DatepickerField.js.map
|