@pushwoosh/smart-components-kit 1.0.77 → 1.0.89
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/DocsButton/DocsButton.js +5 -1
- package/DocsButton/polyglot/index.d.ts +5 -0
- package/DocsButton/polyglot/index.js +10 -0
- package/DocsButton/polyglot/messages_en.d.ts +3 -0
- package/DocsButton/polyglot/messages_en.js +3 -0
- package/DocsButton/polyglot/messages_ru.d.ts +3 -0
- package/DocsButton/polyglot/messages_ru.js +3 -0
- package/DocsButton/polyglot/types.d.ts +4 -0
- package/DocsButton/polyglot/types.js +1 -0
- package/DynamicContentPicker/styled.d.ts +16 -104
- package/DynamicContentPickerForm/styled.d.ts +18 -106
- package/LanguagesSelector/LanguagesModal.js +11 -3
- package/LanguagesSelector/LanguagesSelectForm.js +34 -16
- package/LanguagesSelector/LanguagesSelector.js +10 -6
- package/LanguagesSelector/polyglot/index.d.ts +2 -0
- package/LanguagesSelector/polyglot/index.js +10 -0
- package/LanguagesSelector/polyglot/messages_en.d.ts +3 -0
- package/LanguagesSelector/polyglot/messages_en.js +13 -0
- package/LanguagesSelector/polyglot/messages_ru.d.ts +3 -0
- package/LanguagesSelector/polyglot/messages_ru.js +13 -0
- package/LanguagesSelector/polyglot/types.d.ts +17 -0
- package/LanguagesSelector/polyglot/types.js +1 -0
- package/LanguagesSelector/styled.d.ts +8 -52
- package/MediaStore/CreateVariantDrawer.d.ts +12 -0
- package/MediaStore/CreateVariantDrawer.js +216 -0
- package/MediaStore/MediaStore.d.ts +12 -0
- package/MediaStore/MediaStore.js +258 -0
- package/MediaStore/index.d.ts +1 -0
- package/MediaStore/index.js +1 -0
- package/MediaStore/mediaFile.utils.d.ts +5 -0
- package/MediaStore/mediaFile.utils.js +10 -0
- package/MediaStore/polyglot/index.d.ts +2 -0
- package/MediaStore/polyglot/index.js +10 -0
- package/MediaStore/polyglot/messages_en.d.ts +3 -0
- package/MediaStore/polyglot/messages_en.js +28 -0
- package/MediaStore/polyglot/messages_ru.d.ts +3 -0
- package/MediaStore/polyglot/messages_ru.js +28 -0
- package/MediaStore/polyglot/types.d.ts +31 -0
- package/MediaStore/polyglot/types.js +1 -0
- package/MediaStore/styled.d.ts +27 -0
- package/MediaStore/styled.js +95 -0
- package/ModalCloningJourney/ModalCloningJourney.js +67 -22
- package/ModalCloningJourney/polyglot/index.d.ts +2 -0
- package/ModalCloningJourney/polyglot/index.js +10 -0
- package/ModalCloningJourney/polyglot/messages_en.d.ts +3 -0
- package/ModalCloningJourney/polyglot/messages_en.js +22 -0
- package/ModalCloningJourney/polyglot/messages_ru.d.ts +3 -0
- package/ModalCloningJourney/polyglot/messages_ru.js +22 -0
- package/ModalCloningJourney/polyglot/types.d.ts +25 -0
- package/ModalCloningJourney/polyglot/types.js +1 -0
- package/OpenActions/components/OpenActionsSummary/styles.d.ts +8 -52
- package/RichMessageEditorSmart/NewDynamicContentForm.js +5 -1
- package/RichMessageEditorSmart/polyglot/index.d.ts +5 -0
- package/RichMessageEditorSmart/polyglot/index.js +10 -0
- package/RichMessageEditorSmart/polyglot/messages_en.d.ts +3 -0
- package/RichMessageEditorSmart/polyglot/messages_en.js +3 -0
- package/RichMessageEditorSmart/polyglot/messages_ru.d.ts +3 -0
- package/RichMessageEditorSmart/polyglot/messages_ru.js +3 -0
- package/RichMessageEditorSmart/polyglot/types.d.ts +4 -0
- package/RichMessageEditorSmart/polyglot/types.js +1 -0
- package/Table/components/DataTable/DataTable.js +27 -8
- package/Table/components/DataTableList/DataTableList.js +29 -9
- package/Table/components/TablePagination/TablePagination.js +5 -1
- package/Table/polyglot/index.d.ts +2 -0
- package/Table/polyglot/index.js +10 -0
- package/Table/polyglot/messages_en.d.ts +3 -0
- package/Table/polyglot/messages_en.js +18 -0
- package/Table/polyglot/messages_ru.d.ts +3 -0
- package/Table/polyglot/messages_ru.js +18 -0
- package/Table/polyglot/types.d.ts +21 -0
- package/Table/polyglot/types.js +1 -0
- package/Table/styles.d.ts +34 -210
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +3 -2
|
@@ -5,11 +5,12 @@ import { Horizontal } from '@pushwoosh/kit-helpers';
|
|
|
5
5
|
import { WarningRoundIcon } from '@pushwoosh/kit-icons';
|
|
6
6
|
import { Text } from '@pushwoosh/kit-typography';
|
|
7
7
|
import { DataTableContext } from '../../context';
|
|
8
|
+
import { useLang } from '../../polyglot';
|
|
8
9
|
import { LockedText, Table } from '../../styles';
|
|
9
10
|
import { DataTableList } from '../DataTableList';
|
|
10
11
|
import { DataTablePagination } from '../DataTablePagination';
|
|
11
12
|
export function DataTable(props) {
|
|
12
|
-
var _data$value, _data$value2, _data$value3, _data$value4, _data$value5
|
|
13
|
+
var _data$value, _data$value2, _data$value3, _data$value4, _data$value5;
|
|
13
14
|
const {
|
|
14
15
|
columns,
|
|
15
16
|
width,
|
|
@@ -24,6 +25,7 @@ export function DataTable(props) {
|
|
|
24
25
|
hidePagination,
|
|
25
26
|
hidePageSizeSelector
|
|
26
27
|
} = props;
|
|
28
|
+
const lang = useLang();
|
|
27
29
|
const {
|
|
28
30
|
data,
|
|
29
31
|
params
|
|
@@ -58,7 +60,9 @@ export function DataTable(props) {
|
|
|
58
60
|
}, React.createElement(Spinner, {
|
|
59
61
|
size: "medium",
|
|
60
62
|
color: Color.LOCKED
|
|
61
|
-
}), React.createElement(LockedText, null,
|
|
63
|
+
}), React.createElement(LockedText, null, lang({
|
|
64
|
+
message: 'SMART.TABLE.LOADING'
|
|
65
|
+
}))), !data.loading && data.error && React.createElement(Horizontal, {
|
|
62
66
|
"$alignItems": "center",
|
|
63
67
|
"$gap": 4
|
|
64
68
|
}, React.createElement(WarningRoundIcon, {
|
|
@@ -67,19 +71,34 @@ export function DataTable(props) {
|
|
|
67
71
|
color: Color.WARNING
|
|
68
72
|
}), React.createElement(Text, {
|
|
69
73
|
"$color": Color.WARNING
|
|
70
|
-
},
|
|
74
|
+
}, lang({
|
|
75
|
+
message: 'SMART.TABLE.REQUEST_FAILED'
|
|
76
|
+
}))), !data.loading && !data.error && (((_data$value2 = data.value) === null || _data$value2 === void 0 ? void 0 : _data$value2.total) ?? 0) > 0 && React.createElement(Horizontal, {
|
|
71
77
|
"$placeItems": "center",
|
|
72
78
|
"$gap": 4
|
|
73
|
-
},
|
|
79
|
+
}, lang({
|
|
80
|
+
message: 'SMART.TABLE.RESULT_LABEL'
|
|
81
|
+
}), React.createElement(LockedText, null, lang({
|
|
82
|
+
message: 'SMART.TABLE.RESULT_COUNT',
|
|
83
|
+
total: ((_data$value3 = data.value) === null || _data$value3 === void 0 ? void 0 : _data$value3.total) ?? 0
|
|
84
|
+
}))), !data.loading && !data.error && (((_data$value4 = data.value) === null || _data$value4 === void 0 ? void 0 : _data$value4.total) ?? 0) === 0 && !isFiltered && React.createElement(Horizontal, {
|
|
74
85
|
"$placeItems": "center"
|
|
75
|
-
}, React.createElement(LockedText, null,
|
|
86
|
+
}, React.createElement(LockedText, null, lang({
|
|
87
|
+
message: 'SMART.TABLE.NO_ITEMS'
|
|
88
|
+
}))), !data.loading && isFiltered && React.createElement(Horizontal, {
|
|
76
89
|
"$gap": 16
|
|
77
|
-
}, !data.error && (((_data$
|
|
90
|
+
}, !data.error && (((_data$value5 = data.value) === null || _data$value5 === void 0 || (_data$value5 = _data$value5.items) === null || _data$value5 === void 0 ? void 0 : _data$value5.length) ?? 0) === 0 && React.createElement(Horizontal, {
|
|
78
91
|
"$placeItems": "center",
|
|
79
92
|
"$gap": 4
|
|
80
|
-
},
|
|
93
|
+
}, lang({
|
|
94
|
+
message: 'SMART.TABLE.RESULT_LABEL'
|
|
95
|
+
}), React.createElement(LockedText, null, lang({
|
|
96
|
+
message: 'SMART.TABLE.NO_MATCH'
|
|
97
|
+
}))), React.createElement(Button, {
|
|
81
98
|
color: "primary",
|
|
82
99
|
view: "ghost",
|
|
83
100
|
onClick: onClearRequest ?? onClearRequestDefault
|
|
84
|
-
},
|
|
101
|
+
}, lang({
|
|
102
|
+
message: 'SMART.TABLE.CLEAR_REQUEST'
|
|
103
|
+
}))))), renderAfter === null || renderAfter === void 0 ? void 0 : renderAfter(context));
|
|
85
104
|
}
|
|
@@ -5,6 +5,7 @@ import Box from '../../assets/box.svg?url';
|
|
|
5
5
|
import Error from '../../assets/error.svg?url';
|
|
6
6
|
import NotFound from '../../assets/notfound.svg?url';
|
|
7
7
|
import { DataTableContext } from '../../context';
|
|
8
|
+
import { useLang } from '../../polyglot';
|
|
8
9
|
import { LockedText } from '../../styles';
|
|
9
10
|
import { Loading } from '../Loading';
|
|
10
11
|
export function DataTableList({
|
|
@@ -15,6 +16,7 @@ export function DataTableList({
|
|
|
15
16
|
data,
|
|
16
17
|
params
|
|
17
18
|
} = useContext(DataTableContext);
|
|
19
|
+
const lang = useLang();
|
|
18
20
|
if (data.loading) {
|
|
19
21
|
return React.createElement(Loading, null);
|
|
20
22
|
}
|
|
@@ -29,17 +31,23 @@ export function DataTableList({
|
|
|
29
31
|
"$gap": 16
|
|
30
32
|
}, React.createElement("img", {
|
|
31
33
|
src: Error,
|
|
32
|
-
alt:
|
|
34
|
+
alt: lang({
|
|
35
|
+
message: 'SMART.TABLE.ERROR_IMG_ALT'
|
|
36
|
+
})
|
|
33
37
|
}), React.createElement(Vertical, {
|
|
34
38
|
"$alignContent": "center",
|
|
35
39
|
"$gap": 8
|
|
36
40
|
}, React.createElement(LockedText, {
|
|
37
41
|
"$fontWeight": FontWeight.MEDIUM,
|
|
38
42
|
"$maxWidth": "250px"
|
|
39
|
-
},
|
|
43
|
+
}, lang({
|
|
44
|
+
message: 'SMART.TABLE.ERROR_TITLE'
|
|
45
|
+
})), React.createElement(LockedText, {
|
|
40
46
|
"$fontSize": FontSize.SMALL,
|
|
41
47
|
"$maxWidth": "250px"
|
|
42
|
-
},
|
|
48
|
+
}, lang({
|
|
49
|
+
message: 'SMART.TABLE.ERROR_DESCRIPTION'
|
|
50
|
+
})))));
|
|
43
51
|
}
|
|
44
52
|
const isFiltered = ((_data$value2 = data.value) === null || _data$value2 === void 0 ? void 0 : _data$value2.isFiltered) || params.search;
|
|
45
53
|
return isFiltered ? React.createElement(Horizontal, {
|
|
@@ -49,32 +57,44 @@ export function DataTableList({
|
|
|
49
57
|
"$gap": 16
|
|
50
58
|
}, React.createElement("img", {
|
|
51
59
|
src: NotFound,
|
|
52
|
-
alt:
|
|
60
|
+
alt: lang({
|
|
61
|
+
message: 'SMART.TABLE.NO_MATCH_IMG_ALT'
|
|
62
|
+
})
|
|
53
63
|
}), React.createElement(Vertical, {
|
|
54
64
|
"$alignContent": "center",
|
|
55
65
|
"$gap": 8
|
|
56
66
|
}, React.createElement(LockedText, {
|
|
57
67
|
"$fontWeight": FontWeight.MEDIUM,
|
|
58
68
|
"$maxWidth": "250px"
|
|
59
|
-
},
|
|
69
|
+
}, lang({
|
|
70
|
+
message: 'SMART.TABLE.NO_MATCH'
|
|
71
|
+
})), React.createElement(LockedText, {
|
|
60
72
|
"$fontSize": FontSize.SMALL,
|
|
61
73
|
"$maxWidth": "250px"
|
|
62
|
-
},
|
|
74
|
+
}, lang({
|
|
75
|
+
message: 'SMART.TABLE.NO_MATCH_DESCRIPTION'
|
|
76
|
+
}))))) : React.createElement(Horizontal, {
|
|
63
77
|
"$placeItems": "center",
|
|
64
78
|
"$padding": 64
|
|
65
79
|
}, React.createElement(Horizontal, {
|
|
66
80
|
"$gap": 16
|
|
67
81
|
}, React.createElement("img", {
|
|
68
82
|
src: Box,
|
|
69
|
-
alt:
|
|
83
|
+
alt: lang({
|
|
84
|
+
message: 'SMART.TABLE.EMPTY_IMG_ALT'
|
|
85
|
+
})
|
|
70
86
|
}), React.createElement(Vertical, {
|
|
71
87
|
"$alignContent": "center",
|
|
72
88
|
"$gap": 8
|
|
73
89
|
}, React.createElement(LockedText, {
|
|
74
90
|
"$fontWeight": FontWeight.MEDIUM,
|
|
75
91
|
"$maxWidth": "250px"
|
|
76
|
-
},
|
|
92
|
+
}, lang({
|
|
93
|
+
message: 'SMART.TABLE.EMPTY_TITLE'
|
|
94
|
+
})), React.createElement(LockedText, {
|
|
77
95
|
"$fontSize": FontSize.SMALL,
|
|
78
96
|
"$maxWidth": "250px"
|
|
79
|
-
},
|
|
97
|
+
}, lang({
|
|
98
|
+
message: 'SMART.TABLE.EMPTY_DESCRIPTION'
|
|
99
|
+
})))));
|
|
80
100
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NativeSelect, Pagination } from '@pushwoosh/dumb-components';
|
|
3
3
|
import { Horizontal } from '@pushwoosh/kit-helpers';
|
|
4
|
+
import { useLang } from '../../polyglot';
|
|
4
5
|
export function TablePagination({
|
|
5
6
|
activePage,
|
|
6
7
|
totalPages,
|
|
@@ -12,6 +13,7 @@ export function TablePagination({
|
|
|
12
13
|
onChangeLimit,
|
|
13
14
|
children
|
|
14
15
|
}) {
|
|
16
|
+
const lang = useLang();
|
|
15
17
|
return React.createElement(Horizontal, {
|
|
16
18
|
"$alignItems": "center",
|
|
17
19
|
"$justifyContent": "space-between",
|
|
@@ -26,7 +28,9 @@ export function TablePagination({
|
|
|
26
28
|
}), children), !hidePageSizeSelector && React.createElement(Horizontal, {
|
|
27
29
|
"$gap": 8,
|
|
28
30
|
"$alignItems": "center"
|
|
29
|
-
}, React.createElement("span", null,
|
|
31
|
+
}, React.createElement("span", null, lang({
|
|
32
|
+
message: 'SMART.TABLE.SHOW_ON_PAGE'
|
|
33
|
+
})), React.createElement(NativeSelect, {
|
|
30
34
|
name: "page",
|
|
31
35
|
value: limit,
|
|
32
36
|
onChange: event => {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'SMART.TABLE.LOADING': 'Loading...',
|
|
3
|
+
'SMART.TABLE.REQUEST_FAILED': 'Request failed',
|
|
4
|
+
'SMART.TABLE.RESULT_LABEL': 'Result:',
|
|
5
|
+
'SMART.TABLE.RESULT_COUNT': '{{total}} {{total | pluralize: "item", "items"}}',
|
|
6
|
+
'SMART.TABLE.NO_ITEMS': 'No items yet',
|
|
7
|
+
'SMART.TABLE.NO_MATCH': 'No match found',
|
|
8
|
+
'SMART.TABLE.CLEAR_REQUEST': 'Clear request',
|
|
9
|
+
'SMART.TABLE.ERROR_IMG_ALT': 'Request failed',
|
|
10
|
+
'SMART.TABLE.ERROR_TITLE': 'Something went wrong',
|
|
11
|
+
'SMART.TABLE.ERROR_DESCRIPTION': 'Give it another try or refresh the page to see if we can fix this glitch!',
|
|
12
|
+
'SMART.TABLE.NO_MATCH_IMG_ALT': 'Not found',
|
|
13
|
+
'SMART.TABLE.NO_MATCH_DESCRIPTION': 'Please try using different search terms with a minimum of two characters.',
|
|
14
|
+
'SMART.TABLE.EMPTY_IMG_ALT': 'Empty box',
|
|
15
|
+
'SMART.TABLE.EMPTY_TITLE': 'This list is empty',
|
|
16
|
+
'SMART.TABLE.EMPTY_DESCRIPTION': 'Looks like there’s nothing here yet. Time to create — let’s bring this list to life!',
|
|
17
|
+
'SMART.TABLE.SHOW_ON_PAGE': 'Show on page:'
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'SMART.TABLE.LOADING': 'Загрузка...',
|
|
3
|
+
'SMART.TABLE.REQUEST_FAILED': 'Ошибка запроса',
|
|
4
|
+
'SMART.TABLE.RESULT_LABEL': 'Результат:',
|
|
5
|
+
'SMART.TABLE.RESULT_COUNT': '{{total}} {{total | pluralize: "элемент", "элемента", "элементов"}}',
|
|
6
|
+
'SMART.TABLE.NO_ITEMS': 'Пока нет элементов',
|
|
7
|
+
'SMART.TABLE.NO_MATCH': 'Ничего не найдено',
|
|
8
|
+
'SMART.TABLE.CLEAR_REQUEST': 'Сбросить запрос',
|
|
9
|
+
'SMART.TABLE.ERROR_IMG_ALT': 'Ошибка запроса',
|
|
10
|
+
'SMART.TABLE.ERROR_TITLE': 'Что-то пошло не так',
|
|
11
|
+
'SMART.TABLE.ERROR_DESCRIPTION': 'Попробуйте ещё раз или обновите страницу — возможно, это поможет!',
|
|
12
|
+
'SMART.TABLE.NO_MATCH_IMG_ALT': 'Ничего не найдено',
|
|
13
|
+
'SMART.TABLE.NO_MATCH_DESCRIPTION': 'Попробуйте изменить поисковый запрос (минимум два символа).',
|
|
14
|
+
'SMART.TABLE.EMPTY_IMG_ALT': 'Пустой список',
|
|
15
|
+
'SMART.TABLE.EMPTY_TITLE': 'Список пуст',
|
|
16
|
+
'SMART.TABLE.EMPTY_DESCRIPTION': 'Похоже, здесь пока ничего нет. Самое время создать что-нибудь и оживить этот список!',
|
|
17
|
+
'SMART.TABLE.SHOW_ON_PAGE': 'Показывать на странице:'
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NoParams } from '@pushwoosh/dumb-components/polyglot';
|
|
2
|
+
export type TableMessages = {
|
|
3
|
+
'SMART.TABLE.LOADING': NoParams;
|
|
4
|
+
'SMART.TABLE.REQUEST_FAILED': NoParams;
|
|
5
|
+
'SMART.TABLE.RESULT_LABEL': NoParams;
|
|
6
|
+
'SMART.TABLE.RESULT_COUNT': {
|
|
7
|
+
total: number;
|
|
8
|
+
};
|
|
9
|
+
'SMART.TABLE.NO_ITEMS': NoParams;
|
|
10
|
+
'SMART.TABLE.NO_MATCH': NoParams;
|
|
11
|
+
'SMART.TABLE.CLEAR_REQUEST': NoParams;
|
|
12
|
+
'SMART.TABLE.ERROR_IMG_ALT': NoParams;
|
|
13
|
+
'SMART.TABLE.ERROR_TITLE': NoParams;
|
|
14
|
+
'SMART.TABLE.ERROR_DESCRIPTION': NoParams;
|
|
15
|
+
'SMART.TABLE.NO_MATCH_IMG_ALT': NoParams;
|
|
16
|
+
'SMART.TABLE.NO_MATCH_DESCRIPTION': NoParams;
|
|
17
|
+
'SMART.TABLE.EMPTY_IMG_ALT': NoParams;
|
|
18
|
+
'SMART.TABLE.EMPTY_TITLE': NoParams;
|
|
19
|
+
'SMART.TABLE.EMPTY_DESCRIPTION': NoParams;
|
|
20
|
+
'SMART.TABLE.SHOW_ON_PAGE': NoParams;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/Table/styles.d.ts
CHANGED
|
@@ -5,232 +5,56 @@ export type TableProps = {
|
|
|
5
5
|
isBordered?: boolean;
|
|
6
6
|
$bgColor?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const Table: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
$alignContent?: "
|
|
10
|
-
$alignItems?: "
|
|
11
|
-
$
|
|
12
|
-
$
|
|
13
|
-
|
|
14
|
-
right?: string | undefined;
|
|
15
|
-
bottom?: string | undefined;
|
|
16
|
-
left?: string | undefined;
|
|
17
|
-
} | {
|
|
18
|
-
horizontal: string;
|
|
19
|
-
top?: string | undefined;
|
|
20
|
-
bottom?: string | undefined;
|
|
21
|
-
} | {
|
|
22
|
-
vertical: string;
|
|
23
|
-
right?: string | undefined;
|
|
24
|
-
left?: string | undefined;
|
|
25
|
-
}) | undefined;
|
|
26
|
-
$borderRadius?: (string | number) | undefined;
|
|
27
|
-
$boxShadow?: string | undefined;
|
|
28
|
-
$gap?: (string | number) | undefined;
|
|
8
|
+
export declare const Table: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
|
|
9
|
+
$alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
|
|
10
|
+
$alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
|
|
11
|
+
$gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
|
|
12
|
+
$justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
|
|
13
|
+
} & {
|
|
29
14
|
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
30
|
-
$
|
|
31
|
-
$
|
|
32
|
-
$margin?: (string | number) | ({
|
|
33
|
-
top?: (string | number) | undefined;
|
|
34
|
-
right?: (string | number) | undefined;
|
|
35
|
-
bottom?: (string | number) | undefined;
|
|
36
|
-
left?: (string | number) | undefined;
|
|
37
|
-
} | {
|
|
38
|
-
horizontal: string | number;
|
|
39
|
-
top?: (string | number) | undefined;
|
|
40
|
-
bottom?: (string | number) | undefined;
|
|
41
|
-
} | {
|
|
42
|
-
vertical: string | number;
|
|
43
|
-
right?: (string | number) | undefined;
|
|
44
|
-
left?: (string | number) | undefined;
|
|
45
|
-
}) | undefined;
|
|
46
|
-
$padding?: (string | number) | ({
|
|
47
|
-
top?: (string | number) | undefined;
|
|
48
|
-
right?: (string | number) | undefined;
|
|
49
|
-
bottom?: (string | number) | undefined;
|
|
50
|
-
left?: (string | number) | undefined;
|
|
51
|
-
} | {
|
|
52
|
-
horizontal: string | number;
|
|
53
|
-
top?: (string | number) | undefined;
|
|
54
|
-
bottom?: (string | number) | undefined;
|
|
55
|
-
} | {
|
|
56
|
-
vertical: string | number;
|
|
57
|
-
right?: (string | number) | undefined;
|
|
58
|
-
left?: (string | number) | undefined;
|
|
59
|
-
}) | undefined;
|
|
60
|
-
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
15
|
+
$justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
|
|
16
|
+
$placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
|
|
61
17
|
} & {
|
|
62
18
|
$gridAutoFlow: string;
|
|
63
19
|
} & TableProps, "$gridAutoFlow">;
|
|
64
|
-
export declare const Td: import("styled-components").StyledComponent<"div", any, {
|
|
65
|
-
$alignContent?: "
|
|
66
|
-
$alignItems?: "
|
|
67
|
-
$
|
|
68
|
-
$
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} | {
|
|
74
|
-
horizontal: string;
|
|
75
|
-
top?: string | undefined;
|
|
76
|
-
bottom?: string | undefined;
|
|
77
|
-
} | {
|
|
78
|
-
vertical: string;
|
|
79
|
-
right?: string | undefined;
|
|
80
|
-
left?: string | undefined;
|
|
81
|
-
}) | undefined;
|
|
82
|
-
$borderRadius?: (string | number) | undefined;
|
|
83
|
-
$boxShadow?: string | undefined;
|
|
84
|
-
$gap?: (string | number) | undefined;
|
|
85
|
-
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
86
|
-
$justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
87
|
-
$justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
88
|
-
$margin?: (string | number) | ({
|
|
89
|
-
top?: (string | number) | undefined;
|
|
90
|
-
right?: (string | number) | undefined;
|
|
91
|
-
bottom?: (string | number) | undefined;
|
|
92
|
-
left?: (string | number) | undefined;
|
|
93
|
-
} | {
|
|
94
|
-
horizontal: string | number;
|
|
95
|
-
top?: (string | number) | undefined;
|
|
96
|
-
bottom?: (string | number) | undefined;
|
|
97
|
-
} | {
|
|
98
|
-
vertical: string | number;
|
|
99
|
-
right?: (string | number) | undefined;
|
|
100
|
-
left?: (string | number) | undefined;
|
|
101
|
-
}) | undefined;
|
|
102
|
-
$padding?: (string | number) | ({
|
|
103
|
-
top?: (string | number) | undefined;
|
|
104
|
-
right?: (string | number) | undefined;
|
|
105
|
-
bottom?: (string | number) | undefined;
|
|
106
|
-
left?: (string | number) | undefined;
|
|
107
|
-
} | {
|
|
108
|
-
horizontal: string | number;
|
|
109
|
-
top?: (string | number) | undefined;
|
|
110
|
-
bottom?: (string | number) | undefined;
|
|
111
|
-
} | {
|
|
112
|
-
vertical: string | number;
|
|
113
|
-
right?: (string | number) | undefined;
|
|
114
|
-
left?: (string | number) | undefined;
|
|
115
|
-
}) | undefined;
|
|
116
|
-
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
20
|
+
export declare const Td: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
|
|
21
|
+
$alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
|
|
22
|
+
$alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
|
|
23
|
+
$gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
|
|
24
|
+
$justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
|
|
25
|
+
} & {
|
|
26
|
+
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
|
|
27
|
+
$justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
|
|
28
|
+
$placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
|
|
117
29
|
} & {
|
|
118
30
|
$padding: number;
|
|
119
31
|
} & {
|
|
120
32
|
$color?: string;
|
|
121
33
|
}, "$padding">;
|
|
122
34
|
export declare const ElementHover: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
123
|
-
export declare const Tr: import("styled-components").StyledComponent<"div", any, {
|
|
124
|
-
$alignContent?: "
|
|
125
|
-
$alignItems?: "
|
|
126
|
-
$
|
|
127
|
-
$
|
|
128
|
-
|
|
129
|
-
right?: string | undefined;
|
|
130
|
-
bottom?: string | undefined;
|
|
131
|
-
left?: string | undefined;
|
|
132
|
-
} | {
|
|
133
|
-
horizontal: string;
|
|
134
|
-
top?: string | undefined;
|
|
135
|
-
bottom?: string | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
vertical: string;
|
|
138
|
-
right?: string | undefined;
|
|
139
|
-
left?: string | undefined;
|
|
140
|
-
}) | undefined;
|
|
141
|
-
$borderRadius?: (string | number) | undefined;
|
|
142
|
-
$boxShadow?: string | undefined;
|
|
143
|
-
$gap?: (string | number) | undefined;
|
|
35
|
+
export declare const Tr: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
|
|
36
|
+
$alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
|
|
37
|
+
$alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
|
|
38
|
+
$gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
|
|
39
|
+
$justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
|
|
40
|
+
} & {
|
|
144
41
|
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
145
|
-
$
|
|
146
|
-
$
|
|
147
|
-
$margin?: (string | number) | ({
|
|
148
|
-
top?: (string | number) | undefined;
|
|
149
|
-
right?: (string | number) | undefined;
|
|
150
|
-
bottom?: (string | number) | undefined;
|
|
151
|
-
left?: (string | number) | undefined;
|
|
152
|
-
} | {
|
|
153
|
-
horizontal: string | number;
|
|
154
|
-
top?: (string | number) | undefined;
|
|
155
|
-
bottom?: (string | number) | undefined;
|
|
156
|
-
} | {
|
|
157
|
-
vertical: string | number;
|
|
158
|
-
right?: (string | number) | undefined;
|
|
159
|
-
left?: (string | number) | undefined;
|
|
160
|
-
}) | undefined;
|
|
161
|
-
$padding?: (string | number) | ({
|
|
162
|
-
top?: (string | number) | undefined;
|
|
163
|
-
right?: (string | number) | undefined;
|
|
164
|
-
bottom?: (string | number) | undefined;
|
|
165
|
-
left?: (string | number) | undefined;
|
|
166
|
-
} | {
|
|
167
|
-
horizontal: string | number;
|
|
168
|
-
top?: (string | number) | undefined;
|
|
169
|
-
bottom?: (string | number) | undefined;
|
|
170
|
-
} | {
|
|
171
|
-
vertical: string | number;
|
|
172
|
-
right?: (string | number) | undefined;
|
|
173
|
-
left?: (string | number) | undefined;
|
|
174
|
-
}) | undefined;
|
|
175
|
-
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
42
|
+
$justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
|
|
43
|
+
$placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
|
|
176
44
|
} & {
|
|
177
45
|
$gridAutoFlow: string;
|
|
178
46
|
} & {
|
|
179
47
|
$padding: string;
|
|
180
48
|
}, "$gridAutoFlow" | "$padding">;
|
|
181
|
-
export declare const Th: import("styled-components").StyledComponent<"div", any, {
|
|
182
|
-
$alignContent?: "
|
|
183
|
-
$alignItems?: "
|
|
184
|
-
$
|
|
185
|
-
$
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
} | {
|
|
191
|
-
horizontal: string;
|
|
192
|
-
top?: string | undefined;
|
|
193
|
-
bottom?: string | undefined;
|
|
194
|
-
} | {
|
|
195
|
-
vertical: string;
|
|
196
|
-
right?: string | undefined;
|
|
197
|
-
left?: string | undefined;
|
|
198
|
-
}) | undefined;
|
|
199
|
-
$borderRadius?: (string | number) | undefined;
|
|
200
|
-
$boxShadow?: string | undefined;
|
|
201
|
-
$gap?: (string | number) | undefined;
|
|
202
|
-
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
|
|
203
|
-
$justifyContent?: "end" | "start" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | undefined;
|
|
204
|
-
$justifyItems?: "end" | "start" | "center" | "stretch" | "baseline" | undefined;
|
|
205
|
-
$margin?: (string | number) | ({
|
|
206
|
-
top?: (string | number) | undefined;
|
|
207
|
-
right?: (string | number) | undefined;
|
|
208
|
-
bottom?: (string | number) | undefined;
|
|
209
|
-
left?: (string | number) | undefined;
|
|
210
|
-
} | {
|
|
211
|
-
horizontal: string | number;
|
|
212
|
-
top?: (string | number) | undefined;
|
|
213
|
-
bottom?: (string | number) | undefined;
|
|
214
|
-
} | {
|
|
215
|
-
vertical: string | number;
|
|
216
|
-
right?: (string | number) | undefined;
|
|
217
|
-
left?: (string | number) | undefined;
|
|
218
|
-
}) | undefined;
|
|
219
|
-
$padding?: (string | number) | ({
|
|
220
|
-
top?: (string | number) | undefined;
|
|
221
|
-
right?: (string | number) | undefined;
|
|
222
|
-
bottom?: (string | number) | undefined;
|
|
223
|
-
left?: (string | number) | undefined;
|
|
224
|
-
} | {
|
|
225
|
-
horizontal: string | number;
|
|
226
|
-
top?: (string | number) | undefined;
|
|
227
|
-
bottom?: (string | number) | undefined;
|
|
228
|
-
} | {
|
|
229
|
-
vertical: string | number;
|
|
230
|
-
right?: (string | number) | undefined;
|
|
231
|
-
left?: (string | number) | undefined;
|
|
232
|
-
}) | undefined;
|
|
233
|
-
$placeItems?: "end" | "start" | "center" | "stretch" | undefined;
|
|
49
|
+
export declare const Th: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
|
|
50
|
+
$alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
|
|
51
|
+
$alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
|
|
52
|
+
$gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
|
|
53
|
+
$justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
|
|
54
|
+
} & {
|
|
55
|
+
$gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
|
|
56
|
+
$justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
|
|
57
|
+
$placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
|
|
234
58
|
} & {
|
|
235
59
|
$padding: number;
|
|
236
60
|
} & {
|
package/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './EmailTemplatePreview';
|
|
|
7
7
|
export * from './ExportCSV';
|
|
8
8
|
export * from './PlatformsConfigurationDrawer';
|
|
9
9
|
export * from './LanguagesSelector';
|
|
10
|
+
export * from './MediaStore';
|
|
10
11
|
export * from './ResendModal';
|
|
11
12
|
export * from './RichMessageEditorSmart';
|
|
12
13
|
export * from './Table';
|
package/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './EmailTemplatePreview';
|
|
|
7
7
|
export * from './ExportCSV';
|
|
8
8
|
export * from './PlatformsConfigurationDrawer';
|
|
9
9
|
export * from './LanguagesSelector';
|
|
10
|
+
export * from './MediaStore';
|
|
10
11
|
export * from './ResendModal';
|
|
11
12
|
export * from './RichMessageEditorSmart';
|
|
12
13
|
export * from './Table';
|
package/package.json
CHANGED
|
@@ -21,11 +21,12 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@floating-ui/react-dom": "^2.1.2",
|
|
24
|
-
"@pushwoosh/dumb-components": "^1.1.
|
|
24
|
+
"@pushwoosh/dumb-components": "^1.1.134",
|
|
25
25
|
"@pushwoosh/kit-constants": "^1.6.9",
|
|
26
26
|
"@pushwoosh/kit-helpers": "^4.9.1",
|
|
27
27
|
"@pushwoosh/kit-icons": "^2.1.6",
|
|
28
28
|
"@pushwoosh/kit-typography": "^1.7.3",
|
|
29
|
+
"@pushwoosh/rpc-v2-http-api-data": "^0.1.974",
|
|
29
30
|
"@pushwoosh/spa-context": "^1.1.2",
|
|
30
31
|
"idb-keyval": "^6.2.2",
|
|
31
32
|
"react-hook-form": "^7.68.0",
|
|
@@ -48,5 +49,5 @@
|
|
|
48
49
|
"react": "^16.14.0 || ^18.0.0",
|
|
49
50
|
"react-dom": "^16.14.0 || ^18.0.0"
|
|
50
51
|
},
|
|
51
|
-
"version": "1.0.
|
|
52
|
+
"version": "1.0.89"
|
|
52
53
|
}
|