@xaypay/tui 0.0.61 → 0.0.63
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/index.es.js +518 -209
- package/dist/index.js +414 -84
- package/package.json +3 -2
- package/src/assets/icons/toaster-close.svg +3 -0
- package/src/assets/icons/toaster-error.svg +3 -0
- package/src/assets/icons/toaster-info.svg +3 -0
- package/src/assets/icons/toaster-success.svg +3 -0
- package/src/assets/icons/toaster-warning.svg +3 -0
- package/src/components/file/index.js +9 -6
- package/src/components/icon/Arrow.js +19 -0
- package/src/components/icon/CheckboxChecked.js +21 -0
- package/src/components/icon/CheckboxUnchecked.js +21 -0
- package/src/components/icon/CloseIcon.js +19 -0
- package/src/components/icon/ToasterClose.js +19 -0
- package/src/components/icon/ToasterError.js +19 -0
- package/src/components/icon/ToasterInfo.js +19 -0
- package/src/components/icon/ToasterSuccess.js +19 -0
- package/src/components/icon/ToasterWarning.js +19 -0
- package/src/components/icon/Tooltip.js +19 -0
- package/src/components/icon/index.js +10 -6
- package/src/components/input/index.js +3 -1
- package/src/components/input/input.stories.js +5 -0
- package/src/components/select/index.js +24 -9
- package/src/components/select/select.module.css +3 -2
- package/src/components/toaster/Toast.js +179 -0
- package/src/components/toaster/index.js +72 -0
- package/src/components/toaster/toaster.module.css +188 -0
- package/src/components/toaster/toaster.stories.js +296 -0
- package/src/index.js +2 -1
- package/src/stories/configuration.stories.mdx +16 -0
- package/src/stories/static/select-usage.png +0 -0
- package/src/stories/static/toaster-container-usage.png +0 -0
- package/src/stories/static/toaster-usage.png +0 -0
- package/src/stories/usage.stories.mdx +16 -1
- package/src/components/icon/LikeFilled.js +0 -24
- package/src/components/icon/LikeOutline.js +0 -24
- package/src/components/icon/StarFilled.js +0 -24
- package/src/components/icon/StarOutline.js +0 -24
package/dist/index.js
CHANGED
|
@@ -6,13 +6,34 @@ var React = require('react');
|
|
|
6
6
|
var PropTypes = require('prop-types');
|
|
7
7
|
var classnames = require('classnames');
|
|
8
8
|
var styled = require('styled-components');
|
|
9
|
+
var ReactDOM = require('react-dom');
|
|
9
10
|
|
|
10
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
12
|
|
|
13
|
+
function _interopNamespace(e) {
|
|
14
|
+
if (e && e.__esModule) return e;
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
Object.keys(e).forEach(function (k) {
|
|
18
|
+
if (k !== 'default') {
|
|
19
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
20
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return e[k]; }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
n["default"] = e;
|
|
28
|
+
return Object.freeze(n);
|
|
29
|
+
}
|
|
30
|
+
|
|
12
31
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
13
33
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
14
34
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
15
35
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
36
|
+
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
16
37
|
|
|
17
38
|
function styleInject(css, ref) {
|
|
18
39
|
if ( ref === void 0 ) ref = {};
|
|
@@ -41,12 +62,12 @@ function styleInject(css, ref) {
|
|
|
41
62
|
}
|
|
42
63
|
}
|
|
43
64
|
|
|
44
|
-
var css_248z$
|
|
45
|
-
var styles$
|
|
46
|
-
styleInject(css_248z$
|
|
65
|
+
var css_248z$d = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{bottom:0;display:block;height:190px;left:0;margin:auto;max-height:190px;position:absolute;right:0;top:0;width:auto}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
|
|
66
|
+
var styles$c = {"file-form-wrap":"file-module_file-form-wrap__qY--B","file-form":"file-module_file-form__l13d5","active":"file-module_active__L1gPt","delete-upload-icon":"file-module_delete-upload-icon__PWN66","file-form-inner-upload":"file-module_file-form-inner-upload__tq3Dn","upload-info":"file-module_upload-info__a8GFs","upload-info-txt":"file-module_upload-info-txt__l11uN","default":"file-module_default__t7KU0","error":"file-module_error__H-M4Z","accept":"file-module_accept__WTW6V","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
|
|
67
|
+
styleInject(css_248z$d);
|
|
47
68
|
|
|
48
|
-
var css_248z$
|
|
49
|
-
styleInject(css_248z$
|
|
69
|
+
var css_248z$c = "";
|
|
70
|
+
styleInject(css_248z$c);
|
|
50
71
|
|
|
51
72
|
const File = ({
|
|
52
73
|
name,
|
|
@@ -109,16 +130,16 @@ const File = ({
|
|
|
109
130
|
document.querySelector(`.${name}`).value = "";
|
|
110
131
|
};
|
|
111
132
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
112
|
-
className: `${styles$
|
|
133
|
+
className: `${styles$c['file-form-title']} ile-form-title-rem`
|
|
113
134
|
}, label, " ", required && /*#__PURE__*/React__default["default"].createElement("sup", {
|
|
114
135
|
style: {
|
|
115
136
|
color: "#ee0000"
|
|
116
137
|
}
|
|
117
138
|
}, "*")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
118
|
-
className: classnames__default["default"](`${styles$
|
|
139
|
+
className: classnames__default["default"](`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
|
|
119
140
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
120
141
|
onChange: e => console.log(e),
|
|
121
|
-
className: `${styles$
|
|
142
|
+
className: `${styles$c['file-form']} file-form-rem ${errorMessage ? styles$c['error'] : ''}`,
|
|
122
143
|
onClick: () => document.querySelector(`.${name}`).click()
|
|
123
144
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
124
145
|
hidden: true,
|
|
@@ -127,23 +148,23 @@ const File = ({
|
|
|
127
148
|
disabled: disabled,
|
|
128
149
|
onChange: e => handleCheckFile(e)
|
|
129
150
|
}), image ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
130
|
-
className: `${styles$
|
|
151
|
+
className: `${styles$c['upload-file-content']} upload-file-content-rem`
|
|
131
152
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
132
153
|
src: image,
|
|
133
154
|
alt: fileName
|
|
134
155
|
})) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
135
|
-
className: `${styles$
|
|
156
|
+
className: `${styles$c['file-form-inner-upload']} ile-form-inner-upload-rem`
|
|
136
157
|
}, /*#__PURE__*/React__default["default"].createElement("img", {
|
|
137
158
|
src: "../../assets/upload.svg",
|
|
138
159
|
alt: ""
|
|
139
160
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
140
|
-
className: `${styles$
|
|
161
|
+
className: `${styles$c['upload-info']} upload-info-rem`
|
|
141
162
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
142
|
-
className: `${styles$
|
|
163
|
+
className: `${styles$c['upload-info-txt']} upload-info-txt-rem`
|
|
143
164
|
}, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
144
|
-
className: `${styles$
|
|
145
|
-
}, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
146
|
-
className: `${styles$
|
|
165
|
+
className: `${styles$c['upload-info-size']} upload-info-size-rem`
|
|
166
|
+
}, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), !disabled && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
167
|
+
className: `${styles$c['delete-upload-icon']} delete-upload-icon-rem`,
|
|
147
168
|
onClick: handleRemoveFile
|
|
148
169
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
149
170
|
className: "icon-delete"
|
|
@@ -170,9 +191,9 @@ File.defaultProps = {
|
|
|
170
191
|
fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
|
|
171
192
|
};
|
|
172
193
|
|
|
173
|
-
var css_248z$
|
|
174
|
-
var styles$
|
|
175
|
-
styleInject(css_248z$
|
|
194
|
+
var css_248z$b = ".table-module_table-wrap__KKAnM{background:#fff;border-radius:14px 14px 0 0;box-shadow:0 10px 30px rgba(0,35,106,.06);overflow:hidden;width:100%}.table-module_table-wrap__KKAnM:not(:first-child){margin-top:30px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:first-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:first-child{flex:0 0 auto;width:60px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(2),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(2){flex:0 0 auto;width:120px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(3),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(3){flex:0 0 auto;width:170px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(4),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(4){flex:0 0 auto;width:126px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(5),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(6),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(8),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(5),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(6),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(8){flex:0 0 auto;width:100px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:last-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:last-child{flex:0 0 auto;width:104px}.table-module_table-top__tfEKM{background:#00236a;height:44px;width:100%}.table-module_table-top__tfEKM .table-module_table-items__UpFg2{align-items:center;color:#fff;display:flex;flex:1 1;font-size:15px;justify-content:center;line-height:17px;text-align:center}.table-module_table-bottom-inner__0Pus0{background:#fff;min-height:40px;width:100%}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2{align-items:center;border-bottom:1px solid #eee;display:flex;flex:1 1;font-size:14px;justify-content:center;line-height:16px;padding:4px;text-align:center}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:not(:last-child){border-right:1px solid #eee}";
|
|
195
|
+
var styles$b = {"table-wrap":"table-module_table-wrap__KKAnM","table-bottom-inner":"table-module_table-bottom-inner__0Pus0","table-items":"table-module_table-items__UpFg2","table-top":"table-module_table-top__tfEKM"};
|
|
196
|
+
styleInject(css_248z$b);
|
|
176
197
|
|
|
177
198
|
function _extends() {
|
|
178
199
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -189,9 +210,9 @@ function _extends() {
|
|
|
189
210
|
return _extends.apply(this, arguments);
|
|
190
211
|
}
|
|
191
212
|
|
|
192
|
-
var css_248z$
|
|
193
|
-
var styles$
|
|
194
|
-
styleInject(css_248z$
|
|
213
|
+
var css_248z$a = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;bottom:0;display:inline-block;height:14px;left:0;margin:auto 4px auto auto;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
|
|
214
|
+
var styles$a = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
|
|
215
|
+
styleInject(css_248z$a);
|
|
195
216
|
|
|
196
217
|
const Checkbox = ({
|
|
197
218
|
disabled,
|
|
@@ -206,7 +227,7 @@ const Checkbox = ({
|
|
|
206
227
|
onClick,
|
|
207
228
|
...props
|
|
208
229
|
}) => {
|
|
209
|
-
const classProps = classnames__default["default"](styles$
|
|
230
|
+
const classProps = classnames__default["default"](styles$a.checkbox, className, 'checkbox-input-rem');
|
|
210
231
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
211
232
|
const [data, setData] = React.useState(parseData);
|
|
212
233
|
React.useEffect(() => {
|
|
@@ -239,7 +260,7 @@ const Checkbox = ({
|
|
|
239
260
|
} : '';
|
|
240
261
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, data.map(element => {
|
|
241
262
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
242
|
-
className: `${styles$
|
|
263
|
+
className: `${styles$a["checkbox-wrap"]} checkbox-wrap-rem`,
|
|
243
264
|
key: element.value
|
|
244
265
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
245
266
|
type: "checkbox",
|
|
@@ -253,9 +274,9 @@ const Checkbox = ({
|
|
|
253
274
|
onClick: onClick ? onClick : () => {},
|
|
254
275
|
defaultChecked: element.checked
|
|
255
276
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
256
|
-
className: `${styles$
|
|
277
|
+
className: `${styles$a["checkmark"]} checkmark-rem`
|
|
257
278
|
}), element[keyNames.label] ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
258
|
-
className: styles$
|
|
279
|
+
className: styles$a.labelCheckbox,
|
|
259
280
|
for: element[keyNames.id]
|
|
260
281
|
}, element[keyNames.label]) : "");
|
|
261
282
|
}));
|
|
@@ -297,23 +318,23 @@ const Table = ({
|
|
|
297
318
|
return true;
|
|
298
319
|
} : "";
|
|
299
320
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
300
|
-
className: `${styles$
|
|
321
|
+
className: `${styles$b["table-wrap"]} table-wrap-rem`
|
|
301
322
|
}, config.isHeader && hearderData.map((header, key) => {
|
|
302
323
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
303
|
-
className: `${styles$
|
|
324
|
+
className: `${styles$b["table-top"]} table-top-rem`,
|
|
304
325
|
key: key
|
|
305
326
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
306
|
-
className: `${styles$
|
|
327
|
+
className: `${styles$b["table-items"]} table-items-rem`
|
|
307
328
|
}, header));
|
|
308
329
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
309
|
-
className: `${styles$
|
|
330
|
+
className: `${styles$b["table-bottom"]} table-bottom-rem`
|
|
310
331
|
}, tbodyData.map((item, key) => {
|
|
311
332
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
312
|
-
className: `${styles$
|
|
333
|
+
className: `${styles$b["table-bottom-inner"]} table-bottom-inner-rem`,
|
|
313
334
|
key: key
|
|
314
335
|
}, keyNames.map((keyName, keyNameKey) => {
|
|
315
336
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
316
|
-
className: `${styles$
|
|
337
|
+
className: `${styles$b["table-items"]} table-items-rem`,
|
|
317
338
|
key: keyNameKey
|
|
318
339
|
}, config.isCheckbox && config.isCheckbox.showCheckbox && config.isCheckbox.showCheckbox(item) && keyNameKey == 0 && /*#__PURE__*/React__default["default"].createElement(Checkbox, {
|
|
319
340
|
onClick: e => {
|
|
@@ -329,7 +350,7 @@ const Table = ({
|
|
|
329
350
|
className: keyName.icon
|
|
330
351
|
}), item[keyName.name]));
|
|
331
352
|
}), actions && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
332
|
-
className: `${styles$
|
|
353
|
+
className: `${styles$b["table-items"]} table-items-rem`
|
|
333
354
|
}, actions.filter(a => a.show && a.show(item) || a.show === undefined).map((action, key) => {
|
|
334
355
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
335
356
|
key: key
|
|
@@ -365,9 +386,9 @@ Table.defaultProps = {
|
|
|
365
386
|
hearderData: []
|
|
366
387
|
};
|
|
367
388
|
|
|
368
|
-
var css_248z$
|
|
369
|
-
var styles$
|
|
370
|
-
styleInject(css_248z$
|
|
389
|
+
var css_248z$9 = ".modal-module_modal-wrap__IsXXf{background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;width:100%;z-index:9}.modal-module_modal-top__ntDBi{background:#fbfbfb;box-sizing:border-box;display:flex;flex-direction:row;height:44px;padding:4px 10px 4px 0;width:100%}.modal-module_modal-title__r-WKl{align-items:center;color:#3c393e;display:flex;flex:1 1;font-size:20px;font-weight:500;line-height:24px;padding-right:20px}.modal-module_close-btn__Qf2UD{cursor:pointer;flex:0 0 auto;width:24px}.modal-module_close-btn__Qf2UD,.modal-module_modal-section__Bp8jN{align-items:center;display:flex;height:100%;justify-content:center}.modal-module_modal-section__Bp8jN{flex:1 1;padding:10px 0;width:100%}.modal-module_modal-content__1F-uE{align-items:center;animation:modal-module_show-popup__WrH7a .24s;background:#fff;border-radius:8px;display:flex;flex-direction:column;height:auto;left:0;margin:auto;min-height:130px;overflow:hidden;padding:10px;position:absolute;right:0;top:110px;width:fit-content}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
|
|
390
|
+
var styles$9 = {"modal-wrap":"modal-module_modal-wrap__IsXXf","modal-top":"modal-module_modal-top__ntDBi","modal-title":"modal-module_modal-title__r-WKl","close-btn":"modal-module_close-btn__Qf2UD","modal-section":"modal-module_modal-section__Bp8jN","modal-content":"modal-module_modal-content__1F-uE","show-popup":"modal-module_show-popup__WrH7a"};
|
|
391
|
+
styleInject(css_248z$9);
|
|
371
392
|
|
|
372
393
|
const _ = require('lodash');
|
|
373
394
|
const compereConfigs = () => {
|
|
@@ -497,42 +518,42 @@ const Modal = ({
|
|
|
497
518
|
selected,
|
|
498
519
|
children
|
|
499
520
|
}) => {
|
|
500
|
-
classnames__default["default"](styles$
|
|
521
|
+
classnames__default["default"](styles$9.modal, className);
|
|
501
522
|
const [select, setSelect] = React.useState(selected);
|
|
502
523
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
503
|
-
className: `${styles$
|
|
524
|
+
className: `${styles$9["modal-wrap"]} modal-wrap-rem`,
|
|
504
525
|
onClick: () => setShow(false)
|
|
505
526
|
}, type == "content" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
506
|
-
className: `${styles$
|
|
527
|
+
className: `${styles$9["modal-content"]} modal-content-rem`,
|
|
507
528
|
onClick: e => {
|
|
508
529
|
e.stopPropagation();
|
|
509
530
|
}
|
|
510
531
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
511
|
-
className: `${styles$
|
|
532
|
+
className: `${styles$9["modal-top"]} modal-top-rem`
|
|
512
533
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
513
|
-
className: `${styles$
|
|
534
|
+
className: `${styles$9["modal-title"]} modal-title-rem`
|
|
514
535
|
}, /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
515
536
|
variant: TypographyType.p,
|
|
516
537
|
color: "#00236A"
|
|
517
538
|
}, headerText)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
518
|
-
className: `${styles$
|
|
539
|
+
className: `${styles$9["close-btn"]} close-btn-rem`,
|
|
519
540
|
onClick: () => setShow(false)
|
|
520
541
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
521
542
|
className: "icon-close"
|
|
522
543
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
523
|
-
className: `${styles$
|
|
544
|
+
className: `${styles$9["modal-section"]} modal-section-rem`
|
|
524
545
|
}, children)) : type == "images" ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
525
|
-
className: `${styles$
|
|
546
|
+
className: `${styles$9["modal-content"]} modal-content-rem`,
|
|
526
547
|
onClick: e => {
|
|
527
548
|
e.stopPropagation();
|
|
528
549
|
}
|
|
529
550
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
530
|
-
className: `${styles$
|
|
551
|
+
className: `${styles$9["close-btn"]} close-btn-rem`,
|
|
531
552
|
onClick: () => setShow(false)
|
|
532
553
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
533
554
|
className: "icon-close"
|
|
534
555
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
535
|
-
className: `${styles$
|
|
556
|
+
className: `${styles$9["modal-section"]} modal-section-rem`
|
|
536
557
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, select > 1 ? /*#__PURE__*/React__default["default"].createElement("h1", {
|
|
537
558
|
onClick: () => setSelect(select - 1)
|
|
538
559
|
}, "-") : null, data.map(elem => {
|
|
@@ -558,9 +579,9 @@ Modal.propTypes = {
|
|
|
558
579
|
data: PropTypes__default["default"].array
|
|
559
580
|
};
|
|
560
581
|
|
|
561
|
-
var css_248z$
|
|
562
|
-
var styles$
|
|
563
|
-
styleInject(css_248z$
|
|
582
|
+
var css_248z$8 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
|
|
583
|
+
var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k"};
|
|
584
|
+
styleInject(css_248z$8);
|
|
564
585
|
|
|
565
586
|
const InputTypes = {
|
|
566
587
|
TEL: 'tel',
|
|
@@ -592,6 +613,7 @@ const Input = ({
|
|
|
592
613
|
errorLeft,
|
|
593
614
|
errorSize,
|
|
594
615
|
labelSize,
|
|
616
|
+
maxLength,
|
|
595
617
|
labelColor,
|
|
596
618
|
errorColor,
|
|
597
619
|
placeholder,
|
|
@@ -646,9 +668,9 @@ const Input = ({
|
|
|
646
668
|
setIsHover(false);
|
|
647
669
|
};
|
|
648
670
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
649
|
-
className: `${styles$
|
|
671
|
+
className: `${styles$8["input-wrap"]}`
|
|
650
672
|
}, label ? /*#__PURE__*/React__default["default"].createElement("label", {
|
|
651
|
-
className: `${styles$
|
|
673
|
+
className: `${styles$8["input-title"]}`,
|
|
652
674
|
style: {
|
|
653
675
|
color: labelColor ? labelColor : configStyles.INPUT.labelColor,
|
|
654
676
|
fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
|
|
@@ -662,7 +684,7 @@ const Input = ({
|
|
|
662
684
|
color: "#ee0000"
|
|
663
685
|
}
|
|
664
686
|
}, "*")) : '', /*#__PURE__*/React__default["default"].createElement("div", {
|
|
665
|
-
className: `${styles$
|
|
687
|
+
className: `${styles$8["input-content"]}`,
|
|
666
688
|
style: {
|
|
667
689
|
width: width ? width : configStyles.INPUT.width,
|
|
668
690
|
borderRadius: radius ? radius : configStyles.INPUT.radius,
|
|
@@ -700,7 +722,7 @@ const Input = ({
|
|
|
700
722
|
backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
|
|
701
723
|
}
|
|
702
724
|
}, "+374") : '', /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
|
|
703
|
-
value: value,
|
|
725
|
+
value: maxLength && value && value.length > maxLength ? value.substr(0, maxLength) : value,
|
|
704
726
|
className: classProps,
|
|
705
727
|
onChange: handleChange,
|
|
706
728
|
type: show ? 'text' : type,
|
|
@@ -771,6 +793,7 @@ Input.propTypes = {
|
|
|
771
793
|
errorSize: PropTypes__default["default"].string,
|
|
772
794
|
errorLeft: PropTypes__default["default"].string,
|
|
773
795
|
labelSize: PropTypes__default["default"].string,
|
|
796
|
+
maxLength: PropTypes__default["default"].number,
|
|
774
797
|
errorColor: PropTypes__default["default"].string,
|
|
775
798
|
labelColor: PropTypes__default["default"].string,
|
|
776
799
|
placeholder: PropTypes__default["default"].string,
|
|
@@ -800,9 +823,9 @@ Input.defaultProps = {
|
|
|
800
823
|
type: "text"
|
|
801
824
|
};
|
|
802
825
|
|
|
803
|
-
var css_248z$
|
|
804
|
-
var styles$
|
|
805
|
-
styleInject(css_248z$
|
|
826
|
+
var css_248z$7 = ".radio-module_radio-wrap__-lO7V{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.radio-module_radio-wrap__-lO7V>input{height:0;opacity:0;position:absolute;width:0}.radio-module_radio-wrap__-lO7V .radio-module_radio-checkmark__Kvol0{border:1px solid #d9d9d9;border-radius:50%;display:inline-block;height:14px;left:0;margin-right:4px;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.radio-module_radio-wrap__-lO7V>.radio-module_radio-checkmark__Kvol0:after{background-color:#d9d9d9;border-radius:50%;bottom:0;content:\"\";height:8px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;transition:opacity .24s,background-color .24s;width:8px}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0:after{background-color:#1890ff;opacity:1}.radio-module_radio-wrap__-lO7V:hover input~.radio-module_radio-checkmark__Kvol0:after{opacity:1}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0{border-color:#1890ff}";
|
|
827
|
+
var styles$7 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
|
|
828
|
+
styleInject(css_248z$7);
|
|
806
829
|
|
|
807
830
|
const Radio = ({
|
|
808
831
|
disabled,
|
|
@@ -816,11 +839,11 @@ const Radio = ({
|
|
|
816
839
|
keyNames,
|
|
817
840
|
...props
|
|
818
841
|
}) => {
|
|
819
|
-
const classProps = classnames__default["default"](styles$
|
|
842
|
+
const classProps = classnames__default["default"](styles$7.checkbox, className);
|
|
820
843
|
const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
|
|
821
844
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, parseData.map((element, id) => {
|
|
822
845
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
823
|
-
className: `${styles$
|
|
846
|
+
className: `${styles$7["radio-wrap"]} radio-wrap-rem`,
|
|
824
847
|
key: element.value
|
|
825
848
|
}, /*#__PURE__*/React__default["default"].createElement("input", _extends({
|
|
826
849
|
type: "radio",
|
|
@@ -831,9 +854,9 @@ const Radio = ({
|
|
|
831
854
|
value: value ? value : element.value,
|
|
832
855
|
name: name ? name : element.name
|
|
833
856
|
}, props)), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
834
|
-
className: `${styles$
|
|
857
|
+
className: `${styles$7["radio-checkmark"]} radio-checkmark-rem`
|
|
835
858
|
}), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
|
|
836
|
-
className: styles$
|
|
859
|
+
className: styles$7.labelRadio
|
|
837
860
|
}, label ? label : element.label) : "");
|
|
838
861
|
}));
|
|
839
862
|
};
|
|
@@ -969,13 +992,45 @@ SelectCheckbox.propTypes = {
|
|
|
969
992
|
checked: PropTypes__default["default"].bool
|
|
970
993
|
};
|
|
971
994
|
|
|
972
|
-
|
|
995
|
+
const SvgArrow = ({
|
|
996
|
+
title,
|
|
997
|
+
titleId,
|
|
998
|
+
...props
|
|
999
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1000
|
+
width: "1em",
|
|
1001
|
+
height: "1em",
|
|
1002
|
+
viewBox: "0 0 15 9",
|
|
1003
|
+
fill: "none",
|
|
1004
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1005
|
+
"aria-labelledby": titleId
|
|
1006
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1007
|
+
id: titleId
|
|
1008
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1009
|
+
d: "M7.988 8a.997.997 0 0 1-.64-.23l-5.989-5a1.002 1.002 0 0 1 .548-1.767.998.998 0 0 1 .73.227l5.35 4.48 5.351-4.32a.997.997 0 0 1 1.408.15 1 1 0 0 1-.14 1.46l-5.99 4.83a.997.997 0 0 1-.628.17Z",
|
|
1010
|
+
fill: "#3C393E"
|
|
1011
|
+
}));
|
|
973
1012
|
|
|
974
|
-
|
|
1013
|
+
const SvgCloseIcon = ({
|
|
1014
|
+
title,
|
|
1015
|
+
titleId,
|
|
1016
|
+
...props
|
|
1017
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1018
|
+
width: "1em",
|
|
1019
|
+
height: "1em",
|
|
1020
|
+
viewBox: "0 0 14 14",
|
|
1021
|
+
fill: "none",
|
|
1022
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1023
|
+
"aria-labelledby": titleId
|
|
1024
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1025
|
+
id: titleId
|
|
1026
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1027
|
+
d: "m12.425.241.006-.005a.95.95 0 0 1 1.34 1.34l-.005.006-5.38 5.38 5.38 5.38.005.007a.95.95 0 0 1-1.34 1.34l-.006-.005-5.38-5.38-5.378 5.37a.951.951 0 1 1-1.34-1.341l5.377-5.37-5.38-5.388-.005-.006a.95.95 0 0 1 1.34-1.34l.006.005 5.38 5.387 5.38-5.38Z",
|
|
1028
|
+
fill: "#3C393E"
|
|
1029
|
+
}));
|
|
975
1030
|
|
|
976
|
-
var css_248z$
|
|
977
|
-
var styles$
|
|
978
|
-
styleInject(css_248z$
|
|
1031
|
+
var css_248z$6 = ".select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
|
|
1032
|
+
var styles$6 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
|
|
1033
|
+
styleInject(css_248z$6);
|
|
979
1034
|
|
|
980
1035
|
const Select = ({
|
|
981
1036
|
options,
|
|
@@ -1090,6 +1145,14 @@ const Select = ({
|
|
|
1090
1145
|
e.target.style.color = optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor;
|
|
1091
1146
|
e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor;
|
|
1092
1147
|
};
|
|
1148
|
+
const isObjectEmpty = obj => {
|
|
1149
|
+
for (var key in obj) {
|
|
1150
|
+
if (obj.hasOwnProperty(key)) {
|
|
1151
|
+
return false;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
return true;
|
|
1155
|
+
};
|
|
1093
1156
|
React.useEffect(() => {
|
|
1094
1157
|
if (opened) {
|
|
1095
1158
|
const checkIfClickedOutside = e => {
|
|
@@ -1104,7 +1167,7 @@ const Select = ({
|
|
|
1104
1167
|
}
|
|
1105
1168
|
}, [opened]);
|
|
1106
1169
|
React.useEffect(() => {
|
|
1107
|
-
selected && selected.length > 0 && setNewSelected(selected);
|
|
1170
|
+
selected && selected.length > 0 && setNewSelected(isObjectEmpty(selected[0]) ? [] : selected);
|
|
1108
1171
|
if (!multiple) {
|
|
1109
1172
|
options && options.length > 0 && setExistOptions(options);
|
|
1110
1173
|
} else {
|
|
@@ -1141,7 +1204,7 @@ const Select = ({
|
|
|
1141
1204
|
}, "*")) : "", /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1142
1205
|
ref: ref
|
|
1143
1206
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1144
|
-
className: styles$
|
|
1207
|
+
className: styles$6['select-content']
|
|
1145
1208
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1146
1209
|
style: {
|
|
1147
1210
|
cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
|
|
@@ -1159,9 +1222,9 @@ const Select = ({
|
|
|
1159
1222
|
onClick: disabled ? _ => _ : _ => handleOpenClose(),
|
|
1160
1223
|
onMouseEnter: disabled ? _ => _ : _ => handleMouseEnter(),
|
|
1161
1224
|
onMouseLeave: disabled ? _ => _ : _ => handleMouseLeave(),
|
|
1162
|
-
className: `${styles$
|
|
1225
|
+
className: `${styles$6['select-content-top']}`
|
|
1163
1226
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1164
|
-
className: `${styles$
|
|
1227
|
+
className: `${styles$6['select-content-top-text']}`,
|
|
1165
1228
|
style: {
|
|
1166
1229
|
color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor
|
|
1167
1230
|
}
|
|
@@ -1174,34 +1237,28 @@ const Select = ({
|
|
|
1174
1237
|
}
|
|
1175
1238
|
}
|
|
1176
1239
|
}) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1177
|
-
className: `${styles$
|
|
1178
|
-
}, multiple && newSelected.length > 1 && /*#__PURE__*/React__default["default"].createElement("span", null, newSelected.length), newSelected && newSelected.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1179
|
-
className: `${styles$
|
|
1240
|
+
className: `${styles$6['select-content-top-icon']}`
|
|
1241
|
+
}, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default["default"].createElement("span", null, newSelected.length), !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1242
|
+
className: `${styles$6['close-icon']}`,
|
|
1180
1243
|
onClick: disabled ? _ => _ : handleClearSelect,
|
|
1181
1244
|
style: {
|
|
1182
1245
|
marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
|
|
1183
1246
|
}
|
|
1184
|
-
}, closeIcon ? closeIcon : /*#__PURE__*/React__default["default"].createElement("
|
|
1185
|
-
src: ReactCloseIcon,
|
|
1186
|
-
alt: "icon"
|
|
1187
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1247
|
+
}, closeIcon ? closeIcon : /*#__PURE__*/React__default["default"].createElement(SvgCloseIcon, null)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1188
1248
|
style: {
|
|
1189
1249
|
transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
1190
1250
|
},
|
|
1191
|
-
className: `${styles$
|
|
1192
|
-
}, arrowIcon ? arrowIcon : /*#__PURE__*/React__default["default"].createElement("
|
|
1193
|
-
src: ReactArrowIcon,
|
|
1194
|
-
alt: "icon"
|
|
1195
|
-
})))), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1251
|
+
className: `${styles$6['arrow-icon']}`
|
|
1252
|
+
}, arrowIcon ? arrowIcon : /*#__PURE__*/React__default["default"].createElement(SvgArrow, null)))), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1196
1253
|
style: {
|
|
1197
1254
|
boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
|
|
1198
1255
|
borderRadius: optionsBorderRadius ? optionsBorderRadius : configStyles.SELECT.optionsBorderRadius,
|
|
1199
1256
|
backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
|
|
1200
|
-
top: parseFloat(selectedMinHeight
|
|
1257
|
+
top: selectedMinHeight ? selectedMinHeight.includes('rem') ? parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 3)) + 0.6 + 'rem' : parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 2)) + 6 + 'px' : configStyles.SELECT.selectedMinHeight.includes('rem') ? parseFloat(configStyles.SELECT.selectedMinHeight.substr(0, configStyles.SELECT.selectedMinHeight - 3)) + 0.6 + 'rem' : parseFloat(configStyles.SELECT.selectedMinHeight.substr(0, configStyles.SELECT.selectedMinHeight - 2)) + 6 + 'px'
|
|
1201
1258
|
},
|
|
1202
|
-
className: `${styles$
|
|
1259
|
+
className: `${styles$6['select-content-bottom']}`
|
|
1203
1260
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1204
|
-
className: `${styles$
|
|
1261
|
+
className: `${styles$6['select-content-bottom-inner']}`
|
|
1205
1262
|
}, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
|
|
1206
1263
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1207
1264
|
key: i,
|
|
@@ -1210,7 +1267,7 @@ const Select = ({
|
|
|
1210
1267
|
onClick: disabled ? _ => _ : _ => handleSelectItem(option),
|
|
1211
1268
|
onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
|
|
1212
1269
|
onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
|
|
1213
|
-
className: `${styles$
|
|
1270
|
+
className: `${styles$6['select-content-bottom-row']}`,
|
|
1214
1271
|
style: {
|
|
1215
1272
|
color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
|
|
1216
1273
|
cursor: optionItemCursor ? optionItemCursor : configStyles.SELECT.optionItemCursor,
|
|
@@ -1287,6 +1344,277 @@ Select.propTypes = {
|
|
|
1287
1344
|
optionItemBackgroudColorHover: PropTypes__default["default"].string
|
|
1288
1345
|
};
|
|
1289
1346
|
|
|
1347
|
+
const SvgToasterInfo = ({
|
|
1348
|
+
title,
|
|
1349
|
+
titleId,
|
|
1350
|
+
...props
|
|
1351
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1352
|
+
width: "1em",
|
|
1353
|
+
height: "1em",
|
|
1354
|
+
viewBox: "0 0 24 24",
|
|
1355
|
+
fill: "none",
|
|
1356
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1357
|
+
"aria-labelledby": titleId
|
|
1358
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1359
|
+
id: titleId
|
|
1360
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1361
|
+
d: "M12 18c.34 0 .625-.115.856-.346.23-.23.345-.515.344-.854v-4.83c0-.34-.115-.62-.346-.84A1.19 1.19 0 0 0 12 10.8c-.34 0-.625.115-.856.346-.23.23-.345.515-.344.854v4.83c0 .34.115.62.346.84.23.22.515.33.854.33Zm0-9.6c.34 0 .625-.115.856-.346.23-.23.345-.515.344-.854 0-.34-.115-.625-.346-.856A1.157 1.157 0 0 0 12 6c-.34 0-.625.115-.856.346-.23.23-.345.515-.344.854 0 .34.115.625.346.856.23.23.515.345.854.344ZM12 24c-1.66 0-3.22-.315-4.68-.946a12.137 12.137 0 0 1-3.81-2.564 12.11 12.11 0 0 1-2.564-3.81C.316 15.22 0 13.66 0 12c0-1.66.315-3.22.946-4.68.63-1.46 1.485-2.73 2.564-3.81A12.11 12.11 0 0 1 7.32.946C8.78.316 10.34 0 12 0c1.66 0 3.22.315 4.68.946 1.46.63 2.73 1.485 3.81 2.564a12.127 12.127 0 0 1 2.566 3.81c.63 1.46.945 3.02.944 4.68 0 1.66-.315 3.22-.946 4.68a12.137 12.137 0 0 1-2.564 3.81 12.127 12.127 0 0 1-3.81 2.566c-1.46.63-3.02.945-4.68.944Z",
|
|
1362
|
+
fill: "#00236A"
|
|
1363
|
+
}));
|
|
1364
|
+
|
|
1365
|
+
const SvgToasterError = ({
|
|
1366
|
+
title,
|
|
1367
|
+
titleId,
|
|
1368
|
+
...props
|
|
1369
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1370
|
+
width: "1em",
|
|
1371
|
+
height: "1em",
|
|
1372
|
+
viewBox: "0 0 24 24",
|
|
1373
|
+
fill: "none",
|
|
1374
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1375
|
+
"aria-labelledby": titleId
|
|
1376
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1377
|
+
id: titleId
|
|
1378
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1379
|
+
d: "M12 0a12 12 0 1 1 0 24 12 12 0 0 1 0-24Zm0 16a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm0-11a1 1 0 0 0-.984.82L11 6v7l.016.18a1 1 0 0 0 1.968 0L13 13V6l-.016-.18A1 1 0 0 0 12 5Z",
|
|
1380
|
+
fill: "#E00"
|
|
1381
|
+
}));
|
|
1382
|
+
|
|
1383
|
+
const SvgToasterClose = ({
|
|
1384
|
+
title,
|
|
1385
|
+
titleId,
|
|
1386
|
+
...props
|
|
1387
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1388
|
+
width: "1em",
|
|
1389
|
+
height: "1em",
|
|
1390
|
+
viewBox: "0 0 18 18",
|
|
1391
|
+
fill: "none",
|
|
1392
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1393
|
+
"aria-labelledby": titleId
|
|
1394
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1395
|
+
id: titleId
|
|
1396
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1397
|
+
d: "m10.47 8.95 7.29-7.29A1 1 0 0 0 16.35.25L9.06 7.54 1.77.24A1 1 0 0 0 .36 1.65l7.29 7.3-7.3 7.29a.999.999 0 1 0 1.41 1.41l7.3-7.29 7.29 7.29a1 1 0 0 0 1.41-1.41l-7.29-7.29Z",
|
|
1398
|
+
fill: "#D1D1D1"
|
|
1399
|
+
}));
|
|
1400
|
+
|
|
1401
|
+
const SvgToasterWarning = ({
|
|
1402
|
+
title,
|
|
1403
|
+
titleId,
|
|
1404
|
+
...props
|
|
1405
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1406
|
+
width: "1em",
|
|
1407
|
+
height: "1em",
|
|
1408
|
+
viewBox: "0 0 24 21",
|
|
1409
|
+
fill: "none",
|
|
1410
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1411
|
+
"aria-labelledby": titleId
|
|
1412
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1413
|
+
id: titleId
|
|
1414
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1415
|
+
d: "M1.156 21a1.143 1.143 0 0 1-.994-.583 1.285 1.285 0 0 1-.16-.57c-.01-.204.043-.403.16-.597L10.978.583c.117-.194.268-.34.454-.437C11.616.049 11.806 0 12 0c.194 0 .384.049.57.146.185.097.336.243.452.437L23.838 19.25c.116.194.17.394.161.599a1.26 1.26 0 0 1-.161.568 1.14 1.14 0 0 1-.41.423 1.09 1.09 0 0 1-.584.16H1.156ZM12 17.5c.331 0 .61-.112.834-.336.224-.224.336-.5.335-.83 0-.331-.112-.608-.337-.832a1.128 1.128 0 0 0-.832-.335c-.331 0-.609.112-.834.336-.224.224-.336.5-.335.83 0 .33.112.608.337.832.224.224.502.336.832.335Zm0-3.5c.331 0 .61-.112.834-.336.224-.224.336-.5.335-.83v-3.5c0-.331-.112-.608-.337-.832A1.128 1.128 0 0 0 12 8.166c-.331 0-.609.112-.834.336-.224.224-.336.5-.335.83v3.5c0 .33.112.608.337.832.224.224.502.336.832.335Z",
|
|
1416
|
+
fill: "#FF8A00"
|
|
1417
|
+
}));
|
|
1418
|
+
|
|
1419
|
+
const SvgToasterSuccess = ({
|
|
1420
|
+
title,
|
|
1421
|
+
titleId,
|
|
1422
|
+
...props
|
|
1423
|
+
}) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1424
|
+
width: "1em",
|
|
1425
|
+
height: "1em",
|
|
1426
|
+
viewBox: "0 0 24 24",
|
|
1427
|
+
fill: "none",
|
|
1428
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1429
|
+
"aria-labelledby": titleId
|
|
1430
|
+
}, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
|
|
1431
|
+
id: titleId
|
|
1432
|
+
}, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
|
|
1433
|
+
d: "M12 0a12 12 0 1 1 0 24 12 12 0 0 1 0-24Zm-1.495 14.367L7.84 11.7a1.028 1.028 0 1 0-1.455 1.455l3.394 3.395a1.024 1.024 0 0 0 1.456 0l7.028-7.03a1.03 1.03 0 1 0-1.453-1.456l-6.304 6.303Z",
|
|
1434
|
+
fill: "#0DA574"
|
|
1435
|
+
}));
|
|
1436
|
+
|
|
1437
|
+
var css_248z$5 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}";
|
|
1438
|
+
var styles$5 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO"};
|
|
1439
|
+
styleInject(css_248z$5);
|
|
1440
|
+
|
|
1441
|
+
const ToasterType = {
|
|
1442
|
+
info: 'info',
|
|
1443
|
+
warn: 'warn',
|
|
1444
|
+
error: 'error',
|
|
1445
|
+
success: 'success'
|
|
1446
|
+
};
|
|
1447
|
+
const ToasterPosition = {
|
|
1448
|
+
topLeft: 'top-left',
|
|
1449
|
+
topRight: 'top-right',
|
|
1450
|
+
topCenter: 'top-center',
|
|
1451
|
+
bottomLeft: 'bottom-left',
|
|
1452
|
+
bottomRight: 'bottom-right',
|
|
1453
|
+
bottomCenter: 'bottom-center'
|
|
1454
|
+
};
|
|
1455
|
+
const Toast = ({
|
|
1456
|
+
type,
|
|
1457
|
+
title,
|
|
1458
|
+
timer,
|
|
1459
|
+
position,
|
|
1460
|
+
removeToast,
|
|
1461
|
+
description
|
|
1462
|
+
}) => {
|
|
1463
|
+
let timeoutCall;
|
|
1464
|
+
let timeoutClick;
|
|
1465
|
+
const ref = React.useRef(null);
|
|
1466
|
+
const [showToaster, setShowToaster] = React.useState(true);
|
|
1467
|
+
const handleToasterClick = e => {
|
|
1468
|
+
e.stopPropagation();
|
|
1469
|
+
};
|
|
1470
|
+
const handleCloseToaster = ref => {
|
|
1471
|
+
setShowToaster(false);
|
|
1472
|
+
timeoutClick = setTimeout(() => {
|
|
1473
|
+
removeToast(ref, position);
|
|
1474
|
+
}, 300);
|
|
1475
|
+
clearTimeout(timeoutCall);
|
|
1476
|
+
};
|
|
1477
|
+
React.useEffect(() => {
|
|
1478
|
+
timeoutCall = setTimeout(() => {
|
|
1479
|
+
handleCloseToaster(ref);
|
|
1480
|
+
}, timer);
|
|
1481
|
+
return () => {
|
|
1482
|
+
setShowToaster(true);
|
|
1483
|
+
clearTimeout(timeoutCall);
|
|
1484
|
+
clearTimeout(timeoutClick);
|
|
1485
|
+
};
|
|
1486
|
+
}, []);
|
|
1487
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1488
|
+
ref: ref,
|
|
1489
|
+
onClick: handleToasterClick,
|
|
1490
|
+
style: {
|
|
1491
|
+
position: 'absolute',
|
|
1492
|
+
display: 'flex',
|
|
1493
|
+
width: '440px',
|
|
1494
|
+
height: '83px',
|
|
1495
|
+
borderRadius: '40px',
|
|
1496
|
+
alignItems: 'center',
|
|
1497
|
+
boxSizing: 'border-box',
|
|
1498
|
+
backgroundColor: '#FFFFFF',
|
|
1499
|
+
border: '2px solid #EEEEEE',
|
|
1500
|
+
padding: '14px 29px 14px 12px',
|
|
1501
|
+
justifyContent: 'space-between'
|
|
1502
|
+
},
|
|
1503
|
+
className: `
|
|
1504
|
+
${styles$5['notify-block']}
|
|
1505
|
+
${position === 'top-left' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : position === 'top-right' ? showToaster ? styles$5['bounce-in-right'] : styles$5['bounce-out-right'] : position === 'top-center' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : position === 'bottom-left' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : position === 'bottom-right' ? showToaster ? styles$5['bounce-in-right'] : styles$5['bounce-out-right'] : position === 'bottom-center' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : ''}
|
|
1506
|
+
`
|
|
1507
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1508
|
+
style: {
|
|
1509
|
+
display: 'flex',
|
|
1510
|
+
width: '60px',
|
|
1511
|
+
height: '60px',
|
|
1512
|
+
borderRadius: '30px',
|
|
1513
|
+
alignItems: 'center',
|
|
1514
|
+
justifyContent: 'center',
|
|
1515
|
+
backgroundColor: type === 'info' ? 'rgba(0, 35, 106, 0.05)' : type === 'warn' ? 'rgba(255, 138, 0, 0.05)' : type === 'error' ? 'rgba(238, 0, 0, 0.05)' : type === 'success' ? 'rgba(13, 165, 116, 0.05)' : ''
|
|
1516
|
+
}
|
|
1517
|
+
}, type === 'info' ? /*#__PURE__*/React__default["default"].createElement(SvgToasterInfo, null) : type === 'warn' ? /*#__PURE__*/React__default["default"].createElement(SvgToasterWarning, null) : type === 'error' ? /*#__PURE__*/React__default["default"].createElement(SvgToasterError, null) : type === 'success' ? /*#__PURE__*/React__default["default"].createElement(SvgToasterSuccess, null) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1518
|
+
style: {
|
|
1519
|
+
height: '100%',
|
|
1520
|
+
width: 'calc(100% - 90px)'
|
|
1521
|
+
}
|
|
1522
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1523
|
+
style: {
|
|
1524
|
+
fontWeight: 600,
|
|
1525
|
+
color: '#3C393E',
|
|
1526
|
+
fontSize: '16px',
|
|
1527
|
+
lineHeight: '22px',
|
|
1528
|
+
fontStyle: 'normal',
|
|
1529
|
+
fontFamily: ''
|
|
1530
|
+
}
|
|
1531
|
+
}, title ? title.length > 25 ? title.substr(0, 25) + '...' : title : ''), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1532
|
+
style: {
|
|
1533
|
+
fontWeight: 500,
|
|
1534
|
+
color: '#3C393E',
|
|
1535
|
+
fontSize: '12px',
|
|
1536
|
+
lineHeight: '16px',
|
|
1537
|
+
fontStyle: 'normal',
|
|
1538
|
+
fontFamily: '',
|
|
1539
|
+
opacity: 0.8
|
|
1540
|
+
}
|
|
1541
|
+
}, description ? description.length > 120 ? description.substr(0, 120) + '...' : description : '')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1542
|
+
onClick: () => handleCloseToaster(ref),
|
|
1543
|
+
style: {
|
|
1544
|
+
width: '18px',
|
|
1545
|
+
height: '18px',
|
|
1546
|
+
cursor: 'pointer'
|
|
1547
|
+
}
|
|
1548
|
+
}, /*#__PURE__*/React__default["default"].createElement(SvgToasterClose, null)));
|
|
1549
|
+
};
|
|
1550
|
+
Toast.propTypes = {
|
|
1551
|
+
description: PropTypes__default["default"].string,
|
|
1552
|
+
title: PropTypes__default["default"].string.isRequired,
|
|
1553
|
+
timer: PropTypes__default["default"].number.isRequired,
|
|
1554
|
+
removeToast: PropTypes__default["default"].func.isRequired,
|
|
1555
|
+
type: PropTypes__default["default"].oneOf(Object.values(ToasterType)).isRequired,
|
|
1556
|
+
position: PropTypes__default["default"].oneOf(Object.values(ToasterPosition)).isRequired
|
|
1557
|
+
};
|
|
1558
|
+
|
|
1559
|
+
let toastify;
|
|
1560
|
+
const removeToast = (ref, position) => {
|
|
1561
|
+
const parent = document.getElementById(styles$5[position]);
|
|
1562
|
+
const node = ReactDOM__default["default"].findDOMNode(ref.current);
|
|
1563
|
+
const removeElem = node.parentNode;
|
|
1564
|
+
parent.removeChild(removeElem);
|
|
1565
|
+
if (!parent.hasChildNodes()) {
|
|
1566
|
+
toastify.removeChild(parent);
|
|
1567
|
+
}
|
|
1568
|
+
};
|
|
1569
|
+
const createToast = ({
|
|
1570
|
+
type,
|
|
1571
|
+
title,
|
|
1572
|
+
timer,
|
|
1573
|
+
position,
|
|
1574
|
+
description
|
|
1575
|
+
}) => {
|
|
1576
|
+
let toastParentBlock;
|
|
1577
|
+
const toastBlock = document.createElement('div');
|
|
1578
|
+
toastBlock.style.position = 'relative';
|
|
1579
|
+
toastBlock.style.flexShrink = 0;
|
|
1580
|
+
toastBlock.style.width = '440px';
|
|
1581
|
+
toastBlock.style.height = '83px';
|
|
1582
|
+
toastBlock.style.marginBottom = '20px';
|
|
1583
|
+
const newElem = /*#__PURE__*/React__default["default"].createElement(Toast, {
|
|
1584
|
+
type,
|
|
1585
|
+
timer,
|
|
1586
|
+
title,
|
|
1587
|
+
position,
|
|
1588
|
+
removeToast,
|
|
1589
|
+
description
|
|
1590
|
+
});
|
|
1591
|
+
ReactDOM__default["default"].render(newElem, toastBlock);
|
|
1592
|
+
if (!toastify) {
|
|
1593
|
+
toastify = document.getElementById('toastify');
|
|
1594
|
+
}
|
|
1595
|
+
if (!document.getElementById(styles$5[position])) {
|
|
1596
|
+
toastParentBlock = document.createElement('div');
|
|
1597
|
+
toastParentBlock.style.position = 'fixed';
|
|
1598
|
+
toastParentBlock.style.display = 'flex';
|
|
1599
|
+
toastParentBlock.style.zIndex = 99999;
|
|
1600
|
+
toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
|
|
1601
|
+
toastParentBlock.setAttribute('id', styles$5[position]);
|
|
1602
|
+
toastParentBlock.appendChild(toastBlock);
|
|
1603
|
+
toastify.appendChild(toastParentBlock);
|
|
1604
|
+
} else {
|
|
1605
|
+
document.getElementById(styles$5[position]).appendChild(toastBlock);
|
|
1606
|
+
}
|
|
1607
|
+
};
|
|
1608
|
+
const Toaster = () => {
|
|
1609
|
+
const handleToasterClick = e => {
|
|
1610
|
+
e.stopPropagation();
|
|
1611
|
+
};
|
|
1612
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1613
|
+
onClick: handleToasterClick,
|
|
1614
|
+
id: "toastify"
|
|
1615
|
+
});
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1290
1618
|
var ReactInfoIcon = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8 0C3.58214 0 0 3.58214 0 8C0 12.4179 3.58214 16 8 16C12.4179 16 16 12.4179 16 8C16 3.58214 12.4179 0 8 0ZM8.57143 11.8571C8.57143 11.9357 8.50714 12 8.42857 12H7.57143C7.49286 12 7.42857 11.9357 7.42857 11.8571V7C7.42857 6.92143 7.49286 6.85714 7.57143 6.85714H8.42857C8.50714 6.85714 8.57143 6.92143 8.57143 7V11.8571ZM8 5.71429C7.7757 5.70971 7.56213 5.61739 7.40513 5.45714C7.24812 5.2969 7.16018 5.08149 7.16018 4.85714C7.16018 4.6328 7.24812 4.41739 7.40513 4.25714C7.56213 4.0969 7.7757 4.00458 8 4C8.2243 4.00458 8.43787 4.0969 8.59488 4.25714C8.75189 4.41739 8.83982 4.6328 8.83982 4.85714C8.83982 5.08149 8.75189 5.2969 8.59488 5.45714C8.43787 5.61739 8.2243 5.70971 8 5.71429Z\" fill=\"#D1D1D1\"/>\n</svg>";
|
|
1291
1619
|
|
|
1292
1620
|
var css_248z$4 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
|
|
@@ -1796,6 +2124,8 @@ exports.Select = Select;
|
|
|
1796
2124
|
exports.SelectCheckbox = SelectCheckbox;
|
|
1797
2125
|
exports.Stepper = Stepper;
|
|
1798
2126
|
exports.Table = Table;
|
|
2127
|
+
exports.Toaster = Toaster;
|
|
1799
2128
|
exports.Tooltip = Tooltip;
|
|
1800
2129
|
exports.Typography = Typography;
|
|
1801
2130
|
exports.TypographyType = TypographyType;
|
|
2131
|
+
exports.createToast = createToast;
|