@xaypay/tui 0.0.106 → 0.0.108

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
@@ -39,6 +39,24 @@ const SvgPdf = ({
39
39
  fill: fillColor ? fillColor : '#00236A'
40
40
  }));
41
41
 
42
+ const SvgRequired = ({
43
+ title,
44
+ titleId,
45
+ ...props
46
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
47
+ width: "12",
48
+ height: "12",
49
+ viewBox: "0 0 12 12",
50
+ fill: "none",
51
+ xmlns: "http://www.w3.org/2000/svg",
52
+ "aria-labelledby": titleId
53
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
54
+ id: titleId
55
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
56
+ d: "M9.281 7.317 7 6l2.281-1.317a.5.5 0 0 0-.5-.866L6.5 5.134V2.5a.5.5 0 1 0-1 0v2.634L3.219 3.817a.5.5 0 0 0-.5.866L5 6 2.719 7.317a.5.5 0 0 0 .5.866L5.5 6.866V9.5a.5.5 0 1 0 1 0V6.866l2.281 1.317a.5.5 0 0 0 .5-.866Z",
57
+ fill: "#E00"
58
+ }));
59
+
42
60
  function styleInject(css, ref) {
43
61
  if ( ref === void 0 ) ref = {};
44
62
  var insertAt = ref.insertAt;
@@ -129,11 +147,7 @@ const File = ({
129
147
  };
130
148
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
131
149
  className: `${styles$c['file-form-title']} ile-form-title-rem`
132
- }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
133
- style: {
134
- color: '#ee0000'
135
- }
136
- }, "*")), /*#__PURE__*/React__default.createElement("div", {
150
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), /*#__PURE__*/React__default.createElement("div", {
137
151
  className: classnames(`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
138
152
  }, /*#__PURE__*/React__default.createElement("div", {
139
153
  className: `${styles$c['file-form']} file-form-rem ${error || errorMessage ? styles$c['error'] : ''}`,
@@ -260,7 +274,8 @@ const Checkbox$1 = ({
260
274
  disabled,
261
275
  checkedColor,
262
276
  handleChecked,
263
- unCheckedColor
277
+ unCheckedColor,
278
+ ignoreDisabledForChecked
264
279
  }) => {
265
280
  const configStyles = compereConfigs();
266
281
  const [innerChecked, setInnerChecked] = useState(false);
@@ -284,7 +299,7 @@ const Checkbox$1 = ({
284
299
  ...styles
285
300
  },
286
301
  onClick: !innerDisabled && handleChecked ? handleClick : _ => _
287
- }, innerChecked && !innerDisabled ? /*#__PURE__*/React__default.createElement(SvgCheckboxChecked, {
302
+ }, innerChecked && (ignoreDisabledForChecked ? ignoreDisabledForChecked : !innerDisabled) ? /*#__PURE__*/React__default.createElement(SvgCheckboxChecked, {
288
303
  fillColor: checkedColor ? checkedColor : configStyles.SINGLECHECKBOX.checkedColor
289
304
  }) : /*#__PURE__*/React__default.createElement(SvgCheckboxUnchecked, {
290
305
  fillColor: unCheckedColor ? unCheckedColor : configStyles.SINGLECHECKBOX.unCheckedColor
@@ -298,7 +313,8 @@ const SingleCheckbox = ({
298
313
  disabled,
299
314
  checkedColor,
300
315
  handleChecked,
301
- unCheckedColor
316
+ unCheckedColor,
317
+ ignoreDisabledForChecked
302
318
  }) => {
303
319
  const [innerData, setInnerData] = useState(null);
304
320
  useEffect(() => {
@@ -320,7 +336,8 @@ const SingleCheckbox = ({
320
336
  disabled: disabled,
321
337
  checkedColor: checkedColor,
322
338
  handleChecked: handleChecked,
323
- unCheckedColor: unCheckedColor
339
+ unCheckedColor: unCheckedColor,
340
+ ignoreDisabledForChecked: ignoreDisabledForChecked
324
341
  });
325
342
  };
326
343
  SingleCheckbox.propTypes = {
@@ -329,7 +346,8 @@ SingleCheckbox.propTypes = {
329
346
  styles: PropTypes.object,
330
347
  disabled: PropTypes.bool,
331
348
  checkedColor: PropTypes.string,
332
- unCheckedColor: PropTypes.string
349
+ unCheckedColor: PropTypes.string,
350
+ ignoreDisabledForChecked: PropTypes.bool
333
351
  };
334
352
 
335
353
  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}";
@@ -351,12 +369,6 @@ styleInject(css_248z$e);
351
369
  tBodyFontWeight: PropTypes.string,
352
370
  tBodyFontFamily: PropTypes.string,
353
371
  tBodyRowBorder: PropTypes.string,
354
- // handleCheckedBody: PropTypes.func,
355
- // handleCheckedHeader: PropTypes.func,
356
- // handleHeaderItemClick: PropTypes.func,
357
- // handleBodyActionClick: PropTypes.func
358
-
359
- setTableDataBody: PropTypes.func,
360
372
  setTableDataHeader: PropTypes.func
361
373
  });
362
374
 
@@ -584,6 +596,7 @@ const Modal = ({
584
596
  }, type === 'content' && /*#__PURE__*/React__default.createElement("div", {
585
597
  style: {
586
598
  width: '100%',
599
+ minWidth: '0',
587
600
  display: 'flex',
588
601
  alignItems: 'center',
589
602
  boxSizing: 'border-box',
@@ -1090,11 +1103,7 @@ const Input = ({
1090
1103
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
1091
1104
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
1092
1105
  }
1093
- }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
1094
- style: {
1095
- color: errorColor ? errorColor : '#ee0000'
1096
- }
1097
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
1106
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
1098
1107
  className: `${styles$a['input-content']}`,
1099
1108
  style: {
1100
1109
  width: width ? width : configStyles.INPUT.width,
@@ -1610,7 +1619,8 @@ const Select = ({
1610
1619
  return /*#__PURE__*/React__default.createElement("div", {
1611
1620
  className: classProps,
1612
1621
  style: {
1613
- position: 'relative'
1622
+ position: 'relative',
1623
+ width: '100%'
1614
1624
  }
1615
1625
  }, label ? /*#__PURE__*/React__default.createElement("label", {
1616
1626
  style: {
@@ -1622,11 +1632,7 @@ const Select = ({
1622
1632
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
1623
1633
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
1624
1634
  }
1625
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
1626
- style: {
1627
- color: '#ee0000'
1628
- }
1629
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
1635
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
1630
1636
  ref: ref
1631
1637
  }, /*#__PURE__*/React__default.createElement("div", {
1632
1638
  className: styles$8['select-content']
@@ -1651,7 +1657,7 @@ const Select = ({
1651
1657
  }, /*#__PURE__*/React__default.createElement("div", {
1652
1658
  className: `${styles$8['select-content-top-text']}`,
1653
1659
  style: {
1654
- whiteSpace: 'nowrap',
1660
+ whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
1655
1661
  overflow: 'hidden',
1656
1662
  textOverflow: 'ellipsis',
1657
1663
  color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor
@@ -1877,10 +1883,11 @@ const SvgToasterSuccess = ({
1877
1883
  fill: fillColor ? fillColor : '#0DA574'
1878
1884
  }));
1879
1885
 
1880
- var css_248z$9 = "#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}}";
1881
- var styles$7 = {"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"};
1886
+ var css_248z$9 = "#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}.toaster-module_notify-desc__bcWe2,.toaster-module_notify-title__8lFLy{overflow:hidden;text-overflow:ellipsis}.toaster-module_notify-desc__bcWe2{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box}@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}}";
1887
+ var styles$7 = {"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","notify-title":"toaster-module_notify-title__8lFLy","notify-desc":"toaster-module_notify-desc__bcWe2","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"};
1882
1888
  styleInject(css_248z$9);
1883
1889
 
1890
+ let wWidth$1 = window.innerWidth;
1884
1891
  const ToasterType = {
1885
1892
  info: 'info',
1886
1893
  warn: 'warn',
@@ -1933,7 +1940,7 @@ const Toast = ({
1933
1940
  style: {
1934
1941
  position: 'absolute',
1935
1942
  display: 'flex',
1936
- width: '440px',
1943
+ width: wWidth$1 > 480 ? '440px' : '300px',
1937
1944
  height: '83px',
1938
1945
  borderRadius: '40px',
1939
1946
  alignItems: 'center',
@@ -1970,8 +1977,9 @@ const Toast = ({
1970
1977
  fontSize: '16px',
1971
1978
  lineHeight: '22px',
1972
1979
  fontStyle: 'normal'
1973
- }
1974
- }, title ? title.length > 25 ? title.substr(0, 25) + '...' : title : ''), /*#__PURE__*/React__default.createElement("span", {
1980
+ },
1981
+ className: styles$7['notify-title']
1982
+ }, title ? title : ''), /*#__PURE__*/React__default.createElement("span", {
1975
1983
  style: {
1976
1984
  fontWeight: 500,
1977
1985
  color: '#3C393E',
@@ -1980,8 +1988,9 @@ const Toast = ({
1980
1988
  fontStyle: 'normal',
1981
1989
  fontFamily: '',
1982
1990
  opacity: 0.8
1983
- }
1984
- }, description ? description.length > 120 ? description.substr(0, 120) + '...' : description : '')), /*#__PURE__*/React__default.createElement("div", {
1991
+ },
1992
+ className: styles$7['notify-desc']
1993
+ }, description ? description : '')), /*#__PURE__*/React__default.createElement("div", {
1985
1994
  onClick: () => handleCloseToaster(ref),
1986
1995
  style: {
1987
1996
  width: '18px',
@@ -2006,6 +2015,7 @@ Toast.defaultProps = {
2006
2015
 
2007
2016
  let toastify;
2008
2017
  let path = window.location.href;
2018
+ let wWidth = window.innerWidth;
2009
2019
  const removeToast = ref => {
2010
2020
  // eslint-disable-next-line react/no-find-dom-node
2011
2021
  const node = ReactDOM.findDOMNode(ref.current);
@@ -2030,7 +2040,7 @@ const createToast = ({
2030
2040
  const toastBlock = document.createElement('div');
2031
2041
  toastBlock.style.position = 'relative';
2032
2042
  toastBlock.style.flexShrink = 0;
2033
- toastBlock.style.width = '440px';
2043
+ toastBlock.style.width = wWidth > 480 ? '440px' : '300px';
2034
2044
  toastBlock.style.height = '83px';
2035
2045
  toastBlock.style.marginBottom = '20px';
2036
2046
  const newElem = /*#__PURE__*/React__default.createElement(Toast, {
@@ -2409,7 +2419,7 @@ Captcha.propTypes = {
2409
2419
  getRange: PropTypes.func.isRequired
2410
2420
  };
2411
2421
 
2412
- var css_248z$6 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;cursor:pointer;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
2422
+ var css_248z$6 = ".stepper-module_stepper-container__-OVGy>div:last-child:before{display:none}.stepper-module_activeRing__Lzvh1,.stepper-module_bigRing__5GBm0{border-radius:50%;height:36px;margin-bottom:36px;position:relative;width:36px}.stepper-module_bigRing__5GBm0{box-shadow:0 0 0 2px #d1d1d1}.stepper-module_bigRing__5GBm0:before{background:#d1d1d1}.stepper-module_activeRing__Lzvh1{box-shadow:0 0 0 2px #00236a}.stepper-module_activeRing__Lzvh1:before{background:#00236a}.stepper-module_activeRing__Lzvh1:before,.stepper-module_bigRing__5GBm0:before{border-radius:20px;bottom:-32px;content:\"\";height:28px;left:0;margin:auto;overflow:hidden;position:absolute;right:0;width:2px}.stepper-module_smallActiveRing__im-XG,.stepper-module_smallRing__u-5a8{border-radius:50%;bottom:0;left:0;margin:auto;position:absolute;right:0;top:0}.stepper-module_smallRing__u-5a8{background-color:#d1d1d1;height:14px;width:14px}.stepper-module_smallActiveRing__im-XG{align-items:center;background-color:#00236a;color:#fff;display:flex;height:28px;justify-content:center;width:28px}";
2413
2423
  var styles$4 = {"stepper-container":"stepper-module_stepper-container__-OVGy","bigRing":"stepper-module_bigRing__5GBm0","activeRing":"stepper-module_activeRing__Lzvh1","smallRing":"stepper-module_smallRing__u-5a8","smallActiveRing":"stepper-module_smallActiveRing__im-XG"};
2414
2424
  styleInject(css_248z$6);
2415
2425
 
@@ -2504,6 +2514,46 @@ function v4(options, buf, offset) {
2504
2514
  return unsafeStringify(rnds);
2505
2515
  }
2506
2516
 
2517
+ const SvgHeic = ({
2518
+ title,
2519
+ titleId,
2520
+ ...props
2521
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2522
+ width: "32",
2523
+ height: "42",
2524
+ viewBox: "0 0 32 42",
2525
+ fill: "none",
2526
+ xmlns: "http://www.w3.org/2000/svg",
2527
+ "aria-labelledby": titleId
2528
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2529
+ id: titleId
2530
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2531
+ fillRule: "evenodd",
2532
+ clipRule: "evenodd",
2533
+ d: "m31.884 10.667-.022-.026c-.007-.01-.014-.018-.021-.025a.356.356 0 0 0-.052-.058L21.396.21 21.37.188l-.025-.021a.48.48 0 0 0-.029-.026l-.029-.025L21.178 0H2.91C2.138 0 1.398.305.852.848A2.891 2.891 0 0 0 0 2.897v36.206c0 .768.306 1.505.852 2.049A2.917 2.917 0 0 0 2.909 42h26.182c.771 0 1.511-.305 2.057-.848.546-.544.852-1.28.852-2.049V10.775l-.116-.108Zm-1.338 28.437a1.45 1.45 0 0 1-.427 1.022 1.463 1.463 0 0 1-1.028.426H2.91a1.463 1.463 0 0 1-1.027-.426 1.45 1.45 0 0 1-.427-1.022V27.85h9.986l1.963 2.238a.716.716 0 0 0 .546.246h16.596v8.77ZM5.088 18.357a.724.724 0 1 1 0-1.448h21.825a.724.724 0 1 1 0 1.448H5.088Zm21.825 1.738a.724.724 0 0 1 0 1.448H15.48a.724.724 0 0 1 0-1.448h11.432Zm.724-5.641c0 .4-.325.724-.724.724H5.088a.724.724 0 1 1 0-1.449h21.825c.4 0 .724.325.724.725ZM5.088 11.99a.724.724 0 1 1 0-1.448H16.52a.724.724 0 0 1 0 1.449H5.088Zm17.974-1.643A1.451 1.451 0 0 1 21.607 8.9V2.47l7.913 7.878h-6.458Zm2.434 26.076h-1.104c-.033.28-.1.517-.203.711-.1.192-.25.337-.446.437-.195.1-.45.15-.764.15-.26 0-.482-.051-.667-.154a1.278 1.278 0 0 1-.46-.437 2.158 2.158 0 0 1-.264-.676 4.288 4.288 0 0 1-.084-.883v-.543c0-.341.03-.645.093-.91.064-.267.16-.493.287-.675.126-.183.284-.321.472-.415.188-.094.41-.142.662-.142.31 0 .56.053.751.16a1 1 0 0 1 .433.45c.1.197.165.434.194.71H25.5a2.768 2.768 0 0 0-.362-1.143 2.041 2.041 0 0 0-.821-.781c-.354-.189-.786-.283-1.299-.283a2.7 2.7 0 0 0-1.09.212 2.29 2.29 0 0 0-.826.614c-.23.265-.406.584-.53.958-.12.374-.18.792-.18 1.254v.534c0 .462.058.88.176 1.254.12.374.294.693.52.958.228.262.5.465.818.61.318.141.675.212 1.073.212.518 0 .958-.095 1.32-.283.362-.188.643-.446.843-.773.2-.33.318-.705.354-1.126Zm-15-.772H7.608v2.865H6.5v-6.429h1.108v2.685h2.888v-2.685H11.6v6.43h-1.104v-2.866Zm6.632 2.865v-.878h-3.1v-2h2.654v-.866H14.03V32.97h3.077v-.883H12.92v6.43h4.208Zm2.089-6.429v6.43h-1.109v-6.43h1.109Z",
2534
+ fill: "#051942"
2535
+ }));
2536
+
2537
+ const SvgWrong = ({
2538
+ title,
2539
+ titleId,
2540
+ ...props
2541
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2542
+ width: "32",
2543
+ height: "42",
2544
+ viewBox: "0 0 32 42",
2545
+ fill: "none",
2546
+ xmlns: "http://www.w3.org/2000/svg",
2547
+ "aria-labelledby": titleId
2548
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2549
+ id: titleId
2550
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2551
+ fillRule: "evenodd",
2552
+ clipRule: "evenodd",
2553
+ d: "m31.884 10.667-.022-.026c-.007-.01-.014-.018-.021-.025a.356.356 0 0 0-.052-.058L21.396.21 21.37.188l-.025-.021a.48.48 0 0 0-.029-.026l-.029-.025L21.178 0H2.91C2.138 0 1.398.305.852.848A2.891 2.891 0 0 0 0 2.897v36.206c0 .768.306 1.505.852 2.049A2.917 2.917 0 0 0 2.909 42h26.182c.771 0 1.511-.305 2.057-.848.546-.544.852-1.28.852-2.049V10.775l-.116-.108Zm-1.338 28.437a1.45 1.45 0 0 1-.427 1.022 1.463 1.463 0 0 1-1.028.426H2.91a1.463 1.463 0 0 1-1.027-.426 1.45 1.45 0 0 1-.427-1.022V27.85h9.986l1.963 2.238a.716.716 0 0 0 .546.246h16.596v8.77ZM5.088 18.357a.724.724 0 1 1 0-1.448h21.825a.724.724 0 1 1 0 1.448H5.088Zm21.825 1.738a.724.724 0 0 1 0 1.448H15.48a.724.724 0 0 1 0-1.448h11.432Zm.724-5.641c0 .4-.325.724-.724.724H5.088a.724.724 0 1 1 0-1.449h21.825c.4 0 .724.325.724.725ZM5.088 11.99a.724.724 0 1 1 0-1.448H16.52a.724.724 0 0 1 0 1.449H5.088Zm17.974-1.643A1.451 1.451 0 0 1 21.607 8.9V2.47l7.913 7.878h-6.458Z",
2554
+ fill: "#051942"
2555
+ }));
2556
+
2507
2557
  const SvgListItemPdf = ({
2508
2558
  title,
2509
2559
  titleId,
@@ -2622,6 +2672,7 @@ const FileItem = /*#__PURE__*/React__default.memo(({
2622
2672
  listItemPadding,
2623
2673
  progressFontSize,
2624
2674
  listItemErrorSize,
2675
+ timeForRemoveError,
2625
2676
  listItemErrorColor,
2626
2677
  progressTrackColor,
2627
2678
  progressFailedColor,
@@ -2674,7 +2725,7 @@ const FileItem = /*#__PURE__*/React__default.memo(({
2674
2725
  if (check !== '') {
2675
2726
  setT(setTimeout(() => {
2676
2727
  removeFile(uuid);
2677
- }, 3500));
2728
+ }, timeForRemoveError));
2678
2729
  }
2679
2730
  }, [check]);
2680
2731
  return /*#__PURE__*/React__default.createElement("div", {
@@ -2687,27 +2738,59 @@ const FileItem = /*#__PURE__*/React__default.memo(({
2687
2738
  height: listItemHeight,
2688
2739
  boxSizing: 'border-box',
2689
2740
  padding: listItemPadding,
2690
- flexDirection: check !== '' ? 'column' : 'row',
2691
- justifyContent: check !== '' ? 'space-around' : 'space-between',
2741
+ flexDirection: 'row',
2742
+ justifyContent: 'space-between',
2743
+ border: check !== '' ? `1px solid ${listItemErrorColor}` : '',
2692
2744
  backgroundColor: check !== '' ? listItemBackgroundErrorColor : listItemBackgroundColor
2693
2745
  }
2694
- }, check !== '' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
2746
+ }, check !== '' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2747
+ style: {
2748
+ width: '32px'
2749
+ }
2750
+ }, /*#__PURE__*/React__default.createElement(SvgWrong, null)), /*#__PURE__*/React__default.createElement("div", {
2695
2751
  style: {
2752
+ position: 'relative',
2753
+ display: 'flex',
2754
+ height: '40px',
2696
2755
  margin: '0px',
2697
- color: listItemErrorColor,
2756
+ alignItems: 'flex-end',
2757
+ width: 'calc(100% - 40px)'
2758
+ }
2759
+ }, /*#__PURE__*/React__default.createElement("div", {
2760
+ style: {
2761
+ width: '100%',
2762
+ height: '100%',
2763
+ display: 'flex',
2764
+ paddingTop: '5px',
2765
+ color: progressColor,
2766
+ boxSizing: 'border-box',
2767
+ flexDirection: 'column',
2698
2768
  fontSize: listItemErrorSize
2699
2769
  }
2770
+ }, /*#__PURE__*/React__default.createElement("p", {
2771
+ style: {
2772
+ margin: '0px',
2773
+ overflow: 'hidden',
2774
+ whiteSpace: 'nowrap',
2775
+ textOverflow: 'ellipsis',
2776
+ width: '100%',
2777
+ maxWidth: '100%'
2778
+ }
2700
2779
  }, name), /*#__PURE__*/React__default.createElement("p", {
2701
2780
  style: {
2702
2781
  margin: '0px',
2703
- color: listItemErrorColor,
2704
- fontSize: listItemErrorSize
2782
+ overflow: 'hidden',
2783
+ whiteSpace: 'nowrap',
2784
+ textOverflow: 'ellipsis',
2785
+ width: '100%',
2786
+ maxWidth: '100%',
2787
+ color: listItemErrorColor
2705
2788
  }
2706
- }, check)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2789
+ }, check ? check : '')))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2707
2790
  style: {
2708
2791
  width: '32px'
2709
2792
  }
2710
- }, fileFormat === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : fileFormat === 'png' ? /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : ''), /*#__PURE__*/React__default.createElement("div", {
2793
+ }, fileFormat === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? /*#__PURE__*/React__default.createElement(SvgListItemJpg, null) : fileFormat === 'png' ? /*#__PURE__*/React__default.createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? /*#__PURE__*/React__default.createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? /*#__PURE__*/React__default.createElement(SvgHeic, null) : ''), /*#__PURE__*/React__default.createElement("div", {
2711
2794
  style: {
2712
2795
  position: 'relative',
2713
2796
  display: 'flex',
@@ -2880,7 +2963,7 @@ const NewFile = ({
2880
2963
  progressTrackColor,
2881
2964
  fileAreaImageWidth,
2882
2965
  listItemErrorColor,
2883
- labelRequiredColor,
2966
+ timeForRemoveError,
2884
2967
  progressFailedColor,
2885
2968
  fileAreaImageHeight,
2886
2969
  progressSuccessColor,
@@ -2921,7 +3004,7 @@ const NewFile = ({
2921
3004
  for (let ix = 0; ix < file.length; ix++) {
2922
3005
  if (file[ix]) {
2923
3006
  if (file[ix].size <= maxSize * Math.pow(2, 20)) {
2924
- if (fileExtensions.includes(file[ix].type.split('/')[1])) {
3007
+ if (fileExtensions.includes(file[ix].type.split('/')[1]) || fileExtensions.includes('heic') && file[ix].type.split('/')[1] === 'heif') {
2925
3008
  change({
2926
3009
  id: '',
2927
3010
  check: '',
@@ -2951,12 +3034,14 @@ const NewFile = ({
2951
3034
  } else {
2952
3035
  if (file[0]) {
2953
3036
  if (file[0].size <= maxSize * Math.pow(2, 20)) {
2954
- if (fileExtensions.includes(file[0].type.split('/')[1])) {
3037
+ if (fileExtensions.includes(file[0].type.split('/')[1]) || fileExtensions.includes('heic') && (file[0].type === 'image/heif' || file[0].type === 'image/heic')) {
2955
3038
  setError('');
2956
3039
  change(file);
2957
3040
  setSingleFile(file);
2958
3041
  if (file[0].type === 'application/pdf') {
2959
3042
  setImage('pdf');
3043
+ } else if (file[0].type === 'image/heif' || file[0].type === 'image/heic') {
3044
+ setImage('heic');
2960
3045
  } else {
2961
3046
  setImage(URL.createObjectURL(file[0]));
2962
3047
  }
@@ -3055,11 +3140,7 @@ const NewFile = ({
3055
3140
  color: labelColor ? labelColor : configStyles.File.labelColor,
3056
3141
  fontSize: labelSize ? labelSize : configStyles.File.labelSize
3057
3142
  }
3058
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
3059
- style: {
3060
- color: labelRequiredColor ? labelRequiredColor : configStyles.File.labelRequiredColor
3061
- }
3062
- }, "*")), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
3143
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
3063
3144
  style: {
3064
3145
  cursor: 'pointer'
3065
3146
  },
@@ -3105,7 +3186,7 @@ const NewFile = ({
3105
3186
  fontSize: size ? size : configStyles.File.size,
3106
3187
  fontWeight: weight ? weight : configStyles.File.weight
3107
3188
  }
3108
- }, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : /*#__PURE__*/React__default.createElement("img", {
3189
+ }, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? /*#__PURE__*/React__default.createElement(SvgHeic, null) : /*#__PURE__*/React__default.createElement("img", {
3109
3190
  src: image,
3110
3191
  style: {
3111
3192
  display: 'block',
@@ -3170,6 +3251,7 @@ const NewFile = ({
3170
3251
  status: item.status,
3171
3252
  size: item.file.size,
3172
3253
  name: item.file.name,
3254
+ timeForRemoveError: timeForRemoveError,
3173
3255
  removeFile: removeFile ? removeFile : _ => _,
3174
3256
  radius: radius ? radius : configStyles.File.radius,
3175
3257
  fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
@@ -3225,7 +3307,7 @@ NewFile.propTypes = {
3225
3307
  progressFontSize: PropTypes.string,
3226
3308
  borderHoverColor: PropTypes.string,
3227
3309
  listItemErrorSize: PropTypes.string,
3228
- labelRequiredColor: PropTypes.string,
3310
+ timeForRemoveError: PropTypes.number,
3229
3311
  progressTrackColor: PropTypes.string,
3230
3312
  fileAreaImageWidth: PropTypes.string,
3231
3313
  listItemErrorColor: PropTypes.string,
@@ -3242,7 +3324,8 @@ NewFile.propTypes = {
3242
3324
  };
3243
3325
  NewFile.defaultProps = {
3244
3326
  maxSize: 10,
3245
- fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
3327
+ timeForRemoveError: 5000,
3328
+ fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
3246
3329
  };
3247
3330
 
3248
3331
  var css_248z$5 = ".checkbox-module_checkbox-wrap__Xrg-m{align-items:center;cursor:pointer;display:inline-flex;flex-direction:row;flex-wrap:nowrap;margin:0 6px;padding-left:24px;position:relative}.checkbox-module_checkbox-wrap__Xrg-m>input{height:0;opacity:0;position:absolute;width:0}.checkbox-module_checkbox-wrap__Xrg-m .checkbox-module_checkmark__M8DY6{border:1px solid #d9d9d9;border-radius:3px;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}";
@@ -3364,8 +3447,7 @@ const Textarea = ({
3364
3447
  borderFocusColor,
3365
3448
  borderHoverColor,
3366
3449
  labelMarginBottom,
3367
- showCharacterCount,
3368
- labelRequiredColor
3450
+ showCharacterCount
3369
3451
  }) => {
3370
3452
  const [error, setError] = useState('');
3371
3453
  const [isHover, setIsHover] = useState(false);
@@ -3437,11 +3519,7 @@ const Textarea = ({
3437
3519
  display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
3438
3520
  fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
3439
3521
  }
3440
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
3441
- style: {
3442
- color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
3443
- }
3444
- }, "*")) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default.createElement("span", {
3522
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default.createElement("span", {
3445
3523
  style: {
3446
3524
  color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
3447
3525
  fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize
@@ -3512,8 +3590,7 @@ Textarea.propTypes = {
3512
3590
  borderFocusColor: PropTypes.string,
3513
3591
  borderHoverColor: PropTypes.string,
3514
3592
  labelMarginBottom: PropTypes.string,
3515
- onChange: PropTypes.func.isRequired,
3516
- labelRequiredColor: PropTypes.string
3593
+ onChange: PropTypes.func.isRequired
3517
3594
  };
3518
3595
 
3519
3596
  var css_248z$3 = "";
@@ -3592,7 +3669,6 @@ const Typography = ({
3592
3669
  return validVariant ? 'Please set Typography valid variant' : tagT;
3593
3670
  };
3594
3671
  Typography.propTypes = {
3595
- size: PropTypes.oneOf(PropTypes.string, PropTypes.number),
3596
3672
  color: PropTypes.string,
3597
3673
  onClick: PropTypes.func,
3598
3674
  weight: PropTypes.string,
@@ -3609,7 +3685,8 @@ Typography.propTypes = {
3609
3685
  textTransform: PropTypes.string,
3610
3686
  textDecoration: PropTypes.string,
3611
3687
  backgroundColor: PropTypes.string,
3612
- variant: PropTypes.oneOf(Object.values(TypographyType))
3688
+ variant: PropTypes.oneOf(Object.values(TypographyType)),
3689
+ size: PropTypes.oneOf(PropTypes.string, PropTypes.number)
3613
3690
  };
3614
3691
  Typography.defaultProps = {
3615
3692
  variant: 'p'
@@ -3951,11 +4028,7 @@ const Autocomplate = ({
3951
4028
  }, [JSON.parse(jsonSelectedOptionsData)[keyNames.id]]);
3952
4029
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
3953
4030
  className: `${styles$1['autocomplate-title']} autocomplate-title-rem`
3954
- }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
3955
- style: {
3956
- color: '#ee0000'
3957
- }
3958
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
4031
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
3959
4032
  className: `${styles$1['autocomplate-content']} autocomplate-content-rem`
3960
4033
  }, /*#__PURE__*/React__default.createElement("input", _extends({
3961
4034
  id: inputId,
@@ -4036,7 +4109,6 @@ const NewAutocomplete = ({
4036
4109
  contentBottomLeft,
4037
4110
  innerErrorPadding,
4038
4111
  showOptionDuration,
4039
- labelRequiredColor,
4040
4112
  contentTopMaxWidth,
4041
4113
  labelTextTransform,
4042
4114
  contentBottomWidth,
@@ -4184,7 +4256,7 @@ const NewAutocomplete = ({
4184
4256
  backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor
4185
4257
  }
4186
4258
  }, item[keyNames.name]);
4187
- }))) : innerOptions.length <= 0 ? innerError ? '' : /*#__PURE__*/React__default.createElement("span", {
4259
+ }))) : innerOptions.length <= 0 ? innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/React__default.createElement("span", {
4188
4260
  style: {
4189
4261
  position: 'absolute',
4190
4262
  zIndex: '1',
@@ -4240,11 +4312,7 @@ const NewAutocomplete = ({
4240
4312
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
4241
4313
  textTransform: labelTextTransform ? labelTextTransform : configStyles.NEWAUTOCOMPLETE.labelTextTransform
4242
4314
  }
4243
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
4244
- style: {
4245
- color: labelRequiredColor ? labelRequiredColor : configStyles.NEWAUTOCOMPLETE.labelRequiredColor
4246
- }
4247
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
4315
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
4248
4316
  style: {
4249
4317
  display: contentDisplay ? contentDisplay : configStyles.NEWAUTOCOMPLETE.contentDisplay,
4250
4318
  position: contentPosition ? contentPosition : configStyles.NEWAUTOCOMPLETE.contentPosition,
@@ -4330,7 +4398,6 @@ NewAutocomplete.propTypes = {
4330
4398
  options: PropTypes.array.isRequired,
4331
4399
  labelMarginBottom: PropTypes.string,
4332
4400
  innerErrorPadding: PropTypes.string,
4333
- labelRequiredColor: PropTypes.string,
4334
4401
  labelTextTransform: PropTypes.string,
4335
4402
  showOptionDuration: PropTypes.string,
4336
4403
  contentTopMaxWidth: PropTypes.string,