@itcase/ui 1.8.96 → 1.8.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/ModalSheetBottom.js +26 -3
- package/dist/cjs/components/Response.js +45 -17
- package/dist/components/ModalSheetBottom.js +26 -3
- package/dist/components/Response.js +45 -17
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +3 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.appearance.d.ts +8 -0
- package/dist/types/components/Response/appearance/responceConfirm.d.ts +2 -2
- package/dist/types/components/Response/appearance/responceEmpty.d.ts +14 -0
- package/dist/types/components/Response/appearance/responseDanger.d.ts +14 -0
- package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -2
- package/package.json +1 -1
|
@@ -4,9 +4,12 @@ var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactModalSheet = require('react-modal-sheet');
|
|
7
|
+
var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
|
|
8
|
+
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
7
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
+
var Icon = require('../../Icon_cjs_B-nskaAO.js');
|
|
8
11
|
require('lodash/camelCase');
|
|
9
|
-
require('lodash/
|
|
12
|
+
require('lodash/castArray');
|
|
10
13
|
require('lodash/upperFirst');
|
|
11
14
|
require('../context/Notifications.js');
|
|
12
15
|
require('uuid');
|
|
@@ -15,16 +18,33 @@ require('../context/UIContext.js');
|
|
|
15
18
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
16
19
|
require('react-responsive');
|
|
17
20
|
require('../utils/setViewportProperty.js');
|
|
21
|
+
require('lodash/maxBy');
|
|
18
22
|
require('../hooks/useStyles/styleAttributes.js');
|
|
23
|
+
require('clsx');
|
|
24
|
+
require('react-inlinesvg');
|
|
25
|
+
require('../hoc/urlWithAssetPrefix.js');
|
|
26
|
+
require('../context/UrlAssetPrefix.js');
|
|
27
|
+
require('../../Link_cjs_BqT6eVl6.js');
|
|
28
|
+
require('../../Text_cjs_DmuzuKFj.js');
|
|
19
29
|
|
|
20
30
|
var modalSheetBottomAppearance = {
|
|
31
|
+
sizeL: {
|
|
32
|
+
size: 'l',
|
|
33
|
+
titleTextSize: 'h4',
|
|
34
|
+
},
|
|
35
|
+
sizeM: {
|
|
36
|
+
size: 'm',
|
|
37
|
+
titleTextSize: 'h5',
|
|
38
|
+
},
|
|
21
39
|
dev: {
|
|
22
40
|
fill: 'accentPrimary',
|
|
23
41
|
},
|
|
24
42
|
};
|
|
25
43
|
|
|
44
|
+
var modalSheetBottomConfig = {
|
|
45
|
+
appearance: modalSheetBottomAppearance};
|
|
26
46
|
var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
|
|
27
|
-
var dataTestId = props.dataTestId, dataTour = props.dataTour, initialIsOpen = props.initialIsOpen, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
|
|
47
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, appearance = props.appearance, initialIsOpen = props.initialIsOpen, title = props.title, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
|
|
28
48
|
var _a = React.useState(initialIsOpen), isOpen = _a[0], setIsOpen = _a[1];
|
|
29
49
|
var openModalSheetBottom = React.useCallback(function () {
|
|
30
50
|
setIsOpen(true);
|
|
@@ -40,9 +60,12 @@ var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
|
|
|
40
60
|
closeModal: closeModalSheetBottom,
|
|
41
61
|
isOpen: isOpen,
|
|
42
62
|
}); }, [isOpen, openModalSheetBottom, closeModalSheetBottom]);
|
|
63
|
+
var appearanceConfig = useAppearanceConfig.useAppearanceConfig(appearance, modalSheetBottomConfig);
|
|
64
|
+
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
65
|
+
var titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap;
|
|
43
66
|
// @ts-expect-error
|
|
44
67
|
var styles = useStyles.useStyles(props).styles;
|
|
45
|
-
return (jsxRuntime.jsxs(reactModalSheet.Sheet, tslib_es6.__assign({ dataTestId: dataTestId, dataTour: dataTour, className: "modal-sheet-bottom", isOpen: isOpen, onClose: closeModalSheetBottom }, props, { children: [jsxRuntime.jsxs(reactModalSheet.Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [closeButton
|
|
68
|
+
return (jsxRuntime.jsxs(reactModalSheet.Sheet, tslib_es6.__assign({ dataTestId: dataTestId, dataTour: dataTour, className: "modal-sheet-bottom", isOpen: isOpen, onClose: closeModalSheetBottom }, props, { children: [jsxRuntime.jsxs(reactModalSheet.Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [jsxRuntime.jsx(reactModalSheet.Sheet.Header, { className: "modal-sheet-bottom__header" }), (closeButton || title) && (jsxRuntime.jsxs("div", { className: "modal-sheet-bottom__header", children: [title && (jsxRuntime.jsx(Icon.Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), jsxRuntime.jsx("div", { className: "modal-sheet-bottom__close", onClick: closeModalSheetBottom, children: closeButton })] })), jsxRuntime.jsx(reactModalSheet.Sheet.Content, { className: "modal-sheet-bottom__content", children: jsxRuntime.jsx("div", { className: "modal-sheet-bottom__content-wrapper", children: children }) })] }), jsxRuntime.jsx(reactModalSheet.Sheet.Backdrop, { className: "modal-sheet-bottom__backdrop", onClick: closeModalSheetBottom })] })));
|
|
46
69
|
});
|
|
47
70
|
|
|
48
71
|
exports.ModalSheetBottom = ModalSheetBottom;
|
|
@@ -37,10 +37,24 @@ var responseAppearanceConfirm = {
|
|
|
37
37
|
titleTextSize: 'xxl',
|
|
38
38
|
labelTextColor: 'surfaceTextPrimary',
|
|
39
39
|
descTextSize: 'm',
|
|
40
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
41
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
42
|
+
svgFill: 'surfaceTertiary',
|
|
43
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
var responseAppearanceEmpty = {
|
|
48
|
+
empty: {
|
|
49
|
+
fill: 'surfacePrimary',
|
|
50
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
51
|
+
titleTextSize: 'xxl',
|
|
52
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
53
|
+
descTextSize: 'm',
|
|
54
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
55
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
40
56
|
svgFill: 'surfaceTertiary',
|
|
41
57
|
svgPathFill: 'surfaceItemQuaternary',
|
|
42
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
43
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
44
58
|
},
|
|
45
59
|
};
|
|
46
60
|
|
|
@@ -51,8 +65,8 @@ var responseAppearanceFail = {
|
|
|
51
65
|
titleTextSize: 'xxl',
|
|
52
66
|
labelTextColor: 'surfaceTextPrimary',
|
|
53
67
|
descTextSize: 'm',
|
|
54
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
55
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
68
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
69
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
56
70
|
svgFill: 'surfaceTertiary',
|
|
57
71
|
svgPathFill: 'surfaceItemQuaternary',
|
|
58
72
|
},
|
|
@@ -65,8 +79,8 @@ var responseAppearanceNothingFound = {
|
|
|
65
79
|
titleTextSize: 'xxl',
|
|
66
80
|
labelTextColor: 'surfaceTextPrimary',
|
|
67
81
|
descTextSize: 'm',
|
|
68
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
69
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
82
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
83
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
70
84
|
svgFill: 'surfaceTertiary',
|
|
71
85
|
svgPathFill: 'surfaceItemQuaternary',
|
|
72
86
|
},
|
|
@@ -79,13 +93,27 @@ var responseAppearanceRefresh = {
|
|
|
79
93
|
titleTextSize: 'xxl',
|
|
80
94
|
labelTextColor: 'surfaceTextPrimary',
|
|
81
95
|
descTextSize: 'm',
|
|
82
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
83
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
96
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
97
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
84
98
|
svgFill: 'surfaceTertiary',
|
|
85
99
|
svgPathFill: 'surfaceItemQuaternary',
|
|
86
100
|
},
|
|
87
101
|
};
|
|
88
102
|
|
|
103
|
+
var responseAppearanceDanger = {
|
|
104
|
+
danger: {
|
|
105
|
+
fill: 'surfacePrimary',
|
|
106
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
107
|
+
titleTextSize: 'xxl',
|
|
108
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
109
|
+
descTextSize: 'm',
|
|
110
|
+
primaryButtonAppearance: 'dangerPrimary sizeXXL solid',
|
|
111
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
112
|
+
svgFill: 'dangerPrimary',
|
|
113
|
+
svgPathFill: 'dangerItemPrimary',
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
|
|
89
117
|
var responseAppearanceError = {
|
|
90
118
|
error: {
|
|
91
119
|
fill: 'surfacePrimary',
|
|
@@ -93,8 +121,8 @@ var responseAppearanceError = {
|
|
|
93
121
|
titleTextSize: 'xxl',
|
|
94
122
|
labelTextColor: 'surfaceTextPrimary',
|
|
95
123
|
descTextSize: 'm',
|
|
96
|
-
primaryButtonAppearance: 'errorPrimary sizeXXL',
|
|
97
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
124
|
+
primaryButtonAppearance: 'errorPrimary sizeXXL solid',
|
|
125
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
98
126
|
svgFill: 'errorPrimary',
|
|
99
127
|
svgPathFill: 'errorItemPrimary',
|
|
100
128
|
},
|
|
@@ -107,10 +135,10 @@ var responseAppearanceSuccess = {
|
|
|
107
135
|
titleTextSize: 'xxl',
|
|
108
136
|
labelTextColor: 'surfaceTextPrimary',
|
|
109
137
|
descTextSize: 'm',
|
|
138
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
139
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
110
140
|
svgFill: 'accentPrimary',
|
|
111
141
|
svgPathFill: 'accentItemPrimary',
|
|
112
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
113
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
114
142
|
},
|
|
115
143
|
};
|
|
116
144
|
|
|
@@ -121,8 +149,8 @@ var responseAppearanceUnableLoadData = {
|
|
|
121
149
|
titleTextSize: 'xxl',
|
|
122
150
|
labelTextColor: 'surfaceTextPrimary',
|
|
123
151
|
descTextSize: 'm',
|
|
124
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
125
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
152
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
153
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
126
154
|
svgFill: 'surfaceTertiary',
|
|
127
155
|
svgPathFill: 'surfaceItemQuaternary',
|
|
128
156
|
},
|
|
@@ -135,14 +163,14 @@ var responseAppearanceWarning = {
|
|
|
135
163
|
titleTextSize: 'xxl',
|
|
136
164
|
labelTextColor: 'surfaceTextPrimary',
|
|
137
165
|
descTextSize: 'm',
|
|
138
|
-
primaryButtonAppearance: 'warningPrimary sizeXXL',
|
|
139
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
166
|
+
primaryButtonAppearance: 'warningPrimary sizeXXL solid',
|
|
167
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
140
168
|
svgFill: 'warningPrimary',
|
|
141
169
|
svgPathFill: 'warningItemPrimary',
|
|
142
170
|
},
|
|
143
171
|
};
|
|
144
172
|
|
|
145
|
-
var responseAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, responseAppearanceConfirm), responseAppearanceRefresh), responseAppearanceUnableLoadData), responseAppearanceNothingFound), responseAppearanceFail), responseAppearanceError), responseAppearanceSuccess), responseAppearanceWarning);
|
|
173
|
+
var responseAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, responseAppearanceConfirm), responseAppearanceEmpty), responseAppearanceDanger), responseAppearanceRefresh), responseAppearanceUnableLoadData), responseAppearanceNothingFound), responseAppearanceFail), responseAppearanceError), responseAppearanceSuccess), responseAppearanceWarning);
|
|
146
174
|
|
|
147
175
|
var responseConfig = {
|
|
148
176
|
appearance: responseAppearance,
|
|
@@ -2,9 +2,12 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useState, useCallback, useImperativeHandle } from 'react';
|
|
4
4
|
import { Sheet } from 'react-modal-sheet';
|
|
5
|
+
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
6
|
+
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
+
import { b as Title } from '../Icon_es_CTKPPrrC.js';
|
|
6
9
|
import 'lodash/camelCase';
|
|
7
|
-
import 'lodash/
|
|
10
|
+
import 'lodash/castArray';
|
|
8
11
|
import 'lodash/upperFirst';
|
|
9
12
|
import '../context/Notifications.js';
|
|
10
13
|
import 'uuid';
|
|
@@ -13,16 +16,33 @@ import '../context/UIContext.js';
|
|
|
13
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
14
17
|
import 'react-responsive';
|
|
15
18
|
import '../utils/setViewportProperty.js';
|
|
19
|
+
import 'lodash/maxBy';
|
|
16
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
21
|
+
import 'clsx';
|
|
22
|
+
import 'react-inlinesvg';
|
|
23
|
+
import '../hoc/urlWithAssetPrefix.js';
|
|
24
|
+
import '../context/UrlAssetPrefix.js';
|
|
25
|
+
import '../Link_es_BnUIX0QT.js';
|
|
26
|
+
import '../Text_es_DIU5ySvf.js';
|
|
17
27
|
|
|
18
28
|
var modalSheetBottomAppearance = {
|
|
29
|
+
sizeL: {
|
|
30
|
+
size: 'l',
|
|
31
|
+
titleTextSize: 'h4',
|
|
32
|
+
},
|
|
33
|
+
sizeM: {
|
|
34
|
+
size: 'm',
|
|
35
|
+
titleTextSize: 'h5',
|
|
36
|
+
},
|
|
19
37
|
dev: {
|
|
20
38
|
fill: 'accentPrimary',
|
|
21
39
|
},
|
|
22
40
|
};
|
|
23
41
|
|
|
42
|
+
var modalSheetBottomConfig = {
|
|
43
|
+
appearance: modalSheetBottomAppearance};
|
|
24
44
|
var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
|
|
25
|
-
var dataTestId = props.dataTestId, dataTour = props.dataTour, initialIsOpen = props.initialIsOpen, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
|
|
45
|
+
var dataTestId = props.dataTestId, dataTour = props.dataTour, appearance = props.appearance, initialIsOpen = props.initialIsOpen, title = props.title, closeButton = props.closeButton, onCloseModalSheetBottom = props.onCloseModalSheetBottom, onOpenModalSheetBottom = props.onOpenModalSheetBottom, children = props.children;
|
|
26
46
|
var _a = useState(initialIsOpen), isOpen = _a[0], setIsOpen = _a[1];
|
|
27
47
|
var openModalSheetBottom = useCallback(function () {
|
|
28
48
|
setIsOpen(true);
|
|
@@ -38,9 +58,12 @@ var ModalSheetBottom = React.forwardRef(function Modal(props, ref) {
|
|
|
38
58
|
closeModal: closeModalSheetBottom,
|
|
39
59
|
isOpen: isOpen,
|
|
40
60
|
}); }, [isOpen, openModalSheetBottom, closeModalSheetBottom]);
|
|
61
|
+
var appearanceConfig = useAppearanceConfig(appearance, modalSheetBottomConfig);
|
|
62
|
+
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
63
|
+
var titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap;
|
|
41
64
|
// @ts-expect-error
|
|
42
65
|
var styles = useStyles(props).styles;
|
|
43
|
-
return (jsxs(Sheet, __assign({ dataTestId: dataTestId, dataTour: dataTour, className: "modal-sheet-bottom", isOpen: isOpen, onClose: closeModalSheetBottom }, props, { children: [jsxs(Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [closeButton
|
|
66
|
+
return (jsxs(Sheet, __assign({ dataTestId: dataTestId, dataTour: dataTour, className: "modal-sheet-bottom", isOpen: isOpen, onClose: closeModalSheetBottom }, props, { children: [jsxs(Sheet.Container, { className: "modal-sheet-bottom__container", style: styles, children: [jsx(Sheet.Header, { className: "modal-sheet-bottom__header" }), (closeButton || title) && (jsxs("div", { className: "modal-sheet-bottom__header", children: [title && (jsx(Title, { className: "modal__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), jsx("div", { className: "modal-sheet-bottom__close", onClick: closeModalSheetBottom, children: closeButton })] })), jsx(Sheet.Content, { className: "modal-sheet-bottom__content", children: jsx("div", { className: "modal-sheet-bottom__content-wrapper", children: children }) })] }), jsx(Sheet.Backdrop, { className: "modal-sheet-bottom__backdrop", onClick: closeModalSheetBottom })] })));
|
|
44
67
|
});
|
|
45
68
|
|
|
46
69
|
export { ModalSheetBottom, modalSheetBottomAppearance };
|
|
@@ -35,10 +35,24 @@ var responseAppearanceConfirm = {
|
|
|
35
35
|
titleTextSize: 'xxl',
|
|
36
36
|
labelTextColor: 'surfaceTextPrimary',
|
|
37
37
|
descTextSize: 'm',
|
|
38
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
39
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
40
|
+
svgFill: 'surfaceTertiary',
|
|
41
|
+
svgPathFill: 'surfaceItemQuaternary',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var responseAppearanceEmpty = {
|
|
46
|
+
empty: {
|
|
47
|
+
fill: 'surfacePrimary',
|
|
48
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
49
|
+
titleTextSize: 'xxl',
|
|
50
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
51
|
+
descTextSize: 'm',
|
|
52
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
53
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
38
54
|
svgFill: 'surfaceTertiary',
|
|
39
55
|
svgPathFill: 'surfaceItemQuaternary',
|
|
40
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
41
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
42
56
|
},
|
|
43
57
|
};
|
|
44
58
|
|
|
@@ -49,8 +63,8 @@ var responseAppearanceFail = {
|
|
|
49
63
|
titleTextSize: 'xxl',
|
|
50
64
|
labelTextColor: 'surfaceTextPrimary',
|
|
51
65
|
descTextSize: 'm',
|
|
52
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
53
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
66
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
67
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
54
68
|
svgFill: 'surfaceTertiary',
|
|
55
69
|
svgPathFill: 'surfaceItemQuaternary',
|
|
56
70
|
},
|
|
@@ -63,8 +77,8 @@ var responseAppearanceNothingFound = {
|
|
|
63
77
|
titleTextSize: 'xxl',
|
|
64
78
|
labelTextColor: 'surfaceTextPrimary',
|
|
65
79
|
descTextSize: 'm',
|
|
66
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
67
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
80
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
81
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
68
82
|
svgFill: 'surfaceTertiary',
|
|
69
83
|
svgPathFill: 'surfaceItemQuaternary',
|
|
70
84
|
},
|
|
@@ -77,13 +91,27 @@ var responseAppearanceRefresh = {
|
|
|
77
91
|
titleTextSize: 'xxl',
|
|
78
92
|
labelTextColor: 'surfaceTextPrimary',
|
|
79
93
|
descTextSize: 'm',
|
|
80
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
81
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
94
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
95
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
82
96
|
svgFill: 'surfaceTertiary',
|
|
83
97
|
svgPathFill: 'surfaceItemQuaternary',
|
|
84
98
|
},
|
|
85
99
|
};
|
|
86
100
|
|
|
101
|
+
var responseAppearanceDanger = {
|
|
102
|
+
danger: {
|
|
103
|
+
fill: 'surfacePrimary',
|
|
104
|
+
titleTextColor: 'surfaceTextPrimary',
|
|
105
|
+
titleTextSize: 'xxl',
|
|
106
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
107
|
+
descTextSize: 'm',
|
|
108
|
+
primaryButtonAppearance: 'dangerPrimary sizeXXL solid',
|
|
109
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
110
|
+
svgFill: 'dangerPrimary',
|
|
111
|
+
svgPathFill: 'dangerItemPrimary',
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
|
|
87
115
|
var responseAppearanceError = {
|
|
88
116
|
error: {
|
|
89
117
|
fill: 'surfacePrimary',
|
|
@@ -91,8 +119,8 @@ var responseAppearanceError = {
|
|
|
91
119
|
titleTextSize: 'xxl',
|
|
92
120
|
labelTextColor: 'surfaceTextPrimary',
|
|
93
121
|
descTextSize: 'm',
|
|
94
|
-
primaryButtonAppearance: 'errorPrimary sizeXXL',
|
|
95
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
122
|
+
primaryButtonAppearance: 'errorPrimary sizeXXL solid',
|
|
123
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
96
124
|
svgFill: 'errorPrimary',
|
|
97
125
|
svgPathFill: 'errorItemPrimary',
|
|
98
126
|
},
|
|
@@ -105,10 +133,10 @@ var responseAppearanceSuccess = {
|
|
|
105
133
|
titleTextSize: 'xxl',
|
|
106
134
|
labelTextColor: 'surfaceTextPrimary',
|
|
107
135
|
descTextSize: 'm',
|
|
136
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
137
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
108
138
|
svgFill: 'accentPrimary',
|
|
109
139
|
svgPathFill: 'accentItemPrimary',
|
|
110
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
111
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
112
140
|
},
|
|
113
141
|
};
|
|
114
142
|
|
|
@@ -119,8 +147,8 @@ var responseAppearanceUnableLoadData = {
|
|
|
119
147
|
titleTextSize: 'xxl',
|
|
120
148
|
labelTextColor: 'surfaceTextPrimary',
|
|
121
149
|
descTextSize: 'm',
|
|
122
|
-
primaryButtonAppearance: 'accentPrimary sizeXXL',
|
|
123
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
150
|
+
primaryButtonAppearance: 'accentPrimary sizeXXL solid',
|
|
151
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
124
152
|
svgFill: 'surfaceTertiary',
|
|
125
153
|
svgPathFill: 'surfaceItemQuaternary',
|
|
126
154
|
},
|
|
@@ -133,14 +161,14 @@ var responseAppearanceWarning = {
|
|
|
133
161
|
titleTextSize: 'xxl',
|
|
134
162
|
labelTextColor: 'surfaceTextPrimary',
|
|
135
163
|
descTextSize: 'm',
|
|
136
|
-
primaryButtonAppearance: 'warningPrimary sizeXXL',
|
|
137
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL',
|
|
164
|
+
primaryButtonAppearance: 'warningPrimary sizeXXL solid',
|
|
165
|
+
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid',
|
|
138
166
|
svgFill: 'warningPrimary',
|
|
139
167
|
svgPathFill: 'warningItemPrimary',
|
|
140
168
|
},
|
|
141
169
|
};
|
|
142
170
|
|
|
143
|
-
var responseAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, responseAppearanceConfirm), responseAppearanceRefresh), responseAppearanceUnableLoadData), responseAppearanceNothingFound), responseAppearanceFail), responseAppearanceError), responseAppearanceSuccess), responseAppearanceWarning);
|
|
171
|
+
var responseAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, responseAppearanceConfirm), responseAppearanceEmpty), responseAppearanceDanger), responseAppearanceRefresh), responseAppearanceUnableLoadData), responseAppearanceNothingFound), responseAppearanceFail), responseAppearanceError), responseAppearanceSuccess), responseAppearanceWarning);
|
|
144
172
|
|
|
145
173
|
var responseConfig = {
|
|
146
174
|
appearance: responseAppearance,
|
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
border-radius: var(--modal-sheet-bottom-container-border-radius) !important;
|
|
6
6
|
}
|
|
7
7
|
&__header {
|
|
8
|
-
height: 32px;
|
|
8
|
+
min-height: 32px;
|
|
9
|
+
padding: 0 16px;
|
|
9
10
|
& .react-modal-sheet-header {
|
|
10
11
|
max-height: 32px;
|
|
11
12
|
}
|
|
12
13
|
& .react-modal-sheet-drag-indicator {
|
|
13
14
|
background-color: var(
|
|
14
15
|
--modal-sheet-bottom-header-grabber,
|
|
15
|
-
|
|
16
|
+
#000
|
|
16
17
|
) !important;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
@@ -5,10 +5,10 @@ declare const responseAppearanceConfirm: {
|
|
|
5
5
|
titleTextSize: string;
|
|
6
6
|
labelTextColor: string;
|
|
7
7
|
descTextSize: string;
|
|
8
|
-
svgFill: string;
|
|
9
|
-
svgPathFill: string;
|
|
10
8
|
primaryButtonAppearance: string;
|
|
11
9
|
secondaryButtonAppearance: string;
|
|
10
|
+
svgFill: string;
|
|
11
|
+
svgPathFill: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export { responseAppearanceConfirm };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const responseAppearanceEmpty: {
|
|
2
|
+
empty: {
|
|
3
|
+
fill: string;
|
|
4
|
+
titleTextColor: string;
|
|
5
|
+
titleTextSize: string;
|
|
6
|
+
labelTextColor: string;
|
|
7
|
+
descTextSize: string;
|
|
8
|
+
primaryButtonAppearance: string;
|
|
9
|
+
secondaryButtonAppearance: string;
|
|
10
|
+
svgFill: string;
|
|
11
|
+
svgPathFill: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export { responseAppearanceEmpty };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const responseAppearanceDanger: {
|
|
2
|
+
danger: {
|
|
3
|
+
fill: string;
|
|
4
|
+
titleTextColor: string;
|
|
5
|
+
titleTextSize: string;
|
|
6
|
+
labelTextColor: string;
|
|
7
|
+
descTextSize: string;
|
|
8
|
+
primaryButtonAppearance: string;
|
|
9
|
+
secondaryButtonAppearance: string;
|
|
10
|
+
svgFill: string;
|
|
11
|
+
svgPathFill: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export { responseAppearanceDanger };
|
|
@@ -5,10 +5,10 @@ declare const responseAppearanceSuccess: {
|
|
|
5
5
|
titleTextSize: string;
|
|
6
6
|
labelTextColor: string;
|
|
7
7
|
descTextSize: string;
|
|
8
|
-
svgFill: string;
|
|
9
|
-
svgPathFill: string;
|
|
10
8
|
primaryButtonAppearance: string;
|
|
11
9
|
secondaryButtonAppearance: string;
|
|
10
|
+
svgFill: string;
|
|
11
|
+
svgPathFill: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export { responseAppearanceSuccess };
|