@xaypay/tui 0.0.107 → 0.0.109

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
 
@@ -479,6 +491,9 @@ const Modal = ({
479
491
  backgroundColor,
480
492
  grayDecorHeight,
481
493
  layerBackgroundColor,
494
+ imageMargin,
495
+ imageMaxWidth,
496
+ imageWrapWidth,
482
497
  imageWrapHeight
483
498
  }) => {
484
499
  const [select, setSelect] = useState(0);
@@ -584,6 +599,7 @@ const Modal = ({
584
599
  }, type === 'content' && /*#__PURE__*/React__default.createElement("div", {
585
600
  style: {
586
601
  width: '100%',
602
+ minWidth: '0',
587
603
  display: 'flex',
588
604
  alignItems: 'center',
589
605
  boxSizing: 'border-box',
@@ -615,11 +631,11 @@ const Modal = ({
615
631
  display: 'flex',
616
632
  width: '100%',
617
633
  height: '100%',
618
- overflow: 'hidden',
619
634
  position: 'relative',
620
635
  alignItems: 'center',
621
636
  boxSizing: 'border-box',
622
637
  justifyContent: 'center',
638
+ overflow: type === 'content' ? 'auto' : 'hidden',
623
639
  borderWidth: borderWidth ? borderWidth : configStyles.MODAL.borderWidth,
624
640
  borderStyle: borderStyle ? borderStyle : configStyles.MODAL.borderStyle,
625
641
  borderColor: borderColor ? borderColor : configStyles.MODAL.borderColor
@@ -652,7 +668,7 @@ const Modal = ({
652
668
  }
653
669
  }, /*#__PURE__*/React__default.createElement(SvgCloseSlide, null))), /*#__PURE__*/React__default.createElement("div", {
654
670
  style: {
655
- width: '100%',
671
+ width: imageWrapWidth ? imageWrapWidth : configStyles.MODAL.imageWrapWidth,
656
672
  height: imageWrapHeight ? imageWrapHeight : configStyles.MODAL.imageWrapHeight
657
673
  }
658
674
  }, innerData && innerData.length > 0 && innerData.map((item, index) => {
@@ -666,9 +682,11 @@ const Modal = ({
666
682
  display: 'block',
667
683
  objectFit: 'cover',
668
684
  objectPosition: 'center',
685
+ margin: imageMargin ? imageMargin : configStyles.MODAL.imageMargin,
669
686
  borderRadius: radius ? radius : configStyles.MODAL.radius,
670
687
  width: imageWidth ? imageWidth : configStyles.MODAL.imageWidth,
671
- height: imageHeight ? imageHeight : configStyles.MODAL.imageHeight
688
+ height: imageHeight ? imageHeight : configStyles.MODAL.imageHeight,
689
+ maxWidth: imageMaxWidth ? imageMaxWidth : configStyles.MODAL.imageMaxWidth
672
690
  },
673
691
  src: item.url,
674
692
  key: item.id ? item.id : index
@@ -733,7 +751,11 @@ Modal.propTypes = {
733
751
  justifyContent: PropTypes.string,
734
752
  backgroundColor: PropTypes.string,
735
753
  grayDecorHeight: PropTypes.string,
736
- layerBackgroundColor: PropTypes.string
754
+ layerBackgroundColor: PropTypes.string,
755
+ imageMargin: PropTypes.string,
756
+ imageMaxWidth: PropTypes.string,
757
+ imageWrapWidth: PropTypes.string,
758
+ imageWrapHeight: PropTypes.string
737
759
  };
738
760
  Modal.defaultProps = {
739
761
  type: 'content'
@@ -1090,16 +1112,12 @@ const Input = ({
1090
1112
  lineHeight: labelLineHeight ? labelLineHeight : configStyles.INPUT.labelLineHeight,
1091
1113
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.INPUT.labelMarginBottom
1092
1114
  }
1093
- }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
1094
- style: {
1095
- color: errorColor ? errorColor : '#ee0000'
1096
- }
1097
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
1115
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
1098
1116
  className: `${styles$a['input-content']}`,
1099
1117
  style: {
1100
1118
  width: width ? width : configStyles.INPUT.width,
1101
1119
  borderRadius: radius ? radius : configStyles.INPUT.radius,
1102
- boxShadow: innerErrorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.INPUT.errorColor}` : isHover ? boxShadowHover ? boxShadowHover : configStyles.INPUT.boxShadowHover : boxShadow ? boxShadow : configStyles.INPUT.boxShadow
1120
+ boxShadow: innerErrorMessage ? errorColor ? `0 0 0 2px ${errorColor}` : `0 0 0 2px ${configStyles.INPUT.errorColor}` : isHover && !disabled ? boxShadowHover ? boxShadowHover : configStyles.INPUT.boxShadowHover : boxShadow ? boxShadow : configStyles.INPUT.boxShadow
1103
1121
  },
1104
1122
  onMouseEnter: handleMouseEnter,
1105
1123
  onMouseLeave: handleMouseLeave
@@ -1623,11 +1641,7 @@ const Select = ({
1623
1641
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
1624
1642
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
1625
1643
  }
1626
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
1627
- style: {
1628
- color: '#ee0000'
1629
- }
1630
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
1644
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
1631
1645
  ref: ref
1632
1646
  }, /*#__PURE__*/React__default.createElement("div", {
1633
1647
  className: styles$8['select-content']
@@ -2414,7 +2428,7 @@ Captcha.propTypes = {
2414
2428
  getRange: PropTypes.func.isRequired
2415
2429
  };
2416
2430
 
2417
- 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}";
2431
+ 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}";
2418
2432
  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"};
2419
2433
  styleInject(css_248z$6);
2420
2434
 
@@ -2509,6 +2523,46 @@ function v4(options, buf, offset) {
2509
2523
  return unsafeStringify(rnds);
2510
2524
  }
2511
2525
 
2526
+ const SvgHeic = ({
2527
+ title,
2528
+ titleId,
2529
+ ...props
2530
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2531
+ width: "32",
2532
+ height: "42",
2533
+ viewBox: "0 0 32 42",
2534
+ fill: "none",
2535
+ xmlns: "http://www.w3.org/2000/svg",
2536
+ "aria-labelledby": titleId
2537
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2538
+ id: titleId
2539
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2540
+ fillRule: "evenodd",
2541
+ clipRule: "evenodd",
2542
+ 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",
2543
+ fill: "#051942"
2544
+ }));
2545
+
2546
+ const SvgWrong = ({
2547
+ title,
2548
+ titleId,
2549
+ ...props
2550
+ }) => /*#__PURE__*/React.createElement("svg", _extends({
2551
+ width: "32",
2552
+ height: "42",
2553
+ viewBox: "0 0 32 42",
2554
+ fill: "none",
2555
+ xmlns: "http://www.w3.org/2000/svg",
2556
+ "aria-labelledby": titleId
2557
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
2558
+ id: titleId
2559
+ }, title) : null, /*#__PURE__*/React.createElement("path", {
2560
+ fillRule: "evenodd",
2561
+ clipRule: "evenodd",
2562
+ 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",
2563
+ fill: "#051942"
2564
+ }));
2565
+
2512
2566
  const SvgListItemPdf = ({
2513
2567
  title,
2514
2568
  titleId,
@@ -2693,27 +2747,59 @@ const FileItem = /*#__PURE__*/React__default.memo(({
2693
2747
  height: listItemHeight,
2694
2748
  boxSizing: 'border-box',
2695
2749
  padding: listItemPadding,
2696
- flexDirection: check !== '' ? 'column' : 'row',
2697
- justifyContent: check !== '' ? 'space-around' : 'space-between',
2750
+ flexDirection: 'row',
2751
+ justifyContent: 'space-between',
2752
+ border: check !== '' ? `1px solid ${listItemErrorColor}` : '',
2698
2753
  backgroundColor: check !== '' ? listItemBackgroundErrorColor : listItemBackgroundColor
2699
2754
  }
2700
- }, check !== '' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
2755
+ }, check !== '' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2701
2756
  style: {
2757
+ width: '32px'
2758
+ }
2759
+ }, /*#__PURE__*/React__default.createElement(SvgWrong, null)), /*#__PURE__*/React__default.createElement("div", {
2760
+ style: {
2761
+ position: 'relative',
2762
+ display: 'flex',
2763
+ height: '40px',
2702
2764
  margin: '0px',
2703
- color: listItemErrorColor,
2765
+ alignItems: 'flex-end',
2766
+ width: 'calc(100% - 40px)'
2767
+ }
2768
+ }, /*#__PURE__*/React__default.createElement("div", {
2769
+ style: {
2770
+ width: '100%',
2771
+ height: '100%',
2772
+ display: 'flex',
2773
+ paddingTop: '5px',
2774
+ color: progressColor,
2775
+ boxSizing: 'border-box',
2776
+ flexDirection: 'column',
2704
2777
  fontSize: listItemErrorSize
2705
2778
  }
2779
+ }, /*#__PURE__*/React__default.createElement("p", {
2780
+ style: {
2781
+ margin: '0px',
2782
+ overflow: 'hidden',
2783
+ whiteSpace: 'nowrap',
2784
+ textOverflow: 'ellipsis',
2785
+ width: '100%',
2786
+ maxWidth: '100%'
2787
+ }
2706
2788
  }, name), /*#__PURE__*/React__default.createElement("p", {
2707
2789
  style: {
2708
2790
  margin: '0px',
2709
- color: listItemErrorColor,
2710
- fontSize: listItemErrorSize
2791
+ overflow: 'hidden',
2792
+ whiteSpace: 'nowrap',
2793
+ textOverflow: 'ellipsis',
2794
+ width: '100%',
2795
+ maxWidth: '100%',
2796
+ color: listItemErrorColor
2711
2797
  }
2712
- }, check)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2798
+ }, check ? check : '')))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
2713
2799
  style: {
2714
2800
  width: '32px'
2715
2801
  }
2716
- }, 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", {
2802
+ }, 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", {
2717
2803
  style: {
2718
2804
  position: 'relative',
2719
2805
  display: 'flex',
@@ -2886,7 +2972,6 @@ const NewFile = ({
2886
2972
  progressTrackColor,
2887
2973
  fileAreaImageWidth,
2888
2974
  listItemErrorColor,
2889
- labelRequiredColor,
2890
2975
  timeForRemoveError,
2891
2976
  progressFailedColor,
2892
2977
  fileAreaImageHeight,
@@ -2928,7 +3013,7 @@ const NewFile = ({
2928
3013
  for (let ix = 0; ix < file.length; ix++) {
2929
3014
  if (file[ix]) {
2930
3015
  if (file[ix].size <= maxSize * Math.pow(2, 20)) {
2931
- if (fileExtensions.includes(file[ix].type.split('/')[1])) {
3016
+ if (fileExtensions.includes(file[ix].type.split('/')[1]) || fileExtensions.includes('heic') && file[ix].type.split('/')[1] === 'heif') {
2932
3017
  change({
2933
3018
  id: '',
2934
3019
  check: '',
@@ -2958,12 +3043,14 @@ const NewFile = ({
2958
3043
  } else {
2959
3044
  if (file[0]) {
2960
3045
  if (file[0].size <= maxSize * Math.pow(2, 20)) {
2961
- if (fileExtensions.includes(file[0].type.split('/')[1])) {
3046
+ if (fileExtensions.includes(file[0].type.split('/')[1]) || fileExtensions.includes('heic') && (file[0].type === 'image/heif' || file[0].type === 'image/heic')) {
2962
3047
  setError('');
2963
3048
  change(file);
2964
3049
  setSingleFile(file);
2965
3050
  if (file[0].type === 'application/pdf') {
2966
3051
  setImage('pdf');
3052
+ } else if (file[0].type === 'image/heif' || file[0].type === 'image/heic') {
3053
+ setImage('heic');
2967
3054
  } else {
2968
3055
  setImage(URL.createObjectURL(file[0]));
2969
3056
  }
@@ -3062,11 +3149,7 @@ const NewFile = ({
3062
3149
  color: labelColor ? labelColor : configStyles.File.labelColor,
3063
3150
  fontSize: labelSize ? labelSize : configStyles.File.labelSize
3064
3151
  }
3065
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
3066
- style: {
3067
- color: labelRequiredColor ? labelRequiredColor : configStyles.File.labelRequiredColor
3068
- }
3069
- }, "*")), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
3152
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
3070
3153
  style: {
3071
3154
  cursor: 'pointer'
3072
3155
  },
@@ -3112,7 +3195,7 @@ const NewFile = ({
3112
3195
  fontSize: size ? size : configStyles.File.size,
3113
3196
  fontWeight: weight ? weight : configStyles.File.weight
3114
3197
  }
3115
- }, !multiple && image ? image === 'pdf' ? /*#__PURE__*/React__default.createElement(SvgPdf, null) : /*#__PURE__*/React__default.createElement("img", {
3198
+ }, !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", {
3116
3199
  src: image,
3117
3200
  style: {
3118
3201
  display: 'block',
@@ -3234,7 +3317,6 @@ NewFile.propTypes = {
3234
3317
  borderHoverColor: PropTypes.string,
3235
3318
  listItemErrorSize: PropTypes.string,
3236
3319
  timeForRemoveError: PropTypes.number,
3237
- labelRequiredColor: PropTypes.string,
3238
3320
  progressTrackColor: PropTypes.string,
3239
3321
  fileAreaImageWidth: PropTypes.string,
3240
3322
  listItemErrorColor: PropTypes.string,
@@ -3251,8 +3333,8 @@ NewFile.propTypes = {
3251
3333
  };
3252
3334
  NewFile.defaultProps = {
3253
3335
  maxSize: 10,
3254
- timeForRemoveError: 4000,
3255
- fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
3336
+ timeForRemoveError: 5000,
3337
+ fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
3256
3338
  };
3257
3339
 
3258
3340
  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}";
@@ -3352,6 +3434,7 @@ const Textarea = ({
3352
3434
  resize,
3353
3435
  radius,
3354
3436
  padding,
3437
+ disabled,
3355
3438
  required,
3356
3439
  onChange,
3357
3440
  minWidth,
@@ -3374,8 +3457,7 @@ const Textarea = ({
3374
3457
  borderFocusColor,
3375
3458
  borderHoverColor,
3376
3459
  labelMarginBottom,
3377
- showCharacterCount,
3378
- labelRequiredColor
3460
+ showCharacterCount
3379
3461
  }) => {
3380
3462
  const [error, setError] = useState('');
3381
3463
  const [isHover, setIsHover] = useState(false);
@@ -3447,11 +3529,7 @@ const Textarea = ({
3447
3529
  display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
3448
3530
  fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
3449
3531
  }
3450
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
3451
- style: {
3452
- color: labelRequiredColor ? labelRequiredColor : configStyles.TEXTAREA.labelRequiredColor
3453
- }
3454
- }, "*")) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default.createElement("span", {
3532
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default.createElement("span", {
3455
3533
  style: {
3456
3534
  color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
3457
3535
  fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize
@@ -3462,6 +3540,7 @@ const Textarea = ({
3462
3540
  border: 'none',
3463
3541
  outline: 'none',
3464
3542
  overflow: 'auto',
3543
+ cursor: disabled ? 'not-allowed' : 'auto',
3465
3544
  fontSize: size ? size : configStyles.TEXTAREA.size,
3466
3545
  height: height ? height : configStyles.TEXTAREA.height,
3467
3546
  padding: padding ? padding : configStyles.TEXTAREA.padding,
@@ -3476,6 +3555,7 @@ const Textarea = ({
3476
3555
  resize: resize ? resize : configStyles.TEXTAREA.resize
3477
3556
  },
3478
3557
  value: innerValue,
3558
+ disabled: disabled,
3479
3559
  onBlur: handleBlur,
3480
3560
  onFocus: handleFocus,
3481
3561
  onChange: handleChange,
@@ -3499,6 +3579,7 @@ Textarea.propTypes = {
3499
3579
  resize: PropTypes.string,
3500
3580
  radius: PropTypes.string,
3501
3581
  required: PropTypes.bool,
3582
+ disabled: PropTypes.bool,
3502
3583
  padding: PropTypes.string,
3503
3584
  minWidth: PropTypes.string,
3504
3585
  maxWidth: PropTypes.string,
@@ -3522,8 +3603,7 @@ Textarea.propTypes = {
3522
3603
  borderFocusColor: PropTypes.string,
3523
3604
  borderHoverColor: PropTypes.string,
3524
3605
  labelMarginBottom: PropTypes.string,
3525
- onChange: PropTypes.func.isRequired,
3526
- labelRequiredColor: PropTypes.string
3606
+ onChange: PropTypes.func.isRequired
3527
3607
  };
3528
3608
 
3529
3609
  var css_248z$3 = "";
@@ -3602,7 +3682,6 @@ const Typography = ({
3602
3682
  return validVariant ? 'Please set Typography valid variant' : tagT;
3603
3683
  };
3604
3684
  Typography.propTypes = {
3605
- size: PropTypes.oneOf(PropTypes.string, PropTypes.number),
3606
3685
  color: PropTypes.string,
3607
3686
  onClick: PropTypes.func,
3608
3687
  weight: PropTypes.string,
@@ -3619,7 +3698,8 @@ Typography.propTypes = {
3619
3698
  textTransform: PropTypes.string,
3620
3699
  textDecoration: PropTypes.string,
3621
3700
  backgroundColor: PropTypes.string,
3622
- variant: PropTypes.oneOf(Object.values(TypographyType))
3701
+ variant: PropTypes.oneOf(Object.values(TypographyType)),
3702
+ size: PropTypes.oneOf(PropTypes.string, PropTypes.number)
3623
3703
  };
3624
3704
  Typography.defaultProps = {
3625
3705
  variant: 'p'
@@ -3961,11 +4041,7 @@ const Autocomplate = ({
3961
4041
  }, [JSON.parse(jsonSelectedOptionsData)[keyNames.id]]);
3962
4042
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
3963
4043
  className: `${styles$1['autocomplate-title']} autocomplate-title-rem`
3964
- }, label, " ", required && /*#__PURE__*/React__default.createElement("sup", {
3965
- style: {
3966
- color: '#ee0000'
3967
- }
3968
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
4044
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
3969
4045
  className: `${styles$1['autocomplate-content']} autocomplate-content-rem`
3970
4046
  }, /*#__PURE__*/React__default.createElement("input", _extends({
3971
4047
  id: inputId,
@@ -4046,7 +4122,6 @@ const NewAutocomplete = ({
4046
4122
  contentBottomLeft,
4047
4123
  innerErrorPadding,
4048
4124
  showOptionDuration,
4049
- labelRequiredColor,
4050
4125
  contentTopMaxWidth,
4051
4126
  labelTextTransform,
4052
4127
  contentBottomWidth,
@@ -4194,7 +4269,7 @@ const NewAutocomplete = ({
4194
4269
  backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor
4195
4270
  }
4196
4271
  }, item[keyNames.name]);
4197
- }))) : innerOptions.length <= 0 ? innerError ? '' : /*#__PURE__*/React__default.createElement("span", {
4272
+ }))) : innerOptions.length <= 0 ? innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/React__default.createElement("span", {
4198
4273
  style: {
4199
4274
  position: 'absolute',
4200
4275
  zIndex: '1',
@@ -4250,11 +4325,7 @@ const NewAutocomplete = ({
4250
4325
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
4251
4326
  textTransform: labelTextTransform ? labelTextTransform : configStyles.NEWAUTOCOMPLETE.labelTextTransform
4252
4327
  }
4253
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
4254
- style: {
4255
- color: labelRequiredColor ? labelRequiredColor : configStyles.NEWAUTOCOMPLETE.labelRequiredColor
4256
- }
4257
- }, "*")) : '', /*#__PURE__*/React__default.createElement("div", {
4328
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
4258
4329
  style: {
4259
4330
  display: contentDisplay ? contentDisplay : configStyles.NEWAUTOCOMPLETE.contentDisplay,
4260
4331
  position: contentPosition ? contentPosition : configStyles.NEWAUTOCOMPLETE.contentPosition,
@@ -4340,7 +4411,6 @@ NewAutocomplete.propTypes = {
4340
4411
  options: PropTypes.array.isRequired,
4341
4412
  labelMarginBottom: PropTypes.string,
4342
4413
  innerErrorPadding: PropTypes.string,
4343
- labelRequiredColor: PropTypes.string,
4344
4414
  labelTextTransform: PropTypes.string,
4345
4415
  showOptionDuration: PropTypes.string,
4346
4416
  contentTopMaxWidth: PropTypes.string,