@xaypay/tui 0.0.8 → 0.0.9

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
@@ -48,9 +48,9 @@ function styleInject(css, ref) {
48
48
  }
49
49
  }
50
50
 
51
- var css_248z$9 = ".button-module_btn__ffRtT{border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:20px;min-height:46px;outline:none;overflow:hidden;padding:12px 20px;text-transform:capitalize;transition:background-color .24s,color .24s}.button-module_btn__ffRtT.button-module_full-size__vmV2E{width:100%}.button-module_btn__ffRtT.button-module_content-size__f7JSE{width:auto}.button-module_btn__ffRtT.button-module_type-filled__BiyVo{background-color:#00236a;color:#fff}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:hover{background-color:#001745}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:disabled{background-color:#eee;color:#3c393e;pointer-events:none}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V{background-color:#fff;box-shadow:inset 0 0 0 2px #00236a}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:hover{background-color:#001745;color:#fff}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:disabled{box-shadow:inset 0 0 0 2px #eee;color:#3c393e;pointer-events:none}";
52
- var styles$7 = {"btn":"button-module_btn__ffRtT","full-size":"button-module_full-size__vmV2E","content-size":"button-module_content-size__f7JSE","size-default":"button-module_size-default__ydEgl","type-filled":"button-module_type-filled__BiyVo","with-icon":"button-module_with-icon__mfKU-","type-outline":"button-module_type-outline__RpZ2V"};
53
- styleInject(css_248z$9);
51
+ var css_248z$8 = ".button-module_btn__ffRtT{border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:20px;min-height:46px;outline:none;overflow:hidden;padding:12px 20px;text-transform:capitalize;transition:background-color .24s,color .24s}.button-module_btn__ffRtT.button-module_full-size__vmV2E{width:100%}.button-module_btn__ffRtT.button-module_content-size__f7JSE{width:auto}.button-module_btn__ffRtT.button-module_type-filled__BiyVo{background-color:#00236a;color:#fff}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:hover{background-color:#001745}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:disabled{background-color:#eee;color:#3c393e;pointer-events:none}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V{background-color:#fff;box-shadow:inset 0 0 0 2px #00236a}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:hover{background-color:#001745;color:#fff}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:disabled{box-shadow:inset 0 0 0 2px #eee;color:#3c393e;pointer-events:none}";
52
+ var styles$6 = {"btn":"button-module_btn__ffRtT","full-size":"button-module_full-size__vmV2E","content-size":"button-module_content-size__f7JSE","size-default":"button-module_size-default__ydEgl","type-filled":"button-module_type-filled__BiyVo","with-icon":"button-module_with-icon__mfKU-","type-outline":"button-module_type-outline__RpZ2V"};
53
+ styleInject(css_248z$8);
54
54
 
55
55
  /**
56
56
  * Primary UI component for user interaction
@@ -86,9 +86,9 @@ const Button = ({
86
86
  outline,
87
87
  ...props
88
88
  }) => {
89
- console.log(styles$7);
89
+ console.log(styles$6);
90
90
  console.log(backgroundColor);
91
- const classProps = classnames(styles$7.btn, styles$7[theme], styles$7[size], outline ? styles$7['type-outline'] : styles$7['type-filled'], className); // className='btn type-outline size-default'
91
+ const classProps = classnames(styles$6.btn, styles$6[theme], styles$6[size], outline ? styles$6['type-outline'] : styles$6['type-filled'], className); // className='btn type-outline size-default'
92
92
 
93
93
  console.log(classProps);
94
94
  return /*#__PURE__*/React__default.createElement("button", _extends({
@@ -140,8 +140,8 @@ Button.defaultProps = {
140
140
  outline: false
141
141
  };
142
142
 
143
- var css_248z$8 = "h1{font-size:70px;line-height:70px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:50px}h3{font-size:38px;font-weight:400;line-height:38px}h3,h4{text-transform:uppercase}h4{font-size:24px;font-weight:600;line-height:24px}h5{font-size:20px;font-size:16px;line-height:20px;line-height:22px;text-transform:uppercase}h5,p{font-weight:600;text-transform:capitalize}p{font-size:14px;line-height:20px}span{font-size:12px;font-weight:500;line-height:16px;text-transform:capitalize}i{font-family:icomoon;font-style:inherit}";
144
- styleInject(css_248z$8);
143
+ var css_248z$7 = "h1{font-size:70px;line-height:70px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:50px}h3{font-size:38px;font-weight:400;line-height:38px}h3,h4{text-transform:uppercase}h4{font-size:24px;font-weight:600;line-height:24px}h5{font-size:20px;font-size:16px;line-height:20px;line-height:22px;text-transform:uppercase}h5,p{font-weight:600;text-transform:capitalize}p{font-size:14px;line-height:20px}span{font-size:12px;font-weight:500;line-height:16px;text-transform:capitalize}i{font-family:icomoon;font-style:inherit}";
144
+ styleInject(css_248z$7);
145
145
 
146
146
  const TypographyType = {
147
147
  h1: 'h1',
@@ -190,9 +190,9 @@ Typography.defaultProps = {
190
190
  variant: 'h1'
191
191
  };
192
192
 
193
- var css_248z$7 = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);max-height:0;max-width:400px;overflow:hidden;position:relative;top:6px}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}";
194
- var styles$6 = {"autocomplate-content":"autocomplate-module_autocomplate-content__UbIUT","autocomplate-content-top":"autocomplate-module_autocomplate-content-top__FVgCp","active":"autocomplate-module_active__40fdV","autocomplate-content-bottom":"autocomplate-module_autocomplate-content-bottom__yk0zP","select-show":"autocomplate-module_select-show__7Uap4","autocomplate-content-bottom-inner":"autocomplate-module_autocomplate-content-bottom-inner__rF5IF","autocomplate-content-bottom-row":"autocomplate-module_autocomplate-content-bottom-row__dRsZa","no-option":"autocomplate-module_no-option__xv0-E","option-active":"autocomplate-module_option-active__WuH4I"};
195
- styleInject(css_248z$7);
193
+ var css_248z$6 = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);max-height:0;max-width:400px;overflow:hidden;position:relative;top:6px}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}";
194
+ var styles$5 = {"autocomplate-content":"autocomplate-module_autocomplate-content__UbIUT","autocomplate-content-top":"autocomplate-module_autocomplate-content-top__FVgCp","active":"autocomplate-module_active__40fdV","autocomplate-content-bottom":"autocomplate-module_autocomplate-content-bottom__yk0zP","select-show":"autocomplate-module_select-show__7Uap4","autocomplate-content-bottom-inner":"autocomplate-module_autocomplate-content-bottom-inner__rF5IF","autocomplate-content-bottom-row":"autocomplate-module_autocomplate-content-bottom-row__dRsZa","no-option":"autocomplate-module_no-option__xv0-E","option-active":"autocomplate-module_option-active__WuH4I"};
195
+ styleInject(css_248z$6);
196
196
 
197
197
  const Autocomplate = ({
198
198
  className,
@@ -205,7 +205,7 @@ const Autocomplate = ({
205
205
  searchCount,
206
206
  ...props
207
207
  }) => {
208
- classnames(styles$6.searchBox, className);
208
+ classnames(styles$5.searchBox, className);
209
209
  const [inputValue, setInputValue] = useState("");
210
210
  const [activeOption, setActiveOption] = useState(0);
211
211
  const [filteredOptions, setFilteredOptions] = useState([]);
@@ -233,9 +233,9 @@ const Autocomplate = ({
233
233
  if (showOptions && inputValue) {
234
234
  if (filteredOptions.length && inputValue.length >= searchCount) {
235
235
  optionList = /*#__PURE__*/React__default.createElement("div", {
236
- className: styles$6['autocomplate-content-bottom']
236
+ className: styles$5['autocomplate-content-bottom']
237
237
  }, /*#__PURE__*/React__default.createElement("div", {
238
- className: styles$6['autocomplate-content-bottom-inner']
238
+ className: styles$5['autocomplate-content-bottom-inner']
239
239
  }, filteredOptions.map((optionName, index) => {
240
240
  let className;
241
241
 
@@ -244,33 +244,33 @@ const Autocomplate = ({
244
244
  }
245
245
 
246
246
  return /*#__PURE__*/React__default.createElement("div", {
247
- className: styles$6[className],
247
+ className: styles$5[className],
248
248
  key: optionName,
249
249
  onClick: handleClick
250
250
  }, /*#__PURE__*/React__default.createElement("div", {
251
- className: styles$6['autocomplate-content-bottom-row']
251
+ className: styles$5['autocomplate-content-bottom-row']
252
252
  }, optionName));
253
253
  })));
254
254
  } else {
255
255
  optionList = /*#__PURE__*/React__default.createElement("div", {
256
- className: styles$6['autocomplate-content-bottom']
256
+ className: styles$5['autocomplate-content-bottom']
257
257
  }, /*#__PURE__*/React__default.createElement("div", {
258
- className: styles$6['autocomplate-content-bottom-inner']
258
+ className: styles$5['autocomplate-content-bottom-inner']
259
259
  }, /*#__PURE__*/React__default.createElement("div", {
260
- className: styles$6['autocomplate-content-bottom-row']
260
+ className: styles$5['autocomplate-content-bottom-row']
261
261
  }, /*#__PURE__*/React__default.createElement("div", {
262
- className: styles$6['no-option']
262
+ className: styles$5['no-option']
263
263
  }, "No Option!"))));
264
264
  }
265
265
  }
266
266
 
267
267
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
268
- className: styles$6.labelInput
268
+ className: styles$5.labelInput
269
269
  }, label) : "", /*#__PURE__*/React__default.createElement("div", {
270
- className: styles$6['autocomplate-content']
270
+ className: styles$5['autocomplate-content']
271
271
  }, /*#__PURE__*/React__default.createElement("input", _extends({
272
272
  type: "text",
273
- className: styles$6['autocomplate-content-top'],
273
+ className: styles$5['autocomplate-content-top'],
274
274
  required: required,
275
275
  disabled: disabled,
276
276
  onChange: handleChange,
@@ -293,9 +293,9 @@ Autocomplate.defaultProps = {
293
293
  searchCount: 2
294
294
  };
295
295
 
296
- var css_248z$6 = ".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;display:inline-block;height:14px;left:0;margin-right:4px;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}";
297
- var styles$5 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
298
- styleInject(css_248z$6);
296
+ var css_248z$5 = ".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;display:inline-block;height:14px;left:0;margin-right:4px;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}";
297
+ var styles$4 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
298
+ styleInject(css_248z$5);
299
299
 
300
300
  const Checkbox = ({
301
301
  disabled,
@@ -309,7 +309,7 @@ const Checkbox = ({
309
309
  keyNames,
310
310
  ...props
311
311
  }) => {
312
- const classProps = classnames(styles$5.checkbox, className);
312
+ const classProps = classnames(styles$4.checkbox, className);
313
313
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
314
314
  const [data, setData] = useState(parseData);
315
315
 
@@ -333,7 +333,7 @@ const Checkbox = ({
333
333
 
334
334
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, data.map(element => {
335
335
  return /*#__PURE__*/React__default.createElement("label", {
336
- className: styles$5["checkbox-wrap"],
336
+ className: styles$4["checkbox-wrap"],
337
337
  key: element.value
338
338
  }, /*#__PURE__*/React__default.createElement("input", _extends({
339
339
  type: "checkbox",
@@ -344,9 +344,9 @@ const Checkbox = ({
344
344
  name: name ? name : element.name,
345
345
  onChange: handleChange
346
346
  }, props)), /*#__PURE__*/React__default.createElement("span", {
347
- className: styles$5["checkmark"]
347
+ className: styles$4["checkmark"]
348
348
  }), element.label ? /*#__PURE__*/React__default.createElement("span", {
349
- className: styles$5.labelRadio
349
+ className: styles$4.labelRadio
350
350
  }, label ? label : element.label) : "");
351
351
  }));
352
352
  };
@@ -505,9 +505,9 @@ const SvgStarOutline = ({
505
505
  d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"
506
506
  }));
507
507
 
508
- var css_248z$5 = ".input-module_input-wrap__NunrE{position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;text-transform:capitalize;transition:background-color .24s,color .24s}.input-module_input__-ipHD.input-module_full-size__38YG7{width:100%}.input-module_input__-ipHD.input-module_content-size__rZ5EA{width:auto}.input-module_input__-ipHD.input-module_size-medium__frTDq{min-height:46px;padding:12px 15px}.input-module_input__-ipHD:hover{box-shadow:inset 0 0 0 2px #3c393e}.input-module_input__-ipHD:active{box-shadow:inset 0 0 0 2px #00236a}.input-module_inputErrorMessages__hx490{animation:input-module_error-message-show__OrVSo .24s forwards;bottom:0;color:#e00;font-size:14px;left:0;line-height:19px;position:absolute;transform:scale3d(0,0,0);z-index:1}.input-module_labelInput__sUMKQ{color:#000}.input-module_input__-ipHD.input-module_state-disabled__402v0{background-color:#fbfbfb;pointer-events:none}.input-module_input__-ipHD.input-module_error-message__7NphF{box-shadow:inset 0 0 0 2px #e00}@keyframes input-module_error-message-show__OrVSo{to{bottom:-20px;transform:scaleX(1)}}";
509
- var styles$4 = {"input-wrap":"input-module_input-wrap__NunrE","input":"input-module_input__-ipHD","full-size":"input-module_full-size__38YG7","content-size":"input-module_content-size__rZ5EA","size-medium":"input-module_size-medium__frTDq","with-icon":"input-module_with-icon__w3jTW","inputErrorMessages":"input-module_inputErrorMessages__hx490","error-message-show":"input-module_error-message-show__OrVSo","labelInput":"input-module_labelInput__sUMKQ","state-disabled":"input-module_state-disabled__402v0","error-message":"input-module_error-message__7NphF"};
510
- styleInject(css_248z$5);
508
+ var css_248z$4 = ".input-module_input-wrap__NunrE{position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;text-transform:capitalize;transition:background-color .24s,color .24s}.input-module_input__-ipHD.input-module_full-size__38YG7{width:100%}.input-module_input__-ipHD.input-module_content-size__rZ5EA{width:auto}.input-module_input__-ipHD.input-module_size-medium__frTDq{min-height:46px;padding:12px 15px}.input-module_input__-ipHD:hover{box-shadow:inset 0 0 0 2px #3c393e}.input-module_input__-ipHD:active{box-shadow:inset 0 0 0 2px #00236a}.input-module_inputErrorMessages__hx490{animation:input-module_error-message-show__OrVSo .24s forwards;bottom:0;color:#e00;font-size:14px;left:0;line-height:19px;position:absolute;transform:scale3d(0,0,0);z-index:1}.input-module_labelInput__sUMKQ{color:#000}.input-module_input__-ipHD.input-module_state-disabled__402v0{background-color:#fbfbfb;pointer-events:none}.input-module_input__-ipHD.input-module_error-message__7NphF{box-shadow:inset 0 0 0 2px #e00}@keyframes input-module_error-message-show__OrVSo{to{bottom:-20px;transform:scaleX(1)}}";
509
+ var styles$3 = {"input-wrap":"input-module_input-wrap__NunrE","input":"input-module_input__-ipHD","full-size":"input-module_full-size__38YG7","content-size":"input-module_content-size__rZ5EA","size-medium":"input-module_size-medium__frTDq","with-icon":"input-module_with-icon__w3jTW","inputErrorMessages":"input-module_inputErrorMessages__hx490","error-message-show":"input-module_error-message-show__OrVSo","labelInput":"input-module_labelInput__sUMKQ","state-disabled":"input-module_state-disabled__402v0","error-message":"input-module_error-message__7NphF"};
510
+ styleInject(css_248z$4);
511
511
 
512
512
  const InputTypes = {
513
513
  TEXT: "text",
@@ -549,11 +549,11 @@ const Input = ({
549
549
  eMessage = regex.test(inputValue) ? "" : regexpError;
550
550
  }
551
551
 
552
- const classProps = classnames(styles$4.input, styles$4[size], eMessage != '' ? styles$4['error-message'] : "", className);
552
+ const classProps = classnames(styles$3.input, styles$3[size], eMessage != '' ? styles$3['error-message'] : "", className);
553
553
  return /*#__PURE__*/React__default.createElement("div", {
554
- className: styles$4['input-wrap']
554
+ className: styles$3['input-wrap']
555
555
  }, label ? /*#__PURE__*/React__default.createElement("label", {
556
- className: styles$4.labelInput
556
+ className: styles$3.labelInput
557
557
  }, label) : "", /*#__PURE__*/React__default.createElement("input", _extends({}, props, {
558
558
  type: type,
559
559
  className: classProps,
@@ -564,7 +564,7 @@ const Input = ({
564
564
  onChange: handleChange,
565
565
  value: inputValue
566
566
  })), eMessage ? /*#__PURE__*/React__default.createElement("span", {
567
- className: styles$4.inputErrorMessages
567
+ className: styles$3.inputErrorMessages
568
568
  }, eMessage) : "");
569
569
  };
570
570
  Input.propTypes = {
@@ -590,9 +590,9 @@ Input.defaultProps = {
590
590
  type: "text"
591
591
  };
592
592
 
593
- var css_248z$4 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:16px;line-height:22px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}";
594
- var styles$3 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
595
- styleInject(css_248z$4);
593
+ var css_248z$3 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:16px;line-height:22px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}";
594
+ var styles$2 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
595
+ styleInject(css_248z$3);
596
596
 
597
597
  const Dots = "...";
598
598
 
@@ -645,15 +645,15 @@ const PaginationRange = ({
645
645
  return paginationRange;
646
646
  };
647
647
 
648
- var css_248z$3 = "@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:url(fonts/icomoon.eot?b29ky3);src:url(fonts/icomoon.eot?b29ky3#iefix) format(\"embedded-opentype\"),url(fonts/icomoon.ttf?b29ky3) format(\"truetype\"),url(fonts/icomoon.woff?b29ky3) format(\"woff\"),url(fonts/icomoon.svg?b29ky3#icomoon) format(\"svg\")}[class*=\" icon-\"],[class^=icon-]{speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-close:before{content:\"\\e907\"}.icon-arrow-up:before{content:\"\\e905\"}.icon-arrow-down:before{content:\"\\e906\"}.icon-arrow:before{content:\"\\e900\"}.icon-arrow-jump-next:before{content:\"\\e901\"}.icon-arrow-jump-back:before{content:\"\\e902\"}.icon-text:before{content:\"\\e903\"}.icon-arrow-back:before{content:\"\\e904\"}";
649
- styleInject(css_248z$3);
648
+ var css_248z$2 = "@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:url(fonts/icomoon.eot?b29ky3);src:url(fonts/icomoon.eot?b29ky3#iefix) format(\"embedded-opentype\"),url(fonts/icomoon.ttf?b29ky3) format(\"truetype\"),url(fonts/icomoon.woff?b29ky3) format(\"woff\"),url(fonts/icomoon.svg?b29ky3#icomoon) format(\"svg\")}[class*=\" icon-\"],[class^=icon-]{speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-close:before{content:\"\\e907\"}.icon-arrow-up:before{content:\"\\e905\"}.icon-arrow-down:before{content:\"\\e906\"}.icon-arrow:before{content:\"\\e900\"}.icon-arrow-jump-next:before{content:\"\\e901\"}.icon-arrow-jump-back:before{content:\"\\e902\"}.icon-text:before{content:\"\\e903\"}.icon-arrow-back:before{content:\"\\e904\"}";
649
+ styleInject(css_248z$2);
650
650
 
651
651
  /**
652
652
  * Created by aleksanyan.tigran on 10/7/2022.
653
653
  */
654
654
 
655
655
  const Icon = props => /*#__PURE__*/React.createElement("i", {
656
- className: css_248z$3[props.className]
656
+ className: css_248z$2[props.className]
657
657
  });
658
658
 
659
659
  const Pagination = ({
@@ -693,7 +693,7 @@ const Pagination = ({
693
693
  return null;
694
694
  }
695
695
 
696
- const classProps = classnames(styles$3.list, className ? className : styles$3["pagination-bar"]);
696
+ const classProps = classnames(styles$2.list, className ? className : styles$2["pagination-bar"]);
697
697
 
698
698
  const onNext = () => {
699
699
  onPageChange(currentPageNumber + 1);
@@ -715,7 +715,7 @@ const Pagination = ({
715
715
  return /*#__PURE__*/React$2.createElement("ul", {
716
716
  className: classProps
717
717
  }, /*#__PURE__*/React$2.createElement("button", {
718
- className: styles$3["pagination-btn"],
718
+ className: styles$2["pagination-btn"],
719
719
  onClick: onPrevious,
720
720
  disabled: currentPage === 1 ? true : false
721
721
  }, /*#__PURE__*/React$2.createElement(Icon, {
@@ -725,13 +725,13 @@ const Pagination = ({
725
725
  let currentPageIndex = paginationRange.indexOf(currentPageNumber);
726
726
  return /*#__PURE__*/React$2.createElement("li", {
727
727
  key: id,
728
- className: classnames(styles$3['pagination-jump-next'], styles$3.listItem),
728
+ className: classnames(styles$2['pagination-jump-next'], styles$2.listItem),
729
729
  onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
730
730
  disabled: currentPageIndex === 0 ? true : false
731
731
  }, /*#__PURE__*/React$2.createElement("span", {
732
- className: styles$3['pagination-jump-next-txt']
732
+ className: styles$2['pagination-jump-next-txt']
733
733
  }, "..."), /*#__PURE__*/React$2.createElement("span", {
734
- className: styles$3['pagination-jump-next-arrow']
734
+ className: styles$2['pagination-jump-next-arrow']
735
735
  }, /*#__PURE__*/React$2.createElement(Icon, {
736
736
  className: "icon-arrow-jump-next"
737
737
  })));
@@ -740,11 +740,11 @@ const Pagination = ({
740
740
  return /*#__PURE__*/React$2.createElement("li", {
741
741
  onClick: () => onPageChange(pageNumber),
742
742
  key: id,
743
- className: classnames(`${pageNumber === currentPageNumber ? styles$3.selected : styles$3.listItem}`, styles$3['pagination-item'])
743
+ className: classnames(`${pageNumber === currentPageNumber ? styles$2.selected : styles$2.listItem}`, styles$2['pagination-item'])
744
744
  }, pageNumber);
745
745
  }), /*#__PURE__*/React$2.createElement("button", {
746
746
  onClick: onNext,
747
- className: styles$3["pagination-btn"],
747
+ className: styles$2["pagination-btn"],
748
748
  disabled: currentPageNumber === lastPage ? true : false
749
749
  }, /*#__PURE__*/React$2.createElement(Icon, {
750
750
  className: "icon-arrow"
@@ -762,9 +762,9 @@ Pagination.defaultProps = {
762
762
  siblingCount: 2
763
763
  };
764
764
 
765
- var css_248z$2 = ".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}";
766
- var styles$2 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
767
- styleInject(css_248z$2);
765
+ var css_248z$1 = ".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}";
766
+ var styles$1 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
767
+ styleInject(css_248z$1);
768
768
 
769
769
  const Radio = ({
770
770
  disabled,
@@ -778,11 +778,11 @@ const Radio = ({
778
778
  keyNames,
779
779
  ...props
780
780
  }) => {
781
- const classProps = classnames(styles$2.checkbox, className);
781
+ const classProps = classnames(styles$1.checkbox, className);
782
782
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
783
783
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
784
784
  return /*#__PURE__*/React__default.createElement("label", {
785
- className: styles$2["radio-wrap"],
785
+ className: styles$1["radio-wrap"],
786
786
  key: element.value
787
787
  }, /*#__PURE__*/React__default.createElement("input", _extends({
788
788
  type: "radio",
@@ -793,9 +793,9 @@ const Radio = ({
793
793
  value: value ? value : element.value,
794
794
  name: name ? name : element.name
795
795
  }, props)), /*#__PURE__*/React__default.createElement("span", {
796
- className: styles$2["radio-checkmark"]
796
+ className: styles$1["radio-checkmark"]
797
797
  }), element.label ? /*#__PURE__*/React__default.createElement("span", {
798
- className: styles$2.labelRadio
798
+ className: styles$1.labelRadio
799
799
  }, label ? label : element.label) : "");
800
800
  }));
801
801
  };
@@ -816,9 +816,9 @@ Radio.defaultProps = {
816
816
  jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
817
817
  };
818
818
 
819
- var css_248z$1 = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{margin:0;padding:0;position:relative;width:40%}.captcha-module_slider__KLYny{-webkit-appearance:none;background-color:hsla(0,0%,100%,.575);border:.1px solid hsla(0,0%,59%,.432);height:7px;outline:none;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:48px;position:relative;width:48px;z-index:3}.captcha-module_selector__JFhb4{bottom:-20px;height:48px;left:50%;position:absolute;width:48px;z-index:2}.captcha-module_selectBtn__GP1iH{background-image:url(https://i.ibb.co/rQZNNzN/blue.png);background-position:50%;background-size:cover;border-radius:50%;bottom:40px;height:40px;position:absolute;right:30px;width:40px}.captcha-module_progressBar__mhdtM{background:#7070ee;bottom:38px;height:7px;left:0;margin:0;padding:0;position:absolute;width:50%}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
820
- var styles$1 = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
821
- styleInject(css_248z$1);
819
+ var css_248z = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{margin:0;padding:0;position:relative;width:40%}.captcha-module_slider__KLYny{-webkit-appearance:none;background-color:hsla(0,0%,100%,.575);border:.1px solid hsla(0,0%,59%,.432);height:7px;outline:none;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:48px;position:relative;width:48px;z-index:3}.captcha-module_selector__JFhb4{bottom:-20px;height:48px;left:50%;position:absolute;width:48px;z-index:2}.captcha-module_selectBtn__GP1iH{background-image:url(https://i.ibb.co/rQZNNzN/blue.png);background-position:50%;background-size:cover;border-radius:50%;bottom:40px;height:40px;position:absolute;right:30px;width:40px}.captcha-module_progressBar__mhdtM{background:#7070ee;bottom:38px;height:7px;left:0;margin:0;padding:0;position:absolute;width:50%}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
820
+ var styles = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
821
+ styleInject(css_248z);
822
822
 
823
823
  const Captcha = ({
824
824
  onclick,
@@ -827,7 +827,7 @@ const Captcha = ({
827
827
  const [data, setData] = useState("");
828
828
  const [right, setRight] = useState(false);
829
829
  let range = rangeCount <= 100 ? rangeCount : 0;
830
- let rangeElement = document.getElementsByClassName(styles$1.range);
830
+ let rangeElement = document.getElementsByClassName(styles.range);
831
831
  useEffect(() => {
832
832
  for (let element of rangeElement) {
833
833
  element.style.marginLeft = `${range - 3}%`;
@@ -837,9 +837,9 @@ const Captcha = ({
837
837
 
838
838
  function sliderInput(event) {
839
839
  setData(rangeCount == event.target.value ? 'green' : 'indianred');
840
- let selector = document.getElementsByClassName(styles$1.selector);
841
- let selectBtn = document.getElementsByClassName(styles$1.selectBtn);
842
- let progressBar = document.getElementsByClassName(styles$1.progressBar);
840
+ let selector = document.getElementsByClassName(styles.selector);
841
+ let selectBtn = document.getElementsByClassName(styles.selectBtn);
842
+ let progressBar = document.getElementsByClassName(styles.progressBar);
843
843
  selector[0].style.left = event.target.value + '%';
844
844
  progressBar[0].style.width = event.target.value + '%';
845
845
 
@@ -855,23 +855,23 @@ const Captcha = ({
855
855
  }
856
856
 
857
857
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
858
- className: styles$1.main
858
+ className: styles.main
859
859
  }, /*#__PURE__*/React__default.createElement("div", {
860
- className: styles$1.range
860
+ className: styles.range
861
861
  }, "\u25BC"), /*#__PURE__*/React__default.createElement("input", {
862
862
  type: "range",
863
- className: styles$1.slider,
863
+ className: styles.slider,
864
864
  onClick: right ? onclick : null,
865
865
  onInput: sliderInput,
866
866
  onMouseUp: sliderChange
867
867
  }), /*#__PURE__*/React__default.createElement("div", {
868
- className: styles$1.selector
868
+ className: styles.selector
869
869
  }, /*#__PURE__*/React__default.createElement("div", {
870
- className: styles$1.selectBtn
870
+ className: styles.selectBtn
871
871
  })), /*#__PURE__*/React__default.createElement("div", {
872
- className: styles$1.progressBar
872
+ className: styles.progressBar
873
873
  }), /*#__PURE__*/React__default.createElement("div", {
874
- className: styles$1.range
874
+ className: styles.range
875
875
  }, "\u25B2")));
876
876
  };
877
877
  Captcha.propTypes = {
@@ -883,105 +883,4 @@ Captcha.defaultProps = {
883
883
  onclick: undefined
884
884
  };
885
885
 
886
- var css_248z = ".select-module_select-title__c8bR7{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:capitalize}.select-module_select-content__GCMDX{display:flex;flex-direction:column}.select-module_select-content-top__Aw-fB{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.select-module_select-content-top__Aw-fB.select-module_active__v2Dce{border-color:#00236a}.select-module_select-content-top__Aw-fB:hover{border-color:#3c393e}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);max-height:0;max-width:400px;overflow:hidden;position:relative;top:6px}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes select-module_select-show__391hQ{to{max-height:400px}}.select-module_select-content-top-text__euajq{align-items:center;display:flex;flex:1;flex-direction:row;flex-wrap:nowrap}.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>i{color:#3c393e;font-size:8px}.select-module_select-content-bottom-row__eKq5L{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_select-content-bottom-row__eKq5L:hover{background:unset;color:#00236a}";
887
- var styles = {"select-title":"select-module_select-title__c8bR7","select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","active":"select-module_active__v2Dce","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-text":"select-module_select-content-top-text__euajq","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
888
- styleInject(css_248z);
889
-
890
- const SelectTheme = {
891
- DEFAULT: 'select-default',
892
- PRIMARY: 'select-primary',
893
- SUCCESS: 'select-success',
894
- INFO: 'select-info',
895
- WARNING: 'select-warning',
896
- DANGER: 'select-danger',
897
- LINK: 'select-link'
898
- };
899
- const SelectSize = {
900
- SMALL: 'small',
901
- MEDIUM: 'medium',
902
- LARGE: 'large'
903
- };
904
- const Select = ({
905
- theme,
906
- size,
907
- className,
908
- disabled,
909
- label,
910
- jsonData,
911
- eMessage,
912
- required,
913
- defaultOption,
914
- onChange,
915
- selected
916
- }) => {
917
- const options = jsonData.length ? JSON.parse(jsonData) : [];
918
- let [opened, setOpened] = useState(false);
919
- let [newSelected, setNewSelected] = useState(selected);
920
- classnames(styles[theme], styles[size], {
921
- [styles.disabled]: disabled,
922
- [styles.required]: required
923
- }, className);
924
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
925
- className: styles['select-title']
926
- }, label) : "", /*#__PURE__*/React__default.createElement("div", {
927
- className: styles['select-wrap']
928
- }, /*#__PURE__*/React__default.createElement("div", {
929
- className: styles['select-content'],
930
- id: styles.selector
931
- }, /*#__PURE__*/React__default.createElement("div", {
932
- className: styles['select-content-top'],
933
- onClick: () => {
934
- setOpened(!opened);
935
- }
936
- }, /*#__PURE__*/React__default.createElement("div", {
937
- className: styles['select-content-top-text']
938
- }, newSelected?.name || defaultOption), /*#__PURE__*/React__default.createElement("div", {
939
- className: styles['select-content-top-icon']
940
- }, /*#__PURE__*/React__default.createElement(Icon, {
941
- className: opened ? 'icon-arrow-up' : 'icon-arrow-down'
942
- }))), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
943
- className: styles['select-content-bottom']
944
- }, /*#__PURE__*/React__default.createElement("div", {
945
- className: styles['select-content-bottom-inner']
946
- }, /*#__PURE__*/React__default.createElement("div", {
947
- className: styles['select-content-bottom-row'],
948
- onClick: () => {
949
- if (!required && !selected) {
950
- setNewSelected(defaultOption);
951
- onChange(defaultOption);
952
- setOpened(!opened);
953
- }
954
- }
955
- }, defaultOption), options?.map((option, i) => {
956
- return /*#__PURE__*/React__default.createElement("div", {
957
- className: styles['select-content-bottom-row'],
958
- disabled: true,
959
- onClick: () => {
960
- setNewSelected(option);
961
- onChange(option);
962
- setOpened(!opened);
963
- },
964
- defaultValue: option.id
965
- }, option.name);
966
- }))) : null)), eMessage ? /*#__PURE__*/React__default.createElement("span", {
967
- className: styles.eMessage
968
- }, eMessage) : null);
969
- };
970
- Select.propTypes = {
971
- theme: PropTypes.oneOf(Object.values(SelectTheme)),
972
- size: PropTypes.oneOf(Object.values(SelectSize)),
973
- label: PropTypes.string,
974
- eMessage: PropTypes.string,
975
- defaultOption: PropTypes.string,
976
- onChange: PropTypes.func,
977
- required: PropTypes.bool,
978
- disabled: PropTypes.bool,
979
- className: PropTypes.string,
980
- selected: PropTypes.object,
981
- jsonData: PropTypes.string
982
- };
983
- Select.defaultProps = {
984
- size: 'medium'
985
- };
986
-
987
- export { Autocomplate, Button, ButtonSize, ButtonTheme, ButtonType, Captcha, Checkbox, SvgHeartFilled as HeartFilled, SvgHeartOutline as HeartOutline, Input, InputSizes, InputTypes, SvgLikeFilled as LikeFilled, SvgLikeOutline as LikeOutline, Pagination, Radio, Select, SelectSize, SelectTheme, SvgStarFilled as StarFilled, SvgStarOutline as StarOutline, Typography, TypographyType };
886
+ export { Autocomplate, Button, ButtonSize, ButtonTheme, ButtonType, Captcha, Checkbox, SvgHeartFilled as HeartFilled, SvgHeartOutline as HeartOutline, Input, InputSizes, InputTypes, SvgLikeFilled as LikeFilled, SvgLikeOutline as LikeOutline, Pagination, Radio, SvgStarFilled as StarFilled, SvgStarOutline as StarOutline, Typography, TypographyType };
package/dist/index.js CHANGED
@@ -77,9 +77,9 @@ function styleInject(css, ref) {
77
77
  }
78
78
  }
79
79
 
80
- var css_248z$9 = ".button-module_btn__ffRtT{border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:20px;min-height:46px;outline:none;overflow:hidden;padding:12px 20px;text-transform:capitalize;transition:background-color .24s,color .24s}.button-module_btn__ffRtT.button-module_full-size__vmV2E{width:100%}.button-module_btn__ffRtT.button-module_content-size__f7JSE{width:auto}.button-module_btn__ffRtT.button-module_type-filled__BiyVo{background-color:#00236a;color:#fff}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:hover{background-color:#001745}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:disabled{background-color:#eee;color:#3c393e;pointer-events:none}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V{background-color:#fff;box-shadow:inset 0 0 0 2px #00236a}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:hover{background-color:#001745;color:#fff}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:disabled{box-shadow:inset 0 0 0 2px #eee;color:#3c393e;pointer-events:none}";
81
- var styles$7 = {"btn":"button-module_btn__ffRtT","full-size":"button-module_full-size__vmV2E","content-size":"button-module_content-size__f7JSE","size-default":"button-module_size-default__ydEgl","type-filled":"button-module_type-filled__BiyVo","with-icon":"button-module_with-icon__mfKU-","type-outline":"button-module_type-outline__RpZ2V"};
82
- styleInject(css_248z$9);
80
+ var css_248z$8 = ".button-module_btn__ffRtT{border:none;border-radius:6px;box-sizing:border-box;cursor:pointer;font-size:16px;line-height:20px;min-height:46px;outline:none;overflow:hidden;padding:12px 20px;text-transform:capitalize;transition:background-color .24s,color .24s}.button-module_btn__ffRtT.button-module_full-size__vmV2E{width:100%}.button-module_btn__ffRtT.button-module_content-size__f7JSE{width:auto}.button-module_btn__ffRtT.button-module_type-filled__BiyVo{background-color:#00236a;color:#fff}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:hover{background-color:#001745}.button-module_btn__ffRtT.button-module_type-filled__BiyVo:disabled{background-color:#eee;color:#3c393e;pointer-events:none}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V{background-color:#fff;box-shadow:inset 0 0 0 2px #00236a}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:hover{background-color:#001745;color:#fff}.button-module_btn__ffRtT.button-module_type-outline__RpZ2V:disabled{box-shadow:inset 0 0 0 2px #eee;color:#3c393e;pointer-events:none}";
81
+ var styles$6 = {"btn":"button-module_btn__ffRtT","full-size":"button-module_full-size__vmV2E","content-size":"button-module_content-size__f7JSE","size-default":"button-module_size-default__ydEgl","type-filled":"button-module_type-filled__BiyVo","with-icon":"button-module_with-icon__mfKU-","type-outline":"button-module_type-outline__RpZ2V"};
82
+ styleInject(css_248z$8);
83
83
 
84
84
  /**
85
85
  * Primary UI component for user interaction
@@ -115,9 +115,9 @@ const Button = ({
115
115
  outline,
116
116
  ...props
117
117
  }) => {
118
- console.log(styles$7);
118
+ console.log(styles$6);
119
119
  console.log(backgroundColor);
120
- const classProps = classnames__default["default"](styles$7.btn, styles$7[theme], styles$7[size], outline ? styles$7['type-outline'] : styles$7['type-filled'], className); // className='btn type-outline size-default'
120
+ const classProps = classnames__default["default"](styles$6.btn, styles$6[theme], styles$6[size], outline ? styles$6['type-outline'] : styles$6['type-filled'], className); // className='btn type-outline size-default'
121
121
 
122
122
  console.log(classProps);
123
123
  return /*#__PURE__*/React__default["default"].createElement("button", _extends({
@@ -169,8 +169,8 @@ Button.defaultProps = {
169
169
  outline: false
170
170
  };
171
171
 
172
- var css_248z$8 = "h1{font-size:70px;line-height:70px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:50px}h3{font-size:38px;font-weight:400;line-height:38px}h3,h4{text-transform:uppercase}h4{font-size:24px;font-weight:600;line-height:24px}h5{font-size:20px;font-size:16px;line-height:20px;line-height:22px;text-transform:uppercase}h5,p{font-weight:600;text-transform:capitalize}p{font-size:14px;line-height:20px}span{font-size:12px;font-weight:500;line-height:16px;text-transform:capitalize}i{font-family:icomoon;font-style:inherit}";
173
- styleInject(css_248z$8);
172
+ var css_248z$7 = "h1{font-size:70px;line-height:70px}h1,h2{font-weight:400;text-transform:uppercase}h2{font-size:50px;line-height:50px}h3{font-size:38px;font-weight:400;line-height:38px}h3,h4{text-transform:uppercase}h4{font-size:24px;font-weight:600;line-height:24px}h5{font-size:20px;font-size:16px;line-height:20px;line-height:22px;text-transform:uppercase}h5,p{font-weight:600;text-transform:capitalize}p{font-size:14px;line-height:20px}span{font-size:12px;font-weight:500;line-height:16px;text-transform:capitalize}i{font-family:icomoon;font-style:inherit}";
173
+ styleInject(css_248z$7);
174
174
 
175
175
  const TypographyType = {
176
176
  h1: 'h1',
@@ -219,9 +219,9 @@ Typography.defaultProps = {
219
219
  variant: 'h1'
220
220
  };
221
221
 
222
- var css_248z$7 = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);max-height:0;max-width:400px;overflow:hidden;position:relative;top:6px}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}";
223
- var styles$6 = {"autocomplate-content":"autocomplate-module_autocomplate-content__UbIUT","autocomplate-content-top":"autocomplate-module_autocomplate-content-top__FVgCp","active":"autocomplate-module_active__40fdV","autocomplate-content-bottom":"autocomplate-module_autocomplate-content-bottom__yk0zP","select-show":"autocomplate-module_select-show__7Uap4","autocomplate-content-bottom-inner":"autocomplate-module_autocomplate-content-bottom-inner__rF5IF","autocomplate-content-bottom-row":"autocomplate-module_autocomplate-content-bottom-row__dRsZa","no-option":"autocomplate-module_no-option__xv0-E","option-active":"autocomplate-module_option-active__WuH4I"};
224
- styleInject(css_248z$7);
222
+ var css_248z$6 = ".autocomplate-module_autocomplate-content__UbIUT{display:flex;flex-direction:column}.autocomplate-module_autocomplate-content-top__FVgCp{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.autocomplate-module_autocomplate-content-top__FVgCp.autocomplate-module_active__40fdV{border-color:#00236a}.autocomplate-module_autocomplate-content-top__FVgCp:hover{border-color:#3c393e}.autocomplate-module_autocomplate-content-bottom__yk0zP{animation:autocomplate-module_select-show__7Uap4 .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);max-height:0;max-width:400px;overflow:hidden;position:relative;top:6px}.autocomplate-module_autocomplate-content-bottom-inner__rF5IF{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes autocomplate-module_select-show__7Uap4{to{max-height:400px}}.autocomplate-module_autocomplate-content-bottom-row__dRsZa{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.autocomplate-module_autocomplate-content-bottom-row__dRsZa .autocomplate-module_no-option__xv0-E{color:red}.autocomplate-module_autocomplate-content-bottom-row__dRsZa:hover{background:unset;color:#00236a}.autocomplate-module_option-active__WuH4I .autocomplate-module_autocomplate-content-bottom-row__dRsZa{color:#00236a}";
223
+ var styles$5 = {"autocomplate-content":"autocomplate-module_autocomplate-content__UbIUT","autocomplate-content-top":"autocomplate-module_autocomplate-content-top__FVgCp","active":"autocomplate-module_active__40fdV","autocomplate-content-bottom":"autocomplate-module_autocomplate-content-bottom__yk0zP","select-show":"autocomplate-module_select-show__7Uap4","autocomplate-content-bottom-inner":"autocomplate-module_autocomplate-content-bottom-inner__rF5IF","autocomplate-content-bottom-row":"autocomplate-module_autocomplate-content-bottom-row__dRsZa","no-option":"autocomplate-module_no-option__xv0-E","option-active":"autocomplate-module_option-active__WuH4I"};
224
+ styleInject(css_248z$6);
225
225
 
226
226
  const Autocomplate = ({
227
227
  className,
@@ -234,7 +234,7 @@ const Autocomplate = ({
234
234
  searchCount,
235
235
  ...props
236
236
  }) => {
237
- classnames__default["default"](styles$6.searchBox, className);
237
+ classnames__default["default"](styles$5.searchBox, className);
238
238
  const [inputValue, setInputValue] = React$1.useState("");
239
239
  const [activeOption, setActiveOption] = React$1.useState(0);
240
240
  const [filteredOptions, setFilteredOptions] = React$1.useState([]);
@@ -262,9 +262,9 @@ const Autocomplate = ({
262
262
  if (showOptions && inputValue) {
263
263
  if (filteredOptions.length && inputValue.length >= searchCount) {
264
264
  optionList = /*#__PURE__*/React__default["default"].createElement("div", {
265
- className: styles$6['autocomplate-content-bottom']
265
+ className: styles$5['autocomplate-content-bottom']
266
266
  }, /*#__PURE__*/React__default["default"].createElement("div", {
267
- className: styles$6['autocomplate-content-bottom-inner']
267
+ className: styles$5['autocomplate-content-bottom-inner']
268
268
  }, filteredOptions.map((optionName, index) => {
269
269
  let className;
270
270
 
@@ -273,33 +273,33 @@ const Autocomplate = ({
273
273
  }
274
274
 
275
275
  return /*#__PURE__*/React__default["default"].createElement("div", {
276
- className: styles$6[className],
276
+ className: styles$5[className],
277
277
  key: optionName,
278
278
  onClick: handleClick
279
279
  }, /*#__PURE__*/React__default["default"].createElement("div", {
280
- className: styles$6['autocomplate-content-bottom-row']
280
+ className: styles$5['autocomplate-content-bottom-row']
281
281
  }, optionName));
282
282
  })));
283
283
  } else {
284
284
  optionList = /*#__PURE__*/React__default["default"].createElement("div", {
285
- className: styles$6['autocomplate-content-bottom']
285
+ className: styles$5['autocomplate-content-bottom']
286
286
  }, /*#__PURE__*/React__default["default"].createElement("div", {
287
- className: styles$6['autocomplate-content-bottom-inner']
287
+ className: styles$5['autocomplate-content-bottom-inner']
288
288
  }, /*#__PURE__*/React__default["default"].createElement("div", {
289
- className: styles$6['autocomplate-content-bottom-row']
289
+ className: styles$5['autocomplate-content-bottom-row']
290
290
  }, /*#__PURE__*/React__default["default"].createElement("div", {
291
- className: styles$6['no-option']
291
+ className: styles$5['no-option']
292
292
  }, "No Option!"))));
293
293
  }
294
294
  }
295
295
 
296
296
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
297
- className: styles$6.labelInput
297
+ className: styles$5.labelInput
298
298
  }, label) : "", /*#__PURE__*/React__default["default"].createElement("div", {
299
- className: styles$6['autocomplate-content']
299
+ className: styles$5['autocomplate-content']
300
300
  }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
301
301
  type: "text",
302
- className: styles$6['autocomplate-content-top'],
302
+ className: styles$5['autocomplate-content-top'],
303
303
  required: required,
304
304
  disabled: disabled,
305
305
  onChange: handleChange,
@@ -322,9 +322,9 @@ Autocomplate.defaultProps = {
322
322
  searchCount: 2
323
323
  };
324
324
 
325
- var css_248z$6 = ".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;display:inline-block;height:14px;left:0;margin-right:4px;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}";
326
- var styles$5 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
327
- styleInject(css_248z$6);
325
+ var css_248z$5 = ".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;display:inline-block;height:14px;left:0;margin-right:4px;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}";
326
+ var styles$4 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
327
+ styleInject(css_248z$5);
328
328
 
329
329
  const Checkbox = ({
330
330
  disabled,
@@ -338,7 +338,7 @@ const Checkbox = ({
338
338
  keyNames,
339
339
  ...props
340
340
  }) => {
341
- const classProps = classnames__default["default"](styles$5.checkbox, className);
341
+ const classProps = classnames__default["default"](styles$4.checkbox, className);
342
342
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
343
343
  const [data, setData] = React$1.useState(parseData);
344
344
 
@@ -362,7 +362,7 @@ const Checkbox = ({
362
362
 
363
363
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, data.map(element => {
364
364
  return /*#__PURE__*/React__default["default"].createElement("label", {
365
- className: styles$5["checkbox-wrap"],
365
+ className: styles$4["checkbox-wrap"],
366
366
  key: element.value
367
367
  }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
368
368
  type: "checkbox",
@@ -373,9 +373,9 @@ const Checkbox = ({
373
373
  name: name ? name : element.name,
374
374
  onChange: handleChange
375
375
  }, props)), /*#__PURE__*/React__default["default"].createElement("span", {
376
- className: styles$5["checkmark"]
376
+ className: styles$4["checkmark"]
377
377
  }), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
378
- className: styles$5.labelRadio
378
+ className: styles$4.labelRadio
379
379
  }, label ? label : element.label) : "");
380
380
  }));
381
381
  };
@@ -534,9 +534,9 @@ const SvgStarOutline = ({
534
534
  d: "m12 2 3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"
535
535
  }));
536
536
 
537
- var css_248z$5 = ".input-module_input-wrap__NunrE{position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;text-transform:capitalize;transition:background-color .24s,color .24s}.input-module_input__-ipHD.input-module_full-size__38YG7{width:100%}.input-module_input__-ipHD.input-module_content-size__rZ5EA{width:auto}.input-module_input__-ipHD.input-module_size-medium__frTDq{min-height:46px;padding:12px 15px}.input-module_input__-ipHD:hover{box-shadow:inset 0 0 0 2px #3c393e}.input-module_input__-ipHD:active{box-shadow:inset 0 0 0 2px #00236a}.input-module_inputErrorMessages__hx490{animation:input-module_error-message-show__OrVSo .24s forwards;bottom:0;color:#e00;font-size:14px;left:0;line-height:19px;position:absolute;transform:scale3d(0,0,0);z-index:1}.input-module_labelInput__sUMKQ{color:#000}.input-module_input__-ipHD.input-module_state-disabled__402v0{background-color:#fbfbfb;pointer-events:none}.input-module_input__-ipHD.input-module_error-message__7NphF{box-shadow:inset 0 0 0 2px #e00}@keyframes input-module_error-message-show__OrVSo{to{bottom:-20px;transform:scaleX(1)}}";
538
- var styles$4 = {"input-wrap":"input-module_input-wrap__NunrE","input":"input-module_input__-ipHD","full-size":"input-module_full-size__38YG7","content-size":"input-module_content-size__rZ5EA","size-medium":"input-module_size-medium__frTDq","with-icon":"input-module_with-icon__w3jTW","inputErrorMessages":"input-module_inputErrorMessages__hx490","error-message-show":"input-module_error-message-show__OrVSo","labelInput":"input-module_labelInput__sUMKQ","state-disabled":"input-module_state-disabled__402v0","error-message":"input-module_error-message__7NphF"};
539
- styleInject(css_248z$5);
537
+ var css_248z$4 = ".input-module_input-wrap__NunrE{position:relative}.input-module_input__-ipHD{border:none;border-radius:6px;box-shadow:inset 0 0 0 2px #d1d1d1;box-sizing:border-box;color:#3c393e;cursor:pointer;font-size:16px;line-height:20px;outline:none;overflow:hidden;text-transform:capitalize;transition:background-color .24s,color .24s}.input-module_input__-ipHD.input-module_full-size__38YG7{width:100%}.input-module_input__-ipHD.input-module_content-size__rZ5EA{width:auto}.input-module_input__-ipHD.input-module_size-medium__frTDq{min-height:46px;padding:12px 15px}.input-module_input__-ipHD:hover{box-shadow:inset 0 0 0 2px #3c393e}.input-module_input__-ipHD:active{box-shadow:inset 0 0 0 2px #00236a}.input-module_inputErrorMessages__hx490{animation:input-module_error-message-show__OrVSo .24s forwards;bottom:0;color:#e00;font-size:14px;left:0;line-height:19px;position:absolute;transform:scale3d(0,0,0);z-index:1}.input-module_labelInput__sUMKQ{color:#000}.input-module_input__-ipHD.input-module_state-disabled__402v0{background-color:#fbfbfb;pointer-events:none}.input-module_input__-ipHD.input-module_error-message__7NphF{box-shadow:inset 0 0 0 2px #e00}@keyframes input-module_error-message-show__OrVSo{to{bottom:-20px;transform:scaleX(1)}}";
538
+ var styles$3 = {"input-wrap":"input-module_input-wrap__NunrE","input":"input-module_input__-ipHD","full-size":"input-module_full-size__38YG7","content-size":"input-module_content-size__rZ5EA","size-medium":"input-module_size-medium__frTDq","with-icon":"input-module_with-icon__w3jTW","inputErrorMessages":"input-module_inputErrorMessages__hx490","error-message-show":"input-module_error-message-show__OrVSo","labelInput":"input-module_labelInput__sUMKQ","state-disabled":"input-module_state-disabled__402v0","error-message":"input-module_error-message__7NphF"};
539
+ styleInject(css_248z$4);
540
540
 
541
541
  const InputTypes = {
542
542
  TEXT: "text",
@@ -578,11 +578,11 @@ const Input = ({
578
578
  eMessage = regex.test(inputValue) ? "" : regexpError;
579
579
  }
580
580
 
581
- const classProps = classnames__default["default"](styles$4.input, styles$4[size], eMessage != '' ? styles$4['error-message'] : "", className);
581
+ const classProps = classnames__default["default"](styles$3.input, styles$3[size], eMessage != '' ? styles$3['error-message'] : "", className);
582
582
  return /*#__PURE__*/React__default["default"].createElement("div", {
583
- className: styles$4['input-wrap']
583
+ className: styles$3['input-wrap']
584
584
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
585
- className: styles$4.labelInput
585
+ className: styles$3.labelInput
586
586
  }, label) : "", /*#__PURE__*/React__default["default"].createElement("input", _extends({}, props, {
587
587
  type: type,
588
588
  className: classProps,
@@ -593,7 +593,7 @@ const Input = ({
593
593
  onChange: handleChange,
594
594
  value: inputValue
595
595
  })), eMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
596
- className: styles$4.inputErrorMessages
596
+ className: styles$3.inputErrorMessages
597
597
  }, eMessage) : "");
598
598
  };
599
599
  Input.propTypes = {
@@ -619,9 +619,9 @@ Input.defaultProps = {
619
619
  type: "text"
620
620
  };
621
621
 
622
- var css_248z$4 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:16px;line-height:22px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}";
623
- var styles$3 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
624
- styleInject(css_248z$4);
622
+ var css_248z$3 = ".pagination-module_listItem__b1-WN:focus{background-color:#4caf50;color:#fff}.pagination-module_listItem__b1-WN:hover:not(.pagination-module_active__KwBDp){background-color:#ddd}.pagination-module_pagination-bar__MrtYT{display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px}.pagination-module_pagination-btn__w8Yh8{border:none;border-radius:6px;outline:none}.pagination-module_pagination-btn__w8Yh8,.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{align-items:center;background-color:#fff;box-shadow:0 0 0 1px #eee;cursor:pointer;display:flex;height:34px;justify-content:center;width:34px}.pagination-module_pagination-item__t3emS,.pagination-module_pagination-jump-next__LAb9Z{border-radius:6px;flex:0 0 auto;font-size:16px;line-height:22px;position:relative;transition:background-color .24s}.pagination-module_pagination-item__t3emS:hover{background-color:#eee}.pagination-module_pagination-item__t3emS.pagination-module_selected__EXzCA{background-color:#00236a;color:#fff}.pagination-module_pagination-jump-next-arrow__aEVD8,.pagination-module_pagination-jump-next-txt__e7nFj{align-items:center;bottom:0;display:flex;font-size:12px;justify-content:center;left:0;line-height:14px;margin:auto;position:absolute;right:0;top:0;transition:opacity .24s,color .24s}.pagination-module_pagination-jump-next-arrow__aEVD8{opacity:0}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-arrow__aEVD8{opacity:1}.pagination-module_pagination-jump-next__LAb9Z:hover .pagination-module_pagination-jump-next-txt__e7nFj{opacity:0}i{color:#3c393e;font-size:12px;line-height:12px}";
623
+ var styles$2 = {"listItem":"pagination-module_listItem__b1-WN","active":"pagination-module_active__KwBDp","pagination-bar":"pagination-module_pagination-bar__MrtYT","pagination-btn":"pagination-module_pagination-btn__w8Yh8","pagination-item":"pagination-module_pagination-item__t3emS","pagination-jump-next":"pagination-module_pagination-jump-next__LAb9Z","selected":"pagination-module_selected__EXzCA","pagination-jump-next-txt":"pagination-module_pagination-jump-next-txt__e7nFj","pagination-jump-next-arrow":"pagination-module_pagination-jump-next-arrow__aEVD8"};
624
+ styleInject(css_248z$3);
625
625
 
626
626
  const Dots = "...";
627
627
 
@@ -674,15 +674,15 @@ const PaginationRange = ({
674
674
  return paginationRange;
675
675
  };
676
676
 
677
- var css_248z$3 = "@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:url(fonts/icomoon.eot?b29ky3);src:url(fonts/icomoon.eot?b29ky3#iefix) format(\"embedded-opentype\"),url(fonts/icomoon.ttf?b29ky3) format(\"truetype\"),url(fonts/icomoon.woff?b29ky3) format(\"woff\"),url(fonts/icomoon.svg?b29ky3#icomoon) format(\"svg\")}[class*=\" icon-\"],[class^=icon-]{speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-close:before{content:\"\\e907\"}.icon-arrow-up:before{content:\"\\e905\"}.icon-arrow-down:before{content:\"\\e906\"}.icon-arrow:before{content:\"\\e900\"}.icon-arrow-jump-next:before{content:\"\\e901\"}.icon-arrow-jump-back:before{content:\"\\e902\"}.icon-text:before{content:\"\\e903\"}.icon-arrow-back:before{content:\"\\e904\"}";
678
- styleInject(css_248z$3);
677
+ var css_248z$2 = "@font-face{font-display:block;font-family:icomoon;font-style:normal;font-weight:400;src:url(fonts/icomoon.eot?b29ky3);src:url(fonts/icomoon.eot?b29ky3#iefix) format(\"embedded-opentype\"),url(fonts/icomoon.ttf?b29ky3) format(\"truetype\"),url(fonts/icomoon.woff?b29ky3) format(\"woff\"),url(fonts/icomoon.svg?b29ky3#icomoon) format(\"svg\")}[class*=\" icon-\"],[class^=icon-]{speak:never;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:icomoon!important;font-style:normal;font-variant:normal;font-weight:400;line-height:1;text-transform:none}.icon-close:before{content:\"\\e907\"}.icon-arrow-up:before{content:\"\\e905\"}.icon-arrow-down:before{content:\"\\e906\"}.icon-arrow:before{content:\"\\e900\"}.icon-arrow-jump-next:before{content:\"\\e901\"}.icon-arrow-jump-back:before{content:\"\\e902\"}.icon-text:before{content:\"\\e903\"}.icon-arrow-back:before{content:\"\\e904\"}";
678
+ styleInject(css_248z$2);
679
679
 
680
680
  /**
681
681
  * Created by aleksanyan.tigran on 10/7/2022.
682
682
  */
683
683
 
684
684
  const Icon = props => /*#__PURE__*/React.createElement("i", {
685
- className: css_248z$3[props.className]
685
+ className: css_248z$2[props.className]
686
686
  });
687
687
 
688
688
  const Pagination = ({
@@ -722,7 +722,7 @@ const Pagination = ({
722
722
  return null;
723
723
  }
724
724
 
725
- const classProps = classnames__default["default"](styles$3.list, className ? className : styles$3["pagination-bar"]);
725
+ const classProps = classnames__default["default"](styles$2.list, className ? className : styles$2["pagination-bar"]);
726
726
 
727
727
  const onNext = () => {
728
728
  onPageChange(currentPageNumber + 1);
@@ -744,7 +744,7 @@ const Pagination = ({
744
744
  return /*#__PURE__*/React$1.React.createElement("ul", {
745
745
  className: classProps
746
746
  }, /*#__PURE__*/React$1.React.createElement("button", {
747
- className: styles$3["pagination-btn"],
747
+ className: styles$2["pagination-btn"],
748
748
  onClick: onPrevious,
749
749
  disabled: currentPage === 1 ? true : false
750
750
  }, /*#__PURE__*/React$1.React.createElement(Icon, {
@@ -754,13 +754,13 @@ const Pagination = ({
754
754
  let currentPageIndex = paginationRange.indexOf(currentPageNumber);
755
755
  return /*#__PURE__*/React$1.React.createElement("li", {
756
756
  key: id,
757
- className: classnames__default["default"](styles$3['pagination-jump-next'], styles$3.listItem),
757
+ className: classnames__default["default"](styles$2['pagination-jump-next'], styles$2.listItem),
758
758
  onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
759
759
  disabled: currentPageIndex === 0 ? true : false
760
760
  }, /*#__PURE__*/React$1.React.createElement("span", {
761
- className: styles$3['pagination-jump-next-txt']
761
+ className: styles$2['pagination-jump-next-txt']
762
762
  }, "..."), /*#__PURE__*/React$1.React.createElement("span", {
763
- className: styles$3['pagination-jump-next-arrow']
763
+ className: styles$2['pagination-jump-next-arrow']
764
764
  }, /*#__PURE__*/React$1.React.createElement(Icon, {
765
765
  className: "icon-arrow-jump-next"
766
766
  })));
@@ -769,11 +769,11 @@ const Pagination = ({
769
769
  return /*#__PURE__*/React$1.React.createElement("li", {
770
770
  onClick: () => onPageChange(pageNumber),
771
771
  key: id,
772
- className: classnames__default["default"](`${pageNumber === currentPageNumber ? styles$3.selected : styles$3.listItem}`, styles$3['pagination-item'])
772
+ className: classnames__default["default"](`${pageNumber === currentPageNumber ? styles$2.selected : styles$2.listItem}`, styles$2['pagination-item'])
773
773
  }, pageNumber);
774
774
  }), /*#__PURE__*/React$1.React.createElement("button", {
775
775
  onClick: onNext,
776
- className: styles$3["pagination-btn"],
776
+ className: styles$2["pagination-btn"],
777
777
  disabled: currentPageNumber === lastPage ? true : false
778
778
  }, /*#__PURE__*/React$1.React.createElement(Icon, {
779
779
  className: "icon-arrow"
@@ -791,9 +791,9 @@ Pagination.defaultProps = {
791
791
  siblingCount: 2
792
792
  };
793
793
 
794
- var css_248z$2 = ".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}";
795
- var styles$2 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
796
- styleInject(css_248z$2);
794
+ var css_248z$1 = ".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}";
795
+ var styles$1 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
796
+ styleInject(css_248z$1);
797
797
 
798
798
  const Radio = ({
799
799
  disabled,
@@ -807,11 +807,11 @@ const Radio = ({
807
807
  keyNames,
808
808
  ...props
809
809
  }) => {
810
- const classProps = classnames__default["default"](styles$2.checkbox, className);
810
+ const classProps = classnames__default["default"](styles$1.checkbox, className);
811
811
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
812
812
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, parseData.map((element, id) => {
813
813
  return /*#__PURE__*/React__default["default"].createElement("label", {
814
- className: styles$2["radio-wrap"],
814
+ className: styles$1["radio-wrap"],
815
815
  key: element.value
816
816
  }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
817
817
  type: "radio",
@@ -822,9 +822,9 @@ const Radio = ({
822
822
  value: value ? value : element.value,
823
823
  name: name ? name : element.name
824
824
  }, props)), /*#__PURE__*/React__default["default"].createElement("span", {
825
- className: styles$2["radio-checkmark"]
825
+ className: styles$1["radio-checkmark"]
826
826
  }), element.label ? /*#__PURE__*/React__default["default"].createElement("span", {
827
- className: styles$2.labelRadio
827
+ className: styles$1.labelRadio
828
828
  }, label ? label : element.label) : "");
829
829
  }));
830
830
  };
@@ -845,9 +845,9 @@ Radio.defaultProps = {
845
845
  jsonData: '[{"value":"email", "name":"contact", "label":"Email", "id":"contactChoice1"}, {"value":"phone", "name":"contact", "label":"Phone", "id":"contactChoice2"}]'
846
846
  };
847
847
 
848
- var css_248z$1 = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{margin:0;padding:0;position:relative;width:40%}.captcha-module_slider__KLYny{-webkit-appearance:none;background-color:hsla(0,0%,100%,.575);border:.1px solid hsla(0,0%,59%,.432);height:7px;outline:none;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:48px;position:relative;width:48px;z-index:3}.captcha-module_selector__JFhb4{bottom:-20px;height:48px;left:50%;position:absolute;width:48px;z-index:2}.captcha-module_selectBtn__GP1iH{background-image:url(https://i.ibb.co/rQZNNzN/blue.png);background-position:50%;background-size:cover;border-radius:50%;bottom:40px;height:40px;position:absolute;right:30px;width:40px}.captcha-module_progressBar__mhdtM{background:#7070ee;bottom:38px;height:7px;left:0;margin:0;padding:0;position:absolute;width:50%}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
849
- var styles$1 = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
850
- styleInject(css_248z$1);
848
+ var css_248z = "*{margin:0;padding:0}.captcha-module_main__Ys3EH{margin:0;padding:0;position:relative;width:40%}.captcha-module_slider__KLYny{-webkit-appearance:none;background-color:hsla(0,0%,100%,.575);border:.1px solid hsla(0,0%,59%,.432);height:7px;outline:none;width:100%}.captcha-module_slider__KLYny::-webkit-slider-thumb{-webkit-appearance:none;height:48px;position:relative;width:48px;z-index:3}.captcha-module_selector__JFhb4{bottom:-20px;height:48px;left:50%;position:absolute;width:48px;z-index:2}.captcha-module_selectBtn__GP1iH{background-image:url(https://i.ibb.co/rQZNNzN/blue.png);background-position:50%;background-size:cover;border-radius:50%;bottom:40px;height:40px;position:absolute;right:30px;width:40px}.captcha-module_progressBar__mhdtM{background:#7070ee;bottom:38px;height:7px;left:0;margin:0;padding:0;position:absolute;width:50%}.captcha-module_range__k24I2{color:blue;margin-bottom:15px;margin-top:15px}";
849
+ var styles = {"main":"captcha-module_main__Ys3EH","slider":"captcha-module_slider__KLYny","selector":"captcha-module_selector__JFhb4","selectBtn":"captcha-module_selectBtn__GP1iH","progressBar":"captcha-module_progressBar__mhdtM","range":"captcha-module_range__k24I2"};
850
+ styleInject(css_248z);
851
851
 
852
852
  const Captcha = ({
853
853
  onclick,
@@ -856,7 +856,7 @@ const Captcha = ({
856
856
  const [data, setData] = React$1.useState("");
857
857
  const [right, setRight] = React$1.useState(false);
858
858
  let range = rangeCount <= 100 ? rangeCount : 0;
859
- let rangeElement = document.getElementsByClassName(styles$1.range);
859
+ let rangeElement = document.getElementsByClassName(styles.range);
860
860
  React$1.useEffect(() => {
861
861
  for (let element of rangeElement) {
862
862
  element.style.marginLeft = `${range - 3}%`;
@@ -866,9 +866,9 @@ const Captcha = ({
866
866
 
867
867
  function sliderInput(event) {
868
868
  setData(rangeCount == event.target.value ? 'green' : 'indianred');
869
- let selector = document.getElementsByClassName(styles$1.selector);
870
- let selectBtn = document.getElementsByClassName(styles$1.selectBtn);
871
- let progressBar = document.getElementsByClassName(styles$1.progressBar);
869
+ let selector = document.getElementsByClassName(styles.selector);
870
+ let selectBtn = document.getElementsByClassName(styles.selectBtn);
871
+ let progressBar = document.getElementsByClassName(styles.progressBar);
872
872
  selector[0].style.left = event.target.value + '%';
873
873
  progressBar[0].style.width = event.target.value + '%';
874
874
 
@@ -884,23 +884,23 @@ const Captcha = ({
884
884
  }
885
885
 
886
886
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
887
- className: styles$1.main
887
+ className: styles.main
888
888
  }, /*#__PURE__*/React__default["default"].createElement("div", {
889
- className: styles$1.range
889
+ className: styles.range
890
890
  }, "\u25BC"), /*#__PURE__*/React__default["default"].createElement("input", {
891
891
  type: "range",
892
- className: styles$1.slider,
892
+ className: styles.slider,
893
893
  onClick: right ? onclick : null,
894
894
  onInput: sliderInput,
895
895
  onMouseUp: sliderChange
896
896
  }), /*#__PURE__*/React__default["default"].createElement("div", {
897
- className: styles$1.selector
897
+ className: styles.selector
898
898
  }, /*#__PURE__*/React__default["default"].createElement("div", {
899
- className: styles$1.selectBtn
899
+ className: styles.selectBtn
900
900
  })), /*#__PURE__*/React__default["default"].createElement("div", {
901
- className: styles$1.progressBar
901
+ className: styles.progressBar
902
902
  }), /*#__PURE__*/React__default["default"].createElement("div", {
903
- className: styles$1.range
903
+ className: styles.range
904
904
  }, "\u25B2")));
905
905
  };
906
906
  Captcha.propTypes = {
@@ -912,107 +912,6 @@ Captcha.defaultProps = {
912
912
  onclick: undefined
913
913
  };
914
914
 
915
- var css_248z = ".select-module_select-title__c8bR7{color:#3c393e;display:block;font-size:16px;font-weight:500;line-height:22px;margin-bottom:6px;text-transform:capitalize}.select-module_select-content__GCMDX{display:flex;flex-direction:column}.select-module_select-content-top__Aw-fB{border:2px solid #d1d1d1;border-radius:6px;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:500;height:46px;line-height:22px;max-width:400px;padding:0 15px;transition:border-color .24s}.select-module_select-content-top__Aw-fB.select-module_active__v2Dce{border-color:#00236a}.select-module_select-content-top__Aw-fB:hover{border-color:#3c393e}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;background:#fbfbfb;border-radius:6px;box-shadow:0 0 10px rgba(60,57,62,.08);max-height:0;max-width:400px;overflow:hidden;position:relative;top:6px}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}@keyframes select-module_select-show__391hQ{to{max-height:400px}}.select-module_select-content-top-text__euajq{align-items:center;display:flex;flex:1;flex-direction:row;flex-wrap:nowrap}.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>i{color:#3c393e;font-size:8px}.select-module_select-content-bottom-row__eKq5L{align-items:center;background:#fff;box-sizing:border-box;color:#3c393e;cursor:pointer;display:flex;font-size:16px;font-weight:500;height:46px;line-height:22px;margin-bottom:2px;padding:0 15px;transition:background .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}.select-module_select-content-bottom-row__eKq5L:hover{background:unset;color:#00236a}";
916
- var styles = {"select-title":"select-module_select-title__c8bR7","select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","active":"select-module_active__v2Dce","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-text":"select-module_select-content-top-text__euajq","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
917
- styleInject(css_248z);
918
-
919
- const SelectTheme = {
920
- DEFAULT: 'select-default',
921
- PRIMARY: 'select-primary',
922
- SUCCESS: 'select-success',
923
- INFO: 'select-info',
924
- WARNING: 'select-warning',
925
- DANGER: 'select-danger',
926
- LINK: 'select-link'
927
- };
928
- const SelectSize = {
929
- SMALL: 'small',
930
- MEDIUM: 'medium',
931
- LARGE: 'large'
932
- };
933
- const Select = ({
934
- theme,
935
- size,
936
- className,
937
- disabled,
938
- label,
939
- jsonData,
940
- eMessage,
941
- required,
942
- defaultOption,
943
- onChange,
944
- selected
945
- }) => {
946
- const options = jsonData.length ? JSON.parse(jsonData) : [];
947
- let [opened, setOpened] = React$1.useState(false);
948
- let [newSelected, setNewSelected] = React$1.useState(selected);
949
- classnames__default["default"](styles[theme], styles[size], {
950
- [styles.disabled]: disabled,
951
- [styles.required]: required
952
- }, className);
953
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
954
- className: styles['select-title']
955
- }, label) : "", /*#__PURE__*/React__default["default"].createElement("div", {
956
- className: styles['select-wrap']
957
- }, /*#__PURE__*/React__default["default"].createElement("div", {
958
- className: styles['select-content'],
959
- id: styles.selector
960
- }, /*#__PURE__*/React__default["default"].createElement("div", {
961
- className: styles['select-content-top'],
962
- onClick: () => {
963
- setOpened(!opened);
964
- }
965
- }, /*#__PURE__*/React__default["default"].createElement("div", {
966
- className: styles['select-content-top-text']
967
- }, newSelected?.name || defaultOption), /*#__PURE__*/React__default["default"].createElement("div", {
968
- className: styles['select-content-top-icon']
969
- }, /*#__PURE__*/React__default["default"].createElement(Icon, {
970
- className: opened ? 'icon-arrow-up' : 'icon-arrow-down'
971
- }))), opened && !disabled ? /*#__PURE__*/React__default["default"].createElement("div", {
972
- className: styles['select-content-bottom']
973
- }, /*#__PURE__*/React__default["default"].createElement("div", {
974
- className: styles['select-content-bottom-inner']
975
- }, /*#__PURE__*/React__default["default"].createElement("div", {
976
- className: styles['select-content-bottom-row'],
977
- onClick: () => {
978
- if (!required && !selected) {
979
- setNewSelected(defaultOption);
980
- onChange(defaultOption);
981
- setOpened(!opened);
982
- }
983
- }
984
- }, defaultOption), options?.map((option, i) => {
985
- return /*#__PURE__*/React__default["default"].createElement("div", {
986
- className: styles['select-content-bottom-row'],
987
- disabled: true,
988
- onClick: () => {
989
- setNewSelected(option);
990
- onChange(option);
991
- setOpened(!opened);
992
- },
993
- defaultValue: option.id
994
- }, option.name);
995
- }))) : null)), eMessage ? /*#__PURE__*/React__default["default"].createElement("span", {
996
- className: styles.eMessage
997
- }, eMessage) : null);
998
- };
999
- Select.propTypes = {
1000
- theme: PropTypes__default["default"].oneOf(Object.values(SelectTheme)),
1001
- size: PropTypes__default["default"].oneOf(Object.values(SelectSize)),
1002
- label: PropTypes__default["default"].string,
1003
- eMessage: PropTypes__default["default"].string,
1004
- defaultOption: PropTypes__default["default"].string,
1005
- onChange: PropTypes__default["default"].func,
1006
- required: PropTypes__default["default"].bool,
1007
- disabled: PropTypes__default["default"].bool,
1008
- className: PropTypes__default["default"].string,
1009
- selected: PropTypes__default["default"].object,
1010
- jsonData: PropTypes__default["default"].string
1011
- };
1012
- Select.defaultProps = {
1013
- size: 'medium'
1014
- };
1015
-
1016
915
  exports.Autocomplate = Autocomplate;
1017
916
  exports.Button = Button;
1018
917
  exports.ButtonSize = ButtonSize;
@@ -1029,9 +928,6 @@ exports.LikeFilled = SvgLikeFilled;
1029
928
  exports.LikeOutline = SvgLikeOutline;
1030
929
  exports.Pagination = Pagination;
1031
930
  exports.Radio = Radio;
1032
- exports.Select = Select;
1033
- exports.SelectSize = SelectSize;
1034
- exports.SelectTheme = SelectTheme;
1035
931
  exports.StarFilled = SvgStarFilled;
1036
932
  exports.StarOutline = SvgStarOutline;
1037
933
  exports.Typography = Typography;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/index.js CHANGED
@@ -7,4 +7,4 @@ export * from './components/input';
7
7
  export * from './components/pagination';
8
8
  export * from './components/radio';
9
9
  export * from './components/captcha';
10
- export * from './components/select';
10
+ // export * from './components/select';