@xaypay/tui 0.0.61 → 0.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/index.es.js +518 -209
  2. package/dist/index.js +414 -84
  3. package/package.json +3 -2
  4. package/src/assets/icons/toaster-close.svg +3 -0
  5. package/src/assets/icons/toaster-error.svg +3 -0
  6. package/src/assets/icons/toaster-info.svg +3 -0
  7. package/src/assets/icons/toaster-success.svg +3 -0
  8. package/src/assets/icons/toaster-warning.svg +3 -0
  9. package/src/components/file/index.js +9 -6
  10. package/src/components/icon/Arrow.js +19 -0
  11. package/src/components/icon/CheckboxChecked.js +21 -0
  12. package/src/components/icon/CheckboxUnchecked.js +21 -0
  13. package/src/components/icon/CloseIcon.js +19 -0
  14. package/src/components/icon/ToasterClose.js +19 -0
  15. package/src/components/icon/ToasterError.js +19 -0
  16. package/src/components/icon/ToasterInfo.js +19 -0
  17. package/src/components/icon/ToasterSuccess.js +19 -0
  18. package/src/components/icon/ToasterWarning.js +19 -0
  19. package/src/components/icon/Tooltip.js +19 -0
  20. package/src/components/icon/index.js +10 -6
  21. package/src/components/input/index.js +3 -1
  22. package/src/components/input/input.stories.js +5 -0
  23. package/src/components/select/index.js +24 -9
  24. package/src/components/select/select.module.css +3 -2
  25. package/src/components/toaster/Toast.js +179 -0
  26. package/src/components/toaster/index.js +72 -0
  27. package/src/components/toaster/toaster.module.css +188 -0
  28. package/src/components/toaster/toaster.stories.js +296 -0
  29. package/src/index.js +2 -1
  30. package/src/stories/configuration.stories.mdx +16 -0
  31. package/src/stories/static/select-usage.png +0 -0
  32. package/src/stories/static/toaster-container-usage.png +0 -0
  33. package/src/stories/static/toaster-usage.png +0 -0
  34. package/src/stories/usage.stories.mdx +16 -1
  35. package/src/components/icon/LikeFilled.js +0 -24
  36. package/src/components/icon/LikeOutline.js +0 -24
  37. package/src/components/icon/StarFilled.js +0 -24
  38. package/src/components/icon/StarOutline.js +0 -24
package/dist/index.es.js CHANGED
@@ -1,7 +1,9 @@
1
- import React, { useState, useEffect, useRef, createRef, useMemo } from 'react';
1
+ import * as React from 'react';
2
+ import React__default, { useState, useEffect, useRef, createRef, useMemo } from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import classnames from 'classnames';
4
5
  import styled, { keyframes, css } from 'styled-components';
6
+ import ReactDOM from 'react-dom';
5
7
 
6
8
  function styleInject(css, ref) {
7
9
  if ( ref === void 0 ) ref = {};
@@ -30,12 +32,12 @@ function styleInject(css, ref) {
30
32
  }
31
33
  }
32
34
 
33
- var css_248z$c = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{bottom:0;display:block;height:190px;left:0;margin:auto;max-height:190px;position:absolute;right:0;top:0;width:auto}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
34
- var styles$b = {"file-form-wrap":"file-module_file-form-wrap__qY--B","file-form":"file-module_file-form__l13d5","active":"file-module_active__L1gPt","delete-upload-icon":"file-module_delete-upload-icon__PWN66","file-form-inner-upload":"file-module_file-form-inner-upload__tq3Dn","upload-info":"file-module_upload-info__a8GFs","upload-info-txt":"file-module_upload-info-txt__l11uN","default":"file-module_default__t7KU0","error":"file-module_error__H-M4Z","accept":"file-module_accept__WTW6V","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
35
- styleInject(css_248z$c);
35
+ var css_248z$d = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{bottom:0;display:block;height:190px;left:0;margin:auto;max-height:190px;position:absolute;right:0;top:0;width:auto}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
36
+ var styles$c = {"file-form-wrap":"file-module_file-form-wrap__qY--B","file-form":"file-module_file-form__l13d5","active":"file-module_active__L1gPt","delete-upload-icon":"file-module_delete-upload-icon__PWN66","file-form-inner-upload":"file-module_file-form-inner-upload__tq3Dn","upload-info":"file-module_upload-info__a8GFs","upload-info-txt":"file-module_upload-info-txt__l11uN","default":"file-module_default__t7KU0","error":"file-module_error__H-M4Z","accept":"file-module_accept__WTW6V","upload-file-content":"file-module_upload-file-content__QHMjn","file-form-title":"file-module_file-form-title__zWTSB"};
37
+ styleInject(css_248z$d);
36
38
 
37
- var css_248z$b = "";
38
- styleInject(css_248z$b);
39
+ var css_248z$c = "";
40
+ styleInject(css_248z$c);
39
41
 
40
42
  const File = ({
41
43
  name,
@@ -97,46 +99,46 @@ const File = ({
97
99
  setFileName('no selected file');
98
100
  document.querySelector(`.${name}`).value = "";
99
101
  };
100
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("p", {
101
- className: `${styles$b['file-form-title']} ile-form-title-rem`
102
- }, label, " ", required && /*#__PURE__*/React.createElement("sup", {
102
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
103
+ className: `${styles$c['file-form-title']} ile-form-title-rem`
104
+ }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
103
105
  style: {
104
106
  color: "#ee0000"
105
107
  }
106
- }, "*")), /*#__PURE__*/React.createElement("div", {
107
- className: classnames(`${styles$b['file-form-wrap']} file-form-wrap-rem`, image ? styles$b['active'] : '')
108
- }, /*#__PURE__*/React.createElement("div", {
108
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
109
+ className: classnames(`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
110
+ }, /*#__PURE__*/React__default.createElement("div", {
109
111
  onChange: e => console.log(e),
110
- className: `${styles$b['file-form']} file-form-rem ${errorMessage ? styles$b['error'] : ''}`,
112
+ className: `${styles$c['file-form']} file-form-rem ${errorMessage ? styles$c['error'] : ''}`,
111
113
  onClick: () => document.querySelector(`.${name}`).click()
112
- }, /*#__PURE__*/React.createElement("input", {
114
+ }, /*#__PURE__*/React__default.createElement("input", {
113
115
  hidden: true,
114
116
  type: "file",
115
117
  className: name,
116
118
  disabled: disabled,
117
119
  onChange: e => handleCheckFile(e)
118
- }), image ? /*#__PURE__*/React.createElement("div", {
119
- className: `${styles$b['upload-file-content']} upload-file-content-rem`
120
- }, /*#__PURE__*/React.createElement("img", {
120
+ }), image ? /*#__PURE__*/React__default.createElement("div", {
121
+ className: `${styles$c['upload-file-content']} upload-file-content-rem`
122
+ }, /*#__PURE__*/React__default.createElement("img", {
121
123
  src: image,
122
124
  alt: fileName
123
- })) : /*#__PURE__*/React.createElement("div", {
124
- className: `${styles$b['file-form-inner-upload']} ile-form-inner-upload-rem`
125
- }, /*#__PURE__*/React.createElement("img", {
125
+ })) : /*#__PURE__*/React__default.createElement("div", {
126
+ className: `${styles$c['file-form-inner-upload']} ile-form-inner-upload-rem`
127
+ }, /*#__PURE__*/React__default.createElement("img", {
126
128
  src: "../../assets/upload.svg",
127
129
  alt: ""
128
- }), /*#__PURE__*/React.createElement("span", {
129
- className: `${styles$b['upload-info']} upload-info-rem`
130
- }, /*#__PURE__*/React.createElement("span", {
131
- className: `${styles$b['upload-info-txt']} upload-info-txt-rem`
132
- }, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React.createElement("span", {
133
- className: `${styles$b['upload-info-size']} upload-info-size-rem`
134
- }, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), /*#__PURE__*/React.createElement("div", {
135
- className: `${styles$b['delete-upload-icon']} delete-upload-icon-rem`,
130
+ }), /*#__PURE__*/React__default.createElement("span", {
131
+ className: `${styles$c['upload-info']} upload-info-rem`
132
+ }, /*#__PURE__*/React__default.createElement("span", {
133
+ className: `${styles$c['upload-info-txt']} upload-info-txt-rem`
134
+ }, "\u0532\u0565\u057C\u0576\u0565\u056C")), /*#__PURE__*/React__default.createElement("span", {
135
+ className: `${styles$c['upload-info-size']} upload-info-size-rem`
136
+ }, "\u0531\u057C\u0561\u057E\u0565\u056C\u0561\u0563\u0578\u0582\u0575\u0576\u0568 ", maxSize, "\u0544\u0532 ( ", fileExtensions.toString().split(',').join(', '), " )"))), !disabled && /*#__PURE__*/React__default.createElement("div", {
137
+ className: `${styles$c['delete-upload-icon']} delete-upload-icon-rem`,
136
138
  onClick: handleRemoveFile
137
- }, /*#__PURE__*/React.createElement("i", {
139
+ }, /*#__PURE__*/React__default.createElement("i", {
138
140
  className: "icon-delete"
139
- })), errorMessage || error ? /*#__PURE__*/React.createElement("span", {
141
+ })), errorMessage || error ? /*#__PURE__*/React__default.createElement("span", {
140
142
  style: {
141
143
  color: 'red'
142
144
  }
@@ -159,9 +161,9 @@ File.defaultProps = {
159
161
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
160
162
  };
161
163
 
162
- var css_248z$a = ".table-module_table-wrap__KKAnM{background:#fff;border-radius:14px 14px 0 0;box-shadow:0 10px 30px rgba(0,35,106,.06);overflow:hidden;width:100%}.table-module_table-wrap__KKAnM:not(:first-child){margin-top:30px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:first-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:first-child{flex:0 0 auto;width:60px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(2),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(2){flex:0 0 auto;width:120px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(3),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(3){flex:0 0 auto;width:170px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(4),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(4){flex:0 0 auto;width:126px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(5),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(6),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(8),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(5),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(6),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(8){flex:0 0 auto;width:100px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:last-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:last-child{flex:0 0 auto;width:104px}.table-module_table-top__tfEKM{background:#00236a;height:44px;width:100%}.table-module_table-top__tfEKM .table-module_table-items__UpFg2{align-items:center;color:#fff;display:flex;flex:1 1;font-size:15px;justify-content:center;line-height:17px;text-align:center}.table-module_table-bottom-inner__0Pus0{background:#fff;min-height:40px;width:100%}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2{align-items:center;border-bottom:1px solid #eee;display:flex;flex:1 1;font-size:14px;justify-content:center;line-height:16px;padding:4px;text-align:center}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:not(:last-child){border-right:1px solid #eee}";
163
- var styles$a = {"table-wrap":"table-module_table-wrap__KKAnM","table-bottom-inner":"table-module_table-bottom-inner__0Pus0","table-items":"table-module_table-items__UpFg2","table-top":"table-module_table-top__tfEKM"};
164
- styleInject(css_248z$a);
164
+ var css_248z$b = ".table-module_table-wrap__KKAnM{background:#fff;border-radius:14px 14px 0 0;box-shadow:0 10px 30px rgba(0,35,106,.06);overflow:hidden;width:100%}.table-module_table-wrap__KKAnM:not(:first-child){margin-top:30px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:first-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:first-child{flex:0 0 auto;width:60px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(2),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(2){flex:0 0 auto;width:120px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(3),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(3){flex:0 0 auto;width:170px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(4),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(4){flex:0 0 auto;width:126px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(5),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(6),.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:nth-child(8),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(5),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(6),.table-module_table-top__tfEKM .table-module_table-items__UpFg2:nth-child(8){flex:0 0 auto;width:100px}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:last-child,.table-module_table-top__tfEKM .table-module_table-items__UpFg2:last-child{flex:0 0 auto;width:104px}.table-module_table-top__tfEKM{background:#00236a;height:44px;width:100%}.table-module_table-top__tfEKM .table-module_table-items__UpFg2{align-items:center;color:#fff;display:flex;flex:1 1;font-size:15px;justify-content:center;line-height:17px;text-align:center}.table-module_table-bottom-inner__0Pus0{background:#fff;min-height:40px;width:100%}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2{align-items:center;border-bottom:1px solid #eee;display:flex;flex:1 1;font-size:14px;justify-content:center;line-height:16px;padding:4px;text-align:center}.table-module_table-bottom-inner__0Pus0 .table-module_table-items__UpFg2:not(:last-child){border-right:1px solid #eee}";
165
+ var styles$b = {"table-wrap":"table-module_table-wrap__KKAnM","table-bottom-inner":"table-module_table-bottom-inner__0Pus0","table-items":"table-module_table-items__UpFg2","table-top":"table-module_table-top__tfEKM"};
166
+ styleInject(css_248z$b);
165
167
 
166
168
  function _extends() {
167
169
  _extends = Object.assign ? Object.assign.bind() : function (target) {
@@ -178,9 +180,9 @@ function _extends() {
178
180
  return _extends.apply(this, arguments);
179
181
  }
180
182
 
181
- var css_248z$9 = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;bottom:0;display:inline-block;height:14px;left:0;margin:auto 4px auto auto;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
182
- var styles$9 = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
183
- styleInject(css_248z$9);
183
+ var css_248z$a = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;bottom:0;display:inline-block;height:14px;left:0;margin:auto 4px auto auto;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.checkbox-module_checkbox-wrap__Xrg-m>.checkbox-module_checkmark__M8DY6:after{border:solid #1890ff;border-width:0 2px 2px 0;content:\"\";display:block;height:8px;left:4px;opacity:0;position:absolute;top:1px;transform:rotate(45deg);transition:opacity .24s;width:4px}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6:after{opacity:1}.checkbox-module_checkbox-wrap__Xrg-m input:checked~.checkbox-module_checkmark__M8DY6,.checkbox-module_checkbox-wrap__Xrg-m:hover input~.checkbox-module_checkmark__M8DY6{border-color:#1890ff}";
184
+ var styles$a = {"checkbox-wrap":"checkbox-module_checkbox-wrap__Xrg-m","checkmark":"checkbox-module_checkmark__M8DY6"};
185
+ styleInject(css_248z$a);
184
186
 
185
187
  const Checkbox = ({
186
188
  disabled,
@@ -195,7 +197,7 @@ const Checkbox = ({
195
197
  onClick,
196
198
  ...props
197
199
  }) => {
198
- const classProps = classnames(styles$9.checkbox, className, 'checkbox-input-rem');
200
+ const classProps = classnames(styles$a.checkbox, className, 'checkbox-input-rem');
199
201
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
200
202
  const [data, setData] = useState(parseData);
201
203
  useEffect(() => {
@@ -226,11 +228,11 @@ const Checkbox = ({
226
228
  value: 'value',
227
229
  label: 'label'
228
230
  } : '';
229
- return /*#__PURE__*/React.createElement(React.Fragment, null, data.map(element => {
230
- return /*#__PURE__*/React.createElement("label", {
231
- className: `${styles$9["checkbox-wrap"]} checkbox-wrap-rem`,
231
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, data.map(element => {
232
+ return /*#__PURE__*/React__default.createElement("label", {
233
+ className: `${styles$a["checkbox-wrap"]} checkbox-wrap-rem`,
232
234
  key: element.value
233
- }, /*#__PURE__*/React.createElement("input", _extends({
235
+ }, /*#__PURE__*/React__default.createElement("input", _extends({
234
236
  type: "checkbox",
235
237
  className: classProps,
236
238
  disabled: disabled,
@@ -241,10 +243,10 @@ const Checkbox = ({
241
243
  onChange: handleChange,
242
244
  onClick: onClick ? onClick : () => {},
243
245
  defaultChecked: element.checked
244
- }, props)), /*#__PURE__*/React.createElement("span", {
245
- className: `${styles$9["checkmark"]} checkmark-rem`
246
- }), element[keyNames.label] ? /*#__PURE__*/React.createElement("label", {
247
- className: styles$9.labelCheckbox,
246
+ }, props)), /*#__PURE__*/React__default.createElement("span", {
247
+ className: `${styles$a["checkmark"]} checkmark-rem`
248
+ }), element[keyNames.label] ? /*#__PURE__*/React__default.createElement("label", {
249
+ className: styles$a.labelCheckbox,
248
250
  for: element[keyNames.id]
249
251
  }, element[keyNames.label]) : "");
250
252
  }));
@@ -285,26 +287,26 @@ const Table = ({
285
287
  config.isCheckbox && config.isCheckbox.showCheckbox == undefined ? config.isCheckbox.showCheckbox = () => {
286
288
  return true;
287
289
  } : "";
288
- return /*#__PURE__*/React.createElement("div", {
289
- className: `${styles$a["table-wrap"]} table-wrap-rem`
290
+ return /*#__PURE__*/React__default.createElement("div", {
291
+ className: `${styles$b["table-wrap"]} table-wrap-rem`
290
292
  }, config.isHeader && hearderData.map((header, key) => {
291
- return /*#__PURE__*/React.createElement("div", {
292
- className: `${styles$a["table-top"]} table-top-rem`,
293
+ return /*#__PURE__*/React__default.createElement("div", {
294
+ className: `${styles$b["table-top"]} table-top-rem`,
293
295
  key: key
294
- }, /*#__PURE__*/React.createElement("div", {
295
- className: `${styles$a["table-items"]} table-items-rem`
296
+ }, /*#__PURE__*/React__default.createElement("div", {
297
+ className: `${styles$b["table-items"]} table-items-rem`
296
298
  }, header));
297
- }), /*#__PURE__*/React.createElement("div", {
298
- className: `${styles$a["table-bottom"]} table-bottom-rem`
299
+ }), /*#__PURE__*/React__default.createElement("div", {
300
+ className: `${styles$b["table-bottom"]} table-bottom-rem`
299
301
  }, tbodyData.map((item, key) => {
300
- return /*#__PURE__*/React.createElement("div", {
301
- className: `${styles$a["table-bottom-inner"]} table-bottom-inner-rem`,
302
+ return /*#__PURE__*/React__default.createElement("div", {
303
+ className: `${styles$b["table-bottom-inner"]} table-bottom-inner-rem`,
302
304
  key: key
303
305
  }, keyNames.map((keyName, keyNameKey) => {
304
- return /*#__PURE__*/React.createElement("div", {
305
- className: `${styles$a["table-items"]} table-items-rem`,
306
+ return /*#__PURE__*/React__default.createElement("div", {
307
+ className: `${styles$b["table-items"]} table-items-rem`,
306
308
  key: keyNameKey
307
- }, config.isCheckbox && config.isCheckbox.showCheckbox && config.isCheckbox.showCheckbox(item) && keyNameKey == 0 && /*#__PURE__*/React.createElement(Checkbox, {
309
+ }, config.isCheckbox && config.isCheckbox.showCheckbox && config.isCheckbox.showCheckbox(item) && keyNameKey == 0 && /*#__PURE__*/React__default.createElement(Checkbox, {
308
310
  onClick: e => {
309
311
  const id = e.target.id;
310
312
  const checkedValue = e.target.checked;
@@ -314,15 +316,15 @@ const Table = ({
314
316
  config.isCheckbox.onChange(ch);
315
317
  },
316
318
  jsonData: `[{"value":"", "name":"", "label":"", "id":${item.id}, "checked":${checked.indexOf(item.id) > -1 ? true : false}}]`
317
- }), typeof keyName === "string" ? item[keyName] : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("i", {
319
+ }), typeof keyName === "string" ? item[keyName] : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("i", {
318
320
  className: keyName.icon
319
321
  }), item[keyName.name]));
320
- }), actions && /*#__PURE__*/React.createElement("div", {
321
- className: `${styles$a["table-items"]} table-items-rem`
322
+ }), actions && /*#__PURE__*/React__default.createElement("div", {
323
+ className: `${styles$b["table-items"]} table-items-rem`
322
324
  }, actions.filter(a => a.show && a.show(item) || a.show === undefined).map((action, key) => {
323
- return /*#__PURE__*/React.createElement("div", {
325
+ return /*#__PURE__*/React__default.createElement("div", {
324
326
  key: key
325
- }, /*#__PURE__*/React.createElement("i", {
327
+ }, /*#__PURE__*/React__default.createElement("i", {
326
328
  className: action.icon,
327
329
  onClick: action.click ? action.click : () => {}
328
330
  }, action.icon));
@@ -354,9 +356,9 @@ Table.defaultProps = {
354
356
  hearderData: []
355
357
  };
356
358
 
357
- var css_248z$8 = ".modal-module_modal-wrap__IsXXf{background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;width:100%;z-index:9}.modal-module_modal-top__ntDBi{background:#fbfbfb;box-sizing:border-box;display:flex;flex-direction:row;height:44px;padding:4px 10px 4px 0;width:100%}.modal-module_modal-title__r-WKl{align-items:center;color:#3c393e;display:flex;flex:1 1;font-size:20px;font-weight:500;line-height:24px;padding-right:20px}.modal-module_close-btn__Qf2UD{cursor:pointer;flex:0 0 auto;width:24px}.modal-module_close-btn__Qf2UD,.modal-module_modal-section__Bp8jN{align-items:center;display:flex;height:100%;justify-content:center}.modal-module_modal-section__Bp8jN{flex:1 1;padding:10px 0;width:100%}.modal-module_modal-content__1F-uE{align-items:center;animation:modal-module_show-popup__WrH7a .24s;background:#fff;border-radius:8px;display:flex;flex-direction:column;height:auto;left:0;margin:auto;min-height:130px;overflow:hidden;padding:10px;position:absolute;right:0;top:110px;width:fit-content}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
358
- var styles$8 = {"modal-wrap":"modal-module_modal-wrap__IsXXf","modal-top":"modal-module_modal-top__ntDBi","modal-title":"modal-module_modal-title__r-WKl","close-btn":"modal-module_close-btn__Qf2UD","modal-section":"modal-module_modal-section__Bp8jN","modal-content":"modal-module_modal-content__1F-uE","show-popup":"modal-module_show-popup__WrH7a"};
359
- styleInject(css_248z$8);
359
+ var css_248z$9 = ".modal-module_modal-wrap__IsXXf{background:rgba(0,0,0,.4);height:100%;left:0;position:fixed;top:0;width:100%;z-index:9}.modal-module_modal-top__ntDBi{background:#fbfbfb;box-sizing:border-box;display:flex;flex-direction:row;height:44px;padding:4px 10px 4px 0;width:100%}.modal-module_modal-title__r-WKl{align-items:center;color:#3c393e;display:flex;flex:1 1;font-size:20px;font-weight:500;line-height:24px;padding-right:20px}.modal-module_close-btn__Qf2UD{cursor:pointer;flex:0 0 auto;width:24px}.modal-module_close-btn__Qf2UD,.modal-module_modal-section__Bp8jN{align-items:center;display:flex;height:100%;justify-content:center}.modal-module_modal-section__Bp8jN{flex:1 1;padding:10px 0;width:100%}.modal-module_modal-content__1F-uE{align-items:center;animation:modal-module_show-popup__WrH7a .24s;background:#fff;border-radius:8px;display:flex;flex-direction:column;height:auto;left:0;margin:auto;min-height:130px;overflow:hidden;padding:10px;position:absolute;right:0;top:110px;width:fit-content}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-30%,0)}to{opacity:1;transform:translateZ(0)}}";
360
+ var styles$9 = {"modal-wrap":"modal-module_modal-wrap__IsXXf","modal-top":"modal-module_modal-top__ntDBi","modal-title":"modal-module_modal-title__r-WKl","close-btn":"modal-module_close-btn__Qf2UD","modal-section":"modal-module_modal-section__Bp8jN","modal-content":"modal-module_modal-content__1F-uE","show-popup":"modal-module_show-popup__WrH7a"};
361
+ styleInject(css_248z$9);
360
362
 
361
363
  const _ = require('lodash');
362
364
  const compereConfigs = () => {
@@ -428,7 +430,7 @@ const Typography = ({
428
430
  const handleMouseLeave = () => {
429
431
  setIsHover(false);
430
432
  };
431
- const tagT = /*#__PURE__*/React.createElement(variant, {
433
+ const tagT = /*#__PURE__*/React__default.createElement(variant, {
432
434
  style: {
433
435
  border: border ? border : configStyles.TYPOGRAPHY.border,
434
436
  cursor: cursor ? cursor : configStyles.TYPOGRAPHY.cursor,
@@ -486,53 +488,53 @@ const Modal = ({
486
488
  selected,
487
489
  children
488
490
  }) => {
489
- classnames(styles$8.modal, className);
491
+ classnames(styles$9.modal, className);
490
492
  const [select, setSelect] = useState(selected);
491
- return /*#__PURE__*/React.createElement("div", {
492
- className: `${styles$8["modal-wrap"]} modal-wrap-rem`,
493
+ return /*#__PURE__*/React__default.createElement("div", {
494
+ className: `${styles$9["modal-wrap"]} modal-wrap-rem`,
493
495
  onClick: () => setShow(false)
494
- }, type == "content" ? /*#__PURE__*/React.createElement("div", {
495
- className: `${styles$8["modal-content"]} modal-content-rem`,
496
+ }, type == "content" ? /*#__PURE__*/React__default.createElement("div", {
497
+ className: `${styles$9["modal-content"]} modal-content-rem`,
496
498
  onClick: e => {
497
499
  e.stopPropagation();
498
500
  }
499
- }, /*#__PURE__*/React.createElement("div", {
500
- className: `${styles$8["modal-top"]} modal-top-rem`
501
- }, /*#__PURE__*/React.createElement("div", {
502
- className: `${styles$8["modal-title"]} modal-title-rem`
503
- }, /*#__PURE__*/React.createElement(Typography, {
501
+ }, /*#__PURE__*/React__default.createElement("div", {
502
+ className: `${styles$9["modal-top"]} modal-top-rem`
503
+ }, /*#__PURE__*/React__default.createElement("div", {
504
+ className: `${styles$9["modal-title"]} modal-title-rem`
505
+ }, /*#__PURE__*/React__default.createElement(Typography, {
504
506
  variant: TypographyType.p,
505
507
  color: "#00236A"
506
- }, headerText)), /*#__PURE__*/React.createElement("div", {
507
- className: `${styles$8["close-btn"]} close-btn-rem`,
508
+ }, headerText)), /*#__PURE__*/React__default.createElement("div", {
509
+ className: `${styles$9["close-btn"]} close-btn-rem`,
508
510
  onClick: () => setShow(false)
509
- }, /*#__PURE__*/React.createElement("i", {
511
+ }, /*#__PURE__*/React__default.createElement("i", {
510
512
  className: "icon-close"
511
- }))), /*#__PURE__*/React.createElement("div", {
512
- className: `${styles$8["modal-section"]} modal-section-rem`
513
- }, children)) : type == "images" ? /*#__PURE__*/React.createElement("div", {
514
- className: `${styles$8["modal-content"]} modal-content-rem`,
513
+ }))), /*#__PURE__*/React__default.createElement("div", {
514
+ className: `${styles$9["modal-section"]} modal-section-rem`
515
+ }, children)) : type == "images" ? /*#__PURE__*/React__default.createElement("div", {
516
+ className: `${styles$9["modal-content"]} modal-content-rem`,
515
517
  onClick: e => {
516
518
  e.stopPropagation();
517
519
  }
518
- }, /*#__PURE__*/React.createElement("div", {
519
- className: `${styles$8["close-btn"]} close-btn-rem`,
520
+ }, /*#__PURE__*/React__default.createElement("div", {
521
+ className: `${styles$9["close-btn"]} close-btn-rem`,
520
522
  onClick: () => setShow(false)
521
- }, /*#__PURE__*/React.createElement("i", {
523
+ }, /*#__PURE__*/React__default.createElement("i", {
522
524
  className: "icon-close"
523
- })), /*#__PURE__*/React.createElement("div", {
524
- className: `${styles$8["modal-section"]} modal-section-rem`
525
- }, /*#__PURE__*/React.createElement("div", null, select > 1 ? /*#__PURE__*/React.createElement("h1", {
525
+ })), /*#__PURE__*/React__default.createElement("div", {
526
+ className: `${styles$9["modal-section"]} modal-section-rem`
527
+ }, /*#__PURE__*/React__default.createElement("div", null, select > 1 ? /*#__PURE__*/React__default.createElement("h1", {
526
528
  onClick: () => setSelect(select - 1)
527
529
  }, "-") : null, data.map(elem => {
528
530
  if (select == elem.id) {
529
- return /*#__PURE__*/React.createElement("img", {
531
+ return /*#__PURE__*/React__default.createElement("img", {
530
532
  width: "600px",
531
533
  key: elem.id,
532
534
  src: elem.url
533
535
  });
534
536
  }
535
- }), select < data.length ? /*#__PURE__*/React.createElement("h1", {
537
+ }), select < data.length ? /*#__PURE__*/React__default.createElement("h1", {
536
538
  onClick: () => {
537
539
  setSelect(select + 1);
538
540
  }
@@ -547,9 +549,9 @@ Modal.propTypes = {
547
549
  data: PropTypes.array
548
550
  };
549
551
 
550
- var css_248z$7 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
551
- var styles$7 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k"};
552
- styleInject(css_248z$7);
552
+ var css_248z$8 = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}@keyframes input-module_error-show__9MP6k{to{bottom:-20px;transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}}";
553
+ var styles$8 = {"input-wrap":"input-module_input-wrap__NunrE","input-content":"input-module_input-content__kP7lZ","error-message-show":"input-module_error-message-show__OrVSo","error-show":"input-module_error-show__9MP6k"};
554
+ styleInject(css_248z$8);
553
555
 
554
556
  const InputTypes = {
555
557
  TEL: 'tel',
@@ -581,6 +583,7 @@ const Input = ({
581
583
  errorLeft,
582
584
  errorSize,
583
585
  labelSize,
586
+ maxLength,
584
587
  labelColor,
585
588
  errorColor,
586
589
  placeholder,
@@ -634,10 +637,10 @@ const Input = ({
634
637
  const handleMouseLeave = () => {
635
638
  setIsHover(false);
636
639
  };
637
- return /*#__PURE__*/React.createElement("div", {
638
- className: `${styles$7["input-wrap"]}`
639
- }, label ? /*#__PURE__*/React.createElement("label", {
640
- className: `${styles$7["input-title"]}`,
640
+ return /*#__PURE__*/React__default.createElement("div", {
641
+ className: `${styles$8["input-wrap"]}`
642
+ }, label ? /*#__PURE__*/React__default.createElement("label", {
643
+ className: `${styles$8["input-title"]}`,
641
644
  style: {
642
645
  color: labelColor ? labelColor : configStyles.INPUT.labelColor,
643
646
  fontSize: labelSize ? labelSize : configStyles.INPUT.labelSize,
@@ -646,12 +649,12 @@ const Input = ({
646
649
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
647
650
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
648
651
  }
649
- }, label, " ", required && /*#__PURE__*/React.createElement("sup", {
652
+ }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
650
653
  style: {
651
654
  color: "#ee0000"
652
655
  }
653
- }, "*")) : '', /*#__PURE__*/React.createElement("div", {
654
- className: `${styles$7["input-content"]}`,
656
+ }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
657
+ className: `${styles$8["input-content"]}`,
655
658
  style: {
656
659
  width: width ? width : configStyles.INPUT.width,
657
660
  borderRadius: radius ? radius : configStyles.INPUT.radius,
@@ -659,7 +662,7 @@ const Input = ({
659
662
  },
660
663
  onMouseEnter: handleMouseEnter,
661
664
  onMouseLeave: handleMouseLeave
662
- }, leftIcon && leftIcon.length > 0 && type != 'tel' ? /*#__PURE__*/React.createElement("div", {
665
+ }, leftIcon && leftIcon.length > 0 && type != 'tel' ? /*#__PURE__*/React__default.createElement("div", {
663
666
  onMouseUp: type === 'password' ? _ => setShow(false) : _ => _,
664
667
  onMouseDown: type === 'password' ? _ => setShow(true) : _ => _,
665
668
  onMouseOut: type === 'password' ? _ => setShow(false) : _ => _,
@@ -673,7 +676,7 @@ const Input = ({
673
676
  borderBottomLeftRadius: radius ? radius : configStyles.INPUT.radius,
674
677
  backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
675
678
  }
676
- }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React.createElement("div", {
679
+ }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React__default.createElement("div", {
677
680
  style: {
678
681
  pointerEvents: disabled ? 'none' : 'auto',
679
682
  fontSize: size ? size : configStyles.INPUT.size,
@@ -688,8 +691,8 @@ const Input = ({
688
691
  justifyContent: phoneJustifyContent ? phoneJustifyContent : configStyles.INPUT.phoneJustifyContent,
689
692
  backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
690
693
  }
691
- }, "+374") : '', /*#__PURE__*/React.createElement("input", _extends({}, props, {
692
- value: value,
694
+ }, "+374") : '', /*#__PURE__*/React__default.createElement("input", _extends({}, props, {
695
+ value: maxLength && value && value.length > maxLength ? value.substr(0, maxLength) : value,
693
696
  className: classProps,
694
697
  onChange: handleChange,
695
698
  type: show ? 'text' : type,
@@ -710,7 +713,7 @@ const Input = ({
710
713
  backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor,
711
714
  color: errorMessage && errorColor ? errorColor : color ? color : configStyles.INPUT.color
712
715
  }
713
- })), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React.createElement("div", {
716
+ })), rightIcon && rightIcon.length > 0 ? /*#__PURE__*/React__default.createElement("div", {
714
717
  onMouseUp: type === 'password' ? _ => setShow(false) : _ => _,
715
718
  onMouseDown: type === 'password' ? _ => setShow(true) : _ => _,
716
719
  onMouseOut: type === 'password' ? _ => setShow(false) : _ => _,
@@ -724,7 +727,7 @@ const Input = ({
724
727
  borderBottomRightRadius: radius ? radius : configStyles.INPUT.radius,
725
728
  backgroundColor: disabled ? '#FBFBFB' : backgroundColor ? backgroundColor : configStyles.INPUT.backgroundColor
726
729
  }
727
- }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', errorMessage ? /*#__PURE__*/React.createElement(P, {
730
+ }, type === 'password' ? show ? rightIcon[1] : rightIcon[0] : rightIcon[0]) : ''), tooltip ? tooltip : '', errorMessage ? /*#__PURE__*/React__default.createElement(P, {
728
731
  style: {
729
732
  left: errorLeft ? errorLeft : configStyles.INPUT.errorLeft,
730
733
  color: errorColor ? errorColor : configStyles.INPUT.errorColor,
@@ -760,6 +763,7 @@ Input.propTypes = {
760
763
  errorSize: PropTypes.string,
761
764
  errorLeft: PropTypes.string,
762
765
  labelSize: PropTypes.string,
766
+ maxLength: PropTypes.number,
763
767
  errorColor: PropTypes.string,
764
768
  labelColor: PropTypes.string,
765
769
  placeholder: PropTypes.string,
@@ -789,9 +793,9 @@ Input.defaultProps = {
789
793
  type: "text"
790
794
  };
791
795
 
792
- var css_248z$6 = ".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}";
793
- var styles$6 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
794
- styleInject(css_248z$6);
796
+ var css_248z$7 = ".radio-module_radio-wrap__-lO7V{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.radio-module_radio-wrap__-lO7V>input{height:0;opacity:0;position:absolute;width:0}.radio-module_radio-wrap__-lO7V .radio-module_radio-checkmark__Kvol0{border:1px solid #d9d9d9;border-radius:50%;display:inline-block;height:14px;left:0;margin-right:4px;position:absolute;top:0;transition:border-color .24s;vertical-align:top;width:14px}.radio-module_radio-wrap__-lO7V>.radio-module_radio-checkmark__Kvol0:after{background-color:#d9d9d9;border-radius:50%;bottom:0;content:\"\";height:8px;left:0;margin:auto;opacity:0;position:absolute;right:0;top:0;transition:opacity .24s,background-color .24s;width:8px}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0:after{background-color:#1890ff;opacity:1}.radio-module_radio-wrap__-lO7V:hover input~.radio-module_radio-checkmark__Kvol0:after{opacity:1}.radio-module_radio-wrap__-lO7V input:checked~.radio-module_radio-checkmark__Kvol0{border-color:#1890ff}";
797
+ var styles$7 = {"radio-wrap":"radio-module_radio-wrap__-lO7V","radio-checkmark":"radio-module_radio-checkmark__Kvol0"};
798
+ styleInject(css_248z$7);
795
799
 
796
800
  const Radio = ({
797
801
  disabled,
@@ -805,13 +809,13 @@ const Radio = ({
805
809
  keyNames,
806
810
  ...props
807
811
  }) => {
808
- const classProps = classnames(styles$6.checkbox, className);
812
+ const classProps = classnames(styles$7.checkbox, className);
809
813
  const parseData = jsonData.length !== 0 ? JSON.parse(jsonData) : [];
810
- return /*#__PURE__*/React.createElement(React.Fragment, null, parseData.map((element, id) => {
811
- return /*#__PURE__*/React.createElement("label", {
812
- className: `${styles$6["radio-wrap"]} radio-wrap-rem`,
814
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, parseData.map((element, id) => {
815
+ return /*#__PURE__*/React__default.createElement("label", {
816
+ className: `${styles$7["radio-wrap"]} radio-wrap-rem`,
813
817
  key: element.value
814
- }, /*#__PURE__*/React.createElement("input", _extends({
818
+ }, /*#__PURE__*/React__default.createElement("input", _extends({
815
819
  type: "radio",
816
820
  className: classProps,
817
821
  disabled: disabled,
@@ -819,10 +823,10 @@ const Radio = ({
819
823
  defaultChecked: id === 0 ? defaultChecked : "",
820
824
  value: value ? value : element.value,
821
825
  name: name ? name : element.name
822
- }, props)), /*#__PURE__*/React.createElement("span", {
823
- className: `${styles$6["radio-checkmark"]} radio-checkmark-rem`
824
- }), element.label ? /*#__PURE__*/React.createElement("span", {
825
- className: styles$6.labelRadio
826
+ }, props)), /*#__PURE__*/React__default.createElement("span", {
827
+ className: `${styles$7["radio-checkmark"]} radio-checkmark-rem`
828
+ }), element.label ? /*#__PURE__*/React__default.createElement("span", {
829
+ className: styles$7.labelRadio
826
830
  }, label ? label : element.label) : "");
827
831
  }));
828
832
  };
@@ -884,7 +888,7 @@ const Button = ({
884
888
  const handleMouseLeave = () => {
885
889
  setIsHover(false);
886
890
  };
887
- return /*#__PURE__*/React.createElement("button", _extends({
891
+ return /*#__PURE__*/React__default.createElement("button", _extends({
888
892
  style: {
889
893
  fontSize: size ? size : configStyles.BUTTON.size,
890
894
  fontFamily: font ? font : configStyles.BUTTON.font,
@@ -944,13 +948,13 @@ var ReactCheckboxChecked = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\
944
948
  const SelectCheckbox = ({
945
949
  checked
946
950
  }) => {
947
- return /*#__PURE__*/React.createElement("div", {
951
+ return /*#__PURE__*/React__default.createElement("div", {
948
952
  style: {
949
953
  marginRight: '9px'
950
954
  }
951
- }, checked ? /*#__PURE__*/React.createElement("img", {
955
+ }, checked ? /*#__PURE__*/React__default.createElement("img", {
952
956
  src: ReactCheckboxChecked
953
- }) : /*#__PURE__*/React.createElement("img", {
957
+ }) : /*#__PURE__*/React__default.createElement("img", {
954
958
  src: ReactCheckbox
955
959
  }));
956
960
  };
@@ -958,13 +962,45 @@ SelectCheckbox.propTypes = {
958
962
  checked: PropTypes.bool
959
963
  };
960
964
 
961
- var ReactArrowIcon = "<svg width=\"15\" height=\"9\" viewBox=\"0 0 15 9\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M7.9878 8.00003C7.75456 8.00049 7.52851 7.91911 7.34892 7.77003L1.3594 2.77003C1.15554 2.60029 1.02734 2.35638 1.003 2.09196C0.978666 1.82753 1.06019 1.56425 1.22963 1.36003C1.39907 1.15581 1.64255 1.02739 1.90652 1.00301C2.17048 0.978631 2.4333 1.06029 2.63716 1.23003L7.9878 5.71003L13.3384 1.39003C13.4405 1.30697 13.558 1.24493 13.6842 1.2075C13.8103 1.17007 13.9425 1.15798 14.0733 1.17192C14.2041 1.18586 14.3309 1.22555 14.4463 1.28873C14.5618 1.3519 14.6636 1.4373 14.746 1.54003C14.8374 1.64285 14.9066 1.76348 14.9493 1.89435C14.9921 2.02523 15.0073 2.16353 14.9942 2.30059C14.9811 2.43765 14.9399 2.57053 14.8731 2.69088C14.8063 2.81124 14.7155 2.91649 14.6062 3.00003L8.6167 7.83003C8.43194 7.95555 8.21051 8.0154 7.9878 8.00003Z\" fill=\"#3C393E\"/>\n</svg>";
965
+ const SvgArrow = ({
966
+ title,
967
+ titleId,
968
+ ...props
969
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
970
+ width: "1em",
971
+ height: "1em",
972
+ viewBox: "0 0 15 9",
973
+ fill: "none",
974
+ xmlns: "http://www.w3.org/2000/svg",
975
+ "aria-labelledby": titleId
976
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
977
+ id: titleId
978
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
979
+ d: "M7.988 8a.997.997 0 0 1-.64-.23l-5.989-5a1.002 1.002 0 0 1 .548-1.767.998.998 0 0 1 .73.227l5.35 4.48 5.351-4.32a.997.997 0 0 1 1.408.15 1 1 0 0 1-.14 1.46l-5.99 4.83a.997.997 0 0 1-.628.17Z",
980
+ fill: "#3C393E"
981
+ }));
962
982
 
963
- var ReactCloseIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M12.4253 0.241029L12.431 0.236144C12.6129 0.0804082 12.8468 -0.00097097 13.0861 0.00827014C13.3253 0.0175112 13.5523 0.116692 13.7216 0.285992C13.8909 0.455292 13.9901 0.682241 13.9993 0.921488C14.0085 1.16074 13.9272 1.39466 13.7714 1.57651L13.7665 1.58222L8.38622 6.96254L13.7665 12.3429L13.7714 12.3486C13.9272 12.5304 14.0085 12.7643 13.9993 13.0036C13.9901 13.2428 13.8909 13.4698 13.7216 13.6391C13.5523 13.8084 13.3253 13.9076 13.0861 13.9168C12.8468 13.926 12.6129 13.8447 12.431 13.6889L12.4253 13.684L7.04493 8.30363L1.66742 13.6738C1.58315 13.7705 1.48016 13.8492 1.36462 13.9051C1.24669 13.9622 1.11823 13.9942 0.987309 13.9993C0.85639 14.0043 0.72584 13.9823 0.603852 13.9345C0.481865 13.8867 0.371073 13.8142 0.27843 13.7216C0.185788 13.6289 0.113295 13.5181 0.0655034 13.3961C0.0177115 13.2742 -0.00434842 13.1436 0.000708381 13.0127C0.00576522 12.8818 0.0378304 12.7533 0.0948891 12.6354C0.150805 12.5198 0.229542 12.4168 0.326326 12.3325L5.70384 6.96235L0.323475 1.57461L0.318633 1.56895C0.162897 1.3871 0.0815178 1.15317 0.0907589 0.913926C0.1 0.674678 0.199181 0.447729 0.36848 0.27843C0.53778 0.10913 0.76473 0.00995005 1.00398 0.000708956C1.24322 -0.00853214 1.47715 0.0728459 1.659 0.228582L1.66476 0.233511L7.04512 5.62125L12.4253 0.241029Z\" fill=\"#3C393E\"/>\n</svg>";
983
+ const SvgCloseIcon = ({
984
+ title,
985
+ titleId,
986
+ ...props
987
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
988
+ width: "1em",
989
+ height: "1em",
990
+ viewBox: "0 0 14 14",
991
+ fill: "none",
992
+ xmlns: "http://www.w3.org/2000/svg",
993
+ "aria-labelledby": titleId
994
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
995
+ id: titleId
996
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
997
+ d: "m12.425.241.006-.005a.95.95 0 0 1 1.34 1.34l-.005.006-5.38 5.38 5.38 5.38.005.007a.95.95 0 0 1-1.34 1.34l-.006-.005-5.38-5.38-5.378 5.37a.951.951 0 1 1-1.34-1.341l5.377-5.37-5.38-5.388-.005-.006a.95.95 0 0 1 1.34-1.34l.006.005 5.38 5.387 5.38-5.38Z",
998
+ fill: "#3C393E"
999
+ }));
964
1000
 
965
- var css_248z$5 = ".select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
966
- var styles$5 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
967
- styleInject(css_248z$5);
1001
+ var css_248z$6 = ".select-module_select-content__GCMDX{display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.select-module_select-content-bottom__ueZCR{animation:select-module_select-show__391hQ .64s linear forwards;-webkit-animation:select-module_select-show__391hQ .64s linear forwards;left:0;max-height:0;overflow:hidden;position:absolute;width:100%;z-index:1}.select-module_select-content-bottom-inner__NWy2X{display:flex;flex-direction:column;max-height:234px;overflow-x:hidden;overflow-y:auto}.select-module_select-content-top-icon__MBrGK{align-items:center;box-sizing:border-box;display:flex;flex:0 0 auto;padding:0 5px 0 20px}.select-module_select-content-top-icon__MBrGK>div{align-items:center;display:flex;height:14px;justify-content:center;width:14px}.select-module_close-icon__SFNaJ{border-right:1px solid #eee;box-sizing:content-box;padding-right:9px}.select-module_arrow-icon__rjHt-{margin-left:9px;transform-origin:center;transition:all .64s ease;-webkit-transition:all .64s ease;-moz-transition:all .64s ease;-ms-transition:all .64s ease;-o-transition:all .64s ease}.select-module_select-content-bottom-row__eKq5L{align-items:center;display:flex;transition:background-color .24s,color .24s;-webkit-transition:background-color .24s,color .24s;-moz-transition:background-color .24s,color .24s;-ms-transition:background-color .24s,color .24s;-o-transition:background-color .24s,color .24s}.select-module_select-content-bottom-row__eKq5L:last-child{margin-bottom:0}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
1002
+ var styles$6 = {"select-content":"select-module_select-content__GCMDX","select-content-top":"select-module_select-content-top__Aw-fB","select-content-bottom":"select-module_select-content-bottom__ueZCR","select-show":"select-module_select-show__391hQ","select-content-bottom-inner":"select-module_select-content-bottom-inner__NWy2X","select-content-top-icon":"select-module_select-content-top-icon__MBrGK","close-icon":"select-module_close-icon__SFNaJ","arrow-icon":"select-module_arrow-icon__rjHt-","select-content-bottom-row":"select-module_select-content-bottom-row__eKq5L"};
1003
+ styleInject(css_248z$6);
968
1004
 
969
1005
  const Select = ({
970
1006
  options,
@@ -1079,6 +1115,14 @@ const Select = ({
1079
1115
  e.target.style.color = optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor;
1080
1116
  e.target.style.backgroundColor = optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor;
1081
1117
  };
1118
+ const isObjectEmpty = obj => {
1119
+ for (var key in obj) {
1120
+ if (obj.hasOwnProperty(key)) {
1121
+ return false;
1122
+ }
1123
+ }
1124
+ return true;
1125
+ };
1082
1126
  useEffect(() => {
1083
1127
  if (opened) {
1084
1128
  const checkIfClickedOutside = e => {
@@ -1093,7 +1137,7 @@ const Select = ({
1093
1137
  }
1094
1138
  }, [opened]);
1095
1139
  useEffect(() => {
1096
- selected && selected.length > 0 && setNewSelected(selected);
1140
+ selected && selected.length > 0 && setNewSelected(isObjectEmpty(selected[0]) ? [] : selected);
1097
1141
  if (!multiple) {
1098
1142
  options && options.length > 0 && setExistOptions(options);
1099
1143
  } else {
@@ -1111,9 +1155,9 @@ const Select = ({
1111
1155
  setExistOptions(modifiedOptions);
1112
1156
  }
1113
1157
  }, [options, multiple, selected]);
1114
- return /*#__PURE__*/React.createElement("div", {
1158
+ return /*#__PURE__*/React__default.createElement("div", {
1115
1159
  className: classProps
1116
- }, label ? /*#__PURE__*/React.createElement("label", {
1160
+ }, label ? /*#__PURE__*/React__default.createElement("label", {
1117
1161
  style: {
1118
1162
  color: labelColor ? labelColor : configStyles.SELECT.labelColor,
1119
1163
  fontWeight: labelWeight ? labelWeight : configStyles.SELECT.labelWeight,
@@ -1123,15 +1167,15 @@ const Select = ({
1123
1167
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
1124
1168
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
1125
1169
  }
1126
- }, label, required && /*#__PURE__*/React.createElement("sup", {
1170
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", {
1127
1171
  style: {
1128
1172
  color: "#ee0000"
1129
1173
  }
1130
- }, "*")) : "", /*#__PURE__*/React.createElement("div", {
1174
+ }, "*")) : "", /*#__PURE__*/React__default.createElement("div", {
1131
1175
  ref: ref
1132
- }, /*#__PURE__*/React.createElement("div", {
1133
- className: styles$5['select-content']
1134
- }, /*#__PURE__*/React.createElement("div", {
1176
+ }, /*#__PURE__*/React__default.createElement("div", {
1177
+ className: styles$6['select-content']
1178
+ }, /*#__PURE__*/React__default.createElement("div", {
1135
1179
  style: {
1136
1180
  cursor: disabled ? 'not-allowed' : cursor ? cursor : configStyles.SELECT.cursor,
1137
1181
  minHeight: selectedMinHeight ? selectedMinHeight : configStyles.SELECT.selectedMinHeight,
@@ -1148,9 +1192,9 @@ const Select = ({
1148
1192
  onClick: disabled ? _ => _ : _ => handleOpenClose(),
1149
1193
  onMouseEnter: disabled ? _ => _ : _ => handleMouseEnter(),
1150
1194
  onMouseLeave: disabled ? _ => _ : _ => handleMouseLeave(),
1151
- className: `${styles$5['select-content-top']}`
1152
- }, /*#__PURE__*/React.createElement("div", {
1153
- className: `${styles$5['select-content-top-text']}`,
1195
+ className: `${styles$6['select-content-top']}`
1196
+ }, /*#__PURE__*/React__default.createElement("div", {
1197
+ className: `${styles$6['select-content-top-text']}`,
1154
1198
  style: {
1155
1199
  color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor
1156
1200
  }
@@ -1162,44 +1206,38 @@ const Select = ({
1162
1206
  return newSelected[index][keyNames.name];
1163
1207
  }
1164
1208
  }
1165
- }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React.createElement("div", {
1166
- className: `${styles$5['select-content-top-icon']}`
1167
- }, multiple && newSelected.length > 1 && /*#__PURE__*/React.createElement("span", null, newSelected.length), newSelected && newSelected.length > 0 && /*#__PURE__*/React.createElement("div", {
1168
- className: `${styles$5['close-icon']}`,
1209
+ }) : defaultOption ? defaultOption : ''), /*#__PURE__*/React__default.createElement("div", {
1210
+ className: `${styles$6['select-content-top-icon']}`
1211
+ }, !disabled && multiple && newSelected.length > 1 && /*#__PURE__*/React__default.createElement("span", null, newSelected.length), !disabled && newSelected && newSelected.length > 0 && /*#__PURE__*/React__default.createElement("div", {
1212
+ className: `${styles$6['close-icon']}`,
1169
1213
  onClick: disabled ? _ => _ : handleClearSelect,
1170
1214
  style: {
1171
1215
  marginLeft: multiple && newSelected.length > 1 ? '17px' : '0px'
1172
1216
  }
1173
- }, closeIcon ? closeIcon : /*#__PURE__*/React.createElement("img", {
1174
- src: ReactCloseIcon,
1175
- alt: "icon"
1176
- })), /*#__PURE__*/React.createElement("div", {
1217
+ }, closeIcon ? closeIcon : /*#__PURE__*/React__default.createElement(SvgCloseIcon, null)), /*#__PURE__*/React__default.createElement("div", {
1177
1218
  style: {
1178
1219
  transform: opened ? 'rotate(180deg)' : 'rotate(0deg)'
1179
1220
  },
1180
- className: `${styles$5['arrow-icon']}`
1181
- }, arrowIcon ? arrowIcon : /*#__PURE__*/React.createElement("img", {
1182
- src: ReactArrowIcon,
1183
- alt: "icon"
1184
- })))), opened && !disabled ? /*#__PURE__*/React.createElement("div", {
1221
+ className: `${styles$6['arrow-icon']}`
1222
+ }, arrowIcon ? arrowIcon : /*#__PURE__*/React__default.createElement(SvgArrow, null)))), opened && !disabled ? /*#__PURE__*/React__default.createElement("div", {
1185
1223
  style: {
1186
1224
  boxShadow: optionsBoxShadow ? optionsBoxShadow : configStyles.SELECT.optionsBoxShadow,
1187
1225
  borderRadius: optionsBorderRadius ? optionsBorderRadius : configStyles.SELECT.optionsBorderRadius,
1188
1226
  backgroundColor: optionsBackgroundColor ? optionsBackgroundColor : configStyles.SELECT.optionsBackgroundColor,
1189
- top: parseFloat(selectedMinHeight ? selectedMinHeight.substring(0, selectedMinHeight.length - 2) : configStyles.SELECT.selectedMinHeight.substring(0, configStyles.SELECT.selectedMinHeight.length - 2)) + 6 + 'px'
1227
+ top: selectedMinHeight ? selectedMinHeight.includes('rem') ? parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 3)) + 0.6 + 'rem' : parseFloat(selectedMinHeight.substr(0, selectedMinHeight.length - 2)) + 6 + 'px' : configStyles.SELECT.selectedMinHeight.includes('rem') ? parseFloat(configStyles.SELECT.selectedMinHeight.substr(0, configStyles.SELECT.selectedMinHeight - 3)) + 0.6 + 'rem' : parseFloat(configStyles.SELECT.selectedMinHeight.substr(0, configStyles.SELECT.selectedMinHeight - 2)) + 6 + 'px'
1190
1228
  },
1191
- className: `${styles$5['select-content-bottom']}`
1192
- }, /*#__PURE__*/React.createElement("div", {
1193
- className: `${styles$5['select-content-bottom-inner']}`
1229
+ className: `${styles$6['select-content-bottom']}`
1230
+ }, /*#__PURE__*/React__default.createElement("div", {
1231
+ className: `${styles$6['select-content-bottom-inner']}`
1194
1232
  }, existOptions && existOptions.length > 0 && existOptions.map((option, i) => {
1195
- return /*#__PURE__*/React.createElement("div", {
1233
+ return /*#__PURE__*/React__default.createElement("div", {
1196
1234
  key: i,
1197
1235
  disabled: true,
1198
1236
  defaultValue: option[keyNames.id],
1199
1237
  onClick: disabled ? _ => _ : _ => handleSelectItem(option),
1200
1238
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
1201
1239
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
1202
- className: `${styles$5['select-content-bottom-row']}`,
1240
+ className: `${styles$6['select-content-bottom-row']}`,
1203
1241
  style: {
1204
1242
  color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
1205
1243
  cursor: optionItemCursor ? optionItemCursor : configStyles.SELECT.optionItemCursor,
@@ -1212,10 +1250,10 @@ const Select = ({
1212
1250
  marginBottom: optionItemMarginBottom ? optionItemMarginBottom : configStyles.SELECT.optionItemMarginBottom,
1213
1251
  backgroundColor: optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor
1214
1252
  }
1215
- }, multiple && multipleCheckbox ? /*#__PURE__*/React.createElement(SelectCheckbox, {
1253
+ }, multiple && multipleCheckbox ? /*#__PURE__*/React__default.createElement(SelectCheckbox, {
1216
1254
  checked: option.checked
1217
1255
  }) : '', option[keyNames.name]);
1218
- }))) : null)), errorMessage ? /*#__PURE__*/React.createElement("span", {
1256
+ }))) : null)), errorMessage ? /*#__PURE__*/React__default.createElement("span", {
1219
1257
  style: {
1220
1258
  color: errorColor ? errorColor : configStyles.SELECT.errorColor,
1221
1259
  fontSize: errorSize ? errorSize : configStyles.SELECT.errorSize
@@ -1276,6 +1314,277 @@ Select.propTypes = {
1276
1314
  optionItemBackgroudColorHover: PropTypes.string
1277
1315
  };
1278
1316
 
1317
+ const SvgToasterInfo = ({
1318
+ title,
1319
+ titleId,
1320
+ ...props
1321
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
1322
+ width: "1em",
1323
+ height: "1em",
1324
+ viewBox: "0 0 24 24",
1325
+ fill: "none",
1326
+ xmlns: "http://www.w3.org/2000/svg",
1327
+ "aria-labelledby": titleId
1328
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
1329
+ id: titleId
1330
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
1331
+ d: "M12 18c.34 0 .625-.115.856-.346.23-.23.345-.515.344-.854v-4.83c0-.34-.115-.62-.346-.84A1.19 1.19 0 0 0 12 10.8c-.34 0-.625.115-.856.346-.23.23-.345.515-.344.854v4.83c0 .34.115.62.346.84.23.22.515.33.854.33Zm0-9.6c.34 0 .625-.115.856-.346.23-.23.345-.515.344-.854 0-.34-.115-.625-.346-.856A1.157 1.157 0 0 0 12 6c-.34 0-.625.115-.856.346-.23.23-.345.515-.344.854 0 .34.115.625.346.856.23.23.515.345.854.344ZM12 24c-1.66 0-3.22-.315-4.68-.946a12.137 12.137 0 0 1-3.81-2.564 12.11 12.11 0 0 1-2.564-3.81C.316 15.22 0 13.66 0 12c0-1.66.315-3.22.946-4.68.63-1.46 1.485-2.73 2.564-3.81A12.11 12.11 0 0 1 7.32.946C8.78.316 10.34 0 12 0c1.66 0 3.22.315 4.68.946 1.46.63 2.73 1.485 3.81 2.564a12.127 12.127 0 0 1 2.566 3.81c.63 1.46.945 3.02.944 4.68 0 1.66-.315 3.22-.946 4.68a12.137 12.137 0 0 1-2.564 3.81 12.127 12.127 0 0 1-3.81 2.566c-1.46.63-3.02.945-4.68.944Z",
1332
+ fill: "#00236A"
1333
+ }));
1334
+
1335
+ const SvgToasterError = ({
1336
+ title,
1337
+ titleId,
1338
+ ...props
1339
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
1340
+ width: "1em",
1341
+ height: "1em",
1342
+ viewBox: "0 0 24 24",
1343
+ fill: "none",
1344
+ xmlns: "http://www.w3.org/2000/svg",
1345
+ "aria-labelledby": titleId
1346
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
1347
+ id: titleId
1348
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
1349
+ d: "M12 0a12 12 0 1 1 0 24 12 12 0 0 1 0-24Zm0 16a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm0-11a1 1 0 0 0-.984.82L11 6v7l.016.18a1 1 0 0 0 1.968 0L13 13V6l-.016-.18A1 1 0 0 0 12 5Z",
1350
+ fill: "#E00"
1351
+ }));
1352
+
1353
+ const SvgToasterClose = ({
1354
+ title,
1355
+ titleId,
1356
+ ...props
1357
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
1358
+ width: "1em",
1359
+ height: "1em",
1360
+ viewBox: "0 0 18 18",
1361
+ fill: "none",
1362
+ xmlns: "http://www.w3.org/2000/svg",
1363
+ "aria-labelledby": titleId
1364
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
1365
+ id: titleId
1366
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
1367
+ d: "m10.47 8.95 7.29-7.29A1 1 0 0 0 16.35.25L9.06 7.54 1.77.24A1 1 0 0 0 .36 1.65l7.29 7.3-7.3 7.29a.999.999 0 1 0 1.41 1.41l7.3-7.29 7.29 7.29a1 1 0 0 0 1.41-1.41l-7.29-7.29Z",
1368
+ fill: "#D1D1D1"
1369
+ }));
1370
+
1371
+ const SvgToasterWarning = ({
1372
+ title,
1373
+ titleId,
1374
+ ...props
1375
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
1376
+ width: "1em",
1377
+ height: "1em",
1378
+ viewBox: "0 0 24 21",
1379
+ fill: "none",
1380
+ xmlns: "http://www.w3.org/2000/svg",
1381
+ "aria-labelledby": titleId
1382
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
1383
+ id: titleId
1384
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
1385
+ d: "M1.156 21a1.143 1.143 0 0 1-.994-.583 1.285 1.285 0 0 1-.16-.57c-.01-.204.043-.403.16-.597L10.978.583c.117-.194.268-.34.454-.437C11.616.049 11.806 0 12 0c.194 0 .384.049.57.146.185.097.336.243.452.437L23.838 19.25c.116.194.17.394.161.599a1.26 1.26 0 0 1-.161.568 1.14 1.14 0 0 1-.41.423 1.09 1.09 0 0 1-.584.16H1.156ZM12 17.5c.331 0 .61-.112.834-.336.224-.224.336-.5.335-.83 0-.331-.112-.608-.337-.832a1.128 1.128 0 0 0-.832-.335c-.331 0-.609.112-.834.336-.224.224-.336.5-.335.83 0 .33.112.608.337.832.224.224.502.336.832.335Zm0-3.5c.331 0 .61-.112.834-.336.224-.224.336-.5.335-.83v-3.5c0-.331-.112-.608-.337-.832A1.128 1.128 0 0 0 12 8.166c-.331 0-.609.112-.834.336-.224.224-.336.5-.335.83v3.5c0 .33.112.608.337.832.224.224.502.336.832.335Z",
1386
+ fill: "#FF8A00"
1387
+ }));
1388
+
1389
+ const SvgToasterSuccess = ({
1390
+ title,
1391
+ titleId,
1392
+ ...props
1393
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
1394
+ width: "1em",
1395
+ height: "1em",
1396
+ viewBox: "0 0 24 24",
1397
+ fill: "none",
1398
+ xmlns: "http://www.w3.org/2000/svg",
1399
+ "aria-labelledby": titleId
1400
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
1401
+ id: titleId
1402
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
1403
+ d: "M12 0a12 12 0 1 1 0 24 12 12 0 0 1 0-24Zm-1.495 14.367L7.84 11.7a1.028 1.028 0 1 0-1.455 1.455l3.394 3.395a1.024 1.024 0 0 0 1.456 0l7.028-7.03a1.03 1.03 0 1 0-1.453-1.456l-6.304 6.303Z",
1404
+ fill: "#0DA574"
1405
+ }));
1406
+
1407
+ var css_248z$5 = "#toaster-module_top-left__q0LcN{left:0;top:1em}#toaster-module_top-right__f-AFL{right:0;top:1em}#toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}#toaster-module_bottom-left__b-YHI{bottom:1em;left:0}#toaster-module_bottom-right__g9ACP{bottom:1em;right:0}#toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_top-left__q0LcN{left:0;top:1em}.toaster-module_top-right__f-AFL{right:0;top:1em}.toaster-module_top-center__eVRbc{left:50%;top:1em;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_bottom-left__b-YHI{bottom:1em;left:0}.toaster-module_bottom-right__g9ACP{bottom:1em;right:0}.toaster-module_bottom-center__4KcFe{bottom:1em;left:50%;transform:translateX(-50%);-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%)}.toaster-module_notify-block__pRnEB{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.toaster-module_bounce-in-right__shR2D{-webkit-animation-name:toaster-module_bounceInRight__rSk5p;animation-name:toaster-module_bounceInRight__rSk5p}.toaster-module_bounce-out-right__48pyA{-webkit-animation-name:toaster-module_bounceOutRight__bmFGS;animation-name:toaster-module_bounceOutRight__bmFGS}@keyframes toaster-module_bounceInRight__rSk5p{0%{opacity:0;right:-100%}60%{opacity:1;right:40px}75%{right:0}90%{right:30px}to{right:20px}}@keyframes toaster-module_bounceOutRight__bmFGS{0%{opacity:1;right:20px}60%{opacity:1;right:60px}to{opacity:0;right:-100%}}.toaster-module_bounce-in-left__xoF-M{-webkit-animation-name:toaster-module_bounceInLeft__to59v;animation-name:toaster-module_bounceInLeft__to59v}.toaster-module_bounce-out-left__fDOZw{-webkit-animation-name:toaster-module_bounceOutLeft__k5QgO;animation-name:toaster-module_bounceOutLeft__k5QgO}@keyframes toaster-module_bounceInLeft__to59v{0%{left:-100%;opacity:0}60%{left:40px;opacity:1}75%{left:0}90%{left:30px}to{left:20px}}@keyframes toaster-module_bounceOutLeft__k5QgO{0%{left:20px;opacity:1}60%{left:60px;opacity:1}to{left:-100%;opacity:0}}";
1408
+ var styles$5 = {"top-left":"toaster-module_top-left__q0LcN","top-right":"toaster-module_top-right__f-AFL","top-center":"toaster-module_top-center__eVRbc","bottom-left":"toaster-module_bottom-left__b-YHI","bottom-right":"toaster-module_bottom-right__g9ACP","bottom-center":"toaster-module_bottom-center__4KcFe","notify-block":"toaster-module_notify-block__pRnEB","bounce-in-right":"toaster-module_bounce-in-right__shR2D","bounceInRight":"toaster-module_bounceInRight__rSk5p","bounce-out-right":"toaster-module_bounce-out-right__48pyA","bounceOutRight":"toaster-module_bounceOutRight__bmFGS","bounce-in-left":"toaster-module_bounce-in-left__xoF-M","bounceInLeft":"toaster-module_bounceInLeft__to59v","bounce-out-left":"toaster-module_bounce-out-left__fDOZw","bounceOutLeft":"toaster-module_bounceOutLeft__k5QgO"};
1409
+ styleInject(css_248z$5);
1410
+
1411
+ const ToasterType = {
1412
+ info: 'info',
1413
+ warn: 'warn',
1414
+ error: 'error',
1415
+ success: 'success'
1416
+ };
1417
+ const ToasterPosition = {
1418
+ topLeft: 'top-left',
1419
+ topRight: 'top-right',
1420
+ topCenter: 'top-center',
1421
+ bottomLeft: 'bottom-left',
1422
+ bottomRight: 'bottom-right',
1423
+ bottomCenter: 'bottom-center'
1424
+ };
1425
+ const Toast = ({
1426
+ type,
1427
+ title,
1428
+ timer,
1429
+ position,
1430
+ removeToast,
1431
+ description
1432
+ }) => {
1433
+ let timeoutCall;
1434
+ let timeoutClick;
1435
+ const ref = useRef(null);
1436
+ const [showToaster, setShowToaster] = useState(true);
1437
+ const handleToasterClick = e => {
1438
+ e.stopPropagation();
1439
+ };
1440
+ const handleCloseToaster = ref => {
1441
+ setShowToaster(false);
1442
+ timeoutClick = setTimeout(() => {
1443
+ removeToast(ref, position);
1444
+ }, 300);
1445
+ clearTimeout(timeoutCall);
1446
+ };
1447
+ useEffect(() => {
1448
+ timeoutCall = setTimeout(() => {
1449
+ handleCloseToaster(ref);
1450
+ }, timer);
1451
+ return () => {
1452
+ setShowToaster(true);
1453
+ clearTimeout(timeoutCall);
1454
+ clearTimeout(timeoutClick);
1455
+ };
1456
+ }, []);
1457
+ return /*#__PURE__*/React__default.createElement("div", {
1458
+ ref: ref,
1459
+ onClick: handleToasterClick,
1460
+ style: {
1461
+ position: 'absolute',
1462
+ display: 'flex',
1463
+ width: '440px',
1464
+ height: '83px',
1465
+ borderRadius: '40px',
1466
+ alignItems: 'center',
1467
+ boxSizing: 'border-box',
1468
+ backgroundColor: '#FFFFFF',
1469
+ border: '2px solid #EEEEEE',
1470
+ padding: '14px 29px 14px 12px',
1471
+ justifyContent: 'space-between'
1472
+ },
1473
+ className: `
1474
+ ${styles$5['notify-block']}
1475
+ ${position === 'top-left' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : position === 'top-right' ? showToaster ? styles$5['bounce-in-right'] : styles$5['bounce-out-right'] : position === 'top-center' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : position === 'bottom-left' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : position === 'bottom-right' ? showToaster ? styles$5['bounce-in-right'] : styles$5['bounce-out-right'] : position === 'bottom-center' ? showToaster ? styles$5['bounce-in-left'] : styles$5['bounce-out-left'] : ''}
1476
+ `
1477
+ }, /*#__PURE__*/React__default.createElement("div", {
1478
+ style: {
1479
+ display: 'flex',
1480
+ width: '60px',
1481
+ height: '60px',
1482
+ borderRadius: '30px',
1483
+ alignItems: 'center',
1484
+ justifyContent: 'center',
1485
+ backgroundColor: type === 'info' ? 'rgba(0, 35, 106, 0.05)' : type === 'warn' ? 'rgba(255, 138, 0, 0.05)' : type === 'error' ? 'rgba(238, 0, 0, 0.05)' : type === 'success' ? 'rgba(13, 165, 116, 0.05)' : ''
1486
+ }
1487
+ }, type === 'info' ? /*#__PURE__*/React__default.createElement(SvgToasterInfo, null) : type === 'warn' ? /*#__PURE__*/React__default.createElement(SvgToasterWarning, null) : type === 'error' ? /*#__PURE__*/React__default.createElement(SvgToasterError, null) : type === 'success' ? /*#__PURE__*/React__default.createElement(SvgToasterSuccess, null) : ''), /*#__PURE__*/React__default.createElement("div", {
1488
+ style: {
1489
+ height: '100%',
1490
+ width: 'calc(100% - 90px)'
1491
+ }
1492
+ }, /*#__PURE__*/React__default.createElement("p", {
1493
+ style: {
1494
+ fontWeight: 600,
1495
+ color: '#3C393E',
1496
+ fontSize: '16px',
1497
+ lineHeight: '22px',
1498
+ fontStyle: 'normal',
1499
+ fontFamily: ''
1500
+ }
1501
+ }, title ? title.length > 25 ? title.substr(0, 25) + '...' : title : ''), /*#__PURE__*/React__default.createElement("span", {
1502
+ style: {
1503
+ fontWeight: 500,
1504
+ color: '#3C393E',
1505
+ fontSize: '12px',
1506
+ lineHeight: '16px',
1507
+ fontStyle: 'normal',
1508
+ fontFamily: '',
1509
+ opacity: 0.8
1510
+ }
1511
+ }, description ? description.length > 120 ? description.substr(0, 120) + '...' : description : '')), /*#__PURE__*/React__default.createElement("div", {
1512
+ onClick: () => handleCloseToaster(ref),
1513
+ style: {
1514
+ width: '18px',
1515
+ height: '18px',
1516
+ cursor: 'pointer'
1517
+ }
1518
+ }, /*#__PURE__*/React__default.createElement(SvgToasterClose, null)));
1519
+ };
1520
+ Toast.propTypes = {
1521
+ description: PropTypes.string,
1522
+ title: PropTypes.string.isRequired,
1523
+ timer: PropTypes.number.isRequired,
1524
+ removeToast: PropTypes.func.isRequired,
1525
+ type: PropTypes.oneOf(Object.values(ToasterType)).isRequired,
1526
+ position: PropTypes.oneOf(Object.values(ToasterPosition)).isRequired
1527
+ };
1528
+
1529
+ let toastify;
1530
+ const removeToast = (ref, position) => {
1531
+ const parent = document.getElementById(styles$5[position]);
1532
+ const node = ReactDOM.findDOMNode(ref.current);
1533
+ const removeElem = node.parentNode;
1534
+ parent.removeChild(removeElem);
1535
+ if (!parent.hasChildNodes()) {
1536
+ toastify.removeChild(parent);
1537
+ }
1538
+ };
1539
+ const createToast = ({
1540
+ type,
1541
+ title,
1542
+ timer,
1543
+ position,
1544
+ description
1545
+ }) => {
1546
+ let toastParentBlock;
1547
+ const toastBlock = document.createElement('div');
1548
+ toastBlock.style.position = 'relative';
1549
+ toastBlock.style.flexShrink = 0;
1550
+ toastBlock.style.width = '440px';
1551
+ toastBlock.style.height = '83px';
1552
+ toastBlock.style.marginBottom = '20px';
1553
+ const newElem = /*#__PURE__*/React__default.createElement(Toast, {
1554
+ type,
1555
+ timer,
1556
+ title,
1557
+ position,
1558
+ removeToast,
1559
+ description
1560
+ });
1561
+ ReactDOM.render(newElem, toastBlock);
1562
+ if (!toastify) {
1563
+ toastify = document.getElementById('toastify');
1564
+ }
1565
+ if (!document.getElementById(styles$5[position])) {
1566
+ toastParentBlock = document.createElement('div');
1567
+ toastParentBlock.style.position = 'fixed';
1568
+ toastParentBlock.style.display = 'flex';
1569
+ toastParentBlock.style.zIndex = 99999;
1570
+ toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
1571
+ toastParentBlock.setAttribute('id', styles$5[position]);
1572
+ toastParentBlock.appendChild(toastBlock);
1573
+ toastify.appendChild(toastParentBlock);
1574
+ } else {
1575
+ document.getElementById(styles$5[position]).appendChild(toastBlock);
1576
+ }
1577
+ };
1578
+ const Toaster = () => {
1579
+ const handleToasterClick = e => {
1580
+ e.stopPropagation();
1581
+ };
1582
+ return /*#__PURE__*/React__default.createElement("div", {
1583
+ onClick: handleToasterClick,
1584
+ id: "toastify"
1585
+ });
1586
+ };
1587
+
1279
1588
  var ReactInfoIcon = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M8 0C3.58214 0 0 3.58214 0 8C0 12.4179 3.58214 16 8 16C12.4179 16 16 12.4179 16 8C16 3.58214 12.4179 0 8 0ZM8.57143 11.8571C8.57143 11.9357 8.50714 12 8.42857 12H7.57143C7.49286 12 7.42857 11.9357 7.42857 11.8571V7C7.42857 6.92143 7.49286 6.85714 7.57143 6.85714H8.42857C8.50714 6.85714 8.57143 6.92143 8.57143 7V11.8571ZM8 5.71429C7.7757 5.70971 7.56213 5.61739 7.40513 5.45714C7.24812 5.2969 7.16018 5.08149 7.16018 4.85714C7.16018 4.6328 7.24812 4.41739 7.40513 4.25714C7.56213 4.0969 7.7757 4.00458 8 4C8.2243 4.00458 8.43787 4.0969 8.59488 4.25714C8.75189 4.41739 8.83982 4.6328 8.83982 4.85714C8.83982 5.08149 8.75189 5.2969 8.59488 5.45714C8.43787 5.61739 8.2243 5.70971 8 5.71429Z\" fill=\"#D1D1D1\"/>\n</svg>";
1280
1589
 
1281
1590
  var css_248z$4 = ".tooltip-module_tooltip-block__v8U9u{align-items:center;display:flex;justify-content:center;position:relative}.tooltip-module_tooltip__emM6A{padding:10px;position:absolute;z-index:1}.tooltip-module_tooltip-rel__to9gq{align-items:center;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;display:flex;height:auto;justify-content:center;min-height:10px;min-width:30px;position:relative;width:auto}.tooltip-module_tooltip-decor__qvt7t{border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px;-ms-border-radius:2px;-o-border-radius:2px;height:10px;position:absolute;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);width:10px;z-index:-1}";
@@ -1314,7 +1623,7 @@ const Tooltip = ({
1314
1623
  tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
1315
1624
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
1316
1625
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
1317
- return /*#__PURE__*/React.createElement("div", {
1626
+ return /*#__PURE__*/React__default.createElement("div", {
1318
1627
  className: `${styles$4['tooltip-block']}`,
1319
1628
  style: {
1320
1629
  width: width ? width : configStyles.TOOLTIP.width,
@@ -1322,7 +1631,7 @@ const Tooltip = ({
1322
1631
  borderRadius: radius ? radius : configStyles.TOOLTIP.radius,
1323
1632
  backgroundColor: backgroundColor ? backgroundColor : configStyles.TOOLTIP.backgroundColor
1324
1633
  }
1325
- }, showTooltip ? /*#__PURE__*/React.createElement("div", {
1634
+ }, showTooltip ? /*#__PURE__*/React__default.createElement("div", {
1326
1635
  ref: tooltipRef,
1327
1636
  className: classProps,
1328
1637
  style: {
@@ -1332,27 +1641,27 @@ const Tooltip = ({
1332
1641
  top: type === 'top' ? `calc(-${checkTooltipHeight + 7}px)` : type === 'bottom' ? 'calc(100% + 7px)' : type === 'left' || type === 'right' ? `calc(50% - ${checkTooltipHeight / 2}px)` : '0px',
1333
1642
  left: type === 'top' || type === 'bottom' ? `calc(50% - ${checkTooltipWidth / 2}px)` : type === 'left' ? `-${checkTooltipWidth + 7}px` : type === 'right' ? 'calc(100% + 7px)' : '0px'
1334
1643
  }
1335
- }, /*#__PURE__*/React.createElement("div", {
1644
+ }, /*#__PURE__*/React__default.createElement("div", {
1336
1645
  className: `${styles$4['tooltip-rel']}`
1337
- }, /*#__PURE__*/React.createElement("div", {
1646
+ }, /*#__PURE__*/React__default.createElement("div", {
1338
1647
  className: `${styles$4['tooltip-decor']}`,
1339
1648
  style: {
1340
1649
  backgroundColor: tooltipBackgroundColor ? tooltipBackgroundColor : configStyles.TOOLTIP.tooltipBackgroundColor,
1341
1650
  left: type === 'top' || type === 'bottom' ? 'calc(50% - 5px)' : type === 'right' ? '-15px' : type === 'left' ? 'calc(100% + 5px)' : '0px',
1342
1651
  top: type === 'top' ? 'calc(100% + 5px)' : type === 'bottom' ? '-15px' : type === 'right' || type === 'left' ? 'calc(50% - 5px)' : '0px'
1343
1652
  }
1344
- }), /*#__PURE__*/React.createElement("p", {
1653
+ }), /*#__PURE__*/React__default.createElement("p", {
1345
1654
  style: {
1346
1655
  color: color ? color : configStyles.TOOLTIP.color,
1347
1656
  fontSize: fontSize ? fontSize : configStyles.TOOLTIP.fontSize,
1348
1657
  fontFamily: fontFamily ? fontFamily : configStyles.TOOLTIP.fontFamily
1349
1658
  }
1350
- }, text))) : '', /*#__PURE__*/React.createElement("div", {
1659
+ }, text))) : '', /*#__PURE__*/React__default.createElement("div", {
1351
1660
  style: {
1352
1661
  cursor: 'pointer'
1353
1662
  },
1354
1663
  onClick: handleShow
1355
- }, tooltipIcon ? tooltipIcon : /*#__PURE__*/React.createElement("img", {
1664
+ }, tooltipIcon ? tooltipIcon : /*#__PURE__*/React__default.createElement("img", {
1356
1665
  src: ReactInfoIcon
1357
1666
  })));
1358
1667
  };
@@ -1410,27 +1719,27 @@ const Captcha = ({
1410
1719
  function sliderChange(e) {
1411
1720
  setRight(rangeCount == e.target.value ? true : false);
1412
1721
  }
1413
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1722
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
1414
1723
  className: styles$3.main
1415
- }, /*#__PURE__*/React.createElement("div", {
1724
+ }, /*#__PURE__*/React__default.createElement("div", {
1416
1725
  className: styles$3.range
1417
- }, /*#__PURE__*/React.createElement("i", {
1726
+ }, /*#__PURE__*/React__default.createElement("i", {
1418
1727
  className: "icon-vector-down"
1419
- })), /*#__PURE__*/React.createElement("input", {
1728
+ })), /*#__PURE__*/React__default.createElement("input", {
1420
1729
  type: "range",
1421
1730
  className: styles$3.slider,
1422
1731
  onClick: right ? onclick : null,
1423
1732
  onInput: sliderInput,
1424
1733
  onMouseUp: sliderChange
1425
- }), /*#__PURE__*/React.createElement("div", {
1734
+ }), /*#__PURE__*/React__default.createElement("div", {
1426
1735
  className: styles$3.selector
1427
- }, /*#__PURE__*/React.createElement("div", {
1736
+ }, /*#__PURE__*/React__default.createElement("div", {
1428
1737
  className: styles$3.selectBtn
1429
- })), /*#__PURE__*/React.createElement("div", {
1738
+ })), /*#__PURE__*/React__default.createElement("div", {
1430
1739
  className: styles$3.progressBar
1431
- }), /*#__PURE__*/React.createElement("div", {
1740
+ }), /*#__PURE__*/React__default.createElement("div", {
1432
1741
  className: styles$3.range
1433
- }, /*#__PURE__*/React.createElement("i", {
1742
+ }, /*#__PURE__*/React__default.createElement("i", {
1434
1743
  className: "icon-vector-up"
1435
1744
  }))));
1436
1745
  };
@@ -1454,15 +1763,15 @@ const Stepper = ({
1454
1763
  activeSteps
1455
1764
  }) => {
1456
1765
  classnames(className, 'stepper-inner-rem');
1457
- return /*#__PURE__*/React.createElement("div", {
1766
+ return /*#__PURE__*/React__default.createElement("div", {
1458
1767
  className: `${styles$2['stepper-container']} stepper-container-rem`
1459
1768
  }, (() => {
1460
1769
  let steppers = [];
1461
1770
  for (let step = 1; step <= stepLength; step++) {
1462
- steppers.push( /*#__PURE__*/React.createElement("div", {
1771
+ steppers.push( /*#__PURE__*/React__default.createElement("div", {
1463
1772
  className: classnames(`${step <= activeSteps ? styles$2.activeRing : styles$2.bigRing}`),
1464
1773
  key: step
1465
- }, /*#__PURE__*/React.createElement("div", {
1774
+ }, /*#__PURE__*/React__default.createElement("div", {
1466
1775
  className: classnames(`${step <= activeSteps ? styles$2.smallActiveRing : styles$2.smallRing}`)
1467
1776
  }, step <= activeSteps ? step : "")));
1468
1777
  }
@@ -1579,50 +1888,50 @@ const Pagination = ({
1579
1888
  currentPageNumber !== 5 ? onPageChange(currentPageNumber - 5) : onPageChange(currentPageNumber - 4);
1580
1889
  };
1581
1890
  let lastPage = paginationRange[paginationRange.length - 1];
1582
- return /*#__PURE__*/React.createElement("ul", {
1891
+ return /*#__PURE__*/React__default.createElement("ul", {
1583
1892
  className: classProps
1584
- }, /*#__PURE__*/React.createElement("button", {
1893
+ }, /*#__PURE__*/React__default.createElement("button", {
1585
1894
  className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
1586
1895
  onClick: onPrevious,
1587
1896
  disabled: currentPage === 1 ? true : false
1588
- }, /*#__PURE__*/React.createElement("i", {
1897
+ }, /*#__PURE__*/React__default.createElement("i", {
1589
1898
  className: "icon-arrow-back"
1590
1899
  })), paginationRange.map((pageNumber, id) => {
1591
1900
  if (pageNumber === Dots) {
1592
1901
  let currentPageIndex = paginationRange.indexOf(currentPageNumber);
1593
- return /*#__PURE__*/React.createElement("li", {
1902
+ return /*#__PURE__*/React__default.createElement("li", {
1594
1903
  key: id,
1595
1904
  className: classnames(`${styles$1["pagination-jump-next"]} pagination-jump-next-rem`, styles$1.listItem),
1596
1905
  onClick: id < currentPageIndex ? onPreviousFive : onNextFive,
1597
1906
  disabled: currentPageIndex === 0 ? true : false
1598
- }, id < currentPageIndex ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
1907
+ }, id < currentPageIndex ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
1599
1908
  className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
1600
- }, /*#__PURE__*/React.createElement("i", {
1909
+ }, /*#__PURE__*/React__default.createElement("i", {
1601
1910
  className: "icon-text"
1602
- })), /*#__PURE__*/React.createElement("span", {
1911
+ })), /*#__PURE__*/React__default.createElement("span", {
1603
1912
  className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`
1604
- }, /*#__PURE__*/React.createElement("i", {
1913
+ }, /*#__PURE__*/React__default.createElement("i", {
1605
1914
  className: "icon-arrow-jump-back"
1606
- }))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
1915
+ }))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", {
1607
1916
  className: `${styles$1["pagination-jump-next-txt"]} pagination-jump-next-txt-rem`
1608
- }, /*#__PURE__*/React.createElement("i", {
1917
+ }, /*#__PURE__*/React__default.createElement("i", {
1609
1918
  className: "icon-text"
1610
- })), /*#__PURE__*/React.createElement("span", {
1919
+ })), /*#__PURE__*/React__default.createElement("span", {
1611
1920
  className: `${styles$1["pagination-jump-next-arrow"]} pagination-jump-next-arrow-rem`
1612
- }, /*#__PURE__*/React.createElement("i", {
1921
+ }, /*#__PURE__*/React__default.createElement("i", {
1613
1922
  className: "icon-arrow-jump-next"
1614
1923
  }))));
1615
1924
  }
1616
- return /*#__PURE__*/React.createElement("li", {
1925
+ return /*#__PURE__*/React__default.createElement("li", {
1617
1926
  onClick: () => onPageChange(pageNumber),
1618
1927
  key: id,
1619
1928
  className: classnames(`${pageNumber === currentPageNumber ? styles$1.selected : styles$1.listItem}`, `${styles$1["pagination-item"]} pagination-item-rem`)
1620
1929
  }, pageNumber);
1621
- }), /*#__PURE__*/React.createElement("button", {
1930
+ }), /*#__PURE__*/React__default.createElement("button", {
1622
1931
  onClick: onNext,
1623
1932
  className: `${styles$1["pagination-btn"]} pagination-btn-rem`,
1624
1933
  disabled: currentPageNumber === lastPage ? true : false
1625
- }, /*#__PURE__*/React.createElement("i", {
1934
+ }, /*#__PURE__*/React__default.createElement("i", {
1626
1935
  className: "icon-arrow"
1627
1936
  })));
1628
1937
  };
@@ -1694,32 +2003,32 @@ const Autocomplate = ({
1694
2003
  let optionList;
1695
2004
  if (showOptions && inputValue) {
1696
2005
  if (parseOptionsData.length && inputValue.length >= searchCount) {
1697
- optionList = /*#__PURE__*/React.createElement("div", {
2006
+ optionList = /*#__PURE__*/React__default.createElement("div", {
1698
2007
  className: `${styles['autocomplate-content-bottom']} autocomplate-content-bottom-rem`
1699
- }, /*#__PURE__*/React.createElement("div", {
2008
+ }, /*#__PURE__*/React__default.createElement("div", {
1700
2009
  className: `${styles['autocomplate-content-bottom-inner']} autocomplate-content-bottom-inner-rem`
1701
2010
  }, parseOptionsData.map((optionName, index) => {
1702
2011
  let className;
1703
2012
  if (index === activeOption) {
1704
2013
  className = "option-active";
1705
2014
  }
1706
- return /*#__PURE__*/React.createElement("div", {
2015
+ return /*#__PURE__*/React__default.createElement("div", {
1707
2016
  className: `${styles[className]} autocomplate-content-click-rem`,
1708
2017
  key: optionName[keyNames.id],
1709
2018
  onClick: handleClick
1710
- }, /*#__PURE__*/React.createElement("div", {
2019
+ }, /*#__PURE__*/React__default.createElement("div", {
1711
2020
  id: optionName[keyNames.id],
1712
2021
  className: `${styles['autocomplate-content-bottom-row']} autocomplate-content-bottom-row-rem`
1713
2022
  }, optionName[keyNames.name]));
1714
2023
  })));
1715
2024
  } else {
1716
- optionList = /*#__PURE__*/React.createElement("div", {
2025
+ optionList = /*#__PURE__*/React__default.createElement("div", {
1717
2026
  className: `${styles['autocomplate-content-bottom']} autocomplate-content-bottom-rem`
1718
- }, /*#__PURE__*/React.createElement("div", {
2027
+ }, /*#__PURE__*/React__default.createElement("div", {
1719
2028
  className: `${styles['autocomplate-content-bottom-inner']} autocomplate-content-bottom-inner-rem`
1720
- }, /*#__PURE__*/React.createElement("div", {
2029
+ }, /*#__PURE__*/React__default.createElement("div", {
1721
2030
  className: `${styles['autocomplate-content-bottom-row']} autocomplate-content-bottom-row-rem`
1722
- }, /*#__PURE__*/React.createElement("div", {
2031
+ }, /*#__PURE__*/React__default.createElement("div", {
1723
2032
  className: `${styles['no-option']} autocomplate-no-option`
1724
2033
  }, inputValue.length < searchCount ? `Լրացնել առնվազն ${searchCount} նիշ` : 'Նման տվյալ առկա չէ'))));
1725
2034
  }
@@ -1728,15 +2037,15 @@ const Autocomplate = ({
1728
2037
  setInputValue(JSON.parse(jsonSelectedOptionsData)[keyNames.name]);
1729
2038
  setInputId(JSON.parse(jsonSelectedOptionsData)[keyNames.id]);
1730
2039
  }, [JSON.parse(jsonSelectedOptionsData)[keyNames.id]]);
1731
- return /*#__PURE__*/React.createElement(React.Fragment, null, label ? /*#__PURE__*/React.createElement("label", {
2040
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
1732
2041
  className: `${styles['autocomplate-title']} autocomplate-title-rem`
1733
- }, label, " ", required && /*#__PURE__*/React.createElement("sup", {
2042
+ }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
1734
2043
  style: {
1735
2044
  color: "#ee0000"
1736
2045
  }
1737
- }, "*")) : "", /*#__PURE__*/React.createElement("div", {
2046
+ }, "*")) : "", /*#__PURE__*/React__default.createElement("div", {
1738
2047
  className: `${styles['autocomplate-content']} autocomplate-content-rem`
1739
- }, /*#__PURE__*/React.createElement("input", _extends({
2048
+ }, /*#__PURE__*/React__default.createElement("input", _extends({
1740
2049
  id: inputId,
1741
2050
  type: "text",
1742
2051
  autoComplete: autoComplete ? autoComplete : configStyles.INPUT.autoComplete,
@@ -1748,7 +2057,7 @@ const Autocomplate = ({
1748
2057
  },
1749
2058
  value: inputValue,
1750
2059
  placeholder: placeHolder
1751
- }, props)), errorMessage ? /*#__PURE__*/React.createElement("span", {
2060
+ }, props)), errorMessage ? /*#__PURE__*/React__default.createElement("span", {
1752
2061
  className: styles.errorMessage
1753
2062
  }, errorMessage) : null, optionList));
1754
2063
  };
@@ -1771,4 +2080,4 @@ Autocomplate.defaultProps = {
1771
2080
  required: false
1772
2081
  };
1773
2082
 
1774
- export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, Pagination, Radio, Select, SelectCheckbox, Stepper, Table, Tooltip, Typography, TypographyType };
2083
+ export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, Pagination, Radio, Select, SelectCheckbox, Stepper, Table, Toaster, Tooltip, Typography, TypographyType, createToast };