@xaypay/tui 0.0.75 → 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
  }) => {
@@ -856,33 +685,37 @@ const Input = ({
856
685
  } else {
857
686
  setInnerErrorMessage('');
858
687
  }
859
- if (value !== undefined && value !== null) {
860
- setInnerValue(value);
861
- if (type === 'tel') {
862
- if (!phoneNumberRegex.test(value)) {
863
- telErrorMessage && setInnerErrorMessage(telErrorMessage);
864
- setInnerValue('');
865
- } else {
866
- setInnerErrorMessage('');
867
- if (value.length > 8) {
868
- setInnerValue(value.substr(0, 8));
688
+ if (value !== undefined) {
689
+ if (value === null) {
690
+ setInnerValue('');
691
+ } else {
692
+ setInnerValue(value);
693
+ if (type === 'tel') {
694
+ if (!phoneNumberRegex.test(value)) {
695
+ telErrorMessage && setInnerErrorMessage(telErrorMessage);
696
+ setInnerValue('');
869
697
  } else {
870
- setInnerValue(value);
698
+ setInnerErrorMessage('');
699
+ if (value.length > 8) {
700
+ setInnerValue(value.substr(0, 8));
701
+ } else {
702
+ setInnerValue(value);
703
+ }
871
704
  }
872
705
  }
873
- }
874
- if (maxLength && value.length > maxLength && type !== 'tel') {
875
- setInnerValue(value.substr(0, maxLength));
876
- }
877
- if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
878
- !regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
706
+ if (maxLength && value.length > maxLength && type !== 'tel') {
707
+ setInnerValue(value.substr(0, maxLength));
708
+ }
709
+ if (regexp && regexpErrorMessage && !maxLength && type !== 'tel') {
710
+ !regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
711
+ }
879
712
  }
880
713
  }
881
714
  }, [type, value, regexp, maxLength, errorMessage, regexpErrorMessage]);
882
715
  return /*#__PURE__*/React__default.createElement("div", {
883
- className: `${styles$8["input-wrap"]}`
716
+ className: `${styles$9["input-wrap"]}`
884
717
  }, label ? /*#__PURE__*/React__default.createElement("label", {
885
- className: `${styles$8["input-title"]}`,
718
+ className: `${styles$9["input-title"]}`,
886
719
  style: {
887
720
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
888
721
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
@@ -896,7 +729,7 @@ const Input = ({
896
729
  color: errorColor ? errorColor : "#ee0000"
897
730
  }
898
731
  }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
899
- className: `${styles$8["input-content"]}`,
732
+ className: `${styles$9["input-content"]}`,
900
733
  style: {
901
734
  width: width ? width : configStyles.INPUT.width,
902
735
  borderRadius: radius ? radius : configStyles.INPUT.radius,
@@ -928,7 +761,9 @@ const Input = ({
928
761
  borderTopLeftRadius: radius ? radius : configStyles.INPUT.radius,
929
762
  borderBottomLeftRadius: radius ? radius : configStyles.INPUT.radius,
930
763
  display: phoneDisplay ? phoneDisplay : configStyles.INPUT.phoneDisplay,
764
+ borderRight: borderRight ? borderRight : configStyles.INPUT.borderRight,
931
765
  alignItems: phoneAlignItems ? phoneAlignItems : configStyles.INPUT.phoneAlignItems,
766
+ borderColor: isHover ? borderRightColorHover ? borderRightColorHover : configStyles.INPUT.borderRightColorHover : borderRightColor ? borderRightColor : configStyles.INPUT.borderRightColor,
932
767
  color: innerErrorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color,
933
768
  justifyContent: phoneJustifyContent ? phoneJustifyContent : configStyles.INPUT.phoneJustifyContent,
934
769
  backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
@@ -990,7 +825,6 @@ Input.propTypes = {
990
825
  name: PropTypes.string,
991
826
  change: PropTypes.func,
992
827
  color: PropTypes.string,
993
- value: PropTypes.string,
994
828
  width: PropTypes.string,
995
829
  label: PropTypes.string,
996
830
  required: PropTypes.bool,
@@ -1011,6 +845,7 @@ Input.propTypes = {
1011
845
  maxLength: PropTypes.number,
1012
846
  errorColor: PropTypes.string,
1013
847
  labelColor: PropTypes.string,
848
+ borderRight: PropTypes.string,
1014
849
  placeholder: PropTypes.string,
1015
850
  errorZindex: PropTypes.string,
1016
851
  errorBottom: PropTypes.string,
@@ -1028,22 +863,25 @@ Input.propTypes = {
1028
863
  phoneAlignItems: PropTypes.string,
1029
864
  errorLineHeight: PropTypes.string,
1030
865
  labelLineHeight: PropTypes.string,
866
+ borderRightColor: PropTypes.string,
1031
867
  labelMarginBottom: PropTypes.string,
1032
868
  regexpErrorMessage: PropTypes.string,
1033
869
  regexp: PropTypes.instanceOf(RegExp),
1034
870
  phoneJustifyContent: PropTypes.string,
871
+ borderRightColorHover: PropTypes.string,
1035
872
  errorAnimationDuration: PropTypes.string,
1036
873
  leftIcon: PropTypes.arrayOf(PropTypes.element),
1037
874
  rightIcon: PropTypes.arrayOf(PropTypes.element),
1038
- type: PropTypes.oneOf(Object.values(InputTypes))
875
+ type: PropTypes.oneOf(Object.values(InputTypes)),
876
+ value: PropTypes.oneOfType([PropTypes.string, PropTypes.object])
1039
877
  };
1040
878
  Input.defaultProps = {
1041
879
  type: "text"
1042
880
  };
1043
881
 
1044
- 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}";
1045
- var styles$7 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
1046
- 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);
1047
885
 
1048
886
  const Radio = ({
1049
887
  disabled,
@@ -1057,11 +895,11 @@ const Radio = ({
1057
895
  keyNames,
1058
896
  ...props
1059
897
  }) => {
1060
- const classProps = classnames(styles$7.checkbox, className);
898
+ const classProps = classnames(styles$8.checkbox, className);
1061
899
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
1062
900
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
1063
901
  return /*#__PURE__*/React__default.createElement("label", {
1064
- className: `${styles$7["radio-wrap"]} radio-wrap-rem`,
902
+ className: `${styles$8["radio-wrap"]} radio-wrap-rem`,
1065
903
  key: element.value
1066
904
  }, /*#__PURE__*/React__default.createElement("input", _extends({
1067
905
  type: "radio",
@@ -1072,9 +910,9 @@ const Radio = ({
1072
910
  value: value ? value : element.value,
1073
911
  name: name ? name : element.name
1074
912
  }, props)), /*#__PURE__*/React__default.createElement("span", {
1075
- className: `${styles$7["radio-checkmark"]} radio-checkmark-rem`
913
+ className: `${styles$8["radio-checkmark"]} radio-checkmark-rem`
1076
914
  }), element.label ? /*#__PURE__*/React__default.createElement("span", {
1077
- className: styles$7.labelRadio
915
+ className: styles$8.labelRadio
1078
916
  }, label ? label : element.label) : "");
1079
917
  }));
1080
918
  };
@@ -1096,6 +934,7 @@ Radio.defaultProps = {
1096
934
  };
1097
935
 
1098
936
  const Button = ({
937
+ icon,
1099
938
  size,
1100
939
  type,
1101
940
  font,
@@ -1124,8 +963,8 @@ const Button = ({
1124
963
  }) => {
1125
964
  const [isHover, setIsHover] = useState(false);
1126
965
  useEffect(() => {
1127
- if (!label) {
1128
- alert('Button component: label prop is required, please add it!!!');
966
+ if (!label && !icon) {
967
+ alert('Add icon or label props on Button component');
1129
968
  }
1130
969
  }, []);
1131
970
  const configStyles = compereConfigs();
@@ -1138,11 +977,14 @@ const Button = ({
1138
977
  };
1139
978
  return /*#__PURE__*/React__default.createElement("button", _extends({
1140
979
  style: {
980
+ display: 'flex',
981
+ alignItems: 'center',
1141
982
  fontSize: size ? size : configStyles.BUTTON.size,
1142
983
  fontFamily: font ? font : configStyles.BUTTON.font,
1143
984
  height: height ? height : configStyles.BUTTON.height,
1144
985
  fontWeight: weight ? weight : configStyles.BUTTON.weight,
1145
986
  padding: padding ? padding : configStyles.BUTTON.padding,
987
+ justifyContent: icon && label ? 'space-between' : 'center',
1146
988
  borderRadius: radius ? radius : configStyles.BUTTON.radius,
1147
989
  boxSizing: boxSizing ? boxSizing : configStyles.BUTTON.boxSizing,
1148
990
  transition: transition ? transition : configStyles.BUTTON.transition,
@@ -1160,16 +1002,18 @@ const Button = ({
1160
1002
  onMouseEnter: handleMouseEnter,
1161
1003
  onMouseLeave: handleMouseLeave,
1162
1004
  className: classProps
1163
- }, props), label);
1005
+ }, props), icon && icon, " ", label && label, " ", !icon && !label && 'Add icon or label prop on Button component');
1164
1006
  };
1165
1007
  Button.propTypes = {
1166
1008
  type: PropTypes.string,
1167
1009
  size: PropTypes.string,
1168
1010
  font: PropTypes.string,
1011
+ icon: PropTypes.element,
1169
1012
  color: PropTypes.string,
1170
1013
  width: PropTypes.string,
1171
1014
  outline: PropTypes.bool,
1172
1015
  onClick: PropTypes.func,
1016
+ label: PropTypes.string,
1173
1017
  weight: PropTypes.string,
1174
1018
  height: PropTypes.string,
1175
1019
  cursor: PropTypes.string,
@@ -1184,7 +1028,6 @@ Button.propTypes = {
1184
1028
  textTransform: PropTypes.string,
1185
1029
  disabledColor: PropTypes.string,
1186
1030
  backgroundColor: PropTypes.string,
1187
- label: PropTypes.string.isRequired,
1188
1031
  disabledLineColor: PropTypes.string,
1189
1032
  disabledBackgroundColor: PropTypes.string
1190
1033
  };
@@ -1260,9 +1103,9 @@ const SvgArrow = ({
1260
1103
  fill: "#3C393E"
1261
1104
  }));
1262
1105
 
1263
- 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}}";
1264
- 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"};
1265
- 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);
1266
1109
 
1267
1110
  const Select = ({
1268
1111
  options,
@@ -1292,7 +1135,6 @@ const Select = ({
1292
1135
  selectedColor,
1293
1136
  selectedRadius,
1294
1137
  selectedMinHeight,
1295
- selectedBorder,
1296
1138
  selectedPadding,
1297
1139
  selectedFontSize,
1298
1140
  selectedBoxSizing,
@@ -1300,7 +1142,6 @@ const Select = ({
1300
1142
  selectedLineHeight,
1301
1143
  selectedHoverColor,
1302
1144
  selectedTransition,
1303
- selectedBorderColor,
1304
1145
  optionsBoxShadow,
1305
1146
  optionsBorderRadius,
1306
1147
  optionsBackgroundColor,
@@ -1315,7 +1156,9 @@ const Select = ({
1315
1156
  optionItemColorHover,
1316
1157
  optionItemMarginBottom,
1317
1158
  optionItemBackgroudColor,
1318
- optionItemBackgroudColorHover
1159
+ optionItemBackgroudColorHover,
1160
+ boxShadow,
1161
+ boxShadowHover
1319
1162
  }) => {
1320
1163
  const ref = useRef();
1321
1164
  const [opened, setOpened] = useState(false);
@@ -1442,12 +1285,11 @@ const Select = ({
1442
1285
  }, "*")) : "", /*#__PURE__*/React__default.createElement("div", {
1443
1286
  ref: ref
1444
1287
  }, /*#__PURE__*/React__default.createElement("div", {
1445
- className: styles$6['select-content']
1288
+ className: styles$7['select-content']
1446
1289
  }, /*#__PURE__*/React__default.createElement("div", {
1447
1290
  style: {
1448
1291
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
1449
1292
  minHeight: selectedMinHeight ? selectedMinHeight : configStyles.SELECT.selectedMinHeight,
1450
- border: selectedBorder ? selectedBorder : configStyles.SELECT.selectedBorder,
1451
1293
  padding: selectedPadding ? selectedPadding : configStyles.SELECT.selectedPadding,
1452
1294
  borderRadius: selectedRadius ? selectedRadius : configStyles.SELECT.selectedRadius,
1453
1295
  fontSize: selectedFontSize ? selectedFontSize : configStyles.SELECT.selectedFontSize,
@@ -1455,14 +1297,14 @@ const Select = ({
1455
1297
  fontWeight: selectedFontWeight ? selectedFontWeight : configStyles.SELECT.selectedFontWeight,
1456
1298
  lineHeight: selectedLineHeight ? selectedLineHeight : configStyles.SELECT.selectedLineHeight,
1457
1299
  transition: selectedTransition ? selectedTransition : configStyles.SELECT.selectedTransition,
1458
- 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
1459
1301
  },
1460
1302
  onClick: disabled ? _ => _ : _ => handleOpenClose(),
1461
1303
  onMouseEnter: disabled ? _ => _ : _ => handleMouseEnter(),
1462
1304
  onMouseLeave: disabled ? _ => _ : _ => handleMouseLeave(),
1463
- className: `${styles$6['select-content-top']}`
1305
+ className: `${styles$7['select-content-top']}`
1464
1306
  }, /*#__PURE__*/React__default.createElement("div", {
1465
- className: `${styles$6['select-content-top-text']}`,
1307
+ className: `${styles$7['select-content-top-text']}`,
1466
1308
  style: {
1467
1309
  color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor
1468
1310
  }
@@ -1475,9 +1317,9 @@ const Select = ({
1475
1317
  }
1476
1318
  }
1477
1319
  }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
1478
- className: `${styles$6['select-content-top-icon']}`
1320
+ className: `${styles$7['select-content-top-icon']}`
1479
1321
  }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
1480
- className: `${styles$6['close-icon']}`,
1322
+ className: `${styles$7['close-icon']}`,
1481
1323
  onClick: disabled ? _ => _ : handleClearSelect,
1482
1324
  style: {
1483
1325
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
@@ -1486,7 +1328,7 @@ const Select = ({
1486
1328
  style: {
1487
1329
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
1488
1330
  },
1489
- className: `${styles$6['arrow-icon']}`
1331
+ className: `${styles$7['arrow-icon']}`
1490
1332
  }, arrowIcon ? arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)) : '')), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
1491
1333
  style: {
1492
1334
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
@@ -1494,9 +1336,9 @@ const Select = ({
1494
1336
  backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
1495
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'
1496
1338
  },
1497
- className: `${styles$6['select-content-bottom']}`
1339
+ className: `${styles$7['select-content-bottom']}`
1498
1340
  }, /*#__PURE__*/React__default.createElement("div", {
1499
- className: `${styles$6['select-content-bottom-inner']}`
1341
+ className: `${styles$7['select-content-bottom-inner']}`
1500
1342
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
1501
1343
  return /*#__PURE__*/React__default.createElement("div", {
1502
1344
  key: i,
@@ -1505,7 +1347,7 @@ const Select = ({
1505
1347
  onClick: disabled ? _ => _ : _ => handleSelectItem(option),
1506
1348
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
1507
1349
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
1508
- className: `${styles$6['select-content-bottom-row']}`,
1350
+ className: `${styles$7['select-content-bottom-row']}`,
1509
1351
  style: {
1510
1352
  color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
1511
1353
  cursor: optionItemCursor ? optionItemCursor : configStyles.SELECT.optionItemCursor,
@@ -1554,7 +1396,6 @@ Select.propTypes = {
1554
1396
  errorSize: PropTypes.string,
1555
1397
  errorColor: PropTypes.string,
1556
1398
  selectedColor: PropTypes.string,
1557
- selectedBorder: PropTypes.string,
1558
1399
  selectedRadius: PropTypes.string,
1559
1400
  selectedMinHeight: PropTypes.string,
1560
1401
  selectedPadding: PropTypes.string,
@@ -1564,7 +1405,6 @@ Select.propTypes = {
1564
1405
  selectedFontWeight: PropTypes.string,
1565
1406
  selectedLineHeight: PropTypes.string,
1566
1407
  selectedTransition: PropTypes.string,
1567
- selectedBorderColor: PropTypes.string,
1568
1408
  optionsBoxShadow: PropTypes.string,
1569
1409
  optionsBorderRadius: PropTypes.string,
1570
1410
  optionsBackgroundColor: PropTypes.string,
@@ -1579,7 +1419,9 @@ Select.propTypes = {
1579
1419
  optionItemLineHeight: PropTypes.string,
1580
1420
  optionItemMarginBottom: PropTypes.string,
1581
1421
  optionItemBackgroudColor: PropTypes.string,
1582
- optionItemBackgroudColorHover: PropTypes.string
1422
+ optionItemBackgroudColorHover: PropTypes.string,
1423
+ boxShadow: PropTypes.string,
1424
+ boxShadowHover: PropTypes.string
1583
1425
  };
1584
1426
 
1585
1427
  const SvgToasterInfo = ({
@@ -1672,9 +1514,9 @@ const SvgToasterSuccess = ({
1672
1514
  fill: "#0DA574"
1673
1515
  }));
1674
1516
 
1675
- 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}}";
1676
- 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"};
1677
- 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);
1678
1520
 
1679
1521
  const ToasterType = {
1680
1522
  info: 'info',
@@ -1739,8 +1581,8 @@ const Toast = ({
1739
1581
  justifyContent: 'space-between'
1740
1582
  },
1741
1583
  className: `
1742
- ${styles$5['notify-block']}
1743
- ${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'] : ''}
1744
1586
  `
1745
1587
  }, /*#__PURE__*/React__default.createElement("div", {
1746
1588
  style: {
@@ -1836,17 +1678,17 @@ const createToast = ({
1836
1678
  description
1837
1679
  });
1838
1680
  ReactDOM.render(newElem, toastBlock);
1839
- 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) {
1840
1682
  toastParentBlock = document.createElement('div');
1841
1683
  toastParentBlock.style.position = 'fixed';
1842
1684
  toastParentBlock.style.display = 'flex';
1843
1685
  toastParentBlock.style.zIndex = 99999;
1844
1686
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
1845
- toastParentBlock.setAttribute('id', styles$5[position]);
1687
+ toastParentBlock.setAttribute('id', styles$6[position]);
1846
1688
  toastParentBlock.appendChild(toastBlock);
1847
1689
  toastify.appendChild(toastParentBlock);
1848
1690
  } else {
1849
- document.getElementById(styles$5[position]).appendChild(toastBlock);
1691
+ document.getElementById(styles$6[position]).appendChild(toastBlock);
1850
1692
  }
1851
1693
  };
1852
1694
  const toast = {
@@ -1946,9 +1788,9 @@ const SvgTooltip = ({
1946
1788
  fill: "#D1D1D1"
1947
1789
  }));
1948
1790
 
1949
- 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}";
1950
- 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"};
1951
- 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);
1952
1794
 
1953
1795
  const Tooltip = ({
1954
1796
  type,
@@ -1971,7 +1813,7 @@ const Tooltip = ({
1971
1813
  const [checkTooltipHeight, setCheckTooltipHeight] = useState(0);
1972
1814
  const [showTooltip, setShowTooltip] = useState(false);
1973
1815
  const configStyles = compereConfigs();
1974
- const classProps = classnames(styles$4['tooltip'], className);
1816
+ const classProps = classnames(styles$5['tooltip'], className);
1975
1817
  const handleShow = () => {
1976
1818
  setShowTooltip(!showTooltip);
1977
1819
  };
@@ -1983,7 +1825,7 @@ const Tooltip = ({
1983
1825
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
1984
1826
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
1985
1827
  return /*#__PURE__*/React__default.createElement("div", {
1986
- className: `${styles$4['tooltip-block']}`,
1828
+ className: `${styles$5['tooltip-block']}`,
1987
1829
  style: {
1988
1830
  width: width ? width : configStyles.TOOLTIP.width,
1989
1831
  height: height ? height : configStyles.TOOLTIP.height,
@@ -2001,9 +1843,9 @@ const Tooltip = ({
2001
1843
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
2002
1844
  }
2003
1845
  }, /*#__PURE__*/React__default.createElement("div", {
2004
- className: `${styles$4['tooltip-rel']}`
1846
+ className: `${styles$5['tooltip-rel']}`
2005
1847
  }, /*#__PURE__*/React__default.createElement("div", {
2006
- className: `${styles$4['tooltip-decor']}`,
1848
+ className: `${styles$5['tooltip-decor']}`,
2007
1849
  style: {
2008
1850
  backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
2009
1851
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
@@ -2078,9 +1920,9 @@ const SvgCaptchaArrowDown = ({
2078
1920
  fill: "#00236A"
2079
1921
  }));
2080
1922
 
2081
- 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}";
2082
- 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"};
2083
- 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);
2084
1926
 
2085
1927
  const Captcha = ({
2086
1928
  size,
@@ -2143,7 +1985,7 @@ const Captcha = ({
2143
1985
  alignItems: 'center',
2144
1986
  zIndex: 1
2145
1987
  },
2146
- className: styles$3['start-point']
1988
+ className: styles$4['start-point']
2147
1989
  }, /*#__PURE__*/React__default.createElement("div", {
2148
1990
  style: {
2149
1991
  position: 'absolute',
@@ -2170,8 +2012,8 @@ const Captcha = ({
2170
2012
  backgroundColor: 'transparent'
2171
2013
  },
2172
2014
  className: `
2173
- ${styles$3['range']}
2174
- ${+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']}
2175
2017
  `,
2176
2018
  onInput: handleRange
2177
2019
  }), /*#__PURE__*/React__default.createElement("div", {
@@ -2202,9 +2044,9 @@ Captcha.propTypes = {
2202
2044
  getRange: PropTypes.func.isRequired
2203
2045
  };
2204
2046
 
2205
- 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}";
2206
- 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"};
2207
- 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);
2208
2050
 
2209
2051
  const Stepper = ({
2210
2052
  className,
@@ -2214,15 +2056,15 @@ const Stepper = ({
2214
2056
  }) => {
2215
2057
  classnames(className, 'stepper-inner-rem');
2216
2058
  return /*#__PURE__*/React__default.createElement("div", {
2217
- className: `${styles$2['stepper-container']} stepper-container-rem`
2059
+ className: `${styles$3['stepper-container']} stepper-container-rem`
2218
2060
  }, (() => {
2219
2061
  let steppers = [];
2220
2062
  for (let step = 1; step <= stepLength; step++) {
2221
2063
  steppers.push( /*#__PURE__*/React__default.createElement("div", {
2222
- className: classnames(`${step <= activeSteps ? styles$2.activeRing : styles$2.bigRing}`),
2064
+ className: classnames(`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
2223
2065
  key: step
2224
2066
  }, /*#__PURE__*/React__default.createElement("div", {
2225
- className: classnames(`${step <= activeSteps ? styles$2.smallActiveRing : styles$2.smallRing}`)
2067
+ className: classnames(`${step <= activeSteps ? styles$3.smallActiveRing : styles$3.smallRing}`)
2226
2068
  }, step <= activeSteps ? step : "")));
2227
2069
  }
2228
2070
  return steppers;
@@ -2701,7 +2543,7 @@ const NewFile = ({
2701
2543
  };
2702
2544
  const handleRemoveFile = () => {
2703
2545
  setImage(null);
2704
- removeFile(singleFile);
2546
+ removeFile && removeFile(singleFile);
2705
2547
  };
2706
2548
  const handleChange = e => {
2707
2549
  const file = e.target.files;
@@ -2809,7 +2651,10 @@ const NewFile = ({
2809
2651
  if (multiple) {
2810
2652
  setSingleFile(null);
2811
2653
  }
2812
- }, [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]);
2813
2658
  useEffect(() => {
2814
2659
  if (errorMessage) {
2815
2660
  setError(errorMessage);
@@ -2821,10 +2666,7 @@ const NewFile = ({
2821
2666
  if (!change) {
2822
2667
  alert('Please add change prop on File component');
2823
2668
  }
2824
- if (!removeFile) {
2825
- alert('Please add removeFile prop on File component');
2826
- }
2827
- }, [change, removeFile]);
2669
+ }, [change]);
2828
2670
  return /*#__PURE__*/React__default.createElement("div", {
2829
2671
  ref: ref,
2830
2672
  style: {
@@ -2957,7 +2799,7 @@ const NewFile = ({
2957
2799
  status: item.status,
2958
2800
  size: item.file.size,
2959
2801
  name: item.file.name,
2960
- removeFile: removeFile,
2802
+ removeFile: removeFile ? removeFile : _ => _,
2961
2803
  radius: radius ? radius : configStyles.File.radius,
2962
2804
  fileFormat: item.file.type.split('/')[1].toLowerCase(),
2963
2805
  progressColor: progressColor ? progressColor : configStyles.File.progressColor,
@@ -2989,6 +2831,7 @@ NewFile.propTypes = {
2989
2831
  upload: PropTypes.string,
2990
2832
  weight: PropTypes.number,
2991
2833
  maxSize: PropTypes.number,
2834
+ removeFile: PropTypes.func,
2992
2835
  errorSize: PropTypes.string,
2993
2836
  labelSize: PropTypes.string,
2994
2837
  labelColor: PropTypes.string,
@@ -3015,7 +2858,6 @@ NewFile.propTypes = {
3015
2858
  progressTrackColor: PropTypes.string,
3016
2859
  fileAreaImageWidth: PropTypes.string,
3017
2860
  listItemErrorColor: PropTypes.string,
3018
- removeFile: PropTypes.func.isRequired,
3019
2861
  fileAreaImageHeight: PropTypes.string,
3020
2862
  progressFailedColor: PropTypes.string,
3021
2863
  progressSuccessColor: PropTypes.string,
@@ -3028,10 +2870,98 @@ NewFile.propTypes = {
3028
2870
  fileExtensions: PropTypes.arrayOf(PropTypes.string)
3029
2871
  };
3030
2872
  NewFile.defaultProps = {
3031
- maxSize: 50,
2873
+ maxSize: 10,
3032
2874
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
3033
2875
  };
3034
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
+
3035
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}";
3036
2966
  styleInject(css_248z$3);
3037
2967
 
@@ -4042,4 +3972,4 @@ NewAutocomplete.defaultProps = {
4042
3972
  disabled: false
4043
3973
  };
4044
3974
 
4045
- 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 };