@xaypay/tui 0.0.107 → 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,
@@ -1623,11 +1632,7 @@ const Select = ({
1623
1632
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.SELECT.labelMarginBottom,
1624
1633
  textTransform: labelTextTransform ? labelTextTransform : configStyles.SELECT.labelTextTransform
1625
1634
  }
1626
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
1627
- style: {
1628
- color: '#ee0000'
1629
- }
1630
- }, "*")) : '', /*#__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", {
1631
1636
  ref: ref
1632
1637
  }, /*#__PURE__*/React__default.createElement("div", {
1633
1638
  className: styles$8['select-content']
@@ -2414,7 +2419,7 @@ Captcha.propTypes = {
2414
2419
  getRange: PropTypes.func.isRequired
2415
2420
  };
2416
2421
 
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}";
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}";
2418
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"};
2419
2424
  styleInject(css_248z$6);
2420
2425
 
@@ -2509,6 +2514,46 @@ function v4(options, buf, offset) {
2509
2514
  return unsafeStringify(rnds);
2510
2515
  }
2511
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
+
2512
2557
  const SvgListItemPdf = ({
2513
2558
  title,
2514
2559
  titleId,
@@ -2693,27 +2738,59 @@ const FileItem = /*#__PURE__*/React__default.memo(({
2693
2738
  height: listItemHeight,
2694
2739
  boxSizing: 'border-box',
2695
2740
  padding: listItemPadding,
2696
- flexDirection: check !== '' ? 'column' : 'row',
2697
- justifyContent: check !== '' ? 'space-around' : 'space-between',
2741
+ flexDirection: 'row',
2742
+ justifyContent: 'space-between',
2743
+ border: check !== '' ? `1px solid ${listItemErrorColor}` : '',
2698
2744
  backgroundColor: check !== '' ? listItemBackgroundErrorColor : listItemBackgroundColor
2699
2745
  }
2700
- }, 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", {
2701
2751
  style: {
2752
+ position: 'relative',
2753
+ display: 'flex',
2754
+ height: '40px',
2702
2755
  margin: '0px',
2703
- 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',
2704
2768
  fontSize: listItemErrorSize
2705
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
+ }
2706
2779
  }, name), /*#__PURE__*/React__default.createElement("p", {
2707
2780
  style: {
2708
2781
  margin: '0px',
2709
- color: listItemErrorColor,
2710
- fontSize: listItemErrorSize
2782
+ overflow: 'hidden',
2783
+ whiteSpace: 'nowrap',
2784
+ textOverflow: 'ellipsis',
2785
+ width: '100%',
2786
+ maxWidth: '100%',
2787
+ color: listItemErrorColor
2711
2788
  }
2712
- }, 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", {
2713
2790
  style: {
2714
2791
  width: '32px'
2715
2792
  }
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", {
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", {
2717
2794
  style: {
2718
2795
  position: 'relative',
2719
2796
  display: 'flex',
@@ -2886,7 +2963,6 @@ const NewFile = ({
2886
2963
  progressTrackColor,
2887
2964
  fileAreaImageWidth,
2888
2965
  listItemErrorColor,
2889
- labelRequiredColor,
2890
2966
  timeForRemoveError,
2891
2967
  progressFailedColor,
2892
2968
  fileAreaImageHeight,
@@ -2928,7 +3004,7 @@ const NewFile = ({
2928
3004
  for (let ix = 0; ix < file.length; ix++) {
2929
3005
  if (file[ix]) {
2930
3006
  if (file[ix].size <= maxSize * Math.pow(2, 20)) {
2931
- 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') {
2932
3008
  change({
2933
3009
  id: '',
2934
3010
  check: '',
@@ -2958,12 +3034,14 @@ const NewFile = ({
2958
3034
  } else {
2959
3035
  if (file[0]) {
2960
3036
  if (file[0].size <= maxSize * Math.pow(2, 20)) {
2961
- 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')) {
2962
3038
  setError('');
2963
3039
  change(file);
2964
3040
  setSingleFile(file);
2965
3041
  if (file[0].type === 'application/pdf') {
2966
3042
  setImage('pdf');
3043
+ } else if (file[0].type === 'image/heif' || file[0].type === 'image/heic') {
3044
+ setImage('heic');
2967
3045
  } else {
2968
3046
  setImage(URL.createObjectURL(file[0]));
2969
3047
  }
@@ -3062,11 +3140,7 @@ const NewFile = ({
3062
3140
  color: labelColor ? labelColor : configStyles.File.labelColor,
3063
3141
  fontSize: labelSize ? labelSize : configStyles.File.labelSize
3064
3142
  }
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", {
3143
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
3070
3144
  style: {
3071
3145
  cursor: 'pointer'
3072
3146
  },
@@ -3112,7 +3186,7 @@ const NewFile = ({
3112
3186
  fontSize: size ? size : configStyles.File.size,
3113
3187
  fontWeight: weight ? weight : configStyles.File.weight
3114
3188
  }
3115
- }, !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", {
3116
3190
  src: image,
3117
3191
  style: {
3118
3192
  display: 'block',
@@ -3234,7 +3308,6 @@ NewFile.propTypes = {
3234
3308
  borderHoverColor: PropTypes.string,
3235
3309
  listItemErrorSize: PropTypes.string,
3236
3310
  timeForRemoveError: PropTypes.number,
3237
- labelRequiredColor: PropTypes.string,
3238
3311
  progressTrackColor: PropTypes.string,
3239
3312
  fileAreaImageWidth: PropTypes.string,
3240
3313
  listItemErrorColor: PropTypes.string,
@@ -3251,8 +3324,8 @@ NewFile.propTypes = {
3251
3324
  };
3252
3325
  NewFile.defaultProps = {
3253
3326
  maxSize: 10,
3254
- timeForRemoveError: 4000,
3255
- fileExtensions: ['jpg', 'jpeg', 'png', 'pdf']
3327
+ timeForRemoveError: 5000,
3328
+ fileExtensions: ['jpg', 'jpeg', 'png', 'pdf', 'heic']
3256
3329
  };
3257
3330
 
3258
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}";
@@ -3374,8 +3447,7 @@ const Textarea = ({
3374
3447
  borderFocusColor,
3375
3448
  borderHoverColor,
3376
3449
  labelMarginBottom,
3377
- showCharacterCount,
3378
- labelRequiredColor
3450
+ showCharacterCount
3379
3451
  }) => {
3380
3452
  const [error, setError] = useState('');
3381
3453
  const [isHover, setIsHover] = useState(false);
@@ -3447,11 +3519,7 @@ const Textarea = ({
3447
3519
  display: labelDisplay ? labelDisplay : configStyles.TEXTAREA.labelDisplay,
3448
3520
  fontWeight: labelWeight ? labelWeight : configStyles.TEXTAREA.labelWeight
3449
3521
  }
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", {
3522
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', showCharacterCount && maxLength && /*#__PURE__*/React__default.createElement("span", {
3455
3523
  style: {
3456
3524
  color: labelColor ? labelColor : configStyles.TEXTAREA.labelColor,
3457
3525
  fontSize: labelSize ? labelSize : configStyles.TEXTAREA.labelSize
@@ -3522,8 +3590,7 @@ Textarea.propTypes = {
3522
3590
  borderFocusColor: PropTypes.string,
3523
3591
  borderHoverColor: PropTypes.string,
3524
3592
  labelMarginBottom: PropTypes.string,
3525
- onChange: PropTypes.func.isRequired,
3526
- labelRequiredColor: PropTypes.string
3593
+ onChange: PropTypes.func.isRequired
3527
3594
  };
3528
3595
 
3529
3596
  var css_248z$3 = "";
@@ -3602,7 +3669,6 @@ const Typography = ({
3602
3669
  return validVariant ? 'Please set Typography valid variant' : tagT;
3603
3670
  };
3604
3671
  Typography.propTypes = {
3605
- size: PropTypes.oneOf(PropTypes.string, PropTypes.number),
3606
3672
  color: PropTypes.string,
3607
3673
  onClick: PropTypes.func,
3608
3674
  weight: PropTypes.string,
@@ -3619,7 +3685,8 @@ Typography.propTypes = {
3619
3685
  textTransform: PropTypes.string,
3620
3686
  textDecoration: PropTypes.string,
3621
3687
  backgroundColor: PropTypes.string,
3622
- variant: PropTypes.oneOf(Object.values(TypographyType))
3688
+ variant: PropTypes.oneOf(Object.values(TypographyType)),
3689
+ size: PropTypes.oneOf(PropTypes.string, PropTypes.number)
3623
3690
  };
3624
3691
  Typography.defaultProps = {
3625
3692
  variant: 'p'
@@ -3961,11 +4028,7 @@ const Autocomplate = ({
3961
4028
  }, [JSON.parse(jsonSelectedOptionsData)[keyNames.id]]);
3962
4029
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label ? /*#__PURE__*/React__default.createElement("label", {
3963
4030
  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", {
4031
+ }, label, required && /*#__PURE__*/React__default.createElement("sup", null, /*#__PURE__*/React__default.createElement(SvgRequired, null))) : '', /*#__PURE__*/React__default.createElement("div", {
3969
4032
  className: `${styles$1['autocomplate-content']} autocomplate-content-rem`
3970
4033
  }, /*#__PURE__*/React__default.createElement("input", _extends({
3971
4034
  id: inputId,
@@ -4046,7 +4109,6 @@ const NewAutocomplete = ({
4046
4109
  contentBottomLeft,
4047
4110
  innerErrorPadding,
4048
4111
  showOptionDuration,
4049
- labelRequiredColor,
4050
4112
  contentTopMaxWidth,
4051
4113
  labelTextTransform,
4052
4114
  contentBottomWidth,
@@ -4194,7 +4256,7 @@ const NewAutocomplete = ({
4194
4256
  backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.NEWAUTOCOMPLETE.contentBottomRowBackgroundColor
4195
4257
  }
4196
4258
  }, item[keyNames.name]);
4197
- }))) : innerOptions.length <= 0 ? innerError ? '' : /*#__PURE__*/React__default.createElement("span", {
4259
+ }))) : innerOptions.length <= 0 ? innerError ? '' : innerValue.length <= 0 ? '' : /*#__PURE__*/React__default.createElement("span", {
4198
4260
  style: {
4199
4261
  position: 'absolute',
4200
4262
  zIndex: '1',
@@ -4250,11 +4312,7 @@ const NewAutocomplete = ({
4250
4312
  marginBottom: labelMarginBottom ? labelMarginBottom : configStyles.NEWAUTOCOMPLETE.labelMarginBottom,
4251
4313
  textTransform: labelTextTransform ? labelTextTransform : configStyles.NEWAUTOCOMPLETE.labelTextTransform
4252
4314
  }
4253
- }, label, required && /*#__PURE__*/React__default.createElement("sup", {
4254
- style: {
4255
- color: labelRequiredColor ? labelRequiredColor : configStyles.NEWAUTOCOMPLETE.labelRequiredColor
4256
- }
4257
- }, "*")) : '', /*#__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", {
4258
4316
  style: {
4259
4317
  display: contentDisplay ? contentDisplay : configStyles.NEWAUTOCOMPLETE.contentDisplay,
4260
4318
  position: contentPosition ? contentPosition : configStyles.NEWAUTOCOMPLETE.contentPosition,
@@ -4340,7 +4398,6 @@ NewAutocomplete.propTypes = {
4340
4398
  options: PropTypes.array.isRequired,
4341
4399
  labelMarginBottom: PropTypes.string,
4342
4400
  innerErrorPadding: PropTypes.string,
4343
- labelRequiredColor: PropTypes.string,
4344
4401
  labelTextTransform: PropTypes.string,
4345
4402
  showOptionDuration: PropTypes.string,
4346
4403
  contentTopMaxWidth: PropTypes.string,