@xaypay/tui 0.0.76 → 0.0.77

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 CHANGED
@@ -65,9 +65,9 @@ function styleInject(css, ref) {
65
65
  }
66
66
  }
67
67
 
68
- var css_248z$e = ".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{display:block;height:auto;max-height:95%;object-fit:contain;width:27.8rem}.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)}";
69
- 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"};
70
- styleInject(css_248z$e);
68
+ 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{display:block;height:auto;max-height:95%;object-fit:contain;width:27.8rem}.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)}";
69
+ var styles$b = {"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"};
70
+ styleInject(css_248z$d);
71
71
 
72
72
  const File = ({
73
73
  name,
@@ -129,15 +129,15 @@ const File = ({
129
129
  document.querySelector(`.${name}`).value = "";
130
130
  };
131
131
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
132
- className: `${styles$c['file-form-title']} ile-form-title-rem`
132
+ className: `${styles$b['file-form-title']} ile-form-title-rem`
133
133
  }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
134
134
  style: {
135
135
  color: "#ee0000"
136
136
  }
137
137
  }, "*")), /*#__PURE__*/React__default.createElement("div", {
138
- className: classnames(`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
138
+ className: classnames(`${styles$b['file-form-wrap']} file-form-wrap-rem`, image ? styles$b['active'] : '')
139
139
  }, /*#__PURE__*/React__default.createElement("div", {
140
- className: `${styles$c['file-form']} file-form-rem ${error || errorMessage ? styles$c['error'] : ''}`,
140
+ className: `${styles$b['file-form']} file-form-rem ${error || errorMessage ? styles$b['error'] : ''}`,
141
141
  onClick: () => document.querySelector(`.${name}`).click()
142
142
  }, /*#__PURE__*/React__default.createElement("input", {
143
143
  hidden: true,
@@ -146,23 +146,23 @@ const File = ({
146
146
  disabled: disabled,
147
147
  onChange: e => handleCheckFile(e)
148
148
  }), image ? /*#__PURE__*/React__default.createElement("div", {
149
- className: `${styles$c['upload-file-content']} upload-file-content-rem`
149
+ className: `${styles$b['upload-file-content']} upload-file-content-rem`
150
150
  }, image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : /*#__PURE__*/React__default.createElement("img", {
151
151
  src: image,
152
152
  alt: fileName
153
153
  })) : /*#__PURE__*/React__default.createElement("div", {
154
- className: `${styles$c['file-form-inner-upload']} ile-form-inner-upload-rem`
154
+ className: `${styles$b['file-form-inner-upload']} ile-form-inner-upload-rem`
155
155
  }, /*#__PURE__*/React__default.createElement("img", {
156
156
  src: "../../assets/upload.svg",
157
157
  alt: ""
158
158
  }), /*#__PURE__*/React__default.createElement("span", {
159
- className: `${styles$c['upload-info']} upload-info-rem`
159
+ className: `${styles$b['upload-info']} upload-info-rem`
160
160
  }, /*#__PURE__*/React__default.createElement("span", {
161
- className: `${styles$c['upload-info-txt']} upload-info-txt-rem`
161
+ className: `${styles$b['upload-info-txt']} upload-info-txt-rem`
162
162
  }, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default.createElement("span", {
163
- className: `${styles$c['upload-info-size']} upload-info-size-rem`
163
+ className: `${styles$b['upload-info-size']} upload-info-size-rem`
164
164
  }, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), !disabled && /*#__PURE__*/React__default.createElement("div", {
165
- className: `${styles$c['delete-upload-icon']} delete-upload-icon-rem`,
165
+ className: `${styles$b['delete-upload-icon']} delete-upload-icon-rem`,
166
166
  onClick: handleRemoveFile
167
167
  }, /*#__PURE__*/React__default.createElement("i", {
168
168
  className: "icon-delete"
@@ -189,212 +189,38 @@ File.defaultProps = {
189
189
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
190
190
  };
191
191
 
192
- var css_248z$d = ".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}";
193
- 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"};
194
- styleInject(css_248z$d);
195
-
196
- var css_248z$c = ".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}";
197
- var styles$a = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
198
- styleInject(css_248z$c);
199
-
200
- const Checkbox = ({
201
- disabled,
202
- required,
203
- className,
204
- name,
205
- value,
206
- jsonData,
207
- onChange,
208
- label,
209
- keyNames,
210
- onClick,
211
- ...props
212
- }) => {
213
- const classProps = classnames(styles$a.checkbox, className, 'checkbox-input-rem');
214
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
215
- const [data, setData] = useState(parseData);
216
- useEffect(() => {
217
- const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
218
- setData(parseData);
219
- }, [jsonData]);
220
- useEffect(() => {
221
- onChange ? onChange(data.filter(d => d.checked)) : '';
222
- }, [data]);
223
- const handleChange = e => {
224
- let id;
225
- data.forEach((value, key) => {
226
- if (value[keyNames.value] === e.target.value) {
227
- id = key;
228
- }
229
- });
230
- let items = [...data];
231
- let item = {
232
- ...items[id]
233
- };
234
- item.checked = !item.checked;
235
- items[id] = item;
236
- setData(items);
237
- };
238
- !keyNames ? keyNames = {
239
- id: 'id',
240
- name: 'name',
241
- value: 'value',
242
- label: 'label'
243
- } : '';
244
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, data.map(element => {
245
- return /*#__PURE__*/React__default.createElement("label", {
246
- className: `${styles$a["checkbox-wrap"]} checkbox-wrap-rem`,
247
- key: element.value
248
- }, /*#__PURE__*/React__default.createElement("input", _extends({
249
- type: "checkbox",
250
- className: classProps,
251
- disabled: disabled,
252
- required: required,
253
- value: keyNames.value ? element[keyNames.value] : '',
254
- name: keyNames.name ? element[keyNames.name] : '',
255
- id: keyNames.id ? element[keyNames.id] : '',
256
- onChange: handleChange,
257
- onClick: onClick ? onClick : () => {},
258
- defaultChecked: element.checked
259
- }, props)), /*#__PURE__*/React__default.createElement("span", {
260
- className: `${styles$a["checkmark"]} checkmark-rem`
261
- }), element[keyNames.label] ? /*#__PURE__*/React__default.createElement("label", {
262
- className: styles$a.labelCheckbox,
263
- for: element[keyNames.id]
264
- }, element[keyNames.label]) : "");
265
- }));
266
- };
267
- Checkbox.propTypes = {
268
- className: PropTypes.string,
269
- onChange: PropTypes.func,
270
- onClick: PropTypes.func,
271
- required: PropTypes.bool,
272
- disabled: PropTypes.bool,
273
- name: PropTypes.string,
274
- value: PropTypes.string,
275
- jsonData: PropTypes.string,
276
- label: PropTypes.string,
277
- keyNames: PropTypes.object
278
- };
279
- Checkbox.defaultProps = {
280
- onChange: undefined,
281
- jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
282
- };
283
-
284
- const Table = ({
285
- className,
286
- onChange,
287
- config,
288
- jsonData,
289
- hearderData,
290
- keyNames,
291
- actions,
292
- ...props
293
- }) => {
294
- classnames(className);
295
- let tbodyData = jsonData.length ? JSON.parse(jsonData) : [];
296
- useEffect(() => {
297
- tbodyData = jsonData.length ? JSON.parse(jsonData) : [];
298
- }, [jsonData]);
299
- const [checked, setChecked] = useState(config.isCheckbox && config.isCheckbox.checked ? config.isCheckbox.checked : []);
300
- config.isCheckbox && config.isCheckbox.showCheckbox == undefined ? config.isCheckbox.showCheckbox = () => {
301
- return true;
302
- } : "";
303
- return /*#__PURE__*/React__default.createElement("div", {
304
- className: `${styles$b["table-wrap"]} table-wrap-rem`
305
- }, config.isHeader && hearderData.map((header, key) => {
306
- return /*#__PURE__*/React__default.createElement("div", {
307
- className: `${styles$b["table-top"]} table-top-rem`,
308
- key: key
309
- }, /*#__PURE__*/React__default.createElement("div", {
310
- className: `${styles$b["table-items"]} table-items-rem`
311
- }, header));
312
- }), /*#__PURE__*/React__default.createElement("div", {
313
- className: `${styles$b["table-bottom"]} table-bottom-rem`
314
- }, tbodyData.map((item, key) => {
315
- return /*#__PURE__*/React__default.createElement("div", {
316
- className: `${styles$b["table-bottom-inner"]} table-bottom-inner-rem`,
317
- key: key
318
- }, keyNames.map((keyName, keyNameKey) => {
319
- return /*#__PURE__*/React__default.createElement("div", {
320
- className: `${styles$b["table-items"]} table-items-rem`,
321
- key: keyNameKey
322
- }, config.isCheckbox && config.isCheckbox.showCheckbox && config.isCheckbox.showCheckbox(item) && keyNameKey == 0 && /*#__PURE__*/React__default.createElement(Checkbox, {
323
- onClick: e => {
324
- const id = e.target.id;
325
- const checkedValue = e.target.checked;
326
- let ch = [...checked];
327
- checkedValue ? ch.push(Number(id)) : ch.splice(ch.indexOf(id), 1);
328
- setChecked(ch);
329
- config.isCheckbox.onChange(ch);
330
- },
331
- jsonData: `[{"value":"", "name":"", "label":"", "id":${item.id}, "checked":${checked.indexOf(item.id) > -1 ? true : false}}]`
332
- }), typeof keyName === "string" ? item[keyName] : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("i", {
333
- className: keyName.icon
334
- }), item[keyName.name]));
335
- }), actions && /*#__PURE__*/React__default.createElement("div", {
336
- className: `${styles$b["table-items"]} table-items-rem`
337
- }, actions.filter(a => a.show && a.show(item) || a.show === undefined).map((action, key) => {
338
- return /*#__PURE__*/React__default.createElement("div", {
339
- key: key
340
- }, /*#__PURE__*/React__default.createElement("i", {
341
- className: action.icon,
342
- onClick: action.click ? action.click : () => {}
343
- }, action.icon));
344
- })));
345
- })));
346
- };
347
- Table.propTypes = {
348
- className: PropTypes.string,
349
- onChange: PropTypes.func,
350
- config: PropTypes.object,
351
- actions: PropTypes.arrayOf(PropTypes.object),
352
- jsonData: PropTypes.string,
353
- keyNames: PropTypes.arrayOf(PropTypes.oneOf([PropTypes.string, PropTypes.object])),
354
- hearderData: PropTypes.array
355
- };
356
- Table.defaultProps = {
357
- className: "",
358
- onChange: undefined,
359
- errorMessage: "",
360
- config: {
361
- isHeader: true,
362
- isCheckbox: {
363
- checked: []
364
- }
365
- },
366
- actions: [],
367
- jsonData: "",
368
- keyNames: [],
369
- hearderData: []
370
- };
371
-
372
192
  const _ = require('lodash');
373
193
  const compereConfigs = () => {
374
194
  let projectConfig = {};
375
- let packageConfig = {};
376
- try {
377
- packageConfig = require('../tui.config.js');
378
- } catch (e) {
379
- try {
380
- packageConfig = require('../../tui.config.js');
381
- } catch (err) {
382
- packageConfig = {};
383
- }
384
- }
195
+ let packageConfig = require(process.env.STORYBOOK_PATH);
385
196
  try {
386
- projectConfig = require('../../../../tui.config.js');
387
- } catch (error) {
388
- projectConfig = {};
389
- // console.log(error, 'Project: if you want to use custom styles, create tui.config.js file in your project root');
390
- }
391
-
197
+ projectConfig = require(`${process.env.STORYBOOK_CONFIG_PATH}`);
198
+ } catch (e) {}
392
199
  return _.merge(packageConfig, projectConfig);
393
200
  };
394
201
 
395
- var css_248z$b = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
396
- var styles$9 = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
397
- styleInject(css_248z$b);
202
+ ({
203
+ tableHeadItems: PropTypes.array,
204
+ tableBodyItems: PropTypes.array,
205
+ tHeadColor: PropTypes.string,
206
+ tHeadFamily: PropTypes.string,
207
+ tHeadPadding: PropTypes.string,
208
+ tHeadFontWeight: PropTypes.number,
209
+ tHeadBorderRadius: PropTypes.string,
210
+ tHeadBackgroundColor: PropTypes.string,
211
+ tBodyColor: PropTypes.string,
212
+ tBodyPadding: PropTypes.string,
213
+ tBodyFontSize: PropTypes.string,
214
+ tBodyTextAlign: PropTypes.string,
215
+ tBodyFontWeight: PropTypes.string,
216
+ tBodyFontFamily: PropTypes.string,
217
+ tBodyRowBorder: PropTypes.string,
218
+ tBodyMarginTop: PropTypes.string
219
+ });
220
+
221
+ var css_248z$c = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
222
+ var styles$a = {"animation__modal":"modal-module_animation__modal__3mt48","show-popup":"modal-module_show-popup__WrH7a"};
223
+ styleInject(css_248z$c);
398
224
 
399
225
  const SvgNext = ({
400
226
  title,
@@ -567,7 +393,7 @@ const Modal = ({
567
393
  height: '100vh'
568
394
  }
569
395
  }, /*#__PURE__*/React__default.createElement("div", {
570
- className: `${classProps} ${styles$9['animation__modal']}`,
396
+ className: `${classProps} ${styles$a['animation__modal']}`,
571
397
  onClick: handleStopClosing,
572
398
  style: {
573
399
  top: '0px',
@@ -721,9 +547,9 @@ Modal.defaultProps = {
721
547
  type: 'content'
722
548
  };
723
549
 
724
- var css_248z$a = ".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)}}";
725
- 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"};
726
- styleInject(css_248z$a);
550
+ var css_248z$b = ".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)}}";
551
+ var styles$9 = {"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"};
552
+ styleInject(css_248z$b);
727
553
 
728
554
  const InputTypes = {
729
555
  TEL: 'tel',
@@ -762,6 +588,7 @@ const Input = ({
762
588
  maxLength,
763
589
  labelColor,
764
590
  errorColor,
591
+ borderRight,
765
592
  placeholder,
766
593
  errorZindex,
767
594
  errorBottom,
@@ -779,9 +606,11 @@ const Input = ({
779
606
  labelLineHeight,
780
607
  backgroundColor,
781
608
  telErrorMessage,
609
+ borderRightColor,
782
610
  labelMarginBottom,
783
611
  regexpErrorMessage,
784
612
  phoneJustifyContent,
613
+ borderRightColorHover,
785
614
  errorAnimationDuration,
786
615
  ...props
787
616
  }) => {
@@ -884,9 +713,9 @@ const Input = ({
884
713
  }
885
714
  }, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage]);
886
715
  return /*#__PURE__*/React__default.createElement("div", {
887
- className: `${styles$8["input-wrap"]}`
716
+ className: `${styles$9["input-wrap"]}`
888
717
  }, label ? /*#__PURE__*/React__default.createElement("label", {
889
- className: `${styles$8["input-title"]}`,
718
+ className: `${styles$9["input-title"]}`,
890
719
  style: {
891
720
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
892
721
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
@@ -900,7 +729,7 @@ const Input = ({
900
729
  color: errorColor ? errorColor : "#ee0000"
901
730
  }
902
731
  }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
903
- className: `${styles$8["input-content"]}`,
732
+ className: `${styles$9["input-content"]}`,
904
733
  style: {
905
734
  width: width ? width : configStyles.INPUT.width,
906
735
  borderRadius: radius ? radius : configStyles.INPUT.radius,
@@ -932,7 +761,9 @@ const Input = ({
932
761
  borderTopLeftRadius: radius ? radius : configStyles.INPUT.radius,
933
762
  borderBottomLeftRadius: radius ? radius : configStyles.INPUT.radius,
934
763
  display: phoneDisplay ? phoneDisplay : configStyles.INPUT.phoneDisplay,
764
+ borderRight: borderRight ? borderRight : configStyles.INPUT.borderRight,
935
765
  alignItems: phoneAlignItems ? phoneAlignItems : configStyles.INPUT.phoneAlignItems,
766
+ borderColor: isHover ? borderRightColorHover ? borderRightColorHover : configStyles.INPUT.borderRightColorHover : borderRightColor ? borderRightColor : configStyles.INPUT.borderRightColor,
936
767
  color: innerErrorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color,
937
768
  justifyContent: phoneJustifyContent ? phoneJustifyContent : configStyles.INPUT.phoneJustifyContent,
938
769
  backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
@@ -1014,6 +845,7 @@ Input.propTypes = {
1014
845
  maxLength: PropTypes.number,
1015
846
  errorColor: PropTypes.string,
1016
847
  labelColor: PropTypes.string,
848
+ borderRight: PropTypes.string,
1017
849
  placeholder: PropTypes.string,
1018
850
  errorZindex: PropTypes.string,
1019
851
  errorBottom: PropTypes.string,
@@ -1031,10 +863,12 @@ Input.propTypes = {
1031
863
  phoneAlignItems: PropTypes.string,
1032
864
  errorLineHeight: PropTypes.string,
1033
865
  labelLineHeight: PropTypes.string,
866
+ borderRightColor: PropTypes.string,
1034
867
  labelMarginBottom: PropTypes.string,
1035
868
  regexpErrorMessage: PropTypes.string,
1036
869
  regexp: PropTypes.instanceOf(RegExp),
1037
870
  phoneJustifyContent: PropTypes.string,
871
+ borderRightColorHover: PropTypes.string,
1038
872
  errorAnimationDuration: PropTypes.string,
1039
873
  leftIcon: PropTypes.arrayOf(PropTypes.element),
1040
874
  rightIcon: PropTypes.arrayOf(PropTypes.element),
@@ -1045,9 +879,9 @@ Input.defaultProps = {
1045
879
  type: "text"
1046
880
  };
1047
881
 
1048
- var css_248z$9 = ".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}";
1049
- var styles$7 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
1050
- styleInject(css_248z$9);
882
+ var css_248z$a = ".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}";
883
+ var styles$8 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
884
+ styleInject(css_248z$a);
1051
885
 
1052
886
  const Radio = ({
1053
887
  disabled,
@@ -1061,11 +895,11 @@ const Radio = ({
1061
895
  keyNames,
1062
896
  ...props
1063
897
  }) => {
1064
- const classProps = classnames(styles$7.checkbox, className);
898
+ const classProps = classnames(styles$8.checkbox, className);
1065
899
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
1066
900
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
1067
901
  return /*#__PURE__*/React__default.createElement("label", {
1068
- className: `${styles$7["radio-wrap"]} radio-wrap-rem`,
902
+ className: `${styles$8["radio-wrap"]} radio-wrap-rem`,
1069
903
  key: element.value
1070
904
  }, /*#__PURE__*/React__default.createElement("input", _extends({
1071
905
  type: "radio",
@@ -1076,9 +910,9 @@ const Radio = ({
1076
910
  value: value ? value : element.value,
1077
911
  name: name ? name : element.name
1078
912
  }, props)), /*#__PURE__*/React__default.createElement("span", {
1079
- className: `${styles$7["radio-checkmark"]} radio-checkmark-rem`
913
+ className: `${styles$8["radio-checkmark"]} radio-checkmark-rem`
1080
914
  }), element.label ? /*#__PURE__*/React__default.createElement("span", {
1081
- className: styles$7.labelRadio
915
+ className: styles$8.labelRadio
1082
916
  }, label ? label : element.label) : "");
1083
917
  }));
1084
918
  };
@@ -1100,6 +934,7 @@ Radio.defaultProps = {
1100
934
  };
1101
935
 
1102
936
  const Button = ({
937
+ icon,
1103
938
  size,
1104
939
  type,
1105
940
  font,
@@ -1128,8 +963,8 @@ const Button = ({
1128
963
  }) => {
1129
964
  const [isHover, setIsHover] = useState(false);
1130
965
  useEffect(() => {
1131
- if (!label) {
1132
- alert('Button component: label prop is required, please add it!!!');
966
+ if (!label && !icon) {
967
+ alert('Add icon or label props on Button component');
1133
968
  }
1134
969
  }, []);
1135
970
  const configStyles = compereConfigs();
@@ -1142,11 +977,14 @@ const Button = ({
1142
977
  };
1143
978
  return /*#__PURE__*/React__default.createElement("button", _extends({
1144
979
  style: {
980
+ display: 'flex',
981
+ alignItems: 'center',
1145
982
  fontSize: size ? size : configStyles.BUTTON.size,
1146
983
  fontFamily: font ? font : configStyles.BUTTON.font,
1147
984
  height: height ? height : configStyles.BUTTON.height,
1148
985
  fontWeight: weight ? weight : configStyles.BUTTON.weight,
1149
986
  padding: padding ? padding : configStyles.BUTTON.padding,
987
+ justifyContent: icon && label ? 'space-between' : 'center',
1150
988
  borderRadius: radius ? radius : configStyles.BUTTON.radius,
1151
989
  boxSizing: boxSizing ? boxSizing : configStyles.BUTTON.boxSizing,
1152
990
  transition: transition ? transition : configStyles.BUTTON.transition,
@@ -1164,16 +1002,18 @@ const Button = ({
1164
1002
  onMouseEnter: handleMouseEnter,
1165
1003
  onMouseLeave: handleMouseLeave,
1166
1004
  className: classProps
1167
- }, props), label);
1005
+ }, props), icon && icon, " ", label && label, " ", !icon && !label && 'Add icon or label prop on Button component');
1168
1006
  };
1169
1007
  Button.propTypes = {
1170
1008
  type: PropTypes.string,
1171
1009
  size: PropTypes.string,
1172
1010
  font: PropTypes.string,
1011
+ icon: PropTypes.element,
1173
1012
  color: PropTypes.string,
1174
1013
  width: PropTypes.string,
1175
1014
  outline: PropTypes.bool,
1176
1015
  onClick: PropTypes.func,
1016
+ label: PropTypes.string,
1177
1017
  weight: PropTypes.string,
1178
1018
  height: PropTypes.string,
1179
1019
  cursor: PropTypes.string,
@@ -1188,7 +1028,6 @@ Button.propTypes = {
1188
1028
  textTransform: PropTypes.string,
1189
1029
  disabledColor: PropTypes.string,
1190
1030
  backgroundColor: PropTypes.string,
1191
- label: PropTypes.string.isRequired,
1192
1031
  disabledLineColor: PropTypes.string,
1193
1032
  disabledBackgroundColor: PropTypes.string
1194
1033
  };
@@ -1264,9 +1103,9 @@ const SvgArrow = ({
1264
1103
  fill: "#3C393E"
1265
1104
  }));
1266
1105
 
1267
- var css_248z$8 = ".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}}";
1268
- 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"};
1269
- styleInject(css_248z$8);
1106
+ var css_248z$9 = ".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:9}.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}}";
1107
+ var styles$7 = {"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"};
1108
+ styleInject(css_248z$9);
1270
1109
 
1271
1110
  const Select = ({
1272
1111
  options,
@@ -1296,7 +1135,6 @@ const Select = ({
1296
1135
  selectedColor,
1297
1136
  selectedRadius,
1298
1137
  selectedMinHeight,
1299
- selectedBorder,
1300
1138
  selectedPadding,
1301
1139
  selectedFontSize,
1302
1140
  selectedBoxSizing,
@@ -1304,7 +1142,6 @@ const Select = ({
1304
1142
  selectedLineHeight,
1305
1143
  selectedHoverColor,
1306
1144
  selectedTransition,
1307
- selectedBorderColor,
1308
1145
  optionsBoxShadow,
1309
1146
  optionsBorderRadius,
1310
1147
  optionsBackgroundColor,
@@ -1319,7 +1156,9 @@ const Select = ({
1319
1156
  optionItemColorHover,
1320
1157
  optionItemMarginBottom,
1321
1158
  optionItemBackgroudColor,
1322
- optionItemBackgroudColorHover
1159
+ optionItemBackgroudColorHover,
1160
+ boxShadow,
1161
+ boxShadowHover
1323
1162
  }) => {
1324
1163
  const ref = useRef();
1325
1164
  const [opened, setOpened] = useState(false);
@@ -1446,12 +1285,11 @@ const Select = ({
1446
1285
  }, "*")) : "", /*#__PURE__*/React__default.createElement("div", {
1447
1286
  ref: ref
1448
1287
  }, /*#__PURE__*/React__default.createElement("div", {
1449
- className: styles$6['select-content']
1288
+ className: styles$7['select-content']
1450
1289
  }, /*#__PURE__*/React__default.createElement("div", {
1451
1290
  style: {
1452
1291
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
1453
1292
  minHeight: selectedMinHeight ? selectedMinHeight : configStyles.SELECT.selectedMinHeight,
1454
- border: selectedBorder ? selectedBorder : configStyles.SELECT.selectedBorder,
1455
1293
  padding: selectedPadding ? selectedPadding : configStyles.SELECT.selectedPadding,
1456
1294
  borderRadius: selectedRadius ? selectedRadius : configStyles.SELECT.selectedRadius,
1457
1295
  fontSize: selectedFontSize ? selectedFontSize : configStyles.SELECT.selectedFontSize,
@@ -1459,14 +1297,14 @@ const Select = ({
1459
1297
  fontWeight: selectedFontWeight ? selectedFontWeight : configStyles.SELECT.selectedFontWeight,
1460
1298
  lineHeight: selectedLineHeight ? selectedLineHeight : configStyles.SELECT.selectedLineHeight,
1461
1299
  transition: selectedTransition ? selectedTransition : configStyles.SELECT.selectedTransition,
1462
- borderColor: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : selectedBorderColor ? selectedBorderColor : configStyles.SELECT.selectedBorderColor
1300
+ boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.SELECT.errorColor}` : isHover ? boxShadowHover ? boxShadowHover : configStyles.SELECT.boxShadowHover : boxShadow ? boxShadow : configStyles.SELECT.boxShadow
1463
1301
  },
1464
1302
  onClick: disabled ? _ => _ : _ => handleOpenClose(),
1465
1303
  onMouseEnter: disabled ? _ => _ : _ => handleMouseEnter(),
1466
1304
  onMouseLeave: disabled ? _ => _ : _ => handleMouseLeave(),
1467
- className: `${styles$6['select-content-top']}`
1305
+ className: `${styles$7['select-content-top']}`
1468
1306
  }, /*#__PURE__*/React__default.createElement("div", {
1469
- className: `${styles$6['select-content-top-text']}`,
1307
+ className: `${styles$7['select-content-top-text']}`,
1470
1308
  style: {
1471
1309
  color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor
1472
1310
  }
@@ -1479,9 +1317,9 @@ const Select = ({
1479
1317
  }
1480
1318
  }
1481
1319
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
1482
- className: `${styles$6['select-content-top-icon']}`
1320
+ className: `${styles$7['select-content-top-icon']}`
1483
1321
  }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
1484
- className: `${styles$6['close-icon']}`,
1322
+ className: `${styles$7['close-icon']}`,
1485
1323
  onClick: disabled ? _ => _ : handleClearSelect,
1486
1324
  style: {
1487
1325
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
@@ -1490,7 +1328,7 @@ const Select = ({
1490
1328
  style: {
1491
1329
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
1492
1330
  },
1493
- className: `${styles$6['arrow-icon']}`
1331
+ className: `${styles$7['arrow-icon']}`
1494
1332
  }, arrowIcon ? arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
1495
1333
  style: {
1496
1334
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
@@ -1498,9 +1336,9 @@ const Select = ({
1498
1336
  backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
1499
1337
  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.length - 3)) + 0.6 + 'rem' : parseFloat(configStyles.SELECT.selectedMinHeight.substr(0, configStyles.SELECT.selectedMinHeight.length - 2)) + 6 + 'px'
1500
1338
  },
1501
- className: `${styles$6['select-content-bottom']}`
1339
+ className: `${styles$7['select-content-bottom']}`
1502
1340
  }, /*#__PURE__*/React__default.createElement("div", {
1503
- className: `${styles$6['select-content-bottom-inner']}`
1341
+ className: `${styles$7['select-content-bottom-inner']}`
1504
1342
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
1505
1343
  return /*#__PURE__*/React__default.createElement("div", {
1506
1344
  key: i,
@@ -1509,7 +1347,7 @@ const Select = ({
1509
1347
  onClick: disabled ? _ => _ : _ => handleSelectItem(option),
1510
1348
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
1511
1349
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
1512
- className: `${styles$6['select-content-bottom-row']}`,
1350
+ className: `${styles$7['select-content-bottom-row']}`,
1513
1351
  style: {
1514
1352
  color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
1515
1353
  cursor: optionItemCursor ? optionItemCursor : configStyles.SELECT.optionItemCursor,
@@ -1558,7 +1396,6 @@ Select.propTypes = {
1558
1396
  errorSize: PropTypes.string,
1559
1397
  errorColor: PropTypes.string,
1560
1398
  selectedColor: PropTypes.string,
1561
- selectedBorder: PropTypes.string,
1562
1399
  selectedRadius: PropTypes.string,
1563
1400
  selectedMinHeight: PropTypes.string,
1564
1401
  selectedPadding: PropTypes.string,
@@ -1568,7 +1405,6 @@ Select.propTypes = {
1568
1405
  selectedFontWeight: PropTypes.string,
1569
1406
  selectedLineHeight: PropTypes.string,
1570
1407
  selectedTransition: PropTypes.string,
1571
- selectedBorderColor: PropTypes.string,
1572
1408
  optionsBoxShadow: PropTypes.string,
1573
1409
  optionsBorderRadius: PropTypes.string,
1574
1410
  optionsBackgroundColor: PropTypes.string,
@@ -1583,7 +1419,9 @@ Select.propTypes = {
1583
1419
  optionItemLineHeight: PropTypes.string,
1584
1420
  optionItemMarginBottom: PropTypes.string,
1585
1421
  optionItemBackgroudColor: PropTypes.string,
1586
- optionItemBackgroudColorHover: PropTypes.string
1422
+ optionItemBackgroudColorHover: PropTypes.string,
1423
+ boxShadow: PropTypes.string,
1424
+ boxShadowHover: PropTypes.string
1587
1425
  };
1588
1426
 
1589
1427
  const SvgToasterInfo = ({
@@ -1676,9 +1514,9 @@ const SvgToasterSuccess = ({
1676
1514
  fill: "#0DA574"
1677
1515
  }));
1678
1516
 
1679
- var css_248z$7 = "#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}}";
1680
- 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"};
1681
- styleInject(css_248z$7);
1517
+ var css_248z$8 = "#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}}";
1518
+ var styles$6 = {"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"};
1519
+ styleInject(css_248z$8);
1682
1520
 
1683
1521
  const ToasterType = {
1684
1522
  info: 'info',
@@ -1743,8 +1581,8 @@ const Toast = ({
1743
1581
  justifyContent: 'space-between'
1744
1582
  },
1745
1583
  className: `
1746
- ${styles$5['notify-block']}
1747
- ${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'] : ''}
1584
+ ${styles$6['notify-block']}
1585
+ ${position === 'top-left' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'top-right' ? showToaster ? styles$6['bounce-in-right'] : styles$6['bounce-out-right'] : position === 'top-center' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'bottom-left' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : position === 'bottom-right' ? showToaster ? styles$6['bounce-in-right'] : styles$6['bounce-out-right'] : position === 'bottom-center' ? showToaster ? styles$6['bounce-in-left'] : styles$6['bounce-out-left'] : ''}
1748
1586
  `
1749
1587
  }, /*#__PURE__*/React__default.createElement("div", {
1750
1588
  style: {
@@ -1840,17 +1678,17 @@ const createToast = ({
1840
1678
  description
1841
1679
  });
1842
1680
  ReactDOM.render(newElem, toastBlock);
1843
- if (!document.getElementById(styles$5[position]) || document.getElementById(styles$5[position]) == null) {
1681
+ if (!document.getElementById(styles$6[position]) || document.getElementById(styles$6[position]) == null) {
1844
1682
  toastParentBlock = document.createElement('div');
1845
1683
  toastParentBlock.style.position = 'fixed';
1846
1684
  toastParentBlock.style.display = 'flex';
1847
1685
  toastParentBlock.style.zIndex = 99999;
1848
1686
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
1849
- toastParentBlock.setAttribute('id', styles$5[position]);
1687
+ toastParentBlock.setAttribute('id', styles$6[position]);
1850
1688
  toastParentBlock.appendChild(toastBlock);
1851
1689
  toastify.appendChild(toastParentBlock);
1852
1690
  } else {
1853
- document.getElementById(styles$5[position]).appendChild(toastBlock);
1691
+ document.getElementById(styles$6[position]).appendChild(toastBlock);
1854
1692
  }
1855
1693
  };
1856
1694
  const toast = {
@@ -1950,9 +1788,9 @@ const SvgTooltip = ({
1950
1788
  fill: "#D1D1D1"
1951
1789
  }));
1952
1790
 
1953
- var css_248z$6 = ".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}";
1954
- var styles$4 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
1955
- styleInject(css_248z$6);
1791
+ var css_248z$7 = ".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}";
1792
+ var styles$5 = {"tooltip-block":"tooltip-module_tooltip-block__v8U9u","tooltip":"tooltip-module_tooltip__emM6A","tooltip-rel":"tooltip-module_tooltip-rel__to9gq","tooltip-decor":"tooltip-module_tooltip-decor__qvt7t"};
1793
+ styleInject(css_248z$7);
1956
1794
 
1957
1795
  const Tooltip = ({
1958
1796
  type,
@@ -1975,7 +1813,7 @@ const Tooltip = ({
1975
1813
  const [checkTooltipHeight, setCheckTooltipHeight] = useState(0);
1976
1814
  const [showTooltip, setShowTooltip] = useState(false);
1977
1815
  const configStyles = compereConfigs();
1978
- const classProps = classnames(styles$4['tooltip'], className);
1816
+ const classProps = classnames(styles$5['tooltip'], className);
1979
1817
  const handleShow = () => {
1980
1818
  setShowTooltip(!showTooltip);
1981
1819
  };
@@ -1987,7 +1825,7 @@ const Tooltip = ({
1987
1825
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
1988
1826
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
1989
1827
  return /*#__PURE__*/React__default.createElement("div", {
1990
- className: `${styles$4['tooltip-block']}`,
1828
+ className: `${styles$5['tooltip-block']}`,
1991
1829
  style: {
1992
1830
  width: width ? width : configStyles.TOOLTIP.width,
1993
1831
  height: height ? height : configStyles.TOOLTIP.height,
@@ -2005,9 +1843,9 @@ const Tooltip = ({
2005
1843
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
2006
1844
  }
2007
1845
  }, /*#__PURE__*/React__default.createElement("div", {
2008
- className: `${styles$4['tooltip-rel']}`
1846
+ className: `${styles$5['tooltip-rel']}`
2009
1847
  }, /*#__PURE__*/React__default.createElement("div", {
2010
- className: `${styles$4['tooltip-decor']}`,
1848
+ className: `${styles$5['tooltip-decor']}`,
2011
1849
  style: {
2012
1850
  backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
2013
1851
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
@@ -2082,9 +1920,9 @@ const SvgCaptchaArrowDown = ({
2082
1920
  fill: "#00236A"
2083
1921
  }));
2084
1922
 
2085
- var css_248z$5 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
2086
- var styles$3 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
2087
- styleInject(css_248z$5);
1923
+ var css_248z$6 = ".captcha-module_start-point__LkOqy:after{background-color:#d1d1d1;border:2px solid #fff;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-ms-border-radius:6px;-o-border-radius:6px;content:\"\";height:10px;left:0;position:absolute;top:7.5px;width:10px;z-index:-1}.captcha-module_range__k24I2{-webkit-appearance:none;margin:0}.captcha-module_range__k24I2::-webkit-slider-runnable-track{-webkit-appearance:none;width:100%}.captcha-module_range-default__-O0QD::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-default.svg)}.captcha-module_range-default__-O0QD::-webkit-slider-thumb,.captcha-module_range-error__FKMfG::-webkit-slider-thumb{-webkit-appearance:none;background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}.captcha-module_range-error__FKMfG::-webkit-slider-thumb{background-image:url(../../assets/range-arrow-error.svg)}.captcha-module_range-success__VzLPq::-webkit-slider-thumb{-webkit-appearance:none;background-image:url(../../assets/range-arrow-success.svg);background-position:-5px;background-repeat:no-repeat;background-size:46px 46px;border-radius:17px;-webkit-border-radius:17px;-moz-border-radius:17px;-ms-border-radius:17px;-o-border-radius:17px;cursor:ew-resize;height:34px;width:34px}";
1924
+ var styles$4 = {"start-point":"captcha-module_start-point__LkOqy","range":"captcha-module_range__k24I2","range-default":"captcha-module_range-default__-O0QD","range-error":"captcha-module_range-error__FKMfG","range-success":"captcha-module_range-success__VzLPq"};
1925
+ styleInject(css_248z$6);
2088
1926
 
2089
1927
  const Captcha = ({
2090
1928
  size,
@@ -2147,7 +1985,7 @@ const Captcha = ({
2147
1985
  alignItems: 'center',
2148
1986
  zIndex: 1
2149
1987
  },
2150
- className: styles$3['start-point']
1988
+ className: styles$4['start-point']
2151
1989
  }, /*#__PURE__*/React__default.createElement("div", {
2152
1990
  style: {
2153
1991
  position: 'absolute',
@@ -2174,8 +2012,8 @@ const Captcha = ({
2174
2012
  backgroundColor: 'transparent'
2175
2013
  },
2176
2014
  className: `
2177
- ${styles$3['range']}
2178
- ${+rangeProgress === rangeNumber ? styles$3['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$3['range-error'] : styles$3['range-default']}
2015
+ ${styles$4['range']}
2016
+ ${+rangeProgress === rangeNumber ? styles$4['range-success'] : +rangeProgress !== rangeNumber && +rangeProgress > 0 ? styles$4['range-error'] : styles$4['range-default']}
2179
2017
  `,
2180
2018
  onInput: handleRange
2181
2019
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -2206,9 +2044,9 @@ Captcha.propTypes = {
2206
2044
  getRange: PropTypes.func.isRequired
2207
2045
  };
2208
2046
 
2209
- var css_248z$4 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;cursor:pointer;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
2210
- var styles$2 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
2211
- styleInject(css_248z$4);
2047
+ var css_248z$5 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;cursor:pointer;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
2048
+ var styles$3 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
2049
+ styleInject(css_248z$5);
2212
2050
 
2213
2051
  const Stepper = ({
2214
2052
  className,
@@ -2218,15 +2056,15 @@ const Stepper = ({
2218
2056
  }) => {
2219
2057
  classnames(className, 'stepper-inner-rem');
2220
2058
  return /*#__PURE__*/React__default.createElement("div", {
2221
- className: `${styles$2['stepper-container']} stepper-container-rem`
2059
+ className: `${styles$3['stepper-container']} stepper-container-rem`
2222
2060
  }, (() => {
2223
2061
  let steppers = [];
2224
2062
  for (let step = 1; step <= stepLength; step++) {
2225
2063
  steppers.push( /*#__PURE__*/React__default.createElement("div", {
2226
- className: classnames(`${step <= activeSteps ? styles$2.activeRing : styles$2.bigRing}`),
2064
+ className: classnames(`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
2227
2065
  key: step
2228
2066
  }, /*#__PURE__*/React__default.createElement("div", {
2229
- className: classnames(`${step <= activeSteps ? styles$2.smallActiveRing : styles$2.smallRing}`)
2067
+ className: classnames(`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
2230
2068
  }, step <= activeSteps ? step : "")));
2231
2069
  }
2232
2070
  return steppers;
@@ -2705,7 +2543,7 @@ const NewFile = ({
2705
2543
  };
2706
2544
  const handleRemoveFile = () => {
2707
2545
  setImage(null);
2708
- removeFile(singleFile);
2546
+ removeFile && removeFile(singleFile);
2709
2547
  };
2710
2548
  const handleChange = e => {
2711
2549
  const file = e.target.files;
@@ -2813,7 +2651,10 @@ const NewFile = ({
2813
2651
  if (multiple) {
2814
2652
  setSingleFile(null);
2815
2653
  }
2816
- }, [multiple, filesArray && filesArray.length, defaultData]);
2654
+ if (multiple && !removeFile) {
2655
+ alert('Please add removeFile prop on NewFile component, it is a require in multiple mode');
2656
+ }
2657
+ }, [multiple, removeFile, filesArray && filesArray.length, defaultData]);
2817
2658
  useEffect(() => {
2818
2659
  if (errorMessage) {
2819
2660
  setError(errorMessage);
@@ -2825,10 +2666,7 @@ const NewFile = ({
2825
2666
  if (!change) {
2826
2667
  alert('Please add change prop on File component');
2827
2668
  }
2828
- if (!removeFile) {
2829
- alert('Please add removeFile prop on File component');
2830
- }
2831
- }, [change, removeFile]);
2669
+ }, [change]);
2832
2670
  return /*#__PURE__*/React__default.createElement("div", {
2833
2671
  ref: ref,
2834
2672
  style: {
@@ -2961,7 +2799,7 @@ const NewFile = ({
2961
2799
  status: item.status,
2962
2800
  size: item.file.size,
2963
2801
  name: item.file.name,
2964
- removeFile: removeFile,
2802
+ removeFile: removeFile ? removeFile : _ => _,
2965
2803
  radius: radius ? radius : configStyles.File.radius,
2966
2804
  fileFormat: item.file.type.split('/')[1].toLowerCase(),
2967
2805
  progressColor: progressColor ? progressColor : configStyles.File.progressColor,
@@ -2993,6 +2831,7 @@ NewFile.propTypes = {
2993
2831
  upload: PropTypes.string,
2994
2832
  weight: PropTypes.number,
2995
2833
  maxSize: PropTypes.number,
2834
+ removeFile: PropTypes.func,
2996
2835
  errorSize: PropTypes.string,
2997
2836
  labelSize: PropTypes.string,
2998
2837
  labelColor: PropTypes.string,
@@ -3019,7 +2858,6 @@ NewFile.propTypes = {
3019
2858
  progressTrackColor: PropTypes.string,
3020
2859
  fileAreaImageWidth: PropTypes.string,
3021
2860
  listItemErrorColor: PropTypes.string,
3022
- removeFile: PropTypes.func.isRequired,
3023
2861
  fileAreaImageHeight: PropTypes.string,
3024
2862
  progressFailedColor: PropTypes.string,
3025
2863
  progressSuccessColor: PropTypes.string,
@@ -3032,10 +2870,98 @@ NewFile.propTypes = {
3032
2870
  fileExtensions: PropTypes.arrayOf(PropTypes.string)
3033
2871
  };
3034
2872
  NewFile.defaultProps = {
3035
- maxSize: 50,
2873
+ maxSize: 10,
3036
2874
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
3037
2875
  };
3038
2876
 
2877
+ var css_248z$4 = ".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}";
2878
+ var styles$2 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
2879
+ styleInject(css_248z$4);
2880
+
2881
+ const Checkbox = ({
2882
+ disabled,
2883
+ required,
2884
+ className,
2885
+ name,
2886
+ value,
2887
+ jsonData,
2888
+ onChange,
2889
+ label,
2890
+ keyNames,
2891
+ onClick,
2892
+ ...props
2893
+ }) => {
2894
+ const classProps = classnames(styles$2.checkbox, className, 'checkbox-input-rem');
2895
+ const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
2896
+ const [data, setData] = useState(parseData);
2897
+ useEffect(() => {
2898
+ const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
2899
+ setData(parseData);
2900
+ }, [jsonData]);
2901
+ useEffect(() => {
2902
+ onChange ? onChange(data.filter(d => d.checked)) : '';
2903
+ }, [data]);
2904
+ const handleChange = e => {
2905
+ let id;
2906
+ data.forEach((value, key) => {
2907
+ if (value[keyNames.value] === e.target.value) {
2908
+ id = key;
2909
+ }
2910
+ });
2911
+ let items = [...data];
2912
+ let item = {
2913
+ ...items[id]
2914
+ };
2915
+ item.checked = !item.checked;
2916
+ items[id] = item;
2917
+ setData(items);
2918
+ };
2919
+ !keyNames ? keyNames = {
2920
+ id: 'id',
2921
+ name: 'name',
2922
+ value: 'value',
2923
+ label: 'label'
2924
+ } : '';
2925
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, data.map(element => {
2926
+ return /*#__PURE__*/React__default.createElement("label", {
2927
+ className: `${styles$2["checkbox-wrap"]} checkbox-wrap-rem`,
2928
+ key: element.value
2929
+ }, /*#__PURE__*/React__default.createElement("input", _extends({
2930
+ type: "checkbox",
2931
+ className: classProps,
2932
+ disabled: disabled,
2933
+ required: required,
2934
+ value: keyNames.value ? element[keyNames.value] : '',
2935
+ name: keyNames.name ? element[keyNames.name] : '',
2936
+ id: keyNames.id ? element[keyNames.id] : '',
2937
+ onChange: handleChange,
2938
+ onClick: onClick ? onClick : () => {},
2939
+ defaultChecked: element.checked
2940
+ }, props)), /*#__PURE__*/React__default.createElement("span", {
2941
+ className: `${styles$2["checkmark"]} checkmark-rem`
2942
+ }), element[keyNames.label] ? /*#__PURE__*/React__default.createElement("label", {
2943
+ className: styles$2.labelCheckbox,
2944
+ for: element[keyNames.id]
2945
+ }, element[keyNames.label]) : "");
2946
+ }));
2947
+ };
2948
+ Checkbox.propTypes = {
2949
+ className: PropTypes.string,
2950
+ onChange: PropTypes.func,
2951
+ onClick: PropTypes.func,
2952
+ required: PropTypes.bool,
2953
+ disabled: PropTypes.bool,
2954
+ name: PropTypes.string,
2955
+ value: PropTypes.string,
2956
+ jsonData: PropTypes.string,
2957
+ label: PropTypes.string,
2958
+ keyNames: PropTypes.object
2959
+ };
2960
+ Checkbox.defaultProps = {
2961
+ onChange: undefined,
2962
+ jsonData: '[{"value":"email", "name":"contact1", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact2", "label":"Phone", "id":"contactChoice2"}]'
2963
+ };
2964
+
3039
2965
  var css_248z$3 = "textarea::-webkit-scrollbar{width:6px}textarea::-webkit-scrollbar-track{background:#eee}textarea::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-track{border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px}textarea::-webkit-scrollbar-thumb{background:#d1d1d1}";
3040
2966
  styleInject(css_248z$3);
3041
2967
 
@@ -4046,4 +3972,4 @@ NewAutocomplete.defaultProps = {
4046
3972
  disabled: false
4047
3973
  };
4048
3974
 
4049
- export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, SingleCheckbox, Stepper, Table, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
3975
+ export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, SingleCheckbox, Stepper, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };