@xaypay/tui 0.0.97 → 0.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -66,9 +66,9 @@ function styleInject(css, ref) {
66
66
  }
67
67
  }
68
68
 
69
- var css_248z$g = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{display:block;height:auto;max-height:95%;object-fit:contain;width:27.8rem}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
69
+ var css_248z$f = ".file-module_file-form__l13d5{align-items:center;background:#fbfbfb;border:2px dashed;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;height:190px;justify-content:space-between;overflow:hidden;padding:4px 0;position:relative;width:100%}.file-module_file-form-wrap__qY--B:before{background:rgba(60,57,62,.4);border-radius:6px;content:\"\";height:100%;left:0;opacity:0;pointer-events:none;position:absolute;top:0;transition:opacity .24s;width:100%;z-index:1}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover:before{opacity:1;pointer-events:unset}.file-module_file-form-wrap__qY--B.file-module_active__L1gPt:hover .file-module_delete-upload-icon__PWN66{opacity:1}.file-module_file-form-inner-upload__tq3Dn{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:16px;padding-top:48px}.file-module_file-form-inner-upload__tq3Dn>img{display:block;margin-bottom:14px}.file-module_upload-info__a8GFs{margin-bottom:40px;max-width:150px;text-align:center}.file-module_upload-info-txt__l11uN{color:#0da574}.file-module_file-form__l13d5.file-module_default__t7KU0{border-color:#d1d1d1}.file-module_file-form__l13d5.file-module_error__H-M4Z{border-color:#e00!important}.file-module_file-form__l13d5.file-module_accept__WTW6V{border-color:#00236a}.file-module_delete-upload-icon__PWN66{align-items:center;background:#fff;border-radius:6px;cursor:pointer;display:flex;height:26px;justify-content:center;opacity:0;position:absolute;right:10px;top:10px;transition:opacity .24s;width:26px;z-index:11}.file-module_delete-upload-icon__PWN66>i{color:#00236a;font-size:16px}.file-module_upload-file-content__QHMjn{align-items:center;display:flex;height:100%;justify-content:center;max-height:190px;overflow:hidden;position:relative;width:100%}.file-module_upload-file-content__QHMjn>img{display:block;height:auto;max-height:95%;object-fit:contain;width:27.8rem}.file-module_file-form-title__zWTSB{margin-bottom:10px;max-width:390px;word-break:break-all}.file-module_file-form-wrap__qY--B{position:relative;transform:translateZ(0)}";
70
70
  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"};
71
- styleInject(css_248z$g);
71
+ styleInject(css_248z$f);
72
72
 
73
73
  const File = ({
74
74
  name,
@@ -190,63 +190,6 @@ File.defaultProps = {
190
190
  fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
191
191
  };
192
192
 
193
- const _ = require('lodash');
194
- const compereConfigs = () => {
195
- let projectConfig = {};
196
- let packageConfig = {};
197
- try {
198
- packageConfig = require('../tui.config.js');
199
- } catch (e) {
200
- try {
201
- packageConfig = require('../../tui.config.js');
202
- } catch (err) {
203
- packageConfig = {};
204
- }
205
- }
206
- try {
207
- projectConfig = require('../../../../tui.config.js');
208
- } catch (error) {
209
- projectConfig = {};
210
- // console.log(error, 'Project: if you want to use custom styles, create tui.config.js file in your project root');
211
- }
212
-
213
- return _.merge(packageConfig, projectConfig);
214
- };
215
-
216
- var css_248z$f = "";
217
- styleInject(css_248z$f);
218
-
219
- const Chart = ({
220
- width,
221
- height
222
- }) => {
223
- compereConfigs();
224
- useEffect(() => {
225
- const canvas = document.getElementById('myChart');
226
- // const canvas = canvasRef.current;
227
- const ctx = canvas.getContext('2d');
228
- const data = [10, 20, 30, 15, 25];
229
- const barWidth = 40;
230
- const chartHeight = 200;
231
- ctx.clearRect(0, 0, canvas.width, canvas.height);
232
- data.forEach((value, index) => {
233
- const x = index * (barWidth + 10);
234
- const y = chartHeight - value;
235
- ctx.fillStyle = 'blue';
236
- ctx.fillRect(x, y, barWidth, value);
237
- });
238
- }, []);
239
- return /*#__PURE__*/React__default.createElement("canvas", {
240
- id: "myChart",
241
- width: width,
242
- height: height
243
- });
244
- };
245
- Chart.propTypes = {
246
- width: PropTypes.number,
247
- height: PropTypes.number
248
- };
249
-
250
193
  const SvgCheckboxUnchecked = ({
251
194
  title,
252
195
  titleId,
@@ -328,6 +271,29 @@ SingleCheckbox.propTypes = {
328
271
  var css_248z$e = ".table-module_sorting-arrows__BaN-G:after{content:\"▲\";font-size:11px;position:absolute;right:0;top:calc(50% - 12px)}.table-module_sorting-arrows__BaN-G:before{bottom:calc(50% - 12px);content:\"▼\";font-size:11px;position:absolute;right:0}.table-module_td-span__XHo6k{cursor:pointer;display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}";
329
272
  styleInject(css_248z$e);
330
273
 
274
+ const _ = require('lodash');
275
+ const compereConfigs = () => {
276
+ let projectConfig = {};
277
+ let packageConfig = {};
278
+ try {
279
+ packageConfig = require('../tui.config.js');
280
+ } catch (e) {
281
+ try {
282
+ packageConfig = require('../../tui.config.js');
283
+ } catch (err) {
284
+ packageConfig = {};
285
+ }
286
+ }
287
+ try {
288
+ projectConfig = require('../../../../tui.config.js');
289
+ } catch (error) {
290
+ projectConfig = {};
291
+ // console.log(error, 'Project: if you want to use custom styles, create tui.config.js file in your project root');
292
+ }
293
+
294
+ return _.merge(packageConfig, projectConfig);
295
+ };
296
+
331
297
  ({
332
298
  dataBody: PropTypes.array,
333
299
  dataHeader: PropTypes.array,
@@ -490,6 +456,11 @@ const Modal = ({
490
456
  }
491
457
  }
492
458
  };
459
+ const handleESC = e => {
460
+ if (e.key === 'Escape') {
461
+ handleCloseModal();
462
+ }
463
+ };
493
464
  useEffect(() => {
494
465
  if (type === 'images') {
495
466
  if (data) {
@@ -515,9 +486,11 @@ const Modal = ({
515
486
  }
516
487
  }, [selected]);
517
488
  useEffect(() => {
489
+ document.addEventListener('keydown', handleESC, false);
518
490
  return () => {
519
491
  setSelect(0);
520
492
  setInnerData([]);
493
+ document.removeEventListener('keydown', handleESC, false);
521
494
  };
522
495
  }, []);
523
496
  return /*#__PURE__*/React__default.createElement("div", {
@@ -702,7 +675,7 @@ Modal.defaultProps = {
702
675
  type: 'content'
703
676
  };
704
677
 
705
- var css_248z$c = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{-webkit-appearance:none;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}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@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)}}";
678
+ var css_248z$c = ".input-module_input-wrap__NunrE{position:relative;width:100%}.input-module_input-content__kP7lZ{-webkit-appearance:none;display:flex;width:100%}input:-webkit-autofill,input:-webkit-autofill:active,input:-webkit-autofill:focus,input:-webkit-autofill:hover{background-color:inherit!important}input::-ms-clear,input::-ms-reveal{display:none}.input-module_error-message-show__OrVSo{animation-fill-mode:forwards;animation-name:input-module_error-show__9MP6k}.input-module_inp-num__vH7HL::-webkit-inner-spin-button,.input-module_inp-num__vH7HL::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-module_inp-num__vH7HL[type=number]{-moz-appearance:textfield}@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)}}";
706
679
  var styles$a = {"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","inp-num":"input-module_inp-num__vH7HL"};
707
680
  styleInject(css_248z$c);
708
681
 
@@ -843,14 +816,42 @@ const Input = ({
843
816
  change(`${maxNumSize}`);
844
817
  }
845
818
  }
846
- if (floatToFix && floatToFix > 0 && !Number.isInteger(parseFloat(currentValue))) {
819
+ if (floatToFix && floatToFix > 0) {
847
820
  const floatNumParts = typeof currentValue === 'string' ? currentValue.split('.') : currentValue;
848
821
  const int = floatNumParts[0];
849
822
  const float = floatNumParts[1];
850
- if (float && float.length > floatToFix) {
851
- setInnerValue(`${int}.${float.substr(0, floatToFix)}`);
852
- if (change) {
853
- change(`${int}.${float.substr(0, floatToFix)}`);
823
+ if (float) {
824
+ if (float[0] === '0' || float[0] !== '0') {
825
+ if (float[1] === undefined) {
826
+ setInnerValue(`${int}.${float[0]}`);
827
+ if (change) {
828
+ change(`${int}.${float[0]}`);
829
+ }
830
+ } else if (float[1] === '0') {
831
+ if (float[2] === undefined || float[2] === '0') {
832
+ setInnerValue(`${int}.${float[0]}`);
833
+ if (change) {
834
+ change(`${int}.${float[0]}`);
835
+ }
836
+ } else if (float[2] !== undefined && float[2] !== '0') {
837
+ setInnerValue(`${int}.${float[0]}${float[1]}${float[2]}`);
838
+ if (change) {
839
+ change(`${int}.${float[0]}${float[1]}${float[2]}`);
840
+ }
841
+ }
842
+ } else if (float[1] !== undefined && float[1] !== '0') {
843
+ if (float[2] === undefined || float[2] === '0') {
844
+ setInnerValue(`${int}.${float[0]}${float[1]}`);
845
+ if (change) {
846
+ change(`${int}.${float[0]}${float[1]}`);
847
+ }
848
+ } else if (float[2] !== undefined && float[2] !== '0') {
849
+ setInnerValue(`${int}.${float[0]}${float[1]}${float[2]}`);
850
+ if (change) {
851
+ change(`${int}.${float[0]}${float[1]}${float[2]}`);
852
+ }
853
+ }
854
+ }
854
855
  }
855
856
  }
856
857
  } else if (floatToFix === 0) {
@@ -939,14 +940,51 @@ const Input = ({
939
940
  change(`${maxNumSize}`);
940
941
  }
941
942
  }
942
- if (floatToFix && floatToFix > 0 && !Number.isInteger(parseFloat(value))) {
943
+ if (floatToFix && floatToFix > 0) {
943
944
  const floatNumParts = typeof value === 'string' ? value.split('.') : value;
944
945
  const int = floatNumParts[0];
945
946
  const float = floatNumParts[1];
946
- if (float && float.length > floatToFix) {
947
- setInnerValue(`${int}.${float.substr(0, floatToFix)}`);
947
+ if (float) {
948
+ if (float[0] === '0' || float[0] !== '0') {
949
+ if (float[1] === undefined) {
950
+ setInnerValue(`${int}.${float[0]}`);
951
+ if (change) {
952
+ change(`${int}.${float[0]}`);
953
+ }
954
+ } else if (float[1] === '0') {
955
+ if (float[2] === undefined || float[2] === '0') {
956
+ setInnerValue(`${int}.${float[0]}`);
957
+ if (change) {
958
+ change(`${int}.${float[0]}`);
959
+ }
960
+ } else if (float[2] !== undefined && float[2] !== '0') {
961
+ setInnerValue(`${int}.${float[0]}${float[1]}${float[2]}`);
962
+ if (change) {
963
+ change(`${int}.${float[0]}${float[1]}${float[2]}`);
964
+ }
965
+ }
966
+ } else if (float[1] !== undefined && float[1] !== '0') {
967
+ if (float[2] === undefined || float[2] === '0') {
968
+ setInnerValue(`${int}.${float[0]}${float[1]}`);
969
+ if (change) {
970
+ change(`${int}.${float[0]}${float[1]}`);
971
+ }
972
+ } else if (float[2] !== undefined && float[2] !== '0') {
973
+ setInnerValue(`${int}.${float[0]}${float[1]}${float[2]}`);
974
+ if (change) {
975
+ change(`${int}.${float[0]}${float[1]}${float[2]}`);
976
+ }
977
+ }
978
+ }
979
+ }
980
+ }
981
+ } else if (floatToFix === 0) {
982
+ const floatNumParts = typeof value === 'string' ? currentValue.split('.') : value;
983
+ const int = floatNumParts[0];
984
+ if (floatNumParts && floatNumParts.length > 0 && floatToFix === 0) {
985
+ setInnerValue(`${int}`);
948
986
  if (change) {
949
- change(`${int}.${float.substr(0, floatToFix)}`);
987
+ change(`${int}`);
950
988
  }
951
989
  }
952
990
  }
@@ -1323,11 +1361,12 @@ const SvgArrow = ({
1323
1361
  fill: fillColor ? fillColor : '#3C393E'
1324
1362
  }));
1325
1363
 
1326
- var css_248z$a = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;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:99999999999}.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}}";
1327
- var styles$8 = {"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"};
1364
+ var css_248z$a = ".select-module_select-content__GCMDX{-webkit-appearance:none;display:flex;flex-direction:column;position:relative}.select-module_select-content-top__Aw-fB{align-items:center;-webkit-appearance:none;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:99999999999}.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}.select-module_ellipsis__uNgol{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes select-module_select-show__391hQ{to{max-height:234px}}";
1365
+ var styles$8 = {"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","ellipsis":"select-module_ellipsis__uNgol"};
1328
1366
  styleInject(css_248z$a);
1329
1367
 
1330
1368
  const Select = ({
1369
+ dots,
1331
1370
  options,
1332
1371
  multiple,
1333
1372
  disabled,
@@ -1578,17 +1617,18 @@ const Select = ({
1578
1617
  onClick: disabled ? _ => _ : _ => handleSelectItem(option),
1579
1618
  onMouseEnter: disabled ? _ => _ : e => handleMouseEnterOption(e),
1580
1619
  onMouseLeave: disabled ? _ => _ : e => handleMouseLeaveOption(e),
1581
- className: `${styles$8['select-content-bottom-row']}`,
1620
+ className: `${styles$8['select-content-bottom-row']} ${dots || configStyles.SELECT.dots ? styles$8['ellipsis'] : ''}`,
1582
1621
  style: {
1622
+ overflowWrap: !dots && !configStyles.SELECT.dots ? 'anywhere' : 'break-word',
1583
1623
  color: optionItemColor ? optionItemColor : configStyles.SELECT.optionItemColor,
1584
1624
  cursor: optionItemCursor ? optionItemCursor : configStyles.SELECT.optionItemCursor,
1585
1625
  padding: optionItemPadding ? optionItemPadding : configStyles.SELECT.optionItemPadding,
1586
1626
  fontSize: optionItemFontSize ? optionItemFontSize : configStyles.SELECT.optionItemFontSize,
1587
1627
  boxSizing: optionItemBoxSizing ? optionItemBoxSizing : configStyles.SELECT.optionItemBoxSizing,
1588
- minHeight: optionItemMinHeight ? optionItemMinHeight : configStyles.SELECT.optionItemMinHeight,
1628
+ minHeight: !dots && !configStyles.SELECT.dots ? 'auto' : optionItemMinHeight ? optionItemMinHeight : configStyles.SELECT.optionItemMinHeight,
1589
1629
  fontWeight: optionItemFontWeight ? optionItemFontWeight : configStyles.SELECT.optionItemFontWeight,
1590
- lineHeight: optionItemLineHeight ? optionItemLineHeight : configStyles.SELECT.optionItemLineHeight,
1591
- marginBottom: optionItemMarginBottom ? optionItemMarginBottom : configStyles.SELECT.optionItemMarginBottom,
1630
+ lineHeight: dots || configStyles.SELECT.dots ? '46px' : optionItemLineHeight ? optionItemLineHeight : configStyles.SELECT.optionItemLineHeight,
1631
+ marginBottom: !dots && !configStyles.SELECT.dots ? '10px' : optionItemMarginBottom ? optionItemMarginBottom : configStyles.SELECT.optionItemMarginBottom,
1592
1632
  backgroundColor: optionItemBackgroudColor ? optionItemBackgroudColor : configStyles.SELECT.optionItemBackgroudColor
1593
1633
  }
1594
1634
  }, multiple && multipleCheckbox ? /*#__PURE__*/React__default.createElement(SingleCheckbox, {
@@ -1605,6 +1645,7 @@ const Select = ({
1605
1645
  }, errorMessage) : '');
1606
1646
  };
1607
1647
  Select.propTypes = {
1648
+ dots: PropTypes.bool,
1608
1649
  options: PropTypes.array,
1609
1650
  multiple: PropTypes.bool,
1610
1651
  onChange: PropTypes.func,
@@ -1925,7 +1966,7 @@ const createToast = ({
1925
1966
  toastParentBlock = document.createElement('div');
1926
1967
  toastParentBlock.style.position = 'fixed';
1927
1968
  toastParentBlock.style.display = 'flex';
1928
- toastParentBlock.style.zIndex = 99999;
1969
+ toastParentBlock.style.zIndex = 9999999999999999999999999;
1929
1970
  toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
1930
1971
  toastParentBlock.setAttribute('id', styles$7[position]);
1931
1972
  toastParentBlock.appendChild(toastBlock);
@@ -3678,14 +3719,21 @@ const Pagination = ({
3678
3719
  }
3679
3720
  };
3680
3721
  let lastPage = paginationRange[paginationRange.length - 1];
3681
- return /*#__PURE__*/React__default.createElement("ul", {
3722
+ return /*#__PURE__*/React__default.createElement("div", {
3723
+ style: {
3724
+ display: 'flex',
3725
+ margin: '0 auto',
3726
+ alignItems: 'center',
3727
+ justifyContent: 'center'
3728
+ }
3729
+ }, /*#__PURE__*/React__default.createElement("ul", {
3682
3730
  className: classProps
3683
3731
  }, /*#__PURE__*/React__default.createElement("button", {
3684
3732
  style: {
3685
3733
  transform: 'rotate(180deg)'
3686
3734
  },
3687
3735
  onClick: onPrevious,
3688
- disabled: currentPage === 1 ? true : false,
3736
+ disabled: currentPageNumber === 1 ? true : false,
3689
3737
  className: `${styles$2["pagination-btn"]} pagination-btn-rem`
3690
3738
  }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null)), paginationRange.map((pageNumber, id) => {
3691
3739
  if (pageNumber === Dots) {
@@ -3717,7 +3765,7 @@ const Pagination = ({
3717
3765
  onClick: onNext,
3718
3766
  disabled: currentPageNumber === lastPage ? true : false,
3719
3767
  className: `${styles$2["pagination-btn"]} pagination-btn-rem`
3720
- }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null)), goTo && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("input", {
3768
+ }, /*#__PURE__*/React__default.createElement(SvgNextarrow, null))), goTo && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("input", {
3721
3769
  onKeyDown: handleKeyDown,
3722
3770
  onInput: handleChangeInput,
3723
3771
  type: "number",
@@ -3975,6 +4023,7 @@ const NewAutocomplete = ({
3975
4023
  const [show, setShow] = useState(false);
3976
4024
  const [isHover, setIsHover] = useState(false);
3977
4025
  const [isFocus, setIsFocus] = useState(false);
4026
+ const [innerError, setInnerError] = useState('');
3978
4027
  const [innerValue, setInnerValue] = useState('');
3979
4028
  const [innerOptions, setInnerOptions] = useState([]);
3980
4029
  const configStyles = compereConfigs();
@@ -4010,6 +4059,7 @@ const NewAutocomplete = ({
4010
4059
  const value = e.target.value;
4011
4060
  const currentId = e.target.id;
4012
4061
  value.length > 0 ? setShow(true) : setShow(false);
4062
+ setInnerError('');
4013
4063
  setInnerValue(value);
4014
4064
  if (value.length >= searchCount) {
4015
4065
  change({
@@ -4075,7 +4125,7 @@ const NewAutocomplete = ({
4075
4125
  backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor
4076
4126
  }
4077
4127
  }, item[keyNames.name]);
4078
- }))) : innerOptions.length <= 0 ? /*#__PURE__*/React__default.createElement("span", {
4128
+ }))) : innerOptions.length <= 0 ? innerError ? '' : /*#__PURE__*/React__default.createElement("span", {
4079
4129
  style: {
4080
4130
  position: 'absolute',
4081
4131
  zIndex: '9999999999',
@@ -4116,6 +4166,9 @@ const NewAutocomplete = ({
4116
4166
  setInnerValue('');
4117
4167
  }
4118
4168
  }, [selected]);
4169
+ useEffect(() => {
4170
+ setInnerError(errorMessage);
4171
+ }, [errorMessage]);
4119
4172
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
4120
4173
  style: {
4121
4174
  color: labelColor ? labelColor : configStyles.NEWAUTOCOMPLETE.labelColor,
@@ -4169,7 +4222,7 @@ const NewAutocomplete = ({
4169
4222
  flexDirection: contentTopDirection ? contentTopDirection : configStyles.NEWAUTOCOMPLETE.contentTopDirection,
4170
4223
  boxShadow: errorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.NEWAUTOCOMPLETE.errorColor}` : isFocus ? contentTopBorderActive ? contentTopBorderActive : configStyles.NEWAUTOCOMPLETE.contentTopBorderActive : isHover ? contentTopBorderHover ? contentTopBorderHover : configStyles.NEWAUTOCOMPLETE.contentTopBorderHover : contentTopBorder ? contentTopBorder : configStyles.NEWAUTOCOMPLETE.contentTopBorder
4171
4224
  }
4172
- }, props)), errorMessage ? /*#__PURE__*/React__default.createElement("span", {
4225
+ }, props)), innerError ? /*#__PURE__*/React__default.createElement("span", {
4173
4226
  style: {
4174
4227
  left: '0px',
4175
4228
  position: 'absolute',
@@ -4178,7 +4231,7 @@ const NewAutocomplete = ({
4178
4231
  top: marginTop ? `calc(100% + ${marginTop})` : `calc(100% + ${configStyles.INPUT.marginTop})`,
4179
4232
  maxWidth: contentTopMaxWidth ? contentTopMaxWidth : configStyles.NEWAUTOCOMPLETE.contentTopMaxWidth
4180
4233
  }
4181
- }, errorMessage) : '', optionList));
4234
+ }, innerError) : '', optionList));
4182
4235
  };
4183
4236
  NewAutocomplete.propTypes = {
4184
4237
  label: PropTypes.string,
@@ -4260,4 +4313,4 @@ NewAutocomplete.defaultProps = {
4260
4313
  disabled: false
4261
4314
  };
4262
4315
 
4263
- export { Autocomplate, Button, Captcha, Chart, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, SingleCheckbox, Stepper, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };
4316
+ export { Autocomplate, Button, Captcha, Checkbox, File, Input, InputTypes, Modal, NewAutocomplete, NewFile, Pagination, Radio, Select, SingleCheckbox, Stepper, Textarea, Toaster, Tooltip, Typography, TypographyType, toast };