@laerdal/life-react-components 6.0.0-dev.19.full → 6.0.0-dev.2.full
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/ContentAccordion.cjs +11 -40
- package/dist/Accordion/ContentAccordion.cjs.map +1 -1
- package/dist/Accordion/ContentAccordion.js +11 -40
- package/dist/Accordion/ContentAccordion.js.map +1 -1
- package/dist/Accordion/styles.cjs +13 -51
- package/dist/Accordion/styles.cjs.map +1 -1
- package/dist/Accordion/styles.js +13 -51
- package/dist/Accordion/styles.js.map +1 -1
- package/dist/Banners/Banner.cjs +34 -38
- package/dist/Banners/Banner.cjs.map +1 -1
- package/dist/Banners/Banner.d.ts +3 -2
- package/dist/Banners/Banner.js +34 -38
- package/dist/Banners/Banner.js.map +1 -1
- package/dist/Banners/styles.cjs +16 -8
- package/dist/Banners/styles.cjs.map +1 -1
- package/dist/Banners/styles.js +16 -8
- package/dist/Banners/styles.js.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.cjs +2 -8
- package/dist/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.js +2 -8
- package/dist/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/Breadcrumb/styles.cjs +4 -15
- package/dist/Breadcrumb/styles.cjs.map +1 -1
- package/dist/Breadcrumb/styles.js +4 -15
- package/dist/Breadcrumb/styles.js.map +1 -1
- package/dist/Button/BackButton.cjs +6 -27
- package/dist/Button/BackButton.cjs.map +1 -1
- package/dist/Button/BackButton.js +6 -27
- package/dist/Button/BackButton.js.map +1 -1
- package/dist/Button/Button.cjs +47 -179
- package/dist/Button/Button.cjs.map +1 -1
- package/dist/Button/Button.d.ts +0 -2
- package/dist/Button/Button.js +47 -179
- package/dist/Button/Button.js.map +1 -1
- package/dist/Button/Iconbutton.cjs +21 -83
- package/dist/Button/Iconbutton.cjs.map +1 -1
- package/dist/Button/Iconbutton.js +21 -83
- package/dist/Button/Iconbutton.js.map +1 -1
- package/dist/Card/HorizontalCard/HorizontalCard.cjs +5 -20
- package/dist/Card/HorizontalCard/HorizontalCard.cjs.map +1 -1
- package/dist/Card/HorizontalCard/HorizontalCard.js +5 -20
- package/dist/Card/HorizontalCard/HorizontalCard.js.map +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardBody.cjs +3 -12
- package/dist/Card/HorizontalCard/HorizontalCardBody.cjs.map +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardBody.js +3 -12
- package/dist/Card/HorizontalCard/HorizontalCardBody.js.map +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.cjs +2 -8
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.cjs.map +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.js +2 -8
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.js.map +1 -1
- package/dist/Card/VerticalCard/Card.cjs +5 -20
- package/dist/Card/VerticalCard/Card.cjs.map +1 -1
- package/dist/Card/VerticalCard/Card.js +5 -20
- package/dist/Card/VerticalCard/Card.js.map +1 -1
- package/dist/Card/VerticalCard/CardBottomSection.cjs +7 -28
- package/dist/Card/VerticalCard/CardBottomSection.cjs.map +1 -1
- package/dist/Card/VerticalCard/CardBottomSection.js +7 -28
- package/dist/Card/VerticalCard/CardBottomSection.js.map +1 -1
- package/dist/Card/VerticalCard/CardMiddleSection.cjs +4 -19
- package/dist/Card/VerticalCard/CardMiddleSection.cjs.map +1 -1
- package/dist/Card/VerticalCard/CardMiddleSection.js +4 -19
- package/dist/Card/VerticalCard/CardMiddleSection.js.map +1 -1
- package/dist/Card/VerticalCard/CardTopSection.cjs +2 -9
- package/dist/Card/VerticalCard/CardTopSection.cjs.map +1 -1
- package/dist/Card/VerticalCard/CardTopSection.js +2 -9
- package/dist/Card/VerticalCard/CardTopSection.js.map +1 -1
- package/dist/Chips/ChipStyles.cjs +1 -4
- package/dist/Chips/ChipStyles.cjs.map +1 -1
- package/dist/Chips/ChipStyles.js +1 -4
- package/dist/Chips/ChipStyles.js.map +1 -1
- package/dist/ChipsInput/ChipInputField.cjs +4 -16
- package/dist/ChipsInput/ChipInputField.cjs.map +1 -1
- package/dist/ChipsInput/ChipInputField.js +4 -16
- package/dist/ChipsInput/ChipInputField.js.map +1 -1
- package/dist/Dropdown/BasicDropdown.cjs +3 -12
- package/dist/Dropdown/BasicDropdown.cjs.map +1 -1
- package/dist/Dropdown/BasicDropdown.js +3 -12
- package/dist/Dropdown/BasicDropdown.js.map +1 -1
- package/dist/Dropdown/CommonStyling.cjs +42 -172
- package/dist/Dropdown/CommonStyling.cjs.map +1 -1
- package/dist/Dropdown/CommonStyling.js +42 -172
- package/dist/Dropdown/CommonStyling.js.map +1 -1
- package/dist/Dropdown/DropdownContent.cjs +10 -36
- package/dist/Dropdown/DropdownContent.cjs.map +1 -1
- package/dist/Dropdown/DropdownContent.js +10 -36
- package/dist/Dropdown/DropdownContent.js.map +1 -1
- package/dist/Dropdown/DropdownFilter.cjs +3 -12
- package/dist/Dropdown/DropdownFilter.cjs.map +1 -1
- package/dist/Dropdown/DropdownFilter.js +3 -12
- package/dist/Dropdown/DropdownFilter.js.map +1 -1
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.cjs +1 -4
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.cjs.map +1 -1
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.js +1 -4
- package/dist/Footer/Components/FooterNewsletterAndSocialSection.js.map +1 -1
- package/dist/GlobalNavigationBar/Logo.cjs +1 -2
- package/dist/GlobalNavigationBar/Logo.cjs.map +1 -1
- package/dist/GlobalNavigationBar/Logo.js +1 -2
- package/dist/GlobalNavigationBar/Logo.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.cjs +1 -8
- package/dist/GlobalNavigationBar/desktop/MainMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.js +1 -8
- package/dist/GlobalNavigationBar/desktop/MainMenu.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs +2 -3
- package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js +2 -3
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/UserMenu.cjs +1 -4
- package/dist/GlobalNavigationBar/desktop/UserMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/UserMenu.js +1 -4
- package/dist/GlobalNavigationBar/desktop/UserMenu.js.map +1 -1
- package/dist/GlobalNavigationBar/mobile/CommonStyles.cjs.map +1 -1
- package/dist/GlobalNavigationBar/mobile/CommonStyles.js.map +1 -1
- package/dist/HyperLink/HyperLink.cjs +2 -14
- package/dist/HyperLink/HyperLink.cjs.map +1 -1
- package/dist/HyperLink/HyperLink.d.ts +0 -2
- package/dist/HyperLink/HyperLink.js +2 -14
- package/dist/HyperLink/HyperLink.js.map +1 -1
- package/dist/HyperLink/styling.cjs +8 -38
- package/dist/HyperLink/styling.cjs.map +1 -1
- package/dist/HyperLink/styling.js +8 -38
- package/dist/HyperLink/styling.js.map +1 -1
- package/dist/InputFields/Checkbox.cjs +14 -54
- package/dist/InputFields/Checkbox.cjs.map +1 -1
- package/dist/InputFields/Checkbox.js +14 -54
- package/dist/InputFields/Checkbox.js.map +1 -1
- package/dist/InputFields/DatepickerField.cjs +43 -149
- package/dist/InputFields/DatepickerField.cjs.map +1 -1
- package/dist/InputFields/DatepickerField.d.ts +1 -1
- package/dist/InputFields/DatepickerField.js +44 -150
- package/dist/InputFields/DatepickerField.js.map +1 -1
- package/dist/InputFields/DatepickerFieldHeader.cjs +5 -20
- package/dist/InputFields/DatepickerFieldHeader.cjs.map +1 -1
- package/dist/InputFields/DatepickerFieldHeader.js +5 -20
- package/dist/InputFields/DatepickerFieldHeader.js.map +1 -1
- package/dist/InputFields/Label.cjs +11 -38
- package/dist/InputFields/Label.cjs.map +1 -1
- package/dist/InputFields/Label.js +11 -38
- package/dist/InputFields/Label.js.map +1 -1
- package/dist/InputFields/NumberField.cjs +16 -66
- package/dist/InputFields/NumberField.cjs.map +1 -1
- package/dist/InputFields/NumberField.js +16 -66
- package/dist/InputFields/NumberField.js.map +1 -1
- package/dist/InputFields/PasswordField.cjs +1 -4
- package/dist/InputFields/PasswordField.cjs.map +1 -1
- package/dist/InputFields/PasswordField.d.ts +1 -1
- package/dist/InputFields/PasswordField.js +1 -4
- package/dist/InputFields/PasswordField.js.map +1 -1
- package/dist/InputFields/QuickSearch.cjs +6 -30
- package/dist/InputFields/QuickSearch.cjs.map +1 -1
- package/dist/InputFields/QuickSearch.js +6 -30
- package/dist/InputFields/QuickSearch.js.map +1 -1
- package/dist/InputFields/RadioButton.cjs +15 -63
- package/dist/InputFields/RadioButton.cjs.map +1 -1
- package/dist/InputFields/RadioButton.js +15 -63
- package/dist/InputFields/RadioButton.js.map +1 -1
- package/dist/InputFields/RichTextField.cjs +15 -60
- package/dist/InputFields/RichTextField.cjs.map +1 -1
- package/dist/InputFields/RichTextField.js +15 -60
- package/dist/InputFields/RichTextField.js.map +1 -1
- package/dist/InputFields/SearchBar.cjs +1 -4
- package/dist/InputFields/SearchBar.cjs.map +1 -1
- package/dist/InputFields/SearchBar.js +1 -4
- package/dist/InputFields/SearchBar.js.map +1 -1
- package/dist/InputFields/TextField.cjs +3 -9
- package/dist/InputFields/TextField.cjs.map +1 -1
- package/dist/InputFields/TextField.d.ts +1 -1
- package/dist/InputFields/TextField.js +3 -9
- package/dist/InputFields/TextField.js.map +1 -1
- package/dist/InputFields/Textarea.cjs +17 -68
- package/dist/InputFields/Textarea.cjs.map +1 -1
- package/dist/InputFields/Textarea.js +17 -68
- package/dist/InputFields/Textarea.js.map +1 -1
- package/dist/InputFields/components/SearchBarInput.cjs +7 -28
- package/dist/InputFields/components/SearchBarInput.cjs.map +1 -1
- package/dist/InputFields/components/SearchBarInput.js +7 -28
- package/dist/InputFields/components/SearchBarInput.js.map +1 -1
- package/dist/InputFields/components/SearchField.cjs +15 -60
- package/dist/InputFields/components/SearchField.cjs.map +1 -1
- package/dist/InputFields/components/SearchField.js +15 -60
- package/dist/InputFields/components/SearchField.js.map +1 -1
- package/dist/InputFields/styling.cjs +39 -95
- package/dist/InputFields/styling.cjs.map +1 -1
- package/dist/InputFields/styling.d.ts +2 -1
- package/dist/InputFields/styling.js +39 -95
- package/dist/InputFields/styling.js.map +1 -1
- package/dist/LinearProgress/LinearProgress.cjs +53 -161
- package/dist/LinearProgress/LinearProgress.cjs.map +1 -1
- package/dist/LinearProgress/LinearProgress.js +53 -161
- package/dist/LinearProgress/LinearProgress.js.map +1 -1
- package/dist/List/ListRow.cjs +9 -36
- package/dist/List/ListRow.cjs.map +1 -1
- package/dist/List/ListRow.js +9 -36
- package/dist/List/ListRow.js.map +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.cjs +1 -4
- package/dist/LoadingIndicator/LoadingIndicator.cjs.map +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.js +1 -4
- package/dist/LoadingIndicator/LoadingIndicator.js.map +1 -1
- package/dist/LoadingPage/GlobalLoadingPage.cjs +1 -4
- package/dist/LoadingPage/GlobalLoadingPage.cjs.map +1 -1
- package/dist/LoadingPage/GlobalLoadingPage.js +1 -4
- package/dist/LoadingPage/GlobalLoadingPage.js.map +1 -1
- package/dist/MenuItem/MenuItem.cjs +26 -101
- package/dist/MenuItem/MenuItem.cjs.map +1 -1
- package/dist/MenuItem/MenuItem.js +26 -101
- package/dist/MenuItem/MenuItem.js.map +1 -1
- package/dist/MiniProductCard/MiniProductCard.cjs +1 -15
- package/dist/MiniProductCard/MiniProductCard.cjs.map +1 -1
- package/dist/MiniProductCard/MiniProductCard.d.ts +0 -1
- package/dist/MiniProductCard/MiniProductCard.js +1 -15
- package/dist/MiniProductCard/MiniProductCard.js.map +1 -1
- package/dist/Modals/Modal.cjs +1 -4
- package/dist/Modals/Modal.cjs.map +1 -1
- package/dist/Modals/Modal.js +1 -4
- package/dist/Modals/Modal.js.map +1 -1
- package/dist/Modals/ModalContent.cjs +6 -24
- package/dist/Modals/ModalContent.cjs.map +1 -1
- package/dist/Modals/ModalContent.js +6 -24
- package/dist/Modals/ModalContent.js.map +1 -1
- package/dist/Modals/ModalDialog.cjs +3 -12
- package/dist/Modals/ModalDialog.cjs.map +1 -1
- package/dist/Modals/ModalDialog.js +3 -12
- package/dist/Modals/ModalDialog.js.map +1 -1
- package/dist/Modals/ModalNote.cjs +4 -16
- package/dist/Modals/ModalNote.cjs.map +1 -1
- package/dist/Modals/ModalNote.js +4 -16
- package/dist/Modals/ModalNote.js.map +1 -1
- package/dist/Modals/ModalStyles.cjs +11 -44
- package/dist/Modals/ModalStyles.cjs.map +1 -1
- package/dist/Modals/ModalStyles.js +11 -44
- package/dist/Modals/ModalStyles.js.map +1 -1
- package/dist/NavItem/NavItem.cjs +2 -11
- package/dist/NavItem/NavItem.cjs.map +1 -1
- package/dist/NavItem/NavItem.js +2 -11
- package/dist/NavItem/NavItem.js.map +1 -1
- package/dist/NotificationDot/NotificationDot.cjs +2 -17
- package/dist/NotificationDot/NotificationDot.cjs.map +1 -1
- package/dist/NotificationDot/NotificationDot.js +2 -17
- package/dist/NotificationDot/NotificationDot.js.map +1 -1
- package/dist/Paginator/Paginator.cjs +29 -76
- package/dist/Paginator/Paginator.cjs.map +1 -1
- package/dist/Paginator/Paginator.js +29 -76
- package/dist/Paginator/Paginator.js.map +1 -1
- package/dist/Panel/Panel.cjs +1 -4
- package/dist/Panel/Panel.cjs.map +1 -1
- package/dist/Panel/Panel.js +1 -4
- package/dist/Panel/Panel.js.map +1 -1
- package/dist/Popover/Popover.cjs +3 -22
- package/dist/Popover/Popover.cjs.map +1 -1
- package/dist/Popover/Popover.js +3 -22
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/ProfileButton/ProfileButton.cjs +2 -9
- package/dist/ProfileButton/ProfileButton.cjs.map +1 -1
- package/dist/ProfileButton/ProfileButton.js +2 -9
- package/dist/ProfileButton/ProfileButton.js.map +1 -1
- package/dist/SegmentControl/SegmentControl.cjs +11 -46
- package/dist/SegmentControl/SegmentControl.cjs.map +1 -1
- package/dist/SegmentControl/SegmentControl.js +11 -46
- package/dist/SegmentControl/SegmentControl.js.map +1 -1
- package/dist/SideMenu/SideMenuHeader.cjs +3 -12
- package/dist/SideMenu/SideMenuHeader.cjs.map +1 -1
- package/dist/SideMenu/SideMenuHeader.js +3 -12
- package/dist/SideMenu/SideMenuHeader.js.map +1 -1
- package/dist/Switcher/SwitcherMenuItem.cjs +1 -4
- package/dist/Switcher/SwitcherMenuItem.cjs.map +1 -1
- package/dist/Switcher/SwitcherMenuItem.js +1 -4
- package/dist/Switcher/SwitcherMenuItem.js.map +1 -1
- package/dist/Table/TableFooter.cjs +2 -8
- package/dist/Table/TableFooter.cjs.map +1 -1
- package/dist/Table/TableFooter.js +2 -8
- package/dist/Table/TableFooter.js.map +1 -1
- package/dist/Table/TableStyles.cjs +33 -132
- package/dist/Table/TableStyles.cjs.map +1 -1
- package/dist/Table/TableStyles.js +33 -132
- package/dist/Table/TableStyles.js.map +1 -1
- package/dist/Tabs/HorizontalTabs.cjs +18 -68
- package/dist/Tabs/HorizontalTabs.cjs.map +1 -1
- package/dist/Tabs/HorizontalTabs.js +18 -68
- package/dist/Tabs/HorizontalTabs.js.map +1 -1
- package/dist/Tabs/TabLink.cjs +1 -4
- package/dist/Tabs/TabLink.cjs.map +1 -1
- package/dist/Tabs/TabLink.js +1 -4
- package/dist/Tabs/TabLink.js.map +1 -1
- package/dist/Tabs/VerticalTabs.cjs +0 -1
- package/dist/Tabs/VerticalTabs.cjs.map +1 -1
- package/dist/Tabs/VerticalTabs.js +0 -1
- package/dist/Tabs/VerticalTabs.js.map +1 -1
- package/dist/Tag/Tag.cjs +2 -2
- package/dist/Tag/Tag.cjs.map +1 -1
- package/dist/Tag/Tag.js +2 -2
- package/dist/Tag/Tag.js.map +1 -1
- package/dist/Tile/Tile.cjs +2 -8
- package/dist/Tile/Tile.cjs.map +1 -1
- package/dist/Tile/Tile.js +2 -8
- package/dist/Tile/Tile.js.map +1 -1
- package/dist/Tile/TileCommonItems.cjs +2 -8
- package/dist/Tile/TileCommonItems.cjs.map +1 -1
- package/dist/Tile/TileCommonItems.js +2 -8
- package/dist/Tile/TileCommonItems.js.map +1 -1
- package/dist/Tile/TileFooter.cjs +1 -4
- package/dist/Tile/TileFooter.cjs.map +1 -1
- package/dist/Tile/TileFooter.js +1 -4
- package/dist/Tile/TileFooter.js.map +1 -1
- package/dist/Tile/TileHeader.cjs +3 -12
- package/dist/Tile/TileHeader.cjs.map +1 -1
- package/dist/Tile/TileHeader.js +3 -12
- package/dist/Tile/TileHeader.js.map +1 -1
- package/dist/Toasters/Toast.cjs +13 -62
- package/dist/Toasters/Toast.cjs.map +1 -1
- package/dist/Toasters/Toast.js +13 -62
- package/dist/Toasters/Toast.js.map +1 -1
- package/dist/Toggles/ToggleButton.cjs +3 -9
- package/dist/Toggles/ToggleButton.cjs.map +1 -1
- package/dist/Toggles/ToggleButton.d.ts +1 -1
- package/dist/Toggles/ToggleButton.js +3 -9
- package/dist/Toggles/ToggleButton.js.map +1 -1
- package/dist/Toggles/TogglerStyles.cjs +8 -22
- package/dist/Toggles/TogglerStyles.cjs.map +1 -1
- package/dist/Toggles/TogglerStyles.js +8 -22
- package/dist/Toggles/TogglerStyles.js.map +1 -1
- package/dist/Tooltips/TooltipStyles.cjs +6 -28
- package/dist/Tooltips/TooltipStyles.cjs.map +1 -1
- package/dist/Tooltips/TooltipStyles.js +6 -28
- package/dist/Tooltips/TooltipStyles.js.map +1 -1
- package/dist/common/InputStyling.cjs +7 -30
- package/dist/common/InputStyling.cjs.map +1 -1
- package/dist/common/InputStyling.js +7 -30
- package/dist/common/InputStyling.js.map +1 -1
- package/dist/custom.d.ts +0 -2
- package/dist/styles/colors.cjs +84 -439
- package/dist/styles/colors.cjs.map +1 -1
- package/dist/styles/colors.d.ts +11 -200
- package/dist/styles/colors.js +84 -439
- package/dist/styles/colors.js.map +1 -1
- package/dist/styles/global.cjs +2 -19
- package/dist/styles/global.cjs.map +1 -1
- package/dist/styles/global.d.ts +2 -3
- package/dist/styles/global.js +3 -18
- package/dist/styles/global.js.map +1 -1
- package/dist/styles/index.cjs +9 -21
- package/dist/styles/index.cjs.map +1 -1
- package/dist/styles/index.d.ts +2 -2
- package/dist/styles/index.js +6 -18
- package/dist/styles/index.js.map +1 -1
- package/package.json +141 -144
- package/dist/Accordion/__tests__/AccordionMenu.test.tsx +0 -42
- package/dist/Accordion/__tests__/ContentAccordion.test.tsx +0 -150
- package/dist/AuthPage/__tests__/AuthPage.test.tsx +0 -27
- package/dist/Banners/__tests__/Banner.test.tsx +0 -47
- package/dist/Banners/__tests__/OverviewBanner.test.tsx +0 -20
- package/dist/Breadcrumb/__tests__/Breadcrumb.test.tsx +0 -78
- package/dist/Button/__tests__/BackButton.test.tsx +0 -32
- package/dist/Button/__tests__/Button.test.tsx +0 -45
- package/dist/Button/__tests__/DualButton.test.tsx +0 -119
- package/dist/Card/HorizontalCard/__tests__/HorizontalCard.test.tsx +0 -71
- package/dist/Card/HorizontalCard/__tests__/VerticalCard.test.tsx +0 -124
- package/dist/Card/__tests__/Card.test.tsx +0 -146
- package/dist/Chips/__tests__/ActionChip.test.tsx +0 -94
- package/dist/Chips/__tests__/ChoiceChips.test.tsx +0 -79
- package/dist/Chips/__tests__/FilterChip.test.tsx +0 -95
- package/dist/Chips/__tests__/InputChip.test.tsx +0 -155
- package/dist/ChipsInput/__tests__/ChipDropdownInput.test.tsx +0 -100
- package/dist/ChipsInput/__tests__/ChipInputFields.test.tsx +0 -155
- package/dist/Dropdown/__tests__/DropdownFilter.test.tsx +0 -39
- package/dist/Footer/__tests__/Footer.test.tsx +0 -182
- package/dist/GlobalNavigationBar/__tests__/GlobalNavigationBar.tests.d.ts +0 -1
- package/dist/GlobalNavigationBar/__tests__/Logo.test.tsx +0 -39
- package/dist/GlobalNavigationBar/__tests__/Logo.tests.d.ts +0 -1
- package/dist/GlobalNavigationBar/desktop/__tests__/DesktopActions.test.tsx +0 -108
- package/dist/GlobalNavigationBar/desktop/__tests__/ExtendedMainMenu.test.tsx +0 -28
- package/dist/GlobalNavigationBar/desktop/__tests__/MainMenu.test.tsx +0 -55
- package/dist/GlobalNavigationBar/desktop/__tests__/RightSideNav.test.tsx +0 -45
- package/dist/GlobalNavigationBar/desktop/__tests__/UserMenu.test.tsx +0 -125
- package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenu.test.tsx +0 -317
- package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuContent.test.tsx +0 -294
- package/dist/GlobalNavigationBar/mobile/__tests__/MobileMenuHeader.test.tsx +0 -195
- package/dist/InputFields/__tests__/NumberField.test.tsx +0 -67
- package/dist/InputFields/__tests__/NumberInput.test.tsx +0 -68
- package/dist/InputFields/__tests__/QuickSearch.test.tsx +0 -42
- package/dist/LinearProgress/__tests__/LinearProgress.test.tsx +0 -25
- package/dist/List/__tests__/ListRow.test.tsx +0 -18
- package/dist/List/__tests__/ListRow.tests.d.ts +0 -1
- package/dist/LoadingPage/__tests__/GlobalLoadingPage.test.tsx +0 -23
- package/dist/Modals/__tests__/Modal.test.tsx +0 -169
- package/dist/Modals/__tests__/ModalContainer.test.tsx +0 -77
- package/dist/Modals/__tests__/ModalContent.test.tsx +0 -126
- package/dist/NavItem/__tests__/NavItem.test.ts +0 -6
- package/dist/NotificationDot/__tests__/NotificationDot.test.tsx +0 -33
- package/dist/Paginator/__tests__/Paginator.test.tsx +0 -39
- package/dist/Popover/__tests__/Popover.test.tsx +0 -64
- package/dist/ProfileButton/__tests__/ProfileButton.test.tsx +0 -31
- package/dist/QuizButton/__tests__/QuizButton.test.tsx +0 -53
- package/dist/SegmentControl/__tests__/SegmentControl.test.tsx +0 -145
- package/dist/SideMenu/__tests__/SideMenu.test.tsx +0 -99
- package/dist/Switcher/__tests__/SwitcherMenuItem.tsx +0 -14
- package/dist/Table/__tests__/Table.test.tsx +0 -499
- package/dist/Tabs/__tests__/HorizontalTabs.test.tsx +0 -95
- package/dist/Tabs/__tests__/TabLink.test.tsx +0 -40
- package/dist/Tabs/__tests__/TabLink.tests.d.ts +0 -1
- package/dist/Tabs/__tests__/Tablist.test.tsx +0 -37
- package/dist/Tabs/__tests__/Tablist.tests.d.ts +0 -2
- package/dist/Tag/__tests__/Tag.test.tsx +0 -86
- package/dist/Toasters/__tests__/Toast.test.tsx +0 -74
- package/dist/Toggles/__tests__/ToggleButton.test.tsx +0 -53
- package/dist/Toggles/__tests__/ToggleSwitch.test.tsx +0 -87
- package/dist/Tooltips/__tests__/TooltipWrapper.test.tsx +0 -16
- package/dist/common/Link.cjs +0 -45
- package/dist/common/Link.cjs.map +0 -1
- package/dist/common/Link.d.ts +0 -9
- package/dist/common/Link.js +0 -37
- package/dist/common/Link.js.map +0 -1
- package/dist/common/NavigationHelper.cjs +0 -30
- package/dist/common/NavigationHelper.cjs.map +0 -1
- package/dist/common/NavigationHelper.d.ts +0 -4
- package/dist/common/NavigationHelper.js +0 -23
- package/dist/common/NavigationHelper.js.map +0 -1
- package/dist/styles/react-datepicker.css +0 -766
- package/dist/utils/color-tokens.cjs +0 -91
- package/dist/utils/color-tokens.cjs.map +0 -1
- package/dist/utils/color-tokens.d.ts +0 -19
- package/dist/utils/color-tokens.js +0 -82
- package/dist/utils/color-tokens.js.map +0 -1
|
@@ -20,14 +20,8 @@ export const TableWrapper = styled.div`
|
|
|
20
20
|
position: relative;
|
|
21
21
|
|
|
22
22
|
&.border{
|
|
23
|
-
border-left: 1px solid ${props => COLORS.
|
|
24
|
-
|
|
25
|
-
defaultVariant: 'subtle'
|
|
26
|
-
}, props.theme)};
|
|
27
|
-
border-right: 1px solid ${props => COLORS.generateToken({
|
|
28
|
-
componentType: 'border',
|
|
29
|
-
defaultVariant: 'subtle'
|
|
30
|
-
}, props.theme)};
|
|
23
|
+
border-left: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
24
|
+
border-right: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
31
25
|
}
|
|
32
26
|
`;
|
|
33
27
|
export const StyledTable = styled.table`
|
|
@@ -54,20 +48,11 @@ export const StyledTableHeaderTitleContent = styled.div`
|
|
|
54
48
|
width: 100%;
|
|
55
49
|
box-sizing: border-box;
|
|
56
50
|
min-height: 56px;
|
|
57
|
-
border-bottom: 1px solid ${props => COLORS.
|
|
58
|
-
|
|
59
|
-
defaultVariant: 'subtle'
|
|
60
|
-
}, props.theme)};
|
|
61
|
-
border-top: 2px solid ${props => COLORS.generateToken({
|
|
62
|
-
componentType: 'border',
|
|
63
|
-
defaultVariant: 'subtle'
|
|
64
|
-
}, props.theme)};
|
|
51
|
+
border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
52
|
+
border-top: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
65
53
|
padding: 0 16px;
|
|
66
54
|
|
|
67
|
-
${props => ComponentLStyling(ComponentTextStyle.Bold, COLORS.
|
|
68
|
-
componentType: 'text',
|
|
69
|
-
defaultVariant: 'default'
|
|
70
|
-
}, props.theme))}
|
|
55
|
+
${props => ComponentLStyling(ComponentTextStyle.Bold, COLORS.getColor('black', props.theme))}
|
|
71
56
|
.title-menu {
|
|
72
57
|
margin-right: -16px;
|
|
73
58
|
}
|
|
@@ -84,30 +69,18 @@ export const StyledTableHeaderColumnContent = styled.div`
|
|
|
84
69
|
display: flex;
|
|
85
70
|
align-items: center;
|
|
86
71
|
justify-content: space-between;
|
|
87
|
-
border-top: 1px solid ${props => COLORS.
|
|
88
|
-
|
|
89
|
-
defaultVariant: 'subtle'
|
|
90
|
-
}, props.theme)};
|
|
91
|
-
border-bottom: 1px solid ${props => COLORS.generateToken({
|
|
92
|
-
componentType: 'border',
|
|
93
|
-
defaultVariant: 'subtle'
|
|
94
|
-
}, props.theme)};
|
|
72
|
+
border-top: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
73
|
+
border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
95
74
|
`;
|
|
96
75
|
export const StyledTableHeaderColumnSortDirection = styled.span`
|
|
97
76
|
width: 24px;
|
|
98
77
|
height: 24px;
|
|
99
78
|
`;
|
|
100
79
|
export const StyledTableHeaderColumn = styled.th`
|
|
101
|
-
${props => ComponentSStyling(ComponentTextStyle.Bold, COLORS.
|
|
102
|
-
componentType: 'text',
|
|
103
|
-
defaultVariant: 'subtle'
|
|
104
|
-
}, props.theme))}
|
|
80
|
+
${props => ComponentSStyling(ComponentTextStyle.Bold, COLORS.getColor('neutral_600', props.theme))}
|
|
105
81
|
position: relative;
|
|
106
82
|
text-align: unset;
|
|
107
|
-
background-color: ${props => COLORS.
|
|
108
|
-
componentType: 'bg-surface',
|
|
109
|
-
defaultVariant: 'high'
|
|
110
|
-
}, props.theme)};
|
|
83
|
+
background-color: ${props => COLORS.getColor('white', props.theme)};
|
|
111
84
|
|
|
112
85
|
//fixes header heights no idea why
|
|
113
86
|
height: 1px;
|
|
@@ -116,26 +89,14 @@ export const StyledTableHeaderColumn = styled.th`
|
|
|
116
89
|
cursor: pointer;
|
|
117
90
|
|
|
118
91
|
&:hover {
|
|
119
|
-
background-color: ${props => COLORS.
|
|
120
|
-
|
|
121
|
-
state: 'hover'
|
|
122
|
-
}, props.theme)};
|
|
123
|
-
color: ${props => COLORS.generateToken({
|
|
124
|
-
componentType: 'text',
|
|
125
|
-
state: 'hover'
|
|
126
|
-
}, props.theme)};
|
|
92
|
+
background-color: ${props => COLORS.getColor('primary_20', props.theme)};
|
|
93
|
+
color: ${props => COLORS.getColor('primary_700', props.theme)};
|
|
127
94
|
z-index: ${Z_INDEXES.hover};
|
|
128
95
|
}
|
|
129
96
|
|
|
130
97
|
&:active {
|
|
131
|
-
background-color: ${props => COLORS.
|
|
132
|
-
|
|
133
|
-
state: 'active'
|
|
134
|
-
}, props.theme)};
|
|
135
|
-
color: ${props => COLORS.generateToken({
|
|
136
|
-
componentType: 'text',
|
|
137
|
-
state: 'active'
|
|
138
|
-
}, props.theme)};
|
|
98
|
+
background-color: ${props => COLORS.getColor('primary_100', props.theme)};
|
|
99
|
+
color: ${props => COLORS.getColor('primary_800', props.theme)};
|
|
139
100
|
z-index: ${Z_INDEXES.active};
|
|
140
101
|
}
|
|
141
102
|
|
|
@@ -178,30 +139,18 @@ export const StyledTableBodyRow = styled.tr`
|
|
|
178
139
|
cursor: pointer;
|
|
179
140
|
position: relative;
|
|
180
141
|
outline: none;
|
|
181
|
-
background-color: ${props => COLORS.
|
|
182
|
-
componentType: 'bg-surface',
|
|
183
|
-
defaultVariant: 'default'
|
|
184
|
-
}, props.theme)};
|
|
142
|
+
background-color: ${props => COLORS.getColor('white', props.theme)};
|
|
185
143
|
|
|
186
144
|
&:not(:last-child) {
|
|
187
|
-
border-bottom: 1px solid ${props => COLORS.
|
|
188
|
-
componentType: 'border',
|
|
189
|
-
defaultVariant: 'subtle'
|
|
190
|
-
}, props.theme)};
|
|
145
|
+
border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
191
146
|
}
|
|
192
147
|
|
|
193
148
|
&.selected{
|
|
194
|
-
background-color: ${props => COLORS.
|
|
195
|
-
componentType: 'bg-surface',
|
|
196
|
-
state: 'hover'
|
|
197
|
-
}, props.theme)};
|
|
149
|
+
background-color: ${props => COLORS.getColor('primary_100', props.theme)};
|
|
198
150
|
}
|
|
199
151
|
|
|
200
152
|
&:hover {
|
|
201
|
-
background-color: ${props => COLORS.
|
|
202
|
-
componentType: 'bg-surface',
|
|
203
|
-
state: 'hover'
|
|
204
|
-
}, props.theme)};
|
|
153
|
+
background-color: ${props => COLORS.getColor('primary_100', props.theme)};
|
|
205
154
|
z-index: ${Z_INDEXES.hover};
|
|
206
155
|
}
|
|
207
156
|
|
|
@@ -217,10 +166,7 @@ export const StyledTableBodyRow = styled.tr`
|
|
|
217
166
|
export const StyledTableNoRowsLabelRow = styled.tr`
|
|
218
167
|
position: relative;
|
|
219
168
|
outline: none;
|
|
220
|
-
background-color: ${props => COLORS.
|
|
221
|
-
componentType: 'bg-surface',
|
|
222
|
-
defaultVariant: 'high'
|
|
223
|
-
}, props.theme)};
|
|
169
|
+
background-color: ${props => COLORS.getColor('neutral_50', props.theme)};
|
|
224
170
|
`;
|
|
225
171
|
export const StyledTableBody = styled.tbody`
|
|
226
172
|
`;
|
|
@@ -229,10 +175,7 @@ export const StyledTableCellContent = styled.div`
|
|
|
229
175
|
min-height: ${props => props.$withNote ? '64px' : '48px'};
|
|
230
176
|
|
|
231
177
|
padding: 0 16px;
|
|
232
|
-
${props => ComponentSStyling(ComponentTextStyle.Regular, COLORS.
|
|
233
|
-
componentType: 'text',
|
|
234
|
-
defaultVariant: 'default'
|
|
235
|
-
}, props.theme))}
|
|
178
|
+
${props => ComponentSStyling(ComponentTextStyle.Regular, COLORS.getColor('black', props.theme))}
|
|
236
179
|
|
|
237
180
|
display: flex;
|
|
238
181
|
align-items: center;
|
|
@@ -268,18 +211,12 @@ export const StyledTableCellContent = styled.div`
|
|
|
268
211
|
}
|
|
269
212
|
`;
|
|
270
213
|
export const StyledTableCellIcon = styled.div`
|
|
271
|
-
color: ${props => COLORS.
|
|
272
|
-
componentType: 'icon',
|
|
273
|
-
defaultVariant: 'default'
|
|
274
|
-
}, props.theme)};
|
|
214
|
+
color: ${props => COLORS.getColor('neutral_700', props.theme)};
|
|
275
215
|
width: 20px;
|
|
276
216
|
height: 20px;
|
|
277
217
|
|
|
278
218
|
svg {
|
|
279
|
-
color: ${props => COLORS.
|
|
280
|
-
componentType: 'icon',
|
|
281
|
-
defaultVariant: 'default'
|
|
282
|
-
}, props.theme)};
|
|
219
|
+
color: ${props => COLORS.getColor('neutral_700', props.theme)};
|
|
283
220
|
width: 20px;
|
|
284
221
|
height: 20px;
|
|
285
222
|
}
|
|
@@ -296,24 +233,15 @@ export const StyledTableCellTextWrapper = styled.div`
|
|
|
296
233
|
` : ``}
|
|
297
234
|
`;
|
|
298
235
|
export const StyledTableCellNoteText = styled.span`
|
|
299
|
-
${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.
|
|
300
|
-
componentType: 'text',
|
|
301
|
-
defaultVariant: 'subtle'
|
|
302
|
-
}, props.theme))}
|
|
236
|
+
${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.getColor('neutral_600', props.theme))}
|
|
303
237
|
display: inline-block;
|
|
304
238
|
width: 100%;
|
|
305
239
|
`;
|
|
306
240
|
export const StyledTableFooter = styled.div`
|
|
307
241
|
`;
|
|
308
242
|
export const StyledTableFooterContent = styled.div`
|
|
309
|
-
border-top: 2px solid ${props => COLORS.
|
|
310
|
-
|
|
311
|
-
defaultVariant: 'subtle'
|
|
312
|
-
}, props.theme)};
|
|
313
|
-
border-bottom: 1px solid ${props => COLORS.generateToken({
|
|
314
|
-
componentType: 'border',
|
|
315
|
-
defaultVariant: 'subtle'
|
|
316
|
-
}, props.theme)};
|
|
243
|
+
border-top: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
244
|
+
border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
317
245
|
box-sizing: border-box;
|
|
318
246
|
min-height: 56px;
|
|
319
247
|
|
|
@@ -324,10 +252,7 @@ export const StyledTableFooterContent = styled.div`
|
|
|
324
252
|
`;
|
|
325
253
|
export const StyledTableFooterCurrentInfo = styled.span`
|
|
326
254
|
padding: 0 16px;
|
|
327
|
-
${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.
|
|
328
|
-
componentType: 'text',
|
|
329
|
-
defaultVariant: 'default'
|
|
330
|
-
}, props.theme))}
|
|
255
|
+
${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.getColor('black', props.theme))}
|
|
331
256
|
`;
|
|
332
257
|
export const StyledTableFooterControls = styled.div`
|
|
333
258
|
display: flex;
|
|
@@ -342,14 +267,8 @@ export const StyledTableSpinner = styled.div`
|
|
|
342
267
|
`;
|
|
343
268
|
export const StyledTableFooterCollapseButton = styled.button`
|
|
344
269
|
position: relative;
|
|
345
|
-
border-bottom: 1px solid ${props => COLORS.
|
|
346
|
-
|
|
347
|
-
defaultVariant: 'subtle'
|
|
348
|
-
}, props.theme)};
|
|
349
|
-
border-top: 1px solid ${props => COLORS.generateToken({
|
|
350
|
-
componentType: 'border',
|
|
351
|
-
defaultVariant: 'subtle'
|
|
352
|
-
}, props.theme)};
|
|
270
|
+
border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
271
|
+
border-top: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};
|
|
353
272
|
border-left: none;
|
|
354
273
|
border-right: none;
|
|
355
274
|
box-sizing: border-box;
|
|
@@ -359,17 +278,11 @@ export const StyledTableFooterCollapseButton = styled.button`
|
|
|
359
278
|
align-items: center;
|
|
360
279
|
justify-content: center;
|
|
361
280
|
gap: 4px;
|
|
362
|
-
background: ${props => COLORS.
|
|
363
|
-
componentType: 'bg-surface',
|
|
364
|
-
defaultVariant: 'high'
|
|
365
|
-
}, props.theme)};
|
|
281
|
+
background: ${props => COLORS.getColor('white', props.theme)};
|
|
366
282
|
|
|
367
283
|
cursor: pointer;
|
|
368
284
|
|
|
369
|
-
${props => ComponentMStyling(ComponentTextStyle.Bold, COLORS.
|
|
370
|
-
componentType: 'text',
|
|
371
|
-
defaultVariant: 'primary'
|
|
372
|
-
}, props.theme))}
|
|
285
|
+
${props => ComponentMStyling(ComponentTextStyle.Bold, COLORS.getColor('neutral_600', props.theme))}
|
|
373
286
|
|
|
374
287
|
&:focus {
|
|
375
288
|
${focusStyles}
|
|
@@ -377,26 +290,14 @@ export const StyledTableFooterCollapseButton = styled.button`
|
|
|
377
290
|
|
|
378
291
|
&:hover {
|
|
379
292
|
z-index: ${Z_INDEXES.hover};
|
|
380
|
-
background: ${props => COLORS.
|
|
381
|
-
|
|
382
|
-
state: 'hover'
|
|
383
|
-
}, props.theme)};
|
|
384
|
-
color: ${props => COLORS.generateToken({
|
|
385
|
-
componentType: 'text',
|
|
386
|
-
state: 'hover'
|
|
387
|
-
}, props.theme)};
|
|
293
|
+
background: ${props => COLORS.getColor('primary_20', props.theme)};
|
|
294
|
+
color: ${props => COLORS.getColor('primary_700', props.theme)};
|
|
388
295
|
}
|
|
389
296
|
|
|
390
297
|
&:active {
|
|
391
298
|
z-index: ${Z_INDEXES.active};
|
|
392
|
-
background: ${props => COLORS.
|
|
393
|
-
|
|
394
|
-
state: 'active'
|
|
395
|
-
}, props.theme)};
|
|
396
|
-
color: ${props => COLORS.generateToken({
|
|
397
|
-
componentType: 'text',
|
|
398
|
-
state: 'active'
|
|
399
|
-
}, props.theme)};
|
|
299
|
+
background: ${props => COLORS.getColor('primary_100', props.theme)};
|
|
300
|
+
color: ${props => COLORS.getColor('primary_800', props.theme)};
|
|
400
301
|
}
|
|
401
302
|
|
|
402
303
|
&:disabled {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableStyles.js","names":["styled","COLORS","focusStyles","scrollBarStyling","ComponentLStyling","ComponentMStyling","ComponentSStyling","ComponentTextStyle","ComponentXSStyling","Z_INDEXES","StyledCheckBox","Size","TableWrapper","div","props","generateToken","componentType","defaultVariant","theme","StyledTable","table","StyledTableHeader","StyledTableHeaderTitle","StyledTableHeaderTitleContent","Bold","StyledTableHeaderRow","thead","StyledTableHeaderColumns","tr","StyledTableHeaderColumnContent","StyledTableHeaderColumnSortDirection","span","StyledTableHeaderColumn","th","state","hover","active","getColor","StyledTableBodyRow","StyledTableNoRowsLabelRow","StyledTableBody","tbody","StyledTableCell","td","StyledTableCellContent","$withNote","Regular","StyledTableCellIcon","StyledTableCellText","StyledTableCellTextWrapper","$textWrap","StyledTableCellNoteText","StyledTableFooter","StyledTableFooterContent","StyledTableFooterCurrentInfo","StyledTableFooterControls","StyledTableSpinner","$zindex","loader","StyledTableFooterCollapseButton","button","StyledTableBodyWrapper","Small"],"sources":["../../src/Table/TableStyles.ts"],"sourcesContent":["/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\n\r\n/**\r\n * Import custom style properties.\r\n */\r\nimport {COLORS, focusStyles, scrollBarStyling} from '../styles';\r\nimport {\r\n ComponentLStyling,\r\n ComponentMStyling,\r\n ComponentSStyling,\r\n ComponentTextStyle,\r\n ComponentXSStyling\r\n} from '../styles/typography';\r\nimport {Z_INDEXES} from '../styles/z-indexes';\r\nimport {StyledCheckBox} from '../InputFields/Checkbox';\r\nimport {Size} from \"../types\";\r\n\r\n/**\r\n * Table styles\r\n */\r\n\r\nexport const TableWrapper = styled.div`\r\n position: relative;\r\n\r\n &.border{\r\n border-left: 1px solid ${props => COLORS.generateToken({ componentType:'border', defaultVariant: 'subtle' }, props.theme)};\r\n border-right: 1px solid ${props => COLORS.generateToken({ componentType:'border', defaultVariant: 'subtle' }, props.theme)};\r\n }\r\n`;\r\n\r\n\r\nexport const StyledTable = styled.table`\r\n background: transparent;\r\n border-collapse: collapse;\r\n width: 100%;\r\n\r\n &.fixed {\r\n table-layout: fixed;\r\n }\r\n\r\n &.auto {\r\n table-layout: auto;\r\n }\r\n`;\r\n\r\nexport const StyledTableHeader = styled.div`\r\n`;\r\n\r\nexport const StyledTableHeaderTitle = styled.div`\r\n`;\r\n\r\nexport const StyledTableHeaderTitleContent = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n width: 100%;\r\n box-sizing: border-box;\r\n min-height: 56px;\r\n border-bottom: 1px solid ${props => COLORS.generateToken({ componentType:'border', defaultVariant: 'subtle' }, props.theme)};\r\n border-top: 2px solid ${props => COLORS.generateToken({ componentType:'border', defaultVariant: 'subtle' }, props.theme)};\r\n padding: 0 16px;\r\n\r\n ${props => ComponentLStyling(ComponentTextStyle.Bold, COLORS.generateToken({ componentType:'text', defaultVariant: 'default' }, props.theme))}\r\n .title-menu {\r\n margin-right: -16px;\r\n }\r\n`;\r\n\r\nexport const StyledTableHeaderRow = styled.thead`\r\n`;\r\n\r\nexport const StyledTableHeaderColumns = styled.tr`\r\n`;\r\n\r\nexport const StyledTableHeaderColumnContent = styled.div`\r\n box-sizing: border-box;\r\n min-height: 56px;\r\n padding: 0 16px;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n border-top: 1px solid ${props => COLORS.generateToken({ componentType:'border', defaultVariant: 'subtle' }, props.theme)};\r\n border-bottom: 1px solid ${props => COLORS.generateToken({ componentType:'border', defaultVariant: 'subtle' }, props.theme)};\r\n`;\r\n\r\nexport const StyledTableHeaderColumnSortDirection = styled.span`\r\n width: 24px;\r\n height: 24px;\r\n`;\r\n\r\nexport const StyledTableHeaderColumn = styled.th`\r\n ${props => ComponentSStyling(ComponentTextStyle.Bold, COLORS.generateToken({ componentType:'text', defaultVariant: 'subtle' }, props.theme))}\r\n position: relative;\r\n text-align: unset;\r\n background-color: ${props => COLORS.generateToken({ componentType:'bg-surface', defaultVariant: 'high' }, props.theme)};\r\n\r\n //fixes header heights no idea why\r\n height: 1px;\r\n\r\n &.sortable {\r\n cursor: pointer;\r\n\r\n &:hover {\r\n background-color: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'hover' }, props.theme)};\r\n color: ${props => COLORS.generateToken({ componentType: 'text', state: 'hover' }, props.theme)};\r\n z-index: ${Z_INDEXES.hover};\r\n }\r\n\r\n &:active {\r\n background-color: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'active' }, props.theme)};\r\n color: ${props => COLORS.generateToken({ componentType: 'text', state: 'active' }, props.theme)};\r\n z-index: ${Z_INDEXES.active};\r\n }\r\n\r\n &:focus {\r\n ${focusStyles}\r\n }\r\n }\r\n\r\n &.left {\r\n & > div {\r\n justify-content: left;\r\n }\r\n }\r\n\r\n &.right {\r\n & > div {\r\n justify-content: right;\r\n }\r\n }\r\n\r\n &.center {\r\n & > div {\r\n justify-content: center;\r\n }\r\n }\r\n\r\n &.sortable ${StyledTableHeaderColumnContent} > svg {\r\n opacity: 0;\r\n }\r\n\r\n &.sortable.sorted ${StyledTableHeaderColumnContent} > svg {\r\n opacity: 1;\r\n }\r\n\r\n &.sorted {\r\n background-color: ${props => COLORS.getColor('neutral_20', props.theme)};\r\n }\r\n`;\r\n\r\nexport const StyledTableBodyRow = styled.tr`\r\n cursor: pointer;\r\n position: relative;\r\n outline: none;\r\n background-color: ${props => COLORS.generateToken({ componentType: 'bg-surface', defaultVariant: 'default' }, props.theme)};\r\n \r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'subtle' }, props.theme)};\r\n }\r\n\r\n &.selected{\r\n background-color: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'hover' }, props.theme)};\r\n }\r\n \r\n &:hover {\r\n background-color: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'hover' }, props.theme)};\r\n z-index: ${Z_INDEXES.hover};\r\n }\r\n\r\n &:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &:active {\r\n z-index: ${Z_INDEXES.active};\r\n }\r\n\r\n`;\r\n\r\nexport const StyledTableNoRowsLabelRow = styled.tr`\r\n position: relative;\r\n outline: none;\r\n background-color: ${props => COLORS.generateToken({componentType: 'bg-surface', defaultVariant: 'high'}, props.theme)};\r\n`;\r\n\r\nexport const StyledTableBody = styled.tbody`\r\n`;\r\n\r\n\r\nexport const StyledTableCell = styled.td``;\r\n\r\nexport const StyledTableCellContent = styled.div<{$withNote?: boolean}>`\r\n min-height: ${props => props.$withNote ? '64px' : '48px'};\r\n\r\n padding: 0 16px;\r\n ${props => ComponentSStyling(ComponentTextStyle.Regular, COLORS.generateToken({ componentType: 'text', defaultVariant: 'default' }, props.theme))}\r\n\r\n display: flex;\r\n align-items: center;\r\n justify-content: left;\r\n gap: 8px;\r\n\r\n &.truncate-text,\r\n &.truncate-text span {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n\r\n &.left {\r\n justify-content: left;\r\n }\r\n\r\n &.right {\r\n justify-content: right;\r\n }\r\n\r\n &.center {\r\n justify-content: center;\r\n }\r\n\r\n a:first-letter,\r\n span:first-letter {\r\n text-transform: uppercase;\r\n }\r\n \r\n ${StyledCheckBox}{\r\n width: fit-content;\r\n }\r\n`;\r\n\r\nexport const StyledTableCellIcon = styled.div`\r\n color: ${props => COLORS.generateToken({ componentType: 'icon', defaultVariant: 'default' }, props.theme)};\r\n width: 20px;\r\n height: 20px;\r\n\r\n svg {\r\n color: ${props => COLORS.generateToken({ componentType: 'icon', defaultVariant: 'default' }, props.theme)};\r\n width: 20px;\r\n height: 20px;\r\n }\r\n`;\r\n\r\nexport const StyledTableCellText = styled.span`\r\n display: block;\r\n`;\r\n\r\nexport const StyledTableCellTextWrapper = styled.div<{ $textWrap?: boolean }>`\r\n padding: 12px 0px;\r\n width: 100%;\r\n ${props => !props.$textWrap ? `\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n ` : ``}\r\n`;\r\n\r\nexport const StyledTableCellNoteText = styled.span`\r\n ${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.generateToken({ componentType: 'text', defaultVariant: 'subtle' }, props.theme))}\r\n display: inline-block;\r\n width: 100%;\r\n`;\r\n\r\n\r\nexport const StyledTableFooter = styled.div`\r\n`;\r\n\r\nexport const StyledTableFooterContent = styled.div`\r\n border-top: 2px solid ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'subtle' }, props.theme)};\r\n border-bottom: 1px solid ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'subtle' }, props.theme)};\r\n box-sizing: border-box;\r\n min-height: 56px;\r\n\r\n display: flex;\r\n align-items: center;\r\n justify-content: right;\r\n\r\n`;\r\n\r\nexport const StyledTableFooterCurrentInfo = styled.span`\r\n padding: 0 16px;\r\n ${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.generateToken({ componentType: 'text', defaultVariant: 'default' }, props.theme))}\r\n`;\r\n\r\nexport const StyledTableFooterControls = styled.div`\r\n display: flex;\r\n`;\r\n\r\nexport const StyledTableSpinner = styled.div<{$zindex?: string}>`\r\n height: 100%;\r\n width: 100%;\r\n position: absolute;\r\n background-color: rgba(255, 255, 255, 0.75);\r\n top: 0;\r\n z-index: ${(props) => (props.$zindex ?? Z_INDEXES.loader)};\r\n`;\r\n\r\nexport const StyledTableFooterCollapseButton = styled.button`\r\n position: relative;\r\n border-bottom: 1px solid ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'subtle' }, props.theme)};\r\n border-top: 1px solid ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'subtle' }, props.theme)};\r\n border-left: none;\r\n border-right: none;\r\n box-sizing: border-box;\r\n min-height: 48px;\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 4px;\r\n background: ${props => COLORS.generateToken({ componentType: 'bg-surface', defaultVariant: 'high' }, props.theme)};\r\n\r\n cursor: pointer;\r\n\r\n ${props => ComponentMStyling(ComponentTextStyle.Bold, COLORS.generateToken({componentType: 'text', defaultVariant: 'primary'}, props.theme))}\r\n \r\n &:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &:hover {\r\n z-index: ${Z_INDEXES.hover};\r\n background: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'hover' }, props.theme)};\r\n color: ${props => COLORS.generateToken({ componentType: 'text', state: 'hover' }, props.theme)};\r\n }\r\n\r\n &:active {\r\n z-index: ${Z_INDEXES.active};\r\n background: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'active' }, props.theme)};\r\n color: ${props => COLORS.generateToken({ componentType: 'text', state: 'active' }, props.theme)};\r\n }\r\n\r\n &:disabled {\r\n display: none;\r\n }\r\n\r\n`;\r\n\r\n\r\nexport const StyledTableBodyWrapper = styled.div`\r\n overflow-x: auto;\r\n ${scrollBarStyling(Size.Small)}\r\n\r\n &::-webkit-scrollbar-track {\r\n margin: 6px;\r\n }\r\n\r\n &.scrollable{\r\n margin-bottom: 6px;\r\n padding-bottom: 10px;\r\n }\r\n`;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AAGD,OAAO,MAAM2C,sBAAsB,GAAG7D,MAAM,CAACa,GAAG;AAChD;AACA,IAAIV,gBAAgB,CAACQ,IAAI,CAACmD,KAAK,CAAC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"TableStyles.js","names":["styled","COLORS","focusStyles","scrollBarStyling","ComponentLStyling","ComponentMStyling","ComponentSStyling","ComponentTextStyle","ComponentXSStyling","Z_INDEXES","StyledCheckBox","Size","TableWrapper","div","props","getColor","theme","StyledTable","table","StyledTableHeader","StyledTableHeaderTitle","StyledTableHeaderTitleContent","Bold","StyledTableHeaderRow","thead","StyledTableHeaderColumns","tr","StyledTableHeaderColumnContent","StyledTableHeaderColumnSortDirection","span","StyledTableHeaderColumn","th","hover","active","StyledTableBodyRow","StyledTableNoRowsLabelRow","StyledTableBody","tbody","StyledTableCell","td","StyledTableCellContent","$withNote","Regular","StyledTableCellIcon","StyledTableCellText","StyledTableCellTextWrapper","$textWrap","StyledTableCellNoteText","StyledTableFooter","StyledTableFooterContent","StyledTableFooterCurrentInfo","StyledTableFooterControls","StyledTableSpinner","$zindex","loader","StyledTableFooterCollapseButton","button","StyledTableBodyWrapper","Small"],"sources":["../../src/Table/TableStyles.ts"],"sourcesContent":["/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\n\r\n/**\r\n * Import custom style properties.\r\n */\r\nimport {COLORS, focusStyles, scrollBarStyling} from '../styles';\r\nimport {\r\n ComponentLStyling,\r\n ComponentMStyling,\r\n ComponentSStyling,\r\n ComponentTextStyle,\r\n ComponentXSStyling\r\n} from '../styles/typography';\r\nimport {Z_INDEXES} from '../styles/z-indexes';\r\nimport {StyledCheckBox} from '../InputFields/Checkbox';\r\nimport {Size} from \"../types\";\r\n\r\n/**\r\n * Table styles\r\n */\r\n\r\nexport const TableWrapper = styled.div`\r\n position: relative;\r\n\r\n &.border{\r\n border-left: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n border-right: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n }\r\n`;\r\n\r\n\r\nexport const StyledTable = styled.table`\r\n background: transparent;\r\n border-collapse: collapse;\r\n width: 100%;\r\n\r\n &.fixed {\r\n table-layout: fixed;\r\n }\r\n\r\n &.auto {\r\n table-layout: auto;\r\n }\r\n`;\r\n\r\nexport const StyledTableHeader = styled.div`\r\n`;\r\n\r\nexport const StyledTableHeaderTitle = styled.div`\r\n`;\r\n\r\nexport const StyledTableHeaderTitleContent = styled.div`\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n width: 100%;\r\n box-sizing: border-box;\r\n min-height: 56px;\r\n border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n border-top: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n padding: 0 16px;\r\n\r\n ${props => ComponentLStyling(ComponentTextStyle.Bold, COLORS.getColor('black', props.theme))}\r\n .title-menu {\r\n margin-right: -16px;\r\n }\r\n`;\r\n\r\nexport const StyledTableHeaderRow = styled.thead`\r\n`;\r\n\r\nexport const StyledTableHeaderColumns = styled.tr`\r\n`;\r\n\r\nexport const StyledTableHeaderColumnContent = styled.div`\r\n box-sizing: border-box;\r\n min-height: 56px;\r\n padding: 0 16px;\r\n height: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n border-top: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n`;\r\n\r\nexport const StyledTableHeaderColumnSortDirection = styled.span`\r\n width: 24px;\r\n height: 24px;\r\n`;\r\n\r\nexport const StyledTableHeaderColumn = styled.th`\r\n ${props => ComponentSStyling(ComponentTextStyle.Bold, COLORS.getColor('neutral_600', props.theme))}\r\n position: relative;\r\n text-align: unset;\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n\r\n //fixes header heights no idea why\r\n height: 1px;\r\n\r\n &.sortable {\r\n cursor: pointer;\r\n\r\n &:hover {\r\n background-color: ${props => COLORS.getColor('primary_20', props.theme)};\r\n color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n z-index: ${Z_INDEXES.hover};\r\n }\r\n\r\n &:active {\r\n background-color: ${props => COLORS.getColor('primary_100', props.theme)};\r\n color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n z-index: ${Z_INDEXES.active};\r\n }\r\n\r\n &:focus {\r\n ${focusStyles}\r\n }\r\n }\r\n\r\n &.left {\r\n & > div {\r\n justify-content: left;\r\n }\r\n }\r\n\r\n &.right {\r\n & > div {\r\n justify-content: right;\r\n }\r\n }\r\n\r\n &.center {\r\n & > div {\r\n justify-content: center;\r\n }\r\n }\r\n\r\n &.sortable ${StyledTableHeaderColumnContent} > svg {\r\n opacity: 0;\r\n }\r\n\r\n &.sortable.sorted ${StyledTableHeaderColumnContent} > svg {\r\n opacity: 1;\r\n }\r\n\r\n &.sorted {\r\n background-color: ${props => COLORS.getColor('neutral_20', props.theme)};\r\n }\r\n`;\r\n\r\nexport const StyledTableBodyRow = styled.tr`\r\n cursor: pointer;\r\n position: relative;\r\n outline: none;\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n \r\n &:not(:last-child) {\r\n border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n }\r\n\r\n &.selected{\r\n background-color: ${props => COLORS.getColor('primary_100', props.theme)};\r\n }\r\n \r\n &:hover {\r\n background-color: ${props => COLORS.getColor('primary_100', props.theme)};\r\n z-index: ${Z_INDEXES.hover};\r\n }\r\n\r\n &:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &:active {\r\n z-index: ${Z_INDEXES.active};\r\n }\r\n\r\n`;\r\n\r\nexport const StyledTableNoRowsLabelRow = styled.tr`\r\n position: relative;\r\n outline: none;\r\n background-color: ${props => COLORS.getColor('neutral_50', props.theme)};\r\n`;\r\n\r\nexport const StyledTableBody = styled.tbody`\r\n`;\r\n\r\n\r\nexport const StyledTableCell = styled.td``;\r\n\r\nexport const StyledTableCellContent = styled.div<{$withNote?: boolean}>`\r\n min-height: ${props => props.$withNote ? '64px' : '48px'};\r\n\r\n padding: 0 16px;\r\n ${props => ComponentSStyling(ComponentTextStyle.Regular, COLORS.getColor('black', props.theme))}\r\n\r\n display: flex;\r\n align-items: center;\r\n justify-content: left;\r\n gap: 8px;\r\n\r\n &.truncate-text,\r\n &.truncate-text span {\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n\r\n &.left {\r\n justify-content: left;\r\n }\r\n\r\n &.right {\r\n justify-content: right;\r\n }\r\n\r\n &.center {\r\n justify-content: center;\r\n }\r\n\r\n a:first-letter,\r\n span:first-letter {\r\n text-transform: uppercase;\r\n }\r\n \r\n ${StyledCheckBox}{\r\n width: fit-content;\r\n }\r\n`;\r\n\r\nexport const StyledTableCellIcon = styled.div`\r\n color: ${props => COLORS.getColor('neutral_700', props.theme)};\r\n width: 20px;\r\n height: 20px;\r\n\r\n svg {\r\n color: ${props => COLORS.getColor('neutral_700', props.theme)};\r\n width: 20px;\r\n height: 20px;\r\n }\r\n`;\r\n\r\nexport const StyledTableCellText = styled.span`\r\n display: block;\r\n`;\r\n\r\nexport const StyledTableCellTextWrapper = styled.div<{ $textWrap?: boolean }>`\r\n padding: 12px 0px;\r\n width: 100%;\r\n ${props => !props.$textWrap ? `\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n ` : ``}\r\n`;\r\n\r\nexport const StyledTableCellNoteText = styled.span`\r\n ${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.getColor('neutral_600', props.theme))}\r\n display: inline-block;\r\n width: 100%;\r\n`;\r\n\r\n\r\nexport const StyledTableFooter = styled.div`\r\n`;\r\n\r\nexport const StyledTableFooterContent = styled.div`\r\n border-top: 2px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n box-sizing: border-box;\r\n min-height: 56px;\r\n\r\n display: flex;\r\n align-items: center;\r\n justify-content: right;\r\n\r\n`;\r\n\r\nexport const StyledTableFooterCurrentInfo = styled.span`\r\n padding: 0 16px;\r\n ${props => ComponentXSStyling(ComponentTextStyle.Regular, COLORS.getColor('black', props.theme))}\r\n`;\r\n\r\nexport const StyledTableFooterControls = styled.div`\r\n display: flex;\r\n`;\r\n\r\nexport const StyledTableSpinner = styled.div<{$zindex?: string}>`\r\n height: 100%;\r\n width: 100%;\r\n position: absolute;\r\n background-color: rgba(255, 255, 255, 0.75);\r\n top: 0;\r\n z-index: ${(props) => (props.$zindex ?? Z_INDEXES.loader)};\r\n`;\r\n\r\nexport const StyledTableFooterCollapseButton = styled.button`\r\n position: relative;\r\n border-bottom: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n border-top: 1px solid ${props => COLORS.getColor('neutral_200', props.theme)};\r\n border-left: none;\r\n border-right: none;\r\n box-sizing: border-box;\r\n min-height: 48px;\r\n display: flex;\r\n width: 100%;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 4px;\r\n background: ${props => COLORS.getColor('white', props.theme)};\r\n\r\n cursor: pointer;\r\n\r\n ${props => ComponentMStyling(ComponentTextStyle.Bold, COLORS.getColor('neutral_600', props.theme))}\r\n \r\n &:focus {\r\n ${focusStyles}\r\n }\r\n\r\n &:hover {\r\n z-index: ${Z_INDEXES.hover};\r\n background: ${props => COLORS.getColor('primary_20', props.theme)};\r\n color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n &:active {\r\n z-index: ${Z_INDEXES.active};\r\n background: ${props => COLORS.getColor('primary_100', props.theme)};\r\n color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n &:disabled {\r\n display: none;\r\n }\r\n\r\n`;\r\n\r\n\r\nexport const StyledTableBodyWrapper = styled.div`\r\n overflow-x: auto;\r\n ${scrollBarStyling(Size.Small)}\r\n\r\n &::-webkit-scrollbar-track {\r\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AACA;AACA;AACA;AACA;AACA,gBAAgBF,KAAK,IAAIb,MAAM,CAACc,QAAQ,CAAC,OAAO,EAAED,KAAK,CAACE,KAAK,CAAC;AAC9D;AACA;AACA;AACA,IAAIF,KAAK,IAAIT,iBAAiB,CAACE,kBAAkB,CAACe,IAAI,EAAErB,MAAM,CAACc,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC,CAAC;AACpG;AACA;AACA,MAAMd,WAAW;AACjB;AACA;AACA;AACA,eAAeO,SAAS,CAACuB,KAAK;AAC9B,kBAAkBlB,KAAK,IAAIb,MAAM,CAACc,QAAQ,CAAC,YAAY,EAAED,KAAK,CAACE,KAAK,CAAC;AACrE,aAAaF,KAAK,IAAIb,MAAM,CAACc,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AACjE;AACA;AACA;AACA,eAAeP,SAAS,CAACwB,MAAM;AAC/B,kBAAkBnB,KAAK,IAAIb,MAAM,CAACc,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AACtE,aAAaF,KAAK,IAAIb,MAAM,CAACc,QAAQ,CAAC,aAAa,EAAED,KAAK,CAACE,KAAK,CAAC;AACjE;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAGD,OAAO,MAAMyC,sBAAsB,GAAGzD,MAAM,CAACa,GAAG;AAChD;AACA,IAAIV,gBAAgB,CAACQ,IAAI,CAAC+C,KAAK,CAAC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -43,25 +43,16 @@ const HorizontalTabContainer = _styledComponents.default.div`
|
|
|
43
43
|
`;
|
|
44
44
|
const TabSideFill = _styledComponents.default.div`
|
|
45
45
|
position: absolute;
|
|
46
|
-
border-bottom: 1px solid ${props => _styles.COLORS.
|
|
47
|
-
componentType: 'border',
|
|
48
|
-
defaultVariant: 'subtle'
|
|
49
|
-
}, props.theme)};
|
|
46
|
+
border-bottom: 1px solid ${props => _styles.COLORS.getColor('neutral_100', props.theme)};
|
|
50
47
|
bottom: 0;
|
|
51
48
|
width: 100%;
|
|
52
49
|
|
|
53
50
|
&.fill {
|
|
54
|
-
background: ${props => _styles.COLORS.
|
|
55
|
-
componentType: 'bg-surface',
|
|
56
|
-
defaultVariant: 'default'
|
|
57
|
-
}, props.theme)};
|
|
51
|
+
background: ${props => _styles.COLORS.getColor('white', props.theme)};
|
|
58
52
|
}
|
|
59
53
|
`;
|
|
60
54
|
const TabButton = _styledComponents.default.button`
|
|
61
|
-
color: ${props => _styles.COLORS.
|
|
62
|
-
componentType: 'text',
|
|
63
|
-
defaultVariant: 'subtle'
|
|
64
|
-
}, props.theme)};
|
|
55
|
+
color: ${props => _styles.COLORS.getColor('neutral_600', props.theme)};
|
|
65
56
|
border: none;
|
|
66
57
|
background-color: transparent;
|
|
67
58
|
position: relative;
|
|
@@ -81,21 +72,12 @@ const TabButton = _styledComponents.default.button`
|
|
|
81
72
|
}
|
|
82
73
|
|
|
83
74
|
&.selected {
|
|
84
|
-
background-color: ${props => _styles.COLORS.
|
|
85
|
-
|
|
86
|
-
defaultVariant: 'default'
|
|
87
|
-
}, props.theme)};
|
|
88
|
-
color: ${props => _styles.COLORS.generateToken({
|
|
89
|
-
componentType: 'text',
|
|
90
|
-
defaultVariant: 'default'
|
|
91
|
-
}, props.theme)};
|
|
75
|
+
background-color: ${props => _styles.COLORS.getColor('white', props.theme)};
|
|
76
|
+
color: ${props => _styles.COLORS.getColor('neutral_800', props.theme)};
|
|
92
77
|
}
|
|
93
78
|
|
|
94
79
|
&.selected.floating {
|
|
95
|
-
background-color: ${props => _styles.COLORS.
|
|
96
|
-
componentType: 'bg-surface',
|
|
97
|
-
defaultVariant: 'selected'
|
|
98
|
-
}, props.theme)};
|
|
80
|
+
background-color: ${props => _styles.COLORS.getColor('neutral_20', props.theme)};
|
|
99
81
|
}
|
|
100
82
|
|
|
101
83
|
&.default {
|
|
@@ -104,14 +86,8 @@ const TabButton = _styledComponents.default.button`
|
|
|
104
86
|
}
|
|
105
87
|
|
|
106
88
|
&.default.selected {
|
|
107
|
-
border-left: 1px solid ${props => _styles.COLORS.
|
|
108
|
-
|
|
109
|
-
defaultVariant: 'subtle'
|
|
110
|
-
}, props.theme)};
|
|
111
|
-
border-right: 1px solid ${props => _styles.COLORS.generateToken({
|
|
112
|
-
componentType: 'border',
|
|
113
|
-
defaultVariant: 'subtle'
|
|
114
|
-
}, props.theme)};
|
|
89
|
+
border-left: 1px solid ${props => _styles.COLORS.getColor('neutral_100', props.theme)};
|
|
90
|
+
border-right: 1px solid ${props => _styles.COLORS.getColor('neutral_100', props.theme)};
|
|
115
91
|
}
|
|
116
92
|
|
|
117
93
|
&.selected:after {
|
|
@@ -121,10 +97,7 @@ const TabButton = _styledComponents.default.button`
|
|
|
121
97
|
left: -1px;
|
|
122
98
|
right: -1px;
|
|
123
99
|
height: 2px;
|
|
124
|
-
background-color: ${props => _styles.COLORS.
|
|
125
|
-
componentType: 'border',
|
|
126
|
-
defaultVariant: 'selected'
|
|
127
|
-
}, props.theme)};
|
|
100
|
+
background-color: ${props => _styles.COLORS.getColor('primary_500', props.theme)};
|
|
128
101
|
}
|
|
129
102
|
|
|
130
103
|
&.selected.floating:after {
|
|
@@ -134,54 +107,31 @@ const TabButton = _styledComponents.default.button`
|
|
|
134
107
|
right: 1px;
|
|
135
108
|
height: 2px;
|
|
136
109
|
border-radius: 2px;
|
|
137
|
-
background-color: ${props => _styles.COLORS.
|
|
138
|
-
componentType: 'border',
|
|
139
|
-
defaultVariant: 'selected'
|
|
140
|
-
}, props.theme)};
|
|
110
|
+
background-color: ${props => _styles.COLORS.getColor('primary_500', props.theme)};
|
|
141
111
|
}
|
|
142
112
|
|
|
113
|
+
|
|
143
114
|
&:hover, &:hover.selected {
|
|
144
|
-
background: ${props => _styles.COLORS.
|
|
145
|
-
|
|
146
|
-
state: 'hover'
|
|
147
|
-
}, props.theme)};
|
|
148
|
-
color: ${props => _styles.COLORS.generateToken({
|
|
149
|
-
componentType: 'text',
|
|
150
|
-
state: 'hover'
|
|
151
|
-
}, props.theme)};
|
|
115
|
+
background: ${props => _styles.COLORS.getColor('primary_20', props.theme)};
|
|
116
|
+
color: ${props => _styles.COLORS.getColor('primary_700', props.theme)};
|
|
152
117
|
}
|
|
153
118
|
|
|
154
119
|
&:hover:after {
|
|
155
|
-
background-color: ${props => _styles.COLORS.
|
|
156
|
-
componentType: 'border',
|
|
157
|
-
state: 'hover'
|
|
158
|
-
}, props.theme)};
|
|
120
|
+
background-color: ${props => _styles.COLORS.getColor('primary_700', props.theme)};
|
|
159
121
|
}
|
|
160
122
|
|
|
161
123
|
&:active, &:active.selected {
|
|
162
|
-
background: ${props => _styles.COLORS.
|
|
163
|
-
|
|
164
|
-
state: 'active'
|
|
165
|
-
}, props.theme)};
|
|
166
|
-
color: ${props => _styles.COLORS.generateToken({
|
|
167
|
-
componentType: 'text',
|
|
168
|
-
state: 'active'
|
|
169
|
-
}, props.theme)};
|
|
124
|
+
background: ${props => _styles.COLORS.getColor('primary_100', props.theme)};
|
|
125
|
+
color: ${props => _styles.COLORS.getColor('primary_800', props.theme)};
|
|
170
126
|
outline: none;
|
|
171
127
|
}
|
|
172
128
|
|
|
173
129
|
&:active:after {
|
|
174
|
-
background-color: ${props => _styles.COLORS.
|
|
175
|
-
componentType: 'border',
|
|
176
|
-
state: 'active'
|
|
177
|
-
}, props.theme)};
|
|
130
|
+
background-color: ${props => _styles.COLORS.getColor('primary_800', props.theme)};
|
|
178
131
|
}
|
|
179
132
|
|
|
180
133
|
&:disabled {
|
|
181
|
-
color: ${props => _styles.COLORS.
|
|
182
|
-
componentType: 'text',
|
|
183
|
-
state: 'disabled'
|
|
184
|
-
}, props.theme)};
|
|
134
|
+
color: ${props => _styles.COLORS.getColor('neutral_300', props.theme)};
|
|
185
135
|
background: transparent;
|
|
186
136
|
cursor: not-allowed;
|
|
187
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalTabs.cjs","names":["React","_interopRequireWildcard","require","_types","_styles","_styledComponents","_interopRequireDefault","_common","_jsxRuntime","_excluded","_excluded2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","HorizontalTabContainer","styled","div","focusStyles","TabSideFill","props","COLORS","generateToken","componentType","defaultVariant","theme","TabButton","button","Z_INDEXES","active","state","Size","XSmall","ComponentXSStyling","ComponentTextStyle","Regular","Small","ComponentSStyling","Medium","ComponentMStyling","Large","ComponentLStyling","HorizontalTabs","_ref","size","tabs","sideFill","fullWidth","onTabChange","variant","rest","_objectWithoutProperties2","doTabChange","to","document","activeElement","HTMLElement","blur","focused","setFocused","useState","currentTab","setCurrentTab","useEffect","selectedTab","find","x","selected","disabled","tabListBlur","tabListFocus","changeTabInternal","tab","tabListKeyDown","key","preventDefault","j","nextIndex","jsxs","tabIndex","onBlur","onFocus","onKeyDown","role","children","jsx","className","map","index","value","onMouseDown","defaultOnMouseDownHandler","style","width","onClick","propTypes","_propTypes","arrayOf","shape","oneOfType","string","node","isRequired","bool","func","oneOf","_default","exports"],"sources":["../../src/Tabs/HorizontalTabs.tsx"],"sourcesContent":["/**\r\n * Import React libraries.\r\n */\r\nimport * as React from 'react';\r\nimport {Size} from '../types';\r\n\r\n/**\r\n * Import custom styles.\r\n */\r\nimport {COLORS, ComponentTextStyle, focusStyles} from '../styles';\r\n\r\n/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\nimport {ComponentLStyling, ComponentMStyling, ComponentSStyling, ComponentXSStyling} from '../styles';\r\nimport {Z_INDEXES} from '../styles';\r\nimport {defaultOnMouseDownHandler} from '../common';\r\nimport Colors from \"../styles/colors\";\r\n\r\n// Add custom styles\r\nconst HorizontalTabContainer = styled.div`\r\n width: 100%;\r\n display: flex;\r\n position: relative;\r\n flex-direction: row;\r\n\r\n &:focus {\r\n ${focusStyles};\r\n }\r\n\r\n`;\r\n\r\nconst TabSideFill = styled.div`\r\n position: absolute;\r\n border-bottom: 1px solid ${props => COLORS.generateToken({ componentType:'border', defaultVariant:'subtle' }, props.theme)};\r\n bottom: 0;\r\n width: 100%;\r\n\r\n &.fill {\r\n background: ${props => COLORS.generateToken({ componentType: 'bg-surface', defaultVariant:'default' }, props.theme)};\r\n }\r\n`;\r\n\r\nconst TabButton = styled.button`\r\n color: ${props => COLORS.generateToken({componentType: 'text', defaultVariant: 'subtle'}, props.theme)};\r\n border: none;\r\n background-color: transparent;\r\n position: relative;\r\n cursor: pointer;\r\n display: flex;\r\n box-sizing: border-box;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 0;\r\n\r\n &[aria-selected=\"true\"] {\r\n z-index: ${Z_INDEXES.active};\r\n }\r\n\r\n &.floating {\r\n border-radius: 2px;\r\n }\r\n \r\n &.selected {\r\n background-color: ${props => COLORS.generateToken({componentType: 'bg-surface', defaultVariant: 'default'}, props.theme)};\r\n color: ${props => COLORS.generateToken({componentType: 'text', defaultVariant: 'default'}, props.theme)};\r\n }\r\n\r\n &.selected.floating {\r\n background-color: ${props => COLORS.generateToken({componentType:'bg-surface', defaultVariant: 'selected'}, props.theme)};\r\n }\r\n\r\n &.default {\r\n border-left: 1px solid transparent;\r\n border-right: 1px solid transparent;\r\n }\r\n \r\n &.default.selected {\r\n border-left: 1px solid ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'subtle' }, props.theme)};\r\n border-right: 1px solid ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'subtle' }, props.theme)};\r\n }\r\n\r\n &.selected:after {\r\n content: \"\";\r\n position: absolute;\r\n top: 0;\r\n left: -1px;\r\n right: -1px;\r\n height: 2px;\r\n background-color: ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'selected' }, props.theme)};\r\n }\r\n\r\n &.selected.floating:after {\r\n top: unset;\r\n bottom: 1px;\r\n left: 1px;\r\n right: 1px;\r\n height: 2px;\r\n border-radius: 2px;\r\n background-color: ${props => COLORS.generateToken({ componentType: 'border', defaultVariant: 'selected' }, props.theme)};\r\n }\r\n\r\n &:hover, &:hover.selected {\r\n background: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'hover' }, props.theme)};\r\n color: ${props => COLORS.generateToken({ componentType: 'text', state: 'hover' }, props.theme)};\r\n }\r\n\r\n &:hover:after {\r\n background-color: ${props => COLORS.generateToken({ componentType:'border', state:'hover' }, props.theme)};\r\n }\r\n\r\n &:active, &:active.selected {\r\n background: ${props => COLORS.generateToken({ componentType: 'bg-surface', state: 'active' }, props.theme)};\r\n color: ${props => COLORS.generateToken({ componentType: 'text', state: 'active' }, props.theme)};\r\n outline: none;\r\n }\r\n\r\n &:active:after {\r\n background-color: ${props => COLORS.generateToken({ componentType: 'border', state: 'active' }, props.theme)};\r\n }\r\n\r\n &:disabled {\r\n color: ${props => COLORS.generateToken({ componentType: 'text', state: 'disabled' }, props.theme)};\r\n background: transparent;\r\n cursor: not-allowed;\r\n }\r\n\r\n // Sizes\r\n &.${Size.XSmall} {\r\n ${ComponentXSStyling(ComponentTextStyle.Regular, null)}\r\n padding: 0px 16px;\r\n height: 32px;\r\n margin-top: 16px;\r\n }\r\n\r\n &.${Size.Small} {\r\n ${ComponentSStyling(ComponentTextStyle.Regular, null)}\r\n padding: 0px 16px;\r\n height: 40px;\r\n margin-top: 8px;\r\n }\r\n\r\n &.${Size.Medium} {\r\n ${ComponentMStyling(ComponentTextStyle.Regular, null)}\r\n height: 48px;\r\n min-width: 96px;\r\n padding: 0 16px;\r\n }\r\n\r\n &.${Size.Large} {\r\n ${ComponentLStyling(ComponentTextStyle.Regular, null)}\r\n height: 56px;\r\n min-width: 144px;\r\n padding: 0 16px;\r\n }\r\n`;\r\n\r\n// Add component-specific types\r\nexport interface HorizontalTabProps extends React.HTMLAttributes<HTMLDivElement> {\r\n /** Required. Size of the Tabs */\r\n size: Size.XSmall | Size.Small | Size.Medium | Size.Large;\r\n /** Required: Array of Tabs to show */\r\n tabs: HorizontalTab[];\r\n /** Optional. For 'default' variant of tabs if this flag is set, then white background will be added to the tabs */\r\n sideFill?: boolean;\r\n /** Optional. If set, then whole width of the parent container will be equally split between Tabs, otherwise each tab will take width \r\n * required for its content.\r\n */\r\n fullWidth?: boolean;\r\n /** Required. Handler to be called when user tries to change the tab */\r\n onTabChange: (to: string) => void;\r\n /** Optional. Display variant of the tabs. If not set, then 'default' is used */\r\n variant?: 'default' | 'floating';\r\n}\r\n\r\nexport interface HorizontalTab extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'tabIndex' | 'onMouseDown' | 'onClick' | 'style'> {\r\n /** Required. Value of the tab */\r\n value: string | React.ReactNode;\r\n /** Required. State of the tab, selected or not. Use it to set initial state of the tabs. */\r\n selected: boolean;\r\n /** Required. URL related with the Tab */\r\n to: string;\r\n}\r\n\r\nconst HorizontalTabs = ({size, tabs, sideFill, fullWidth, onTabChange, variant, ...rest}: HorizontalTabProps) => {\r\n /**\r\n * Informs parent component of tab change and clears focus.\r\n * @param to - A link to which user should be navigated.\r\n */\r\n const doTabChange = (to: string): void => {\r\n // Let's inform parent component\r\n onTabChange(to);\r\n\r\n // Let's clear focus\r\n if (document.activeElement instanceof HTMLElement) {\r\n document.activeElement!.blur();\r\n }\r\n };\r\n\r\n const [focused, setFocused] = React.useState<boolean>(false);\r\n const [currentTab, setCurrentTab] = React.useState<string>();\r\n\r\n React.useEffect(() => {\r\n const selectedTab = tabs.find(x => x.selected && !x.disabled);\r\n if (selectedTab)\r\n setCurrentTab(selectedTab.to);\r\n }, [tabs]);\r\n\r\n const tabListBlur = () => setFocused(false);\r\n\r\n const tabListFocus = (e: React.FocusEvent<HTMLDivElement, Element>) => setFocused(true);\r\n\r\n const changeTabInternal = (tab: HorizontalTab) => {\r\n tab.selected = true;\r\n tabs.forEach(x => {\r\n if (x.to != tab.to)\r\n x.selected = false;\r\n });\r\n setCurrentTab(tab.to);\r\n onTabChange(tab.to);\r\n }\r\n\r\n const tabListKeyDown = (e: React.KeyboardEvent) => {\r\n if (focused && (e.key === 'ArrowLeft' || e.key === 'ArrowRight')) {\r\n e.preventDefault();\r\n if (e.key === 'ArrowRight') {\r\n tabs.forEach((x, i) => {\r\n if (x.to != currentTab)\r\n return;\r\n\r\n for (let j = 1; j < tabs.length - 1; j++) {\r\n let nextIndex = j + i;\r\n if (nextIndex > tabs.length - 1)\r\n nextIndex = nextIndex - tabs.length;\r\n if (tabs[nextIndex].disabled)\r\n continue;\r\n changeTabInternal(tabs[nextIndex]);\r\n break;\r\n }\r\n });\r\n }\r\n\r\n if (e.key === 'ArrowLeft') {\r\n tabs.forEach((x, i) => {\r\n if (x.to != currentTab)\r\n return;\r\n\r\n for (let j = 1; j < tabs.length - 1; j++) {\r\n let nextIndex = i - j;\r\n if (nextIndex < 0)\r\n nextIndex = nextIndex + tabs.length;\r\n if (tabs[nextIndex].disabled)\r\n continue;\r\n changeTabInternal(tabs[nextIndex]);\r\n break;\r\n }\r\n });\r\n }\r\n }\r\n };\r\n\r\n return (\r\n <HorizontalTabContainer tabIndex={0} onBlur={tabListBlur} onFocus={tabListFocus} onKeyDown={tabListKeyDown}\r\n role=\"tablist\" data-testid={'horizontal-tabs-container'} {...rest}>\r\n {\r\n variant !== 'floating' && <TabSideFill tabIndex={-1} className={`${sideFill ? 'fill' : ''}`}/>\r\n }\r\n {tabs.map((tab: HorizontalTab, index: number) => {\r\n const {value, selected, to, disabled, className, ...rest} = tab;\r\n return (\r\n <TabButton\r\n role=\"tab\"\r\n data-testid={`tab_${value}`}\r\n key={`${tab}_${index}`}\r\n aria-selected={selected}\r\n aria-expanded={selected}\r\n tabIndex={-1}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n style={fullWidth ? {width: `${100 / tabs.length}%`} : {}}\r\n disabled={disabled}\r\n className={`${className || ''} ${size} ${variant || 'default'} ${tab.selected ? 'selected' : ''}`}\r\n onClick={() => !disabled && changeTabInternal(tab)}\r\n {...rest}>\r\n {tab.value}\r\n </TabButton>\r\n );\r\n })}\r\n </HorizontalTabContainer>\r\n );\r\n};\r\n\r\nexport default HorizontalTabs;\r\n"],"mappings":";;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAKA,IAAAE,OAAA,GAAAF,OAAA;AAKA,IAAAG,iBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAGA,IAAAK,OAAA,GAAAL,OAAA;AAAoD,IAAAM,WAAA,GAAAN,OAAA;AAAA,MAAAO,SAAA;EAAAC,UAAA;AAjBpD;AACA;AACA;AAIA;AACA;AACA;AAGA;AACA;AACA;AAFA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GA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A,EAAG,SAAS,EAAG,UAAU;AAAA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAzH,OAAA,GAuHnBwD,cAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"HorizontalTabs.cjs","names":["React","_interopRequireWildcard","require","_types","_styles","_styledComponents","_interopRequireDefault","_common","_jsxRuntime","_excluded","_excluded2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","HorizontalTabContainer","styled","div","focusStyles","TabSideFill","props","COLORS","getColor","theme","TabButton","button","Z_INDEXES","active","Size","XSmall","ComponentXSStyling","ComponentTextStyle","Regular","Small","ComponentSStyling","Medium","ComponentMStyling","Large","ComponentLStyling","HorizontalTabs","_ref","size","tabs","sideFill","fullWidth","onTabChange","variant","rest","_objectWithoutProperties2","doTabChange","to","document","activeElement","HTMLElement","blur","focused","setFocused","useState","currentTab","setCurrentTab","useEffect","selectedTab","find","x","selected","disabled","tabListBlur","tabListFocus","changeTabInternal","tab","tabListKeyDown","key","preventDefault","j","nextIndex","jsxs","tabIndex","onBlur","onFocus","onKeyDown","role","children","jsx","className","map","index","value","onMouseDown","defaultOnMouseDownHandler","style","width","onClick","propTypes","_propTypes","arrayOf","shape","oneOfType","string","node","isRequired","bool","func","oneOf","_default","exports"],"sources":["../../src/Tabs/HorizontalTabs.tsx"],"sourcesContent":["/**\r\n * Import React libraries.\r\n */\r\nimport * as React from 'react';\r\nimport {Size} from '../types';\r\n\r\n/**\r\n * Import custom styles.\r\n */\r\nimport {COLORS, ComponentTextStyle, focusStyles} from '../styles';\r\n\r\n/**\r\n * Import third-party libraries.\r\n */\r\nimport styled from 'styled-components';\r\nimport {ComponentLStyling, ComponentMStyling, ComponentSStyling, ComponentXSStyling} from '../styles';\r\nimport {Z_INDEXES} from '../styles';\r\nimport {defaultOnMouseDownHandler} from '../common';\r\nimport Colors from \"../styles/colors\";\r\n\r\n// Add custom styles\r\nconst HorizontalTabContainer = styled.div`\r\n width: 100%;\r\n display: flex;\r\n position: relative;\r\n flex-direction: row;\r\n\r\n &:focus {\r\n ${focusStyles};\r\n }\r\n\r\n`;\r\n\r\nconst TabSideFill = styled.div`\r\n position: absolute;\r\n border-bottom: 1px solid ${props => COLORS.getColor('neutral_100', props.theme)};\r\n bottom: 0;\r\n width: 100%;\r\n\r\n &.fill {\r\n background: ${props => COLORS.getColor('white', props.theme)};\r\n }\r\n`;\r\n\r\nconst TabButton = styled.button`\r\n color: ${props => COLORS.getColor('neutral_600', props.theme)};\r\n border: none;\r\n background-color: transparent;\r\n position: relative;\r\n cursor: pointer;\r\n display: flex;\r\n box-sizing: border-box;\r\n justify-content: center;\r\n align-items: center;\r\n padding: 0;\r\n\r\n &[aria-selected=\"true\"] {\r\n z-index: ${Z_INDEXES.active};\r\n }\r\n\r\n &.floating {\r\n border-radius: 2px;\r\n }\r\n \r\n &.selected {\r\n background-color: ${props => COLORS.getColor('white', props.theme)};\r\n color: ${props => COLORS.getColor('neutral_800', props.theme)};\r\n }\r\n\r\n &.selected.floating {\r\n background-color: ${props => COLORS.getColor('neutral_20', props.theme)};\r\n }\r\n\r\n &.default {\r\n border-left: 1px solid transparent;\r\n border-right: 1px solid transparent;\r\n }\r\n \r\n &.default.selected {\r\n border-left: 1px solid ${props => COLORS.getColor('neutral_100', props.theme)};\r\n border-right: 1px solid ${props => COLORS.getColor('neutral_100', props.theme)};\r\n }\r\n\r\n &.selected:after {\r\n content: \"\";\r\n position: absolute;\r\n top: 0;\r\n left: -1px;\r\n right: -1px;\r\n height: 2px;\r\n background-color: ${props => COLORS.getColor('primary_500', props.theme)};\r\n }\r\n\r\n &.selected.floating:after {\r\n top: unset;\r\n bottom: 1px;\r\n left: 1px;\r\n right: 1px;\r\n height: 2px;\r\n border-radius: 2px;\r\n background-color: ${props => COLORS.getColor('primary_500', props.theme)};\r\n }\r\n\r\n\r\n &:hover, &:hover.selected {\r\n background: ${props => COLORS.getColor('primary_20', props.theme)};\r\n color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n &:hover:after {\r\n background-color: ${props => COLORS.getColor('primary_700', props.theme)};\r\n }\r\n\r\n &:active, &:active.selected {\r\n background: ${props => COLORS.getColor('primary_100', props.theme)};\r\n color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n outline: none;\r\n }\r\n\r\n &:active:after {\r\n background-color: ${props => COLORS.getColor('primary_800', props.theme)};\r\n }\r\n\r\n &:disabled {\r\n color: ${props => COLORS.getColor('neutral_300', props.theme)};\r\n background: transparent;\r\n cursor: not-allowed;\r\n }\r\n\r\n // Sizes\r\n &.${Size.XSmall} {\r\n ${ComponentXSStyling(ComponentTextStyle.Regular, null)}\r\n padding: 0px 16px;\r\n height: 32px;\r\n margin-top: 16px;\r\n }\r\n\r\n &.${Size.Small} {\r\n ${ComponentSStyling(ComponentTextStyle.Regular, null)}\r\n padding: 0px 16px;\r\n height: 40px;\r\n margin-top: 8px;\r\n }\r\n\r\n &.${Size.Medium} {\r\n ${ComponentMStyling(ComponentTextStyle.Regular, null)}\r\n height: 48px;\r\n min-width: 96px;\r\n padding: 0 16px;\r\n }\r\n\r\n &.${Size.Large} {\r\n ${ComponentLStyling(ComponentTextStyle.Regular, null)}\r\n height: 56px;\r\n min-width: 144px;\r\n padding: 0 16px;\r\n }\r\n`;\r\n\r\n// Add component-specific types\r\nexport interface HorizontalTabProps extends React.HTMLAttributes<HTMLDivElement> {\r\n /** Required. Size of the Tabs */\r\n size: Size.XSmall | Size.Small | Size.Medium | Size.Large;\r\n /** Required: Array of Tabs to show */\r\n tabs: HorizontalTab[];\r\n /** Optional. For 'default' variant of tabs if this flag is set, then white background will be added to the tabs */\r\n sideFill?: boolean;\r\n /** Optional. If set, then whole width of the parent container will be equally split between Tabs, otherwise each tab will take width \r\n * required for its content.\r\n */\r\n fullWidth?: boolean;\r\n /** Required. Handler to be called when user tries to change the tab */\r\n onTabChange: (to: string) => void;\r\n /** Optional. Display variant of the tabs. If not set, then 'default' is used */\r\n variant?: 'default' | 'floating';\r\n}\r\n\r\nexport interface HorizontalTab extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'tabIndex' | 'onMouseDown' | 'onClick' | 'style'> {\r\n /** Required. Value of the tab */\r\n value: string | React.ReactNode;\r\n /** Required. State of the tab, selected or not. Use it to set initial state of the tabs. */\r\n selected: boolean;\r\n /** Required. URL related with the Tab */\r\n to: string;\r\n}\r\n\r\nconst HorizontalTabs = ({size, tabs, sideFill, fullWidth, onTabChange, variant, ...rest}: HorizontalTabProps) => {\r\n /**\r\n * Informs parent component of tab change and clears focus.\r\n * @param to - A link to which user should be navigated.\r\n */\r\n const doTabChange = (to: string): void => {\r\n // Let's inform parent component\r\n onTabChange(to);\r\n\r\n // Let's clear focus\r\n if (document.activeElement instanceof HTMLElement) {\r\n document.activeElement!.blur();\r\n }\r\n };\r\n\r\n const [focused, setFocused] = React.useState<boolean>(false);\r\n const [currentTab, setCurrentTab] = React.useState<string>();\r\n\r\n React.useEffect(() => {\r\n const selectedTab = tabs.find(x => x.selected && !x.disabled);\r\n if (selectedTab)\r\n setCurrentTab(selectedTab.to);\r\n }, [tabs]);\r\n\r\n const tabListBlur = () => setFocused(false);\r\n\r\n const tabListFocus = (e: React.FocusEvent<HTMLDivElement, Element>) => setFocused(true);\r\n\r\n const changeTabInternal = (tab: HorizontalTab) => {\r\n tab.selected = true;\r\n tabs.forEach(x => {\r\n if (x.to != tab.to)\r\n x.selected = false;\r\n });\r\n setCurrentTab(tab.to);\r\n onTabChange(tab.to);\r\n }\r\n\r\n const tabListKeyDown = (e: React.KeyboardEvent) => {\r\n if (focused && (e.key === 'ArrowLeft' || e.key === 'ArrowRight')) {\r\n e.preventDefault();\r\n if (e.key === 'ArrowRight') {\r\n tabs.forEach((x, i) => {\r\n if (x.to != currentTab)\r\n return;\r\n\r\n for (let j = 1; j < tabs.length - 1; j++) {\r\n let nextIndex = j + i;\r\n if (nextIndex > tabs.length - 1)\r\n nextIndex = nextIndex - tabs.length;\r\n if (tabs[nextIndex].disabled)\r\n continue;\r\n changeTabInternal(tabs[nextIndex]);\r\n break;\r\n }\r\n });\r\n }\r\n\r\n if (e.key === 'ArrowLeft') {\r\n tabs.forEach((x, i) => {\r\n if (x.to != currentTab)\r\n return;\r\n\r\n for (let j = 1; j < tabs.length - 1; j++) {\r\n let nextIndex = i - j;\r\n if (nextIndex < 0)\r\n nextIndex = nextIndex + tabs.length;\r\n if (tabs[nextIndex].disabled)\r\n continue;\r\n changeTabInternal(tabs[nextIndex]);\r\n break;\r\n }\r\n });\r\n }\r\n }\r\n };\r\n\r\n return (\r\n <HorizontalTabContainer tabIndex={0} onBlur={tabListBlur} onFocus={tabListFocus} onKeyDown={tabListKeyDown}\r\n role=\"tablist\" data-testid={'horizontal-tabs-container'} {...rest}>\r\n {\r\n variant !== 'floating' && <TabSideFill tabIndex={-1} className={`${sideFill ? 'fill' : ''}`}/>\r\n }\r\n {tabs.map((tab: HorizontalTab, index: number) => {\r\n const {value, selected, to, disabled, className, ...rest} = tab;\r\n return (\r\n <TabButton\r\n role=\"tab\"\r\n data-testid={`tab_${value}`}\r\n key={`${tab}_${index}`}\r\n aria-selected={selected}\r\n aria-expanded={selected}\r\n tabIndex={-1}\r\n onMouseDown={defaultOnMouseDownHandler}\r\n style={fullWidth ? {width: `${100 / tabs.length}%`} : {}}\r\n disabled={disabled}\r\n className={`${className || ''} ${size} ${variant || 'default'} ${tab.selected ? 'selected' : ''}`}\r\n onClick={() => !disabled && changeTabInternal(tab)}\r\n {...rest}>\r\n {tab.value}\r\n </TabButton>\r\n );\r\n })}\r\n </HorizontalTabContainer>\r\n );\r\n};\r\n\r\nexport default HorizontalTabs;\r\n"],"mappings":";;;;;;;;;;AAGA,IAAAA,KAAA,GAAAC,uBAAA,C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