@onewelcome/react-lib-components 9.3.0 → 9.5.0
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/cjs/Breadcrumbs/Breadcrumbs.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/BaseButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/Button.module.scss.cjs.js +1 -1
- package/dist/cjs/Button/IconButton.module.scss.cjs.js +1 -1
- package/dist/cjs/ContextMenu/ContextMenu.module.scss.cjs.js +1 -1
- package/dist/cjs/ContextMenu/ContextMenuItem.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGrid.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridActions/DataGridActions.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridBody.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DataGridFilter.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DataGridToolbar.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.cjs.js +1 -1
- package/dist/cjs/DatePicker/DatePicker.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Checkbox/Checkbox.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Fieldset/Fieldset.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileItem/FileItem.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FileUpload/FileUpload.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Form.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormControl/FormControl.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormErrorText/FormErrorText.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormGroup/FormGroup.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormHelperText/FormHelperText.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Input/Input.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Label/Label.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Radio/Radio.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/MultiSelect.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/MultiSelect/SelectedOptions.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/SingleSelect/Select.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Select/useAddNewBtn.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Textarea/Textarea.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Toggle/Toggle.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/InputWrapper/InputWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Form/Wrapper/Wrapper/Wrapper.module.scss.cjs.js +1 -1
- package/dist/cjs/Icon/Icon.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/ContentHeader/ContentHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Link/Link.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertContainer/AlertContainer.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Alert/AlertItem/AlertItem.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Banner/Banner.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModal.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/Dialog.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/DialogActions/DialogActions.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheet.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.cjs.js +1 -1
- package/dist/cjs/Notifications/SlideInModal/SlideInModal.module.scss.cjs.js +1 -1
- package/dist/cjs/Pagination/Pagination.module.scss.cjs.js +1 -1
- package/dist/cjs/Popover/Popover.module.scss.cjs.js +1 -1
- package/dist/cjs/ProgressBar/ProgressBar.module.scss.cjs.js +1 -1
- package/dist/cjs/Skeleton/Skeleton.module.scss.cjs.js +1 -1
- package/dist/cjs/Spinner/Spinner.module.scss.cjs.js +1 -1
- package/dist/cjs/Stepper/Step.module.scss.cjs.js +1 -1
- package/dist/cjs/Stepper/Stepper.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/Tab.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/TabButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Tabs/Tabs.module.scss.cjs.js +1 -1
- package/dist/cjs/Tag/RemoveButton.module.scss.cjs.js +1 -1
- package/dist/cjs/Tag/Tag.module.scss.cjs.js +1 -1
- package/dist/cjs/TextEllipsis/TextEllipsis.module.scss.cjs.js +1 -1
- package/dist/cjs/Tiles/Tile.module.scss.cjs.js +1 -1
- package/dist/cjs/Tiles/Tiles.module.scss.cjs.js +1 -1
- package/dist/cjs/Tooltip/Tooltip.module.scss.cjs.js +1 -1
- package/dist/cjs/Typography/Typography.module.scss.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js +1 -1
- package/dist/cjs/_BaseStyling_/BaseStyling.cjs.js.map +1 -1
- package/dist/cjs/_BaseStyling_/buttonBaseStyling.cjs.js +2 -0
- package/dist/cjs/_BaseStyling_/buttonBaseStyling.cjs.js.map +1 -0
- package/dist/cjs/admin/layout/LeftNav/LeftNav.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNav.cjs.js.map +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNav.module.scss.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.cjs.js.map +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.cjs.js.map +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js +1 -1
- package/dist/cjs/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.cjs.js.map +1 -1
- package/dist/cjs/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.cjs.js +1 -1
- package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js +1 -1
- package/dist/cjs/miscellaneous/IdentityProviderButton.cjs.js.map +1 -1
- package/dist/cjs/miscellaneous/IdentityProviderButton.module.scss.cjs.js +1 -1
- package/dist/cjs/src/components/Layout/Card/Card.d.ts +1 -1
- package/dist/cjs/src/components/_BaseStyling_/BaseStyling.d.ts +29 -25
- package/dist/cjs/src/components/_BaseStyling_/buttonBaseStyling.d.ts +14 -0
- package/dist/cjs/src/components/admin/layout/LeftNav/LeftNav.d.ts +1 -0
- package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +1 -0
- package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +1 -0
- package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +1 -0
- package/dist/cjs/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.d.ts +2 -1
- package/dist/cjs/src/readyclasses.module.scss.cjs.js +1 -1
- package/dist/esm/Breadcrumbs/Breadcrumbs.module.scss.esm.js +2 -2
- package/dist/esm/Button/BaseButton.module.scss.esm.js +2 -2
- package/dist/esm/Button/Button.module.scss.esm.js +2 -2
- package/dist/esm/Button/IconButton.module.scss.esm.js +2 -2
- package/dist/esm/ContextMenu/ContextMenu.module.scss.esm.js +2 -2
- package/dist/esm/ContextMenu/ContextMenuItem.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGrid.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridActions/DataGridActions.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridBody.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridCell/DataGridCell.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawer.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridDrawer/DataGridDrawerItem.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridBody/DataGridRow/DataGridRow.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DataGridFilter.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DataGridToolbar.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridFilters/DateTimePicker/DateTimePicker.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeader.module.scss.esm.js +2 -2
- package/dist/esm/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss.esm.js +2 -2
- package/dist/esm/DatePicker/DatePicker.module.scss.esm.js +2 -2
- package/dist/esm/Form/Checkbox/Checkbox.module.scss.esm.js +2 -2
- package/dist/esm/Form/Fieldset/Fieldset.module.scss.esm.js +2 -2
- package/dist/esm/Form/FileUpload/FileItem/FileItem.module.scss.esm.js +2 -2
- package/dist/esm/Form/FileUpload/FileUpload.module.scss.esm.js +2 -2
- package/dist/esm/Form/Form.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormControl/FormControl.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormErrorText/FormErrorText.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormGroup/FormGroup.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormHelperText/FormHelperText.module.scss.esm.js +2 -2
- package/dist/esm/Form/FormSelectorWrapper/FormSelectorWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Input/Input.module.scss.esm.js +2 -2
- package/dist/esm/Form/Label/Label.module.scss.esm.js +2 -2
- package/dist/esm/Form/Radio/Radio.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/MultiSelect.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/SelectButton.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/MultiSelect/SelectedOptions.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/SingleSelect/Select.module.scss.esm.js +2 -2
- package/dist/esm/Form/Select/useAddNewBtn.module.scss.esm.js +2 -2
- package/dist/esm/Form/Textarea/Textarea.module.scss.esm.js +2 -2
- package/dist/esm/Form/Toggle/Toggle.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/CheckboxWrapper/CheckboxWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/InputWrapper/InputWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/MultiSelectWrapper/MultiSelectWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/RadioWrapper/RadioWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/SelectWrapper/SelectWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/TextareaWrapper/TextareaWrapper.module.scss.esm.js +2 -2
- package/dist/esm/Form/Wrapper/Wrapper/Wrapper.module.scss.esm.js +2 -2
- package/dist/esm/Icon/Icon.module.scss.esm.js +2 -2
- package/dist/esm/Layout/ContentHeader/ContentHeader.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormSection/FormSection.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormStepper/FormStepper.module.scss.esm.js +2 -2
- package/dist/esm/Layout/FormPage/FormWithStepper/FormWithStepper.module.scss.esm.js +2 -2
- package/dist/esm/Link/Link.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Alert/AlertContainer/AlertContainer.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Alert/AlertItem/AlertItem.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Banner/Banner.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModal.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalActions/BaseModalActions.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalContent/BaseModalContent.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/Dialog.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/DialogActions/DialogActions.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/Dialog/DialogTitle/DialogTitle.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheet.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheetContent/SideSheetContent.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SideSheet/SideSheetHeader/SideSheetHeader.module.scss.esm.js +2 -2
- package/dist/esm/Notifications/SlideInModal/SlideInModal.module.scss.esm.js +2 -2
- package/dist/esm/Pagination/Pagination.module.scss.esm.js +2 -2
- package/dist/esm/Popover/Popover.module.scss.esm.js +2 -2
- package/dist/esm/ProgressBar/ProgressBar.module.scss.esm.js +2 -2
- package/dist/esm/Skeleton/Skeleton.module.scss.esm.js +2 -2
- package/dist/esm/Spinner/Spinner.module.scss.esm.js +2 -2
- package/dist/esm/Stepper/Step.module.scss.esm.js +2 -2
- package/dist/esm/Stepper/Stepper.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/Tab.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/TabButton.module.scss.esm.js +2 -2
- package/dist/esm/Tabs/Tabs.module.scss.esm.js +2 -2
- package/dist/esm/Tag/RemoveButton.module.scss.esm.js +2 -2
- package/dist/esm/Tag/Tag.module.scss.esm.js +2 -2
- package/dist/esm/TextEllipsis/TextEllipsis.module.scss.esm.js +2 -2
- package/dist/esm/Tiles/Tile.module.scss.esm.js +2 -2
- package/dist/esm/Tiles/Tiles.module.scss.esm.js +2 -2
- package/dist/esm/Tooltip/Tooltip.module.scss.esm.js +2 -2
- package/dist/esm/Typography/Typography.module.scss.esm.js +2 -2
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js +29 -24
- package/dist/esm/_BaseStyling_/BaseStyling.esm.js.map +1 -1
- package/dist/esm/_BaseStyling_/buttonBaseStyling.esm.js +100 -0
- package/dist/esm/_BaseStyling_/buttonBaseStyling.esm.js.map +1 -0
- package/dist/esm/admin/layout/LeftNav/LeftNav.esm.js +2 -2
- package/dist/esm/admin/layout/LeftNav/LeftNav.esm.js.map +1 -1
- package/dist/esm/admin/layout/LeftNav/LeftNav.module.scss.esm.js +2 -2
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.esm.js +12 -7
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.esm.js.map +1 -1
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss.esm.js +2 -2
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.esm.js +3 -3
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.esm.js.map +1 -1
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.esm.js +7 -3
- package/dist/esm/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.esm.js.map +1 -1
- package/dist/esm/admin/layout/MicrofrontendContainer/MicrofrontendContainer.module.scss.esm.js +2 -2
- package/dist/esm/miscellaneous/IdentityProviderButton.esm.js +4 -4
- package/dist/esm/miscellaneous/IdentityProviderButton.esm.js.map +1 -1
- package/dist/esm/miscellaneous/IdentityProviderButton.module.scss.esm.js +2 -2
- package/dist/esm/src/components/Layout/Card/Card.d.ts +1 -1
- package/dist/esm/src/components/_BaseStyling_/BaseStyling.d.ts +29 -25
- package/dist/esm/src/components/_BaseStyling_/buttonBaseStyling.d.ts +14 -0
- package/dist/esm/src/components/admin/layout/LeftNav/LeftNav.d.ts +1 -0
- package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.d.ts +1 -0
- package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.d.ts +1 -0
- package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.d.ts +1 -0
- package/dist/esm/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.d.ts +2 -1
- package/dist/esm/src/readyclasses.module.scss.esm.js +2 -2
- package/package.json +1 -1
- package/src/components/Button/Button.module.scss +1 -1
- package/src/components/ContextMenu/ContextMenuItem.module.scss +2 -2
- package/src/components/DatePicker/DatePicker.module.scss +1 -1
- package/src/components/Form/Checkbox/Checkbox.module.scss +4 -2
- package/src/components/Form/Radio/Radio.module.scss +2 -1
- package/src/components/Form/Select/MultiSelect/MultiSelect.module.scss +1 -1
- package/src/components/Form/Select/SingleSelect/Select.module.scss +2 -2
- package/src/components/Layout/Card/Card.module.scss +3 -3
- package/src/components/Layout/Card/Card.tsx +5 -5
- package/src/components/Link/Link.module.scss +13 -13
- package/src/components/Notifications/BaseModal/BaseModalHeader/BaseModalHeader.module.scss +10 -9
- package/src/components/Notifications/Dialog/DialogTitle/DialogTitle.module.scss +22 -21
- package/src/components/Typography/Typography.module.scss +37 -18
- package/src/components/_BaseStyling_/BaseStyling.tsx +69 -57
- package/src/components/_BaseStyling_/buttonBaseStyling.ts +123 -0
- package/src/components/admin/layout/LeftNav/LeftNav.module.scss +3 -1
- package/src/components/admin/layout/LeftNav/LeftNav.tsx +12 -1
- package/src/components/admin/layout/LeftNav/LeftNavItem/ButtonLeftNavItem.tsx +23 -7
- package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.interface.ts +1 -0
- package/src/components/admin/layout/LeftNav/LeftNavItem/LeftNavItem.module.scss +2 -2
- package/src/components/admin/layout/LeftNav/LeftNavItem/LinkLeftNavItem.tsx +3 -2
- package/src/components/admin/layout/LeftNav/LeftNavItem/useKeyboardNavigation.ts +12 -2
- package/src/components/miscellaneous/IdentityProviderButton.tsx +6 -4
- package/src/mixins.module.scss +22 -24
|
@@ -22,7 +22,7 @@ import { TextEllipsis } from "../../TextEllipsis/TextEllipsis";
|
|
|
22
22
|
|
|
23
23
|
export interface CardHeaderInfo {}
|
|
24
24
|
|
|
25
|
-
export type CardStyle = "
|
|
25
|
+
export type CardStyle = "default" | "white";
|
|
26
26
|
|
|
27
27
|
export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
28
28
|
title?: string;
|
|
@@ -42,7 +42,7 @@ export const CardComponent = ({
|
|
|
42
42
|
action,
|
|
43
43
|
wrapHeaderText = false,
|
|
44
44
|
headerContent,
|
|
45
|
-
cardStyle = "
|
|
45
|
+
cardStyle = "default",
|
|
46
46
|
collapsed = false,
|
|
47
47
|
children,
|
|
48
48
|
...rest
|
|
@@ -91,10 +91,10 @@ export const CardComponent = ({
|
|
|
91
91
|
)}
|
|
92
92
|
{!collapsed && (
|
|
93
93
|
<div
|
|
94
|
-
data-testid={"card-
|
|
94
|
+
data-testid={"card-body"}
|
|
95
95
|
className={[
|
|
96
|
-
classes["
|
|
97
|
-
classes[cardStyle],
|
|
96
|
+
classes["body"],
|
|
97
|
+
classes[`${cardStyle}-body-style`],
|
|
98
98
|
classes[headerPresent ? "with-header" : "without-header"]
|
|
99
99
|
].join(" ")}
|
|
100
100
|
>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
.link {
|
|
20
20
|
font-family: var(--font-family);
|
|
21
|
-
font-size: var(--font-size);
|
|
21
|
+
font-size: var(--link-font-size);
|
|
22
22
|
font-style: normal;
|
|
23
23
|
font-variant: normal;
|
|
24
24
|
line-height: var(--default-line-height);
|
|
@@ -34,50 +34,50 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&.primary {
|
|
37
|
-
color: var(--
|
|
37
|
+
color: var(--link-primary-default-color);
|
|
38
38
|
|
|
39
39
|
&:focus-visible {
|
|
40
|
-
outline: 0.5px dashed var(--
|
|
40
|
+
outline: 0.5px dashed var(--link-primary-default-color);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&:visited {
|
|
44
|
-
color: var(--
|
|
44
|
+
color: var(--link-primary-visited-color);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&.success {
|
|
49
|
-
color: var(--
|
|
49
|
+
color: var(--link-success-default-color);
|
|
50
50
|
|
|
51
51
|
&:focus-visible {
|
|
52
|
-
outline: 0.5px dashed var(--color
|
|
52
|
+
outline: 0.5px dashed var(--link-success-default-color);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:visited {
|
|
56
|
-
color: var(--
|
|
56
|
+
color: var(--link-success-visited-color);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&.danger {
|
|
61
|
-
color: var(--
|
|
61
|
+
color: var(--link-danger-default-color);
|
|
62
62
|
|
|
63
63
|
&:focus-visible {
|
|
64
|
-
outline: 0.5px dashed var(--color
|
|
64
|
+
outline: 0.5px dashed var(--link-danger-default-color);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
&:visited {
|
|
68
|
-
color: var(--
|
|
68
|
+
color: var(--link-danger-visited-color);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&.warning {
|
|
73
|
-
color: var(--
|
|
73
|
+
color: var(--link-warning-default-color);
|
|
74
74
|
|
|
75
75
|
&:focus-visible {
|
|
76
|
-
outline: 0.5px dashed var(--color
|
|
76
|
+
outline: 0.5px dashed var(--link-warning-default-color);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&:visited {
|
|
80
|
-
color: var(--
|
|
80
|
+
color: var(--link-warning-visited-color);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
@@ -19,15 +19,16 @@
|
|
|
19
19
|
padding: 1.25rem 1.5rem 0;
|
|
20
20
|
border-top-left-radius: 8px;
|
|
21
21
|
border-top-right-radius: 8px;
|
|
22
|
-
}
|
|
23
22
|
|
|
24
|
-
.headline {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
23
|
+
.headline {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
29
27
|
|
|
30
|
-
.title {
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
.title {
|
|
29
|
+
flex: 1;
|
|
30
|
+
margin: 0;
|
|
31
|
+
color: var(--modal-title-color);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
33
34
|
}
|
|
@@ -19,33 +19,34 @@
|
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
justify-content: space-between;
|
|
22
|
-
}
|
|
23
22
|
|
|
24
|
-
.headline {
|
|
25
|
-
|
|
23
|
+
.headline {
|
|
24
|
+
display: flex;
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
&.with-caption {
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
}
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
30
|
+
&.no-caption {
|
|
31
|
+
align-items: center;
|
|
32
|
+
}
|
|
35
33
|
|
|
36
|
-
.title {
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
.title {
|
|
35
|
+
margin: 0;
|
|
36
|
+
line-height: 1;
|
|
37
|
+
color: var(--modal-title-color);
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
&-icon > [data-icon] {
|
|
40
|
+
font-size: var(--font-size-big);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
42
43
|
}
|
|
43
|
-
}
|
|
44
44
|
|
|
45
|
-
.caption {
|
|
46
|
-
|
|
47
|
-
}
|
|
45
|
+
.caption {
|
|
46
|
+
color: var(--color-blue-grey500);
|
|
47
|
+
}
|
|
48
48
|
|
|
49
|
-
.close-button {
|
|
50
|
-
|
|
49
|
+
.close-button {
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
}
|
|
51
52
|
}
|
|
@@ -18,44 +18,63 @@
|
|
|
18
18
|
|
|
19
19
|
.typography_style_ {
|
|
20
20
|
&h1 {
|
|
21
|
-
@include mixins.fontProperties(
|
|
21
|
+
@include mixins.fontProperties(
|
|
22
|
+
$fontSize: var(--font-size-h1),
|
|
23
|
+
$fontWeight: 700,
|
|
24
|
+
$lineHeight: 1.2,
|
|
25
|
+
$color: var(--font-color-h1)
|
|
26
|
+
);
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
&h2 {
|
|
25
|
-
@include mixins.fontProperties(
|
|
30
|
+
@include mixins.fontProperties(
|
|
31
|
+
$fontSize: var(--font-size-h2),
|
|
32
|
+
$fontWeight: 700,
|
|
33
|
+
$lineHeight: 1.42857,
|
|
34
|
+
$color: var(--font-color-h2)
|
|
35
|
+
);
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
&h3 {
|
|
29
|
-
@include mixins.fontProperties(
|
|
39
|
+
@include mixins.fontProperties(
|
|
40
|
+
$fontSize: var(--font-size-h3),
|
|
41
|
+
$fontWeight: 500,
|
|
42
|
+
$lineHeight: 1.16666,
|
|
43
|
+
$color: var(--font-color-h3)
|
|
44
|
+
);
|
|
30
45
|
}
|
|
31
46
|
|
|
32
47
|
&h4 {
|
|
33
|
-
@include mixins.fontProperties(
|
|
48
|
+
@include mixins.fontProperties(
|
|
49
|
+
$fontSize: var(--font-size-h4),
|
|
50
|
+
$fontWeight: 500,
|
|
51
|
+
$lineHeight: 1.2,
|
|
52
|
+
$color: var(--font-color-h4)
|
|
53
|
+
);
|
|
34
54
|
}
|
|
35
55
|
|
|
36
56
|
&body {
|
|
37
|
-
@include mixins.fontProperties(
|
|
38
|
-
var(--font-family),
|
|
39
|
-
var(--font-size),
|
|
40
|
-
400,
|
|
41
|
-
var(--default-line-height)
|
|
42
|
-
);
|
|
57
|
+
@include mixins.fontProperties($color: var(--font-color-body));
|
|
43
58
|
}
|
|
44
59
|
|
|
45
60
|
&body-bold {
|
|
46
|
-
@include mixins.fontProperties(
|
|
47
|
-
var(--font-family),
|
|
48
|
-
var(--font-size),
|
|
49
|
-
700,
|
|
50
|
-
var(--default-line-height)
|
|
51
|
-
);
|
|
61
|
+
@include mixins.fontProperties($color: var(--font-color-body), $fontWeight: 700);
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
&sub-text {
|
|
55
|
-
@include mixins.fontProperties(
|
|
65
|
+
@include mixins.fontProperties(
|
|
66
|
+
$fontSize: var(--font-size-sub),
|
|
67
|
+
$lineHeight: var(--font-size),
|
|
68
|
+
$color: var(--font-color-h4)
|
|
69
|
+
);
|
|
56
70
|
}
|
|
57
71
|
|
|
58
72
|
&code {
|
|
59
|
-
@include mixins.fontProperties(
|
|
73
|
+
@include mixins.fontProperties(
|
|
74
|
+
$fontFamily: var(--font-family-code),
|
|
75
|
+
$fontSize: var(--font-size-code),
|
|
76
|
+
$lineHeight: 1.5,
|
|
77
|
+
$color: var(--font-color-code)
|
|
78
|
+
);
|
|
60
79
|
}
|
|
61
80
|
}
|
|
@@ -20,8 +20,9 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import React, { HTMLAttributes, ReactElement, useEffect, useRef, useState } from "react";
|
|
23
|
+
import { ButtonColorProps, defaultButtonColors } from "./buttonBaseStyling";
|
|
23
24
|
|
|
24
|
-
export interface CSSProperties {
|
|
25
|
+
export interface CSSProperties extends ButtonColorProps {
|
|
25
26
|
colorFocus?: string;
|
|
26
27
|
colorPrimary?: string;
|
|
27
28
|
colorSuccess?: string;
|
|
@@ -76,36 +77,19 @@ export interface CSSProperties {
|
|
|
76
77
|
buttonBorderWidth?: string;
|
|
77
78
|
buttonFontSize?: string;
|
|
78
79
|
buttonBorderStyle?: string;
|
|
79
|
-
|
|
80
|
-
buttonPrimaryPressedColor?: string;
|
|
81
|
-
buttonFillTextColor?: string;
|
|
82
|
-
buttonPrimaryHoverColor?: string;
|
|
83
|
-
buttonPrimaryFocusedColor?: string;
|
|
80
|
+
/**@deprecated*/
|
|
84
81
|
buttonOutlineHoverTextColor?: string;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
buttonSuccessFocusedColor?: string;
|
|
88
|
-
buttonSuccessPressedColor?: string;
|
|
89
|
-
buttonDangerDefaultColor?: string;
|
|
90
|
-
buttonDangerHoverColor?: string;
|
|
91
|
-
buttonDangerFocusedColor?: string;
|
|
92
|
-
buttonDangerPressedColor?: string;
|
|
93
|
-
buttonWarningDefaultColor?: string;
|
|
94
|
-
buttonWarningHoverColor?: string;
|
|
95
|
-
buttonWarningFocusedColor?: string;
|
|
96
|
-
buttonWarningPressedColor?: string;
|
|
97
|
-
buttonDefaultColor?: string;
|
|
98
|
-
buttonDefaultHoverColor?: string;
|
|
99
|
-
buttonDefaultFocusedColor?: string;
|
|
100
|
-
buttonDefaultPressedColor?: string;
|
|
101
|
-
buttonOutlineActiveTextColor?: string;
|
|
82
|
+
buttonFillTextColor?: string;
|
|
83
|
+
checkboxUncheckedColor?: string;
|
|
102
84
|
checkboxUncheckedHoverColor?: string;
|
|
103
85
|
checkboxUncheckedPressedColor?: string;
|
|
86
|
+
checkboxCheckedColor?: string;
|
|
104
87
|
checkboxCheckedHoverColor?: string;
|
|
105
88
|
checkboxCheckedPressedColor?: string;
|
|
106
89
|
radioHoverBackgroundColor?: string;
|
|
107
90
|
radioPressedBackgroundColor?: string;
|
|
108
91
|
radioHoverColor?: string;
|
|
92
|
+
radioCheckedColor?: string;
|
|
109
93
|
radioPressedColor?: string;
|
|
110
94
|
defaultBorderRadius?: string;
|
|
111
95
|
inputBorderRadius?: string;
|
|
@@ -118,7 +102,9 @@ export interface CSSProperties {
|
|
|
118
102
|
inputHoverBackgroundColor?: string;
|
|
119
103
|
inputDisabledBackgroundColor?: string;
|
|
120
104
|
inputFontSize?: string;
|
|
105
|
+
iconFontBig?: string;
|
|
121
106
|
dragBorderStyle?: string;
|
|
107
|
+
modalTitleColor?: string;
|
|
122
108
|
modalShadowColor?: string;
|
|
123
109
|
modalBackgroundColor?: string;
|
|
124
110
|
modalBackdropColor?: string;
|
|
@@ -131,19 +117,16 @@ export interface CSSProperties {
|
|
|
131
117
|
alertFontSize?: string;
|
|
132
118
|
alertTextColor?: string;
|
|
133
119
|
alertTextInvertedColor?: string;
|
|
134
|
-
|
|
135
120
|
alertNeutralBackgroundColor?: string;
|
|
136
121
|
alertInfoBackgroundColor?: string;
|
|
137
122
|
alertSuccessBackgroundColor?: string;
|
|
138
123
|
alertErrorBackgroundColor?: string;
|
|
139
124
|
alertWarningBackgroundColor?: string;
|
|
140
|
-
|
|
141
125
|
alertNeutralInvertedColor?: string;
|
|
142
126
|
alertInfoInvertedColor?: string;
|
|
143
127
|
alertSuccessInvertedColor?: string;
|
|
144
128
|
alertErrorInvertedColor?: string;
|
|
145
129
|
alertWarningInvertedColor?: string;
|
|
146
|
-
|
|
147
130
|
alertBorderWidth?: string;
|
|
148
131
|
alertBorderRadius?: string;
|
|
149
132
|
|
|
@@ -191,9 +174,25 @@ export interface CSSProperties {
|
|
|
191
174
|
tabPressedColor?: string;
|
|
192
175
|
toggleBackgroundColor?: string;
|
|
193
176
|
tooltipBackgroundColor?: string;
|
|
177
|
+
|
|
194
178
|
contextMenuHoverColor?: string;
|
|
179
|
+
contextMenuActiveColor?: string;
|
|
195
180
|
contextMenuPressedColor?: string;
|
|
196
181
|
contextMenuFontSize?: string;
|
|
182
|
+
|
|
183
|
+
linkFontSize?: string;
|
|
184
|
+
linkPrimaryDefaultColor?: string;
|
|
185
|
+
linkPrimaryVisitedColor?: string;
|
|
186
|
+
linkSuccessDefaultColor?: string;
|
|
187
|
+
linkSuccessVisitedColor?: string;
|
|
188
|
+
linkDangerDefaultColor?: string;
|
|
189
|
+
linkDangerVisitedColor?: string;
|
|
190
|
+
linkWarningDefaultColor?: string;
|
|
191
|
+
linkWarningVisitedColor?: string;
|
|
192
|
+
|
|
193
|
+
leftNavItemActiveRibbonColor?: string;
|
|
194
|
+
leftNavItemActiveBackgroundColor?: string;
|
|
195
|
+
|
|
197
196
|
default?: string;
|
|
198
197
|
success?: string;
|
|
199
198
|
error?: string;
|
|
@@ -203,25 +202,33 @@ export interface CSSProperties {
|
|
|
203
202
|
lightGreyBorder?: string;
|
|
204
203
|
warning?: string;
|
|
205
204
|
light?: string;
|
|
205
|
+
|
|
206
206
|
fontFamily?: string;
|
|
207
207
|
fontFamilyCode?: string;
|
|
208
208
|
fontSizeFormLabel?: string;
|
|
209
209
|
fontSize?: string;
|
|
210
|
+
fontColorBody?: string;
|
|
210
211
|
fontSizeH1?: string;
|
|
212
|
+
fontColorH1?: string;
|
|
211
213
|
fontSizeH2?: string;
|
|
214
|
+
fontColorH2?: string;
|
|
212
215
|
fontSizeH3?: string;
|
|
216
|
+
fontColorH3?: string;
|
|
213
217
|
fontSizeH4?: string;
|
|
218
|
+
fontColorH4?: string;
|
|
214
219
|
fontSizeSub?: string;
|
|
220
|
+
fontColorSub?: string;
|
|
221
|
+
fontSizeCode?: string;
|
|
222
|
+
fontColorCode?: string;
|
|
215
223
|
fontSizeSmall?: string;
|
|
216
224
|
fontSizeBig?: string;
|
|
217
|
-
|
|
225
|
+
|
|
218
226
|
formControlFontSize?: string;
|
|
219
227
|
fileUploadBorderWidth?: string;
|
|
220
228
|
dragDropBorderStyle?: string;
|
|
221
229
|
fontSizeDataGrid?: string;
|
|
222
230
|
readOnlyBorderColor?: string;
|
|
223
231
|
readOnlyTextColor?: string;
|
|
224
|
-
iconFontBig?: string;
|
|
225
232
|
}
|
|
226
233
|
|
|
227
234
|
export interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -286,34 +293,18 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
286
293
|
buttonBorderWidth: "2px",
|
|
287
294
|
buttonFontSize: "0.875rem",
|
|
288
295
|
buttonBorderStyle: "solid",
|
|
296
|
+
...defaultButtonColors,
|
|
289
297
|
buttonFillTextColor: "var(--light)",
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
buttonPrimaryFocusedColor: "var(--color-primary500)",
|
|
293
|
-
buttonPrimaryPressedColor: "var(--color-primary700)",
|
|
294
|
-
buttonSuccessDefaultColor: "var(--color-green500)",
|
|
295
|
-
buttonSuccessHoverColor: "var(--color-green600)",
|
|
296
|
-
buttonSuccessFocusedColor: "var(--color-green500)",
|
|
297
|
-
buttonSuccessPressedColor: "var(--color-green700)",
|
|
298
|
-
buttonDangerDefaultColor: "var(--color-red500)",
|
|
299
|
-
buttonDangerHoverColor: "var(--color-red600)",
|
|
300
|
-
buttonDangerFocusedColor: "var(--color-red500)",
|
|
301
|
-
buttonDangerPressedColor: "var(--color-red700)",
|
|
302
|
-
buttonWarningDefaultColor: "var(--color-orange500)",
|
|
303
|
-
buttonWarningHoverColor: "var(--color-orange600)",
|
|
304
|
-
buttonWarningFocusedColor: "var(--color-orange500)",
|
|
305
|
-
buttonWarningPressedColor: "var(--color-orange700)",
|
|
306
|
-
buttonDefaultColor: "var(--color-blue-grey700)",
|
|
307
|
-
buttonDefaultHoverColor: "var(--color-blue-grey800)",
|
|
308
|
-
buttonDefaultFocusedColor: "var(--color-blue-grey700)",
|
|
309
|
-
buttonDefaultPressedColor: "var(--color-blue-grey800)",
|
|
310
|
-
buttonOutlineHoverTextColor: "var(--color-primary600)",
|
|
298
|
+
buttonOutlineHoverTextColor: "var(--color-primary600)", //TODO: to be removed, it's not used anywhere within component library
|
|
299
|
+
checkboxUncheckedColor: "var(--color-blue-grey500)",
|
|
311
300
|
checkboxUncheckedHoverColor: "var(--color-blue-grey50)",
|
|
312
301
|
checkboxUncheckedPressedColor: "var(--default-pressed-color)",
|
|
302
|
+
checkboxCheckedColor: "var(--color-primary)",
|
|
313
303
|
checkboxCheckedHoverColor: "var(--color-primary600)",
|
|
314
304
|
checkboxCheckedPressedColor: "var(--color-primary700)",
|
|
315
305
|
radioHoverBackgroundColor: "var(--color-blue-grey50)",
|
|
316
306
|
radioPressedBackgroundColor: "var(--default-pressed-color)",
|
|
307
|
+
radioCheckedColor: "var(--color-primary)",
|
|
317
308
|
radioHoverColor: "var(--color-primary600)",
|
|
318
309
|
radioPressedColor: "var(--color-primary700)",
|
|
319
310
|
inputBorderRadius: "2px",
|
|
@@ -328,7 +319,9 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
328
319
|
inputHoverBackgroundColor: "var(--default-hover-color)",
|
|
329
320
|
inputDisabledBackgroundColor: "var(--input-hover-background-color)",
|
|
330
321
|
inputFontSize: "0.875rem",
|
|
322
|
+
iconFontBig: "1.125rem",
|
|
331
323
|
dragBorderStyle: "solid",
|
|
324
|
+
modalTitleColor: "var(--font-color-h4)",
|
|
332
325
|
modalShadowColor: "rgba(0, 0, 0, 0.16)",
|
|
333
326
|
modalBackgroundColor: "var(--light)",
|
|
334
327
|
modalBackdropColor: "var(--default)",
|
|
@@ -344,19 +337,14 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
344
337
|
|
|
345
338
|
alertNeutralBackgroundColor: "var(--color-blue-grey50)",
|
|
346
339
|
alertNeutralInvertedColor: "var(--color-blue-grey500)",
|
|
347
|
-
|
|
348
340
|
alertInfoBackgroundColor: "var(--color-primary50)",
|
|
349
341
|
alertInfoInvertedColor: "var(--color-primary500)",
|
|
350
|
-
|
|
351
342
|
alertSuccessBackgroundColor: "var(--color-green50)",
|
|
352
343
|
alertSuccessInvertedColor: "var(--color-green500)",
|
|
353
|
-
|
|
354
344
|
alertErrorBackgroundColor: "var(--color-red50)",
|
|
355
345
|
alertErrorInvertedColor: "var(--color-red500)",
|
|
356
|
-
|
|
357
346
|
alertWarningBackgroundColor: "var(--color-orange50)",
|
|
358
347
|
alertWarningInvertedColor: "var(--color-orange500)",
|
|
359
|
-
|
|
360
348
|
alertBorderWidth: "4px",
|
|
361
349
|
alertBorderRadius: "2px",
|
|
362
350
|
|
|
@@ -404,9 +392,25 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
404
392
|
tabPressedColor: "var(--default-pressed-color)",
|
|
405
393
|
toggleBackgroundColor: "var(--color-blue-grey100)",
|
|
406
394
|
tooltipBackgroundColor: "var(--default)",
|
|
395
|
+
|
|
407
396
|
contextMenuHoverColor: "var(--default-hover-color)",
|
|
397
|
+
contextMenuActiveColor: "var(--color-primary)",
|
|
408
398
|
contextMenuPressedColor: "var(--default-pressed-color)",
|
|
409
399
|
contextMenuFontSize: "0.875rem",
|
|
400
|
+
|
|
401
|
+
linkFontSize: "var(--font-size)",
|
|
402
|
+
linkPrimaryDefaultColor: "var(--color-primary)",
|
|
403
|
+
linkPrimaryVisitedColor: "var(--button-primary-pressed-color)",
|
|
404
|
+
linkSuccessDefaultColor: "var(--color-success)",
|
|
405
|
+
linkSuccessVisitedColor: "var(--button-success-pressed-color)",
|
|
406
|
+
linkDangerDefaultColor: "var(--color-danger)",
|
|
407
|
+
linkDangerVisitedColor: "var(--button-danger-pressed-color)",
|
|
408
|
+
linkWarningDefaultColor: "var(--color-warning)",
|
|
409
|
+
linkWarningVisitedColor: "var(--button-warning-pressed-color)",
|
|
410
|
+
|
|
411
|
+
leftNavItemActiveRibbonColor: "var(--color-primary)",
|
|
412
|
+
leftNavItemActiveBackgroundColor: "var(--color-primary50)",
|
|
413
|
+
|
|
410
414
|
default: "var(--color-blue-grey900)",
|
|
411
415
|
success: "var(--color-green500)",
|
|
412
416
|
error: "var(--color-red500)",
|
|
@@ -416,23 +420,31 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
416
420
|
lightGreyBorder: "var(--color-blue-grey100)",
|
|
417
421
|
warning: "var(--color-orange500)",
|
|
418
422
|
light: "var(--color-white)",
|
|
423
|
+
|
|
419
424
|
fontFamily: "Roboto, sans-serif",
|
|
420
425
|
fontFamilyCode: "'Roboto Mono', monospace",
|
|
421
426
|
fontSizeFormLabel: "0.875rem",
|
|
422
427
|
fontSize: "1rem",
|
|
428
|
+
fontColorBody: "var(--default)",
|
|
423
429
|
fontSizeH1: "2.5rem",
|
|
430
|
+
fontColorH1: "var(--default)",
|
|
424
431
|
fontSizeH2: "1.625rem",
|
|
432
|
+
fontColorH2: "var(--default)",
|
|
425
433
|
fontSizeH3: "1.5rem",
|
|
434
|
+
fontColorH3: "var(--default)",
|
|
426
435
|
fontSizeH4: "1.25rem",
|
|
436
|
+
fontColorH4: "var(--default)",
|
|
427
437
|
fontSizeSub: "0.75rem",
|
|
438
|
+
fontColorSub: "var(--default)",
|
|
439
|
+
fontSizeCode: "1rem",
|
|
440
|
+
fontColorCode: "var(--default)",
|
|
428
441
|
fontSizeSmall: "0.625rem",
|
|
429
442
|
fontSizeBig: "1.25rem",
|
|
430
|
-
|
|
443
|
+
|
|
431
444
|
readOnlyBorderColor: "var(--color-blue-grey100)",
|
|
432
445
|
readOnlyTextColor: "var(--color-blue-grey900)",
|
|
433
446
|
formControlFontSize: "0.875rem",
|
|
434
|
-
fontSizeDataGrid: "0.875rem"
|
|
435
|
-
iconFontBig: "1.125rem"
|
|
447
|
+
fontSizeDataGrid: "0.875rem"
|
|
436
448
|
};
|
|
437
449
|
|
|
438
450
|
/** We need a loading state, because otherwise you see the colors flash from the default to the possible overridden ones. */
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2022 OneWelcome B.V.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
type ButtonType = "primary" | "success" | "danger" | "warning" | "default";
|
|
18
|
+
type ButtonVariant = "fill" | "outline" | "text";
|
|
19
|
+
type ButtonState = "default" | "hover" | "focused" | "pressed";
|
|
20
|
+
|
|
21
|
+
type CapitalizeString<T extends string> = T extends `${infer First}${infer Rest}`
|
|
22
|
+
? `${Uppercase<First>}${Rest}`
|
|
23
|
+
: T;
|
|
24
|
+
|
|
25
|
+
type Flattened<K extends string> = {
|
|
26
|
+
[Key in K]?: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
type BaseButtonProps = Omit<
|
|
30
|
+
Flattened<`button${CapitalizeString<ButtonType>}${CapitalizeString<ButtonState>}Color`>,
|
|
31
|
+
"buttonDefaultDefaultColor"
|
|
32
|
+
> & { buttonDefaultColor?: string };
|
|
33
|
+
|
|
34
|
+
type VariantButtonProps =
|
|
35
|
+
Flattened<`button${CapitalizeString<ButtonVariant>}${CapitalizeString<ButtonType>}${CapitalizeString<ButtonState>}Color`>;
|
|
36
|
+
|
|
37
|
+
export type ButtonColorProps = BaseButtonProps & VariantButtonProps;
|
|
38
|
+
|
|
39
|
+
export const defaultButtonColors: Required<ButtonColorProps> = {
|
|
40
|
+
buttonPrimaryDefaultColor: "var(--color-primary500)",
|
|
41
|
+
buttonPrimaryHoverColor: "var(--color-primary600)",
|
|
42
|
+
buttonPrimaryFocusedColor: "var(--color-primary500)",
|
|
43
|
+
buttonPrimaryPressedColor: "var(--color-primary700)",
|
|
44
|
+
buttonSuccessDefaultColor: "var(--color-green500)",
|
|
45
|
+
buttonSuccessHoverColor: "var(--color-green600)",
|
|
46
|
+
buttonSuccessFocusedColor: "var(--color-green500)",
|
|
47
|
+
buttonSuccessPressedColor: "var(--color-green700)",
|
|
48
|
+
buttonDangerDefaultColor: "var(--color-red500)",
|
|
49
|
+
buttonDangerHoverColor: "var(--color-red600)",
|
|
50
|
+
buttonDangerFocusedColor: "var(--color-red500)",
|
|
51
|
+
buttonDangerPressedColor: "var(--color-red700)",
|
|
52
|
+
buttonWarningDefaultColor: "var(--color-orange500)",
|
|
53
|
+
buttonWarningHoverColor: "var(--color-orange600)",
|
|
54
|
+
buttonWarningFocusedColor: "var(--color-orange500)",
|
|
55
|
+
buttonWarningPressedColor: "var(--color-orange700)",
|
|
56
|
+
buttonDefaultColor: "var(--color-blue-grey700)",
|
|
57
|
+
buttonDefaultHoverColor: "var(--color-blue-grey800)",
|
|
58
|
+
buttonDefaultFocusedColor: "var(--color-blue-grey700)",
|
|
59
|
+
buttonDefaultPressedColor: "var(--color-blue-grey800)",
|
|
60
|
+
|
|
61
|
+
buttonFillPrimaryDefaultColor: "var(--button-primary-default-color)",
|
|
62
|
+
buttonFillPrimaryHoverColor: "var(--button-primary-hover-color)",
|
|
63
|
+
buttonFillPrimaryFocusedColor: "var(--button-primary-focused-color)",
|
|
64
|
+
buttonFillPrimaryPressedColor: "var(--button-primary-pressed-color)",
|
|
65
|
+
buttonFillSuccessDefaultColor: "var(--button-success-default-color)",
|
|
66
|
+
buttonFillSuccessHoverColor: "var(--button-success-hover-color)",
|
|
67
|
+
buttonFillSuccessFocusedColor: "var(--button-success-focused-color)",
|
|
68
|
+
buttonFillSuccessPressedColor: "var(--button-success-pressed-color)",
|
|
69
|
+
buttonFillDangerDefaultColor: "var(--button-danger-default-color)",
|
|
70
|
+
buttonFillDangerHoverColor: "var(--button-danger-hover-color)",
|
|
71
|
+
buttonFillDangerFocusedColor: "var(--button-danger-focused-color)",
|
|
72
|
+
buttonFillDangerPressedColor: "var(--button-danger-pressed-color)",
|
|
73
|
+
buttonFillWarningDefaultColor: "var(--button-warning-default-color)",
|
|
74
|
+
buttonFillWarningHoverColor: "var(--button-warning-hover-color)",
|
|
75
|
+
buttonFillWarningFocusedColor: "var(--button-warning-focused-color)",
|
|
76
|
+
buttonFillWarningPressedColor: "var(--button-warning-pressed-color)",
|
|
77
|
+
buttonFillDefaultDefaultColor: "var(--button-default-default-color)",
|
|
78
|
+
buttonFillDefaultHoverColor: "var(--button-default-hover-color)",
|
|
79
|
+
buttonFillDefaultFocusedColor: "var(--button-default-focused-color)",
|
|
80
|
+
buttonFillDefaultPressedColor: "var(--button-default-pressed-color)",
|
|
81
|
+
|
|
82
|
+
buttonOutlinePrimaryDefaultColor: "var(--button-primary-default-color)",
|
|
83
|
+
buttonOutlinePrimaryHoverColor: "var(--button-primary-hover-color)",
|
|
84
|
+
buttonOutlinePrimaryFocusedColor: "var(--button-primary-focused-color)",
|
|
85
|
+
buttonOutlinePrimaryPressedColor: "var(--button-primary-pressed-color)",
|
|
86
|
+
buttonOutlineSuccessDefaultColor: "var(--button-success-default-color)",
|
|
87
|
+
buttonOutlineSuccessHoverColor: "var(--button-success-hover-color)",
|
|
88
|
+
buttonOutlineSuccessFocusedColor: "var(--button-success-focused-color)",
|
|
89
|
+
buttonOutlineSuccessPressedColor: "var(--button-success-pressed-color)",
|
|
90
|
+
buttonOutlineDangerDefaultColor: "var(--button-danger-default-color)",
|
|
91
|
+
buttonOutlineDangerHoverColor: "var(--button-danger-hover-color)",
|
|
92
|
+
buttonOutlineDangerFocusedColor: "var(--button-danger-focused-color)",
|
|
93
|
+
buttonOutlineDangerPressedColor: "var(--button-danger-pressed-color)",
|
|
94
|
+
buttonOutlineWarningDefaultColor: "var(--button-warning-default-color)",
|
|
95
|
+
buttonOutlineWarningHoverColor: "var(--button-warning-hover-color)",
|
|
96
|
+
buttonOutlineWarningFocusedColor: "var(--button-warning-focused-color)",
|
|
97
|
+
buttonOutlineWarningPressedColor: "var(--button-warning-pressed-color)",
|
|
98
|
+
buttonOutlineDefaultDefaultColor: "var(--button-default-default-color)",
|
|
99
|
+
buttonOutlineDefaultHoverColor: "var(--button-default-hover-color)",
|
|
100
|
+
buttonOutlineDefaultFocusedColor: "var(--button-default-focused-color)",
|
|
101
|
+
buttonOutlineDefaultPressedColor: "var(--button-default-pressed-color)",
|
|
102
|
+
|
|
103
|
+
buttonTextPrimaryDefaultColor: "var(--button-primary-default-color)",
|
|
104
|
+
buttonTextPrimaryHoverColor: "var(--button-primary-hover-color)",
|
|
105
|
+
buttonTextPrimaryFocusedColor: "var(--button-primary-focused-color)",
|
|
106
|
+
buttonTextPrimaryPressedColor: "var(--button-primary-pressed-color)",
|
|
107
|
+
buttonTextSuccessDefaultColor: "var(--button-success-default-color)",
|
|
108
|
+
buttonTextSuccessHoverColor: "var(--button-success-hover-color)",
|
|
109
|
+
buttonTextSuccessFocusedColor: "var(--button-success-focused-color)",
|
|
110
|
+
buttonTextSuccessPressedColor: "var(--button-success-pressed-color)",
|
|
111
|
+
buttonTextDangerDefaultColor: "var(--button-danger-default-color)",
|
|
112
|
+
buttonTextDangerHoverColor: "var(--button-danger-hover-color)",
|
|
113
|
+
buttonTextDangerFocusedColor: "var(--button-danger-focused-color)",
|
|
114
|
+
buttonTextDangerPressedColor: "var(--button-danger-pressed-color)",
|
|
115
|
+
buttonTextWarningDefaultColor: "var(--button-warning-default-color)",
|
|
116
|
+
buttonTextWarningHoverColor: "var(--button-warning-hover-color)",
|
|
117
|
+
buttonTextWarningFocusedColor: "var(--button-warning-focused-color)",
|
|
118
|
+
buttonTextWarningPressedColor: "var(--button-warning-pressed-color)",
|
|
119
|
+
buttonTextDefaultDefaultColor: "var(--button-default-default-color)",
|
|
120
|
+
buttonTextDefaultHoverColor: "var(--button-default-hover-color)",
|
|
121
|
+
buttonTextDefaultFocusedColor: "var(--button-default-focused-color)",
|
|
122
|
+
buttonTextDefaultPressedColor: "var(--button-default-pressed-color)"
|
|
123
|
+
};
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
position: fixed;
|
|
22
22
|
z-index: 2;
|
|
23
23
|
|
|
24
|
-
background-color: white;
|
|
25
24
|
display: block;
|
|
26
25
|
overflow-y: auto;
|
|
27
26
|
flex-shrink: 0;
|
|
@@ -30,6 +29,9 @@
|
|
|
30
29
|
padding: 0;
|
|
31
30
|
margin: 0;
|
|
32
31
|
|
|
32
|
+
font-family: var(--font-family);
|
|
33
|
+
|
|
34
|
+
background-color: white;
|
|
33
35
|
box-shadow:
|
|
34
36
|
0px 2px 2px 0px rgba(1, 5, 50, 0.02),
|
|
35
37
|
0px 3px 4px 0px rgba(1, 5, 50, 0.02),
|