@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,339 +1,605 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
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
|
-
if (
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
var
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
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, _templateObject8;
|
|
6
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
7
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
8
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import styled from 'styled-components';
|
|
11
|
+
import Button from '../Button/Button';
|
|
12
|
+
import { Size } from '../types';
|
|
13
|
+
import { DropdownContentButtonStyling } from './CommonStyling';
|
|
14
|
+
import { ComponentLStyling, ComponentXLStyling, ComponentMStyling, ComponentSStyling, ComponentTextStyle } from '../styles/typography';
|
|
15
|
+
import { COLORS, scrollBarStyling } from '../styles';
|
|
16
|
+
import { Checkbox, RadioButton } from '../InputFields';
|
|
17
|
+
import { Z_INDEXES } from '../styles/z-indexes';
|
|
18
|
+
import MenuItem from '../MenuItem/MenuItem';
|
|
19
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
var MAX_MENU_HEIGHT = 240;
|
|
23
|
+
var AVG_OPTION_HEIGHT = 48;
|
|
24
|
+
var OFFSET_BEFORE_SHOW = 1000000;
|
|
25
|
+
export var DropdownContentContainer = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: none;\n pointer-events: auto;\n position: absolute;\n background-color: ", ";\n\n z-index: ", ";\n margin: ", ";\n\n &.show {\n display: flex;\n flex-direction: column;\n justify-content: center;\n &.down,\n &.up {\n ", "\n }\n }\n\n transform: translate(-", "px, -", "px);\n\n &.outline:focus:after {\n content: '';\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n outline: 4px solid black;\n outline-offset: 2px;\n border-radius: 2px;\n }\n\n &:focus {\n outline: none;\n }\n\n ", ";\n\n border: 1px solid ", ";\n box-sizing: border-box;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);\n padding: 4px 0px;\n\n min-width: ", ";\n border-radius: ", ";\n\n max-height: ", ";\n"])), COLORS.white, Z_INDEXES.dropdown, function (props) {
|
|
26
|
+
return props.isButton ? '-4px' : '4px 0px';
|
|
27
|
+
}, function (props) {
|
|
28
|
+
return "transform: translate(".concat(props.offsetLeft, ", ").concat(props.offsetTop, ");");
|
|
29
|
+
}, OFFSET_BEFORE_SHOW, OFFSET_BEFORE_SHOW, function (props) {
|
|
30
|
+
return props.isButton ? DropdownContentButtonStyling : '';
|
|
31
|
+
}, COLORS.neutral_100, function (props) {
|
|
32
|
+
return props.size == Size.Large ? '320px' : props.size == Size.Medium ? '280px' : '240px';
|
|
33
|
+
}, function (props) {
|
|
34
|
+
return props.size == Size.Large ? '10px' : props.size == Size.Medium ? '8px' : '6px';
|
|
35
|
+
}, function (props) {
|
|
36
|
+
return !props.scrollable ? 'auto' : props.maxHeight ? props.maxHeight : props.size == Size.Large ? '320px' : props.size == Size.Medium ? '280px' : '240px';
|
|
37
|
+
});
|
|
38
|
+
export var DropdownContentItemsContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n > *:hover {\n z-index: ", ";\n }\n\n > *:active,\n > *.active {\n z-index: ", ";\n }\n\n > *:focus {\n z-index: ", ";\n }\n"])), Z_INDEXES.hover, Z_INDEXES.active, Z_INDEXES.focus);
|
|
39
|
+
export var DropdownContentListContainer = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n ", "\n ", "\n ", "\n div.divider {\n display: block;\n width: calc(100% - 40px);\n margin-left: 16px;\n border-top: 1px solid #e5e5e5;\n position: absolute;\n top: 0px;\n }\n\n ", " {\n padding-top: ", ";\n padding-bottom: ", ";\n\n word-break: break-word;\n }\n\n *:focus {\n outline: none !important;\n }\n\n ", "\n"])), function (props) {
|
|
40
|
+
return props.scrollable ? 'overflow-y: scroll;' : '';
|
|
41
|
+
}, function (props) {
|
|
42
|
+
return props.scrollable ? 'margin-right: 6px;' : '';
|
|
43
|
+
}, function (props) {
|
|
44
|
+
return props.scrollable ? 'padding-right: 6px;' : '';
|
|
45
|
+
}, function (props) {
|
|
46
|
+
return props.itemsType != 'normal' ? 'margin-left: 4px;' : '';
|
|
47
|
+
}, DropdownContentItemsContainer, function (props) {
|
|
48
|
+
return props.size == Size.Large ? '8px' : props.size == Size.Medium ? '4px' : '0px';
|
|
49
|
+
}, function (props) {
|
|
50
|
+
return props.size == Size.Large ? '8px' : props.size == Size.Medium ? '4px' : '0px';
|
|
51
|
+
}, scrollBarStyling(Size.Small));
|
|
52
|
+
var DropdownContentMenuContentContainer = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n h1,\n h2,\n h3 {\n margin-block-start: 0px;\n margin-block-end: 0px;\n ", "\n ", "\n ", "\n padding: ", ";\n }\n\n p {\n margin-block-start: 0px;\n margin-block-end: 0px;\n ", "\n ", "\n ", "\n padding: ", ";\n }\n"])), function (props) {
|
|
53
|
+
return props.size == Size.Large && ComponentXLStyling(ComponentTextStyle.Bold, COLORS.neutral_500);
|
|
54
|
+
}, function (props) {
|
|
55
|
+
return props.size == Size.Medium && ComponentLStyling(ComponentTextStyle.Bold, COLORS.neutral_500);
|
|
56
|
+
}, function (props) {
|
|
57
|
+
return (props.size == Size.Small || !props.size) && ComponentMStyling(ComponentTextStyle.Bold, COLORS.neutral_500);
|
|
58
|
+
}, function (props) {
|
|
59
|
+
return props.size == Size.Small || !props.size ? '10px 16px 6px' : props.size == Size.Medium ? '16px 24px 8px' : '16px 32px 8px';
|
|
60
|
+
}, function (props) {
|
|
61
|
+
return props.size == Size.Large && ComponentLStyling(ComponentTextStyle.Regular, COLORS.neutral_500);
|
|
62
|
+
}, function (props) {
|
|
63
|
+
return props.size == Size.Medium && ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_500);
|
|
64
|
+
}, function (props) {
|
|
65
|
+
return (props.size == Size.Small || !props.size) && ComponentSStyling(ComponentTextStyle.Regular, COLORS.neutral_500);
|
|
66
|
+
}, function (props) {
|
|
67
|
+
return props.size == Size.Small || !props.size ? '8px 16px' : props.size == Size.Medium ? '12px 24px' : '16px 32px';
|
|
68
|
+
});
|
|
69
|
+
var DividerContainer = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n\n margin-top: ", ";\n\n div.divider {\n width: 100%;\n margin: 0px;\n }\n"])), function (props) {
|
|
70
|
+
return props.size == Size.Large ? '16px' : props.size == Size.Medium ? '12px' : props.size == Size.Small || !props.size ? '8px' : '6px';
|
|
71
|
+
});
|
|
72
|
+
var DropdownContentTopItemContainer = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n border-bottom-style: solid;\n border-bottom-color: ", ";\n border-bottom-width: 1px;\n margin-right: 22px;\n"])), COLORS.neutral_200);
|
|
73
|
+
var DropdownContentActionButtonContainer = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", "\n ", "\n\n padding: ", ";\n\n button {\n width: 100%;\n }\n"])), function (props) {
|
|
74
|
+
return props.scrollable ? "border-top: 1px solid ".concat(COLORS.neutral_200, ";") : '';
|
|
75
|
+
}, function (props) {
|
|
76
|
+
return props.scrollable ? 'margin-top: 4px;' : '';
|
|
77
|
+
}, function (props) {
|
|
78
|
+
return props.size === Size.Small || !props.size ? '4px 16px 0px' : props.size === Size.Medium ? '12px 16px 8px' : '16px 16px 12px';
|
|
79
|
+
});
|
|
80
|
+
var Overlay = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: ", ";\n"])), Z_INDEXES.modal);
|
|
81
|
+
var DropdownContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
82
|
+
var _ref2, _customizationProps$a;
|
|
83
|
+
var id = _ref.id,
|
|
84
|
+
customizationProps = _ref.customizationProps,
|
|
85
|
+
alignLeft = _ref.alignLeft,
|
|
86
|
+
isButton = _ref.isButton,
|
|
87
|
+
size = _ref.size,
|
|
88
|
+
isOpen = _ref.isOpen,
|
|
89
|
+
width = _ref.width,
|
|
90
|
+
setIsOpen = _ref.setIsOpen,
|
|
91
|
+
filter = _ref.filter,
|
|
92
|
+
focused = _ref.focused,
|
|
93
|
+
setFocused = _ref.setFocused,
|
|
94
|
+
selectedValues = _ref.selectedValues,
|
|
95
|
+
setSelectedValues = _ref.setSelectedValues,
|
|
96
|
+
messageOnNoResults = _ref.messageOnNoResults,
|
|
97
|
+
outline = _ref.outline,
|
|
98
|
+
containerRef = _ref.containerRef,
|
|
99
|
+
onActiveDescendantChanged = _ref.onActiveDescendantChanged,
|
|
100
|
+
_ref$ariaRolesType = _ref.ariaRolesType,
|
|
101
|
+
ariaRolesType = _ref$ariaRolesType === void 0 ? 'menu' : _ref$ariaRolesType;
|
|
102
|
+
var _React$useState = React.useState(false),
|
|
103
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
104
|
+
isUp = _React$useState2[0],
|
|
105
|
+
setIsUp = _React$useState2[1];
|
|
106
|
+
var _React$useState3 = React.useState(false),
|
|
107
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
108
|
+
locationDefined = _React$useState4[0],
|
|
109
|
+
setLocationDefined = _React$useState4[1];
|
|
110
|
+
var _React$useState5 = React.useState({
|
|
111
|
+
top: '0',
|
|
112
|
+
left: '0'
|
|
113
|
+
}),
|
|
114
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
115
|
+
offset = _React$useState6[0],
|
|
116
|
+
setOffset = _React$useState6[1];
|
|
117
|
+
var dropdownContentRef = (_ref2 = ref) !== null && _ref2 !== void 0 ? _ref2 : React.useRef(null);
|
|
118
|
+
if (!customizationProps.itemsType) customizationProps.itemsType = 'normal';
|
|
119
|
+
if (!size) size = Size.Small;
|
|
120
|
+
var itemsListRef = React.useRef(null);
|
|
121
|
+
var actionButtonRef = React.useRef(null);
|
|
122
|
+
var determineDropUp = function determineDropUp() {
|
|
123
|
+
var options = customizationProps.items;
|
|
124
|
+
var rect = containerRef.current.getBoundingClientRect();
|
|
125
|
+
var windowHeight = window.innerHeight;
|
|
126
|
+
var menuHeight = Math.min(MAX_MENU_HEIGHT, options.length * AVG_OPTION_HEIGHT);
|
|
127
|
+
var instOffsetWithMenu = rect.top + rect.height + menuHeight;
|
|
128
|
+
var up = instOffsetWithMenu >= windowHeight;
|
|
129
|
+
setOffset({
|
|
130
|
+
top: up ? "calc(-100% - ".concat(rect.height, "px ").concat(isButton ? '' : '- 8px', ")") : '0',
|
|
131
|
+
left: alignLeft ? "calc(-".concat(rect.width, "px)") : "calc(-100%)"
|
|
132
|
+
});
|
|
133
|
+
setIsUp(up);
|
|
134
|
+
setLocationDefined(true);
|
|
135
|
+
};
|
|
136
|
+
var setNewFocusedElement = function setNewFocusedElement(index) {
|
|
137
|
+
var _dropdownContentRef$c;
|
|
138
|
+
if (outline) (_dropdownContentRef$c = dropdownContentRef.current) === null || _dropdownContentRef$c === void 0 ? void 0 : _dropdownContentRef$c.focus();
|
|
139
|
+
var newFocusedElement = elRefs[index];
|
|
140
|
+
if (onActiveDescendantChanged) onActiveDescendantChanged(index == 0 ? "".concat(id, "_topitem") : "".concat(id, "_").concat(index));
|
|
141
|
+
var oldFocusedElement = focused || focused === 0 ? elRefs[focused] : null;
|
|
142
|
+
if (newFocusedElement && newFocusedElement !== oldFocusedElement) {
|
|
143
|
+
var _oldFocusedElement$cu, _newFocusedElement$cu, _newFocusedElement$cu2;
|
|
144
|
+
setFocused(index);
|
|
145
|
+
oldFocusedElement === null || oldFocusedElement === void 0 ? void 0 : (_oldFocusedElement$cu = oldFocusedElement.current) === null || _oldFocusedElement$cu === void 0 ? void 0 : _oldFocusedElement$cu.classList.remove('dropdown-hover');
|
|
146
|
+
(_newFocusedElement$cu = newFocusedElement.current) === null || _newFocusedElement$cu === void 0 ? void 0 : _newFocusedElement$cu.classList.add('dropdown-hover');
|
|
147
|
+
(_newFocusedElement$cu2 = newFocusedElement.current) === null || _newFocusedElement$cu2 === void 0 ? void 0 : _newFocusedElement$cu2.scrollIntoView({
|
|
148
|
+
block: 'nearest',
|
|
149
|
+
inline: 'nearest'
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
var getFilteredItems = function getFilteredItems() {
|
|
154
|
+
var filtrationString = (filter !== null && filter !== void 0 ? filter : '').toUpperCase();
|
|
155
|
+
return customizationProps.items.filter(function (x) {
|
|
156
|
+
var _x$value, _x$displayLabel;
|
|
157
|
+
return (x === null || x === void 0 ? void 0 : (_x$value = x.value) === null || _x$value === void 0 ? void 0 : _x$value.toUpperCase().includes(filtrationString)) || (x === null || x === void 0 ? void 0 : (_x$displayLabel = x.displayLabel) === null || _x$displayLabel === void 0 ? void 0 : _x$displayLabel.toUpperCase().includes(filtrationString));
|
|
158
|
+
});
|
|
159
|
+
};
|
|
160
|
+
var findNextActiveIndex = function findNextActiveIndex(index, direction, items) {
|
|
161
|
+
for (var i = index + direction; i > 0 && i <= items.length; i += direction) {
|
|
162
|
+
var _items;
|
|
163
|
+
if (!((_items = items[i - 1]) !== null && _items !== void 0 && _items.disabled)) {
|
|
164
|
+
return i;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
return index;
|
|
168
|
+
};
|
|
169
|
+
var handleKeyDown = function handleKeyDown(e) {
|
|
170
|
+
if (isOpen) {
|
|
171
|
+
if (e.key === 'ArrowUp' || e.key === 'Up') {
|
|
172
|
+
e.preventDefault();
|
|
173
|
+
var focusedNow = focused || focused === 0 ? focused : arrLength + 1;
|
|
174
|
+
if (!!focusedNow) {
|
|
175
|
+
focusedNow = focusedNow === 1 && haveTopItem() ? 0 : findNextActiveIndex(focusedNow, -1, getFilteredItems());
|
|
176
|
+
setNewFocusedElement(focusedNow);
|
|
177
|
+
}
|
|
178
|
+
} else if (e.key === 'ArrowDown' || e.key === 'Down') {
|
|
179
|
+
e.preventDefault();
|
|
180
|
+
var _focusedNow = focused;
|
|
181
|
+
_focusedNow = !!_focusedNow || _focusedNow === 0 ? findNextActiveIndex(_focusedNow, 1, getFilteredItems()) : haveTopItem() ? 0 : 1;
|
|
182
|
+
setNewFocusedElement(_focusedNow);
|
|
183
|
+
} else if (e.key === 'Escape' || e.key === 'Esc') {
|
|
184
|
+
setIsOpen(false);
|
|
185
|
+
setFocused(null);
|
|
186
|
+
if (onActiveDescendantChanged) onActiveDescendantChanged(undefined);
|
|
187
|
+
} else if ((e.key === 'Enter' || e.key === ' ') && focused !== null && e.target !== (actionButtonRef === null || actionButtonRef === void 0 ? void 0 : actionButtonRef.current)) {
|
|
188
|
+
e.preventDefault();
|
|
189
|
+
var focusedElement = elRefs[focused];
|
|
190
|
+
if (focusedElement) {
|
|
191
|
+
var _focusedElement$curre;
|
|
192
|
+
(_focusedElement$curre = focusedElement.current) === null || _focusedElement$curre === void 0 ? void 0 : _focusedElement$curre.click();
|
|
193
|
+
}
|
|
194
|
+
if (onActiveDescendantChanged) onActiveDescendantChanged(undefined);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
React.useEffect(function () {
|
|
199
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
200
|
+
return function () {
|
|
201
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
202
|
+
};
|
|
203
|
+
}, []);
|
|
204
|
+
var scrollPosition = React.useRef(0);
|
|
205
|
+
var handleScroll = function handleScroll() {
|
|
206
|
+
var _itemsListRef$current;
|
|
207
|
+
scrollPosition.current = (_itemsListRef$current = itemsListRef.current) === null || _itemsListRef$current === void 0 ? void 0 : _itemsListRef$current.scrollTop;
|
|
208
|
+
};
|
|
209
|
+
React.useLayoutEffect(function () {
|
|
210
|
+
var _scrollPosition$curre;
|
|
211
|
+
if (itemsListRef.current) itemsListRef.current.scrollTop = (_scrollPosition$curre = scrollPosition.current) !== null && _scrollPosition$curre !== void 0 ? _scrollPosition$curre : 0;
|
|
212
|
+
}, [selectedValues]);
|
|
213
|
+
var getCorrectRef = function getCorrectRef(ref) {
|
|
214
|
+
switch (customizationProps.itemsType) {
|
|
215
|
+
case 'normal':
|
|
216
|
+
return ref || /*#__PURE__*/React.createRef();
|
|
217
|
+
default:
|
|
218
|
+
return ref || /*#__PURE__*/React.createRef();
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
var arrLength = getFilteredItems().length;
|
|
222
|
+
var _React$useState7 = React.useState([]),
|
|
223
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
224
|
+
elRefs = _React$useState8[0],
|
|
225
|
+
setElRefs = _React$useState8[1];
|
|
226
|
+
React.useEffect(function () {
|
|
227
|
+
if ((elRefs === null || elRefs === void 0 ? void 0 : elRefs.length) !== arrLength) {
|
|
228
|
+
setFocused(null);
|
|
229
|
+
}
|
|
230
|
+
setElRefs(function (elRefs) {
|
|
231
|
+
return Array(arrLength + 1).fill(null).map(function (_, i) {
|
|
232
|
+
return getCorrectRef(elRefs[i]);
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
}, [isOpen, arrLength]);
|
|
236
|
+
React.useLayoutEffect(function () {
|
|
237
|
+
isOpen && !locationDefined && determineDropUp();
|
|
238
|
+
}, [isOpen, locationDefined]);
|
|
239
|
+
var haveTopItem = function haveTopItem() {
|
|
240
|
+
var _getSuggestions;
|
|
241
|
+
if (!customizationProps.pinTopItem) return false;
|
|
242
|
+
if (customizationProps.itemsType === 'radio' && selectedValues && (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0) return true;else if (customizationProps.itemsType === 'checkbox' && (customizationProps.multiSelect || (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0)) return true;else if (customizationProps.itemsType === 'normal' && ((_getSuggestions = getSuggestions()) === null || _getSuggestions === void 0 ? void 0 : _getSuggestions.length) > 0) return true;
|
|
243
|
+
return false;
|
|
244
|
+
};
|
|
245
|
+
var getSuggestions = function getSuggestions() {
|
|
246
|
+
return getFilteredItems().filter(function (x) {
|
|
247
|
+
return x.suggestion;
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* when dropdown opens set correct position of focused item
|
|
253
|
+
* */
|
|
254
|
+
React.useLayoutEffect(function () {
|
|
255
|
+
if (isOpen && (focused || focused === 0)) {
|
|
256
|
+
setNewFocusedElement(focused === 0 && !haveTopItem() ? 1 : focused);
|
|
257
|
+
}
|
|
258
|
+
}, [isOpen, focused]);
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Reset dropdown content state on close
|
|
262
|
+
* */
|
|
263
|
+
React.useEffect(function () {
|
|
264
|
+
if (!isOpen) {
|
|
265
|
+
var _dropdownContentRef$c2, _dropdownContentRef$c3;
|
|
266
|
+
setLocationDefined(false);
|
|
267
|
+
var _iterator = _createForOfIteratorHelper(elRefs),
|
|
268
|
+
_step;
|
|
269
|
+
try {
|
|
270
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
271
|
+
var _elRef$current;
|
|
272
|
+
var elRef = _step.value;
|
|
273
|
+
(_elRef$current = elRef.current) === null || _elRef$current === void 0 ? void 0 : _elRef$current.classList.remove('dropdown-hover');
|
|
274
|
+
}
|
|
275
|
+
} catch (err) {
|
|
276
|
+
_iterator.e(err);
|
|
277
|
+
} finally {
|
|
278
|
+
_iterator.f();
|
|
279
|
+
}
|
|
280
|
+
setFocused(null);
|
|
281
|
+
if (onActiveDescendantChanged) onActiveDescendantChanged(undefined);
|
|
282
|
+
(_dropdownContentRef$c2 = dropdownContentRef.current) === null || _dropdownContentRef$c2 === void 0 ? void 0 : _dropdownContentRef$c2.classList.remove('outline');
|
|
283
|
+
(_dropdownContentRef$c3 = dropdownContentRef.current) === null || _dropdownContentRef$c3 === void 0 ? void 0 : _dropdownContentRef$c3.blur();
|
|
284
|
+
} else {
|
|
285
|
+
if (outline) {
|
|
286
|
+
var _dropdownContentRef$c4, _dropdownContentRef$c5;
|
|
287
|
+
(_dropdownContentRef$c4 = dropdownContentRef.current) === null || _dropdownContentRef$c4 === void 0 ? void 0 : _dropdownContentRef$c4.classList.add('outline');
|
|
288
|
+
(_dropdownContentRef$c5 = dropdownContentRef.current) === null || _dropdownContentRef$c5 === void 0 ? void 0 : _dropdownContentRef$c5.focus();
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}, [isOpen, dropdownContentRef, focused, outline]);
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Scroll item container to top when dropdown opens
|
|
295
|
+
* */
|
|
296
|
+
React.useEffect(function () {
|
|
297
|
+
if (isOpen && itemsListRef.current) {
|
|
298
|
+
itemsListRef.current.scrollTop = 0;
|
|
299
|
+
}
|
|
300
|
+
}, [isOpen]);
|
|
301
|
+
React.useEffect(function () {
|
|
302
|
+
if (isOpen) {
|
|
303
|
+
var observer = new IntersectionObserver(function (entries) {
|
|
304
|
+
if (!entries[0].isIntersecting) {
|
|
305
|
+
var _document, _document$activeEleme;
|
|
306
|
+
setIsOpen(false);
|
|
307
|
+
//@ts-ignore
|
|
308
|
+
(_document = document) === null || _document === void 0 ? void 0 : (_document$activeEleme = _document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.blur();
|
|
309
|
+
}
|
|
310
|
+
}, {
|
|
311
|
+
threshold: [0],
|
|
312
|
+
rootMargin: '8px'
|
|
313
|
+
});
|
|
314
|
+
observer.observe(containerRef.current);
|
|
315
|
+
calculateOffset();
|
|
316
|
+
window.addEventListener('scroll', calculateOffset, true);
|
|
317
|
+
window.addEventListener('resize', calculateOffset);
|
|
318
|
+
return function () {
|
|
319
|
+
observer.disconnect();
|
|
320
|
+
window.removeEventListener('scroll', calculateOffset, true);
|
|
321
|
+
window.removeEventListener('resize', calculateOffset);
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
return function () {};
|
|
325
|
+
}, [isOpen]);
|
|
326
|
+
var handleItemClick = function handleItemClick(selected, item) {
|
|
327
|
+
var newValue = [];
|
|
328
|
+
if (customizationProps.multiSelect) {
|
|
329
|
+
if (selected) newValue = [].concat(_toConsumableArray(selectedValues), [item.value]);else newValue = selectedValues.filter(function (x) {
|
|
330
|
+
return x != item.value;
|
|
331
|
+
});
|
|
332
|
+
} else newValue = selected ? [item.value] : [];
|
|
333
|
+
setSelectedValues(newValue);
|
|
334
|
+
if (customizationProps.onValueUpdate && customizationProps.onValueUpdate(newValue)) {
|
|
335
|
+
setIsOpen(false);
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
var getTopItem = function getTopItem() {
|
|
339
|
+
var _customizationProps$i, _customizationProps$i2, _selectedFirst$displa, _selectedFirst$displa2;
|
|
340
|
+
if (!customizationProps.pinTopItem) return;
|
|
341
|
+
var visibleItems = getFilteredItems();
|
|
342
|
+
var allSelected = (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.filter(function (x) {
|
|
343
|
+
return visibleItems.some(function (y) {
|
|
344
|
+
return y.value == x;
|
|
345
|
+
});
|
|
346
|
+
}).length) == visibleItems.length;
|
|
347
|
+
var showTopItem = false;
|
|
348
|
+
var suggestions = getSuggestions();
|
|
349
|
+
var displayLabel = selectedValues[0] ? (_customizationProps$i = customizationProps.items) === null || _customizationProps$i === void 0 ? void 0 : (_customizationProps$i2 = _customizationProps$i.find(function (c) {
|
|
350
|
+
return c.value === selectedValues[0];
|
|
351
|
+
})) === null || _customizationProps$i2 === void 0 ? void 0 : _customizationProps$i2.displayLabel : undefined;
|
|
352
|
+
if (customizationProps.itemsType == 'radio' && selectedValues && (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0) showTopItem = true;else if (customizationProps.itemsType == 'checkbox' && (customizationProps.multiSelect || (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0)) showTopItem = true;else if (customizationProps.itemsType == 'normal' && suggestions.length > 0) showTopItem = true;
|
|
353
|
+
if (!showTopItem) return;
|
|
354
|
+
var selectedFirst = selectedValues.length > 0 ? visibleItems.find(function (x) {
|
|
355
|
+
return x.value == selectedValues[0];
|
|
356
|
+
}) : null;
|
|
357
|
+
return /*#__PURE__*/_jsxs(DropdownContentTopItemContainer, {
|
|
358
|
+
size: size,
|
|
359
|
+
children: [customizationProps.itemsType === 'radio' && /*#__PURE__*/_jsx(RadioButton, {
|
|
360
|
+
ref: elRefs[0],
|
|
361
|
+
role: "menuitemradio",
|
|
362
|
+
iconPointerEventsTransparent: true,
|
|
363
|
+
onFocus: function onFocus(e) {
|
|
364
|
+
return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_topitem"));
|
|
365
|
+
},
|
|
366
|
+
tabIndexVal: -1,
|
|
367
|
+
className: "".concat(focused === 0 ? 'dropdown-hover' : ''),
|
|
368
|
+
select: function select() {},
|
|
369
|
+
label: (_selectedFirst$displa = selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.displayLabel) !== null && _selectedFirst$displa !== void 0 ? _selectedFirst$displa : selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.value,
|
|
370
|
+
size: size,
|
|
371
|
+
id: "".concat(id, "_topitem"),
|
|
372
|
+
selected: true
|
|
373
|
+
}), customizationProps.itemsType === 'checkbox' && /*#__PURE__*/_jsx(Checkbox, {
|
|
374
|
+
ref: elRefs[0],
|
|
375
|
+
role: "menuitemcheckbox",
|
|
376
|
+
tabIndexVal: -1,
|
|
377
|
+
className: "".concat(focused === 0 ? 'dropdown-hover' : ''),
|
|
378
|
+
select: function select(selected) {
|
|
379
|
+
if (!customizationProps.multiSelect) return;
|
|
380
|
+
var newValues = selected ? visibleItems.map(function (x) {
|
|
381
|
+
return x.value;
|
|
382
|
+
}) : [];
|
|
383
|
+
setSelectedValues(newValues);
|
|
384
|
+
if (customizationProps.onValueUpdate && customizationProps.onValueUpdate(newValues)) setIsOpen(false);
|
|
385
|
+
},
|
|
386
|
+
onFocus: function onFocus(e) {
|
|
387
|
+
return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_topitem"));
|
|
388
|
+
},
|
|
389
|
+
iconPointerEventsTransparent: true,
|
|
390
|
+
semiSelected: customizationProps.multiSelect && !allSelected && (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0,
|
|
391
|
+
size: size,
|
|
392
|
+
id: "".concat(id, "_checkbox_selectall"),
|
|
393
|
+
label: customizationProps.multiSelect ? 'Select all' : (_selectedFirst$displa2 = selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.displayLabel) !== null && _selectedFirst$displa2 !== void 0 ? _selectedFirst$displa2 : selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.value,
|
|
394
|
+
selected: !customizationProps.multiSelect || allSelected
|
|
395
|
+
}), customizationProps.itemsType === 'normal' && /*#__PURE__*/_jsx(_Fragment, {
|
|
396
|
+
children: suggestions.map(function (x) {
|
|
397
|
+
return /*#__PURE__*/_jsx(MenuItem, {
|
|
398
|
+
role: ariaRolesType == 'input' ? 'option' : 'menu',
|
|
399
|
+
item: x,
|
|
400
|
+
size: size,
|
|
401
|
+
active: false,
|
|
402
|
+
tabIndex: -1,
|
|
403
|
+
onFocus: function onFocus(e) {
|
|
404
|
+
return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_topitem"));
|
|
405
|
+
},
|
|
406
|
+
className: "".concat(focused === 0 ? 'dropdown-hover' : ''),
|
|
407
|
+
ref: elRefs[0],
|
|
408
|
+
id: "".concat(id, "_topitem"),
|
|
409
|
+
onClickHandler: function onClickHandler(e) {
|
|
410
|
+
e.stopPropagation();
|
|
411
|
+
customizationProps.onValueUpdate([x.value]);
|
|
412
|
+
setSelectedValues([x.value]);
|
|
413
|
+
setIsOpen(false);
|
|
414
|
+
setFocused(null);
|
|
415
|
+
}
|
|
416
|
+
}, "".concat(id, "_topitem_").concat(x.value));
|
|
417
|
+
})
|
|
418
|
+
})]
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
var getElements = function getElements(messageOnNoResults, size) {
|
|
422
|
+
if (getFilteredItems().length === 0) {
|
|
423
|
+
return /*#__PURE__*/_jsx(MenuItem, {
|
|
424
|
+
item: {
|
|
425
|
+
value: messageOnNoResults,
|
|
426
|
+
disabled: true
|
|
427
|
+
},
|
|
428
|
+
size: size,
|
|
429
|
+
id: "noResultsFound",
|
|
430
|
+
active: false,
|
|
431
|
+
onClickHandler: function onClickHandler(e) {}
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
return /*#__PURE__*/_jsx(DropdownContentItemsContainer, {
|
|
435
|
+
size: size,
|
|
436
|
+
children: getFilteredItems().filter(function (x) {
|
|
437
|
+
return x && (customizationProps.itemsType != 'normal' || !x.suggestion);
|
|
438
|
+
}).map(function (item, index) {
|
|
439
|
+
var _item$displayLabel, _item$displayLabel2;
|
|
440
|
+
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
441
|
+
children: [item.customContent, !item.customContent && customizationProps.itemsType == 'radio' && /*#__PURE__*/_jsx(RadioButton, {
|
|
442
|
+
role: "menuitemradio",
|
|
443
|
+
select: function select(selected) {
|
|
444
|
+
return handleItemClick(selected, item);
|
|
445
|
+
},
|
|
446
|
+
ref: elRefs[index + 1],
|
|
447
|
+
size: size,
|
|
448
|
+
tabIndexVal: -1,
|
|
449
|
+
className: "".concat(index + 1 === focused ? 'dropdown-hover' : ''),
|
|
450
|
+
iconPointerEventsTransparent: true,
|
|
451
|
+
disabled: item === null || item === void 0 ? void 0 : item.disabled,
|
|
452
|
+
onFocus: function onFocus(e) {
|
|
453
|
+
return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_").concat(index + 1));
|
|
454
|
+
},
|
|
455
|
+
id: "".concat(id, "_").concat(index + 1),
|
|
456
|
+
label: (_item$displayLabel = item.displayLabel) !== null && _item$displayLabel !== void 0 ? _item$displayLabel : item.value,
|
|
457
|
+
selected: selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(item.value)
|
|
458
|
+
}, "key_".concat(id, "_").concat(index + 1)), !item.customContent && customizationProps.itemsType == 'checkbox' && /*#__PURE__*/_jsx(Checkbox, {
|
|
459
|
+
role: "menuitemcheckbox",
|
|
460
|
+
select: function select(selected) {
|
|
461
|
+
return handleItemClick(selected, item);
|
|
462
|
+
},
|
|
463
|
+
iconPointerEventsTransparent: true,
|
|
464
|
+
disabled: item === null || item === void 0 ? void 0 : item.disabled,
|
|
465
|
+
className: "".concat(index + 1 === focused ? 'dropdown-hover' : ''),
|
|
466
|
+
ref: elRefs[index + 1],
|
|
467
|
+
size: size,
|
|
468
|
+
tabIndexVal: -1,
|
|
469
|
+
onFocus: function onFocus(e) {
|
|
470
|
+
return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_").concat(index + 1));
|
|
471
|
+
},
|
|
472
|
+
id: "".concat(id, "_").concat(index + 1),
|
|
473
|
+
label: (_item$displayLabel2 = item.displayLabel) !== null && _item$displayLabel2 !== void 0 ? _item$displayLabel2 : item.value,
|
|
474
|
+
selected: selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(item.value)
|
|
475
|
+
}, "key_".concat(id, "_").concat(index + 1)), !item.customContent && (customizationProps.itemsType == 'normal' || !customizationProps.itemsType) && /*#__PURE__*/_jsx(MenuItem, {
|
|
476
|
+
role: ariaRolesType == 'input' ? 'option' : 'menu',
|
|
477
|
+
id: "".concat(id, "_").concat(index + 1),
|
|
478
|
+
item: item,
|
|
479
|
+
tabIndex: -1,
|
|
480
|
+
className: "".concat(index + 1 === focused ? 'dropdown-hover' : ''),
|
|
481
|
+
size: size,
|
|
482
|
+
onFocus: function onFocus(e) {
|
|
483
|
+
return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_").concat(index + 1));
|
|
484
|
+
},
|
|
485
|
+
active: selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(item.value),
|
|
486
|
+
ref: elRefs[index + 1],
|
|
487
|
+
onClickHandler: function onClickHandler(e) {
|
|
488
|
+
e.stopPropagation();
|
|
489
|
+
customizationProps.onValueUpdate([item.value]);
|
|
490
|
+
setSelectedValues([item.value]);
|
|
491
|
+
setIsOpen(false);
|
|
492
|
+
setFocused(null);
|
|
493
|
+
}
|
|
494
|
+
}, "key_".concat(id, "_").concat(index + 1))]
|
|
495
|
+
}, "key_".concat(id, "_").concat(item.value));
|
|
496
|
+
})
|
|
497
|
+
});
|
|
498
|
+
};
|
|
499
|
+
var calculateOffset = function calculateOffset() {
|
|
500
|
+
var _containerRef$current;
|
|
501
|
+
var rect = containerRef === null || containerRef === void 0 ? void 0 : (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect();
|
|
502
|
+
if (rect) {
|
|
503
|
+
dropdownContentRef.current.style.left = "".concat(rect.x + rect.width, "px");
|
|
504
|
+
dropdownContentRef.current.style.top = "".concat(rect.y + rect.height, "px");
|
|
505
|
+
dropdownContentRef.current.style.width = width !== null && width !== void 0 ? width : "".concat(rect.width, "px");
|
|
506
|
+
}
|
|
507
|
+
determineDropUp();
|
|
508
|
+
};
|
|
509
|
+
var cls = "".concat(isOpen ? 'show' : '', " ").concat(isOpen && outline ? 'outline' : '', " ").concat(locationDefined ? isUp ? 'up' : 'down' : '');
|
|
510
|
+
return /*#__PURE__*/_jsx(Overlay, {
|
|
511
|
+
children: /*#__PURE__*/_jsxs(DropdownContentContainer, {
|
|
512
|
+
role: ariaRolesType == "menu" ? "menu" : "optionlist",
|
|
513
|
+
ref: dropdownContentRef,
|
|
514
|
+
size: size,
|
|
515
|
+
offsetTop: offset.top,
|
|
516
|
+
id: id,
|
|
517
|
+
offsetLeft: offset.left,
|
|
518
|
+
tabIndex: -1,
|
|
519
|
+
isButton: isButton,
|
|
520
|
+
alignLeft: alignLeft,
|
|
521
|
+
scrollable: customizationProps.scrollable,
|
|
522
|
+
maxHeight: customizationProps.maxHeight,
|
|
523
|
+
className: cls,
|
|
524
|
+
children: [/*#__PURE__*/_jsxs(DropdownContentListContainer, {
|
|
525
|
+
role: "group",
|
|
526
|
+
size: size,
|
|
527
|
+
itemsType: customizationProps.itemsType,
|
|
528
|
+
onScroll: handleScroll,
|
|
529
|
+
ref: itemsListRef,
|
|
530
|
+
outline: outline,
|
|
531
|
+
scrollable: customizationProps.scrollable,
|
|
532
|
+
children: [customizationProps.menuContent && /*#__PURE__*/_jsxs(DropdownContentMenuContentContainer, {
|
|
533
|
+
size: size,
|
|
534
|
+
children: [customizationProps.menuContent, /*#__PURE__*/_jsx(DividerContainer, {
|
|
535
|
+
size: size,
|
|
536
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
537
|
+
className: "divider"
|
|
538
|
+
})
|
|
539
|
+
})]
|
|
540
|
+
}), customizationProps.pinTopItem && getTopItem(), getElements(messageOnNoResults, size)]
|
|
541
|
+
}), customizationProps.action && customizationProps.actionLabel && /*#__PURE__*/_jsx(DropdownContentActionButtonContainer, {
|
|
542
|
+
size: size,
|
|
543
|
+
scrollable: customizationProps.scrollable,
|
|
544
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
545
|
+
width: "100%",
|
|
546
|
+
role: "menuitem",
|
|
547
|
+
icon: customizationProps.actionIcon,
|
|
548
|
+
ref: actionButtonRef,
|
|
549
|
+
loading: customizationProps.actionLoading,
|
|
550
|
+
disabled: customizationProps.actionDisabled,
|
|
551
|
+
variant: (_customizationProps$a = customizationProps.actionVariant) !== null && _customizationProps$a !== void 0 ? _customizationProps$a : 'primary',
|
|
552
|
+
size: size,
|
|
553
|
+
onClick: function onClick() {
|
|
554
|
+
return customizationProps.action() && setIsOpen(false);
|
|
555
|
+
},
|
|
556
|
+
children: customizationProps.actionLabel
|
|
557
|
+
})
|
|
558
|
+
})]
|
|
559
|
+
})
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
DropdownContent.propTypes = {
|
|
563
|
+
isButton: _pt.bool.isRequired,
|
|
564
|
+
customizationProps: _pt.shape({
|
|
565
|
+
itemsType: _pt.oneOf(['radio', 'checkbox', 'normal']),
|
|
566
|
+
menuContent: _pt.node,
|
|
567
|
+
scrollable: _pt.bool,
|
|
568
|
+
multiSelect: _pt.bool,
|
|
569
|
+
maxHeight: _pt.string,
|
|
570
|
+
actionLabel: _pt.string,
|
|
571
|
+
actionIcon: _pt.node,
|
|
572
|
+
actionLoading: _pt.bool,
|
|
573
|
+
actionDisabled: _pt.bool,
|
|
574
|
+
action: _pt.func.isRequired,
|
|
575
|
+
pinTopItem: _pt.bool,
|
|
576
|
+
onValueUpdate: _pt.func.isRequired,
|
|
577
|
+
items: _pt.arrayOf(_pt.shape({
|
|
578
|
+
value: _pt.string.isRequired,
|
|
579
|
+
displayLabel: _pt.string,
|
|
580
|
+
noteLabel: _pt.string,
|
|
581
|
+
suggestion: _pt.bool,
|
|
582
|
+
showDividerAbove: _pt.bool,
|
|
583
|
+
disabled: _pt.bool,
|
|
584
|
+
locked: _pt.bool,
|
|
585
|
+
icon: _pt.node,
|
|
586
|
+
customContent: _pt.node
|
|
587
|
+
})).isRequired
|
|
588
|
+
}).isRequired,
|
|
589
|
+
alignLeft: _pt.bool,
|
|
590
|
+
isOpen: _pt.bool.isRequired,
|
|
591
|
+
setIsOpen: _pt.func.isRequired,
|
|
592
|
+
id: _pt.string.isRequired,
|
|
593
|
+
filter: _pt.string.isRequired,
|
|
594
|
+
width: _pt.string,
|
|
595
|
+
onActiveDescendantChanged: _pt.func,
|
|
596
|
+
selectedValues: _pt.arrayOf(_pt.string).isRequired,
|
|
597
|
+
setSelectedValues: _pt.func.isRequired,
|
|
598
|
+
messageOnNoResults: _pt.string.isRequired,
|
|
599
|
+
focused: _pt.oneOfType([_pt.number, _pt.oneOf([null])]),
|
|
600
|
+
setFocused: _pt.func.isRequired,
|
|
601
|
+
outline: _pt.bool,
|
|
602
|
+
ariaRolesType: _pt.oneOf(['input', 'menu'])
|
|
603
|
+
};
|
|
604
|
+
export default DropdownContent;
|
|
605
|
+
//# sourceMappingURL=DropdownContent.js.map
|