@mailstep/design-system 0.8.51 → 0.9.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/package.json +22 -6
- package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +1 -1
- package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.d.ts +0 -1
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +2 -2
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +6 -7
- package/ui/Blocks/Header/components/UserMenu/index.js +1 -1
- package/ui/Blocks/Header/styles.js +1 -1
- package/ui/Elements/Avatar/Avatar.js +1 -1
- package/ui/Elements/Avatar/styles.js +1 -1
- package/ui/Elements/Button/styles.js +1 -1
- package/ui/Elements/DropdownMenu/components/MenuItem.js +16 -29
- package/ui/Elements/DropdownMenu/types.d.ts +0 -2
- package/ui/Modules/Dashboard/Hoc/LoadingBoundary.d.ts +8 -0
- package/ui/Modules/Dashboard/Hoc/LoadingBoundary.js +11 -0
- package/ui/Modules/Dashboard/Hoc/index.d.ts +3 -0
- package/ui/Modules/Dashboard/Hoc/index.js +4 -0
- package/ui/Modules/Dashboard/Hoc/storybook/withReduxProvider.d.ts +4 -0
- package/ui/Modules/Dashboard/Hoc/storybook/withReduxProvider.js +14 -0
- package/ui/Modules/Dashboard/Hoc/withConfig.d.ts +7 -0
- package/ui/Modules/Dashboard/Hoc/withConfig.js +22 -0
- package/ui/Modules/Dashboard/Hoc/withFetch.d.ts +26 -0
- package/ui/Modules/Dashboard/Hoc/withFetch.js +50 -0
- package/ui/Modules/Dashboard/Hoc/withProps.d.ts +4 -0
- package/ui/Modules/Dashboard/Hoc/withProps.js +25 -0
- package/ui/Modules/Dashboard/assets/BarChartPreview.png +0 -0
- package/ui/Modules/Dashboard/assets/ColorBoxPreview.png +0 -0
- package/ui/Modules/Dashboard/assets/HorizontalBarPreview.png +0 -0
- package/ui/Modules/Dashboard/assets/NumberBoxPreview.png +0 -0
- package/ui/Modules/Dashboard/assets/PieChartPreview.png +0 -0
- package/ui/Modules/Dashboard/assets/TablePreview.png +0 -0
- package/ui/Modules/Dashboard/assets/TextBoxPreview.png +0 -0
- package/ui/Modules/Dashboard/assets/move.svg +18 -0
- package/ui/Modules/Dashboard/components/Config/MultiConfig.d.ts +6 -0
- package/ui/Modules/Dashboard/components/Config/MultiConfig.js +51 -0
- package/ui/Modules/Dashboard/components/Config/components/CommonConfig.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Config/components/CommonConfig.js +20 -0
- package/ui/Modules/Dashboard/components/Config/components/InputConfig.d.ts +5 -0
- package/ui/Modules/Dashboard/components/Config/components/InputConfig.js +104 -0
- package/ui/Modules/Dashboard/components/Config/types.d.ts +1 -0
- package/ui/Modules/Dashboard/components/Config/types.js +1 -0
- package/ui/Modules/Dashboard/components/Dashboard/Dashboard.d.ts +9 -0
- package/ui/Modules/Dashboard/components/Dashboard/Dashboard.js +16 -0
- package/ui/Modules/Dashboard/components/Dashboard/DashboardContainer.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Dashboard/DashboardContainer.js +31 -0
- package/ui/Modules/Dashboard/components/Dashboard/components/Body.d.ts +7 -0
- package/ui/Modules/Dashboard/components/Dashboard/components/Body.js +7 -0
- package/ui/Modules/Dashboard/components/Dashboard/components/HandleChange.d.ts +6 -0
- package/ui/Modules/Dashboard/components/Dashboard/components/HandleChange.js +25 -0
- package/ui/Modules/Dashboard/components/Dashboard/components/LayoutErrorBoundary.d.ts +13 -0
- package/ui/Modules/Dashboard/components/Dashboard/components/LayoutErrorBoundary.js +19 -0
- package/ui/Modules/Dashboard/components/Dashboard/dashboard2.css +124 -0
- package/ui/Modules/Dashboard/components/Dashboard/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Dashboard/index.js +5 -0
- package/ui/Modules/Dashboard/components/Header/Header.d.ts +8 -0
- package/ui/Modules/Dashboard/components/Header/Header.js +9 -0
- package/ui/Modules/Dashboard/components/Header/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Header/index.js +5 -0
- package/ui/Modules/Dashboard/components/Layout/Layout.d.ts +18 -0
- package/ui/Modules/Dashboard/components/Layout/Layout.js +39 -0
- package/ui/Modules/Dashboard/components/Layout/LayoutContainer.d.ts +7 -0
- package/ui/Modules/Dashboard/components/Layout/LayoutContainer.js +40 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/Item.d.ts +18 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/Item.js +79 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/ItemContainer.d.ts +11 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/ItemContainer.js +64 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/WidgetErrorBoundary.d.ts +14 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/WidgetErrorBoundary.js +28 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Layout/components/Item/index.js +5 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfig.d.ts +13 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfig.js +18 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.d.ts +8 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/ItemConfigControls.js +31 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemConfig/index.js +5 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/ItemHeader.d.ts +12 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/ItemHeader.js +27 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Layout/components/ItemHeader/index.js +5 -0
- package/ui/Modules/Dashboard/components/Layout/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Layout/index.js +5 -0
- package/ui/Modules/Dashboard/components/NoData/NoData.d.ts +2 -0
- package/ui/Modules/Dashboard/components/NoData/NoData.js +14 -0
- package/ui/Modules/Dashboard/components/NoData/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/NoData/index.js +5 -0
- package/ui/Modules/Dashboard/components/Picker/Picker.d.ts +8 -0
- package/ui/Modules/Dashboard/components/Picker/Picker.js +38 -0
- package/ui/Modules/Dashboard/components/Picker/PickerContainer.d.ts +7 -0
- package/ui/Modules/Dashboard/components/Picker/PickerContainer.js +38 -0
- package/ui/Modules/Dashboard/components/Picker/components/PickerItem.d.ts +8 -0
- package/ui/Modules/Dashboard/components/Picker/components/PickerItem.js +25 -0
- package/ui/Modules/Dashboard/components/Picker/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Picker/index.js +5 -0
- package/ui/Modules/Dashboard/components/Text/Text.d.ts +7 -0
- package/ui/Modules/Dashboard/components/Text/Text.js +14 -0
- package/ui/Modules/Dashboard/components/Text/index.d.ts +1 -0
- package/ui/Modules/Dashboard/components/Text/index.js +2 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/BarChart.d.ts +19 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/BarChart.js +52 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/Config.d.ts +1 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/Config.js +5 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/index.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/index.js +6 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/styles.d.ts +12 -0
- package/ui/Modules/Dashboard/components/Widgets/BarChart/styles.js +39 -0
- package/ui/Modules/Dashboard/components/Widgets/ColorBox/ColorBox.d.ts +7 -0
- package/ui/Modules/Dashboard/components/Widgets/ColorBox/ColorBox.js +21 -0
- package/ui/Modules/Dashboard/components/Widgets/ColorBox/Config.d.ts +3 -0
- package/ui/Modules/Dashboard/components/Widgets/ColorBox/Config.js +23 -0
- package/ui/Modules/Dashboard/components/Widgets/ColorBox/index.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/ColorBox/index.js +6 -0
- package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/EmptyWidget.d.ts +7 -0
- package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/EmptyWidget.js +10 -0
- package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/index.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Widgets/EmptyWidget/index.js +5 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/Config.d.ts +1 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/Config.js +5 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/HorizontalBar.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/HorizontalBar.js +38 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.d.ts +8 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/LabelsLine.js +14 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/ProgressLine.d.ts +7 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/components/ProgressLine.js +14 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/index.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/index.js +6 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/storybook.sample.d.ts +2 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/storybook.sample.js +33 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/styles.d.ts +18 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/styles.js +58 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/types.d.ts +13 -0
- package/ui/Modules/Dashboard/components/Widgets/HorizontalBar/types.js +1 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/Config.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/Config.js +38 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/NumberBox.d.ts +5 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/NumberBox.js +38 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/index.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/index.js +6 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/styles.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/NumberBox/styles.js +25 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/Config.d.ts +1 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/Config.js +5 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.d.ts +21 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/PieChart.js +59 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/components/CenteredMetric.d.ts +10 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/components/CenteredMetric.js +24 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/index.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/index.js +6 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/styles.d.ts +14 -0
- package/ui/Modules/Dashboard/components/Widgets/PieChart/styles.js +47 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/Config.d.ts +9 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/Config.js +87 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/Table.d.ts +4 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/Table.js +93 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/IconLabelCell.d.ts +8 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/IconLabelCell.js +19 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorList.d.ts +9 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorList.js +31 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorLocation.d.ts +8 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/PaginatorLocation.js +15 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/TableCell.d.ts +6 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/components/TableCell.js +33 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useCondition.d.ts +10 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useCondition.js +27 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/hooks/usePages.d.ts +17 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/hooks/usePages.js +27 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useSort.d.ts +10 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/hooks/useSort.js +31 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/index.d.ts +5 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/index.js +7 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/storybook.sample.d.ts +73 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/storybook.sample.js +211 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/styles.d.ts +23 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/styles.js +69 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/types.d.ts +52 -0
- package/ui/Modules/Dashboard/components/Widgets/Table/types.js +1 -0
- package/ui/Modules/Dashboard/components/Widgets/TextBox/TextBox.d.ts +10 -0
- package/ui/Modules/Dashboard/components/Widgets/TextBox/TextBox.js +12 -0
- package/ui/Modules/Dashboard/components/Widgets/TextBox/index.d.ts +3 -0
- package/ui/Modules/Dashboard/components/Widgets/TextBox/index.js +5 -0
- package/ui/Modules/Dashboard/components/Widgets/index.d.ts +11 -0
- package/ui/Modules/Dashboard/components/Widgets/index.js +108 -0
- package/ui/Modules/Dashboard/components/Widgets/utils/generic.d.ts +5 -0
- package/ui/Modules/Dashboard/components/Widgets/utils/generic.js +20 -0
- package/ui/Modules/Dashboard/components/Widgets/utils/helpers.d.ts +3 -0
- package/ui/Modules/Dashboard/components/Widgets/utils/helpers.js +25 -0
- package/ui/Modules/Dashboard/components/Widgets/utils/legends.d.ts +20 -0
- package/ui/Modules/Dashboard/components/Widgets/utils/legends.js +57 -0
- package/ui/Modules/Dashboard/context/ComponentContext.d.ts +5 -0
- package/ui/Modules/Dashboard/context/ComponentContext.js +15 -0
- package/ui/Modules/Dashboard/context/LangContext.d.ts +3 -0
- package/ui/Modules/Dashboard/context/LangContext.js +5 -0
- package/ui/Modules/Dashboard/errors/ErrorMessage.d.ts +7 -0
- package/ui/Modules/Dashboard/errors/ErrorMessage.js +12 -0
- package/ui/Modules/Dashboard/errors/WidgetError.d.ts +5 -0
- package/ui/Modules/Dashboard/errors/WidgetError.js +10 -0
- package/ui/Modules/Dashboard/hooks/usePrevious.d.ts +5 -0
- package/ui/Modules/Dashboard/hooks/usePrevious.js +14 -0
- package/ui/Modules/Dashboard/hooks/useRefWithCallback.d.ts +2 -0
- package/ui/Modules/Dashboard/hooks/useRefWithCallback.js +16 -0
- package/ui/Modules/Dashboard/hooks/useResize.d.ts +6 -0
- package/ui/Modules/Dashboard/hooks/useResize.js +19 -0
- package/ui/Modules/Dashboard/index.d.ts +7 -0
- package/ui/Modules/Dashboard/index.js +12 -0
- package/ui/Modules/Dashboard/locale/cs.d.ts +24 -0
- package/ui/Modules/Dashboard/locale/cs.js +26 -0
- package/ui/Modules/Dashboard/locale/en.d.ts +24 -0
- package/ui/Modules/Dashboard/locale/en.js +26 -0
- package/ui/Modules/Dashboard/locale/index.d.ts +4 -0
- package/ui/Modules/Dashboard/locale/index.js +13 -0
- package/ui/Modules/Dashboard/locale/it.d.ts +24 -0
- package/ui/Modules/Dashboard/locale/it.js +26 -0
- package/ui/Modules/Dashboard/locale/uk.d.ts +24 -0
- package/ui/Modules/Dashboard/locale/uk.js +26 -0
- package/ui/Modules/Dashboard/store/reducers/index.d.ts +9 -0
- package/ui/Modules/Dashboard/store/reducers/index.js +6 -0
- package/ui/Modules/Dashboard/store/reducers/widgetListReducer.d.ts +41 -0
- package/ui/Modules/Dashboard/store/reducers/widgetListReducer.js +76 -0
- package/ui/Modules/Dashboard/stories/storybook.sample.d.ts +50 -0
- package/ui/Modules/Dashboard/stories/storybook.sample.js +237 -0
- package/ui/Modules/Dashboard/styles.d.ts +63 -0
- package/ui/Modules/Dashboard/styles.js +358 -0
- package/ui/Modules/Dashboard/types.d.ts +185 -0
- package/ui/Modules/Dashboard/types.js +1 -0
- package/ui/Modules/index.d.ts +1 -0
- package/ui/Modules/index.js +8 -0
- package/ui/ThemeProvider/themes/index.d.ts +224 -0
- package/ui/ThemeProvider/themes/index.js +3 -1
- package/ui/ThemeProvider/themes/mailwiseDark.d.ts +225 -0
- package/ui/ThemeProvider/themes/mailwiseDark.js +16 -0
- package/ui/ThemeProvider/types.d.ts +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.d.ts +0 -41
- package/ui/Blocks/CommonGrid/storybook/stories/default.stories.d.ts +0 -6
- package/ui/Blocks/CommonGrid/storybook/stories/gridStates.stories.d.ts +0 -8
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.d.ts +0 -10
- package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.d.ts +0 -10
- package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.d.ts +0 -6
- package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.d.ts +0 -10
- package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.d.ts +0 -14
- package/ui/Blocks/CommonGrid/storybook/stories/withQuickFilter.stories.d.ts +0 -11
- package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +0 -13
- package/ui/Blocks/Header/stories/Header.stories.d.ts +0 -52
- package/ui/Blocks/HidePrint/stories/HidePrint.stories.d.ts +0 -12
- package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +0 -14
- package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.d.ts +0 -10
- package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +0 -10
- package/ui/Blocks/LoginPage/stories/LoginPage.stories.d.ts +0 -10
- package/ui/Blocks/Modal/stories/Modal.stories.d.ts +0 -28
- package/ui/Blocks/Popover/stories/Popover.stories.d.ts +0 -16
- package/ui/Blocks/Scheduler/stories/Scheduler.stories.d.ts +0 -7
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +0 -11
- package/ui/Blocks/Stepper/stories/Stepper.stories.d.ts +0 -9
- package/ui/Blocks/Table/stories/Table.stories.d.ts +0 -12
- package/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +0 -12
- package/ui/Elements/Alert/stories/Alert.stories.d.ts +0 -17
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +0 -10
- package/ui/Elements/Avatar/stories/Avatar.stories.d.ts +0 -11
- package/ui/Elements/Badge/stories/Badge.stories.d.ts +0 -12
- package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.d.ts +0 -12
- package/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +0 -10
- package/ui/Elements/Button/stories/Button.stories.d.ts +0 -28
- package/ui/Elements/Card/stories/Card.stories.d.ts +0 -13
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +0 -16
- package/ui/Elements/DatePicker/stories/DatePicker.stories.d.ts +0 -11
- package/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +0 -10
- package/ui/Elements/DropdownMenu/stories/DropdownMenu.stories.d.ts +0 -10
- package/ui/Elements/DropdownSelect/stories/DropdownSelect.stories.d.ts +0 -22
- package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +0 -11
- package/ui/Elements/HighlightBox/stories/HighlightBox.stories.d.ts +0 -31
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +0 -28
- package/ui/Elements/Icon/stories/Icon.stories.d.ts +0 -15
- package/ui/Elements/Image/stories/Image.stories.d.ts +0 -13
- package/ui/Elements/Label/stories/Label.stories.d.ts +0 -13
- package/ui/Elements/Line/stories/Line.stories.d.ts +0 -16
- package/ui/Elements/Link/stories/Link.stories.d.ts +0 -30
- package/ui/Elements/Logo/stories/Logo.stories.d.ts +0 -37
- package/ui/Elements/Pagination/stories/Pagination.stories.d.ts +0 -13
- package/ui/Elements/Portal/stories/Portal.stories.d.ts +0 -11
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +0 -18
- package/ui/Elements/Select/stories/Select.stories.d.ts +0 -9
- package/ui/Elements/SimpleLink/stories/SimpleLink.stories.d.ts +0 -13
- package/ui/Elements/SingleSelect/stories/SingleSelect.stories.d.ts +0 -10
- package/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +0 -11
- package/ui/Elements/Spinner/stories/Spinner.stories.d.ts +0 -19
- package/ui/Elements/Table/stories/Table.stories.d.ts +0 -8
- package/ui/Elements/Tag/stories/Tag.stories.d.ts +0 -19
- package/ui/Elements/Text/stories/Text.stories.d.ts +0 -15
- package/ui/Elements/Toast/stories/Toast.stories.d.ts +0 -13
- package/ui/Elements/Toggle/stories/Toggle.stories.d.ts +0 -16
- package/ui/Elements/Tooltip/stories/Tooltip.stories.d.ts +0 -10
- package/ui/Elements/Typography/stories/Typography.stories.d.ts +0 -20
- package/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +0 -13
- package/ui/Forms/Input/stories/Input.stories.d.ts +0 -18
- package/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +0 -13
- package/ui/utils/KeyPress/KeyPress.stories.d.ts +0 -10
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import { Layout as RGLLayout } from 'react-grid-layout';
|
|
3
|
+
import { TableRowData } from './components/Widgets/Table/types';
|
|
4
|
+
import { Props as ButtonProps } from '../../Elements/Button/types';
|
|
5
|
+
export interface WidgetConfig {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}
|
|
8
|
+
export type NumberClickCallback = <TData>(data: TData, config: WidgetConfig) => void;
|
|
9
|
+
export type TableClickCallback = (tableRow: TableRowData, column: string, config: WidgetConfig) => void;
|
|
10
|
+
export interface WidgetComponentProps<TData = any, OnValueClickType = any> {
|
|
11
|
+
data?: TData;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
config?: WidgetConfig;
|
|
15
|
+
onSetConfig?: (config: WidgetConfig) => void;
|
|
16
|
+
onValueClick?: OnValueClickType;
|
|
17
|
+
innerRef?: RefObject<HTMLDivElement> | ((node: HTMLDivElement) => void);
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export interface ConfigProps {
|
|
21
|
+
onChange: (config: WidgetConfig) => void;
|
|
22
|
+
config: WidgetConfig;
|
|
23
|
+
}
|
|
24
|
+
export interface WidgetDefinition {
|
|
25
|
+
/**
|
|
26
|
+
* name of the widget
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* uniq identifier of the widget
|
|
31
|
+
*/
|
|
32
|
+
code: string;
|
|
33
|
+
/**
|
|
34
|
+
* short description of widget
|
|
35
|
+
*/
|
|
36
|
+
description: string;
|
|
37
|
+
/**
|
|
38
|
+
* base64 image
|
|
39
|
+
*/
|
|
40
|
+
preview: string;
|
|
41
|
+
/**
|
|
42
|
+
* minimal width (count of columns) of the widget, user cannot shrink to smaller size
|
|
43
|
+
*/
|
|
44
|
+
minWidth: number;
|
|
45
|
+
/**
|
|
46
|
+
* maximal width (count of columns) of the widget, user cannot shrink to bigger size
|
|
47
|
+
*/
|
|
48
|
+
maxWidth: number;
|
|
49
|
+
/**
|
|
50
|
+
* minimal height (count of columns) of the widget, user cannot shrink to smaller size
|
|
51
|
+
*/
|
|
52
|
+
minHeight: number;
|
|
53
|
+
/**
|
|
54
|
+
* maximal height (count of columns) of the widget, user cannot shrink to bigger size
|
|
55
|
+
*/
|
|
56
|
+
maxHeight: number;
|
|
57
|
+
/**
|
|
58
|
+
* default width of the widget when you add it to layout
|
|
59
|
+
*/
|
|
60
|
+
initWidth: number;
|
|
61
|
+
/**
|
|
62
|
+
* default height of the widget when you add it to layout
|
|
63
|
+
*/
|
|
64
|
+
initHeight: number;
|
|
65
|
+
/**
|
|
66
|
+
* if the widget is static, its not possible to resize it or move it
|
|
67
|
+
*/
|
|
68
|
+
isStatic?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* if true => widget config will be opened in dropdown over the widgets
|
|
71
|
+
*/
|
|
72
|
+
isWidgetConfigInDropdown?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* component of the widget
|
|
75
|
+
*/
|
|
76
|
+
component: React.ComponentType<WidgetComponentProps>;
|
|
77
|
+
/**
|
|
78
|
+
* components of the widget for more customization
|
|
79
|
+
*/
|
|
80
|
+
components?: Record<string, React.ComponentType<any>>;
|
|
81
|
+
/**
|
|
82
|
+
* component for configuration
|
|
83
|
+
*/
|
|
84
|
+
configComponent?: React.ComponentType<ConfigProps>;
|
|
85
|
+
/**
|
|
86
|
+
* icon of widget
|
|
87
|
+
*/
|
|
88
|
+
icon?: React.ReactElement;
|
|
89
|
+
}
|
|
90
|
+
export interface CustomComponents {
|
|
91
|
+
Button?: React.FC<ButtonProps>;
|
|
92
|
+
Picker?: React.FC<{
|
|
93
|
+
onAdd: (code: string) => void;
|
|
94
|
+
widgetDefinitions: WidgetDefinition[];
|
|
95
|
+
}>;
|
|
96
|
+
ItemConfigControls?: React.FC<{
|
|
97
|
+
onRemove: () => void;
|
|
98
|
+
onSave: () => void;
|
|
99
|
+
onCancel: () => void;
|
|
100
|
+
}>;
|
|
101
|
+
ItemHeader?: React.FC<{
|
|
102
|
+
widget: WidgetDefinition;
|
|
103
|
+
config: WidgetConfig;
|
|
104
|
+
onRemove: () => void;
|
|
105
|
+
onSave: () => void;
|
|
106
|
+
isConfigOpen: boolean;
|
|
107
|
+
toggleConfigOpen: () => void;
|
|
108
|
+
dragHandleClassName: string;
|
|
109
|
+
headerRef: RefObject<HTMLDivElement>;
|
|
110
|
+
}>;
|
|
111
|
+
}
|
|
112
|
+
export type LayoutItem = Omit<RGLLayout, 'i'> & {
|
|
113
|
+
i: string;
|
|
114
|
+
};
|
|
115
|
+
export interface LayoutWidgetItem {
|
|
116
|
+
/**
|
|
117
|
+
* auto generated id for easier manipulating
|
|
118
|
+
*/
|
|
119
|
+
id: string;
|
|
120
|
+
/**
|
|
121
|
+
* identifier of type of the used widget
|
|
122
|
+
*/
|
|
123
|
+
code: string;
|
|
124
|
+
/**
|
|
125
|
+
* how is the used widget configured
|
|
126
|
+
*/
|
|
127
|
+
config: WidgetConfig;
|
|
128
|
+
/**
|
|
129
|
+
* where in layout is the widget used
|
|
130
|
+
*/
|
|
131
|
+
layout: LayoutItem;
|
|
132
|
+
}
|
|
133
|
+
export interface SelectOption {
|
|
134
|
+
value: string;
|
|
135
|
+
label: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* General filter for widget
|
|
139
|
+
*
|
|
140
|
+
* Props:
|
|
141
|
+
* input - renders input
|
|
142
|
+
* isMulti, options - renders select boxes
|
|
143
|
+
*
|
|
144
|
+
* If input is specified, isMulti & options props are ignored
|
|
145
|
+
*/
|
|
146
|
+
export interface LayoutWidgetFilter {
|
|
147
|
+
name: string;
|
|
148
|
+
label: React.ReactNode;
|
|
149
|
+
placeholder?: React.ReactNode;
|
|
150
|
+
input?: 'text' | 'number';
|
|
151
|
+
isMulti?: boolean;
|
|
152
|
+
options?: SelectOption[];
|
|
153
|
+
}
|
|
154
|
+
export interface DashboardProps {
|
|
155
|
+
/**
|
|
156
|
+
* language of dashboard
|
|
157
|
+
*/
|
|
158
|
+
lang: string;
|
|
159
|
+
/**
|
|
160
|
+
* title of dashboard. If you not specify it, the text 'Your dashboard' is displayed
|
|
161
|
+
*/
|
|
162
|
+
title?: string | boolean;
|
|
163
|
+
/**
|
|
164
|
+
* list of all visible widgets
|
|
165
|
+
*/
|
|
166
|
+
widgetDefinitions: WidgetDefinition[];
|
|
167
|
+
/**
|
|
168
|
+
* used widget on first render as a init state
|
|
169
|
+
*/
|
|
170
|
+
initialWidgets?: LayoutWidgetItem[];
|
|
171
|
+
/**
|
|
172
|
+
* call this callback on every single change in dashboard
|
|
173
|
+
*/
|
|
174
|
+
onChange?: (widgetList: LayoutWidgetItem[]) => void | Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* custom components to modify design
|
|
177
|
+
*/
|
|
178
|
+
components?: CustomComponents;
|
|
179
|
+
}
|
|
180
|
+
export type Source = SelectOption & {
|
|
181
|
+
filters?: LayoutWidgetFilter[];
|
|
182
|
+
};
|
|
183
|
+
export * from './components/Widgets/HorizontalBar/types';
|
|
184
|
+
export * from './components/Widgets/Table/types';
|
|
185
|
+
export * from './components/Config/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dashboard';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconLabelCell_exports } from "./Dashboard/components/Widgets/Table/components/IconLabelCell.js";
|
|
2
|
+
import { BarChart, ColorBox, HorizontalBar, NoWidget, NumberBox, PieChart, Table, TextBox } from "./Dashboard/components/Widgets/index.js";
|
|
3
|
+
import dashboardReducer from "./Dashboard/store/reducers/index.js";
|
|
4
|
+
import { withConfig } from "./Dashboard/Hoc/withConfig.js";
|
|
5
|
+
import { withFetch } from "./Dashboard/Hoc/withFetch.js";
|
|
6
|
+
import { withProps, withPropsWDefinition } from "./Dashboard/Hoc/withProps.js";
|
|
7
|
+
import "./Dashboard/index.js";
|
|
8
|
+
export { BarChart, ColorBox, HorizontalBar, NoWidget, NumberBox, PieChart, Table, TextBox, IconLabelCell_exports as WidgetTableComponents, dashboardReducer as reducer, withConfig, withFetch, withProps, withPropsWDefinition };
|
|
@@ -395,6 +395,230 @@ declare const themes: {
|
|
|
395
395
|
inputTransition: string;
|
|
396
396
|
};
|
|
397
397
|
};
|
|
398
|
+
mailwiseDark: {
|
|
399
|
+
colors: {
|
|
400
|
+
bgLightGray: string;
|
|
401
|
+
bgLightGray1: string;
|
|
402
|
+
bgLightGray2: string;
|
|
403
|
+
typoPrimary: string;
|
|
404
|
+
textPrimary: string;
|
|
405
|
+
white: string;
|
|
406
|
+
lightGray7: string;
|
|
407
|
+
neutral10: string;
|
|
408
|
+
neutral20: string;
|
|
409
|
+
neutral30: string;
|
|
410
|
+
neutral300: string;
|
|
411
|
+
red10: string;
|
|
412
|
+
red30: string;
|
|
413
|
+
green10: string;
|
|
414
|
+
dangerColor: string;
|
|
415
|
+
lightGray1: string;
|
|
416
|
+
lightGray2: string;
|
|
417
|
+
lightGray3: string;
|
|
418
|
+
lightGray4: string;
|
|
419
|
+
lightGray6: string;
|
|
420
|
+
yellow10: string;
|
|
421
|
+
blue1: string;
|
|
422
|
+
blue3: string;
|
|
423
|
+
blue10: string;
|
|
424
|
+
inputErrorColor: string;
|
|
425
|
+
sideMenuSelectedText: string;
|
|
426
|
+
dashboardBackground: string;
|
|
427
|
+
iconStroke: string;
|
|
428
|
+
modalBackground: string;
|
|
429
|
+
black: string;
|
|
430
|
+
lightGray5: string;
|
|
431
|
+
neutral500: string;
|
|
432
|
+
gray: string;
|
|
433
|
+
gray1: string;
|
|
434
|
+
gray2: string;
|
|
435
|
+
gray3: string;
|
|
436
|
+
gray4: string;
|
|
437
|
+
gray5: string;
|
|
438
|
+
blue2: string;
|
|
439
|
+
blue4: string;
|
|
440
|
+
textTertiary: string;
|
|
441
|
+
blue20: string;
|
|
442
|
+
blue30: string;
|
|
443
|
+
blue40: string;
|
|
444
|
+
blue50: string;
|
|
445
|
+
blue60: string;
|
|
446
|
+
blue70: string;
|
|
447
|
+
blue80: string;
|
|
448
|
+
blue90: string;
|
|
449
|
+
teal20: string;
|
|
450
|
+
teal40: string;
|
|
451
|
+
teal50: string;
|
|
452
|
+
teal60: string;
|
|
453
|
+
teal70: string;
|
|
454
|
+
teal80: string;
|
|
455
|
+
teal90: string;
|
|
456
|
+
green20: string;
|
|
457
|
+
green30: string;
|
|
458
|
+
green50: string;
|
|
459
|
+
green60: string;
|
|
460
|
+
green70: string;
|
|
461
|
+
green80: string;
|
|
462
|
+
green90: string;
|
|
463
|
+
green: string;
|
|
464
|
+
successColor: string;
|
|
465
|
+
darkGreen: string;
|
|
466
|
+
orange20: string;
|
|
467
|
+
orange30: string;
|
|
468
|
+
orange50: string;
|
|
469
|
+
orange60: string;
|
|
470
|
+
orange80: string;
|
|
471
|
+
yellow20: string;
|
|
472
|
+
yellow60: string;
|
|
473
|
+
yellow70: string;
|
|
474
|
+
yellow80: string;
|
|
475
|
+
yellow90: string;
|
|
476
|
+
yellow1: string;
|
|
477
|
+
yellow2: string;
|
|
478
|
+
red20: string;
|
|
479
|
+
red50: string;
|
|
480
|
+
red70: string;
|
|
481
|
+
red1: string;
|
|
482
|
+
red2: string;
|
|
483
|
+
red3: string;
|
|
484
|
+
red60: string;
|
|
485
|
+
red80: string;
|
|
486
|
+
purple20: string;
|
|
487
|
+
purple40: string;
|
|
488
|
+
purple50: string;
|
|
489
|
+
purple60: string;
|
|
490
|
+
purple80: string;
|
|
491
|
+
purple90: string;
|
|
492
|
+
magenta10: string;
|
|
493
|
+
magenta20: string;
|
|
494
|
+
magenta30: string;
|
|
495
|
+
magenta40: string;
|
|
496
|
+
magenta50: string;
|
|
497
|
+
magenta60: string;
|
|
498
|
+
magenta70: string;
|
|
499
|
+
magenta80: string;
|
|
500
|
+
magenta90: string;
|
|
501
|
+
error: string;
|
|
502
|
+
};
|
|
503
|
+
shadows: {
|
|
504
|
+
dialogShadow: string;
|
|
505
|
+
gridShadow: string;
|
|
506
|
+
boxShadow: string;
|
|
507
|
+
dropShadow: string;
|
|
508
|
+
inputFocusBoxShadow: string;
|
|
509
|
+
dropdownMenuShadow: string;
|
|
510
|
+
tooltipBoxShadow: string;
|
|
511
|
+
cardShadow: string;
|
|
512
|
+
smooth: string;
|
|
513
|
+
headerShadow: string;
|
|
514
|
+
headerShadowB: string;
|
|
515
|
+
headerShadowNotifications: string;
|
|
516
|
+
cornerDialogShadow: string;
|
|
517
|
+
tooltipShadow: string;
|
|
518
|
+
};
|
|
519
|
+
fontSizes: string[];
|
|
520
|
+
lineHeights: {
|
|
521
|
+
none: number;
|
|
522
|
+
tight: number;
|
|
523
|
+
snug: number;
|
|
524
|
+
normal: number;
|
|
525
|
+
relaxed: number;
|
|
526
|
+
loose: number;
|
|
527
|
+
3: string;
|
|
528
|
+
4: string;
|
|
529
|
+
5: string;
|
|
530
|
+
6: string;
|
|
531
|
+
7: string;
|
|
532
|
+
8: string;
|
|
533
|
+
9: string;
|
|
534
|
+
10: string;
|
|
535
|
+
};
|
|
536
|
+
fontWeights: {
|
|
537
|
+
normal: number;
|
|
538
|
+
medium: number;
|
|
539
|
+
semiBold: number;
|
|
540
|
+
bold: number;
|
|
541
|
+
};
|
|
542
|
+
letterSpacings: {
|
|
543
|
+
tighter: string;
|
|
544
|
+
tight: string;
|
|
545
|
+
normal: string;
|
|
546
|
+
wide: string;
|
|
547
|
+
wider: string;
|
|
548
|
+
widest: string;
|
|
549
|
+
};
|
|
550
|
+
radii: {
|
|
551
|
+
sm: string;
|
|
552
|
+
md: string;
|
|
553
|
+
ml: string;
|
|
554
|
+
lg: string;
|
|
555
|
+
xl: string;
|
|
556
|
+
};
|
|
557
|
+
space: {
|
|
558
|
+
px: string;
|
|
559
|
+
0: string;
|
|
560
|
+
0.5: string;
|
|
561
|
+
1: string;
|
|
562
|
+
1.5: string;
|
|
563
|
+
2: string;
|
|
564
|
+
2.5: string;
|
|
565
|
+
3: string;
|
|
566
|
+
3.5: string;
|
|
567
|
+
4: string;
|
|
568
|
+
5: string;
|
|
569
|
+
6: string;
|
|
570
|
+
7: string;
|
|
571
|
+
8: string;
|
|
572
|
+
9: string;
|
|
573
|
+
10: string;
|
|
574
|
+
11: string;
|
|
575
|
+
12: string;
|
|
576
|
+
14: string;
|
|
577
|
+
16: string;
|
|
578
|
+
20: string;
|
|
579
|
+
24: string;
|
|
580
|
+
28: string;
|
|
581
|
+
32: string;
|
|
582
|
+
36: string;
|
|
583
|
+
40: string;
|
|
584
|
+
44: string;
|
|
585
|
+
48: string;
|
|
586
|
+
52: string;
|
|
587
|
+
56: string;
|
|
588
|
+
60: string;
|
|
589
|
+
64: string;
|
|
590
|
+
72: string;
|
|
591
|
+
80: string;
|
|
592
|
+
96: string;
|
|
593
|
+
};
|
|
594
|
+
zIndices: number[];
|
|
595
|
+
screens: {
|
|
596
|
+
_: number;
|
|
597
|
+
xs: number;
|
|
598
|
+
sm: number;
|
|
599
|
+
md: number;
|
|
600
|
+
lg: number;
|
|
601
|
+
xl: number;
|
|
602
|
+
'2xl': number;
|
|
603
|
+
};
|
|
604
|
+
breakpoints: string[];
|
|
605
|
+
fonts: {
|
|
606
|
+
primary: string;
|
|
607
|
+
heading: string;
|
|
608
|
+
};
|
|
609
|
+
fontLinks: string[];
|
|
610
|
+
borders: {
|
|
611
|
+
slim: string;
|
|
612
|
+
mediumSlim: string;
|
|
613
|
+
medium: string;
|
|
614
|
+
mediumThick: string;
|
|
615
|
+
thick: string;
|
|
616
|
+
};
|
|
617
|
+
transitions: {
|
|
618
|
+
simpleLong: string;
|
|
619
|
+
inputTransition: string;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
398
622
|
dark: {
|
|
399
623
|
colors: {
|
|
400
624
|
bgLightGray: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import defaultTheme from "./default.js";
|
|
2
|
-
import mailwiseTheme from "./mailwise.js";
|
|
3
2
|
import darkTheme from "./dark.js";
|
|
3
|
+
import mailwiseTheme from "./mailwise.js";
|
|
4
|
+
import mailwiseDark from "./mailwiseDark.js";
|
|
4
5
|
//#region packages/ui/ThemeProvider/themes/index.ts
|
|
5
6
|
const themes = {
|
|
6
7
|
default: defaultTheme,
|
|
7
8
|
mailwise: mailwiseTheme,
|
|
9
|
+
mailwiseDark,
|
|
8
10
|
dark: darkTheme
|
|
9
11
|
};
|
|
10
12
|
//#endregion
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
declare const mailwiseDark: {
|
|
2
|
+
colors: {
|
|
3
|
+
bgLightGray: string;
|
|
4
|
+
bgLightGray1: string;
|
|
5
|
+
bgLightGray2: string;
|
|
6
|
+
typoPrimary: string;
|
|
7
|
+
textPrimary: string;
|
|
8
|
+
white: string;
|
|
9
|
+
lightGray7: string;
|
|
10
|
+
neutral10: string;
|
|
11
|
+
neutral20: string;
|
|
12
|
+
neutral30: string;
|
|
13
|
+
neutral300: string;
|
|
14
|
+
red10: string;
|
|
15
|
+
red30: string;
|
|
16
|
+
green10: string;
|
|
17
|
+
dangerColor: string;
|
|
18
|
+
lightGray1: string;
|
|
19
|
+
lightGray2: string;
|
|
20
|
+
lightGray3: string;
|
|
21
|
+
lightGray4: string;
|
|
22
|
+
lightGray6: string;
|
|
23
|
+
yellow10: string;
|
|
24
|
+
blue1: string;
|
|
25
|
+
blue3: string;
|
|
26
|
+
blue10: string;
|
|
27
|
+
inputErrorColor: string;
|
|
28
|
+
sideMenuSelectedText: string;
|
|
29
|
+
dashboardBackground: string;
|
|
30
|
+
iconStroke: string;
|
|
31
|
+
modalBackground: string;
|
|
32
|
+
black: string;
|
|
33
|
+
lightGray5: string;
|
|
34
|
+
neutral500: string;
|
|
35
|
+
gray: string;
|
|
36
|
+
gray1: string;
|
|
37
|
+
gray2: string;
|
|
38
|
+
gray3: string;
|
|
39
|
+
gray4: string;
|
|
40
|
+
gray5: string;
|
|
41
|
+
blue2: string;
|
|
42
|
+
blue4: string;
|
|
43
|
+
textTertiary: string;
|
|
44
|
+
blue20: string;
|
|
45
|
+
blue30: string;
|
|
46
|
+
blue40: string;
|
|
47
|
+
blue50: string;
|
|
48
|
+
blue60: string;
|
|
49
|
+
blue70: string;
|
|
50
|
+
blue80: string;
|
|
51
|
+
blue90: string;
|
|
52
|
+
teal20: string;
|
|
53
|
+
teal40: string;
|
|
54
|
+
teal50: string;
|
|
55
|
+
teal60: string;
|
|
56
|
+
teal70: string;
|
|
57
|
+
teal80: string;
|
|
58
|
+
teal90: string;
|
|
59
|
+
green20: string;
|
|
60
|
+
green30: string;
|
|
61
|
+
green50: string;
|
|
62
|
+
green60: string;
|
|
63
|
+
green70: string;
|
|
64
|
+
green80: string;
|
|
65
|
+
green90: string;
|
|
66
|
+
green: string;
|
|
67
|
+
successColor: string;
|
|
68
|
+
darkGreen: string;
|
|
69
|
+
orange20: string;
|
|
70
|
+
orange30: string;
|
|
71
|
+
orange50: string;
|
|
72
|
+
orange60: string;
|
|
73
|
+
orange80: string;
|
|
74
|
+
yellow20: string;
|
|
75
|
+
yellow60: string;
|
|
76
|
+
yellow70: string;
|
|
77
|
+
yellow80: string;
|
|
78
|
+
yellow90: string;
|
|
79
|
+
yellow1: string;
|
|
80
|
+
yellow2: string;
|
|
81
|
+
red20: string;
|
|
82
|
+
red50: string;
|
|
83
|
+
red70: string;
|
|
84
|
+
red1: string;
|
|
85
|
+
red2: string;
|
|
86
|
+
red3: string;
|
|
87
|
+
red60: string;
|
|
88
|
+
red80: string;
|
|
89
|
+
purple20: string;
|
|
90
|
+
purple40: string;
|
|
91
|
+
purple50: string;
|
|
92
|
+
purple60: string;
|
|
93
|
+
purple80: string;
|
|
94
|
+
purple90: string;
|
|
95
|
+
magenta10: string;
|
|
96
|
+
magenta20: string;
|
|
97
|
+
magenta30: string;
|
|
98
|
+
magenta40: string;
|
|
99
|
+
magenta50: string;
|
|
100
|
+
magenta60: string;
|
|
101
|
+
magenta70: string;
|
|
102
|
+
magenta80: string;
|
|
103
|
+
magenta90: string;
|
|
104
|
+
error: string;
|
|
105
|
+
};
|
|
106
|
+
shadows: {
|
|
107
|
+
dialogShadow: string;
|
|
108
|
+
gridShadow: string;
|
|
109
|
+
boxShadow: string;
|
|
110
|
+
dropShadow: string;
|
|
111
|
+
inputFocusBoxShadow: string;
|
|
112
|
+
dropdownMenuShadow: string;
|
|
113
|
+
tooltipBoxShadow: string;
|
|
114
|
+
cardShadow: string;
|
|
115
|
+
smooth: string;
|
|
116
|
+
headerShadow: string;
|
|
117
|
+
headerShadowB: string;
|
|
118
|
+
headerShadowNotifications: string;
|
|
119
|
+
cornerDialogShadow: string;
|
|
120
|
+
tooltipShadow: string;
|
|
121
|
+
};
|
|
122
|
+
fontSizes: string[];
|
|
123
|
+
lineHeights: {
|
|
124
|
+
none: number;
|
|
125
|
+
tight: number;
|
|
126
|
+
snug: number;
|
|
127
|
+
normal: number;
|
|
128
|
+
relaxed: number;
|
|
129
|
+
loose: number;
|
|
130
|
+
3: string;
|
|
131
|
+
4: string;
|
|
132
|
+
5: string;
|
|
133
|
+
6: string;
|
|
134
|
+
7: string;
|
|
135
|
+
8: string;
|
|
136
|
+
9: string;
|
|
137
|
+
10: string;
|
|
138
|
+
};
|
|
139
|
+
fontWeights: {
|
|
140
|
+
normal: number;
|
|
141
|
+
medium: number;
|
|
142
|
+
semiBold: number;
|
|
143
|
+
bold: number;
|
|
144
|
+
};
|
|
145
|
+
letterSpacings: {
|
|
146
|
+
tighter: string;
|
|
147
|
+
tight: string;
|
|
148
|
+
normal: string;
|
|
149
|
+
wide: string;
|
|
150
|
+
wider: string;
|
|
151
|
+
widest: string;
|
|
152
|
+
};
|
|
153
|
+
radii: {
|
|
154
|
+
sm: string;
|
|
155
|
+
md: string;
|
|
156
|
+
ml: string;
|
|
157
|
+
lg: string;
|
|
158
|
+
xl: string;
|
|
159
|
+
};
|
|
160
|
+
space: {
|
|
161
|
+
px: string;
|
|
162
|
+
0: string;
|
|
163
|
+
0.5: string;
|
|
164
|
+
1: string;
|
|
165
|
+
1.5: string;
|
|
166
|
+
2: string;
|
|
167
|
+
2.5: string;
|
|
168
|
+
3: string;
|
|
169
|
+
3.5: string;
|
|
170
|
+
4: string;
|
|
171
|
+
5: string;
|
|
172
|
+
6: string;
|
|
173
|
+
7: string;
|
|
174
|
+
8: string;
|
|
175
|
+
9: string;
|
|
176
|
+
10: string;
|
|
177
|
+
11: string;
|
|
178
|
+
12: string;
|
|
179
|
+
14: string;
|
|
180
|
+
16: string;
|
|
181
|
+
20: string;
|
|
182
|
+
24: string;
|
|
183
|
+
28: string;
|
|
184
|
+
32: string;
|
|
185
|
+
36: string;
|
|
186
|
+
40: string;
|
|
187
|
+
44: string;
|
|
188
|
+
48: string;
|
|
189
|
+
52: string;
|
|
190
|
+
56: string;
|
|
191
|
+
60: string;
|
|
192
|
+
64: string;
|
|
193
|
+
72: string;
|
|
194
|
+
80: string;
|
|
195
|
+
96: string;
|
|
196
|
+
};
|
|
197
|
+
zIndices: number[];
|
|
198
|
+
screens: {
|
|
199
|
+
_: number;
|
|
200
|
+
xs: number;
|
|
201
|
+
sm: number;
|
|
202
|
+
md: number;
|
|
203
|
+
lg: number;
|
|
204
|
+
xl: number;
|
|
205
|
+
'2xl': number;
|
|
206
|
+
};
|
|
207
|
+
breakpoints: string[];
|
|
208
|
+
fonts: {
|
|
209
|
+
primary: string;
|
|
210
|
+
heading: string;
|
|
211
|
+
};
|
|
212
|
+
fontLinks: string[];
|
|
213
|
+
borders: {
|
|
214
|
+
slim: string;
|
|
215
|
+
mediumSlim: string;
|
|
216
|
+
medium: string;
|
|
217
|
+
mediumThick: string;
|
|
218
|
+
thick: string;
|
|
219
|
+
};
|
|
220
|
+
transitions: {
|
|
221
|
+
simpleLong: string;
|
|
222
|
+
inputTransition: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
export default mailwiseDark;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import darkTheme from "./dark.js";
|
|
2
|
+
import mailwiseTheme from "./mailwise.js";
|
|
3
|
+
//#region packages/ui/ThemeProvider/themes/mailwiseDark.ts
|
|
4
|
+
const mailwiseDark = {
|
|
5
|
+
...mailwiseTheme,
|
|
6
|
+
colors: {
|
|
7
|
+
...mailwiseTheme.colors,
|
|
8
|
+
...darkTheme.colors
|
|
9
|
+
},
|
|
10
|
+
shadows: {
|
|
11
|
+
...mailwiseTheme.shadows,
|
|
12
|
+
...darkTheme.shadows
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { mailwiseDark as default };
|
|
@@ -25,7 +25,7 @@ export type Theme = {
|
|
|
25
25
|
export type Themes = Record<string, Theme>;
|
|
26
26
|
export interface Props {
|
|
27
27
|
children: ReactNode;
|
|
28
|
-
theme: 'default' | 'mailwise' | 'dark';
|
|
28
|
+
theme: 'default' | 'mailwise' | 'mailwiseDark' | 'dark';
|
|
29
29
|
preflight?: boolean;
|
|
30
30
|
language?: string;
|
|
31
31
|
}
|