@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.js CHANGED
@@ -69,6 +69,24 @@ const SvgPdf = ({
69
69
  fill: fillColor ? fillColor : '#00236A'
70
70
  }));
71
71
 
72
+ const SvgRequired = ({
73
+ title,
74
+ titleId,
75
+ ...props
76
+ }) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
77
+ width: "12",
78
+ height: "12",
79
+ viewBox: "0 0 12 12",
80
+ fill: "none",
81
+ xmlns: "http://www.w3.org/2000/svg",
82
+ "aria-labelledby": titleId
83
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
84
+ id: titleId
85
+ }, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
86
+ 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",
87
+ fill: "#E00"
88
+ }));
89
+
72
90
  function styleInject(css, ref) {
73
91
  if ( ref === void 0 ) ref = {};
74
92
  var insertAt = ref.insertAt;
@@ -159,11 +177,7 @@ const File = ({
159
177
  };
160
178
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("p", {
161
179
  className: `${styles$c['file-form-title']} ile-form-title-rem`
162
- }, label, " ", required && /*#__PURE__*/React__default["default"].createElement("sup", {
163
- style: {
164
- color: '#ee0000'
165
- }
166
- }, "*")), /*#__PURE__*/React__default["default"].createElement("div", {
180
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), /*#__PURE__*/React__default["default"].createElement("div", {
167
181
  className: classnames__default["default"](`${styles$c['file-form-wrap']} file-form-wrap-rem`, image ? styles$c['active'] : '')
168
182
  }, /*#__PURE__*/React__default["default"].createElement("div", {
169
183
  className: `${styles$c['file-form']} file-form-rem ${error || errorMessage ? styles$c['error'] : ''}`,
@@ -290,7 +304,8 @@ const Checkbox$1 = ({
290
304
  disabled,
291
305
  checkedColor,
292
306
  handleChecked,
293
- unCheckedColor
307
+ unCheckedColor,
308
+ ignoreDisabledForChecked
294
309
  }) => {
295
310
  const configStyles = compereConfigs();
296
311
  const [innerChecked, setInnerChecked] = React.useState(false);
@@ -314,7 +329,7 @@ const Checkbox$1 = ({
314
329
  ...styles
315
330
  },
316
331
  onClick: !innerDisabled && handleChecked ? handleClick : _ => _
317
- }, innerChecked && !innerDisabled ? /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
332
+ }, innerChecked && (ignoreDisabledForChecked ? ignoreDisabledForChecked : !innerDisabled) ? /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
318
333
  fillColor: checkedColor ? checkedColor : configStyles.SINGLECHECKBOX.checkedColor
319
334
  }) : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
320
335
  fillColor: unCheckedColor ? unCheckedColor : configStyles.SINGLECHECKBOX.unCheckedColor
@@ -328,7 +343,8 @@ const SingleCheckbox = ({
328
343
  disabled,
329
344
  checkedColor,
330
345
  handleChecked,
331
- unCheckedColor
346
+ unCheckedColor,
347
+ ignoreDisabledForChecked
332
348
  }) => {
333
349
  const [innerData, setInnerData] = React.useState(null);
334
350
  React.useEffect(() => {
@@ -350,7 +366,8 @@ const SingleCheckbox = ({
350
366
  disabled: disabled,
351
367
  checkedColor: checkedColor,
352
368
  handleChecked: handleChecked,
353
- unCheckedColor: unCheckedColor
369
+ unCheckedColor: unCheckedColor,
370
+ ignoreDisabledForChecked: ignoreDisabledForChecked
354
371
  });
355
372
  };
356
373
  SingleCheckbox.propTypes = {
@@ -359,7 +376,8 @@ SingleCheckbox.propTypes = {
359
376
  styles: PropTypes__default["default"].object,
360
377
  disabled: PropTypes__default["default"].bool,
361
378
  checkedColor: PropTypes__default["default"].string,
362
- unCheckedColor: PropTypes__default["default"].string
379
+ unCheckedColor: PropTypes__default["default"].string,
380
+ ignoreDisabledForChecked: PropTypes__default["default"].bool
363
381
  };
364
382
 
365
383
  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}";
@@ -381,12 +399,6 @@ styleInject(css_248z$e);
381
399
  tBodyFontWeight: PropTypes__default["default"].string,
382
400
  tBodyFontFamily: PropTypes__default["default"].string,
383
401
  tBodyRowBorder: PropTypes__default["default"].string,
384
- // handleCheckedBody: PropTypes.func,
385
- // handleCheckedHeader: PropTypes.func,
386
- // handleHeaderItemClick: PropTypes.func,
387
- // handleBodyActionClick: PropTypes.func
388
-
389
- setTableDataBody: PropTypes__default["default"].func,
390
402
  setTableDataHeader: PropTypes__default["default"].func
391
403
  });
392
404
 
@@ -614,6 +626,7 @@ const Modal = ({
614
626
  }, type === 'content' && /*#__PURE__*/React__default["default"].createElement("div", {
615
627
  style: {
616
628
  width: '100%',
629
+ minWidth: '0',
617
630
  display: 'flex',
618
631
  alignItems: 'center',
619
632
  boxSizing: 'border-box',
@@ -1120,11 +1133,7 @@ const Input = ({
1120
1133
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
1121
1134
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
1122
1135
  }
1123
- }, label, " ", required && /*#__PURE__*/React__default["default"].createElement("sup", {
1124
- style: {
1125
- color: errorColor ? errorColor : '#ee0000'
1126
- }
1127
- }, "*")) : '', /*#__PURE__*/React__default["default"].createElement("div", {
1136
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
1128
1137
  className: `${styles$a['input-content']}`,
1129
1138
  style: {
1130
1139
  width: width ? width : configStyles.INPUT.width,
@@ -1640,7 +1649,8 @@ const Select = ({
1640
1649
  return /*#__PURE__*/React__default["default"].createElement("div", {
1641
1650
  className: classProps,
1642
1651
  style: {
1643
- position: 'relative'
1652
+ position: 'relative',
1653
+ width: '100%'
1644
1654
  }
1645
1655
  }, label ? /*#__PURE__*/React__default["default"].createElement("label", {
1646
1656
  style: {
@@ -1652,11 +1662,7 @@ const Select = ({
1652
1662
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
1653
1663
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
1654
1664
  }
1655
- }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", {
1656
- style: {
1657
- color: '#ee0000'
1658
- }
1659
- }, "*")) : '', /*#__PURE__*/React__default["default"].createElement("div", {
1665
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
1660
1666
  ref: ref
1661
1667
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1662
1668
  className: styles$8['select-content']
@@ -1681,7 +1687,7 @@ const Select = ({
1681
1687
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1682
1688
  className: `${styles$8['select-content-top-text']}`,
1683
1689
  style: {
1684
- whiteSpace: 'nowrap',
1690
+ whiteSpace: disabled ? 'pre-wrap' : 'nowrap',
1685
1691
  overflow: 'hidden',
1686
1692
  textOverflow: 'ellipsis',
1687
1693
  color: errorMessage ? errorColor ? errorColor : configStyles.SELECT.errorColor : isHover ? selectedHoverColor ? selectedHoverColor : configStyles.SELECT.selectedHoverColor : selectedColor ? selectedColor : configStyles.SELECT.selectedColor
@@ -1907,10 +1913,11 @@ const SvgToasterSuccess = ({
1907
1913
  fill: fillColor ? fillColor : '#0DA574'
1908
1914
  }));
1909
1915
 
1910
- 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}}";
1911
- 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"};
1916
+ 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}}";
1917
+ 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"};
1912
1918
  styleInject(css_248z$9);
1913
1919
 
1920
+ let wWidth$1 = window.innerWidth;
1914
1921
  const ToasterType = {
1915
1922
  info: 'info',
1916
1923
  warn: 'warn',
@@ -1963,7 +1970,7 @@ const Toast = ({
1963
1970
  style: {
1964
1971
  position: 'absolute',
1965
1972
  display: 'flex',
1966
- width: '440px',
1973
+ width: wWidth$1 > 480 ? '440px' : '300px',
1967
1974
  height: '83px',
1968
1975
  borderRadius: '40px',
1969
1976
  alignItems: 'center',
@@ -2000,8 +2007,9 @@ const Toast = ({
2000
2007
  fontSize: '16px',
2001
2008
  lineHeight: '22px',
2002
2009
  fontStyle: 'normal'
2003
- }
2004
- }, title ? title.length > 25 ? title.substr(0, 25) + '...' : title : ''), /*#__PURE__*/React__default["default"].createElement("span", {
2010
+ },
2011
+ className: styles$7['notify-title']
2012
+ }, title ? title : ''), /*#__PURE__*/React__default["default"].createElement("span", {
2005
2013
  style: {
2006
2014
  fontWeight: 500,
2007
2015
  color: '#3C393E',
@@ -2010,8 +2018,9 @@ const Toast = ({
2010
2018
  fontStyle: 'normal',
2011
2019
  fontFamily: '',
2012
2020
  opacity: 0.8
2013
- }
2014
- }, description ? description.length > 120 ? description.substr(0, 120) + '...' : description : '')), /*#__PURE__*/React__default["default"].createElement("div", {
2021
+ },
2022
+ className: styles$7['notify-desc']
2023
+ }, description ? description : '')), /*#__PURE__*/React__default["default"].createElement("div", {
2015
2024
  onClick: () => handleCloseToaster(ref),
2016
2025
  style: {
2017
2026
  width: '18px',
@@ -2036,6 +2045,7 @@ Toast.defaultProps = {
2036
2045
 
2037
2046
  let toastify;
2038
2047
  let path = window.location.href;
2048
+ let wWidth = window.innerWidth;
2039
2049
  const removeToast = ref => {
2040
2050
  // eslint-disable-next-line react/no-find-dom-node
2041
2051
  const node = ReactDOM__default["default"].findDOMNode(ref.current);
@@ -2060,7 +2070,7 @@ const createToast = ({
2060
2070
  const toastBlock = document.createElement('div');
2061
2071
  toastBlock.style.position = 'relative';
2062
2072
  toastBlock.style.flexShrink = 0;
2063
- toastBlock.style.width = '440px';
2073
+ toastBlock.style.width = wWidth > 480 ? '440px' : '300px';
2064
2074
  toastBlock.style.height = '83px';
2065
2075
  toastBlock.style.marginBottom = '20px';
2066
2076
  const newElem = /*#__PURE__*/React__default["default"].createElement(Toast, {
@@ -2439,7 +2449,7 @@ Captcha.propTypes = {
2439
2449
  getRange: PropTypes__default["default"].func.isRequired
2440
2450
  };
2441
2451
 
2442
- 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}";
2452
+ 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}";
2443
2453
  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"};
2444
2454
  styleInject(css_248z$6);
2445
2455
 
@@ -2534,6 +2544,46 @@ function v4(options, buf, offset) {
2534
2544
  return unsafeStringify(rnds);
2535
2545
  }
2536
2546
 
2547
+ const SvgHeic = ({
2548
+ title,
2549
+ titleId,
2550
+ ...props
2551
+ }) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
2552
+ width: "32",
2553
+ height: "42",
2554
+ viewBox: "0 0 32 42",
2555
+ fill: "none",
2556
+ xmlns: "http://www.w3.org/2000/svg",
2557
+ "aria-labelledby": titleId
2558
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
2559
+ id: titleId
2560
+ }, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
2561
+ fillRule: "evenodd",
2562
+ clipRule: "evenodd",
2563
+ 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",
2564
+ fill: "#051942"
2565
+ }));
2566
+
2567
+ const SvgWrong = ({
2568
+ title,
2569
+ titleId,
2570
+ ...props
2571
+ }) => /*#__PURE__*/React__namespace.createElement("svg", _extends({
2572
+ width: "32",
2573
+ height: "42",
2574
+ viewBox: "0 0 32 42",
2575
+ fill: "none",
2576
+ xmlns: "http://www.w3.org/2000/svg",
2577
+ "aria-labelledby": titleId
2578
+ }, props), title ? /*#__PURE__*/React__namespace.createElement("title", {
2579
+ id: titleId
2580
+ }, title) : null, /*#__PURE__*/React__namespace.createElement("path", {
2581
+ fillRule: "evenodd",
2582
+ clipRule: "evenodd",
2583
+ 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",
2584
+ fill: "#051942"
2585
+ }));
2586
+
2537
2587
  const SvgListItemPdf = ({
2538
2588
  title,
2539
2589
  titleId,
@@ -2652,6 +2702,7 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
2652
2702
  listItemPadding,
2653
2703
  progressFontSize,
2654
2704
  listItemErrorSize,
2705
+ timeForRemoveError,
2655
2706
  listItemErrorColor,
2656
2707
  progressTrackColor,
2657
2708
  progressFailedColor,
@@ -2704,7 +2755,7 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
2704
2755
  if (check !== '') {
2705
2756
  setT(setTimeout(() => {
2706
2757
  removeFile(uuid);
2707
- }, 3500));
2758
+ }, timeForRemoveError));
2708
2759
  }
2709
2760
  }, [check]);
2710
2761
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -2717,27 +2768,59 @@ const FileItem = /*#__PURE__*/React__default["default"].memo(({
2717
2768
  height: listItemHeight,
2718
2769
  boxSizing: 'border-box',
2719
2770
  padding: listItemPadding,
2720
- flexDirection: check !== '' ? 'column' : 'row',
2721
- justifyContent: check !== '' ? 'space-around' : 'space-between',
2771
+ flexDirection: 'row',
2772
+ justifyContent: 'space-between',
2773
+ border: check !== '' ? `1px solid ${listItemErrorColor}` : '',
2722
2774
  backgroundColor: check !== '' ? listItemBackgroundErrorColor : listItemBackgroundColor
2723
2775
  }
2724
- }, check !== '' ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("p", {
2776
+ }, check !== '' ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
2777
+ style: {
2778
+ width: '32px'
2779
+ }
2780
+ }, /*#__PURE__*/React__default["default"].createElement(SvgWrong, null)), /*#__PURE__*/React__default["default"].createElement("div", {
2725
2781
  style: {
2782
+ position: 'relative',
2783
+ display: 'flex',
2784
+ height: '40px',
2726
2785
  margin: '0px',
2727
- color: listItemErrorColor,
2786
+ alignItems: 'flex-end',
2787
+ width: 'calc(100% - 40px)'
2788
+ }
2789
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2790
+ style: {
2791
+ width: '100%',
2792
+ height: '100%',
2793
+ display: 'flex',
2794
+ paddingTop: '5px',
2795
+ color: progressColor,
2796
+ boxSizing: 'border-box',
2797
+ flexDirection: 'column',
2728
2798
  fontSize: listItemErrorSize
2729
2799
  }
2800
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2801
+ style: {
2802
+ margin: '0px',
2803
+ overflow: 'hidden',
2804
+ whiteSpace: 'nowrap',
2805
+ textOverflow: 'ellipsis',
2806
+ width: '100%',
2807
+ maxWidth: '100%'
2808
+ }
2730
2809
  }, name), /*#__PURE__*/React__default["default"].createElement("p", {
2731
2810
  style: {
2732
2811
  margin: '0px',
2733
- color: listItemErrorColor,
2734
- fontSize: listItemErrorSize
2812
+ overflow: 'hidden',
2813
+ whiteSpace: 'nowrap',
2814
+ textOverflow: 'ellipsis',
2815
+ width: '100%',
2816
+ maxWidth: '100%',
2817
+ color: listItemErrorColor
2735
2818
  }
2736
- }, check)) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
2819
+ }, check ? check : '')))) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
2737
2820
  style: {
2738
2821
  width: '32px'
2739
2822
  }
2740
- }, fileFormat === 'pdf' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemJpg, null) : fileFormat === 'png' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemJpeg, null) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
2823
+ }, fileFormat === 'pdf' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemPdf, null) : fileFormat === 'jpg' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemJpg, null) : fileFormat === 'png' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemPng, null) : fileFormat === 'jpeg' ? /*#__PURE__*/React__default["default"].createElement(SvgListItemJpeg, null) : fileFormat === 'heic' || fileFormat === 'heif' ? /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : ''), /*#__PURE__*/React__default["default"].createElement("div", {
2741
2824
  style: {
2742
2825
  position: 'relative',
2743
2826
  display: 'flex',
@@ -2910,7 +2993,7 @@ const NewFile = ({
2910
2993
  progressTrackColor,
2911
2994
  fileAreaImageWidth,
2912
2995
  listItemErrorColor,
2913
- labelRequiredColor,
2996
+ timeForRemoveError,
2914
2997
  progressFailedColor,
2915
2998
  fileAreaImageHeight,
2916
2999
  progressSuccessColor,
@@ -2951,7 +3034,7 @@ const NewFile = ({
2951
3034
  for (let ix = 0; ix < file.length; ix++) {
2952
3035
  if (file[ix]) {
2953
3036
  if (file[ix].size <= maxSize * Math.pow(2, 20)) {
2954
- if (fileExtensions.includes(file[ix].type.split('/')[1])) {
3037
+ if (fileExtensions.includes(file[ix].type.split('/')[1]) || fileExtensions.includes('heic') && file[ix].type.split('/')[1] === 'heif') {
2955
3038
  change({
2956
3039
  id: '',
2957
3040
  check: '',
@@ -2981,12 +3064,14 @@ const NewFile = ({
2981
3064
  } else {
2982
3065
  if (file[0]) {
2983
3066
  if (file[0].size <= maxSize * Math.pow(2, 20)) {
2984
- if (fileExtensions.includes(file[0].type.split('/')[1])) {
3067
+ if (fileExtensions.includes(file[0].type.split('/')[1]) || fileExtensions.includes('heic') && (file[0].type === 'image/heif' || file[0].type === 'image/heic')) {
2985
3068
  setError('');
2986
3069
  change(file);
2987
3070
  setSingleFile(file);
2988
3071
  if (file[0].type === 'application/pdf') {
2989
3072
  setImage('pdf');
3073
+ } else if (file[0].type === 'image/heif' || file[0].type === 'image/heic') {
3074
+ setImage('heic');
2990
3075
  } else {
2991
3076
  setImage(URL.createObjectURL(file[0]));
2992
3077
  }
@@ -3085,11 +3170,7 @@ const NewFile = ({
3085
3170
  color: labelColor ? labelColor : configStyles.File.labelColor,
3086
3171
  fontSize: labelSize ? labelSize : configStyles.File.labelSize
3087
3172
  }
3088
- }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", {
3089
- style: {
3090
- color: labelRequiredColor ? labelRequiredColor : configStyles.File.labelRequiredColor
3091
- }
3092
- }, "*")), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
3173
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default["default"].createElement("span", {
3093
3174
  style: {
3094
3175
  cursor: 'pointer'
3095
3176
  },
@@ -3135,7 +3216,7 @@ const NewFile = ({
3135
3216
  fontSize: size ? size : configStyles.File.size,
3136
3217
  fontWeight: weight ? weight : configStyles.File.weight
3137
3218
  }
3138
- }, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : /*#__PURE__*/React__default["default"].createElement("img", {
3219
+ }, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default["default"].createElement(SvgPdf, null) : image === 'heif' || image === 'heic' ? /*#__PURE__*/React__default["default"].createElement(SvgHeic, null) : /*#__PURE__*/React__default["default"].createElement("img", {
3139
3220
  src: image,
3140
3221
  style: {
3141
3222
  display: 'block',
@@ -3200,6 +3281,7 @@ const NewFile = ({
3200
3281
  status: item.status,
3201
3282
  size: item.file.size,
3202
3283
  name: item.file.name,
3284
+ timeForRemoveError: timeForRemoveError,
3203
3285
  removeFile: removeFile ? removeFile : _ => _,
3204
3286
  radius: radius ? radius : configStyles.File.radius,
3205
3287
  fileFormat: item.file.type.split('/')[1]?.toLowerCase(),
@@ -3255,7 +3337,7 @@ NewFile.propTypes = {
3255
3337
  progressFontSize: PropTypes__default["default"].string,
3256
3338
  borderHoverColor: PropTypes__default["default"].string,
3257
3339
  listItemErrorSize: PropTypes__default["default"].string,
3258
- labelRequiredColor: PropTypes__default["default"].string,
3340
+ timeForRemoveError: PropTypes__default["default"].number,
3259
3341
  progressTrackColor: PropTypes__default["default"].string,
3260
3342
  fileAreaImageWidth: PropTypes__default["default"].string,
3261
3343
  listItemErrorColor: PropTypes__default["default"].string,
@@ -3272,7 +3354,8 @@ NewFile.propTypes = {
3272
3354
  };
3273
3355
  NewFile.defaultProps = {
3274
3356
  maxSize: 10,
3275
- fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
3357
+ timeForRemoveError: 5000,
3358
+ fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
3276
3359
  };
3277
3360
 
3278
3361
  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}";
@@ -3394,8 +3477,7 @@ const Textarea = ({
3394
3477
  borderFocusColor,
3395
3478
  borderHoverColor,
3396
3479
  labelMarginBottom,
3397
- showCharacterCount,
3398
- labelRequiredColor
3480
+ showCharacterCount
3399
3481
  }) => {
3400
3482
  const [error, setError] = React.useState('');
3401
3483
  const [isHover, setIsHover] = React.useState(false);
@@ -3467,11 +3549,7 @@ const Textarea = ({
3467
3549
  display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
3468
3550
  fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
3469
3551
  }
3470
- }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", {
3471
- style: {
3472
- color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
3473
- }
3474
- }, "*")) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default["default"].createElement("span", {
3552
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default["default"].createElement("span", {
3475
3553
  style: {
3476
3554
  color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
3477
3555
  fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize
@@ -3542,8 +3620,7 @@ Textarea.propTypes = {
3542
3620
  borderFocusColor: PropTypes__default["default"].string,
3543
3621
  borderHoverColor: PropTypes__default["default"].string,
3544
3622
  labelMarginBottom: PropTypes__default["default"].string,
3545
- onChange: PropTypes__default["default"].func.isRequired,
3546
- labelRequiredColor: PropTypes__default["default"].string
3623
+ onChange: PropTypes__default["default"].func.isRequired
3547
3624
  };
3548
3625
 
3549
3626
  var css_248z$3 = "";
@@ -3622,7 +3699,6 @@ const Typography = ({
3622
3699
  return validVariant ? 'Please set Typography valid variant' : tagT;
3623
3700
  };
3624
3701
  Typography.propTypes = {
3625
- size: PropTypes__default["default"].oneOf(PropTypes__default["default"].string, PropTypes__default["default"].number),
3626
3702
  color: PropTypes__default["default"].string,
3627
3703
  onClick: PropTypes__default["default"].func,
3628
3704
  weight: PropTypes__default["default"].string,
@@ -3639,7 +3715,8 @@ Typography.propTypes = {
3639
3715
  textTransform: PropTypes__default["default"].string,
3640
3716
  textDecoration: PropTypes__default["default"].string,
3641
3717
  backgroundColor: PropTypes__default["default"].string,
3642
- variant: PropTypes__default["default"].oneOf(Object.values(TypographyType))
3718
+ variant: PropTypes__default["default"].oneOf(Object.values(TypographyType)),
3719
+ size: PropTypes__default["default"].oneOf(PropTypes__default["default"].string, PropTypes__default["default"].number)
3643
3720
  };
3644
3721
  Typography.defaultProps = {
3645
3722
  variant: 'p'
@@ -3981,11 +4058,7 @@ const Autocomplate = ({
3981
4058
  }, [JSON.parse(jsonSelectedOptionsData)[keyNames.id]]);
3982
4059
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, label ? /*#__PURE__*/React__default["default"].createElement("label", {
3983
4060
  className: `${styles$1['autocomplate-title']} autocomplate-title-rem`
3984
- }, label, " ", required && /*#__PURE__*/React__default["default"].createElement("sup", {
3985
- style: {
3986
- color: '#ee0000'
3987
- }
3988
- }, "*")) : '', /*#__PURE__*/React__default["default"].createElement("div", {
4061
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
3989
4062
  className: `${styles$1['autocomplate-content']} autocomplate-content-rem`
3990
4063
  }, /*#__PURE__*/React__default["default"].createElement("input", _extends({
3991
4064
  id: inputId,
@@ -4066,7 +4139,6 @@ const NewAutocomplete = ({
4066
4139
  contentBottomLeft,
4067
4140
  innerErrorPadding,
4068
4141
  showOptionDuration,
4069
- labelRequiredColor,
4070
4142
  contentTopMaxWidth,
4071
4143
  labelTextTransform,
4072
4144
  contentBottomWidth,
@@ -4214,7 +4286,7 @@ const NewAutocomplete = ({
4214
4286
  backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor
4215
4287
  }
4216
4288
  }, item[keyNames.name]);
4217
- }))) : innerOptions.length <= 0 ? innerError ? '' : /*#__PURE__*/React__default["default"].createElement("span", {
4289
+ }))) : innerOptions.length <= 0 ? innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/React__default["default"].createElement("span", {
4218
4290
  style: {
4219
4291
  position: 'absolute',
4220
4292
  zIndex: '1',
@@ -4270,11 +4342,7 @@ const NewAutocomplete = ({
4270
4342
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
4271
4343
  textTransform: labelTextTransform ? labelTextTransform : configStyles.NEWAUTOCOMPLETE.labelTextTransform
4272
4344
  }
4273
- }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", {
4274
- style: {
4275
- color: labelRequiredColor ? labelRequiredColor : configStyles.NEWAUTOCOMPLETE.labelRequiredColor
4276
- }
4277
- }, "*")) : '', /*#__PURE__*/React__default["default"].createElement("div", {
4345
+ }, label, required && /*#__PURE__*/React__default["default"].createElement("sup", null, /*#__PURE__*/React__default["default"].createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default["default"].createElement("div", {
4278
4346
  style: {
4279
4347
  display: contentDisplay ? contentDisplay : configStyles.NEWAUTOCOMPLETE.contentDisplay,
4280
4348
  position: contentPosition ? contentPosition : configStyles.NEWAUTOCOMPLETE.contentPosition,
@@ -4360,7 +4428,6 @@ NewAutocomplete.propTypes = {
4360
4428
  options: PropTypes__default["default"].array.isRequired,
4361
4429
  labelMarginBottom: PropTypes__default["default"].string,
4362
4430
  innerErrorPadding: PropTypes__default["default"].string,
4363
- labelRequiredColor: PropTypes__default["default"].string,
4364
4431
  labelTextTransform: PropTypes__default["default"].string,
4365
4432
  showOptionDuration: PropTypes__default["default"].string,
4366
4433
  contentTopMaxWidth: PropTypes__default["default"].string,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaypay/tui",
3
- "version": "0.0.106",
3
+ "version": "0.0.108",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,6 +1,7 @@
1
1
  import React, { useEffect, useState } from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { compereConfigs } from './../../utils'
4
+ import SvgRequired from './../icon/Required'
4
5
  import styles from './autocomplate.module.css'
5
6
 
6
7
  export const Autocomplate = ({
@@ -105,7 +106,12 @@ export const Autocomplate = ({
105
106
  <>
106
107
  {label ? (
107
108
  <label className={`${styles['autocomplate-title']} autocomplate-title-rem`}>
108
- {label} {required && <sup style={{ color: '#ee0000' }}>*</sup>}
109
+ {label}
110
+ {required && (
111
+ <sup>
112
+ <SvgRequired />
113
+ </sup>
114
+ )}
109
115
  </label>
110
116
  ) : (
111
117
  ''
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types'
3
3
  import classnames from 'classnames'
4
4
 
5
5
  import PDF from './../icon/PDF'
6
+ import SvgRequired from './../icon/Required'
6
7
 
7
8
  import styles from './file.module.css'
8
9
 
@@ -66,7 +67,12 @@ export const File = ({
66
67
  return (
67
68
  <>
68
69
  <p className={`${styles['file-form-title']} ile-form-title-rem`}>
69
- {label} {required && <sup style={{ color: '#ee0000' }}>*</sup>}
70
+ {label}
71
+ {required && (
72
+ <sup>
73
+ <SvgRequired />
74
+ </sup>
75
+ )}
70
76
  </p>
71
77
  <div
72
78
  className={classnames(`${styles['file-form-wrap']} file-form-wrap-rem`, image ? styles['active'] : '')}
@@ -0,0 +1,21 @@
1
+ import * as React from 'react'
2
+ const SvgHeic = ({ title, titleId, ...props }) => (
3
+ <svg
4
+ width="32"
5
+ height="42"
6
+ viewBox="0 0 32 42"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ aria-labelledby={titleId}
10
+ {...props}
11
+ >
12
+ {title ? <title id={titleId}>{title}</title> : null}
13
+ <path
14
+ fillRule="evenodd"
15
+ clipRule="evenodd"
16
+ 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"
17
+ fill="#051942"
18
+ />
19
+ </svg>
20
+ )
21
+ export default SvgHeic