@laerdal/life-react-components 3.5.1-dev.11 → 3.5.1-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/AccordionMenu.d.ts +15 -0
- package/dist/Accordion/ContentAccordion.d.ts +14 -0
- package/dist/AuthPage/AuthPage.d.ts +2 -2
- package/dist/Banners/Banner.d.ts +24 -3
- package/dist/Banners/OverviewBanner.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.ts +8 -1
- package/dist/Breadcrumb/BreadcrumbItem.d.ts +2 -0
- package/dist/Button/BackButton.d.ts +7 -0
- package/dist/Button/Button.d.ts +29 -10
- package/dist/Button/DualFunctionButton.d.ts +10 -0
- package/dist/Button/Iconbutton.d.ts +17 -11
- package/dist/Card/HorizontalCard/types.d.ts +13 -3
- package/dist/Card/VerticalCard/Card.d.ts +8 -1
- package/dist/Card/VerticalCard/CardBottomSection.d.ts +11 -0
- package/dist/Card/VerticalCard/CardMiddleSection.d.ts +8 -0
- package/dist/Card/VerticalCard/CardTopSection.d.ts +11 -0
- package/dist/Chips/ChipTypes.d.ts +35 -1
- package/dist/ChipsInput/ChipDropdownInput.d.ts +9 -1
- package/dist/ChipsInput/index.d.ts +1 -0
- package/dist/Dropdown/BasicDropdown.d.ts +76 -0
- package/dist/Dropdown/CommonStyling.d.ts +0 -1
- package/dist/Dropdown/DropdownButtonTypes.d.ts +28 -1
- package/dist/Dropdown/DropdownContent.d.ts +10 -1
- package/dist/Dropdown/DropdownFilter.d.ts +18 -1
- package/dist/Footer/Components/FooterBottomLinks.d.ts +2 -2
- package/dist/Footer/Components/FooterDropdownLinks.d.ts +2 -2
- package/dist/Footer/Components/FooterNavSection.d.ts +2 -2
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.d.ts +2 -2
- package/dist/Footer/Components/FooterTop.d.ts +2 -2
- package/dist/Footer/Footer.d.ts +2 -2
- package/dist/Footer/SiteFooter.d.ts +1 -1
- package/dist/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.js +299 -0
- package/dist/GlobalNavigationBar/__tests__/Logo.tests.js +26 -0
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +2 -2
- package/dist/GlobalNavigationBar/desktop/UserMenu.d.ts +2 -2
- package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +2 -2
- package/dist/GlobalNavigationBar/types.d.ts +5 -1
- package/dist/HyperLink/HyperLink.d.ts +7 -0
- package/dist/Image/ImageWithFallbacks.d.ts +1 -1
- package/dist/InputFields/DatepickerField.d.ts +39 -1
- package/dist/InputFields/DatepickerFieldHeader.d.ts +5 -2
- package/dist/InputFields/NumberField.d.ts +46 -17
- package/dist/InputFields/PasswordField.d.ts +73 -1
- package/dist/InputFields/QuickSearch.d.ts +12 -0
- package/dist/InputFields/RadioButton.d.ts +26 -2
- package/dist/InputFields/RichTextField.d.ts +57 -0
- package/dist/InputFields/SearchBar.d.ts +64 -0
- package/dist/InputFields/TextField.d.ts +113 -1
- package/dist/InputFields/types.d.ts +39 -1
- package/dist/LinearProgress/LinearProgress.d.ts +6 -0
- package/dist/List/ListRow.d.ts +17 -4
- package/dist/List/__tests__/ListRow.tests.js +51 -0
- package/dist/LoadingIndicator/LoadingIndicator.d.ts +6 -3
- package/dist/LoadingPage/GlobalLoadingPage.d.ts +1 -1
- package/dist/MenuItem/MenuItem.d.ts +7 -1
- package/dist/MiniProductCard/MiniProductCard.d.ts +2 -2
- package/dist/Modals/Modal.d.ts +4 -4
- package/dist/Modals/ModalContainer.d.ts +1 -1
- package/dist/Modals/ModalContent.d.ts +1 -1
- package/dist/Modals/ModalDialog.d.ts +14 -4
- package/dist/NavItem/NavItem.d.ts +1 -1
- package/dist/NavItem/NestedNavItem.d.ts +20 -2
- package/dist/NotificationDot/NotificationDot.d.ts +10 -0
- package/dist/Paginator/Paginator.d.ts +18 -4
- package/dist/Panel/Panel.d.ts +24 -6
- package/dist/Popover/Popover.d.ts +80 -12
- package/dist/ProfileButton/ProfileButton.d.ts +31 -3
- package/dist/QuizButton/QuizButton.d.ts +25 -1
- package/dist/SegmentControl/SegmentControl.d.ts +25 -2
- package/dist/SegmentControl/index.d.ts +2 -2
- package/dist/SideMenu/SideMenuBody.d.ts +2 -2
- package/dist/SideMenu/SideMenuFooter.d.ts +2 -2
- package/dist/SideMenu/SideMenuHeader.d.ts +2 -2
- package/dist/Switcher/MobileSwitcherMenu.d.ts +1 -1
- package/dist/Switcher/SwitcherMenuItem.d.ts +2 -2
- package/dist/Switcher/__tests__/SwitcherMenuItem.js +53 -0
- package/dist/Table/TableTypes.d.ts +130 -0
- package/dist/Tabs/HorizontalTabs.d.ts +14 -3
- package/dist/Tabs/TabLink.d.ts +1 -1
- package/dist/Tabs/VerticalTabs.d.ts +30 -2
- 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/Tag/Tag.d.ts +3 -0
- package/dist/Tile/TileCommonItems.d.ts +2 -2
- package/dist/Toasters/Toast.d.ts +9 -1
- package/dist/Toggles/ToggleButton.d.ts +5 -0
- package/dist/Toggles/TogglerTypes.d.ts +7 -0
- package/dist/Tooltips/TooltipOverflow.d.ts +1 -1
- package/dist/Tooltips/TooltipStyles.d.ts +2 -1
- package/dist/Tooltips/TooltipTypes.d.ts +10 -0
- package/dist/Tooltips/TooltipWrapper.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- 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 +2 -1
- 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/colors.cjs +1 -11
- package/dist/styles/colors.cjs.map +1 -1
- package/dist/styles/colors.js +0 -9
- package/dist/styles/colors.js.map +1 -1
- package/dist/styles/global.d.ts +1 -1
- package/dist/styles/index.cjs +3 -5
- package/dist/styles/index.cjs.map +1 -1
- package/dist/styles/index.d.ts +2 -1
- package/dist/styles/index.js +2 -1
- 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 +3 -0
- package/dist/styles/overwritecolors.js +12 -0
- package/dist/styles/overwritecolors.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
var _a, _b;
|
|
17
|
+
import * as React from 'react';
|
|
18
|
+
import styled, { keyframes } from 'styled-components';
|
|
19
|
+
import { ToastActionType, ToastColor, ToastEntryDirection, ToastPosition } from '../types';
|
|
20
|
+
import { BOXSHADOWS, COLORS } from '../styles';
|
|
21
|
+
import { Size } from '../types';
|
|
22
|
+
import { Button, IconButton } from '../Button';
|
|
23
|
+
import { ComponentSStyling, ComponentTextStyle } from '../styles';
|
|
24
|
+
import { HyperLinkDefaultStyling, HyperLinkInvertedStyling } from '../HyperLink';
|
|
25
|
+
import { SystemIcons } from '../icons';
|
|
26
|
+
var LoaderAnimationKeyframes = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 0% {\n background-position: right;\n }\n 100% {\n background-position: left;\n }\n"], ["\n 0% {\n background-position: right;\n }\n 100% {\n background-position: left;\n }\n"])));
|
|
27
|
+
var Loader = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 4px;\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px;\n\n animation: ", " ", "ms cubic-bezier(0.18, 0.39, 0.35, 1);\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n"], ["\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: 4px;\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px;\n\n animation: ", " ", "ms cubic-bezier(0.18, 0.39, 0.35, 1);\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n\n &.", " {\n background: linear-gradient(to right, ", " 50%, ", " 50%) left;\n background-size: 200% 100%;\n }\n"])), LoaderAnimationKeyframes, function (props) { return props.duration; }, ToastColor[ToastColor.BLACK], COLORS.neutral_200, COLORS.neutral_800, ToastColor[ToastColor.WHITE], COLORS.neutral_400, COLORS.white, ToastColor[ToastColor.BLUE], COLORS.accent1_200, COLORS.accent1_600, ToastColor[ToastColor.GREEN], COLORS.correct_200, COLORS.correct_500, ToastColor[ToastColor.ORANGE], COLORS.warning_200, COLORS.warning_500, ToastColor[ToastColor.RED], COLORS.critical_200, COLORS.critical_500);
|
|
28
|
+
export var ToastContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n box-shadow: ", ";\n border-radius: 4px;\n\n animation: ", " ", " ", ";\n transform: ", ";\n\n transition: all 300ms cubic-bezier(0.64, 0.04, 0.35, 1);\n\n padding: 0 ", " ", " 16px;\n\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n gap: 16px;\n justify-content: left;\n\n position: relative;\n\n width: max-content;\n min-height: 48px;\n box-sizing: border-box;\n\n ", "\n\n & a {\n display: inline;\n ", "\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n color: ", ";\n\n & a {\n ", "\n }\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n }\n"], ["\n box-shadow: ", ";\n border-radius: 4px;\n\n animation: ", " ", " ", ";\n transform: ", ";\n\n transition: all 300ms cubic-bezier(0.64, 0.04, 0.35, 1);\n\n padding: 0 ", " ", " 16px;\n\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n gap: 16px;\n justify-content: left;\n\n position: relative;\n\n width: max-content;\n min-height: 48px;\n box-sizing: border-box;\n\n ", "\n\n & a {\n display: inline;\n ", "\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n color: ", ";\n\n & a {\n ", "\n }\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n }\n\n &.", " {\n background-color: ", ";\n }\n"])), BOXSHADOWS.BOXSHADOW_L2, function (props) { return props.animation.keyframes; }, function (props) { return props.animation.duration; }, function (props) { return props.animation.bezier; }, function (props) { return props.animation.transform; }, function (props) { return (props.withClose ? '0' : '16px'); }, function (props) { return (props.withLoader ? '4px' : '0'); }, ComponentSStyling(ComponentTextStyle.Regular, COLORS.white), HyperLinkInvertedStyling, ToastColor[ToastColor.BLACK], COLORS.neutral_800, ToastColor[ToastColor.WHITE], COLORS.white, COLORS.black, HyperLinkDefaultStyling, ToastColor[ToastColor.BLUE], COLORS.accent1_600, ToastColor[ToastColor.GREEN], COLORS.correct_500, ToastColor[ToastColor.ORANGE], COLORS.warning_500, ToastColor[ToastColor.RED], COLORS.critical_500);
|
|
29
|
+
export var ToastActionButtons = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n\n & .action {\n height: unset;\n }\n"], ["\n display: flex;\n flex-direction: row;\n gap: 8px;\n align-items: center;\n\n & .action {\n height: unset;\n }\n"])));
|
|
30
|
+
export var ToastCloseButton = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n & > button {\n margin-left: 16px;\n\n & svg {\n padding: 0;\n }\n }\n\n button svg path{\n fill: ", " !important;\n }\n\n &.", " {\n button svg path {\n fill: ", " !important;\n }\n }\n"], ["\n & > button {\n margin-left: 16px;\n\n & svg {\n padding: 0;\n }\n }\n\n button svg path{\n fill: ", " !important;\n }\n\n &.", " {\n button svg path {\n fill: ", " !important;\n }\n }\n"])), COLORS.white, ToastColor[ToastColor.WHITE], COLORS.neutral_600);
|
|
31
|
+
export var ToastTextContainer = styled.span(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-feature-settings: 'liga' off;\n width: 240px;\n display: flex;\n padding: 16px 0;\n"], ["\n font-feature-settings: 'liga' off;\n width: 240px;\n display: flex;\n padding: 16px 0;\n"])));
|
|
32
|
+
export var ToastIconContainer = styled.span(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-right: -8px;\n"], ["\n margin-right: -8px;\n"])));
|
|
33
|
+
var DEFAULT_OPTIONS = {
|
|
34
|
+
color: ToastColor.BLACK,
|
|
35
|
+
autoClose: true,
|
|
36
|
+
delay: 5000,
|
|
37
|
+
showCloseButton: false,
|
|
38
|
+
position: ToastPosition.TOPLEFT,
|
|
39
|
+
enterFrom: ToastEntryDirection.TOP,
|
|
40
|
+
};
|
|
41
|
+
var Toast = function (_a) {
|
|
42
|
+
var _b, _c, _d;
|
|
43
|
+
var content = _a.content, remove = _a.remove, _e = _a.options, options = _e === void 0 ? DEFAULT_OPTIONS : _e, testId = _a.testId;
|
|
44
|
+
if (!remove)
|
|
45
|
+
throw new Error('remove function is required when rendering Toast. Make sure that you are using useToast hook and ToastProvider for rendering Toasts');
|
|
46
|
+
var removeRef = React.useRef();
|
|
47
|
+
removeRef.current = remove;
|
|
48
|
+
var elementRef = React.useRef(null);
|
|
49
|
+
var _f = React.useState(false), shouldRemove = _f[0], setShouldRemove = _f[1];
|
|
50
|
+
var _g = React.useState({ width: 0, height: 0 }), dimensions = _g[0], setDimensions = _g[1];
|
|
51
|
+
var opts = __assign(__assign({}, DEFAULT_OPTIONS), options);
|
|
52
|
+
React.useEffect(function () {
|
|
53
|
+
if (opts === null || opts === void 0 ? void 0 : opts.autoClose) {
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
var id_1 = setTimeout(function () { return setShouldRemove(true); }, opts.delay);
|
|
56
|
+
return function () { return clearTimeout(id_1); };
|
|
57
|
+
}
|
|
58
|
+
return undefined;
|
|
59
|
+
}, []);
|
|
60
|
+
React.useEffect(function () {
|
|
61
|
+
if (shouldRemove) {
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
var id_2 = setTimeout(function () { return removeRef.current(); }, 200);
|
|
64
|
+
return function () { return clearTimeout(id_2); };
|
|
65
|
+
}
|
|
66
|
+
}, [shouldRemove]);
|
|
67
|
+
React.useEffect(function () {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
setDimensions({ height: (_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight, width: (_b = elementRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth });
|
|
70
|
+
}, []);
|
|
71
|
+
var animation = animations[shouldRemove ? 'leave' : 'enter'];
|
|
72
|
+
var direction = animation[(_b = opts.enterFrom) !== null && _b !== void 0 ? _b : ToastEntryDirection.TOP];
|
|
73
|
+
var fromY = dimensions.height * direction.fromHeight;
|
|
74
|
+
var toY = dimensions.height * direction.toHeight;
|
|
75
|
+
var fromX = dimensions.width * direction.fromWidth;
|
|
76
|
+
var toX = dimensions.width * direction.toWidth;
|
|
77
|
+
var prop = {
|
|
78
|
+
duration: animation.duration,
|
|
79
|
+
bezier: animation.bezier,
|
|
80
|
+
transform: "translateY(".concat(toY, ") translateX(").concat(toX, ")"),
|
|
81
|
+
keyframes: keyframes(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n 0% {\n transform: translateY(", "px) translateX(", "px);\n }\n 100% {\n transform: translateY(", "px) translateX(", "px);\n }"], ["\n 0% {\n transform: translateY(", "px) translateX(", "px);\n }\n 100% {\n transform: translateY(", "px) translateX(", "px);\n }"])), fromY, fromX, toY, toX),
|
|
82
|
+
};
|
|
83
|
+
if (!dimensions.height) {
|
|
84
|
+
prop = __assign(__assign({}, prop), {
|
|
85
|
+
transform: 'translateY(-1000vh) translateX(-1000vw)',
|
|
86
|
+
keyframes: keyframes(templateObject_9 || (templateObject_9 = __makeTemplateObject([""], [""]))),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
var theme = ToastColor[(_c = opts.color) !== null && _c !== void 0 ? _c : ToastColor.BLACK];
|
|
90
|
+
if (!shouldRemove) {
|
|
91
|
+
setTimeout(function () { var _a; return (_a = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
92
|
+
}
|
|
93
|
+
return (React.createElement(ToastContainer, { "data-testid": testId, animation: prop, ref: elementRef, withLoader: !!opts.autoClose, className: theme, withClose: !!opts.showCloseButton, tabIndex: -1 },
|
|
94
|
+
opts.icon && React.createElement(ToastIconContainer, null, opts.icon),
|
|
95
|
+
React.createElement(ToastTextContainer, { className: 'description' }, content),
|
|
96
|
+
opts.action && (React.createElement(ToastActionButtons, null, opts.action.map(function (action, i) { return (React.createElement(Button, { size: Size.Small, variant: action.type === ToastActionType.SECONDARY ? 'secondary' : 'primary', colorTheme: opts.color !== ToastColor.WHITE ? 'dark' : 'teal', invertFocus: opts.color === ToastColor.BLACK, key: i, onClick: function () {
|
|
97
|
+
setShouldRemove(true);
|
|
98
|
+
action.handler();
|
|
99
|
+
}, className: 'action' }, action.label)); }))),
|
|
100
|
+
opts.showCloseButton && (React.createElement(ToastCloseButton, { className: "close-button ".concat(theme) },
|
|
101
|
+
React.createElement(IconButton, { variant: 'secondary', shape: "circular", useTransparentBackground: true, invertFocus: opts.color === ToastColor.BLACK, action: function (event) { return setShouldRemove(true); } },
|
|
102
|
+
React.createElement(SystemIcons.Close, { size: "24px", color: COLORS.neutral_600 })))),
|
|
103
|
+
!!opts.autoClose && React.createElement(Loader, { className: "loader ".concat(theme), duration: (_d = opts.delay) !== null && _d !== void 0 ? _d : 0 })));
|
|
104
|
+
};
|
|
105
|
+
export default Toast;
|
|
106
|
+
var animations = {
|
|
107
|
+
enter: (_a = {
|
|
108
|
+
bezier: 'cubic-bezier(0.22, 0.61, 0.35, 1)',
|
|
109
|
+
duration: '300ms'
|
|
110
|
+
},
|
|
111
|
+
_a[ToastEntryDirection.TOP] = {
|
|
112
|
+
fromHeight: -1,
|
|
113
|
+
toHeight: 0,
|
|
114
|
+
fromWidth: 0,
|
|
115
|
+
toWidth: 0,
|
|
116
|
+
},
|
|
117
|
+
_a[ToastEntryDirection.BOTTOM] = {
|
|
118
|
+
fromHeight: 1,
|
|
119
|
+
toHeight: 0,
|
|
120
|
+
fromWidth: 0,
|
|
121
|
+
toWidth: 0,
|
|
122
|
+
},
|
|
123
|
+
_a[ToastEntryDirection.LEFT] = {
|
|
124
|
+
fromHeight: 0,
|
|
125
|
+
toHeight: 0,
|
|
126
|
+
fromWidth: -1,
|
|
127
|
+
toWidth: 0,
|
|
128
|
+
},
|
|
129
|
+
_a[ToastEntryDirection.RIGHT] = {
|
|
130
|
+
fromHeight: 0,
|
|
131
|
+
toHeight: 0,
|
|
132
|
+
fromWidth: 1,
|
|
133
|
+
toWidth: 0,
|
|
134
|
+
},
|
|
135
|
+
_a),
|
|
136
|
+
leave: (_b = {
|
|
137
|
+
bezier: 'cubic-bezier(0.5, 0.05, 0.67, 0.19)',
|
|
138
|
+
duration: '205ms'
|
|
139
|
+
},
|
|
140
|
+
_b[ToastEntryDirection.TOP] = {
|
|
141
|
+
fromHeight: 0,
|
|
142
|
+
toHeight: -1,
|
|
143
|
+
fromWidth: 0,
|
|
144
|
+
toWidth: 0,
|
|
145
|
+
},
|
|
146
|
+
_b[ToastEntryDirection.BOTTOM] = {
|
|
147
|
+
fromHeight: 0,
|
|
148
|
+
toHeight: 1,
|
|
149
|
+
fromWidth: 0,
|
|
150
|
+
toWidth: 0,
|
|
151
|
+
},
|
|
152
|
+
_b[ToastEntryDirection.LEFT] = {
|
|
153
|
+
fromHeight: 0,
|
|
154
|
+
toHeight: 0,
|
|
155
|
+
fromWidth: 0,
|
|
156
|
+
toWidth: -1,
|
|
157
|
+
},
|
|
158
|
+
_b[ToastEntryDirection.RIGHT] = {
|
|
159
|
+
fromHeight: 0,
|
|
160
|
+
toHeight: 0,
|
|
161
|
+
fromWidth: 0,
|
|
162
|
+
toWidth: 1,
|
|
163
|
+
},
|
|
164
|
+
_b),
|
|
165
|
+
};
|
|
166
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ToastOptions } from './Toast';
|
|
3
|
-
export type ToastProviderProps = {
|
|
3
|
+
export declare type ToastProviderProps = {
|
|
4
4
|
children?: any;
|
|
5
5
|
};
|
|
6
6
|
export interface toast {
|
|
@@ -8,7 +8,7 @@ export interface toast {
|
|
|
8
8
|
id: string;
|
|
9
9
|
content: any;
|
|
10
10
|
}
|
|
11
|
-
export type ToasterValueProps = {
|
|
11
|
+
export declare type ToasterValueProps = {
|
|
12
12
|
toasts: toast[];
|
|
13
13
|
addToast: (content: any, options: ToastOptions) => string;
|
|
14
14
|
removeToast: (id: string) => void;
|
|
@@ -0,0 +1,69 @@
|
|
|
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 * as React from 'react';
|
|
15
|
+
import styled from 'styled-components';
|
|
16
|
+
import { createUUID } from '../Services/functions';
|
|
17
|
+
import Toast from './Toast';
|
|
18
|
+
import { ToastPosition } from '../types';
|
|
19
|
+
import { Z_INDEXES } from '../styles/z-indexes';
|
|
20
|
+
/*export const ToastContext = React.createContext<ToasterValueProps>(null);*/
|
|
21
|
+
export var ToastContext = React.createContext({});
|
|
22
|
+
var ToastBucket = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: fixed;\n z-index: ", ";\n display: flex;\n flex-direction: column-reverse;\n"], ["\n position: fixed;\n z-index: ", ";\n display: flex;\n flex-direction: column-reverse;\n"])), Z_INDEXES.toast);
|
|
23
|
+
var ToastBucketTopLeft = styled(ToastBucket)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n top: 16px;\n left: 5%;\n"], ["\n top: 16px;\n left: 5%;\n"])));
|
|
24
|
+
var ToastBucketTopMiddle = styled(ToastBucket)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n top: 16px;\n left: 50%;\n transform: translateX(-50%);\n"], ["\n top: 16px;\n left: 50%;\n transform: translateX(-50%);\n"])));
|
|
25
|
+
var ToastBucketTopRight = styled(ToastBucket)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n top: 16px;\n right: 5%;\n"], ["\n top: 16px;\n right: 5%;\n"])));
|
|
26
|
+
var ToastBucketBottomLeft = styled(ToastBucket)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n bottom: 16px;\n left: 5%;\n"], ["\n bottom: 16px;\n left: 5%;\n"])));
|
|
27
|
+
var ToastBucketBottomMiddle = styled(ToastBucket)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n"], ["\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n"])));
|
|
28
|
+
var ToastBucketBottomRight = styled(ToastBucket)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n bottom: 16px;\n right: 5%;\n"], ["\n bottom: 16px;\n right: 5%;\n"])));
|
|
29
|
+
export var ToastProvider = function (_a) {
|
|
30
|
+
var children = _a.children;
|
|
31
|
+
var _b = React.useState([]), toasts = _b[0], setToasts = _b[1];
|
|
32
|
+
var add = function (content, options) {
|
|
33
|
+
var id = createUUID();
|
|
34
|
+
setToasts(function (prev) { return __spreadArray(__spreadArray([], prev, true), [{ id: id, content: content, options: options }], false); });
|
|
35
|
+
return id;
|
|
36
|
+
};
|
|
37
|
+
var remove = function (id) { return setToasts(toasts.filter(function (t) { return t.id !== id; })); };
|
|
38
|
+
var functions = React.useMemo(function () {
|
|
39
|
+
return { addToast: add, removeToast: remove };
|
|
40
|
+
}, [toasts]);
|
|
41
|
+
return (React.createElement(ToastContext.Provider, { value: { toasts: toasts, addToast: add, removeToast: remove } },
|
|
42
|
+
React.createElement(ToastBucketTopLeft, null, toasts
|
|
43
|
+
.filter(function (t) { return t.options.position === ToastPosition.TOPLEFT; })
|
|
44
|
+
.map(function (t) { return (React.createElement(Toast, { key: t.id, content: t.content, remove: function () { return remove(t.id); }, options: t.options })); })),
|
|
45
|
+
React.createElement(ToastBucketTopMiddle, null, toasts
|
|
46
|
+
.filter(function (t) { return t.options.position === ToastPosition.TOPMIDDLE; })
|
|
47
|
+
.map(function (t) { return (React.createElement(Toast, { key: t.id, content: t.content, remove: function () { return remove(t.id); }, options: t.options })); })),
|
|
48
|
+
React.createElement(ToastBucketTopRight, null, toasts
|
|
49
|
+
.filter(function (t) { return t.options.position === ToastPosition.TOPRIGHT; })
|
|
50
|
+
.map(function (t) { return (React.createElement(Toast, { key: t.id, content: t.content, remove: function () { return remove(t.id); }, options: t.options })); })),
|
|
51
|
+
React.createElement(ToastBucketBottomLeft, null, toasts
|
|
52
|
+
.filter(function (t) { return t.options.position === ToastPosition.BOTTOMLEFT; })
|
|
53
|
+
.map(function (t) { return (React.createElement(Toast, { key: t.id, content: t.content, remove: function () { return remove(t.id); }, options: t.options })); })),
|
|
54
|
+
React.createElement(ToastBucketBottomMiddle, null, toasts
|
|
55
|
+
.filter(function (t) { return t.options.position === ToastPosition.BOTTOMMIDDLE; })
|
|
56
|
+
.map(function (t) { return (React.createElement(Toast, { key: t.id, content: t.content, remove: function () { return remove(t.id); }, options: t.options })); })),
|
|
57
|
+
React.createElement(ToastBucketBottomRight, null, toasts
|
|
58
|
+
.filter(function (t) { return t.options.position === ToastPosition.BOTTOMRIGHT; })
|
|
59
|
+
.map(function (t) { return (React.createElement(Toast, { key: t.id, content: t.content, remove: function () { return remove(t.id); }, options: t.options })); })),
|
|
60
|
+
children));
|
|
61
|
+
};
|
|
62
|
+
export function useToast() {
|
|
63
|
+
var _a = React.useContext(ToastContext), addToast = _a.addToast, removeToast = _a.removeToast;
|
|
64
|
+
return {
|
|
65
|
+
addToast: addToast,
|
|
66
|
+
removeToast: removeToast
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
+
t[p[i]] = s[p[i]];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
import React from 'react';
|
|
28
|
+
import { IconButton } from '../Button';
|
|
29
|
+
import styled from 'styled-components';
|
|
30
|
+
import { IconButtonContentStyles } from '../Button/Iconbutton';
|
|
31
|
+
import { COLORS } from '../styles';
|
|
32
|
+
var Wrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", " {\n transition: all 0.1s ease-in-out;\n }\n\n &.disabled,\n &.active:not(.state-change) {\n ", " {\n background: ", ";\n }\n }\n\n &.active:not(.state-change) {\n ", ":after {\n content: '';\n position: absolute;\n left: 12px;\n bottom: 1px;\n background-color: ", ";\n border-radius: 4px;\n height: 4px;\n width: 24px;\n }\n }\n\n &.disabled:not(.state-change) {\n ", ":after {\n background: ", ";\n }\n }\n"], ["\n ", " {\n transition: all 0.1s ease-in-out;\n }\n\n &.disabled,\n &.active:not(.state-change) {\n ", " {\n background: ", ";\n }\n }\n\n &.active:not(.state-change) {\n ", ":after {\n content: '';\n position: absolute;\n left: 12px;\n bottom: 1px;\n background-color: ", ";\n border-radius: 4px;\n height: 4px;\n width: 24px;\n }\n }\n\n &.disabled:not(.state-change) {\n ", ":after {\n background: ", ";\n }\n }\n"])), IconButtonContentStyles, IconButtonContentStyles, COLORS.white, IconButtonContentStyles, COLORS.primary_500, IconButtonContentStyles, COLORS.neutral_300);
|
|
33
|
+
export var ToggleButton = React.forwardRef(function (_a, ref) {
|
|
34
|
+
var _b, _c;
|
|
35
|
+
var id = _a.id, active = _a.active, onChange = _a.onChange, disabled = _a.disabled, defaultState = _a.defaultState, activeState = _a.activeState, className = _a.className, rest = __rest(_a, ["id", "active", "onChange", "disabled", "defaultState", "activeState", "className"]);
|
|
36
|
+
var _d = React.useState(false), isActive = _d[0], setIsActive = _d[1];
|
|
37
|
+
React.useEffect(function () { return setIsActive(active); }, [active]);
|
|
38
|
+
var cls = "".concat(className || '', " ").concat(isActive ? 'active' : '', " ").concat(activeState ? 'state-change' : '', " ").concat(disabled ? 'disabled' : '');
|
|
39
|
+
return (React.createElement(Wrapper, { className: cls },
|
|
40
|
+
React.createElement(IconButton, __assign({ variant: 'secondary', ref: ref, useTransparentBackground: true, shape: 'circular', action: function () {
|
|
41
|
+
setIsActive(!isActive);
|
|
42
|
+
if (onChange) {
|
|
43
|
+
onChange(!isActive);
|
|
44
|
+
}
|
|
45
|
+
}, id: id, iconColor: isActive ? (_b = activeState === null || activeState === void 0 ? void 0 : activeState.color) !== null && _b !== void 0 ? _b : defaultState.color : defaultState.color, disabled: disabled, "aria-pressed": isActive }, rest), isActive ? (_c = activeState === null || activeState === void 0 ? void 0 : activeState.icon) !== null && _c !== void 0 ? _c : defaultState.icon : defaultState.icon)));
|
|
46
|
+
});
|
|
47
|
+
export default ToggleButton;
|
|
48
|
+
var templateObject_1;
|
|
@@ -0,0 +1,65 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
6
|
+
__assign = Object.assign || function(t) {
|
|
7
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
+
s = arguments[i];
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
+
t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
+
var t = {};
|
|
18
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
+
t[p] = s[p];
|
|
20
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
+
t[p[i]] = s[p[i]];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Import React libraries.
|
|
29
|
+
*/
|
|
30
|
+
import * as React from 'react';
|
|
31
|
+
/**
|
|
32
|
+
* Import custom styles.
|
|
33
|
+
*/
|
|
34
|
+
import { ToggleSwitchContainer, ToggleSwitch as Switch, StyledSwitch } from './TogglerStyles';
|
|
35
|
+
import { COLORS, Size, SystemIcons } from '..';
|
|
36
|
+
import { useFocusVisibleRef } from '../common';
|
|
37
|
+
import styled from "styled-components";
|
|
38
|
+
var CheckmarkContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n left: 2px;\n"], ["\n position: absolute;\n width: 14px;\n height: 14px;\n display: flex;\n align-items: center;\n justify-content: center;\n left: 2px;\n"])));
|
|
39
|
+
var ToggleSwitch = React.forwardRef(function (_a, ref) {
|
|
40
|
+
var id = _a.id, disabled = _a.disabled, selected = _a.selected, label = _a.label, isSemantic = _a.isSemantic, size = _a.size, onToggle = _a.onToggle, className = _a.className, rest = __rest(_a, ["id", "disabled", "selected", "label", "isSemantic", "size", "onToggle", "className"]);
|
|
41
|
+
/**
|
|
42
|
+
* Does all required pre-requisites and toggles the switcher state.
|
|
43
|
+
*/
|
|
44
|
+
var toggle = function () {
|
|
45
|
+
// If disabled, don't do anything
|
|
46
|
+
if (disabled)
|
|
47
|
+
return;
|
|
48
|
+
// Toggle state change
|
|
49
|
+
onToggle(!selected);
|
|
50
|
+
};
|
|
51
|
+
var focusVisibleRef = useFocusVisibleRef([]);
|
|
52
|
+
React.useImperativeHandle(ref, function () { return focusVisibleRef.current; }, [focusVisibleRef]);
|
|
53
|
+
size = size !== null && size !== void 0 ? size : Size.Medium;
|
|
54
|
+
return (React.createElement(StyledSwitch, __assign({ ref: focusVisibleRef, onClick: function (e) { return toggle(); }, onKeyDown: function (e) { return (e.key === 'Enter' || e.key === ' ') && toggle(); }, className: size
|
|
55
|
+
.toString()
|
|
56
|
+
.toLowerCase()
|
|
57
|
+
.concat(disabled ? ' disabled' : '')
|
|
58
|
+
.concat(className ? " ".concat(className) : ''), selected: selected, id: id, role: "switch", "aria-pressed": selected, tabIndex: disabled ? -1 : 0 }, rest),
|
|
59
|
+
React.createElement(ToggleSwitchContainer, { id: "switchContainer" },
|
|
60
|
+
React.createElement(Switch, { className: isSemantic ? 'semantic' : '' }, selected && React.createElement(CheckmarkContainer, null,
|
|
61
|
+
React.createElement(SystemIcons.CheckMark, { size: '14px', color: COLORS.white })))),
|
|
62
|
+
label && (React.createElement("label", { className: 'label', htmlFor: id }, label))));
|
|
63
|
+
});
|
|
64
|
+
export default ToggleSwitch;
|
|
65
|
+
var templateObject_1;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Import custom styles.
|
|
7
|
+
*/
|
|
8
|
+
import { COLORS, focusStyles } from '../styles';
|
|
9
|
+
/**
|
|
10
|
+
* Import third-party libraries.
|
|
11
|
+
*/
|
|
12
|
+
import styled from 'styled-components';
|
|
13
|
+
import { ComponentLStyling, ComponentMStyling, ComponentSStyling, ComponentTextStyle } from '../styles/typography';
|
|
14
|
+
export var StyledSwitch = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: max-content;\n min-height: 48px;\n min-width: 48px;\n align-items: center;\n cursor: pointer;\n &.small {\n ", "\n }\n\n &.medium {\n ", "\n }\n\n &.large {\n ", "\n }\n &.disabled {\n color: ", ";\n\n .label {\n cursor: not-allowed;\n }\n }\n .label {\n cursor: inherit;\n margin-left: 8px;\n }\n\n &:not(.disabled):active label:first-of-type span {\n &:before {\n background-color: ", ";\n }\n }\n\n &.disabled[aria-pressed='true'] label:first-of-type span {\n background-color: ", " !important;\n cursor: not-allowed;\n\n &:before {\n background-color: ", " !important;\n cursor: not-allowed;\n }\n }\n\n &[aria-pressed='true']:hover span {\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n background-color: ", ";\n }\n }\n\n &[aria-pressed='true'] label:first-of-type span {\n background-color: ", ";\n\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n -webkit-transform: translateX(20px);\n -ms-transform: translateX(20px);\n transform: translateX(20px);\n }\n }\n\n &.disabled[aria-pressed='false'] label:first-of-type span {\n background-color: ", " !important;\n cursor: not-allowed;\n\n &:before {\n background-color: ", " !important;\n cursor: not-allowed;\n }\n }\n\n &[aria-pressed='false']:hover label:first-of-type span {\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n background-color: ", ";\n }\n }\n\n &:not(.disabled).focus-visible {\n ", "\n }\n\n &:not(.disabled) label:first-of-type {\n cursor: inherit;\n }\n"], ["\n display: flex;\n flex-direction: row;\n width: max-content;\n min-height: 48px;\n min-width: 48px;\n align-items: center;\n cursor: pointer;\n &.small {\n ", "\n }\n\n &.medium {\n ", "\n }\n\n &.large {\n ", "\n }\n &.disabled {\n color: ", ";\n\n .label {\n cursor: not-allowed;\n }\n }\n .label {\n cursor: inherit;\n margin-left: 8px;\n }\n\n &:not(.disabled):active label:first-of-type span {\n &:before {\n background-color: ", ";\n }\n }\n\n &.disabled[aria-pressed='true'] label:first-of-type span {\n background-color: ", " !important;\n cursor: not-allowed;\n\n &:before {\n background-color: ", " !important;\n cursor: not-allowed;\n }\n }\n\n &[aria-pressed='true']:hover span {\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n background-color: ", ";\n }\n }\n\n &[aria-pressed='true'] label:first-of-type span {\n background-color: ", ";\n\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n -webkit-transform: translateX(20px);\n -ms-transform: translateX(20px);\n transform: translateX(20px);\n }\n }\n\n &.disabled[aria-pressed='false'] label:first-of-type span {\n background-color: ", " !important;\n cursor: not-allowed;\n\n &:before {\n background-color: ", " !important;\n cursor: not-allowed;\n }\n }\n\n &[aria-pressed='false']:hover label:first-of-type span {\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n background-color: ", ";\n }\n }\n\n &:not(.disabled).focus-visible {\n ", "\n }\n\n &:not(.disabled) label:first-of-type {\n cursor: inherit;\n }\n"])), ComponentSStyling(ComponentTextStyle.Regular, COLORS.black), ComponentMStyling(ComponentTextStyle.Regular, COLORS.black), ComponentLStyling(ComponentTextStyle.Regular, COLORS.black), COLORS.neutral_300, COLORS.primary_100, COLORS.neutral_300, COLORS.neutral_200, COLORS.correct_500, COLORS.primary_20, COLORS.primary_500, COLORS.correct_500, COLORS.neutral_300, COLORS.neutral_100, COLORS.critical_500, COLORS.primary_20, focusStyles);
|
|
15
|
+
export var ToggleSwitchContainer = styled.label(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n align-items: center;\n display: inline-flex;\n height: 28px;\n width: auto;\n padding: 10px 6px;\n"], ["\n position: relative;\n align-items: center;\n display: inline-flex;\n height: 28px;\n width: auto;\n padding: 10px 6px;\n"])));
|
|
16
|
+
export var ToggleSwitch = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n display: flex;\n align-items: center;\n vertical-align: middle;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 36px;\n height: 16px;\n background-color: ", ";\n border-radius: 100px;\n\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n position: absolute;\n content: '';\n height: 12px;\n width: 12px;\n left: 2px;\n top: calc(50% - 6px);\n background-color: ", ";\n -webkit-transition: background-color 0.1s, transform 0.1s;\n transition: 0.1s;\n transition-timing-function: ease-in-out;\n border-radius: 50%;\n }\n"], ["\n position: relative;\n display: flex;\n align-items: center;\n vertical-align: middle;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 36px;\n height: 16px;\n background-color: ", ";\n border-radius: 100px;\n\n &.semantic {\n background-color: ", ";\n }\n\n &:before {\n position: absolute;\n content: '';\n height: 12px;\n width: 12px;\n left: 2px;\n top: calc(50% - 6px);\n background-color: ", ";\n -webkit-transition: background-color 0.1s, transform 0.1s;\n transition: 0.1s;\n transition-timing-function: ease-in-out;\n border-radius: 50%;\n }\n"])), COLORS.neutral_500, COLORS.critical_500, COLORS.white);
|
|
17
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
import { useResizeDetector } from 'react-resize-detector';
|
|
25
|
+
import { Tooltip } from './TooltipStyles';
|
|
26
|
+
import { Size } from '..';
|
|
27
|
+
var TooltipOverflow = function (_a) {
|
|
28
|
+
var label = _a.label, children = _a.children, input = _a.input, withArrow = _a.withArrow, maxWidth = _a.maxWidth, width = _a.width, value = _a.value, _b = _a.size, size = _b === void 0 ? Size.Small : _b, _c = _a.height, height = _c === void 0 ? 'auto' : _c, _d = _a.align, align = _d === void 0 ? 'center' : _d, _e = _a.position, position = _e === void 0 ? 'top' : _e, props = __rest(_a, ["label", "children", "input", "withArrow", "maxWidth", "width", "value", "size", "height", "align", "position"]);
|
|
29
|
+
var _f = React.useState(false), textOverflowed = _f[0], setTextOverflowed = _f[1];
|
|
30
|
+
var _g = React.useState(false), focused = _g[0], setFocused = _g[1];
|
|
31
|
+
var _h = useResizeDetector({ targetRef: input }), customW = _h.width, customH = _h.height;
|
|
32
|
+
React.useEffect(function () {
|
|
33
|
+
checkIfOverflowed();
|
|
34
|
+
}, [customW, customH]);
|
|
35
|
+
var checkIfOverflowed = function () {
|
|
36
|
+
var _a;
|
|
37
|
+
//adding +3 offset to offsetWidth, because sometimes when there is no overflow, scrollWidth can be equal to offsetWidth + 1
|
|
38
|
+
var over = (_a = (input && !focused && input.current && input.current.offsetWidth + 3 < input.current.scrollWidth)) !== null && _a !== void 0 ? _a : false;
|
|
39
|
+
setTextOverflowed(over);
|
|
40
|
+
};
|
|
41
|
+
React.useEffect(function () {
|
|
42
|
+
checkIfOverflowed();
|
|
43
|
+
});
|
|
44
|
+
var onFocus = function () {
|
|
45
|
+
checkIfOverflowed();
|
|
46
|
+
setFocused(true);
|
|
47
|
+
};
|
|
48
|
+
var onBlur = function () {
|
|
49
|
+
setFocused(false);
|
|
50
|
+
};
|
|
51
|
+
React.useEffect(function () {
|
|
52
|
+
return function () {
|
|
53
|
+
if (input === null || input === void 0 ? void 0 : input.current) {
|
|
54
|
+
input === null || input === void 0 ? void 0 : input.current.removeEventListener("focus", onFocus);
|
|
55
|
+
input === null || input === void 0 ? void 0 : input.current.removeEventListener("blur", onBlur);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}, []);
|
|
59
|
+
var renderedCallback = React.useCallback(function () {
|
|
60
|
+
if (input && input.current) {
|
|
61
|
+
input.current.addEventListener("focus", onFocus);
|
|
62
|
+
input.current.addEventListener("blur", onBlur);
|
|
63
|
+
checkIfOverflowed();
|
|
64
|
+
}
|
|
65
|
+
}, []);
|
|
66
|
+
return React.createElement("div", { ref: renderedCallback }, textOverflowed && React.createElement(Tooltip, __assign({ align: align, height: height, role: "tooltip", maxWidth: maxWidth, width: width, size: size, withArrow: withArrow, position: position }, props),
|
|
67
|
+
React.createElement("span", null,
|
|
68
|
+
children,
|
|
69
|
+
" ")));
|
|
70
|
+
};
|
|
71
|
+
export default TooltipOverflow;
|
|
@@ -8,7 +8,7 @@ export declare const Tooltip: import("styled-components").StyledComponent<"div",
|
|
|
8
8
|
position?: 'top' | 'right' | 'bottom' | 'left' | undefined;
|
|
9
9
|
width?: string | undefined;
|
|
10
10
|
}, never>;
|
|
11
|
-
export declare const TooltipTrigger: (triggerType: 'hover' | 'click', delay?: string) => import("styled-components").FlattenSimpleInterpolation;
|
|
11
|
+
export declare const TooltipTrigger: (triggerType: 'hover' | 'click', delay?: string | undefined) => import("styled-components").FlattenSimpleInterpolation;
|
|
12
12
|
export declare const TooltipContainer: import("styled-components").StyledComponent<"div", any, {
|
|
13
13
|
triggerType: 'hover' | 'click';
|
|
14
14
|
delay?: string | undefined;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
import styled, { css } from 'styled-components';
|
|
6
|
+
import { Size } from '../types';
|
|
7
|
+
import { BOXSHADOWS, COLORS, ComponentTextStyle, focusStyles } from '../styles';
|
|
8
|
+
import { ComponentMStyling, ComponentSStyling, ComponentXSStyling } from '../styles/typography';
|
|
9
|
+
import { Z_INDEXES } from '../styles/z-indexes';
|
|
10
|
+
var distanceToEdge = function (size) {
|
|
11
|
+
return size == Size.XSmall ? '8px' : !size || size == Size.Small ? '12px' : '16px';
|
|
12
|
+
};
|
|
13
|
+
export var Tooltip = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n pointer-events: none;\n ", "\n ", "\n ", "\n ", "\n box-shadow: ", ";\n box-sizing: border-box;\n\n padding: ", ";\n border-radius: 2px;\n ", "\n height: ", ";\n max-width: ", ";\n background: ", ";\n position: absolute;\n opacity: 0;\n z-index: ", ";\n ", "\n\n ", "\n ", "\n \n ", "\n\n\n&::after {\n ", "\n content: \"\";\n position: absolute;\n ", "\n\n ", "\n ", "\n\n ", "\n\n ", "\n margin: -0.5px;\n border-width: 4px;\n border-style: solid;\n border-color: ", " ", "\n ", " ", ";\n }\n\n & > span {\n word-wrap: break-word;\n color: white;\n }\n"], ["\n pointer-events: none;\n ", "\n ", "\n ", "\n ", "\n box-shadow: ", ";\n box-sizing: border-box;\n\n padding: ", ";\n border-radius: 2px;\n ", "\n height: ", ";\n max-width: ", ";\n background: ", ";\n position: absolute;\n opacity: 0;\n z-index: ", ";\n ", "\n\n ", "\n ", "\n \n ", "\n\n\n&::after {\n ", "\n content: \"\";\n position: absolute;\n ", "\n\n ", "\n ", "\n\n ", "\n\n ", "\n margin: -0.5px;\n border-width: 4px;\n border-style: solid;\n border-color: ", " ", "\n ", " ", ";\n }\n\n & > span {\n word-wrap: break-word;\n color: white;\n }\n"])), function (props) { return (props.size == Size.Small || props.size != Size.Medium ? ComponentSStyling(ComponentTextStyle.Regular, COLORS.white) : ''); }, function (props) { return (props.size == Size.XSmall ? ComponentXSStyling(ComponentTextStyle.Regular, COLORS.white) : ''); }, function (props) { return (props.size == Size.Medium ? ComponentMStyling(ComponentTextStyle.Regular, COLORS.white) : ''); }, function (props) { return (props.align == 'center' ? 'text-align: center;' : ''); }, BOXSHADOWS.BOXSHADOW_L2, function (props) { return (props.size == Size.XSmall ? '4px 8px' : props.size == Size.Medium ? '8px 12px' : '6px 10px'); }, function (props) { return (props.width ? "width: ".concat(props.width, ";") : 'width: max-content;'); }, function (props) { return props.height; }, function (props) { var _a; return (_a = props.maxWidth) !== null && _a !== void 0 ? _a : '34em'; }, COLORS.primary_800, Z_INDEXES.tooltip, function (props) { return (props.position == 'top' ? 'bottom: 110%;' : props.position == 'bottom' ? 'top: 110%;' : ''); }, function (props) { return (props.position == 'left' ? 'bottom: 50%; transform: translateX(-110%) translateY(50%);' : ''); }, function (props) { return (props.position == 'right' ? 'bottom: 50%;left: 110%; transform: translateY(50%);' : ''); }, function (props) {
|
|
14
|
+
return props.position == 'left' || props.position == 'right'
|
|
15
|
+
? ''
|
|
16
|
+
: props.align == 'start'
|
|
17
|
+
? 'left: 0%;'
|
|
18
|
+
: props.align == 'end'
|
|
19
|
+
? 'right: 0%;'
|
|
20
|
+
: 'left: 50%; transform: translateX(-50%);';
|
|
21
|
+
}, function (props) { return (!props.withArrow ? 'display: none;' : ''); }, function (props) { return (props.position == 'top' ? 'top: 100%;' : props.position == 'bottom' ? 'bottom: 100%;' : ''); }, function (props) { return (props.position == 'right' ? 'right: 100%; bottom: 50%; transform: translateY(50%);' : ''); }, function (props) { return (props.position == 'left' ? 'left: 100%; bottom: 50%; transform: translateY(50%);' : ''); }, function (props) {
|
|
22
|
+
return props.position == 'left' || props.position == 'right'
|
|
23
|
+
? ''
|
|
24
|
+
: props.align == 'start'
|
|
25
|
+
? "left: ".concat(distanceToEdge(props.size), ";")
|
|
26
|
+
: props.align == 'end'
|
|
27
|
+
? "right: ".concat(distanceToEdge(props.size), ";")
|
|
28
|
+
: 'left: 50%;';
|
|
29
|
+
}, function (props) { return (props.position == 'left' ? '' : 'margin-left: -5px;'); }, function (props) { return (props.position == 'top' ? COLORS.primary_800 : 'transparent'); }, function (props) { return (props.position == 'right' ? COLORS.primary_800 : 'transparent'); }, function (props) { return (props.position == 'bottom' ? COLORS.primary_800 : 'transparent'); }, function (props) { return (props.position == 'left' ? COLORS.primary_800 : 'transparent'); });
|
|
30
|
+
Tooltip.defaultProps = {
|
|
31
|
+
withArrow: false,
|
|
32
|
+
size: Size.Small,
|
|
33
|
+
height: 'auto',
|
|
34
|
+
align: 'center',
|
|
35
|
+
position: 'bottom',
|
|
36
|
+
};
|
|
37
|
+
export var TooltipTrigger = function (triggerType, delay) { return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), triggerType == 'hover'
|
|
38
|
+
? "&:hover ".concat(Tooltip, ", &:focus-within ").concat(Tooltip, ", &:focus ").concat(Tooltip, " {\n opacity: 1;\n transition: 0.5s;\n transition-delay: ").concat(delay !== null && delay !== void 0 ? delay : '0.7s', ";\n }")
|
|
39
|
+
: "& ".concat(Tooltip, " {\n transition: 0.5s;\n transition-delay: ").concat(delay !== null && delay !== void 0 ? delay : '0s', ";\n }\n \n &.show ").concat(Tooltip, " {\n opacity: 1;\n }\n \n &.hide ").concat(Tooltip, " {\n opacity: 0;\n }")); };
|
|
40
|
+
export var TooltipContainer = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: inline-block;\n position: relative;\n\n ", "\n\n &:focus {\n ", "\n }\n"], ["\n display: inline-block;\n position: relative;\n\n ", "\n\n &:focus {\n ", "\n }\n"])), function (props) { return TooltipTrigger(props.triggerType, props.delay); }, focusStyles);
|
|
41
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import * as React from 'react';
|
|
24
|
+
import { TooltipContainer, Tooltip } from './TooltipStyles';
|
|
25
|
+
import { useClickOutsideRef } from '../common';
|
|
26
|
+
import { useEffect, useRef } from "react";
|
|
27
|
+
import { Size } from "../types";
|
|
28
|
+
var TooltipWrapper = function (_a) {
|
|
29
|
+
var label = _a.label, children = _a.children, withArrow = _a.withArrow, tabIndex = _a.tabIndex, _b = _a.size, size = _b === void 0 ? Size.Small : _b, _c = _a.height, height = _c === void 0 ? 'auto' : _c, _d = _a.delay, delay = _d === void 0 ? undefined : _d, _e = _a.align, align = _e === void 0 ? 'center' : _e, _f = _a.position, position = _f === void 0 ? 'bottom' : _f, _g = _a.trigger, trigger = _g === void 0 ? 'hover' : _g, _h = _a.hideAfter, hideAfter = _h === void 0 ? 5000 : _h, props = __rest(_a, ["label", "children", "withArrow", "tabIndex", "size", "height", "delay", "align", "position", "trigger", "hideAfter"]);
|
|
30
|
+
var _j = React.useState(false), showTooltip = _j[0], setShowTooltip = _j[1];
|
|
31
|
+
var timeoutRef = useRef();
|
|
32
|
+
var ref = useClickOutsideRef(function () { return setShowTooltip(false); });
|
|
33
|
+
var handleClick = function (e) {
|
|
34
|
+
var _a;
|
|
35
|
+
if ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.contains(e === null || e === void 0 ? void 0 : e.target)) {
|
|
36
|
+
setShowTooltip(true);
|
|
37
|
+
timeoutRef.current && clearTimeout(timeoutRef.current);
|
|
38
|
+
timeoutRef.current = setTimeout(function () { return setShowTooltip(false); }, hideAfter);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var handleButtonDown = function (e) {
|
|
42
|
+
if ((e === null || e === void 0 ? void 0 : e.key) === 'Enter' || (e === null || e === void 0 ? void 0 : e.key) === ' ') {
|
|
43
|
+
setShowTooltip(true);
|
|
44
|
+
timeoutRef.current && clearTimeout(timeoutRef.current);
|
|
45
|
+
timeoutRef.current = setTimeout(function () { return setShowTooltip(false); }, hideAfter);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
useEffect(function () {
|
|
49
|
+
var _a;
|
|
50
|
+
if (trigger == 'click') {
|
|
51
|
+
document.addEventListener('mousedown', handleClick);
|
|
52
|
+
(_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.addEventListener('keydown', handleButtonDown);
|
|
53
|
+
return function () {
|
|
54
|
+
var _a;
|
|
55
|
+
document.removeEventListener('mousedown', handleClick);
|
|
56
|
+
(_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', handleButtonDown);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}, [trigger]);
|
|
60
|
+
var cls = "".concat(trigger === 'click' ? showTooltip ? 'show' : 'hide' : '');
|
|
61
|
+
return React.createElement(TooltipContainer, { ref: ref, delay: delay, tabIndex: tabIndex, triggerType: trigger, className: cls },
|
|
62
|
+
React.createElement(Tooltip, __assign({ align: align, height: height, role: "tooltip", size: size, withArrow: withArrow, position: position }, props), label),
|
|
63
|
+
children);
|
|
64
|
+
};
|
|
65
|
+
export default TooltipWrapper;
|