intelicoreact 1.3.64 → 1.3.65
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/Atomic/FormElements/Dropdown/Dropdown.js +1 -1
- package/dist/Atomic/FormElements/Dropdown/Dropdown.scss +1 -1
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +1 -1
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.scss +1 -1
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +1 -1
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.scss +1 -1
- package/dist/Atomic/UI/Modal/ModalMobile.scss +1 -1
- package/dist/Functions/useIsMobile.js +3 -3
- package/dist/Molecular/InputAddress/InputAddress.scss +1 -1
- package/package.json +1 -1
- package/dist/Atomic/UI/ModalBackup/Modal.js +0 -149
- package/dist/Atomic/UI/ModalBackup/Modal.scss +0 -333
- package/dist/Atomic/UI/ModalBackup/ModalHOC.js +0 -42
- package/dist/Atomic/UI/ModalBackup/partials/ModalFooter.js +0 -19
- package/dist/Atomic/UI/ModalBackup/partials/ModalTitle.js +0 -37
|
@@ -52,7 +52,7 @@ const Dropdown = _ref => {
|
|
|
52
52
|
const {
|
|
53
53
|
isMobile: isMobileProp
|
|
54
54
|
} = (0, _useIsMobile.default)();
|
|
55
|
-
const isMobile = isMobileProp && withMobileLogic && window.screen.width
|
|
55
|
+
const isMobile = isMobileProp && withMobileLogic && window.screen.width <= 768;
|
|
56
56
|
const [dropdownId, setDropdownId] = (0, _react.useState)(id || fieldKey || Math.random().toString(16).slice(2));
|
|
57
57
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
58
58
|
const [searchValue, setSearchValue] = (0, _react.useState)();
|
|
@@ -46,7 +46,7 @@ const DropdownLiveSearch = _ref => {
|
|
|
46
46
|
const {
|
|
47
47
|
isMobile: isMobileProp
|
|
48
48
|
} = (0, _useIsMobile.default)();
|
|
49
|
-
const isMobile = isMobileProp && withMobileLogic && window.screen.width
|
|
49
|
+
const isMobile = isMobileProp && withMobileLogic && window.screen.width <= 768;
|
|
50
50
|
const labelByValue = (0, _react.useMemo)(() => {
|
|
51
51
|
var _options$find;
|
|
52
52
|
return (options === null || options === void 0 || (_options$find = options.find(item => item.value === value)) === null || _options$find === void 0 ? void 0 : _options$find.label) || "";
|
|
@@ -64,7 +64,7 @@ const TagsDropdown = _ref => {
|
|
|
64
64
|
const {
|
|
65
65
|
isMobile: isMobileProp
|
|
66
66
|
} = (0, _useIsMobile.default)();
|
|
67
|
-
const isMobile = isMobileProp && withMobileLogic && window.screen.width
|
|
67
|
+
const isMobile = isMobileProp && withMobileLogic && window.screen.width <= 768;
|
|
68
68
|
const [dropdownId, setDropdownId] = (0, _react.useState)(id || fieldKey || Math.random().toString(16).slice(2));
|
|
69
69
|
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
70
70
|
const [searchValue, setSearchValue] = (0, _react.useState)("");
|
|
@@ -7,10 +7,10 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
9
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
-
const useIsMobile =
|
|
10
|
+
const useIsMobile = function () {
|
|
11
11
|
let {
|
|
12
12
|
isWithoutWidthCheck = false
|
|
13
|
-
} =
|
|
13
|
+
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14
14
|
const getIsMobile = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
15
15
|
const [isMobile, setIsMobile] = (0, _react.useState)(getIsMobile());
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ const useIsMobile = _ref => {
|
|
|
20
20
|
}, [navigator.userAgent]);
|
|
21
21
|
return {
|
|
22
22
|
...navigator,
|
|
23
|
-
isMobile: isMobile && (isWithoutWidthCheck || window.screen.width
|
|
23
|
+
isMobile: isMobile && (isWithoutWidthCheck || window.screen.width <= 768)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
var _default = exports.default = useIsMobile;
|
package/package.json
CHANGED
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.renderModalTitle = exports.default = exports.KEY_CODE = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _reactFeather = require("react-feather");
|
|
12
|
-
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
13
|
-
require("./Modal.scss");
|
|
14
|
-
var _ModalFooter = _interopRequireDefault(require("./partials/ModalFooter"));
|
|
15
|
-
var _ModalTitle = _interopRequireDefault(require("./partials/ModalTitle"));
|
|
16
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
-
const KEY_CODE = exports.KEY_CODE = Object.freeze({
|
|
19
|
-
ENTER: 13,
|
|
20
|
-
ESC: 27
|
|
21
|
-
});
|
|
22
|
-
const renderModalTitle = _ref => {
|
|
23
|
-
let {
|
|
24
|
-
mode,
|
|
25
|
-
title,
|
|
26
|
-
onlyTitle
|
|
27
|
-
} = _ref;
|
|
28
|
-
if (mode && mode !== 'default' && !onlyTitle) return "".concat(mode[0].toUpperCase() + mode.slice(1), " ").concat(title);
|
|
29
|
-
return title;
|
|
30
|
-
};
|
|
31
|
-
exports.renderModalTitle = renderModalTitle;
|
|
32
|
-
const Modal = _ref2 => {
|
|
33
|
-
let {
|
|
34
|
-
zIndex = 100,
|
|
35
|
-
isOpen,
|
|
36
|
-
onConfirm,
|
|
37
|
-
onDecline,
|
|
38
|
-
closeModal,
|
|
39
|
-
children,
|
|
40
|
-
className,
|
|
41
|
-
title,
|
|
42
|
-
variant,
|
|
43
|
-
onlyTitle,
|
|
44
|
-
mode,
|
|
45
|
-
size,
|
|
46
|
-
atributesForModalBody = {},
|
|
47
|
-
confirmBtnClassName,
|
|
48
|
-
confirmBtnLabel,
|
|
49
|
-
confirmBtnVariant = 'primary',
|
|
50
|
-
confirmBtnDisable,
|
|
51
|
-
confirmBtnIcon,
|
|
52
|
-
isConfirmBtnIconPositionRight,
|
|
53
|
-
noConfirmBtn,
|
|
54
|
-
noCloseBtn,
|
|
55
|
-
noFooter,
|
|
56
|
-
noHeader,
|
|
57
|
-
closeBtnClassName,
|
|
58
|
-
closeBtnText,
|
|
59
|
-
closeBtnVariant,
|
|
60
|
-
closeBtnDisable,
|
|
61
|
-
closeBtnIcon,
|
|
62
|
-
forced,
|
|
63
|
-
btnClassNames,
|
|
64
|
-
isCloseBtnIconPositionRight,
|
|
65
|
-
submitOnEnter = false,
|
|
66
|
-
closeOnEsc = false,
|
|
67
|
-
leftContentOfFooter,
|
|
68
|
-
testId,
|
|
69
|
-
noHeaderCloseBtn
|
|
70
|
-
} = _ref2;
|
|
71
|
-
if (!isOpen) return null;
|
|
72
|
-
const handle = {
|
|
73
|
-
confirm: () => {
|
|
74
|
-
onConfirm === null || onConfirm === void 0 || onConfirm();
|
|
75
|
-
},
|
|
76
|
-
decline: () => {
|
|
77
|
-
//? closeModal используется для ESC и оверлея, давно хотелось иметь возможность разделить
|
|
78
|
-
//? Теперь можно не передавать closeModal, а для cancel-кнопки передать отдельный обработчик
|
|
79
|
-
if (typeof onDecline === 'function') onDecline();else closeModal === null || closeModal === void 0 || closeModal();
|
|
80
|
-
},
|
|
81
|
-
pressEnter: event => {
|
|
82
|
-
if (event.keyCode === KEY_CODE.ENTER && !event.repeat) handle.confirm();
|
|
83
|
-
},
|
|
84
|
-
pressEsc: () => {
|
|
85
|
-
if (event.keyCode === KEY_CODE.ESC && !event.repeat) closeModal === null || closeModal === void 0 || closeModal();
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
(0, _react.useEffect)(() => {
|
|
89
|
-
if (submitOnEnter) document.addEventListener('keyup', handle.pressEnter);
|
|
90
|
-
if (closeOnEsc) document.addEventListener('keyup', handle.pressEsc);
|
|
91
|
-
return () => {
|
|
92
|
-
document.removeEventListener('keyup', handle.pressEnter);
|
|
93
|
-
document.removeEventListener('keyup', handle.pressEsc);
|
|
94
|
-
};
|
|
95
|
-
}, [submitOnEnter, closeOnEsc]);
|
|
96
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
97
|
-
style: {
|
|
98
|
-
zIndex
|
|
99
|
-
},
|
|
100
|
-
"data-testid": testId,
|
|
101
|
-
className: "modal-box j5"
|
|
102
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
103
|
-
"data-testid": 'modal-closeOverlay',
|
|
104
|
-
className: isOpen ? 'modal-overlay' : 'hidden',
|
|
105
|
-
onClick: closeModal
|
|
106
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
-
style: {
|
|
108
|
-
width: size
|
|
109
|
-
},
|
|
110
|
-
className: (0, _classnames.default)(className, "".concat(isOpen ? 'modal' : 'hidden'))
|
|
111
|
-
}, !noHeader && /*#__PURE__*/_react.default.createElement(_ModalTitle.default, {
|
|
112
|
-
variant: variant,
|
|
113
|
-
isForced: forced,
|
|
114
|
-
onClose: handle.decline,
|
|
115
|
-
noHeaderCloseBtn: noHeaderCloseBtn
|
|
116
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, renderModalTitle({
|
|
117
|
-
mode,
|
|
118
|
-
title,
|
|
119
|
-
onlyTitle
|
|
120
|
-
}))), /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, atributesForModalBody, {
|
|
121
|
-
className: (0, _classnames.default)('modal__body', {
|
|
122
|
-
'modal__body--no-footer': noFooter
|
|
123
|
-
})
|
|
124
|
-
}), children), !noFooter && /*#__PURE__*/_react.default.createElement(_ModalFooter.default, {
|
|
125
|
-
className: leftContentOfFooter ? 'modal__footer_with-left-content' : ''
|
|
126
|
-
}, leftContentOfFooter, /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
className: "modal__buttons-block"
|
|
128
|
-
}, !noCloseBtn && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
129
|
-
testId: "modal",
|
|
130
|
-
className: (0, _classnames.default)(closeBtnClassName, btnClassNames),
|
|
131
|
-
variant: closeBtnVariant || 'dark-outline',
|
|
132
|
-
onClick: () => handle.decline(),
|
|
133
|
-
label: closeBtnText || 'Cancel',
|
|
134
|
-
disabled: closeBtnDisable,
|
|
135
|
-
icon: closeBtnIcon,
|
|
136
|
-
isIconRight: isCloseBtnIconPositionRight,
|
|
137
|
-
tabIndex: 1
|
|
138
|
-
}), !noConfirmBtn && /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
139
|
-
testId: "modal",
|
|
140
|
-
onClick: () => handle.confirm(),
|
|
141
|
-
label: confirmBtnLabel || (mode === null || mode === void 0 ? void 0 : mode[0].toUpperCase()) + (mode === null || mode === void 0 ? void 0 : mode.slice(1)) || 'Apply',
|
|
142
|
-
className: (0, _classnames.default)('ml5', confirmBtnClassName, btnClassNames),
|
|
143
|
-
variant: confirmBtnVariant,
|
|
144
|
-
disabled: confirmBtnDisable,
|
|
145
|
-
icon: confirmBtnIcon,
|
|
146
|
-
isIconRight: isConfirmBtnIconPositionRight
|
|
147
|
-
})))));
|
|
148
|
-
};
|
|
149
|
-
var _default = exports.default = Modal;
|
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
@import "../../../scss/_vars";
|
|
2
|
-
@import "../../../scss/mixins";
|
|
3
|
-
|
|
4
|
-
.modal-overlay {
|
|
5
|
-
position: fixed;
|
|
6
|
-
z-index: 4;
|
|
7
|
-
top: 0;
|
|
8
|
-
left: 0;
|
|
9
|
-
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
|
|
13
|
-
transition: opacity 0.2s ease;
|
|
14
|
-
|
|
15
|
-
opacity: 0.5;
|
|
16
|
-
background-color: black;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.modal {
|
|
20
|
-
--modal-min-height: 300px;
|
|
21
|
-
--max-height: calc(100% - 30px);
|
|
22
|
-
|
|
23
|
-
position: relative;
|
|
24
|
-
z-index: 5;
|
|
25
|
-
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
|
|
29
|
-
width: 600px;
|
|
30
|
-
min-height: var(--modal-min-height);
|
|
31
|
-
max-height: var(--max-height);
|
|
32
|
-
margin: 0 10px;
|
|
33
|
-
|
|
34
|
-
border-radius: 6px;
|
|
35
|
-
background-color: #FFF;
|
|
36
|
-
box-shadow: 0 20px 20px rgb(0 0 0 / 20%);
|
|
37
|
-
|
|
38
|
-
&__header {
|
|
39
|
-
position: relative;
|
|
40
|
-
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
justify-content: space-between;
|
|
44
|
-
|
|
45
|
-
padding: 10px 15px;
|
|
46
|
-
|
|
47
|
-
border-bottom: 1px solid #E2E5EC;
|
|
48
|
-
border-top-left-radius: 4px;
|
|
49
|
-
border-top-right-radius: 4px;
|
|
50
|
-
background-color: #F7FAFC;
|
|
51
|
-
|
|
52
|
-
&-primary {
|
|
53
|
-
background-color: $color--primary;
|
|
54
|
-
|
|
55
|
-
&-title {
|
|
56
|
-
color: #ffffff;
|
|
57
|
-
|
|
58
|
-
font-size: 16px;
|
|
59
|
-
font-weight: 400;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&-title {
|
|
64
|
-
color: $color--primary;
|
|
65
|
-
|
|
66
|
-
font-size: 16px;
|
|
67
|
-
font-weight: normal;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__body {
|
|
72
|
-
box-sizing: border-box;
|
|
73
|
-
overflow-y: auto;
|
|
74
|
-
|
|
75
|
-
flex-grow: 1;
|
|
76
|
-
padding: 15px;
|
|
77
|
-
|
|
78
|
-
border-bottom-right-radius: 4px;
|
|
79
|
-
border-bottom-left-radius: 4px;
|
|
80
|
-
background-color: #F7FAFC;
|
|
81
|
-
&:first-of-type {
|
|
82
|
-
border-top-right-radius: 4px;
|
|
83
|
-
border-top-left-radius: 4px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
@include custom-scroll2;
|
|
87
|
-
|
|
88
|
-
&--no-footer {
|
|
89
|
-
padding: 15px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&__footer {
|
|
94
|
-
display: flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: flex-end;
|
|
97
|
-
|
|
98
|
-
padding: 7.5px 15px;
|
|
99
|
-
|
|
100
|
-
border-top: 1px solid #E2E5EC;
|
|
101
|
-
border-bottom-right-radius: 4px;
|
|
102
|
-
border-bottom-left-radius: 4px;
|
|
103
|
-
background-color: #F7FAFC;
|
|
104
|
-
|
|
105
|
-
&_with-left-content {
|
|
106
|
-
justify-content: space-between;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&--inbody {
|
|
110
|
-
position: absolute;
|
|
111
|
-
bottom: 0;
|
|
112
|
-
left: 0;
|
|
113
|
-
|
|
114
|
-
width: calc(100% - 30px);
|
|
115
|
-
|
|
116
|
-
background-color: #FFFF;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&__buttons-block {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
flex-flow: row nowrap;
|
|
124
|
-
justify-content: flex-start;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.modal__footer--noborder {
|
|
129
|
-
border-top: none;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.modal-box {
|
|
133
|
-
position: fixed;
|
|
134
|
-
z-index: 100;
|
|
135
|
-
top: 0;
|
|
136
|
-
right: 0;
|
|
137
|
-
bottom: 0;
|
|
138
|
-
left: 0;
|
|
139
|
-
|
|
140
|
-
animation-name: fadeIn;
|
|
141
|
-
animation-duration: 0.25s;
|
|
142
|
-
animation-timing-function: ease;
|
|
143
|
-
animation-fill-mode: forwards;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
@keyframes fadeIn {
|
|
147
|
-
from {
|
|
148
|
-
opacity: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
to {
|
|
152
|
-
opacity: 1;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.consumer-info-modal {
|
|
157
|
-
overflow-x: auto;
|
|
158
|
-
|
|
159
|
-
.button-fin {
|
|
160
|
-
background-color: #FFFF;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.modal__body {
|
|
164
|
-
min-height: 200px;
|
|
165
|
-
padding: 0 15px;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.modal-close-icon-box {
|
|
170
|
-
position: absolute;
|
|
171
|
-
top: 0;
|
|
172
|
-
right: 0;
|
|
173
|
-
|
|
174
|
-
display: flex;
|
|
175
|
-
align-items: center;
|
|
176
|
-
justify-content: center;
|
|
177
|
-
|
|
178
|
-
width: 40px;
|
|
179
|
-
height: 38px;
|
|
180
|
-
height: 100%;
|
|
181
|
-
|
|
182
|
-
cursor: pointer;
|
|
183
|
-
|
|
184
|
-
color: #1E1E2D;
|
|
185
|
-
//background-color: inherit;
|
|
186
|
-
border-top-right-radius: 5px;
|
|
187
|
-
background: transparent;
|
|
188
|
-
|
|
189
|
-
&:hover {
|
|
190
|
-
background-color: #E2E5EC;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
&-primary {
|
|
194
|
-
color: #1E1E2D;
|
|
195
|
-
|
|
196
|
-
&:hover {
|
|
197
|
-
opacity: 1;
|
|
198
|
-
background-color: #5162D4;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&-merchant {
|
|
203
|
-
color: #1E1E2D;
|
|
204
|
-
|
|
205
|
-
&:hover {
|
|
206
|
-
opacity: 1;
|
|
207
|
-
background-color: #5162D4;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.modal-close-icon {
|
|
213
|
-
width: 20px;
|
|
214
|
-
min-width: 20px;
|
|
215
|
-
height: 20px;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.modal-text-card {
|
|
219
|
-
padding: 15px 0;
|
|
220
|
-
|
|
221
|
-
text-align: left;
|
|
222
|
-
white-space: normal;
|
|
223
|
-
|
|
224
|
-
font-size: 13px;
|
|
225
|
-
font-weight: 400;
|
|
226
|
-
line-height: 20px;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.prompt-text-card {
|
|
230
|
-
padding: 0;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.included-selector-modal {
|
|
234
|
-
&--box {
|
|
235
|
-
overflow-x: auto;
|
|
236
|
-
|
|
237
|
-
max-height: calc(100% - 32px);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
&__th {
|
|
241
|
-
&--id {
|
|
242
|
-
width: 1%;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&__td {
|
|
247
|
-
&--id {
|
|
248
|
-
color: #9AA0B9;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.simple-table {
|
|
253
|
-
overflow-x: unset;
|
|
254
|
-
|
|
255
|
-
min-height: 400px;
|
|
256
|
-
max-height: 500px;
|
|
257
|
-
|
|
258
|
-
thead {
|
|
259
|
-
background-color: unset;
|
|
260
|
-
|
|
261
|
-
th {
|
|
262
|
-
padding: 10px 15px;
|
|
263
|
-
|
|
264
|
-
border-right: 1px solid #E2E5EC;
|
|
265
|
-
|
|
266
|
-
font-weight: 400;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
th:first-child,
|
|
270
|
-
th:last-child {
|
|
271
|
-
border: none;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
tbody {
|
|
276
|
-
tr:first-child {
|
|
277
|
-
position: relative;
|
|
278
|
-
|
|
279
|
-
&::after {
|
|
280
|
-
position: absolute;
|
|
281
|
-
top: 0;
|
|
282
|
-
left: 0;
|
|
283
|
-
|
|
284
|
-
width: 100%;
|
|
285
|
-
height: 8px;
|
|
286
|
-
|
|
287
|
-
content: "";
|
|
288
|
-
|
|
289
|
-
background: linear-gradient(180deg, rgb(0 0 0 / 15.2%) 0%, rgb(0 0 0 / 0%) 100%);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
tr:last-child {
|
|
294
|
-
border-bottom: none;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
td {
|
|
299
|
-
padding: 2.25px 15px;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.tr-as-selector:hover td {
|
|
303
|
-
background-color: #FFEDC8;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.reports-settings-modal-box {
|
|
309
|
-
.modal__body {
|
|
310
|
-
padding: 0;
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.confirm-modal {
|
|
315
|
-
border-radius: 4px;
|
|
316
|
-
|
|
317
|
-
.modal {
|
|
318
|
-
&__header-title {
|
|
319
|
-
font-size: 13px;
|
|
320
|
-
font-weight: 700;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
&__body {
|
|
324
|
-
.modal-text-card {
|
|
325
|
-
padding: 0;
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
&__footer {
|
|
330
|
-
background-color: #FFFF;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var _reactFeather = require("react-feather");
|
|
11
|
-
require("./Modal.scss");
|
|
12
|
-
var _Modal2 = require("./Modal");
|
|
13
|
-
var _ModalTitle = _interopRequireDefault(require("./partials/ModalTitle"));
|
|
14
|
-
const Modal = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
zIndex = 100,
|
|
17
|
-
isOpen,
|
|
18
|
-
closeModal,
|
|
19
|
-
children,
|
|
20
|
-
className,
|
|
21
|
-
size,
|
|
22
|
-
testId
|
|
23
|
-
} = _ref;
|
|
24
|
-
if (!isOpen) return null;
|
|
25
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
26
|
-
style: {
|
|
27
|
-
zIndex
|
|
28
|
-
},
|
|
29
|
-
"data-testid": testId,
|
|
30
|
-
className: "modal-box j5"
|
|
31
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
-
"data-testid": 'modal-closeOverlay',
|
|
33
|
-
className: "modal-overlay",
|
|
34
|
-
onClick: closeModal
|
|
35
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
-
style: {
|
|
37
|
-
width: size
|
|
38
|
-
},
|
|
39
|
-
className: (0, _classnames.default)(className, 'modal')
|
|
40
|
-
}, children));
|
|
41
|
-
};
|
|
42
|
-
var _default = exports.default = Modal;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
const ModalFooter = _ref => {
|
|
11
|
-
let {
|
|
12
|
-
className = '',
|
|
13
|
-
children
|
|
14
|
-
} = _ref;
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
16
|
-
className: (0, _classnames.default)('modal__footer', className)
|
|
17
|
-
}, children);
|
|
18
|
-
};
|
|
19
|
-
var _default = exports.default = ModalFooter;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var _reactFeather = require("react-feather");
|
|
11
|
-
const ModalTitle = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
variant = 'primary',
|
|
14
|
-
children,
|
|
15
|
-
isForced,
|
|
16
|
-
onClose,
|
|
17
|
-
noHeaderCloseBtn
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
20
|
-
className: (0, _classnames.default)('modal__header', {
|
|
21
|
-
["modal__header-".concat(variant)]: variant
|
|
22
|
-
})
|
|
23
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
24
|
-
className: (0, _classnames.default)('modal__header-title', {
|
|
25
|
-
["modal__header-".concat(variant, "-title")]: variant
|
|
26
|
-
})
|
|
27
|
-
}, children), !isForced && /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
-
"data-testid": 'modal--button-closeCross',
|
|
29
|
-
onClick: onClose,
|
|
30
|
-
className: (0, _classnames.default)('modal-close-icon-box', {
|
|
31
|
-
'modal-close-icon-box-primary': variant === 'primary'
|
|
32
|
-
})
|
|
33
|
-
}, !noHeaderCloseBtn && /*#__PURE__*/_react.default.createElement(_reactFeather.X, {
|
|
34
|
-
className: "modal-close-icon"
|
|
35
|
-
})));
|
|
36
|
-
};
|
|
37
|
-
var _default = exports.default = ModalTitle;
|