@mailstep/design-system 0.8.15 → 0.8.16-beta.10
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 +12 -6
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +2 -2
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +1 -1
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +2 -2
- package/ui/Blocks/CommonGrid/components/Table.d.ts +28 -28
- package/ui/Blocks/CommonGrid/components/Table.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +1 -1
- package/ui/Blocks/CommonGrid/store/index.d.ts +15 -15
- package/ui/Blocks/CommonGrid/styles.d.ts +6 -5
- package/ui/Blocks/CommonGrid/styles.js +1 -1
- package/ui/Blocks/CommonGrid/utils/index.d.ts +1 -1
- package/ui/Blocks/Header/components/MenuItems/styles.d.ts +1 -1
- package/ui/Blocks/Header/stories/Header.stories.d.ts +16 -16
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +2 -2
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/styles.d.ts +2 -2
- package/ui/Blocks/LanguageSwitch/styles.d.ts +3 -3
- package/ui/Blocks/LoginPage/stories/LoginPage.stories.js +2 -2
- package/ui/Blocks/LoginPage/styles.d.ts +2 -3
- package/ui/Blocks/Modal/styles.d.ts +7 -7
- package/ui/Blocks/Modal/styles.js +6 -6
- package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +1 -1
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +1 -1
- package/ui/Blocks/SideMenu/components/Footer.d.ts +1 -1
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +1 -0
- package/ui/Blocks/SideMenu/styles.d.ts +15 -15
- package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +2 -2
- package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +3 -3
- package/ui/Blocks/Table/stories/Table.stories.d.ts +3 -2
- package/ui/Blocks/Tabs/styles.d.ts +6 -5
- package/ui/Elements/Alert/styles.d.ts +18 -17
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +2 -1
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.js +2 -2
- package/ui/Elements/BarChartSymbol/styles.d.ts +2 -2
- package/ui/Elements/BorderedBox/types.d.ts +1 -0
- package/ui/Elements/Button/styles.d.ts +6 -5
- package/ui/Elements/Card/styles.d.ts +2 -2
- package/ui/Elements/Card/types.d.ts +1 -0
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +2 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +1 -1
- package/ui/Elements/DatePicker/styles.d.ts +2 -1
- package/ui/Elements/Icon/Icon.js +6 -6
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +1 -1
- package/ui/Elements/Label/Label.d.ts +1 -1
- package/ui/Elements/Label/stories/Label.stories.d.ts +1 -1
- package/ui/Elements/Link/stories/Link.stories.d.ts +12 -12
- package/ui/Elements/Logo/Logo.js +2 -2
- package/ui/Elements/Pagination/styled.d.ts +2 -1
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +5 -5
- package/ui/Elements/ProgressBar/styles.d.ts +1 -1
- package/ui/Elements/Select/Select.js +2 -2
- package/ui/Elements/Select/components/CountMultiValue.js +2 -2
- package/ui/Elements/Select/components/SimplifiedOption.d.ts +1 -0
- package/ui/Elements/Select/themes/index.d.ts +1 -1
- package/ui/Elements/Select/themes/selectStyles.d.ts +1 -1
- package/ui/Elements/Select/themes/selectStyles.js +15 -15
- package/ui/Elements/SingleSelect/SingleSelect.js +2 -2
- package/ui/Elements/SpaceAround/types.d.ts +1 -0
- package/ui/Elements/Spinner/styles.d.ts +1 -1
- package/ui/Elements/Tag/types.d.ts +1 -0
- package/ui/Elements/Toast/styles.d.ts +1 -1
- package/ui/Forms/Checkbox/styles.d.ts +2 -1
- package/ui/Forms/Checkbox/styles.js +2 -2
- package/ui/Forms/Input/styles.d.ts +3 -3
- package/ui/Forms/Input/styles.js +2 -2
- package/ui/Forms/TextArea/styles.d.ts +5 -5
- package/ui/ThemeProvider/ThemeProvider.d.ts +2 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/ThemeProvider/themes/dark.d.ts +153 -0
- package/ui/ThemeProvider/themes/dark.js +14 -0
- package/ui/ThemeProvider/themes/default.d.ts +1 -0
- package/ui/ThemeProvider/themes/default.js +2 -1
- package/ui/ThemeProvider/themes/index.d.ts +153 -1
- package/ui/ThemeProvider/themes/index.js +3 -3
- package/ui/ThemeProvider/themes/mailwise.js +1 -1
- package/ui/ThemeProvider/types.d.ts +13 -33
- package/ui/index.es.js +13140 -13747
- package/ui/index.umd.js +446 -445
- package/ui/utils/index.js +1 -1
- package/ui/utils/translations.d.ts +4 -1
- package/ui/utils/translations.js +1 -1
- package/ui/ThemeProvider/themes/light.d.ts +0 -4
- package/ui/ThemeProvider/themes/light.js +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailstep/design-system",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.16-beta.10",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./ui/index.js",
|
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
"deploy:win": "npm run build:win && npm publish ./build",
|
|
20
20
|
"dev": "yarn storybook",
|
|
21
21
|
"test": "echo \"The tests are still waiting to be written, but it seems like they're really good at procrastinating!\"",
|
|
22
|
-
"lint": "eslint
|
|
22
|
+
"lint": "eslint ./packages/ui/**/*.{ts,tsx}",
|
|
23
|
+
"prepare": "husky install"
|
|
24
|
+
},
|
|
25
|
+
"lint-staged": {
|
|
26
|
+
"*.{js,ts,tsx}": "yarn eslint --fix"
|
|
23
27
|
},
|
|
24
28
|
"devDependencies": {
|
|
25
29
|
"@babel/core": "^7.20.12",
|
|
@@ -40,6 +44,7 @@
|
|
|
40
44
|
"@lingui/react": "3.17.2",
|
|
41
45
|
"@popperjs/core": "^2.11.8",
|
|
42
46
|
"@storybook/addon-designs": "^11.1.2",
|
|
47
|
+
"@storybook/addon-docs": "10.2.8",
|
|
43
48
|
"@storybook/addon-links": "10.2.8",
|
|
44
49
|
"@storybook/react-webpack5": "10.2.8",
|
|
45
50
|
"@svgr/rollup": "^8.0.1",
|
|
@@ -74,7 +79,9 @@
|
|
|
74
79
|
"eslint-plugin-react-perf": "^3.3.2",
|
|
75
80
|
"eslint-plugin-storybook": "10.2.8",
|
|
76
81
|
"faker": "^5.1.0",
|
|
82
|
+
"husky": "^9.1.7",
|
|
77
83
|
"immer": "9.0.7",
|
|
84
|
+
"lint-staged": "^16.4.0",
|
|
78
85
|
"lodash": "^4.17.21",
|
|
79
86
|
"luxon": "^3.4.4",
|
|
80
87
|
"moment": "^2.30.1",
|
|
@@ -98,12 +105,11 @@
|
|
|
98
105
|
"styled-components": "^5.3.10",
|
|
99
106
|
"swiper": "^11.0.3",
|
|
100
107
|
"tslib": "^2.6.2",
|
|
101
|
-
"typescript": "
|
|
108
|
+
"typescript": "5.1.3",
|
|
102
109
|
"vite": "^5.0.10",
|
|
103
110
|
"vite-plugin-dts": "^3.6.4",
|
|
104
111
|
"vite-plugin-static-copy": "^1.0.0",
|
|
105
|
-
"webpack": "^5.82.1"
|
|
106
|
-
"@storybook/addon-docs": "10.2.8"
|
|
112
|
+
"webpack": "^5.82.1"
|
|
107
113
|
},
|
|
108
114
|
"peerDependencies": {
|
|
109
115
|
"@dnd-kit/core": "^6.3.1",
|
|
@@ -141,7 +147,7 @@
|
|
|
141
147
|
"styled-components": "^5.3.10",
|
|
142
148
|
"swiper": "^11.0.3",
|
|
143
149
|
"tslib": "^2.6.2",
|
|
144
|
-
"typescript": "
|
|
150
|
+
"typescript": "5.1.3"
|
|
145
151
|
},
|
|
146
152
|
"resolutions": {
|
|
147
153
|
"jackspeak": "2.1.1"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const ControlButtonsContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
3
|
export declare const Left: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
3
4
|
export declare const Right: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -19,8 +19,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
23
|
-
return g
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
24
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
25
|
function step(op) {
|
|
26
26
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -91,6 +91,6 @@ var TextRange = function (props) {
|
|
|
91
91
|
var onChangeComparator = useEvent(function (option) {
|
|
92
92
|
onChange({ comparator: option.value, value: fieldValue, isInvalid: isInvalid });
|
|
93
93
|
});
|
|
94
|
-
return (_jsxs("div", { ref: pickerRef, children: [_jsx(Input, __assign({ name: name, "data-test": name, "data-cy": "".concat(name, "Inp"), value: fieldValue, label: label, onChange: onChangeTextInput, iconOnClick: !eqOnly ? togglePicker : undefined, icon: !eqOnly ? 'ellipsisVertical' : 'warning', iconPlacement: "right", iconTooltip: eqOnly ? eqOnlyTxt : undefined, type: "text", className: className, error: (!!validation && isInvalid && validation.errorMsg) || '', errorAppearance:
|
|
94
|
+
return (_jsxs("div", { ref: pickerRef, children: [_jsx(Input, __assign({ name: name, "data-test": name, "data-cy": "".concat(name, "Inp"), value: fieldValue, label: label, onChange: onChangeTextInput, iconOnClick: !eqOnly ? togglePicker : undefined, icon: !eqOnly ? 'ellipsisVertical' : 'warning', iconPlacement: "right", iconTooltip: eqOnly ? eqOnlyTxt : undefined, type: "text", className: className, error: (!!validation && isInvalid && validation.errorMsg) || '', errorAppearance: "tooltip", autoComplete: "off" }, rest)), isOpen && (_jsx(OverlayComponent, { children: _jsx(IconList, { list: comparatorOptions, selected: comparator, onClick: onChangeComparator }) }))] }));
|
|
95
95
|
};
|
|
96
96
|
export default TextRange;
|
|
@@ -3,7 +3,7 @@ import { FC } from 'react';
|
|
|
3
3
|
export declare const List: import('styled-components').StyledComponent<"ul", import('@xstyled/system').Theme, {}, never>;
|
|
4
4
|
export declare const ListItem: import('styled-components').StyledComponent<"li", import('@xstyled/system').Theme, {}, never>;
|
|
5
5
|
export declare const ListItemContent: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {
|
|
6
|
-
selected?: boolean;
|
|
6
|
+
selected?: boolean | undefined;
|
|
7
7
|
}, never>;
|
|
8
8
|
export declare const ListItemIcon: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {}, never>;
|
|
9
9
|
type Item = {
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
export declare const Row: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
2
|
-
hasRowClick?: boolean;
|
|
3
|
-
align?: string;
|
|
2
|
+
hasRowClick?: boolean | undefined;
|
|
3
|
+
align?: string | undefined;
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const Cell: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
6
|
-
align?: string;
|
|
7
|
-
flexBasis?: number;
|
|
8
|
-
flexGrow?: number;
|
|
9
|
-
flexShrink?: number;
|
|
10
|
-
transition?: string;
|
|
11
|
-
transform?: string;
|
|
6
|
+
align?: string | undefined;
|
|
7
|
+
flexBasis?: number | undefined;
|
|
8
|
+
flexGrow?: number | undefined;
|
|
9
|
+
flexShrink?: number | undefined;
|
|
10
|
+
transition?: string | undefined;
|
|
11
|
+
transform?: string | undefined;
|
|
12
12
|
}, never>;
|
|
13
13
|
export declare const StyledDataRow: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
14
|
-
hasRowClick?: boolean;
|
|
15
|
-
align?: string;
|
|
14
|
+
hasRowClick?: boolean | undefined;
|
|
15
|
+
align?: string | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
isEven: boolean;
|
|
18
18
|
}, never>;
|
|
19
19
|
export declare const TextCell: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
20
|
-
align?: string;
|
|
21
|
-
flexBasis?: number;
|
|
22
|
-
flexGrow?: number;
|
|
23
|
-
flexShrink?: number;
|
|
24
|
-
transition?: string;
|
|
25
|
-
transform?: string;
|
|
20
|
+
align?: string | undefined;
|
|
21
|
+
flexBasis?: number | undefined;
|
|
22
|
+
flexGrow?: number | undefined;
|
|
23
|
+
flexShrink?: number | undefined;
|
|
24
|
+
transition?: string | undefined;
|
|
25
|
+
transform?: string | undefined;
|
|
26
26
|
}, never>;
|
|
27
27
|
export declare const MessageCell: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
28
|
-
align?: string;
|
|
29
|
-
flexBasis?: number;
|
|
30
|
-
flexGrow?: number;
|
|
31
|
-
flexShrink?: number;
|
|
32
|
-
transition?: string;
|
|
33
|
-
transform?: string;
|
|
28
|
+
align?: string | undefined;
|
|
29
|
+
flexBasis?: number | undefined;
|
|
30
|
+
flexGrow?: number | undefined;
|
|
31
|
+
flexShrink?: number | undefined;
|
|
32
|
+
transition?: string | undefined;
|
|
33
|
+
transform?: string | undefined;
|
|
34
34
|
}, never>;
|
|
35
35
|
declare const variantColors: {
|
|
36
36
|
error: (props: import('@xstyled/util').Props<import('@xstyled/system').Theme>) => import('@xstyled/system').CSSScalar;
|
|
37
37
|
info: (props: import('@xstyled/util').Props<import('@xstyled/system').Theme>) => import('@xstyled/system').CSSScalar;
|
|
38
38
|
};
|
|
39
39
|
export declare const MessageCellBody: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
40
|
-
align?: string;
|
|
41
|
-
flexBasis?: number;
|
|
42
|
-
flexGrow?: number;
|
|
43
|
-
flexShrink?: number;
|
|
44
|
-
transition?: string;
|
|
45
|
-
transform?: string;
|
|
40
|
+
align?: string | undefined;
|
|
41
|
+
flexBasis?: number | undefined;
|
|
42
|
+
flexGrow?: number | undefined;
|
|
43
|
+
flexShrink?: number | undefined;
|
|
44
|
+
transition?: string | undefined;
|
|
45
|
+
transform?: string | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
variant: keyof typeof variantColors;
|
|
48
48
|
}, never>;
|
|
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
import styled, { system, th } from '@xstyled/styled-components';
|
|
6
6
|
export var Row = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n display: flex;\n min-height: 32px;\n border-bottom: 1px solid rgb(228, 231, 235);\n cursor: ", ";\n"], ["\n ", ";\n display: flex;\n min-height: 32px;\n border-bottom: 1px solid rgb(228, 231, 235);\n cursor: ", ";\n"])), system, function (props) { return (props.hasRowClick ? 'pointer' : 'auto'); });
|
|
7
7
|
export var Cell = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: ", ";\n transition: ", ";\n transform: ", ";\n"], ["\n ", ";\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: ", ";\n transition: ", ";\n transform: ", ";\n"])), system, function (props) { return props.align; }, function (props) { return props.transition; }, function (props) { return props.transform; });
|
|
8
|
-
export var StyledDataRow = styled(Row)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (props) { return (props.isEven ? th('colors.bgLightGray') : 'white'); });
|
|
8
|
+
export var StyledDataRow = styled(Row)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n"], ["\n background-color: ", ";\n"])), function (props) { return (props.isEven ? th('colors.bgLightGray') : th('colors.white')); });
|
|
9
9
|
export var TextCell = styled(Cell)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-overflow: ellipsis;\n white-space: nowrap;\n"], ["\n text-overflow: ellipsis;\n white-space: nowrap;\n"])));
|
|
10
10
|
export var MessageCell = styled(Cell)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100vw;\n position: sticky;\n left: 0;\n justify-content: center;\n"], ["\n width: 100vw;\n position: sticky;\n left: 0;\n justify-content: center;\n"])));
|
|
11
11
|
var variantColors = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridActionsType, ColumnDefinition } from '../types';
|
|
2
2
|
|
|
3
3
|
type AddFilterRet = (value: any, column: ColumnDefinition, others?: any) => void;
|
|
4
|
-
export declare const useAddFilter: (onChange: Required<GridActionsType>[
|
|
4
|
+
export declare const useAddFilter: (onChange: Required<GridActionsType>['addFilter']) => AddFilterRet;
|
|
5
5
|
export {};
|
|
@@ -9,5 +9,5 @@ type ReturnProps = {
|
|
|
9
9
|
gridBoxRef: React.MutableRefObject<HTMLElement>;
|
|
10
10
|
handleResizeDrag: (column: string, width: number) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const useColumnSizes: (displayColumnsDefinitions: CommonGridProps[
|
|
12
|
+
declare const useColumnSizes: (displayColumnsDefinitions: CommonGridProps['columnsDefinitions'], storeColumnsWidth: Required<GridSelectorsType>['columnsWidth'], storeColumnsWidthVariant: GridSelectorsType['columnsWidthVariant'], setColumnWidth: Required<GridActionsType>['setColumnWidth'], columnLayout: Required<CommonGridProps>['columnLayout'], minColumnWidth?: number) => ReturnProps;
|
|
13
13
|
export default useColumnSizes;
|
|
@@ -5,5 +5,5 @@ import { RowProps, UxState, ActionColumn, OnBatchActionFn } from '../types';
|
|
|
5
5
|
* returns [subset of actions that are enabled, onSelect(value) - param1: selected action value]
|
|
6
6
|
*/
|
|
7
7
|
type GridActionTriggerRet = [Required<ActionColumn>['actionOptions'], (value: any) => void];
|
|
8
|
-
export declare const useGridActionTrigger: (rowsData: RowProps[], uxState: UxState, actionOptions?: ActionColumn[
|
|
8
|
+
export declare const useGridActionTrigger: (rowsData: RowProps[], uxState: UxState, actionOptions?: ActionColumn['actionOptions'], onBatchAction?: OnBatchActionFn) => GridActionTriggerRet;
|
|
9
9
|
export {};
|
|
@@ -11,7 +11,7 @@ declare const useManageColumn: ({ columns, gridSelectors, gridActions, onClose }
|
|
|
11
11
|
columnsConfigValues: string[];
|
|
12
12
|
setColumnsConfigOptions: import('react').Dispatch<import('react').SetStateAction<{
|
|
13
13
|
[x: string]: {
|
|
14
|
-
isHidden?: boolean;
|
|
14
|
+
isHidden?: boolean | undefined;
|
|
15
15
|
};
|
|
16
16
|
}>>;
|
|
17
17
|
onConfirmForm: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { RowProps, UxState } from '../types';
|
|
3
3
|
|
|
4
|
-
declare const useRowsKeyControls: (rowsData: RowProps[], uxState: UxState, onUxChange?: (uxKey: keyof UxState, uxValue: any) => void) => (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
4
|
+
declare const useRowsKeyControls: (rowsData: RowProps[], uxState: UxState, onUxChange?: ((uxKey: keyof UxState, uxValue: any) => void) | undefined) => (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
5
5
|
export default useRowsKeyControls;
|
|
@@ -5,5 +5,5 @@ import { RowProps, GridActionsType, UxState } from '../types';
|
|
|
5
5
|
* returns [checked state, toggleAllHandler()] for checkbox
|
|
6
6
|
*/
|
|
7
7
|
type ToggleAllCheckboxRet = [boolean, () => void];
|
|
8
|
-
export declare const useToggleAllCheckbox: (rowsData?: RowProps[], uxState?: UxState, handleUxChange?: GridActionsType[
|
|
8
|
+
export declare const useToggleAllCheckbox: (rowsData?: RowProps[], uxState?: UxState, handleUxChange?: GridActionsType['handleUxChange']) => ToggleAllCheckboxRet;
|
|
9
9
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RowProps, GridActionsType, UxState } from '../types';
|
|
2
2
|
|
|
3
|
-
declare const useUxReset: (rowsData: RowProps[], uxState: UxState, clearUxState: GridActionsType[
|
|
3
|
+
declare const useUxReset: (rowsData: RowProps[], uxState: UxState, clearUxState: GridActionsType['clearUxState']) => any;
|
|
4
4
|
export default useUxReset;
|
|
@@ -32,7 +32,7 @@ export default _default;
|
|
|
32
32
|
export declare const createActions: (gridName: string) => {
|
|
33
33
|
init: (initProps?: InitProps) => Action;
|
|
34
34
|
clearUxState: () => Action;
|
|
35
|
-
handleUxChange: (uxKey: keyof GridState[
|
|
35
|
+
handleUxChange: (uxKey: keyof GridState['uxState'], uxValue: any) => Action;
|
|
36
36
|
openConfigForm: () => Action;
|
|
37
37
|
closeConfigForm: () => Action;
|
|
38
38
|
setColumnConfig: (columnConfig: ColumnConfig) => Action;
|
|
@@ -40,9 +40,9 @@ export declare const createActions: (gridName: string) => {
|
|
|
40
40
|
setPresets: (presets: GridPresets) => Action;
|
|
41
41
|
createPreset: (presetName: string, filters: Filtering) => Action;
|
|
42
42
|
deletePreset: (presetName: string) => Action;
|
|
43
|
-
setColumnWidth: (columnsWidth:
|
|
43
|
+
setColumnWidth: (columnsWidth: {
|
|
44
44
|
[anyKey: string]: number;
|
|
45
|
-
}, columnLayout:
|
|
45
|
+
} | null, columnLayout: 'normal' | 'no-scroll' | 'sticky') => Action;
|
|
46
46
|
resetGrid: () => Action;
|
|
47
47
|
setColumnsOrder: (columnsOrder: string[]) => Action;
|
|
48
48
|
setRowsPerPage: (rowsPerPage: number) => Action;
|
|
@@ -53,16 +53,16 @@ export declare const createActions: (gridName: string) => {
|
|
|
53
53
|
clearSettings: () => Action;
|
|
54
54
|
};
|
|
55
55
|
export declare const createSelectors: (gridName: string) => {
|
|
56
|
-
getUxState: (state: DefaultRootState) => GridState[
|
|
57
|
-
isConfigFormOpen: (state: DefaultRootState) => GridState[
|
|
58
|
-
getColumnConfig: (state: DefaultRootState) => GridState[
|
|
59
|
-
getPage: (state: DefaultRootState) => GridState[
|
|
60
|
-
getPresets: (state: DefaultRootState) => GridState[
|
|
61
|
-
getRowsPerPage: (state: DefaultRootState) => GridState[
|
|
62
|
-
getFilter: (state: DefaultRootState) => GridState[
|
|
63
|
-
getSorting: (state: DefaultRootState) => GridState[
|
|
64
|
-
getColumnsWidth: (state: DefaultRootState) => GridState[
|
|
65
|
-
getColumnsWidthVariant: (state: DefaultRootState) => GridState[
|
|
66
|
-
getColumnsOrder: (state: DefaultRootState) => GridState[
|
|
56
|
+
getUxState: (state: DefaultRootState) => GridState['uxState'];
|
|
57
|
+
isConfigFormOpen: (state: DefaultRootState) => GridState['isConfigFormOpen'];
|
|
58
|
+
getColumnConfig: (state: DefaultRootState) => GridState['columnConfig'];
|
|
59
|
+
getPage: (state: DefaultRootState) => GridState['page'];
|
|
60
|
+
getPresets: (state: DefaultRootState) => GridState['presets'];
|
|
61
|
+
getRowsPerPage: (state: DefaultRootState) => GridState['rowsPerPage'];
|
|
62
|
+
getFilter: (state: DefaultRootState) => GridState['filter'];
|
|
63
|
+
getSorting: (state: DefaultRootState) => GridState['sorting'];
|
|
64
|
+
getColumnsWidth: (state: DefaultRootState) => GridState['columnsWidth'];
|
|
65
|
+
getColumnsWidthVariant: (state: DefaultRootState) => GridState['columnsWidthVariant'];
|
|
66
|
+
getColumnsOrder: (state: DefaultRootState) => GridState['columnsOrder'];
|
|
67
67
|
};
|
|
68
|
-
export declare const createFullSelector: (gridName: string) => (
|
|
68
|
+
export declare const createFullSelector: (gridName: string) => (state: DefaultRootState) => GridSelectorsType;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const BottomWrapper: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
2
3
|
withPagination: boolean;
|
|
3
4
|
}, "color">;
|
|
4
|
-
export declare const ContentContainer: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements
|
|
5
|
-
export declare const CommonGridWrap: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements
|
|
5
|
+
export declare const ContentContainer: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
|
|
6
|
+
export declare const CommonGridWrap: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
|
|
6
7
|
withPagination: boolean;
|
|
7
8
|
}, "color">;
|
|
8
|
-
export declare const StyledButtonStrip: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements
|
|
9
|
+
export declare const StyledButtonStrip: import('styled-components').StyledComponent<(props: Omit<JSX.IntrinsicElements, "color">) => import('react').ReactElement<any, string>, import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, "color">;
|
|
9
10
|
export declare const CommonGridWithStyles: import('styled-components').StyledComponent<import('react').FC<import('./types').CommonGridProps & {
|
|
10
|
-
filters?: import('./types').FiltersConfig;
|
|
11
|
+
filters?: import('./types').FiltersConfig | undefined;
|
|
11
12
|
handleDragEnd: (item: import('@dnd-kit/core').DragEndEvent) => void;
|
|
12
13
|
displayColumnsDefinitions: import('./types').ColumnDefinition[];
|
|
13
14
|
hasGroups: boolean;
|
|
@@ -22,7 +22,7 @@ export var CommonGridWrap = styled(x.div)(templateObject_3 || (templateObject_3
|
|
|
22
22
|
return (withPagination ? gridFooterHeight : 0);
|
|
23
23
|
});
|
|
24
24
|
export var StyledButtonStrip = styled(x.div)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n padding: 18px 20px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-height: ", "px;\n flex-wrap: wrap;\n z-index: 3;\n"], ["\n position: relative;\n padding: 18px 20px;\n display: flex;\n justify-content: space-between;\n width: 100%;\n min-height: ", "px;\n flex-wrap: wrap;\n z-index: 3;\n"])), gridButtonStripHeight);
|
|
25
|
-
export var CommonGridWithStyles = styled(CommonGrid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color:
|
|
25
|
+
export var CommonGridWithStyles = styled(CommonGrid)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: neutral20;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: neutral20;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background-color: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"], ["\n height: calc(100% - ", "px);\n\n & .cell {\n padding: 0 4px;\n }\n & .dataRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: normal;\n border-bottom: 1px solid;\n border-color: lightGray3;\n height: ", "px;\n }\n & .gridHead {\n height: ", "px;\n background-color: neutral20;\n padding-bottom: 8px;\n position: sticky;\n top: -1px;\n z-index: 2;\n border-top: 1px solid ", ";\n }\n & .headRow {\n font-size: 12px;\n font-family: ", ";\n color: typoPrimary;\n font-weight: bold;\n border-bottom: none; // TODO fix in common-grid\n\n & .cell {\n overflow: hidden;\n max-height: 32px;\n position: relative;\n }\n\n & .sticky {\n background-color: neutral20;\n }\n }\n\n & .filterRow {\n & .cell {\n overflow: visible;\n }\n\n & .cell > div {\n width: 100%; // TODO fix in common-grid\n }\n\n & .sticky {\n background-color: neutral20;\n }\n border-bottom: none; // TODO fix in common-grid\n }\n\n & .body {\n flex-grow: 1;\n }\n\n & .gridWrapper {\n background-color: ", ";\n width: auto;\n padding-bottom: 35px;\n\n @media (min-width: 1024px) {\n height: 100%;\n overflow-y: auto;\n padding-bottom: 0;\n }\n @media print {\n margin: 0;\n width: 100%;\n height: auto;\n overflow-x: hidden;\n }\n }\n\n & .fullWidthGrid > .gridWrapper > div {\n width: 100% !important;\n }\n\n & .paginatorWrapper,\n & .buttonsStrip {\n @media print {\n display: none;\n }\n }\n & .cell {\n padding-left: 4px;\n padding-right: 4px;\n @media print {\n white-space: unset;\n }\n }\n\n .dataRow {\n &.grayedOut {\n background: lightGray1;\n }\n\n .sticky-right,\n .sticky-left {\n background-color: white;\n }\n\n .sticky-right {\n border-left: 1px solid #dfe1e6;\n }\n\n .sticky-left {\n border-right: 1px solid #dfe1e6;\n }\n\n &:hover,\n &.checked,\n &.selected {\n background-color: red30;\n }\n }\n\n .dataRow:nth-child(even) {\n .sticky-left,\n .sticky-right {\n background-color: bgLightGray;\n }\n }\n\n @media print {\n .filterRow .sticky {\n display: none;\n }\n\n .headRow .sticky {\n display: none;\n }\n\n .dataRow .sticky {\n display: none;\n }\n }\n\n .resizer {\n z-index: unset;\n }\n\n // hotfix table head\n .cell .sortable {\n display: flex;\n align-items: center;\n padding-right: 2px;\n }\n\n .sticky {\n position: sticky !important;\n z-index: 1;\n }\n\n .sticky-left {\n left: 0;\n }\n\n .sticky-right {\n right: 0;\n }\n"])), function (_a) {
|
|
26
26
|
var withButtonStrip = _a.withButtonStrip;
|
|
27
27
|
return (withButtonStrip ? gridButtonStripHeight : 0);
|
|
28
28
|
}, th('fonts.primary'), gridRowHeight, function (_a) {
|
|
@@ -14,7 +14,7 @@ export declare const calculatePaginator: (page: number, rowsPerPage: number) =>
|
|
|
14
14
|
offset: number;
|
|
15
15
|
limit: number;
|
|
16
16
|
};
|
|
17
|
-
export declare const createFilterType: (columnDefinition: ColumnDefinition) => FilterProps[
|
|
17
|
+
export declare const createFilterType: (columnDefinition: ColumnDefinition) => FilterProps['type'];
|
|
18
18
|
export declare const getGroups: (columns: ColumnDefinition[]) => Group[];
|
|
19
19
|
export declare const getGroupClassNames: (group?: Group) => string;
|
|
20
20
|
export declare const getStickyCollClassNames: (sticky: boolean, stickTo?: StickTo) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const MenuItemsList: import('styled-components').StyledComponent<"ul", import('@xstyled/system').Theme, {}, never>;
|
|
2
2
|
export declare const MenuItemsListItem: import('styled-components').StyledComponent<"li", import('@xstyled/system').Theme, {
|
|
3
|
-
pointer?: boolean;
|
|
3
|
+
pointer?: boolean | undefined;
|
|
4
4
|
}, never>;
|
|
@@ -4,22 +4,22 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: FC<{
|
|
6
6
|
homeLink: string;
|
|
7
|
-
isMobileMenuOpen?: boolean;
|
|
8
|
-
logo?: import('../../..').Brand;
|
|
9
|
-
logoVariant?: import('../../..').Variant;
|
|
10
|
-
logoSrc?: string;
|
|
11
|
-
logoSrcWidth?: string;
|
|
12
|
-
user?: import('../types').User | null;
|
|
13
|
-
currentLanguage?: string;
|
|
14
|
-
hasUserMenu?: boolean;
|
|
15
|
-
rightMenuItems?: import('../../SideMenu').MenuItemType[];
|
|
16
|
-
languageItems?: import('../../LanguageSwitch').LanguageItem[];
|
|
17
|
-
showLanguageWithTitle?: boolean;
|
|
18
|
-
languageFlagWrapBackgroundColor?: string;
|
|
19
|
-
onOpenMobileSideMenu?: () => void;
|
|
20
|
-
onChangeLanguage?: (language: string) => void;
|
|
21
|
-
onLogout?: () => void;
|
|
22
|
-
withLanguageSwitch?: boolean;
|
|
7
|
+
isMobileMenuOpen?: boolean | undefined;
|
|
8
|
+
logo?: import('../../..').Brand | undefined;
|
|
9
|
+
logoVariant?: import('../../..').Variant | undefined;
|
|
10
|
+
logoSrc?: string | undefined;
|
|
11
|
+
logoSrcWidth?: string | undefined;
|
|
12
|
+
user?: import('../types').User | null | undefined;
|
|
13
|
+
currentLanguage?: string | undefined;
|
|
14
|
+
hasUserMenu?: boolean | undefined;
|
|
15
|
+
rightMenuItems?: import('../../SideMenu').MenuItemType[] | undefined;
|
|
16
|
+
languageItems?: import('../../LanguageSwitch').LanguageItem[] | undefined;
|
|
17
|
+
showLanguageWithTitle?: boolean | undefined;
|
|
18
|
+
languageFlagWrapBackgroundColor?: string | undefined;
|
|
19
|
+
onOpenMobileSideMenu?: (() => void) | undefined;
|
|
20
|
+
onChangeLanguage?: ((language: string) => void) | undefined;
|
|
21
|
+
onLogout?: (() => void) | undefined;
|
|
22
|
+
withLanguageSwitch?: boolean | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
tags: string[];
|
|
25
25
|
argTypes: {};
|
|
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
12
|
-
return g
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const Container: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
2
|
-
isDisabled?: boolean;
|
|
3
|
-
hasRemove?: boolean;
|
|
2
|
+
isDisabled?: boolean | undefined;
|
|
3
|
+
hasRemove?: boolean | undefined;
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const HiddenInput: import('styled-components').StyledComponent<"input", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const Container: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
2
|
export declare const Image: import('styled-components').StyledComponent<"img", import('@xstyled/system').Theme, {
|
|
3
|
-
selected?: boolean;
|
|
3
|
+
selected?: boolean | undefined;
|
|
4
4
|
}, never>;
|
|
5
5
|
export declare const ImageWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
6
6
|
visible: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const ImageListContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
2
|
export declare const Control: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
3
|
-
isLeft?: boolean;
|
|
3
|
+
isLeft?: boolean | undefined;
|
|
4
4
|
isDisabled: boolean;
|
|
5
|
-
hasRemove?: boolean;
|
|
5
|
+
hasRemove?: boolean | undefined;
|
|
6
6
|
}, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Placement } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const StyledFlag: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
4
|
-
export declare const StyledDropdownMenu: import('styled-components').StyledComponent<(<T extends import('../../Elements/DropdownMenu/types').Item>({ items, showMenu, className, ItemComponent, header, footer, ...rest }: import('../../Elements/DropdownMenu/types').DropdownMenuProps<T>) => import('react').ReactElement), import('@xstyled/system').Theme, {
|
|
4
|
+
export declare const StyledDropdownMenu: import('styled-components').StyledComponent<(<T extends import('../../Elements/DropdownMenu/types').Item>({ items, showMenu, className, ItemComponent, header, footer, ...rest }: import('../../Elements/DropdownMenu/types').DropdownMenuProps<T>) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>), import('@xstyled/system').Theme, {
|
|
5
5
|
placement: Placement;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const LanguageSwitchWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
8
8
|
export declare const LanguageFlagWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
withTitle?: boolean;
|
|
9
|
+
backgroundColor?: string | undefined;
|
|
10
|
+
withTitle?: boolean | undefined;
|
|
11
11
|
}, never>;
|
|
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
12
|
-
return g
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
3
2
|
export declare const Wrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
4
|
-
backgroundImage?:
|
|
3
|
+
backgroundImage?: "mailship" | undefined;
|
|
5
4
|
}, never>;
|
|
6
5
|
export declare const LanguageBox: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
7
6
|
export declare const CardBodyWithLanguage: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Variant } from './types';
|
|
2
2
|
|
|
3
3
|
export declare const DialogOverlay: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
4
|
-
backgroundColor?: string;
|
|
4
|
+
backgroundColor?: string | undefined;
|
|
5
5
|
}, never>;
|
|
6
6
|
export declare const DialogWindow: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
7
|
-
$backgroundColor?: string;
|
|
8
|
-
$minWidth?: string;
|
|
9
|
-
$minHeight?: string;
|
|
10
|
-
$maxWidth?: string;
|
|
11
|
-
$maxHeight?: string;
|
|
7
|
+
$backgroundColor?: string | undefined;
|
|
8
|
+
$minWidth?: string | undefined;
|
|
9
|
+
$minHeight?: string | undefined;
|
|
10
|
+
$maxWidth?: string | undefined;
|
|
11
|
+
$maxHeight?: string | undefined;
|
|
12
12
|
variant: Variant;
|
|
13
|
-
top?: string;
|
|
13
|
+
top?: string | undefined;
|
|
14
14
|
}, never>;
|
|
15
15
|
export declare const HeaderContainer: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
16
16
|
variant: Variant;
|
|
@@ -2,8 +2,8 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import styled, { css, th } from '@xstyled/styled-components';
|
|
6
5
|
import { createRgba } from '../../utils';
|
|
6
|
+
import styled, { css, th } from '@xstyled/styled-components';
|
|
7
7
|
var Component;
|
|
8
8
|
(function (Component) {
|
|
9
9
|
Component["Header"] = "header";
|
|
@@ -17,19 +17,19 @@ var variantStyles = function (component, variant) {
|
|
|
17
17
|
header: {
|
|
18
18
|
default: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 20px;\n border-bottom: 1px solid ", ";\n @media (min-width: 576px) {\n padding: 30px;\n border-bottom: 0;\n }\n "], ["\n padding: 20px;\n border-bottom: 1px solid ", ";\n @media (min-width: 576px) {\n padding: 30px;\n border-bottom: 0;\n }\n "])), th.color('lightGray6')),
|
|
19
19
|
compact: css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 20px 20px;\n border-bottom: 1px solid ", ";\n "], ["\n padding: 20px 20px;\n border-bottom: 1px solid ", ";\n "])), th.color('lightGray6')),
|
|
20
|
-
mobileFullscreen: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 20px;\n "], ["\n padding: 20px;\n "])))
|
|
20
|
+
mobileFullscreen: css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding: 20px;\n "], ["\n padding: 20px;\n "])))
|
|
21
21
|
},
|
|
22
22
|
dialogWindow: {
|
|
23
23
|
default: css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "], ["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "]))),
|
|
24
24
|
compact: css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "], ["\n border-radius: 10px;\n max-width: calc(100% - 32px);\n "]))),
|
|
25
|
-
mobileFullscreen: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-radius: 0;\n max-width: 100% !important;\n "], ["\n border-radius: 0;\n max-width: 100% !important;\n "])))
|
|
25
|
+
mobileFullscreen: css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-radius: 0;\n max-width: 100% !important;\n "], ["\n border-radius: 0;\n max-width: 100% !important;\n "])))
|
|
26
26
|
},
|
|
27
27
|
contentContainer: {
|
|
28
28
|
default: css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n padding: 20px 20px 15px;\n @media (min-width: 576px) {\n padding: 30px;\n }\n "], ["\n padding: 20px 20px 15px;\n @media (min-width: 576px) {\n padding: 30px;\n }\n "]))),
|
|
29
29
|
compact: css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding: 20px 20px 15px;\n "], ["\n padding: 20px 20px 15px;\n "]))),
|
|
30
|
-
mobileFullscreen: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n padding: 0;\n "], ["\n padding: 0;\n "])))
|
|
30
|
+
mobileFullscreen: css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n padding: 0;\n "], ["\n padding: 0;\n "])))
|
|
31
31
|
},
|
|
32
|
-
title: {}
|
|
32
|
+
title: {}
|
|
33
33
|
}[component][variant]);
|
|
34
34
|
};
|
|
35
35
|
export var DialogOverlay = styled.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n position: fixed;\n z-index: 9;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: ", ";\n text-align: center;\n\n @media print {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n height: auto !important;\n visibility: hidden;\n }\n\n @media (max-width: 576px) {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px 0;\n }\n"], ["\n position: fixed;\n z-index: 9;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: ", ";\n text-align: center;\n\n @media print {\n position: absolute !important;\n left: 0 !important;\n top: 0 !important;\n height: auto !important;\n visibility: hidden;\n }\n\n @media (max-width: 576px) {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 16px 0;\n }\n"])), function (_a) {
|
|
@@ -38,7 +38,7 @@ export var DialogOverlay = styled.div(templateObject_10 || (templateObject_10 =
|
|
|
38
38
|
});
|
|
39
39
|
export var DialogWindow = styled.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n background-color: ", ";\n margin: auto;\n box-shadow: dialogShadow;\n min-width: ", ";\n min-height: ", ";\n max-height: ", ";\n display: inline-block;\n position: relative;\n text-align: left;\n\n ", "\n ", ";\n\n @media print {\n background-color: #fff;\n margin: 0;\n visibility: visible;\n overflow: visible;\n box-shadow: none;\n max-width: 100%;\n }\n\n @media (min-width: 576px) {\n margin: ", " auto 0 auto;\n }\n"], ["\n background-color: ", ";\n margin: auto;\n box-shadow: dialogShadow;\n min-width: ", ";\n min-height: ", ";\n max-height: ", ";\n display: inline-block;\n position: relative;\n text-align: left;\n\n ", "\n ", ";\n\n @media print {\n background-color: #fff;\n margin: 0;\n visibility: visible;\n overflow: visible;\n box-shadow: none;\n max-width: 100%;\n }\n\n @media (min-width: 576px) {\n margin: ", " auto 0 auto;\n }\n"])), function (_a) {
|
|
40
40
|
var $backgroundColor = _a.$backgroundColor;
|
|
41
|
-
return $backgroundColor || '
|
|
41
|
+
return $backgroundColor || th.color('white');
|
|
42
42
|
}, function (_a) {
|
|
43
43
|
var $minWidth = _a.$minWidth;
|
|
44
44
|
return $minWidth || '10%';
|