@laerdal/life-react-components 3.5.1-dev.12 → 3.5.1-dev.14
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/WriteThemedColors.cjs +20 -0
- package/dist/styles/WriteThemedColors.cjs.map +1 -0
- package/dist/styles/WriteThemedColors.d.ts +3 -0
- package/dist/styles/WriteThemedColors.js +12 -0
- package/dist/styles/WriteThemedColors.js.map +1 -0
- 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 +4 -4
- package/dist/styles/index.cjs.map +1 -1
- package/dist/styles/index.d.ts +2 -2
- 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,57 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
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 _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
4
|
+
import _pt from "prop-types";
|
|
5
|
+
var _excluded = ["id", "sitename", "bottomLinks", "showBetaTag", "copyrightText", "toTopText", "placeholderEmailField", "includeNewsletterAndSocialSection", "newsletterLabel", "navOptions", "onNewsletterSignup", "useMaxWidth", "maxWidth"];
|
|
6
|
+
var _templateObject, _templateObject2;
|
|
7
|
+
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; }
|
|
8
|
+
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
9
|
/**
|
|
28
10
|
* Import React libraries.
|
|
29
|
-
*/
|
|
30
|
-
import * as React from 'react';
|
|
11
|
+
*/
|
|
12
|
+
import * as React from 'react';
|
|
13
|
+
|
|
31
14
|
/**
|
|
32
15
|
* Import third-party libraries.
|
|
33
|
-
*/
|
|
34
|
-
import styled from 'styled-components';
|
|
16
|
+
*/
|
|
17
|
+
import styled from 'styled-components';
|
|
18
|
+
|
|
35
19
|
/**
|
|
36
20
|
* Import custom components.
|
|
37
|
-
*/
|
|
38
|
-
import FooterBottomLinks from './Components/FooterBottomLinks';
|
|
39
|
-
import FooterTop from './Components/FooterTop';
|
|
40
|
-
import FooterNewsletterAndSocialSection from './Components/FooterNewsletterAndSocialSection';
|
|
41
|
-
import FooterNavSection from './Components/FooterNavSection';
|
|
42
|
-
import { BREAKPOINTS, COLORS } from '../styles';
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
21
|
+
*/
|
|
22
|
+
import FooterBottomLinks from './Components/FooterBottomLinks';
|
|
23
|
+
import FooterTop from './Components/FooterTop';
|
|
24
|
+
import FooterNewsletterAndSocialSection from './Components/FooterNewsletterAndSocialSection';
|
|
25
|
+
import FooterNavSection from './Components/FooterNavSection';
|
|
26
|
+
import { BREAKPOINTS, COLORS } from '../styles';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Import custom styles.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
import { PageWidth } from "../Layouts";
|
|
33
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
34
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
|
+
var FooterContainer = styled.footer(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-top: auto;\n background-color: ", ";\n border-top: 8px solid ", ";\n\n padding-top: 0;\n padding-bottom: 16px;\n\n ", " {\n padding: 16px 0;\n }\n\n ", " {\n padding: 16px 0;\n }\n"])), COLORS.neutral_800, COLORS.neutral_200, BREAKPOINTS.MEDIUM, BREAKPOINTS.LARGE);
|
|
36
|
+
var FooterLine = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n display: none;\n ", " {\n display: block;\n }\n"])), COLORS.white, BREAKPOINTS.MEDIUM);
|
|
37
|
+
var SiteFooter = function SiteFooter(_ref) {
|
|
38
|
+
var id = _ref.id,
|
|
39
|
+
sitename = _ref.sitename,
|
|
40
|
+
bottomLinks = _ref.bottomLinks,
|
|
41
|
+
showBetaTag = _ref.showBetaTag,
|
|
42
|
+
copyrightText = _ref.copyrightText,
|
|
43
|
+
toTopText = _ref.toTopText,
|
|
44
|
+
placeholderEmailField = _ref.placeholderEmailField,
|
|
45
|
+
includeNewsletterAndSocialSection = _ref.includeNewsletterAndSocialSection,
|
|
46
|
+
newsletterLabel = _ref.newsletterLabel,
|
|
47
|
+
navOptions = _ref.navOptions,
|
|
48
|
+
onNewsletterSignup = _ref.onNewsletterSignup,
|
|
49
|
+
_ref$useMaxWidth = _ref.useMaxWidth,
|
|
50
|
+
useMaxWidth = _ref$useMaxWidth === void 0 ? true : _ref$useMaxWidth,
|
|
51
|
+
maxWidth = _ref.maxWidth,
|
|
52
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
+
return /*#__PURE__*/_jsx(FooterContainer, _objectSpread(_objectSpread({
|
|
54
|
+
id: id,
|
|
55
|
+
"data-testid": 'footer-container'
|
|
56
|
+
}, rest), {}, {
|
|
57
|
+
children: /*#__PURE__*/_jsxs(PageWidth, {
|
|
58
|
+
unsetMargin: true,
|
|
59
|
+
useMaxWidth: useMaxWidth,
|
|
60
|
+
maxWidth: maxWidth,
|
|
61
|
+
children: [/*#__PURE__*/_jsx(FooterTop, {
|
|
62
|
+
sitename: sitename,
|
|
63
|
+
showBetaTag: showBetaTag,
|
|
64
|
+
toTopText: toTopText
|
|
65
|
+
}), navOptions && /*#__PURE__*/_jsx(FooterNavSection, {
|
|
66
|
+
mainId: id,
|
|
67
|
+
navOptions: navOptions
|
|
68
|
+
}), /*#__PURE__*/_jsx(FooterLine, {}), includeNewsletterAndSocialSection && /*#__PURE__*/_jsx(FooterNewsletterAndSocialSection, {
|
|
69
|
+
placeholderEmail: placeholderEmailField,
|
|
70
|
+
actionOnNewsletterSignup: onNewsletterSignup,
|
|
71
|
+
newsletterLabel: newsletterLabel || ''
|
|
72
|
+
}), /*#__PURE__*/_jsx(FooterBottomLinks, {
|
|
73
|
+
bottomLinks: bottomLinks,
|
|
74
|
+
copyrightText: copyrightText
|
|
75
|
+
})]
|
|
76
|
+
})
|
|
77
|
+
}));
|
|
78
|
+
};
|
|
79
|
+
SiteFooter.propTypes = {
|
|
80
|
+
id: _pt.string.isRequired,
|
|
81
|
+
sitename: _pt.string,
|
|
82
|
+
showBetaTag: _pt.bool,
|
|
83
|
+
bottomLinks: _pt.array,
|
|
84
|
+
copyrightText: _pt.string,
|
|
85
|
+
includeNewsletterAndSocialSection: _pt.bool,
|
|
86
|
+
actionOnNewsletterSignup: _pt.func,
|
|
87
|
+
newsletterLabel: _pt.string,
|
|
88
|
+
toTopText: _pt.string.isRequired,
|
|
89
|
+
placeholderEmailField: _pt.string,
|
|
90
|
+
onNewsletterSignup: _pt.func,
|
|
91
|
+
useMaxWidth: _pt.bool,
|
|
92
|
+
maxWidth: _pt.number
|
|
93
|
+
};
|
|
94
|
+
export default SiteFooter;
|
|
95
|
+
//# sourceMappingURL=SiteFooter.js.map
|
package/dist/Footer/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default as Footer } from './Footer';
|
|
2
|
-
export { default as SiteFooter } from './SiteFooter';
|
|
1
|
+
export { default as Footer } from './Footer';
|
|
2
|
+
export { default as SiteFooter } from './SiteFooter';
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DesktopNavigationMenuProps, MobileNavigationMenuProps, ProfileMenu } from './types';
|
|
3
|
-
|
|
3
|
+
type GlobalNavigationBarProps = {
|
|
4
4
|
isAuthenticated?: boolean;
|
|
5
5
|
useMaxWidth?: boolean;
|
|
6
6
|
maxWidth?: number;
|
|
@@ -1,93 +1,196 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var MobileMenuBackdrop = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n position: fixed;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n z-index: ", ";\n visibility: hidden;\n\n &.open {\n visibility: visible;\n animation: ", " 0.3s ease-in-out;\n }\n\n &.closed {\n visibility: hidden;\n animation: ", " 0.3s ease-in-out;\n }\n\n ", " {\n visibility: hidden !important;\n }\n"], ["\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n position: fixed;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n z-index: ", ";\n visibility: hidden;\n\n &.open {\n visibility: visible;\n animation: ", " 0.3s ease-in-out;\n }\n\n &.closed {\n visibility: hidden;\n animation: ", " 0.3s ease-in-out;\n }\n\n ", " {\n visibility: hidden !important;\n }\n"])), Z_INDEXES.backdrop, fadeIn, fadeOut, BREAKPOINTS.LARGE);
|
|
38
|
-
var MobileWrapper = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", " {\n display: none !important;\n }\n"], ["\n ", " {\n display: none !important;\n }\n"])), BREAKPOINTS.MEDIUM);
|
|
39
|
-
var UserMenuWrapper = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n background-color: ", ";\n display: flex;\n position: absolute;\n\n ", " {\n top: 80px;\n right: ", ";\n }\n"], ["\n background-color: ", ";\n display: flex;\n position: absolute;\n\n ", " {\n top: 80px;\n right: ", ";\n }\n"])), COLORS.white, BREAKPOINTS.LARGE, function (props) { return (props.offsetRight && hasWindow() ? "".concat(window.innerWidth - props.offsetRight + 296, "px") : '10%'); });
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
4
|
+
import _pt from "prop-types";
|
|
5
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
import styled from 'styled-components';
|
|
10
|
+
import Logo from './Logo';
|
|
11
|
+
import MainMenu from './desktop/MainMenu';
|
|
12
|
+
import { PageWidth } from '../Layouts';
|
|
13
|
+
import { COLORS, BREAKPOINTS } from '../styles';
|
|
14
|
+
import RightSideNav from './desktop/RightSideNav';
|
|
15
|
+
import MobileMenu from './mobile/MobileMenu';
|
|
16
|
+
import { SystemIcons } from '../icons';
|
|
17
|
+
import UserMenu from './desktop/UserMenu';
|
|
18
|
+
import { fadeIn, fadeOut, Menu as MobileMenuWrapper } from './mobile/CommonStyles';
|
|
19
|
+
import { Z_INDEXES } from '../styles';
|
|
20
|
+
import { IconButton } from '../Button';
|
|
21
|
+
import DesktopActions from './desktop/DesktopActions';
|
|
22
|
+
import { usePreviousImmediate } from 'rooks';
|
|
23
|
+
import { useClickOutsideRef } from '../common';
|
|
24
|
+
import { hasWindow } from '../utils/utils';
|
|
25
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
28
|
+
var HeaderWrapper = styled.header(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: white;\n box-sizing: border-box;\n \n &.border:after{\n content: '';\n position: absolute;\n left: 0;\n right: 0;\n bottom: -1px;\n height: 1px;\n background: ", ";\n z-index: 5;\n }\n\n z-index: ", ";\n position: relative;\n\n height: 48px;\n\n ", " {\n height: 64px;\n }\n\n ", " {\n height: 80px;\n }\n\n @media all and (-ms-high-contrast: none) {\n height: auto;\n }\n\n @media print {\n border-bottom: none;\n }\n"])), COLORS.neutral_200, Z_INDEXES.sticky_menu, BREAKPOINTS.MEDIUM, BREAKPOINTS.LARGE);
|
|
29
|
+
var RowLayout = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
30
|
+
var HamburgerButton = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", " {\n display: none;\n }\n"])), BREAKPOINTS.MEDIUM);
|
|
31
|
+
var RightSide = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n margin: 0 0 0 auto;\n\n &.reverse {\n ", " {\n order: -1;\n }\n\n flex-direction: row-reverse;\n }\n"])), HamburgerButton);
|
|
32
|
+
var MobileMenuBackdrop = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n position: fixed;\n left: 0;\n top: 0;\n height: 100%;\n width: 100%;\n overflow: hidden;\n z-index: ", ";\n visibility: hidden;\n\n &.open {\n visibility: visible;\n animation: ", " 0.3s ease-in-out;\n }\n\n &.closed {\n visibility: hidden;\n animation: ", " 0.3s ease-in-out;\n }\n\n ", " {\n visibility: hidden !important;\n }\n"])), Z_INDEXES.backdrop, fadeIn, fadeOut, BREAKPOINTS.LARGE);
|
|
33
|
+
var MobileWrapper = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", " {\n display: none !important;\n }\n"])), BREAKPOINTS.MEDIUM);
|
|
34
|
+
var UserMenuWrapper = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n background-color: ", ";\n display: flex;\n position: absolute;\n\n ", " {\n top: 80px;\n right: ", ";\n }\n"])), COLORS.white, BREAKPOINTS.LARGE, function (props) {
|
|
35
|
+
return props.offsetRight && hasWindow() ? "".concat(window.innerWidth - props.offsetRight + 296, "px") : '10%';
|
|
36
|
+
});
|
|
40
37
|
/**
|
|
41
38
|
* @param props
|
|
42
39
|
* @constructor
|
|
43
40
|
* @description This component is a global navigation header bar
|
|
44
|
-
*/
|
|
45
|
-
var GlobalNavigationBar = function (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
|
|
41
|
+
*/
|
|
42
|
+
var GlobalNavigationBar = function GlobalNavigationBar(_ref) {
|
|
43
|
+
var _actionsRef$current, _actionsRef$current$b, _actionsRef$current$b2, _actionsRef$current$b3, _desktop$items, _desktop$buttons;
|
|
44
|
+
var name = _ref.name,
|
|
45
|
+
isAuthenticated = _ref.isAuthenticated,
|
|
46
|
+
logo = _ref.logo,
|
|
47
|
+
profile = _ref.profile,
|
|
48
|
+
mobile = _ref.mobile,
|
|
49
|
+
desktop = _ref.desktop,
|
|
50
|
+
testId = _ref.testId,
|
|
51
|
+
_ref$useMaxWidth = _ref.useMaxWidth,
|
|
52
|
+
useMaxWidth = _ref$useMaxWidth === void 0 ? true : _ref$useMaxWidth,
|
|
53
|
+
maxWidth = _ref.maxWidth,
|
|
54
|
+
profileComponent = _ref.profileComponent,
|
|
55
|
+
_ref$border = _ref.border,
|
|
56
|
+
border = _ref$border === void 0 ? true : _ref$border;
|
|
57
|
+
var _React$useState = React.useState(false),
|
|
58
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
59
|
+
showMobileMenu = _React$useState2[0],
|
|
60
|
+
setShowMobileMenu = _React$useState2[1];
|
|
61
|
+
var wasMobileMenuOpen = usePreviousImmediate(showMobileMenu);
|
|
62
|
+
var _React$useState3 = React.useState(false),
|
|
63
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
64
|
+
showUserMenu = _React$useState4[0],
|
|
65
|
+
setShowUserMenu = _React$useState4[1];
|
|
66
|
+
var actionsRef = React.useRef(null);
|
|
67
|
+
var profileButtonRef = React.useRef();
|
|
68
|
+
profileButtonRef.current = actionsRef === null || actionsRef === void 0 ? void 0 : (_actionsRef$current = actionsRef.current) === null || _actionsRef$current === void 0 ? void 0 : (_actionsRef$current$b = _actionsRef$current.buttons) === null || _actionsRef$current$b === void 0 ? void 0 : (_actionsRef$current$b2 = _actionsRef$current$b.find(function (a) {
|
|
69
|
+
return a.type === 'profile';
|
|
70
|
+
})) === null || _actionsRef$current$b2 === void 0 ? void 0 : (_actionsRef$current$b3 = _actionsRef$current$b2.ref) === null || _actionsRef$current$b3 === void 0 ? void 0 : _actionsRef$current$b3.current;
|
|
71
|
+
var mobileMenuButtonRef = React.useRef(null);
|
|
72
|
+
var rightSideRef = React.useRef(null);
|
|
73
|
+
var _React$useState5 = React.useState(0),
|
|
74
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
75
|
+
avatarRight = _React$useState6[0],
|
|
76
|
+
setAvatarRight = _React$useState6[1];
|
|
77
|
+
var userMenuRef = useClickOutsideRef(function () {
|
|
78
|
+
return setShowUserMenu(false);
|
|
79
|
+
}, [profileButtonRef]);
|
|
80
|
+
var mobileMenuRef = useClickOutsideRef(function () {
|
|
81
|
+
return setShowMobileMenu(false);
|
|
82
|
+
}, [mobileMenuButtonRef]);
|
|
83
|
+
React.useEffect(function () {
|
|
84
|
+
if (!profileButtonRef.current) return;
|
|
85
|
+
var handleResize = function handleResize() {
|
|
86
|
+
var _profileButtonRef$cur, _profileButtonRef$cur2;
|
|
87
|
+
var profileRightOffset = (_profileButtonRef$cur = profileButtonRef.current) === null || _profileButtonRef$cur === void 0 ? void 0 : (_profileButtonRef$cur2 = _profileButtonRef$cur.getBoundingClientRect()) === null || _profileButtonRef$cur2 === void 0 ? void 0 : _profileButtonRef$cur2.right;
|
|
88
|
+
setAvatarRight(profileRightOffset || 0);
|
|
89
|
+
};
|
|
90
|
+
handleResize();
|
|
91
|
+
window.addEventListener('resize', handleResize);
|
|
92
|
+
return function () {
|
|
93
|
+
return window.removeEventListener('resize', handleResize);
|
|
94
|
+
};
|
|
95
|
+
}, [profileButtonRef.current]);
|
|
96
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
97
|
+
children: [/*#__PURE__*/_jsx(HeaderWrapper, {
|
|
98
|
+
"data-testid": testId,
|
|
99
|
+
className: border ? 'border' : '',
|
|
100
|
+
children: /*#__PURE__*/_jsx(PageWidth, {
|
|
101
|
+
useMaxWidth: useMaxWidth,
|
|
102
|
+
maxWidth: maxWidth,
|
|
103
|
+
unsetMargin: true,
|
|
104
|
+
children: /*#__PURE__*/_jsxs(RowLayout, {
|
|
105
|
+
children: [/*#__PURE__*/_jsx(Logo, {
|
|
106
|
+
name: name || '',
|
|
107
|
+
showBetaTag: logo === null || logo === void 0 ? void 0 : logo.showBetaTag,
|
|
108
|
+
onClick: logo === null || logo === void 0 ? void 0 : logo.onClick,
|
|
109
|
+
to: logo === null || logo === void 0 ? void 0 : logo.to
|
|
110
|
+
}), isAuthenticated && /*#__PURE__*/_jsx(MainMenu, {
|
|
111
|
+
items: (desktop === null || desktop === void 0 ? void 0 : desktop.items.filter(function (a) {
|
|
112
|
+
return !a.pinned;
|
|
113
|
+
})) || [],
|
|
114
|
+
rightSideRef: rightSideRef
|
|
115
|
+
}), /*#__PURE__*/_jsxs(RightSide, {
|
|
116
|
+
className: "".concat(desktop !== null && desktop !== void 0 && desktop.reverseRightSideOrder ? 'reverse' : ''),
|
|
117
|
+
ref: rightSideRef,
|
|
118
|
+
children: [/*#__PURE__*/_jsx(RightSideNav, {
|
|
119
|
+
items: desktop === null || desktop === void 0 ? void 0 : (_desktop$items = desktop.items) === null || _desktop$items === void 0 ? void 0 : _desktop$items.filter(function (a) {
|
|
120
|
+
return a.pinned && a.type == 'item';
|
|
121
|
+
}).map(function (x) {
|
|
122
|
+
return x;
|
|
123
|
+
}),
|
|
124
|
+
action: desktop === null || desktop === void 0 ? void 0 : desktop.action
|
|
125
|
+
}), /*#__PURE__*/_jsx(MobileWrapper, {
|
|
126
|
+
children: !!profileComponent && profileComponent
|
|
127
|
+
}), /*#__PURE__*/_jsx(DesktopActions, {
|
|
128
|
+
ref: actionsRef,
|
|
129
|
+
buttons: desktop === null || desktop === void 0 ? void 0 : desktop.buttons,
|
|
130
|
+
onShowUserMenu: function onShowUserMenu() {
|
|
131
|
+
return setShowUserMenu(!showUserMenu);
|
|
132
|
+
},
|
|
133
|
+
user: profile === null || profile === void 0 ? void 0 : profile.user,
|
|
134
|
+
profileComponent: profileComponent
|
|
135
|
+
}), /*#__PURE__*/_jsx(HamburgerButton, {
|
|
136
|
+
hidden: !isAuthenticated,
|
|
137
|
+
children: /*#__PURE__*/_jsx(IconButton, {
|
|
138
|
+
action: function action() {
|
|
139
|
+
return setShowMobileMenu(!showMobileMenu);
|
|
140
|
+
},
|
|
141
|
+
ref: mobileMenuButtonRef,
|
|
142
|
+
shape: 'circular',
|
|
143
|
+
variant: 'secondary',
|
|
144
|
+
children: /*#__PURE__*/_jsx(SystemIcons.Menu, {
|
|
145
|
+
size: "24px"
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
})]
|
|
149
|
+
})]
|
|
150
|
+
})
|
|
151
|
+
})
|
|
152
|
+
}), /*#__PURE__*/_jsx(MobileMenuBackdrop, {
|
|
153
|
+
className: showMobileMenu ? 'open' : !showUserMenu && wasMobileMenuOpen ? 'closed' : '',
|
|
154
|
+
children: /*#__PURE__*/_jsx(MobileMenuWrapper, {
|
|
155
|
+
ref: mobileMenuRef,
|
|
156
|
+
role: "menu",
|
|
157
|
+
"aria-labelledby": "UserMenuButton",
|
|
158
|
+
children: /*#__PURE__*/_jsx(MobileMenu, _objectSpread(_objectSpread({}, mobile), {}, {
|
|
159
|
+
show: showMobileMenu,
|
|
160
|
+
onClose: function onClose() {
|
|
161
|
+
return setShowMobileMenu(false);
|
|
162
|
+
},
|
|
163
|
+
profile: !profileComponent ? profile : undefined
|
|
164
|
+
}))
|
|
165
|
+
})
|
|
166
|
+
}), (desktop === null || desktop === void 0 ? void 0 : (_desktop$buttons = desktop.buttons) === null || _desktop$buttons === void 0 ? void 0 : _desktop$buttons.some(function (a) {
|
|
167
|
+
return a.type === 'profile';
|
|
168
|
+
})) && !!profile && /*#__PURE__*/_jsx(UserMenuWrapper, {
|
|
169
|
+
ref: userMenuRef,
|
|
170
|
+
offsetRight: avatarRight,
|
|
171
|
+
"data-testid": "testUserMenuWrapper",
|
|
172
|
+
children: /*#__PURE__*/_jsx(UserMenu, _objectSpread(_objectSpread({}, profile), {}, {
|
|
173
|
+
show: showUserMenu,
|
|
174
|
+
onHideUserMenu: function onHideUserMenu() {
|
|
175
|
+
return setShowUserMenu(false);
|
|
176
|
+
}
|
|
177
|
+
}))
|
|
178
|
+
})]
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
GlobalNavigationBar.propTypes = {
|
|
182
|
+
isAuthenticated: _pt.bool,
|
|
183
|
+
useMaxWidth: _pt.bool,
|
|
184
|
+
maxWidth: _pt.number,
|
|
185
|
+
name: _pt.string,
|
|
186
|
+
logo: _pt.shape({
|
|
187
|
+
onClick: _pt.func,
|
|
188
|
+
to: _pt.string,
|
|
189
|
+
showBetaTag: _pt.bool
|
|
190
|
+
}),
|
|
191
|
+
testId: _pt.string,
|
|
192
|
+
profileComponent: _pt.node,
|
|
193
|
+
border: _pt.bool
|
|
194
|
+
};
|
|
195
|
+
export default GlobalNavigationBar;
|
|
196
|
+
//# sourceMappingURL=GlobalNavigationBar.js.map
|
|
@@ -1,33 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
|
+
import _pt from "prop-types";
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { Link } from 'react-router-dom';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { LaerdalLogo, LaerdalWhiteLogo } from '../assets';
|
|
8
|
+
import { BREAKPOINTS, COLORS, ComponentTextStyle, focusStyles, invertedFocusStyles } from '../styles';
|
|
9
|
+
import { ComponentMStyling, ComponentXSStyling } from '../styles';
|
|
10
|
+
import { defaultOnMouseDownHandler } from '../common';
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
var StyledLink = styled(Link)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n text-decoration: none;\n display: flex;\n align-items: center;\n &:focus-within {\n outline: none;\n }\n svg {\n width: 66px;\n height: 36px;\n color: ", ";\n ", " {\n width: 88px;\n height: 48px;\n }\n }\n"])), function (props) {
|
|
14
|
+
return props.$color;
|
|
15
|
+
}, BREAKPOINTS.MEDIUM);
|
|
16
|
+
var LogoContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n max-width: calc(100% - 48px);\n overflow: hidden;\n align-items: center;\n height: 40px;\n box-sizing: border-box;\n padding: 24px 0;\n\n ", " {\n margin-top: 8px;\n margin-bottom: 7px;\n }\n\n &:focus-within {\n ", "\n }\n\n &.inverted:focus-within {\n ", "\n }\n"])), BREAKPOINTS.LARGE, focusStyles, invertedFocusStyles);
|
|
17
|
+
var Name = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 8px;\n padding-left: 8px;\n border-left: 1px solid ", ";\n letter-spacing: -0.02em;\n max-width: 200px;\n \n white-space: nowrap;\n overflow: hidden;\n\n ", "\n\n font-weight: 300 !important;\n line-height: 24px !important;\n\n ", " {\n ", ";\n }\n\n ", " {\n margin-left: 12px;\n padding-left: 12px;\n }\n"])), function (props) {
|
|
18
|
+
return props.$color || COLORS.black;
|
|
19
|
+
}, function (props) {
|
|
20
|
+
return props.noSizeChangeOnMobile ? ComponentMStyling(ComponentTextStyle.Regular, props.$color || COLORS.black) : ComponentXSStyling(ComponentTextStyle.Regular, props.$color || COLORS.black);
|
|
21
|
+
}, BREAKPOINTS.MEDIUM, function (props) {
|
|
22
|
+
return ComponentMStyling(ComponentTextStyle.Regular, props.$color || COLORS.black);
|
|
23
|
+
}, BREAKPOINTS.LARGE);
|
|
24
|
+
var BetaTag = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n padding: 4px 8px;\n margin-left: 8px;\n margin-top: 2px;\n border-left: none;\n border-radius: 2px;\n\n ", "\n"])), function (props) {
|
|
25
|
+
return props.backgroundColor || COLORS.accent2_500;
|
|
26
|
+
}, function (props) {
|
|
27
|
+
return ComponentXSStyling(ComponentTextStyle.UppercaseBold, props.$color || COLORS.white);
|
|
28
|
+
});
|
|
29
|
+
var Logo = function Logo(_ref) {
|
|
30
|
+
var name = _ref.name,
|
|
31
|
+
showBetaTag = _ref.showBetaTag,
|
|
32
|
+
_onClick = _ref.onClick,
|
|
33
|
+
to = _ref.to,
|
|
34
|
+
color = _ref.color,
|
|
35
|
+
noSizeChangeOnMobile = _ref.noSizeChangeOnMobile,
|
|
36
|
+
betaTagBackgroundColor = _ref.betaTagBackgroundColor,
|
|
37
|
+
betaTagColor = _ref.betaTagColor,
|
|
38
|
+
inverted = _ref.inverted;
|
|
39
|
+
return /*#__PURE__*/_jsx(LogoContainer, {
|
|
40
|
+
className: inverted ? 'inverted' : '',
|
|
41
|
+
children: /*#__PURE__*/_jsxs(StyledLink, {
|
|
42
|
+
to: to || '/',
|
|
43
|
+
onMouseDown: defaultOnMouseDownHandler,
|
|
44
|
+
onClick: function onClick() {
|
|
45
|
+
if (_onClick) {
|
|
46
|
+
_onClick();
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
$color: color,
|
|
50
|
+
children: [color === COLORS.white ? /*#__PURE__*/_jsx(LaerdalWhiteLogo, {}) : /*#__PURE__*/_jsx(LaerdalLogo, {}), /*#__PURE__*/_jsx(Name, {
|
|
51
|
+
$color: color,
|
|
52
|
+
noSizeChangeOnMobile: noSizeChangeOnMobile || false,
|
|
53
|
+
children: name
|
|
54
|
+
}), showBetaTag && /*#__PURE__*/_jsx(BetaTag, {
|
|
55
|
+
backgroundColor: betaTagBackgroundColor,
|
|
56
|
+
$color: betaTagColor,
|
|
57
|
+
children: "BETA"
|
|
58
|
+
})]
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
Logo.propTypes = {
|
|
63
|
+
name: _pt.string.isRequired,
|
|
64
|
+
showBetaTag: _pt.bool,
|
|
65
|
+
onClick: _pt.func,
|
|
66
|
+
to: _pt.string,
|
|
67
|
+
color: _pt.string,
|
|
68
|
+
noSizeChangeOnMobile: _pt.bool,
|
|
69
|
+
betaTagBackgroundColor: _pt.string,
|
|
70
|
+
betaTagColor: _pt.string,
|
|
71
|
+
inverted: _pt.bool
|
|
72
|
+
};
|
|
73
|
+
export default Logo;
|
|
74
|
+
//# sourceMappingURL=Logo.js.map
|