@laerdal/life-react-components 3.5.1-dev.10 → 3.5.1-dev.12
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 +47 -69
- package/dist/Accordion/AccordionMenu.d.ts +15 -0
- package/dist/Accordion/AccordionMenu.js +64 -91
- package/dist/Accordion/ContentAccordion.d.ts +14 -0
- package/dist/Accordion/ContentAccordion.js +105 -154
- package/dist/Accordion/index.js +7 -8
- package/dist/Accordion/styles.js +12 -16
- package/dist/AuthPage/AuthPage.d.ts +3 -3
- package/dist/AuthPage/AuthPage.js +29 -36
- package/dist/AuthPage/ScreenSetsContainer.js +9 -9
- package/dist/AuthPage/index.js +4 -5
- package/dist/Banners/Banner.d.ts +26 -5
- package/dist/Banners/Banner.js +112 -182
- package/dist/Banners/OverviewBanner.d.ts +2 -2
- package/dist/Banners/OverviewBanner.js +39 -32
- package/dist/Banners/index.js +4 -5
- package/dist/Banners/styles.js +55 -53
- package/dist/Breadcrumb/Breadcrumb.d.ts +9 -2
- package/dist/Breadcrumb/Breadcrumb.js +67 -126
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +2 -0
- package/dist/Breadcrumb/BreadcrumbItem.js +1 -2
- package/dist/Breadcrumb/index.js +4 -5
- package/dist/Breadcrumb/styles.js +24 -32
- package/dist/Button/BackButton.d.ts +7 -0
- package/dist/Button/BackButton.js +45 -48
- package/dist/Button/Button.d.ts +29 -10
- package/dist/Button/Button.js +85 -195
- package/dist/Button/DualFunctionButton.d.ts +10 -0
- package/dist/Button/DualFunctionButton.js +71 -160
- package/dist/Button/Iconbutton.d.ts +17 -11
- package/dist/Button/Iconbutton.js +70 -127
- package/dist/Button/index.js +8 -9
- package/dist/Card/HorizontalCard/HorizontalCard.js +55 -78
- package/dist/Card/HorizontalCard/HorizontalCardActions.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardActions.js +39 -92
- package/dist/Card/HorizontalCard/HorizontalCardBody.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardBody.js +23 -38
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.js +21 -34
- package/dist/Card/HorizontalCard/index.js +4 -5
- package/dist/Card/HorizontalCard/types.d.ts +18 -8
- package/dist/Card/HorizontalCard/types.js +1 -2
- package/dist/Card/VerticalCard/Card.d.ts +8 -1
- package/dist/Card/VerticalCard/Card.js +61 -81
- package/dist/Card/VerticalCard/CardBottomSection.d.ts +11 -0
- package/dist/Card/VerticalCard/CardBottomSection.js +45 -110
- package/dist/Card/VerticalCard/CardMiddleSection.d.ts +8 -0
- package/dist/Card/VerticalCard/CardMiddleSection.js +32 -66
- package/dist/Card/VerticalCard/CardTopSection.d.ts +11 -0
- package/dist/Card/VerticalCard/CardTopSection.js +33 -101
- package/dist/Card/VerticalCard/index.js +7 -8
- package/dist/Card/index.js +2 -3
- package/dist/Chips/ActionChip.js +41 -63
- package/dist/Chips/ChipStyles.js +12 -11
- package/dist/Chips/ChipTypes.d.ts +36 -2
- package/dist/Chips/ChipTypes.js +1 -2
- package/dist/Chips/ChoiceChips.js +66 -93
- package/dist/Chips/FilterChip.js +43 -64
- package/dist/Chips/InputChip.js +65 -106
- package/dist/Chips/index.js +6 -7
- package/dist/ChipsInput/ChipDropdownInput.d.ts +9 -1
- package/dist/ChipsInput/ChipDropdownInput.js +224 -361
- package/dist/ChipsInput/ChipInput.js +95 -124
- package/dist/ChipsInput/ChipInputField.js +114 -195
- package/dist/ChipsInput/ChipInputTypes.js +1 -2
- package/dist/ChipsInput/index.d.ts +1 -0
- package/dist/ChipsInput/index.js +2 -3
- package/dist/Dropdown/BasicDropdown.d.ts +79 -3
- package/dist/Dropdown/BasicDropdown.js +153 -305
- package/dist/Dropdown/CommonStyling.d.ts +0 -1
- package/dist/Dropdown/CommonStyling.js +24 -44
- package/dist/Dropdown/DropdownButton.js +103 -206
- package/dist/Dropdown/DropdownButtonTypes.d.ts +31 -4
- package/dist/Dropdown/DropdownButtonTypes.js +1 -2
- package/dist/Dropdown/DropdownContent.d.ts +10 -1
- package/dist/Dropdown/DropdownContent.js +339 -605
- package/dist/Dropdown/DropdownFilter.d.ts +18 -1
- package/dist/Dropdown/DropdownFilter.js +161 -318
- package/dist/Dropdown/index.js +8 -9
- package/dist/Footer/Components/FooterBottomLinks.d.ts +2 -2
- package/dist/Footer/Components/FooterBottomLinks.js +20 -41
- package/dist/Footer/Components/FooterDropdownLinks.d.ts +2 -2
- package/dist/Footer/Components/FooterDropdownLinks.js +25 -61
- package/dist/Footer/Components/FooterNavSection.d.ts +2 -2
- package/dist/Footer/Components/FooterNavSection.js +32 -62
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.d.ts +2 -2
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.js +42 -95
- package/dist/Footer/Components/FooterTop.d.ts +2 -2
- package/dist/Footer/Components/FooterTop.js +34 -60
- package/dist/Footer/Footer.d.ts +2 -2
- package/dist/Footer/Footer.js +17 -20
- package/dist/Footer/SiteFooter.d.ts +1 -1
- package/dist/Footer/SiteFooter.js +51 -89
- package/dist/Footer/index.js +2 -3
- package/dist/GlobalNavigationBar/GlobalNavigationBar.d.ts +1 -1
- package/dist/GlobalNavigationBar/GlobalNavigationBar.js +89 -192
- package/dist/GlobalNavigationBar/Logo.d.ts +1 -1
- package/dist/GlobalNavigationBar/Logo.js +33 -74
- package/dist/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.js +299 -0
- package/dist/GlobalNavigationBar/__tests__/Logo.tests.js +26 -0
- package/dist/GlobalNavigationBar/desktop/DesktopActions.js +88 -146
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +3 -3
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.js +42 -66
- package/dist/GlobalNavigationBar/desktop/MainMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.js +175 -282
- package/dist/GlobalNavigationBar/desktop/RightSideNav.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js +46 -64
- package/dist/GlobalNavigationBar/desktop/SubMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/SubMenu.js +131 -248
- package/dist/GlobalNavigationBar/desktop/UserMenu.d.ts +2 -2
- package/dist/GlobalNavigationBar/desktop/UserMenu.js +90 -155
- package/dist/GlobalNavigationBar/index.js +3 -4
- package/dist/GlobalNavigationBar/mobile/CommonStyles.js +28 -26
- package/dist/GlobalNavigationBar/mobile/MobileActionContainer.js +18 -32
- package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +3 -3
- package/dist/GlobalNavigationBar/mobile/MobileMenu.js +94 -146
- package/dist/GlobalNavigationBar/mobile/MobileMenuContent.js +89 -145
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js +108 -152
- package/dist/GlobalNavigationBar/types.d.ts +12 -8
- package/dist/GlobalNavigationBar/types.js +1 -2
- package/dist/GlobalNavigationBar/utils.js +7 -10
- package/dist/HyperLink/HyperLink.d.ts +7 -0
- package/dist/HyperLink/HyperLink.js +36 -42
- package/dist/HyperLink/index.js +3 -4
- package/dist/HyperLink/styling.js +9 -7
- package/dist/Image/ImageWithFallbacks.d.ts +2 -2
- package/dist/Image/ImageWithFallbacks.js +87 -106
- package/dist/Image/index.js +2 -3
- package/dist/InputFields/Checkbox.js +65 -95
- package/dist/InputFields/DatepickerField.d.ts +40 -2
- package/dist/InputFields/DatepickerField.js +227 -335
- package/dist/InputFields/DatepickerFieldHeader.d.ts +5 -2
- package/dist/InputFields/DatepickerFieldHeader.js +43 -80
- package/dist/InputFields/Label.d.ts +1 -1
- package/dist/InputFields/Label.js +77 -116
- package/dist/InputFields/NumberField.d.ts +46 -17
- package/dist/InputFields/NumberField.js +194 -304
- package/dist/InputFields/PasswordField.d.ts +74 -2
- package/dist/InputFields/PasswordField.js +60 -129
- package/dist/InputFields/QuickSearch.d.ts +13 -1
- package/dist/InputFields/QuickSearch.js +92 -189
- package/dist/InputFields/RadioButton.d.ts +27 -3
- package/dist/InputFields/RadioButton.js +54 -96
- package/dist/InputFields/ResponsiveComponentWrapper.d.ts +1 -1
- package/dist/InputFields/ResponsiveComponentWrapper.js +20 -44
- package/dist/InputFields/RichTextField.d.ts +57 -0
- package/dist/InputFields/RichTextField.js +83 -111
- package/dist/InputFields/SearchBar.d.ts +65 -1
- package/dist/InputFields/SearchBar.js +63 -187
- package/dist/InputFields/TextField.d.ts +114 -2
- package/dist/InputFields/TextField.js +51 -121
- package/dist/InputFields/Textarea.js +57 -88
- package/dist/InputFields/components/SearchBarInput.d.ts +1 -1
- package/dist/InputFields/components/SearchBarInput.js +26 -73
- package/dist/InputFields/components/SearchField.js +44 -45
- package/dist/InputFields/index.js +13 -14
- package/dist/InputFields/styling.js +33 -38
- package/dist/InputFields/types.d.ts +41 -3
- package/dist/InputFields/types.js +2 -3
- package/dist/Layouts/index.js +25 -41
- package/dist/LinearProgress/LinearProgress.d.ts +6 -0
- package/dist/LinearProgress/LinearProgress.js +78 -105
- package/dist/LinearProgress/index.js +3 -4
- package/dist/List/ListRow.d.ts +17 -4
- package/dist/List/ListRow.js +83 -140
- package/dist/List/__tests__/ListRow.tests.js +51 -0
- package/dist/List/index.js +2 -3
- package/dist/LoadingIndicator/LoadingIndicator.d.ts +6 -3
- package/dist/LoadingIndicator/LoadingIndicator.js +26 -46
- package/dist/LoadingIndicator/index.js +1 -2
- package/dist/LoadingPage/GlobalLoadingPage.d.ts +1 -1
- package/dist/LoadingPage/GlobalLoadingPage.js +26 -36
- package/dist/LoadingPage/index.js +1 -2
- package/dist/MenuItem/MenuItem.d.ts +8 -2
- package/dist/MenuItem/MenuItem.js +60 -101
- package/dist/MenuItem/index.js +1 -2
- package/dist/MiniProductCard/MiniProductCard.d.ts +3 -3
- package/dist/MiniProductCard/MiniProductCard.js +30 -47
- package/dist/MiniProductCard/index.js +1 -2
- package/dist/Modals/Modal.d.ts +5 -5
- package/dist/Modals/Modal.js +36 -55
- package/dist/Modals/ModalContainer.d.ts +3 -3
- package/dist/Modals/ModalContainer.js +130 -185
- package/dist/Modals/ModalContent.d.ts +1 -1
- package/dist/Modals/ModalContent.js +159 -246
- package/dist/Modals/ModalDialog.d.ts +14 -4
- package/dist/Modals/ModalDialog.js +166 -339
- package/dist/Modals/ModalNote.js +27 -66
- package/dist/Modals/ModalStyles.js +53 -94
- package/dist/Modals/ModalTypes.d.ts +2 -2
- package/dist/Modals/ModalTypes.js +1 -2
- package/dist/Modals/index.js +6 -7
- package/dist/NavItem/NavItem.d.ts +2 -2
- package/dist/NavItem/NavItem.js +26 -18
- package/dist/NavItem/NestedNavItem.d.ts +20 -2
- package/dist/NavItem/NestedNavItem.js +18 -28
- package/dist/NavItem/index.js +1 -2
- package/dist/NotificationDot/NotificationDot.d.ts +10 -0
- package/dist/NotificationDot/NotificationDot.js +17 -47
- package/dist/NotificationDot/index.js +1 -2
- package/dist/Paginator/Paginator.d.ts +18 -4
- package/dist/Paginator/Paginator.js +77 -147
- package/dist/Paginator/index.js +2 -3
- package/dist/Panel/Panel.d.ts +25 -7
- package/dist/Panel/Panel.js +82 -131
- package/dist/Panel/index.js +1 -2
- package/dist/Popover/Popover.d.ts +80 -12
- package/dist/Popover/Popover.js +101 -226
- package/dist/Popover/index.js +1 -2
- package/dist/ProfileButton/ProfileButton.d.ts +33 -5
- package/dist/ProfileButton/ProfileButton.js +52 -75
- package/dist/ProfileButton/index.js +1 -2
- package/dist/QuizButton/QuizButton.d.ts +25 -1
- package/dist/QuizButton/QuizButton.js +53 -121
- package/dist/QuizButton/index.js +1 -2
- package/dist/SegmentControl/SegmentControl.d.ts +25 -2
- package/dist/SegmentControl/SegmentControl.js +57 -78
- package/dist/SegmentControl/index.d.ts +2 -2
- package/dist/SegmentControl/index.js +2 -3
- package/dist/Services/functions.js +11 -12
- package/dist/SideMenu/SideMenu.js +43 -30
- package/dist/SideMenu/SideMenuBody.d.ts +2 -2
- package/dist/SideMenu/SideMenuBody.js +24 -38
- package/dist/SideMenu/SideMenuFooter.d.ts +2 -2
- package/dist/SideMenu/SideMenuFooter.js +43 -46
- package/dist/SideMenu/SideMenuHeader.d.ts +2 -2
- package/dist/SideMenu/SideMenuHeader.js +46 -42
- package/dist/SideMenu/index.js +2 -3
- package/dist/SideMenu/types.d.ts +3 -3
- package/dist/SideMenu/types.js +1 -2
- package/dist/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/SkipToContent/SkipToContent.js +17 -24
- package/dist/SkipToContent/index.js +1 -2
- package/dist/Switcher/MobileCustomMenuContent.js +26 -37
- package/dist/Switcher/MobileSwitcherMenu.d.ts +1 -1
- package/dist/Switcher/MobileSwitcherMenu.js +21 -55
- package/dist/Switcher/SwitcherMenuItem.d.ts +2 -2
- package/dist/Switcher/SwitcherMenuItem.js +18 -44
- package/dist/Switcher/__tests__/SwitcherMenuItem.js +53 -0
- package/dist/Switcher/index.js +3 -4
- package/dist/Table/Table.js +286 -391
- package/dist/Table/TableBody.js +116 -244
- package/dist/Table/TableFooter.js +41 -94
- package/dist/Table/TableHeaders.js +26 -31
- package/dist/Table/TableStyles.js +40 -48
- package/dist/Table/TableTypes.d.ts +134 -4
- package/dist/Table/TableTypes.js +2 -2
- package/dist/Table/index.js +3 -4
- package/dist/Tabs/HorizontalTabs.d.ts +14 -3
- package/dist/Tabs/HorizontalTabs.js +116 -161
- package/dist/Tabs/TabLink.d.ts +1 -1
- package/dist/Tabs/TabLink.js +76 -117
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tabs/Tabs.js +62 -80
- package/dist/Tabs/VerticalTabs.d.ts +30 -2
- package/dist/Tabs/VerticalTabs.js +13 -46
- package/dist/Tabs/__tests__/TabLink.tests.js +83 -0
- package/dist/Tabs/__tests__/Tablist.tests.js +78 -0
- package/dist/Tabs/index.d.ts +1 -1
- package/dist/Tabs/index.js +3 -4
- package/dist/Tag/Tag.d.ts +5 -2
- package/dist/Tag/Tag.js +41 -49
- package/dist/Tag/index.js +1 -2
- package/dist/Tile/Tile.js +43 -42
- package/dist/Tile/TileBody.js +15 -18
- package/dist/Tile/TileCommonItems.d.ts +2 -2
- package/dist/Tile/TileCommonItems.js +75 -117
- package/dist/Tile/TileFooter.js +19 -28
- package/dist/Tile/TileHeader.js +57 -81
- package/dist/Tile/TileTypes.d.ts +8 -8
- package/dist/Tile/TileTypes.js +1 -2
- package/dist/Tile/index.js +3 -4
- package/dist/Toasters/Toast.d.ts +11 -3
- package/dist/Toasters/Toast.js +166 -241
- package/dist/Toasters/ToastContext.d.ts +2 -2
- package/dist/Toasters/ToastContext.js +69 -145
- package/dist/Toasters/index.js +4 -5
- package/dist/Toggles/ToggleButton.d.ts +5 -0
- package/dist/Toggles/ToggleButton.js +48 -71
- package/dist/Toggles/ToggleSwitch.js +61 -83
- package/dist/Toggles/TogglerStyles.js +13 -12
- package/dist/Toggles/TogglerTypes.d.ts +7 -0
- package/dist/Toggles/TogglerTypes.js +1 -2
- package/dist/Toggles/index.js +3 -4
- package/dist/Tooltips/TooltipOverflow.d.ts +1 -1
- package/dist/Tooltips/TooltipOverflow.js +71 -102
- package/dist/Tooltips/TooltipStyles.d.ts +2 -1
- package/dist/Tooltips/TooltipStyles.js +41 -70
- package/dist/Tooltips/TooltipTypes.d.ts +10 -0
- package/dist/Tooltips/TooltipTypes.js +1 -2
- package/dist/Tooltips/TooltipWrapper.d.ts +2 -2
- package/dist/Tooltips/TooltipWrapper.js +65 -93
- package/dist/Tooltips/index.js +3 -4
- package/dist/assets/index.d.ts +1 -1
- package/dist/assets/index.js +41 -154
- package/dist/common/ActionWithin.js +25 -45
- package/dist/common/ClickOutside.js +20 -23
- package/dist/common/EventHandlers.js +8 -9
- package/dist/common/FocusOutside.js +20 -23
- package/dist/common/FocusVisible.d.ts +1 -1
- package/dist/common/FocusVisible.js +75 -89
- package/dist/common/InputStyling.js +8 -6
- package/dist/common/NavigationHelper.js +18 -24
- package/dist/common/ScrollableContainer.js +22 -25
- package/dist/common/StackState.js +10 -29
- package/dist/common/index.js +6 -7
- package/dist/icons/contenticons/Adaptive.js +31 -37
- package/dist/icons/contenticons/Add.js +31 -37
- package/dist/icons/contenticons/Adult.js +31 -37
- package/dist/icons/contenticons/AedNoShockAdvised.js +31 -37
- package/dist/icons/contenticons/AedPads.js +31 -37
- package/dist/icons/contenticons/AedPadsCorrect.js +31 -37
- package/dist/icons/contenticons/AedPadsError.js +31 -37
- package/dist/icons/contenticons/AedShockAdvised.js +31 -37
- package/dist/icons/contenticons/Ambulance.js +31 -37
- package/dist/icons/contenticons/Assignments.js +31 -37
- package/dist/icons/contenticons/Attention.js +31 -37
- package/dist/icons/contenticons/AutomaticMode.js +31 -37
- package/dist/icons/contenticons/AwardWinningPerson.js +31 -37
- package/dist/icons/contenticons/Biohazard.js +31 -37
- package/dist/icons/contenticons/Bleeding.js +31 -37
- package/dist/icons/contenticons/Book.js +31 -37
- package/dist/icons/contenticons/Buildings.js +31 -37
- package/dist/icons/contenticons/CPRCall.js +31 -37
- package/dist/icons/contenticons/CPRCycles.js +31 -37
- package/dist/icons/contenticons/CPRTraining.js +31 -37
- package/dist/icons/contenticons/Calendar.js +31 -37
- package/dist/icons/contenticons/Call.js +31 -37
- package/dist/icons/contenticons/Certificate.js +31 -37
- package/dist/icons/contenticons/ChestCompressionFraction.js +31 -37
- package/dist/icons/contenticons/Child.js +31 -37
- package/dist/icons/contenticons/Cleaning.js +31 -37
- package/dist/icons/contenticons/ClinicalFindings.js +31 -37
- package/dist/icons/contenticons/Cloud.js +31 -37
- package/dist/icons/contenticons/CloudAttension.js +31 -37
- package/dist/icons/contenticons/CloudChecked.js +31 -37
- package/dist/icons/contenticons/CloudDownload.js +31 -37
- package/dist/icons/contenticons/CloudLocked.js +31 -37
- package/dist/icons/contenticons/CloudNoConnection.js +31 -37
- package/dist/icons/contenticons/CloudSyncing.js +31 -37
- package/dist/icons/contenticons/CloudUpload.js +31 -37
- package/dist/icons/contenticons/Code.js +31 -37
- package/dist/icons/contenticons/CoffeeBreak.js +31 -37
- package/dist/icons/contenticons/Contact.js +31 -37
- package/dist/icons/contenticons/ContactInfo.js +31 -37
- package/dist/icons/contenticons/Cookie.js +31 -37
- package/dist/icons/contenticons/CountAloud.js +31 -37
- package/dist/icons/contenticons/Dashboard.js +31 -37
- package/dist/icons/contenticons/Data.js +31 -37
- package/dist/icons/contenticons/DecisionFlow.js +31 -37
- package/dist/icons/contenticons/Defribilator.js +31 -37
- package/dist/icons/contenticons/DefribilatorMonitor.js +31 -37
- package/dist/icons/contenticons/Depth.js +31 -37
- package/dist/icons/contenticons/Desktop.js +31 -37
- package/dist/icons/contenticons/DeviceChecked.js +31 -37
- package/dist/icons/contenticons/Dispatcher.js +31 -37
- package/dist/icons/contenticons/Doctor.js +31 -37
- package/dist/icons/contenticons/DocumentChecked.js +31 -37
- package/dist/icons/contenticons/Download.js +31 -37
- package/dist/icons/contenticons/ELearning.js +31 -37
- package/dist/icons/contenticons/EMSRescuer.js +31 -37
- package/dist/icons/contenticons/ESimulation.js +31 -37
- package/dist/icons/contenticons/Edit.js +31 -37
- package/dist/icons/contenticons/Educator.js +31 -37
- package/dist/icons/contenticons/Elderly.js +31 -37
- package/dist/icons/contenticons/Embryo.js +31 -37
- package/dist/icons/contenticons/EventLog.js +31 -37
- package/dist/icons/contenticons/Faq.js +31 -37
- package/dist/icons/contenticons/Female.js +31 -37
- package/dist/icons/contenticons/FirstAid.js +31 -37
- package/dist/icons/contenticons/Geriatric.js +31 -37
- package/dist/icons/contenticons/GiftCard.js +31 -37
- package/dist/icons/contenticons/Goals.js +31 -37
- package/dist/icons/contenticons/Grid.js +31 -37
- package/dist/icons/contenticons/GuidedTour.js +31 -37
- package/dist/icons/contenticons/HandPlacement.js +31 -37
- package/dist/icons/contenticons/HandPlacementCorrect.js +31 -37
- package/dist/icons/contenticons/HandPlacementIncorrect.js +31 -37
- package/dist/icons/contenticons/HeadTilt.js +31 -37
- package/dist/icons/contenticons/Heart.js +31 -37
- package/dist/icons/contenticons/HeartPulse.js +31 -37
- package/dist/icons/contenticons/HeartShock.js +31 -37
- package/dist/icons/contenticons/Help.js +31 -37
- package/dist/icons/contenticons/Hierarchy.js +31 -37
- package/dist/icons/contenticons/Hospital.js +31 -37
- package/dist/icons/contenticons/Hospitalized.js +31 -37
- package/dist/icons/contenticons/House.js +31 -37
- package/dist/icons/contenticons/Infant.js +31 -37
- package/dist/icons/contenticons/Information.js +31 -37
- package/dist/icons/contenticons/Injustice.js +31 -37
- package/dist/icons/contenticons/Institute.js +31 -37
- package/dist/icons/contenticons/Justice.js +31 -37
- package/dist/icons/contenticons/Laptop.js +31 -37
- package/dist/icons/contenticons/Leaflet.js +31 -37
- package/dist/icons/contenticons/Learner.js +31 -37
- package/dist/icons/contenticons/Levels.js +31 -37
- package/dist/icons/contenticons/LevelsDecreasing.js +31 -37
- package/dist/icons/contenticons/LevelsIncreasing.js +31 -37
- package/dist/icons/contenticons/LevelsStarred.js +31 -37
- package/dist/icons/contenticons/Maintenance.js +31 -37
- package/dist/icons/contenticons/Male.js +31 -37
- package/dist/icons/contenticons/Manikin.js +31 -37
- package/dist/icons/contenticons/ManikinCorrect.js +31 -37
- package/dist/icons/contenticons/ManikinError.js +31 -37
- package/dist/icons/contenticons/ManualMode.js +31 -37
- package/dist/icons/contenticons/MapPoint.js +31 -37
- package/dist/icons/contenticons/MaskLeak.js +31 -37
- package/dist/icons/contenticons/MedicalHistory.js +31 -37
- package/dist/icons/contenticons/MedicalRecord.js +31 -37
- package/dist/icons/contenticons/Medication.js +31 -37
- package/dist/icons/contenticons/Metronome.js +31 -37
- package/dist/icons/contenticons/MoodHappy.js +31 -37
- package/dist/icons/contenticons/MoodIndifferent.js +31 -37
- package/dist/icons/contenticons/MoodSad.js +31 -37
- package/dist/icons/contenticons/MoodVeryHappy.js +31 -37
- package/dist/icons/contenticons/MoodVerySad.js +31 -37
- package/dist/icons/contenticons/Newborn.js +31 -37
- package/dist/icons/contenticons/NoInterruption.js +31 -37
- package/dist/icons/contenticons/Note.js +31 -37
- package/dist/icons/contenticons/Pain.js +31 -37
- package/dist/icons/contenticons/Patient.js +31 -37
- package/dist/icons/contenticons/PatientAssignment.js +31 -37
- package/dist/icons/contenticons/PatientMonitor.js +31 -37
- package/dist/icons/contenticons/PatientStretcher.js +31 -37
- package/dist/icons/contenticons/PatientTransfer.js +31 -37
- package/dist/icons/contenticons/PatientTreatment.js +31 -37
- package/dist/icons/contenticons/Person.js +31 -37
- package/dist/icons/contenticons/PhysiologicalModel.js +31 -37
- package/dist/icons/contenticons/PieChart.js +31 -37
- package/dist/icons/contenticons/Pill.js +31 -37
- package/dist/icons/contenticons/Pregnant.js +31 -37
- package/dist/icons/contenticons/Print.js +31 -37
- package/dist/icons/contenticons/ProvidersOrders.js +31 -37
- package/dist/icons/contenticons/Pulse.js +31 -37
- package/dist/icons/contenticons/RQICart.js +31 -37
- package/dist/icons/contenticons/Rate.js +31 -37
- package/dist/icons/contenticons/RateTooFast.js +31 -37
- package/dist/icons/contenticons/RateTooSlow.js +31 -37
- package/dist/icons/contenticons/Recoil.js +31 -37
- package/dist/icons/contenticons/Ruler.js +31 -37
- package/dist/icons/contenticons/Screens.js +31 -37
- package/dist/icons/contenticons/Search.js +31 -37
- package/dist/icons/contenticons/Sepsis.js +31 -37
- package/dist/icons/contenticons/Settings.js +31 -37
- package/dist/icons/contenticons/Shock.js +31 -37
- package/dist/icons/contenticons/ShockAdvised.js +31 -37
- package/dist/icons/contenticons/ShockAutomated.js +31 -37
- package/dist/icons/contenticons/ShockNotAdvised.js +31 -37
- package/dist/icons/contenticons/Sleep.js +31 -37
- package/dist/icons/contenticons/Smartphone.js +31 -37
- package/dist/icons/contenticons/Speech.js +31 -37
- package/dist/icons/contenticons/SpeechBubble.js +31 -37
- package/dist/icons/contenticons/SpeechBubbles.js +31 -37
- package/dist/icons/contenticons/Star.js +31 -37
- package/dist/icons/contenticons/Stethoscope.js +31 -37
- package/dist/icons/contenticons/Stock.js +31 -37
- package/dist/icons/contenticons/Stopwatch.js +31 -37
- package/dist/icons/contenticons/Suitcase.js +31 -37
- package/dist/icons/contenticons/SwitchCamera.js +31 -37
- package/dist/icons/contenticons/SwitchRoles.js +31 -37
- package/dist/icons/contenticons/Tablet.js +31 -37
- package/dist/icons/contenticons/Talking.js +31 -37
- package/dist/icons/contenticons/TargetGroup.js +31 -37
- package/dist/icons/contenticons/TaskTrainer.js +31 -37
- package/dist/icons/contenticons/TeamLead.js +31 -37
- package/dist/icons/contenticons/TeamWork.js +31 -37
- package/dist/icons/contenticons/Terms.js +31 -37
- package/dist/icons/contenticons/TimelineReview.js +31 -37
- package/dist/icons/contenticons/Translation.js +31 -37
- package/dist/icons/contenticons/Trophy.js +31 -37
- package/dist/icons/contenticons/Trophy1st.js +31 -37
- package/dist/icons/contenticons/Trophy2nd.js +31 -37
- package/dist/icons/contenticons/Trophy3rd.js +31 -37
- package/dist/icons/contenticons/TrophyStar.js +31 -37
- package/dist/icons/contenticons/Truck.js +31 -37
- package/dist/icons/contenticons/TwoRescuerCPR.js +31 -37
- package/dist/icons/contenticons/USB.js +31 -37
- package/dist/icons/contenticons/Ultrasound.js +31 -37
- package/dist/icons/contenticons/VentilationLungs.js +31 -37
- package/dist/icons/contenticons/VentilationPressure.js +31 -37
- package/dist/icons/contenticons/VentilationVolume.js +31 -37
- package/dist/icons/contenticons/Video.js +31 -37
- package/dist/icons/contenticons/VideoRecording.js +31 -37
- package/dist/icons/contenticons/Visibility.js +31 -37
- package/dist/icons/contenticons/VitalSigns.js +31 -37
- package/dist/icons/contenticons/index.js +179 -180
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +41 -67
- package/dist/icons/systemicons/Accessibility.js +31 -37
- package/dist/icons/systemicons/Add.js +31 -37
- package/dist/icons/systemicons/AddUser.js +31 -37
- package/dist/icons/systemicons/Adult.js +31 -37
- package/dist/icons/systemicons/AedPads.js +31 -37
- package/dist/icons/systemicons/AedPadsCorrect.js +31 -37
- package/dist/icons/systemicons/AedPadsError.js +31 -37
- package/dist/icons/systemicons/Archive.js +31 -37
- package/dist/icons/systemicons/ArrowCollapse.js +31 -37
- package/dist/icons/systemicons/ArrowDropDown.js +31 -37
- package/dist/icons/systemicons/ArrowDropLeft.js +31 -37
- package/dist/icons/systemicons/ArrowDropRight.js +31 -37
- package/dist/icons/systemicons/ArrowDropUp.js +31 -37
- package/dist/icons/systemicons/ArrowExpand.js +31 -37
- package/dist/icons/systemicons/ArrowLineDown.js +31 -37
- package/dist/icons/systemicons/ArrowLineLeft.js +31 -37
- package/dist/icons/systemicons/ArrowLineRight.js +31 -37
- package/dist/icons/systemicons/ArrowLineUp.js +31 -37
- package/dist/icons/systemicons/ArrowStopLeft.js +31 -37
- package/dist/icons/systemicons/ArrowStopRight.js +31 -37
- package/dist/icons/systemicons/Assignments.js +31 -37
- package/dist/icons/systemicons/Asterisk.js +31 -37
- package/dist/icons/systemicons/Attachment.js +31 -37
- package/dist/icons/systemicons/Attention.js +31 -37
- package/dist/icons/systemicons/AudioDescriptionOn.js +31 -37
- package/dist/icons/systemicons/BackwardsFiveSec.js +31 -37
- package/dist/icons/systemicons/Battery0.js +31 -37
- package/dist/icons/systemicons/Battery1.js +31 -37
- package/dist/icons/systemicons/Battery2.js +31 -37
- package/dist/icons/systemicons/Battery3.js +31 -37
- package/dist/icons/systemicons/Battery4.js +31 -37
- package/dist/icons/systemicons/Battery5.js +31 -37
- package/dist/icons/systemicons/Battery6.js +31 -37
- package/dist/icons/systemicons/BatteryFull.js +31 -37
- package/dist/icons/systemicons/Bluetooth.js +31 -37
- package/dist/icons/systemicons/Book.js +31 -37
- package/dist/icons/systemicons/BookmarkAdd.js +31 -37
- package/dist/icons/systemicons/BookmarkCollection.js +31 -37
- package/dist/icons/systemicons/BookmarkOff.js +31 -37
- package/dist/icons/systemicons/BookmarkOn.js +31 -37
- package/dist/icons/systemicons/Bullet.js +31 -37
- package/dist/icons/systemicons/Calendar.js +31 -37
- package/dist/icons/systemicons/CheckMark.js +31 -37
- package/dist/icons/systemicons/CheckboxOff.js +31 -37
- package/dist/icons/systemicons/CheckboxOn.js +31 -37
- package/dist/icons/systemicons/CheckboxSemi.js +31 -37
- package/dist/icons/systemicons/ChevronDown.js +31 -37
- package/dist/icons/systemicons/ChevronLeft.js +31 -37
- package/dist/icons/systemicons/ChevronRight.js +31 -37
- package/dist/icons/systemicons/ChevronUp.js +31 -37
- package/dist/icons/systemicons/Child.js +31 -37
- package/dist/icons/systemicons/Clear.js +31 -37
- package/dist/icons/systemicons/Close.js +31 -37
- package/dist/icons/systemicons/ClosedCaptionOn.js +31 -37
- package/dist/icons/systemicons/Cloud.js +31 -37
- package/dist/icons/systemicons/CloudAttention.js +31 -37
- package/dist/icons/systemicons/CloudCheck.js +31 -37
- package/dist/icons/systemicons/CloudDownload.js +31 -37
- package/dist/icons/systemicons/CloudLocked.js +31 -37
- package/dist/icons/systemicons/CloudNoConnection.js +31 -37
- package/dist/icons/systemicons/CloudSyncing.js +31 -37
- package/dist/icons/systemicons/CloudUpload.js +31 -37
- package/dist/icons/systemicons/CoffeeBreak.js +31 -37
- package/dist/icons/systemicons/Copy.js +31 -37
- package/dist/icons/systemicons/Dashboard.js +31 -37
- package/dist/icons/systemicons/DecisionFlow.js +31 -37
- package/dist/icons/systemicons/Delete.js +31 -37
- package/dist/icons/systemicons/Document.js +31 -39
- package/dist/icons/systemicons/Download.js +31 -37
- package/dist/icons/systemicons/DragHandle.js +31 -37
- package/dist/icons/systemicons/DragIndicator.js +31 -37
- package/dist/icons/systemicons/Edit.js +31 -37
- package/dist/icons/systemicons/Educator.js +31 -37
- package/dist/icons/systemicons/Equals.js +31 -37
- package/dist/icons/systemicons/EventLog.js +31 -37
- package/dist/icons/systemicons/Export.js +31 -37
- package/dist/icons/systemicons/ExportCVS.js +31 -37
- package/dist/icons/systemicons/ExportDoc.js +31 -37
- package/dist/icons/systemicons/ExportEXL.js +31 -37
- package/dist/icons/systemicons/ExportJpg.js +31 -37
- package/dist/icons/systemicons/ExportPDF.js +31 -37
- package/dist/icons/systemicons/ExportPNG.js +31 -37
- package/dist/icons/systemicons/ExtendTextArea.js +31 -37
- package/dist/icons/systemicons/Facebook.js +31 -37
- package/dist/icons/systemicons/Filter.js +31 -37
- package/dist/icons/systemicons/Flickr.js +31 -37
- package/dist/icons/systemicons/Forward.js +31 -37
- package/dist/icons/systemicons/ForwardFiveSec.js +31 -37
- package/dist/icons/systemicons/ForwardSlash.js +31 -37
- package/dist/icons/systemicons/Fullscreen.js +31 -37
- package/dist/icons/systemicons/FullscreenExit.js +31 -37
- package/dist/icons/systemicons/GearSettings.js +31 -37
- package/dist/icons/systemicons/GridView.js +31 -37
- package/dist/icons/systemicons/Group.js +31 -37
- package/dist/icons/systemicons/GuidedTour.js +31 -37
- package/dist/icons/systemicons/HeartShock.js +31 -37
- package/dist/icons/systemicons/Help.js +31 -37
- package/dist/icons/systemicons/Hierarchy.js +31 -37
- package/dist/icons/systemicons/History.js +31 -37
- package/dist/icons/systemicons/Home.js +31 -37
- package/dist/icons/systemicons/Image.js +31 -37
- package/dist/icons/systemicons/Infant.js +31 -37
- package/dist/icons/systemicons/Information.js +31 -37
- package/dist/icons/systemicons/Institute.js +31 -37
- package/dist/icons/systemicons/Keyboard.js +31 -37
- package/dist/icons/systemicons/Language.js +31 -37
- package/dist/icons/systemicons/Learner.js +31 -37
- package/dist/icons/systemicons/Legend.js +31 -37
- package/dist/icons/systemicons/Legend1Circle.js +31 -37
- package/dist/icons/systemicons/Legend2Triangle.js +31 -37
- package/dist/icons/systemicons/Legend3Star.js +31 -37
- package/dist/icons/systemicons/Legend4Square.js +31 -37
- package/dist/icons/systemicons/Legend5Diamond.js +31 -37
- package/dist/icons/systemicons/Legend6Nabla.js +31 -37
- package/dist/icons/systemicons/Legend7Pentagon.js +31 -37
- package/dist/icons/systemicons/Legend8Rectangle.js +31 -37
- package/dist/icons/systemicons/LegendStrokeDashed.js +31 -37
- package/dist/icons/systemicons/LegendStrokeSolid.js +31 -37
- package/dist/icons/systemicons/LikeOff.js +31 -37
- package/dist/icons/systemicons/LikeOn.js +31 -37
- package/dist/icons/systemicons/Link.js +31 -37
- package/dist/icons/systemicons/LinkedIn.js +31 -37
- package/dist/icons/systemicons/ListView.js +31 -37
- package/dist/icons/systemicons/LoadingMedium.js +8 -30
- package/dist/icons/systemicons/LoadingSmall.js +8 -30
- package/dist/icons/systemicons/LockedOff.js +31 -37
- package/dist/icons/systemicons/LockedOn.js +31 -37
- package/dist/icons/systemicons/Login.js +31 -37
- package/dist/icons/systemicons/Logout.js +31 -37
- package/dist/icons/systemicons/Loop.js +31 -37
- package/dist/icons/systemicons/Mail.js +31 -37
- package/dist/icons/systemicons/Manikin.js +31 -37
- package/dist/icons/systemicons/MapPoint.js +31 -37
- package/dist/icons/systemicons/Menu.js +31 -37
- package/dist/icons/systemicons/Metronome.js +31 -37
- package/dist/icons/systemicons/Microphone.js +31 -37
- package/dist/icons/systemicons/Minus.js +31 -37
- package/dist/icons/systemicons/MoreHorizontal.js +31 -37
- package/dist/icons/systemicons/MoreVertical.js +31 -37
- package/dist/icons/systemicons/Notification.js +31 -37
- package/dist/icons/systemicons/NotificationNew.js +31 -37
- package/dist/icons/systemicons/OpenFolder.js +31 -37
- package/dist/icons/systemicons/OpenNewWindow.js +31 -37
- package/dist/icons/systemicons/OverView.js +31 -37
- package/dist/icons/systemicons/Pause.js +31 -37
- package/dist/icons/systemicons/PieChart.js +31 -37
- package/dist/icons/systemicons/Pin.js +31 -37
- package/dist/icons/systemicons/Play.js +31 -37
- package/dist/icons/systemicons/PlayList.js +31 -37
- package/dist/icons/systemicons/PlayOutline.js +31 -37
- package/dist/icons/systemicons/PlaybackSpeed.js +31 -37
- package/dist/icons/systemicons/Plus.js +31 -37
- package/dist/icons/systemicons/PointDown.js +31 -37
- package/dist/icons/systemicons/PointLeft.js +31 -37
- package/dist/icons/systemicons/PointRight.js +31 -37
- package/dist/icons/systemicons/PointUp.js +31 -37
- package/dist/icons/systemicons/Print.js +31 -37
- package/dist/icons/systemicons/RadioButtonOff.js +31 -37
- package/dist/icons/systemicons/RadioButtonOn.js +31 -37
- package/dist/icons/systemicons/Record.js +31 -37
- package/dist/icons/systemicons/Refresh.js +31 -37
- package/dist/icons/systemicons/Replay.js +31 -37
- package/dist/icons/systemicons/Rewind.js +31 -37
- package/dist/icons/systemicons/SUN.js +31 -37
- package/dist/icons/systemicons/Save.js +31 -37
- package/dist/icons/systemicons/Search.js +31 -37
- package/dist/icons/systemicons/SendTo.js +31 -37
- package/dist/icons/systemicons/Share.js +31 -37
- package/dist/icons/systemicons/Shock.js +31 -37
- package/dist/icons/systemicons/ShockAdvised.js +31 -37
- package/dist/icons/systemicons/ShockAutomated.js +31 -37
- package/dist/icons/systemicons/ShockNotAdvised.js +31 -37
- package/dist/icons/systemicons/ShoppingCart.js +31 -37
- package/dist/icons/systemicons/SkipForward.js +31 -37
- package/dist/icons/systemicons/Sort.js +31 -37
- package/dist/icons/systemicons/SpeechBuble.js +31 -37
- package/dist/icons/systemicons/StarFilled.js +31 -37
- package/dist/icons/systemicons/StarOutlined.js +31 -37
- package/dist/icons/systemicons/Stop.js +31 -37
- package/dist/icons/systemicons/Support.js +31 -37
- package/dist/icons/systemicons/SwitchApp.js +31 -37
- package/dist/icons/systemicons/Team.js +31 -37
- package/dist/icons/systemicons/TechnicalWarning.js +31 -37
- package/dist/icons/systemicons/ThumbsDown.js +31 -37
- package/dist/icons/systemicons/ThumbsUp.js +31 -37
- package/dist/icons/systemicons/Time.js +31 -37
- package/dist/icons/systemicons/TimeLimited.js +31 -37
- package/dist/icons/systemicons/Timeline.js +31 -37
- package/dist/icons/systemicons/Tip.js +31 -37
- package/dist/icons/systemicons/Transcript.js +31 -37
- package/dist/icons/systemicons/Translation.js +31 -37
- package/dist/icons/systemicons/Twitter.js +31 -37
- package/dist/icons/systemicons/Upload.js +31 -37
- package/dist/icons/systemicons/Usb.js +31 -37
- package/dist/icons/systemicons/User.js +31 -37
- package/dist/icons/systemicons/Video.js +31 -37
- package/dist/icons/systemicons/VisibleOff.js +31 -37
- package/dist/icons/systemicons/VisibleOn.js +31 -37
- package/dist/icons/systemicons/VolumeDown.js +31 -37
- package/dist/icons/systemicons/VolumeOff.js +31 -37
- package/dist/icons/systemicons/VolumeUp.js +31 -37
- package/dist/icons/systemicons/Youtube.js +31 -37
- package/dist/icons/systemicons/Zoom.js +31 -37
- package/dist/icons/systemicons/ZoomOut.js +31 -37
- package/dist/icons/systemicons/index.js +204 -205
- package/dist/index.d.ts +1 -1
- package/dist/index.js +45 -46
- package/dist/src/Accordion/AccordionItem.js +47 -0
- package/dist/src/Accordion/AccordionMenu.js +66 -0
- package/dist/src/Accordion/ContentAccordion.js +107 -0
- package/dist/src/Accordion/index.js +7 -0
- package/dist/src/Accordion/styles.js +12 -0
- package/dist/src/AuthPage/AuthPage.d.ts +1 -1
- package/dist/src/AuthPage/AuthPage.js +29 -0
- package/dist/src/AuthPage/ScreenSetsContainer.js +9 -0
- package/dist/src/AuthPage/index.js +4 -0
- package/dist/src/Banners/Banner.d.ts +2 -2
- package/dist/src/Banners/Banner.js +112 -0
- package/dist/src/Banners/OverviewBanner.d.ts +1 -1
- package/dist/src/Banners/OverviewBanner.js +39 -0
- package/dist/src/Banners/index.js +4 -0
- package/dist/src/Banners/styles.js +55 -0
- package/dist/src/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/src/Breadcrumb/Breadcrumb.js +67 -0
- package/dist/src/Breadcrumb/BreadcrumbItem.js +1 -0
- package/dist/src/Breadcrumb/index.js +4 -0
- package/dist/src/Breadcrumb/styles.js +24 -0
- package/dist/src/Button/BackButton.js +45 -0
- package/dist/src/Button/Button.js +87 -0
- package/dist/src/Button/DualFunctionButton.js +71 -0
- package/dist/src/Button/Iconbutton.js +70 -0
- package/dist/src/Button/index.js +8 -0
- package/dist/src/Card/HorizontalCard/HorizontalCard.js +55 -0
- package/dist/src/Card/HorizontalCard/HorizontalCardActions.d.ts +1 -1
- package/dist/src/Card/HorizontalCard/HorizontalCardActions.js +39 -0
- package/dist/src/Card/HorizontalCard/HorizontalCardBody.d.ts +1 -1
- package/dist/src/Card/HorizontalCard/HorizontalCardBody.js +23 -0
- package/dist/src/Card/HorizontalCard/HorizontalCardThumbnail.d.ts +1 -1
- package/dist/src/Card/HorizontalCard/HorizontalCardThumbnail.js +21 -0
- package/dist/src/Card/HorizontalCard/index.js +4 -0
- package/dist/src/Card/HorizontalCard/types.d.ts +5 -5
- package/dist/src/Card/HorizontalCard/types.js +1 -0
- package/dist/src/Card/VerticalCard/Card.js +61 -0
- package/dist/src/Card/VerticalCard/CardBottomSection.js +45 -0
- package/dist/src/Card/VerticalCard/CardMiddleSection.js +32 -0
- package/dist/src/Card/VerticalCard/CardTopSection.js +33 -0
- package/dist/src/Card/VerticalCard/index.js +7 -0
- package/dist/src/Card/index.js +2 -0
- package/dist/src/Chips/ActionChip.js +45 -0
- package/dist/src/Chips/ChipStyles.js +16 -0
- package/dist/src/Chips/ChipTypes.d.ts +1 -1
- package/dist/src/Chips/ChipTypes.js +1 -0
- package/dist/src/Chips/ChoiceChips.js +70 -0
- package/dist/src/Chips/FilterChip.js +49 -0
- package/dist/src/Chips/InputChip.js +71 -0
- package/dist/src/Chips/index.js +6 -0
- package/dist/src/ChipsInput/ChipDropdownInput.js +230 -0
- package/dist/src/ChipsInput/ChipInput.js +99 -0
- package/dist/src/ChipsInput/ChipInputField.js +114 -0
- package/dist/src/ChipsInput/ChipInputTypes.js +1 -0
- package/dist/src/ChipsInput/index.js +2 -0
- package/dist/src/Dropdown/BasicDropdown.d.ts +3 -3
- package/dist/src/Dropdown/BasicDropdown.js +153 -0
- package/dist/src/Dropdown/CommonStyling.js +24 -0
- package/dist/src/Dropdown/DropdownButton.js +107 -0
- package/dist/src/Dropdown/DropdownButtonTypes.d.ts +3 -3
- package/dist/src/Dropdown/DropdownButtonTypes.js +1 -0
- package/dist/src/Dropdown/DropdownContent.js +339 -0
- package/dist/src/Dropdown/DropdownFilter.js +161 -0
- package/dist/src/Dropdown/index.js +8 -0
- package/dist/src/Footer/Components/FooterBottomLinks.js +20 -0
- package/dist/src/Footer/Components/FooterDropdownLinks.js +25 -0
- package/dist/src/Footer/Components/FooterNavSection.js +32 -0
- package/dist/src/Footer/Components/FooterNewsletterAndSocialSection.js +42 -0
- package/dist/src/Footer/Components/FooterTop.js +34 -0
- package/dist/src/Footer/Footer.js +17 -0
- package/dist/src/Footer/SiteFooter.js +57 -0
- package/dist/src/Footer/index.js +2 -0
- package/dist/src/GlobalNavigationBar/GlobalNavigationBar.d.ts +1 -1
- package/dist/src/GlobalNavigationBar/GlobalNavigationBar.js +93 -0
- package/dist/src/GlobalNavigationBar/Logo.d.ts +1 -1
- package/dist/src/GlobalNavigationBar/Logo.js +33 -0
- package/dist/src/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.js +299 -0
- package/dist/src/GlobalNavigationBar/__tests__/Logo.tests.js +26 -0
- package/dist/src/GlobalNavigationBar/desktop/DesktopActions.js +88 -0
- package/dist/src/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +1 -1
- package/dist/src/GlobalNavigationBar/desktop/ExtendedMainMenu.js +42 -0
- package/dist/src/GlobalNavigationBar/desktop/MainMenu.d.ts +1 -1
- package/dist/src/GlobalNavigationBar/desktop/MainMenu.js +175 -0
- package/dist/src/GlobalNavigationBar/desktop/RightSideNav.d.ts +1 -1
- package/dist/src/GlobalNavigationBar/desktop/RightSideNav.js +46 -0
- package/dist/src/GlobalNavigationBar/desktop/SubMenu.d.ts +1 -1
- package/dist/src/GlobalNavigationBar/desktop/SubMenu.js +131 -0
- package/dist/src/GlobalNavigationBar/desktop/UserMenu.js +90 -0
- package/dist/src/GlobalNavigationBar/index.js +3 -0
- package/dist/src/GlobalNavigationBar/mobile/CommonStyles.js +28 -0
- package/dist/src/GlobalNavigationBar/mobile/MobileActionContainer.js +18 -0
- package/dist/src/GlobalNavigationBar/mobile/MobileMenu.d.ts +1 -1
- package/dist/src/GlobalNavigationBar/mobile/MobileMenu.js +94 -0
- package/dist/src/GlobalNavigationBar/mobile/MobileMenuContent.js +89 -0
- package/dist/src/GlobalNavigationBar/mobile/MobileMenuHeader.js +108 -0
- package/dist/src/GlobalNavigationBar/types.d.ts +8 -8
- package/dist/src/GlobalNavigationBar/types.js +1 -0
- package/dist/src/GlobalNavigationBar/utils.js +7 -0
- package/dist/src/HyperLink/HyperLink.js +36 -0
- package/dist/src/HyperLink/index.js +3 -0
- package/dist/src/HyperLink/styling.js +9 -0
- package/dist/src/Image/ImageWithFallbacks.d.ts +1 -1
- package/dist/src/Image/ImageWithFallbacks.js +87 -0
- package/dist/src/Image/index.js +2 -0
- package/dist/src/InputFields/Checkbox.js +65 -0
- package/dist/src/InputFields/DatepickerField.d.ts +1 -1
- package/dist/src/InputFields/DatepickerField.js +237 -0
- package/dist/src/InputFields/DatepickerFieldHeader.js +45 -0
- package/dist/src/InputFields/Label.d.ts +1 -1
- package/dist/src/InputFields/Label.js +83 -0
- package/dist/src/InputFields/NumberField.js +194 -0
- package/dist/src/InputFields/PasswordField.d.ts +1 -1
- package/dist/src/InputFields/PasswordField.js +60 -0
- package/dist/src/InputFields/QuickSearch.d.ts +1 -1
- package/dist/src/InputFields/QuickSearch.js +92 -0
- package/dist/src/InputFields/RadioButton.d.ts +1 -1
- package/dist/src/InputFields/RadioButton.js +54 -0
- package/dist/src/InputFields/ResponsiveComponentWrapper.d.ts +1 -1
- package/dist/src/InputFields/ResponsiveComponentWrapper.js +24 -0
- package/dist/src/InputFields/RichTextField.js +83 -0
- package/dist/src/InputFields/SearchBar.d.ts +1 -1
- package/dist/src/InputFields/SearchBar.js +63 -0
- package/dist/src/InputFields/TextField.d.ts +1 -1
- package/dist/src/InputFields/TextField.js +51 -0
- package/dist/src/InputFields/Textarea.js +65 -0
- package/dist/src/InputFields/components/SearchBarInput.d.ts +1 -1
- package/dist/src/InputFields/components/SearchBarInput.js +26 -0
- package/dist/src/InputFields/components/SearchField.js +44 -0
- package/dist/src/InputFields/index.js +13 -0
- package/dist/src/InputFields/styling.js +33 -0
- package/dist/src/InputFields/types.d.ts +2 -2
- package/dist/src/InputFields/types.js +2 -0
- package/dist/src/Layouts/index.js +25 -0
- package/dist/src/LinearProgress/LinearProgress.js +78 -0
- package/dist/src/LinearProgress/index.js +3 -0
- package/dist/src/List/ListRow.js +83 -0
- package/dist/src/List/__tests__/ListRow.tests.js +51 -0
- package/dist/src/List/index.js +2 -0
- package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/src/LoadingIndicator/LoadingIndicator.js +26 -0
- package/dist/src/LoadingIndicator/index.js +1 -0
- package/dist/src/LoadingPage/GlobalLoadingPage.js +26 -0
- package/dist/src/LoadingPage/index.js +1 -0
- package/dist/src/MenuItem/MenuItem.d.ts +1 -1
- package/dist/src/MenuItem/MenuItem.js +60 -0
- package/dist/src/MenuItem/index.js +1 -0
- package/dist/src/MiniProductCard/MiniProductCard.d.ts +1 -1
- package/dist/src/MiniProductCard/MiniProductCard.js +30 -0
- package/dist/src/MiniProductCard/index.js +1 -0
- package/dist/src/Modals/Modal.d.ts +1 -1
- package/dist/src/Modals/Modal.js +38 -0
- package/dist/src/Modals/ModalContainer.d.ts +2 -2
- package/dist/src/Modals/ModalContainer.js +130 -0
- package/dist/src/Modals/ModalContent.js +159 -0
- package/dist/src/Modals/ModalDialog.js +166 -0
- package/dist/src/Modals/ModalNote.js +27 -0
- package/dist/src/Modals/ModalStyles.js +55 -0
- package/dist/src/Modals/ModalTypes.d.ts +2 -2
- package/dist/src/Modals/ModalTypes.js +1 -0
- package/dist/src/Modals/index.js +6 -0
- package/dist/src/NavItem/NavItem.d.ts +1 -1
- package/dist/src/NavItem/NavItem.js +26 -0
- package/dist/src/NavItem/NestedNavItem.js +18 -0
- package/dist/src/NavItem/index.js +1 -0
- package/dist/src/NotificationDot/NotificationDot.js +17 -0
- package/dist/src/NotificationDot/index.js +1 -0
- package/dist/src/Paginator/Paginator.js +77 -0
- package/dist/src/Paginator/index.js +2 -0
- package/dist/src/Panel/Panel.d.ts +1 -1
- package/dist/src/Panel/Panel.js +82 -0
- package/dist/src/Panel/index.js +1 -0
- package/dist/src/Popover/Popover.js +101 -0
- package/dist/src/Popover/index.js +1 -0
- package/dist/src/ProfileButton/ProfileButton.d.ts +2 -2
- package/dist/src/ProfileButton/ProfileButton.js +52 -0
- package/dist/src/ProfileButton/index.js +1 -0
- package/dist/src/QuizButton/QuizButton.d.ts +1 -1
- package/dist/src/QuizButton/QuizButton.js +53 -0
- package/dist/src/QuizButton/index.js +1 -0
- package/dist/src/SegmentControl/SegmentControl.js +57 -0
- package/dist/src/SegmentControl/index.js +2 -0
- package/dist/src/Services/functions.js +11 -0
- package/dist/src/SideMenu/SideMenu.js +43 -0
- package/dist/src/SideMenu/SideMenuBody.js +24 -0
- package/dist/src/SideMenu/SideMenuFooter.js +43 -0
- package/dist/src/SideMenu/SideMenuHeader.js +46 -0
- package/dist/src/SideMenu/index.js +2 -0
- package/dist/src/SideMenu/types.d.ts +3 -3
- package/dist/src/SideMenu/types.js +1 -0
- package/dist/src/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/src/SkipToContent/SkipToContent.js +17 -0
- package/dist/src/SkipToContent/index.js +1 -0
- package/dist/src/Switcher/MobileCustomMenuContent.js +26 -0
- package/dist/src/Switcher/MobileSwitcherMenu.js +21 -0
- package/dist/src/Switcher/SwitcherMenuItem.js +18 -0
- package/dist/src/Switcher/__tests__/SwitcherMenuItem.js +53 -0
- package/dist/src/Switcher/index.js +3 -0
- package/dist/src/Table/Table.js +292 -0
- package/dist/src/Table/TableBody.js +116 -0
- package/dist/src/Table/TableFooter.js +41 -0
- package/dist/src/Table/TableHeaders.js +26 -0
- package/dist/src/Table/TableStyles.js +46 -0
- package/dist/src/Table/TableTypes.d.ts +4 -4
- package/dist/src/Table/TableTypes.js +2 -0
- package/dist/src/Table/index.js +3 -0
- package/dist/src/Tabs/HorizontalTabs.js +122 -0
- package/dist/src/Tabs/TabLink.js +76 -0
- package/dist/src/Tabs/Tabs.d.ts +1 -1
- package/dist/src/Tabs/Tabs.js +62 -0
- package/dist/src/Tabs/VerticalTabs.js +13 -0
- package/dist/src/Tabs/__tests__/TabLink.tests.js +83 -0
- package/dist/src/Tabs/__tests__/Tablist.tests.js +78 -0
- package/dist/src/Tabs/index.js +3 -0
- package/dist/src/Tag/Tag.d.ts +2 -2
- package/dist/src/Tag/Tag.js +41 -0
- package/dist/src/Tag/index.js +1 -0
- package/dist/src/Tile/Tile.js +43 -0
- package/dist/src/Tile/TileBody.js +15 -0
- package/dist/src/Tile/TileCommonItems.js +75 -0
- package/dist/src/Tile/TileFooter.js +19 -0
- package/dist/src/Tile/TileHeader.js +57 -0
- package/dist/src/Tile/TileTypes.d.ts +8 -8
- package/dist/src/Tile/TileTypes.js +1 -0
- package/dist/src/Tile/index.js +3 -0
- package/dist/src/Toasters/Toast.d.ts +2 -2
- package/dist/src/Toasters/Toast.js +166 -0
- package/dist/src/Toasters/ToastContext.d.ts +2 -2
- package/dist/src/Toasters/ToastContext.js +69 -0
- package/dist/src/Toasters/index.js +4 -0
- package/dist/src/Toggles/ToggleButton.js +48 -0
- package/dist/src/Toggles/ToggleSwitch.js +65 -0
- package/dist/src/Toggles/TogglerStyles.js +17 -0
- package/dist/src/Toggles/TogglerTypes.js +1 -0
- package/dist/src/Toggles/index.js +3 -0
- package/dist/src/Tooltips/TooltipOverflow.js +71 -0
- package/dist/src/Tooltips/TooltipStyles.d.ts +1 -1
- package/dist/src/Tooltips/TooltipStyles.js +41 -0
- package/dist/src/Tooltips/TooltipTypes.js +1 -0
- package/dist/src/Tooltips/TooltipWrapper.js +65 -0
- package/dist/src/Tooltips/index.js +3 -0
- package/dist/src/assets/index.d.ts +1 -1
- package/dist/src/assets/index.js +41 -0
- package/dist/src/common/ActionWithin.js +25 -0
- package/dist/src/common/ClickOutside.js +20 -0
- package/dist/src/common/EventHandlers.js +8 -0
- package/dist/src/common/FocusOutside.js +20 -0
- package/dist/src/common/FocusVisible.d.ts +1 -1
- package/dist/src/common/FocusVisible.js +75 -0
- package/dist/src/common/InputStyling.js +8 -0
- package/dist/src/common/NavigationHelper.js +18 -0
- package/dist/src/common/ScrollableContainer.js +22 -0
- package/dist/src/common/StackState.js +10 -0
- package/dist/src/common/index.js +6 -0
- package/dist/src/icons/contenticons/Adaptive.js +31 -0
- package/dist/src/icons/contenticons/Add.js +31 -0
- package/dist/src/icons/contenticons/Adult.js +31 -0
- package/dist/src/icons/contenticons/AedNoShockAdvised.js +31 -0
- package/dist/src/icons/contenticons/AedPads.js +31 -0
- package/dist/src/icons/contenticons/AedPadsCorrect.js +31 -0
- package/dist/src/icons/contenticons/AedPadsError.js +31 -0
- package/dist/src/icons/contenticons/AedShockAdvised.js +31 -0
- package/dist/src/icons/contenticons/Ambulance.js +31 -0
- package/dist/src/icons/contenticons/Assignments.js +31 -0
- package/dist/src/icons/contenticons/Attention.js +31 -0
- package/dist/src/icons/contenticons/AutomaticMode.js +31 -0
- package/dist/src/icons/contenticons/AwardWinningPerson.js +31 -0
- package/dist/src/icons/contenticons/Biohazard.js +31 -0
- package/dist/src/icons/contenticons/Bleeding.js +31 -0
- package/dist/src/icons/contenticons/Book.js +31 -0
- package/dist/src/icons/contenticons/Buildings.js +31 -0
- package/dist/src/icons/contenticons/CPRCall.js +31 -0
- package/dist/src/icons/contenticons/CPRCycles.js +31 -0
- package/dist/src/icons/contenticons/CPRTraining.js +31 -0
- package/dist/src/icons/contenticons/Calendar.js +31 -0
- package/dist/src/icons/contenticons/Call.js +31 -0
- package/dist/src/icons/contenticons/Certificate.js +31 -0
- package/dist/src/icons/contenticons/ChestCompressionFraction.js +31 -0
- package/dist/src/icons/contenticons/Child.js +31 -0
- package/dist/src/icons/contenticons/Cleaning.js +31 -0
- package/dist/src/icons/contenticons/ClinicalFindings.js +31 -0
- package/dist/src/icons/contenticons/Cloud.js +31 -0
- package/dist/src/icons/contenticons/CloudAttension.js +31 -0
- package/dist/src/icons/contenticons/CloudChecked.js +31 -0
- package/dist/src/icons/contenticons/CloudDownload.js +31 -0
- package/dist/src/icons/contenticons/CloudLocked.js +31 -0
- package/dist/src/icons/contenticons/CloudNoConnection.js +31 -0
- package/dist/src/icons/contenticons/CloudSyncing.js +31 -0
- package/dist/src/icons/contenticons/CloudUpload.js +31 -0
- package/dist/src/icons/contenticons/Code.js +31 -0
- package/dist/src/icons/contenticons/CoffeeBreak.js +31 -0
- package/dist/src/icons/contenticons/Contact.js +31 -0
- package/dist/src/icons/contenticons/ContactInfo.js +31 -0
- package/dist/src/icons/contenticons/Cookie.js +31 -0
- package/dist/src/icons/contenticons/CountAloud.js +31 -0
- package/dist/src/icons/contenticons/Dashboard.js +31 -0
- package/dist/src/icons/contenticons/Data.js +31 -0
- package/dist/src/icons/contenticons/DecisionFlow.js +31 -0
- package/dist/src/icons/contenticons/Defribilator.js +31 -0
- package/dist/src/icons/contenticons/DefribilatorMonitor.js +31 -0
- package/dist/src/icons/contenticons/Depth.js +31 -0
- package/dist/src/icons/contenticons/Desktop.js +31 -0
- package/dist/src/icons/contenticons/DeviceChecked.js +31 -0
- package/dist/src/icons/contenticons/Dispatcher.js +31 -0
- package/dist/src/icons/contenticons/Doctor.js +31 -0
- package/dist/src/icons/contenticons/DocumentChecked.js +31 -0
- package/dist/src/icons/contenticons/Download.js +31 -0
- package/dist/src/icons/contenticons/ELearning.js +31 -0
- package/dist/src/icons/contenticons/EMSRescuer.js +31 -0
- package/dist/src/icons/contenticons/ESimulation.js +31 -0
- package/dist/src/icons/contenticons/Edit.js +31 -0
- package/dist/src/icons/contenticons/Educator.js +31 -0
- package/dist/src/icons/contenticons/Elderly.js +31 -0
- package/dist/src/icons/contenticons/Embryo.js +31 -0
- package/dist/src/icons/contenticons/EventLog.js +31 -0
- package/dist/src/icons/contenticons/Faq.js +31 -0
- package/dist/src/icons/contenticons/Female.js +31 -0
- package/dist/src/icons/contenticons/FirstAid.js +31 -0
- package/dist/src/icons/contenticons/Geriatric.js +31 -0
- package/dist/src/icons/contenticons/GiftCard.js +31 -0
- package/dist/src/icons/contenticons/Goals.js +31 -0
- package/dist/src/icons/contenticons/Grid.js +31 -0
- package/dist/src/icons/contenticons/GuidedTour.js +31 -0
- package/dist/src/icons/contenticons/HandPlacement.js +31 -0
- package/dist/src/icons/contenticons/HandPlacementCorrect.js +31 -0
- package/dist/src/icons/contenticons/HandPlacementIncorrect.js +31 -0
- package/dist/src/icons/contenticons/HeadTilt.js +31 -0
- package/dist/src/icons/contenticons/Heart.js +31 -0
- package/dist/src/icons/contenticons/HeartPulse.js +31 -0
- package/dist/src/icons/contenticons/HeartShock.js +31 -0
- package/dist/src/icons/contenticons/Help.js +31 -0
- package/dist/src/icons/contenticons/Hierarchy.js +31 -0
- package/dist/src/icons/contenticons/Hospital.js +31 -0
- package/dist/src/icons/contenticons/Hospitalized.js +31 -0
- package/dist/src/icons/contenticons/House.js +31 -0
- package/dist/src/icons/contenticons/Infant.js +31 -0
- package/dist/src/icons/contenticons/Information.js +31 -0
- package/dist/src/icons/contenticons/Injustice.js +31 -0
- package/dist/src/icons/contenticons/Institute.js +31 -0
- package/dist/src/icons/contenticons/Justice.js +31 -0
- package/dist/src/icons/contenticons/Laptop.js +31 -0
- package/dist/src/icons/contenticons/Leaflet.js +31 -0
- package/dist/src/icons/contenticons/Learner.js +31 -0
- package/dist/src/icons/contenticons/Levels.js +31 -0
- package/dist/src/icons/contenticons/LevelsDecreasing.js +31 -0
- package/dist/src/icons/contenticons/LevelsIncreasing.js +31 -0
- package/dist/src/icons/contenticons/LevelsStarred.js +31 -0
- package/dist/src/icons/contenticons/Maintenance.js +31 -0
- package/dist/src/icons/contenticons/Male.js +31 -0
- package/dist/src/icons/contenticons/Manikin.js +31 -0
- package/dist/src/icons/contenticons/ManikinCorrect.js +31 -0
- package/dist/src/icons/contenticons/ManikinError.js +31 -0
- package/dist/src/icons/contenticons/ManualMode.js +31 -0
- package/dist/src/icons/contenticons/MapPoint.js +31 -0
- package/dist/src/icons/contenticons/MaskLeak.js +31 -0
- package/dist/src/icons/contenticons/MedicalHistory.js +31 -0
- package/dist/src/icons/contenticons/MedicalRecord.js +31 -0
- package/dist/src/icons/contenticons/Medication.js +31 -0
- package/dist/src/icons/contenticons/Metronome.js +31 -0
- package/dist/src/icons/contenticons/MoodHappy.js +31 -0
- package/dist/src/icons/contenticons/MoodIndifferent.js +31 -0
- package/dist/src/icons/contenticons/MoodSad.js +31 -0
- package/dist/src/icons/contenticons/MoodVeryHappy.js +31 -0
- package/dist/src/icons/contenticons/MoodVerySad.js +31 -0
- package/dist/src/icons/contenticons/Newborn.js +31 -0
- package/dist/src/icons/contenticons/NoInterruption.js +31 -0
- package/dist/src/icons/contenticons/Note.js +31 -0
- package/dist/src/icons/contenticons/Pain.js +31 -0
- package/dist/src/icons/contenticons/Patient.js +31 -0
- package/dist/src/icons/contenticons/PatientAssignment.js +31 -0
- package/dist/src/icons/contenticons/PatientMonitor.js +31 -0
- package/dist/src/icons/contenticons/PatientStretcher.js +31 -0
- package/dist/src/icons/contenticons/PatientTransfer.js +31 -0
- package/dist/src/icons/contenticons/PatientTreatment.js +31 -0
- package/dist/src/icons/contenticons/Person.js +31 -0
- package/dist/src/icons/contenticons/PhysiologicalModel.js +31 -0
- package/dist/src/icons/contenticons/PieChart.js +31 -0
- package/dist/src/icons/contenticons/Pill.js +31 -0
- package/dist/src/icons/contenticons/Pregnant.js +31 -0
- package/dist/src/icons/contenticons/Print.js +31 -0
- package/dist/src/icons/contenticons/ProvidersOrders.js +31 -0
- package/dist/src/icons/contenticons/Pulse.js +31 -0
- package/dist/src/icons/contenticons/RQICart.js +31 -0
- package/dist/src/icons/contenticons/Rate.js +31 -0
- package/dist/src/icons/contenticons/RateTooFast.js +31 -0
- package/dist/src/icons/contenticons/RateTooSlow.js +31 -0
- package/dist/src/icons/contenticons/Recoil.js +31 -0
- package/dist/src/icons/contenticons/Ruler.js +31 -0
- package/dist/src/icons/contenticons/Screens.js +31 -0
- package/dist/src/icons/contenticons/Search.js +31 -0
- package/dist/src/icons/contenticons/Sepsis.js +31 -0
- package/dist/src/icons/contenticons/Settings.js +31 -0
- package/dist/src/icons/contenticons/Shock.js +31 -0
- package/dist/src/icons/contenticons/ShockAdvised.js +31 -0
- package/dist/src/icons/contenticons/ShockAutomated.js +31 -0
- package/dist/src/icons/contenticons/ShockNotAdvised.js +31 -0
- package/dist/src/icons/contenticons/Sleep.js +31 -0
- package/dist/src/icons/contenticons/Smartphone.js +31 -0
- package/dist/src/icons/contenticons/Speech.js +31 -0
- package/dist/src/icons/contenticons/SpeechBubble.js +31 -0
- package/dist/src/icons/contenticons/SpeechBubbles.js +31 -0
- package/dist/src/icons/contenticons/Star.js +31 -0
- package/dist/src/icons/contenticons/Stethoscope.js +31 -0
- package/dist/src/icons/contenticons/Stock.js +31 -0
- package/dist/src/icons/contenticons/Stopwatch.js +31 -0
- package/dist/src/icons/contenticons/Suitcase.js +31 -0
- package/dist/src/icons/contenticons/SwitchCamera.js +31 -0
- package/dist/src/icons/contenticons/SwitchRoles.js +31 -0
- package/dist/src/icons/contenticons/Tablet.js +31 -0
- package/dist/src/icons/contenticons/Talking.js +31 -0
- package/dist/src/icons/contenticons/TargetGroup.js +31 -0
- package/dist/src/icons/contenticons/TaskTrainer.js +31 -0
- package/dist/src/icons/contenticons/TeamLead.js +31 -0
- package/dist/src/icons/contenticons/TeamWork.js +31 -0
- package/dist/src/icons/contenticons/Terms.js +31 -0
- package/dist/src/icons/contenticons/TimelineReview.js +31 -0
- package/dist/src/icons/contenticons/Translation.js +31 -0
- package/dist/src/icons/contenticons/Trophy.js +31 -0
- package/dist/src/icons/contenticons/Trophy1st.js +31 -0
- package/dist/src/icons/contenticons/Trophy2nd.js +31 -0
- package/dist/src/icons/contenticons/Trophy3rd.js +31 -0
- package/dist/src/icons/contenticons/TrophyStar.js +31 -0
- package/dist/src/icons/contenticons/Truck.js +31 -0
- package/dist/src/icons/contenticons/TwoRescuerCPR.js +31 -0
- package/dist/src/icons/contenticons/USB.js +31 -0
- package/dist/src/icons/contenticons/Ultrasound.js +31 -0
- package/dist/src/icons/contenticons/VentilationLungs.js +31 -0
- package/dist/src/icons/contenticons/VentilationPressure.js +31 -0
- package/dist/src/icons/contenticons/VentilationVolume.js +31 -0
- package/dist/src/icons/contenticons/Video.js +31 -0
- package/dist/src/icons/contenticons/VideoRecording.js +31 -0
- package/dist/src/icons/contenticons/Visibility.js +31 -0
- package/dist/src/icons/contenticons/VitalSigns.js +31 -0
- package/dist/src/icons/contenticons/index.js +179 -0
- package/dist/src/icons/index.d.ts +1 -1
- package/dist/src/icons/index.js +45 -0
- package/dist/src/icons/systemicons/Accessibility.js +31 -0
- package/dist/src/icons/systemicons/Add.js +31 -0
- package/dist/src/icons/systemicons/AddUser.js +31 -0
- package/dist/src/icons/systemicons/Adult.js +31 -0
- package/dist/src/icons/systemicons/AedPads.js +31 -0
- package/dist/src/icons/systemicons/AedPadsCorrect.js +31 -0
- package/dist/src/icons/systemicons/AedPadsError.js +31 -0
- package/dist/src/icons/systemicons/Archive.js +31 -0
- package/dist/src/icons/systemicons/ArrowCollapse.js +31 -0
- package/dist/src/icons/systemicons/ArrowDropDown.js +31 -0
- package/dist/src/icons/systemicons/ArrowDropLeft.js +31 -0
- package/dist/src/icons/systemicons/ArrowDropRight.js +31 -0
- package/dist/src/icons/systemicons/ArrowDropUp.js +31 -0
- package/dist/src/icons/systemicons/ArrowExpand.js +31 -0
- package/dist/src/icons/systemicons/ArrowLineDown.js +31 -0
- package/dist/src/icons/systemicons/ArrowLineLeft.js +31 -0
- package/dist/src/icons/systemicons/ArrowLineRight.js +31 -0
- package/dist/src/icons/systemicons/ArrowLineUp.js +31 -0
- package/dist/src/icons/systemicons/ArrowStopLeft.js +31 -0
- package/dist/src/icons/systemicons/ArrowStopRight.js +31 -0
- package/dist/src/icons/systemicons/Assignments.js +31 -0
- package/dist/src/icons/systemicons/Asterisk.js +31 -0
- package/dist/src/icons/systemicons/Attachment.js +31 -0
- package/dist/src/icons/systemicons/Attention.js +31 -0
- package/dist/src/icons/systemicons/AudioDescriptionOn.js +31 -0
- package/dist/src/icons/systemicons/BackwardsFiveSec.js +31 -0
- package/dist/src/icons/systemicons/Battery0.js +31 -0
- package/dist/src/icons/systemicons/Battery1.js +31 -0
- package/dist/src/icons/systemicons/Battery2.js +31 -0
- package/dist/src/icons/systemicons/Battery3.js +31 -0
- package/dist/src/icons/systemicons/Battery4.js +31 -0
- package/dist/src/icons/systemicons/Battery5.js +31 -0
- package/dist/src/icons/systemicons/Battery6.js +31 -0
- package/dist/src/icons/systemicons/BatteryFull.js +31 -0
- package/dist/src/icons/systemicons/Bluetooth.js +31 -0
- package/dist/src/icons/systemicons/Book.js +31 -0
- package/dist/src/icons/systemicons/BookmarkAdd.js +31 -0
- package/dist/src/icons/systemicons/BookmarkCollection.js +31 -0
- package/dist/src/icons/systemicons/BookmarkOff.js +31 -0
- package/dist/src/icons/systemicons/BookmarkOn.js +31 -0
- package/dist/src/icons/systemicons/Bullet.js +31 -0
- package/dist/src/icons/systemicons/Calendar.js +31 -0
- package/dist/src/icons/systemicons/CheckMark.js +31 -0
- package/dist/src/icons/systemicons/CheckboxOff.js +31 -0
- package/dist/src/icons/systemicons/CheckboxOn.js +31 -0
- package/dist/src/icons/systemicons/CheckboxSemi.js +31 -0
- package/dist/src/icons/systemicons/ChevronDown.js +31 -0
- package/dist/src/icons/systemicons/ChevronLeft.js +31 -0
- package/dist/src/icons/systemicons/ChevronRight.js +31 -0
- package/dist/src/icons/systemicons/ChevronUp.js +31 -0
- package/dist/src/icons/systemicons/Child.js +31 -0
- package/dist/src/icons/systemicons/Clear.js +31 -0
- package/dist/src/icons/systemicons/Close.js +31 -0
- package/dist/src/icons/systemicons/ClosedCaptionOn.js +31 -0
- package/dist/src/icons/systemicons/Cloud.js +31 -0
- package/dist/src/icons/systemicons/CloudAttention.js +31 -0
- package/dist/src/icons/systemicons/CloudCheck.js +31 -0
- package/dist/src/icons/systemicons/CloudDownload.js +31 -0
- package/dist/src/icons/systemicons/CloudLocked.js +31 -0
- package/dist/src/icons/systemicons/CloudNoConnection.js +31 -0
- package/dist/src/icons/systemicons/CloudSyncing.js +31 -0
- package/dist/src/icons/systemicons/CloudUpload.js +31 -0
- package/dist/src/icons/systemicons/CoffeeBreak.js +31 -0
- package/dist/src/icons/systemicons/Copy.js +31 -0
- package/dist/src/icons/systemicons/Dashboard.js +31 -0
- package/dist/src/icons/systemicons/DecisionFlow.js +31 -0
- package/dist/src/icons/systemicons/Delete.js +31 -0
- package/dist/src/icons/systemicons/Document.js +31 -0
- package/dist/src/icons/systemicons/Download.js +31 -0
- package/dist/src/icons/systemicons/DragHandle.js +31 -0
- package/dist/src/icons/systemicons/DragIndicator.js +31 -0
- package/dist/src/icons/systemicons/Edit.js +31 -0
- package/dist/src/icons/systemicons/Educator.js +31 -0
- package/dist/src/icons/systemicons/Equals.js +31 -0
- package/dist/src/icons/systemicons/EventLog.js +31 -0
- package/dist/src/icons/systemicons/Export.js +31 -0
- package/dist/src/icons/systemicons/ExportCVS.js +31 -0
- package/dist/src/icons/systemicons/ExportDoc.js +31 -0
- package/dist/src/icons/systemicons/ExportEXL.js +31 -0
- package/dist/src/icons/systemicons/ExportJpg.js +31 -0
- package/dist/src/icons/systemicons/ExportPDF.js +31 -0
- package/dist/src/icons/systemicons/ExportPNG.js +31 -0
- package/dist/src/icons/systemicons/ExtendTextArea.js +31 -0
- package/dist/src/icons/systemicons/Facebook.js +31 -0
- package/dist/src/icons/systemicons/Filter.js +31 -0
- package/dist/src/icons/systemicons/Flickr.js +31 -0
- package/dist/src/icons/systemicons/Forward.js +31 -0
- package/dist/src/icons/systemicons/ForwardFiveSec.js +31 -0
- package/dist/src/icons/systemicons/ForwardSlash.js +31 -0
- package/dist/src/icons/systemicons/Fullscreen.js +31 -0
- package/dist/src/icons/systemicons/FullscreenExit.js +31 -0
- package/dist/src/icons/systemicons/GearSettings.js +31 -0
- package/dist/src/icons/systemicons/GridView.js +31 -0
- package/dist/src/icons/systemicons/Group.js +31 -0
- package/dist/src/icons/systemicons/GuidedTour.js +31 -0
- package/dist/src/icons/systemicons/HeartShock.js +31 -0
- package/dist/src/icons/systemicons/Help.js +31 -0
- package/dist/src/icons/systemicons/Hierarchy.js +31 -0
- package/dist/src/icons/systemicons/History.js +31 -0
- package/dist/src/icons/systemicons/Home.js +31 -0
- package/dist/src/icons/systemicons/Image.js +31 -0
- package/dist/src/icons/systemicons/Infant.js +31 -0
- package/dist/src/icons/systemicons/Information.js +31 -0
- package/dist/src/icons/systemicons/Institute.js +31 -0
- package/dist/src/icons/systemicons/Keyboard.js +31 -0
- package/dist/src/icons/systemicons/Language.js +31 -0
- package/dist/src/icons/systemicons/Learner.js +31 -0
- package/dist/src/icons/systemicons/Legend.js +31 -0
- package/dist/src/icons/systemicons/Legend1Circle.js +31 -0
- package/dist/src/icons/systemicons/Legend2Triangle.js +31 -0
- package/dist/src/icons/systemicons/Legend3Star.js +31 -0
- package/dist/src/icons/systemicons/Legend4Square.js +31 -0
- package/dist/src/icons/systemicons/Legend5Diamond.js +31 -0
- package/dist/src/icons/systemicons/Legend6Nabla.js +31 -0
- package/dist/src/icons/systemicons/Legend7Pentagon.js +31 -0
- package/dist/src/icons/systemicons/Legend8Rectangle.js +31 -0
- package/dist/src/icons/systemicons/LegendStrokeDashed.js +31 -0
- package/dist/src/icons/systemicons/LegendStrokeSolid.js +31 -0
- package/dist/src/icons/systemicons/LikeOff.js +31 -0
- package/dist/src/icons/systemicons/LikeOn.js +31 -0
- package/dist/src/icons/systemicons/Link.js +31 -0
- package/dist/src/icons/systemicons/LinkedIn.js +31 -0
- package/dist/src/icons/systemicons/ListView.js +31 -0
- package/dist/src/icons/systemicons/LoadingMedium.js +8 -0
- package/dist/src/icons/systemicons/LoadingSmall.js +8 -0
- package/dist/src/icons/systemicons/LockedOff.js +31 -0
- package/dist/src/icons/systemicons/LockedOn.js +31 -0
- package/dist/src/icons/systemicons/Login.js +31 -0
- package/dist/src/icons/systemicons/Logout.js +31 -0
- package/dist/src/icons/systemicons/Loop.js +31 -0
- package/dist/src/icons/systemicons/Mail.js +31 -0
- package/dist/src/icons/systemicons/Manikin.js +31 -0
- package/dist/src/icons/systemicons/MapPoint.js +31 -0
- package/dist/src/icons/systemicons/Menu.js +31 -0
- package/dist/src/icons/systemicons/Metronome.js +31 -0
- package/dist/src/icons/systemicons/Microphone.js +31 -0
- package/dist/src/icons/systemicons/Minus.js +31 -0
- package/dist/src/icons/systemicons/MoreHorizontal.js +31 -0
- package/dist/src/icons/systemicons/MoreVertical.js +31 -0
- package/dist/src/icons/systemicons/Notification.js +31 -0
- package/dist/src/icons/systemicons/NotificationNew.js +31 -0
- package/dist/src/icons/systemicons/OpenFolder.js +31 -0
- package/dist/src/icons/systemicons/OpenNewWindow.js +31 -0
- package/dist/src/icons/systemicons/OverView.js +31 -0
- package/dist/src/icons/systemicons/Pause.js +31 -0
- package/dist/src/icons/systemicons/PieChart.js +31 -0
- package/dist/src/icons/systemicons/Pin.js +31 -0
- package/dist/src/icons/systemicons/Play.js +31 -0
- package/dist/src/icons/systemicons/PlayList.js +31 -0
- package/dist/src/icons/systemicons/PlayOutline.js +31 -0
- package/dist/src/icons/systemicons/PlaybackSpeed.js +31 -0
- package/dist/src/icons/systemicons/Plus.js +31 -0
- package/dist/src/icons/systemicons/PointDown.js +31 -0
- package/dist/src/icons/systemicons/PointLeft.js +31 -0
- package/dist/src/icons/systemicons/PointRight.js +31 -0
- package/dist/src/icons/systemicons/PointUp.js +31 -0
- package/dist/src/icons/systemicons/Print.js +31 -0
- package/dist/src/icons/systemicons/RadioButtonOff.js +31 -0
- package/dist/src/icons/systemicons/RadioButtonOn.js +31 -0
- package/dist/src/icons/systemicons/Record.js +31 -0
- package/dist/src/icons/systemicons/Refresh.js +31 -0
- package/dist/src/icons/systemicons/Replay.js +31 -0
- package/dist/src/icons/systemicons/Rewind.js +31 -0
- package/dist/src/icons/systemicons/SUN.js +31 -0
- package/dist/src/icons/systemicons/Save.js +31 -0
- package/dist/src/icons/systemicons/Search.js +31 -0
- package/dist/src/icons/systemicons/SendTo.js +31 -0
- package/dist/src/icons/systemicons/Share.js +31 -0
- package/dist/src/icons/systemicons/Shock.js +31 -0
- package/dist/src/icons/systemicons/ShockAdvised.js +31 -0
- package/dist/src/icons/systemicons/ShockAutomated.js +31 -0
- package/dist/src/icons/systemicons/ShockNotAdvised.js +31 -0
- package/dist/src/icons/systemicons/ShoppingCart.js +31 -0
- package/dist/src/icons/systemicons/SkipForward.js +31 -0
- package/dist/src/icons/systemicons/Sort.js +31 -0
- package/dist/src/icons/systemicons/SpeechBuble.js +31 -0
- package/dist/src/icons/systemicons/StarFilled.js +31 -0
- package/dist/src/icons/systemicons/StarOutlined.js +31 -0
- package/dist/src/icons/systemicons/Stop.js +31 -0
- package/dist/src/icons/systemicons/Support.js +31 -0
- package/dist/src/icons/systemicons/SwitchApp.js +31 -0
- package/dist/src/icons/systemicons/Team.js +31 -0
- package/dist/src/icons/systemicons/TechnicalWarning.js +31 -0
- package/dist/src/icons/systemicons/ThumbsDown.js +31 -0
- package/dist/src/icons/systemicons/ThumbsUp.js +31 -0
- package/dist/src/icons/systemicons/Time.js +31 -0
- package/dist/src/icons/systemicons/TimeLimited.js +31 -0
- package/dist/src/icons/systemicons/Timeline.js +31 -0
- package/dist/src/icons/systemicons/Tip.js +31 -0
- package/dist/src/icons/systemicons/Transcript.js +31 -0
- package/dist/src/icons/systemicons/Translation.js +31 -0
- package/dist/src/icons/systemicons/Twitter.js +31 -0
- package/dist/src/icons/systemicons/Upload.js +31 -0
- package/dist/src/icons/systemicons/Usb.js +31 -0
- package/dist/src/icons/systemicons/User.js +31 -0
- package/dist/src/icons/systemicons/Video.js +31 -0
- package/dist/src/icons/systemicons/VisibleOff.js +31 -0
- package/dist/src/icons/systemicons/VisibleOn.js +31 -0
- package/dist/src/icons/systemicons/VolumeDown.js +31 -0
- package/dist/src/icons/systemicons/VolumeOff.js +31 -0
- package/dist/src/icons/systemicons/VolumeUp.js +31 -0
- package/dist/src/icons/systemicons/Youtube.js +31 -0
- package/dist/src/icons/systemicons/Zoom.js +31 -0
- package/dist/src/icons/systemicons/ZoomOut.js +31 -0
- package/dist/src/icons/systemicons/index.js +204 -0
- package/dist/src/index.js +45 -0
- package/dist/src/styles/breakpoints.js +6 -0
- package/dist/src/styles/colors.d.ts +0 -1
- package/dist/src/styles/colors.js +89 -0
- package/dist/src/styles/focus-styles.js +9 -0
- package/dist/src/styles/global.js +13 -0
- package/dist/src/styles/index.d.ts +3 -2
- package/dist/src/styles/index.js +20 -0
- package/dist/src/styles/overwritecolors.d.ts +2 -0
- package/dist/src/styles/overwritecolors.js +12 -0
- package/dist/src/styles/shadowstyles.js +7 -0
- package/dist/src/styles/typography.d.ts +1 -1
- package/dist/src/styles/typography.js +130 -0
- package/dist/src/styles/z-indexes.js +16 -0
- package/dist/src/types.js +51 -0
- package/dist/src/utils/utils.js +3 -0
- package/dist/stories/Accordion/AccordionMenu.stories.d.ts +1 -1
- package/dist/stories/Accordion/AccordionMenu.stories.js +153 -0
- package/dist/stories/Accordion/ContentAccordion.stories.d.ts +1 -1
- package/dist/stories/Accordion/ContentAccordion.stories.js +234 -0
- package/dist/stories/AuthPage.stories.js +88 -0
- package/dist/stories/Banner.stories.d.ts +1 -1
- package/dist/stories/Banner.stories.js +107 -0
- package/dist/stories/Breadcrumb.stories.d.ts +1 -1
- package/dist/stories/Breadcrumb.stories.js +151 -0
- package/dist/stories/Button/BackButton.stories.d.ts +1 -1
- package/dist/stories/Button/BackButton.stories.js +32 -0
- package/dist/stories/Button/Button.stories.d.ts +1 -1
- package/dist/stories/Button/Button.stories.js +499 -0
- package/dist/stories/Button/DualFunctionButton.stories.d.ts +1 -1
- package/dist/stories/Button/DualFunctionButton.stories.js +374 -0
- package/dist/stories/Button/IconButton.stories.d.ts +1 -1
- package/dist/stories/Button/IconButton.stories.js +81 -0
- package/dist/stories/Card/Card.stories.d.ts +1 -1
- package/dist/stories/Card/Card.stories.js +710 -0
- package/dist/stories/Card/HorizontalCard.stories.d.ts +1 -1
- package/dist/stories/Card/HorizontalCard.stories.js +116 -0
- package/dist/stories/Chip/ActionChip.stories.d.ts +1 -1
- package/dist/stories/Chip/ActionChip.stories.js +69 -0
- package/dist/stories/Chip/ChoiceChip.stories.d.ts +1 -1
- package/dist/stories/Chip/ChoiceChip.stories.js +43 -0
- package/dist/stories/Chip/FilterChip.stories.d.ts +1 -1
- package/dist/stories/Chip/FilterChip.stories.js +68 -0
- package/dist/stories/Chip/InputChip.stories.d.ts +1 -1
- package/dist/stories/Chip/InputChip.stories.js +94 -0
- package/dist/stories/Dropdown/BasicDropdown.stories.d.ts +1 -1
- package/dist/stories/Dropdown/BasicDropdown.stories.js +122 -0
- package/dist/stories/Dropdown/ButtonDropdown.stories.d.ts +1 -1
- package/dist/stories/Dropdown/ButtonDropdown.stories.js +165 -0
- package/dist/stories/Dropdown/DropdownFilter.stories.d.ts +1 -1
- package/dist/stories/Dropdown/DropdownFilter.stories.js +81 -0
- package/dist/stories/Footer.stories.js +95 -0
- package/dist/stories/GlobalLoadingPage.stories.js +10 -0
- package/dist/stories/GlobalNavigationBar.stories.js +477 -0
- package/dist/stories/HorizontalTabs.stories.d.ts +1 -1
- package/dist/stories/HorizontalTabs.stories.js +161 -0
- package/dist/stories/Icon.stories.js +86 -0
- package/dist/stories/InputFields/CheckboxDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/CheckboxDemo.stories.js +63 -0
- package/dist/stories/InputFields/ChipInputField.stories.d.ts +1 -1
- package/dist/stories/InputFields/ChipInputField.stories.js +195 -0
- package/dist/stories/InputFields/DatepickerDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/DatepickerDemo.stories.js +54 -0
- package/dist/stories/InputFields/FormDemo.stories.js +47 -0
- package/dist/stories/InputFields/NumberFieldDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/NumberFieldDemo.stories.js +147 -0
- package/dist/stories/InputFields/PasswordDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/PasswordDemo.stories.js +52 -0
- package/dist/stories/InputFields/QuickSearchDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/QuickSearchDemo.stories.js +78 -0
- package/dist/stories/InputFields/RadioButtonDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/RadioButtonDemo.stories.js +52 -0
- package/dist/stories/InputFields/RichTextFieldDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/RichTextFieldDemo.stories.js +74 -0
- package/dist/stories/InputFields/SearchBarDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/SearchBarDemo.stories.js +108 -0
- package/dist/stories/InputFields/TextFieldDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/TextFieldDemo.stories.js +113 -0
- package/dist/stories/InputFields/TextareaDemo.stories.d.ts +1 -1
- package/dist/stories/InputFields/TextareaDemo.stories.js +80 -0
- package/dist/stories/Layout.stories.js +15 -0
- package/dist/stories/LinearProgress.stories.d.ts +1 -1
- package/dist/stories/LinearProgress.stories.js +69 -0
- package/dist/stories/List.stories.d.ts +1 -1
- package/dist/stories/List.stories.js +290 -0
- package/dist/stories/LoadingIndicator.stories.d.ts +1 -1
- package/dist/stories/LoadingIndicator.stories.js +24 -0
- package/dist/stories/MenuItem.stories.d.ts +1 -1
- package/dist/stories/MenuItem.stories.js +101 -0
- package/dist/stories/ModalContent.stories.js +468 -0
- package/dist/stories/ModalDialog.stories.js +862 -0
- package/dist/stories/NavItem.stories.d.ts +1 -1
- package/dist/stories/NavItem.stories.js +18 -0
- package/dist/stories/Notification.stories.d.ts +1 -1
- package/dist/stories/Notification.stories.js +30 -0
- package/dist/stories/Paginator.stories.d.ts +1 -1
- package/dist/stories/Paginator.stories.js +27 -0
- package/dist/stories/Popover.stories.js +836 -0
- package/dist/stories/ProfileButton.stories.d.ts +1 -1
- package/dist/stories/ProfileButton.stories.js +56 -0
- package/dist/stories/QuizButton.stories.d.ts +1 -1
- package/dist/stories/QuizButton.stories.js +128 -0
- package/dist/stories/Scrollbar.stories.js +70 -0
- package/dist/stories/SegmentControl.stories.d.ts +1 -1
- package/dist/stories/SegmentControl.stories.js +89 -0
- package/dist/stories/ShadowStyles.stories.js +24 -0
- package/dist/stories/SideMenu.stories.js +149 -0
- package/dist/stories/Switcher.stories.js +17 -0
- package/dist/stories/Tables.stories.js +436 -0
- package/dist/stories/Tabs.stories.js +92 -0
- package/dist/stories/Tag.stories.d.ts +1 -1
- package/dist/stories/Tag.stories.js +52 -0
- package/dist/stories/Tile.stories.d.ts +1 -1
- package/dist/stories/Tile.stories.js +1618 -0
- package/dist/stories/Toast.stories.d.ts +1 -1
- package/dist/stories/Toast.stories.js +294 -0
- package/dist/stories/ToggleButton.stories.d.ts +1 -1
- package/dist/stories/ToggleButton.stories.js +74 -0
- package/dist/stories/ToggleSwitch.stories.d.ts +1 -1
- package/dist/stories/ToggleSwitch.stories.js +94 -0
- package/dist/stories/Tooltip.stories.d.ts +1 -1
- package/dist/stories/Tooltip.stories.js +88 -0
- package/dist/stories/Typography.stories.js +130 -0
- package/dist/stories/color.stories.js +272 -0
- package/dist/styles/breakpoints.js +6 -7
- package/dist/styles/colors.cjs +1 -11
- package/dist/styles/colors.cjs.map +1 -1
- package/dist/styles/colors.js +89 -119
- package/dist/styles/colors.js.map +1 -1
- package/dist/styles/focus-styles.js +9 -7
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/global.js +13 -25
- package/dist/styles/index.cjs +9 -11
- package/dist/styles/index.cjs.map +1 -1
- package/dist/styles/index.d.ts +2 -1
- package/dist/styles/index.js +20 -17
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/overwritecolors.cjs +20 -0
- package/dist/styles/overwritecolors.cjs.map +1 -0
- package/dist/styles/overwritecolors.d.ts +2 -0
- package/dist/styles/overwritecolors.js +12 -0
- package/dist/styles/overwritecolors.js.map +1 -0
- package/dist/styles/shadowstyles.js +7 -8
- package/dist/styles/typography.d.ts +1 -1
- package/dist/styles/typography.js +130 -279
- package/dist/styles/z-indexes.js +16 -17
- package/dist/types.js +51 -52
- package/dist/utils/utils.js +3 -4
- package/package.json +1 -1
|
@@ -1,605 +1,339 @@
|
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
}, function (props) {
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
return props.
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
}, function (props) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
var
|
|
81
|
-
var
|
|
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
|
-
if (
|
|
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
|
-
|
|
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
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
6
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
7
|
+
if (ar || !(i in from)) {
|
|
8
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
9
|
+
ar[i] = from[i];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
13
|
+
};
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import styled from 'styled-components';
|
|
16
|
+
import Button from '../Button/Button';
|
|
17
|
+
import { Size } from '../types';
|
|
18
|
+
import { DropdownContentButtonStyling } from './CommonStyling';
|
|
19
|
+
import { ComponentLStyling, ComponentXLStyling, ComponentMStyling, ComponentSStyling, ComponentTextStyle } from '../styles/typography';
|
|
20
|
+
import { COLORS, scrollBarStyling } from '../styles';
|
|
21
|
+
import { Checkbox, RadioButton } from '../InputFields';
|
|
22
|
+
import { Z_INDEXES } from '../styles/z-indexes';
|
|
23
|
+
import MenuItem from '../MenuItem/MenuItem';
|
|
24
|
+
var MAX_MENU_HEIGHT = 240;
|
|
25
|
+
var AVG_OPTION_HEIGHT = 48;
|
|
26
|
+
var OFFSET_BEFORE_SHOW = 1000000;
|
|
27
|
+
export var DropdownContentContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\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"], ["\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) { return (props.isButton ? '-4px' : '4px 0px'); }, function (props) { return "transform: translate(".concat(props.offsetLeft, ", ").concat(props.offsetTop, ");"); }, OFFSET_BEFORE_SHOW, OFFSET_BEFORE_SHOW, function (props) { return (props.isButton ? DropdownContentButtonStyling : ''); }, COLORS.neutral_100, function (props) { return (props.size == Size.Large ? '320px' : props.size == Size.Medium ? '280px' : '240px'); }, function (props) { return (props.size == Size.Large ? '10px' : props.size == Size.Medium ? '8px' : '6px'); }, function (props) { return (!props.scrollable ? 'auto' : props.maxHeight ? props.maxHeight : props.size == Size.Large ? '320px' : props.size == Size.Medium ? '280px' : '240px'); });
|
|
28
|
+
export var DropdownContentItemsContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n > *:hover {\n z-index: ", ";\n }\n\n > *:active,\n > *.active {\n z-index: ", ";\n }\n\n > *:focus {\n z-index: ", ";\n }\n"], ["\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);
|
|
29
|
+
export var DropdownContentListContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\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"], ["\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) { return (props.scrollable ? 'overflow-y: scroll;' : ''); }, function (props) { return (props.scrollable ? 'margin-right: 6px;' : ''); }, function (props) { return (props.scrollable ? 'padding-right: 6px;' : ''); }, function (props) { return (props.itemsType != 'normal' ? 'margin-left: 4px;' : ''); }, DropdownContentItemsContainer, function (props) { return (props.size == Size.Large ? '8px' : props.size == Size.Medium ? '4px' : '0px'); }, function (props) { return (props.size == Size.Large ? '8px' : props.size == Size.Medium ? '4px' : '0px'); }, scrollBarStyling(Size.Small));
|
|
30
|
+
var DropdownContentMenuContentContainer = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\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"], ["\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) { return props.size == Size.Large && ComponentXLStyling(ComponentTextStyle.Bold, COLORS.neutral_500); }, function (props) { return props.size == Size.Medium && ComponentLStyling(ComponentTextStyle.Bold, COLORS.neutral_500); }, function (props) { return (props.size == Size.Small || !props.size) && ComponentMStyling(ComponentTextStyle.Bold, COLORS.neutral_500); }, function (props) { return (props.size == Size.Small || !props.size ? '10px 16px 6px' : props.size == Size.Medium ? '16px 24px 8px' : '16px 32px 8px'); }, function (props) { return props.size == Size.Large && ComponentLStyling(ComponentTextStyle.Regular, COLORS.neutral_500); }, function (props) { return props.size == Size.Medium && ComponentMStyling(ComponentTextStyle.Regular, COLORS.neutral_500); }, function (props) { return (props.size == Size.Small || !props.size) && ComponentSStyling(ComponentTextStyle.Regular, COLORS.neutral_500); }, function (props) { return (props.size == Size.Small || !props.size ? '8px 16px' : props.size == Size.Medium ? '12px 24px' : '16px 32px'); });
|
|
31
|
+
var DividerContainer = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n\n margin-top: ", ";\n\n div.divider {\n width: 100%;\n margin: 0px;\n }\n"], ["\n position: relative;\n\n margin-top: ", ";\n\n div.divider {\n width: 100%;\n margin: 0px;\n }\n"])), function (props) { return (props.size == Size.Large ? '16px' : props.size == Size.Medium ? '12px' : props.size == Size.Small || !props.size ? '8px' : '6px'); });
|
|
32
|
+
var DropdownContentTopItemContainer = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-bottom-style: solid;\n border-bottom-color: ", ";\n border-bottom-width: 1px;\n margin-right: 22px;\n"], ["\n border-bottom-style: solid;\n border-bottom-color: ", ";\n border-bottom-width: 1px;\n margin-right: 22px;\n"])), COLORS.neutral_200);
|
|
33
|
+
var DropdownContentActionButtonContainer = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", "\n ", "\n\n padding: ", ";\n\n button {\n width: 100%;\n }\n"], ["\n ", "\n ", "\n\n padding: ", ";\n\n button {\n width: 100%;\n }\n"])), function (props) { return (props.scrollable ? "border-top: 1px solid ".concat(COLORS.neutral_200, ";") : ''); }, function (props) { return (props.scrollable ? 'margin-top: 4px;' : ''); }, function (props) { return (props.size === Size.Small || !props.size ? '4px 16px 0px' : props.size === Size.Medium ? '12px 16px 8px' : '16px 16px 12px'); });
|
|
34
|
+
var Overlay = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: ", ";\n"], ["\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);
|
|
35
|
+
var DropdownContent = React.forwardRef(function (_a, ref) {
|
|
36
|
+
var _b, _c;
|
|
37
|
+
var id = _a.id, customizationProps = _a.customizationProps, alignLeft = _a.alignLeft, isButton = _a.isButton, size = _a.size, isOpen = _a.isOpen, width = _a.width, setIsOpen = _a.setIsOpen, filter = _a.filter, focused = _a.focused, setFocused = _a.setFocused, selectedValues = _a.selectedValues, setSelectedValues = _a.setSelectedValues, messageOnNoResults = _a.messageOnNoResults, outline = _a.outline, containerRef = _a.containerRef, onActiveDescendantChanged = _a.onActiveDescendantChanged, _d = _a.ariaRolesType, ariaRolesType = _d === void 0 ? 'menu' : _d;
|
|
38
|
+
var _e = React.useState(false), isUp = _e[0], setIsUp = _e[1];
|
|
39
|
+
var _f = React.useState(false), locationDefined = _f[0], setLocationDefined = _f[1];
|
|
40
|
+
var _g = React.useState({ top: '0', left: '0' }), offset = _g[0], setOffset = _g[1];
|
|
41
|
+
var dropdownContentRef = (_b = ref) !== null && _b !== void 0 ? _b : React.useRef(null);
|
|
42
|
+
if (!customizationProps.itemsType)
|
|
43
|
+
customizationProps.itemsType = 'normal';
|
|
44
|
+
if (!size)
|
|
45
|
+
size = Size.Small;
|
|
46
|
+
var itemsListRef = React.useRef(null);
|
|
47
|
+
var actionButtonRef = React.useRef(null);
|
|
48
|
+
var determineDropUp = function () {
|
|
49
|
+
var options = customizationProps.items;
|
|
50
|
+
var rect = containerRef.current.getBoundingClientRect();
|
|
51
|
+
var windowHeight = window.innerHeight;
|
|
52
|
+
var menuHeight = Math.min(MAX_MENU_HEIGHT, options.length * AVG_OPTION_HEIGHT);
|
|
53
|
+
var instOffsetWithMenu = rect.top + rect.height + menuHeight;
|
|
54
|
+
var up = instOffsetWithMenu >= windowHeight;
|
|
55
|
+
setOffset({
|
|
56
|
+
top: up ? "calc(-100% - ".concat(rect.height, "px ").concat(isButton ? '' : '- 8px', ")") : '0',
|
|
57
|
+
left: alignLeft ? "calc(-".concat(rect.width, "px)") : "calc(-100%)",
|
|
58
|
+
});
|
|
59
|
+
setIsUp(up);
|
|
60
|
+
setLocationDefined(true);
|
|
61
|
+
};
|
|
62
|
+
var setNewFocusedElement = function (index) {
|
|
63
|
+
var _a, _b, _c, _d;
|
|
64
|
+
if (outline)
|
|
65
|
+
(_a = dropdownContentRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
66
|
+
var newFocusedElement = elRefs[index];
|
|
67
|
+
if (onActiveDescendantChanged)
|
|
68
|
+
onActiveDescendantChanged(index == 0 ? "".concat(id, "_topitem") : "".concat(id, "_").concat(index));
|
|
69
|
+
var oldFocusedElement = focused || focused === 0 ? elRefs[focused] : null;
|
|
70
|
+
if (newFocusedElement && newFocusedElement !== oldFocusedElement) {
|
|
71
|
+
setFocused(index);
|
|
72
|
+
(_b = oldFocusedElement === null || oldFocusedElement === void 0 ? void 0 : oldFocusedElement.current) === null || _b === void 0 ? void 0 : _b.classList.remove('dropdown-hover');
|
|
73
|
+
(_c = newFocusedElement.current) === null || _c === void 0 ? void 0 : _c.classList.add('dropdown-hover');
|
|
74
|
+
(_d = newFocusedElement.current) === null || _d === void 0 ? void 0 : _d.scrollIntoView({
|
|
75
|
+
block: 'nearest',
|
|
76
|
+
inline: 'nearest',
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var getFilteredItems = function () {
|
|
81
|
+
var filtrationString = (filter !== null && filter !== void 0 ? filter : '').toUpperCase();
|
|
82
|
+
return customizationProps.items.filter(function (x) { var _a, _b; return ((_a = x === null || x === void 0 ? void 0 : x.value) === null || _a === void 0 ? void 0 : _a.toUpperCase().includes(filtrationString)) || ((_b = x === null || x === void 0 ? void 0 : x.displayLabel) === null || _b === void 0 ? void 0 : _b.toUpperCase().includes(filtrationString)); });
|
|
83
|
+
};
|
|
84
|
+
var findNextActiveIndex = function (index, direction, items) {
|
|
85
|
+
var _a;
|
|
86
|
+
for (var i = index + direction; i > 0 && i <= items.length; i += direction) {
|
|
87
|
+
if (!((_a = items[i - 1]) === null || _a === void 0 ? void 0 : _a.disabled)) {
|
|
88
|
+
return i;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return index;
|
|
92
|
+
};
|
|
93
|
+
var handleKeyDown = function (e) {
|
|
94
|
+
var _a;
|
|
95
|
+
if (isOpen) {
|
|
96
|
+
if (e.key === 'ArrowUp' || e.key === 'Up') {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
var focusedNow = focused || focused === 0 ? focused : arrLength + 1;
|
|
99
|
+
if (!!focusedNow) {
|
|
100
|
+
focusedNow = focusedNow === 1 && haveTopItem() ? 0 : findNextActiveIndex(focusedNow, -1, getFilteredItems());
|
|
101
|
+
setNewFocusedElement(focusedNow);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
else if (e.key === 'ArrowDown' || e.key === 'Down') {
|
|
105
|
+
e.preventDefault();
|
|
106
|
+
var focusedNow = focused;
|
|
107
|
+
focusedNow = !!focusedNow || focusedNow === 0 ? findNextActiveIndex(focusedNow, 1, getFilteredItems()) : haveTopItem() ? 0 : 1;
|
|
108
|
+
setNewFocusedElement(focusedNow);
|
|
109
|
+
}
|
|
110
|
+
else if (e.key === 'Escape' || e.key === 'Esc') {
|
|
111
|
+
setIsOpen(false);
|
|
112
|
+
setFocused(null);
|
|
113
|
+
if (onActiveDescendantChanged)
|
|
114
|
+
onActiveDescendantChanged(undefined);
|
|
115
|
+
}
|
|
116
|
+
else if ((e.key === 'Enter' || e.key === ' ') && focused !== null && e.target !== (actionButtonRef === null || actionButtonRef === void 0 ? void 0 : actionButtonRef.current)) {
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
var focusedElement = elRefs[focused];
|
|
119
|
+
if (focusedElement) {
|
|
120
|
+
(_a = focusedElement.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
121
|
+
}
|
|
122
|
+
if (onActiveDescendantChanged)
|
|
123
|
+
onActiveDescendantChanged(undefined);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
React.useEffect(function () {
|
|
128
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
129
|
+
return function () {
|
|
130
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
131
|
+
};
|
|
132
|
+
}, []);
|
|
133
|
+
var scrollPosition = React.useRef(0);
|
|
134
|
+
var handleScroll = function () {
|
|
135
|
+
var _a;
|
|
136
|
+
scrollPosition.current = (_a = itemsListRef.current) === null || _a === void 0 ? void 0 : _a.scrollTop;
|
|
137
|
+
};
|
|
138
|
+
React.useLayoutEffect(function () {
|
|
139
|
+
var _a;
|
|
140
|
+
if (itemsListRef.current)
|
|
141
|
+
itemsListRef.current.scrollTop = (_a = scrollPosition.current) !== null && _a !== void 0 ? _a : 0;
|
|
142
|
+
}, [selectedValues]);
|
|
143
|
+
var getCorrectRef = function (ref) {
|
|
144
|
+
switch (customizationProps.itemsType) {
|
|
145
|
+
case 'normal':
|
|
146
|
+
return ref || React.createRef();
|
|
147
|
+
default:
|
|
148
|
+
return ref || React.createRef();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
var arrLength = getFilteredItems().length;
|
|
152
|
+
var _h = React.useState([]), elRefs = _h[0], setElRefs = _h[1];
|
|
153
|
+
React.useEffect(function () {
|
|
154
|
+
if ((elRefs === null || elRefs === void 0 ? void 0 : elRefs.length) !== arrLength) {
|
|
155
|
+
setFocused(null);
|
|
156
|
+
}
|
|
157
|
+
setElRefs(function (elRefs) {
|
|
158
|
+
return Array(arrLength + 1)
|
|
159
|
+
.fill(null)
|
|
160
|
+
.map(function (_, i) { return getCorrectRef(elRefs[i]); });
|
|
161
|
+
});
|
|
162
|
+
}, [isOpen, arrLength]);
|
|
163
|
+
React.useLayoutEffect(function () {
|
|
164
|
+
isOpen && !locationDefined && determineDropUp();
|
|
165
|
+
}, [isOpen, locationDefined]);
|
|
166
|
+
var haveTopItem = function () {
|
|
167
|
+
var _a;
|
|
168
|
+
if (!customizationProps.pinTopItem)
|
|
169
|
+
return false;
|
|
170
|
+
if (customizationProps.itemsType === 'radio' && selectedValues && (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0)
|
|
171
|
+
return true;
|
|
172
|
+
else if (customizationProps.itemsType === 'checkbox' && (customizationProps.multiSelect || (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0))
|
|
173
|
+
return true;
|
|
174
|
+
else if (customizationProps.itemsType === 'normal' && ((_a = getSuggestions()) === null || _a === void 0 ? void 0 : _a.length) > 0)
|
|
175
|
+
return true;
|
|
176
|
+
return false;
|
|
177
|
+
};
|
|
178
|
+
var getSuggestions = function () {
|
|
179
|
+
return getFilteredItems().filter(function (x) { return x.suggestion; });
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* when dropdown opens set correct position of focused item
|
|
183
|
+
* */
|
|
184
|
+
React.useLayoutEffect(function () {
|
|
185
|
+
if (isOpen && (focused || focused === 0)) {
|
|
186
|
+
setNewFocusedElement(focused === 0 && !haveTopItem() ? 1 : focused);
|
|
187
|
+
}
|
|
188
|
+
}, [isOpen, focused]);
|
|
189
|
+
/**
|
|
190
|
+
* Reset dropdown content state on close
|
|
191
|
+
* */
|
|
192
|
+
React.useEffect(function () {
|
|
193
|
+
var _a, _b, _c, _d, _e;
|
|
194
|
+
if (!isOpen) {
|
|
195
|
+
setLocationDefined(false);
|
|
196
|
+
for (var _i = 0, elRefs_1 = elRefs; _i < elRefs_1.length; _i++) {
|
|
197
|
+
var elRef = elRefs_1[_i];
|
|
198
|
+
(_a = elRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('dropdown-hover');
|
|
199
|
+
}
|
|
200
|
+
setFocused(null);
|
|
201
|
+
if (onActiveDescendantChanged)
|
|
202
|
+
onActiveDescendantChanged(undefined);
|
|
203
|
+
(_b = dropdownContentRef.current) === null || _b === void 0 ? void 0 : _b.classList.remove('outline');
|
|
204
|
+
(_c = dropdownContentRef.current) === null || _c === void 0 ? void 0 : _c.blur();
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
if (outline) {
|
|
208
|
+
(_d = dropdownContentRef.current) === null || _d === void 0 ? void 0 : _d.classList.add('outline');
|
|
209
|
+
(_e = dropdownContentRef.current) === null || _e === void 0 ? void 0 : _e.focus();
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}, [isOpen, dropdownContentRef, focused, outline]);
|
|
213
|
+
/**
|
|
214
|
+
* Scroll item container to top when dropdown opens
|
|
215
|
+
* */
|
|
216
|
+
React.useEffect(function () {
|
|
217
|
+
if (isOpen && itemsListRef.current) {
|
|
218
|
+
itemsListRef.current.scrollTop = 0;
|
|
219
|
+
}
|
|
220
|
+
}, [isOpen]);
|
|
221
|
+
React.useEffect(function () {
|
|
222
|
+
if (isOpen) {
|
|
223
|
+
var observer_1 = new IntersectionObserver(function (entries) {
|
|
224
|
+
var _a;
|
|
225
|
+
if (!entries[0].isIntersecting) {
|
|
226
|
+
setIsOpen(false);
|
|
227
|
+
//@ts-ignore
|
|
228
|
+
(_a = document === null || document === void 0 ? void 0 : document.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
|
|
229
|
+
}
|
|
230
|
+
}, { threshold: [0], rootMargin: '8px' });
|
|
231
|
+
observer_1.observe(containerRef.current);
|
|
232
|
+
calculateOffset();
|
|
233
|
+
window.addEventListener('scroll', calculateOffset, true);
|
|
234
|
+
window.addEventListener('resize', calculateOffset);
|
|
235
|
+
return function () {
|
|
236
|
+
observer_1.disconnect();
|
|
237
|
+
window.removeEventListener('scroll', calculateOffset, true);
|
|
238
|
+
window.removeEventListener('resize', calculateOffset);
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
return function () { };
|
|
242
|
+
}, [isOpen]);
|
|
243
|
+
var handleItemClick = function (selected, item) {
|
|
244
|
+
var newValue = [];
|
|
245
|
+
if (customizationProps.multiSelect) {
|
|
246
|
+
if (selected)
|
|
247
|
+
newValue = __spreadArray(__spreadArray([], selectedValues, true), [item.value], false);
|
|
248
|
+
else
|
|
249
|
+
newValue = selectedValues.filter(function (x) { return x != item.value; });
|
|
250
|
+
}
|
|
251
|
+
else
|
|
252
|
+
newValue = selected ? [item.value] : [];
|
|
253
|
+
setSelectedValues(newValue);
|
|
254
|
+
if (customizationProps.onValueUpdate && customizationProps.onValueUpdate(newValue)) {
|
|
255
|
+
setIsOpen(false);
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
var getTopItem = function () {
|
|
259
|
+
var _a, _b, _c, _d;
|
|
260
|
+
if (!customizationProps.pinTopItem)
|
|
261
|
+
return;
|
|
262
|
+
var visibleItems = getFilteredItems();
|
|
263
|
+
var allSelected = (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.filter(function (x) { return visibleItems.some(function (y) { return y.value == x; }); }).length) == visibleItems.length;
|
|
264
|
+
var showTopItem = false;
|
|
265
|
+
var suggestions = getSuggestions();
|
|
266
|
+
var displayLabel = selectedValues[0] ? (_b = (_a = customizationProps.items) === null || _a === void 0 ? void 0 : _a.find(function (c) { return c.value === selectedValues[0]; })) === null || _b === void 0 ? void 0 : _b.displayLabel : undefined;
|
|
267
|
+
if (customizationProps.itemsType == 'radio' && selectedValues && (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0)
|
|
268
|
+
showTopItem = true;
|
|
269
|
+
else if (customizationProps.itemsType == 'checkbox' && (customizationProps.multiSelect || (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0))
|
|
270
|
+
showTopItem = true;
|
|
271
|
+
else if (customizationProps.itemsType == 'normal' && suggestions.length > 0)
|
|
272
|
+
showTopItem = true;
|
|
273
|
+
if (!showTopItem)
|
|
274
|
+
return;
|
|
275
|
+
var selectedFirst = selectedValues.length > 0 ? visibleItems.find(function (x) { return x.value == selectedValues[0]; }) : null;
|
|
276
|
+
return (React.createElement(DropdownContentTopItemContainer, { size: size },
|
|
277
|
+
customizationProps.itemsType === 'radio' && (React.createElement(RadioButton, { ref: elRefs[0], role: 'menuitemradio', iconPointerEventsTransparent: true, onFocus: function (e) { return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_topitem")); }, tabIndexVal: -1, className: "".concat(focused === 0 ? 'dropdown-hover' : ''), select: function () { }, label: (_c = selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.displayLabel) !== null && _c !== void 0 ? _c : selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.value, size: size, id: "".concat(id, "_topitem"), selected: true })),
|
|
278
|
+
customizationProps.itemsType === 'checkbox' && (React.createElement(Checkbox, { ref: elRefs[0], role: 'menuitemcheckbox', tabIndexVal: -1, className: "".concat(focused === 0 ? 'dropdown-hover' : ''), select: function (selected) {
|
|
279
|
+
if (!customizationProps.multiSelect)
|
|
280
|
+
return;
|
|
281
|
+
var newValues = selected ? visibleItems.map(function (x) { return x.value; }) : [];
|
|
282
|
+
setSelectedValues(newValues);
|
|
283
|
+
if (customizationProps.onValueUpdate && customizationProps.onValueUpdate(newValues))
|
|
284
|
+
setIsOpen(false);
|
|
285
|
+
}, onFocus: function (e) { return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_topitem")); }, iconPointerEventsTransparent: true, semiSelected: customizationProps.multiSelect && !allSelected && (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.length) > 0, size: size, id: "".concat(id, "_checkbox_selectall"), label: customizationProps.multiSelect ? 'Select all' : (_d = selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.displayLabel) !== null && _d !== void 0 ? _d : selectedFirst === null || selectedFirst === void 0 ? void 0 : selectedFirst.value, selected: !customizationProps.multiSelect || allSelected })),
|
|
286
|
+
customizationProps.itemsType === 'normal' && (React.createElement(React.Fragment, null, suggestions.map(function (x) { return (React.createElement(MenuItem, { role: ariaRolesType == 'input' ? 'option' : 'menu', key: "".concat(id, "_topitem_").concat(x.value), item: x, size: size, active: false, tabIndex: -1, onFocus: function (e) { return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_topitem")); }, className: "".concat(focused === 0 ? 'dropdown-hover' : ''), ref: elRefs[0], id: "".concat(id, "_topitem"), onClickHandler: function (e) {
|
|
287
|
+
e.stopPropagation();
|
|
288
|
+
customizationProps.onValueUpdate([x.value]);
|
|
289
|
+
setSelectedValues([x.value]);
|
|
290
|
+
setIsOpen(false);
|
|
291
|
+
setFocused(null);
|
|
292
|
+
} })); })))));
|
|
293
|
+
};
|
|
294
|
+
var getElements = function (messageOnNoResults, size) {
|
|
295
|
+
if (getFilteredItems().length === 0) {
|
|
296
|
+
return React.createElement(MenuItem, { item: { value: messageOnNoResults, disabled: true }, size: size, id: "noResultsFound", active: false, onClickHandler: function (e) { } });
|
|
297
|
+
}
|
|
298
|
+
return (React.createElement(DropdownContentItemsContainer, { size: size }, getFilteredItems()
|
|
299
|
+
.filter(function (x) { return x && (customizationProps.itemsType != 'normal' || !x.suggestion); })
|
|
300
|
+
.map(function (item, index) {
|
|
301
|
+
var _a, _b;
|
|
302
|
+
return (React.createElement(React.Fragment, { key: "key_".concat(id, "_").concat(item.value) },
|
|
303
|
+
item.customContent,
|
|
304
|
+
!item.customContent && customizationProps.itemsType == 'radio' && (React.createElement(RadioButton, { role: 'menuitemradio', select: function (selected) { return handleItemClick(selected, item); }, ref: elRefs[index + 1], size: size, tabIndexVal: -1, className: "".concat(index + 1 === focused ? 'dropdown-hover' : ''), iconPointerEventsTransparent: true, disabled: item === null || item === void 0 ? void 0 : item.disabled, key: "key_".concat(id, "_").concat(index + 1), onFocus: function (e) { return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_").concat(index + 1)); }, id: "".concat(id, "_").concat(index + 1), label: (_a = item.displayLabel) !== null && _a !== void 0 ? _a : item.value, selected: selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(item.value) })),
|
|
305
|
+
!item.customContent && customizationProps.itemsType == 'checkbox' && (React.createElement(Checkbox, { role: 'menuitemcheckbox', select: function (selected) { return handleItemClick(selected, item); }, iconPointerEventsTransparent: true, disabled: item === null || item === void 0 ? void 0 : item.disabled, className: "".concat(index + 1 === focused ? 'dropdown-hover' : ''), ref: elRefs[index + 1], size: size, tabIndexVal: -1, key: "key_".concat(id, "_").concat(index + 1), onFocus: function (e) { return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_").concat(index + 1)); }, id: "".concat(id, "_").concat(index + 1), label: (_b = item.displayLabel) !== null && _b !== void 0 ? _b : item.value, selected: selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(item.value) })),
|
|
306
|
+
!item.customContent && (customizationProps.itemsType == 'normal' || !customizationProps.itemsType) && (React.createElement(MenuItem, { role: ariaRolesType == 'input' ? 'option' : 'menu', key: "key_".concat(id, "_").concat(index + 1), id: "".concat(id, "_").concat(index + 1), item: item, tabIndex: -1, className: "".concat(index + 1 === focused ? 'dropdown-hover' : ''), size: size, onFocus: function (e) { return onActiveDescendantChanged && onActiveDescendantChanged("".concat(id, "_").concat(index + 1)); }, active: selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(item.value), ref: elRefs[index + 1], onClickHandler: function (e) {
|
|
307
|
+
e.stopPropagation();
|
|
308
|
+
customizationProps.onValueUpdate([item.value]);
|
|
309
|
+
setSelectedValues([item.value]);
|
|
310
|
+
setIsOpen(false);
|
|
311
|
+
setFocused(null);
|
|
312
|
+
} }))));
|
|
313
|
+
})));
|
|
314
|
+
};
|
|
315
|
+
var calculateOffset = function () {
|
|
316
|
+
var _a;
|
|
317
|
+
var rect = (_a = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
318
|
+
if (rect) {
|
|
319
|
+
dropdownContentRef.current.style.left = "".concat(rect.x + rect.width, "px");
|
|
320
|
+
dropdownContentRef.current.style.top = "".concat(rect.y + rect.height, "px");
|
|
321
|
+
dropdownContentRef.current.style.width = width !== null && width !== void 0 ? width : "".concat(rect.width, "px");
|
|
322
|
+
}
|
|
323
|
+
determineDropUp();
|
|
324
|
+
};
|
|
325
|
+
var cls = "".concat(isOpen ? 'show' : '', " ").concat(isOpen && outline ? 'outline' : '', " ").concat(locationDefined ? (isUp ? 'up' : 'down') : '');
|
|
326
|
+
return (React.createElement(Overlay, null,
|
|
327
|
+
React.createElement(DropdownContentContainer, { role: ariaRolesType == "menu" ? "menu" : "optionlist", ref: dropdownContentRef, size: size, offsetTop: offset.top, id: id, offsetLeft: offset.left, tabIndex: -1, isButton: isButton, alignLeft: alignLeft, scrollable: customizationProps.scrollable, maxHeight: customizationProps.maxHeight, className: cls },
|
|
328
|
+
React.createElement(DropdownContentListContainer, { role: "group", size: size, itemsType: customizationProps.itemsType, onScroll: handleScroll, ref: itemsListRef, outline: outline, scrollable: customizationProps.scrollable },
|
|
329
|
+
customizationProps.menuContent && (React.createElement(DropdownContentMenuContentContainer, { size: size },
|
|
330
|
+
customizationProps.menuContent,
|
|
331
|
+
React.createElement(DividerContainer, { size: size },
|
|
332
|
+
React.createElement("div", { className: "divider" })))),
|
|
333
|
+
customizationProps.pinTopItem && getTopItem(),
|
|
334
|
+
getElements(messageOnNoResults, size)),
|
|
335
|
+
customizationProps.action && customizationProps.actionLabel && (React.createElement(DropdownContentActionButtonContainer, { size: size, scrollable: customizationProps.scrollable },
|
|
336
|
+
React.createElement(Button, { width: "100%", role: "menuitem", icon: customizationProps.actionIcon, ref: actionButtonRef, loading: customizationProps.actionLoading, disabled: customizationProps.actionDisabled, variant: (_c = customizationProps.actionVariant) !== null && _c !== void 0 ? _c : 'primary', size: size, onClick: function () { return customizationProps.action() && setIsOpen(false); } }, customizationProps.actionLabel))))));
|
|
337
|
+
});
|
|
338
|
+
export default DropdownContent;
|
|
339
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|