@xaypay/tui 0.2.20 → 0.2.22

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
@@ -564,6 +564,7 @@ var packageResult = {
564
564
  shadowHover: `0 0 0 2px ${presetColors.dark}` // like border
565
565
  },
566
566
  colors: {
567
+ placeholder: 'gray',
567
568
  background: 'white',
568
569
  backgroundDisable: presetColors.secondary
569
570
  },
@@ -1017,6 +1018,15 @@ var packageResult = {
1017
1018
  color: '#4A4A4D',
1018
1019
  font: {
1019
1020
  ...fontObject
1021
+ },
1022
+ tooltip: {
1023
+ color: '#fff',
1024
+ padding: '12px',
1025
+ borderRadius: '8px',
1026
+ font: {
1027
+ ...fontObject
1028
+ },
1029
+ backgroundColor: '#000'
1020
1030
  }
1021
1031
  },
1022
1032
  font: {
@@ -1194,6 +1204,8 @@ var packageResult = {
1194
1204
  TABLE: {
1195
1205
  className: '',
1196
1206
  textAlign: 'center',
1207
+ border: '1px solid',
1208
+ borderColor: 'transparent',
1197
1209
  column: {
1198
1210
  maxWidth: '',
1199
1211
  minWidth: ''
@@ -1398,7 +1410,7 @@ async function getPProps() {
1398
1410
  const projectPath = `../../../../tui.config.js`;
1399
1411
  async function loadComponent(componentName) {
1400
1412
  try {
1401
- const Component = await import( /* @vite-ignore */componentName);
1413
+ const Component = await import(/* @vite-ignore */componentName);
1402
1414
  return Component.default;
1403
1415
  } catch (err) {
1404
1416
  console.error(`Error loading component: ${componentName}`);
@@ -1707,8 +1719,8 @@ function styleInject(css, ref) {
1707
1719
  }
1708
1720
  }
1709
1721
 
1710
- var css_248z$d = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}";
1711
- var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW"};
1722
+ var css_248z$d = ".file-module_small-file-component__nlpcW>svg{max-height:77%!important}.file-module_file-label__uscgT{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-module_tooltip__FjCUU{background-color:#333;border-radius:4px;color:#fff;font-size:14px;pointer-events:none;position:fixed;visibility:hidden;white-space:nowrap;z-index:1000}";
1723
+ var styles$b = {"small-file-component":"file-module_small-file-component__nlpcW","file-label":"file-module_file-label__uscgT","tooltip":"file-module_tooltip__FjCUU"};
1712
1724
  styleInject(css_248z$d);
1713
1725
 
1714
1726
  // eslint-disable-next-line react/display-name
@@ -1741,6 +1753,14 @@ const File = /*#__PURE__*/forwardRef(({
1741
1753
  labelStyle,
1742
1754
  labelWeight,
1743
1755
  labelFamily,
1756
+ labelTooltipColor,
1757
+ labelTooltipPadding,
1758
+ labelTooltipFontSize,
1759
+ labelTooltipFontStyle,
1760
+ labelTooltipFontFamily,
1761
+ labelTooltipFontWeight,
1762
+ labelTooltipBorderRadius,
1763
+ labelTooltipBackgroundColor,
1744
1764
  removeFile,
1745
1765
  labelColor,
1746
1766
  errorColor,
@@ -1750,6 +1770,8 @@ const File = /*#__PURE__*/forwardRef(({
1750
1770
  uploadColor,
1751
1771
  defaultData,
1752
1772
  formatError,
1773
+ errorIcon,
1774
+ errorIconShow,
1753
1775
  errorMessage,
1754
1776
  fileSizeText,
1755
1777
  maxSizeError,
@@ -1806,6 +1828,7 @@ const File = /*#__PURE__*/forwardRef(({
1806
1828
  listItemBackgroundColor,
1807
1829
  listItemBackgroundErrorColor,
1808
1830
  maxCHoosenLengthErrorHideTime,
1831
+ textAlignLeftInSmallComponent,
1809
1832
  showPreviewIconInSmallComponent,
1810
1833
  maxSize = 10,
1811
1834
  preview = true,
@@ -1813,12 +1836,16 @@ const File = /*#__PURE__*/forwardRef(({
1813
1836
  fileExtensions = ['jpg', 'jpeg', 'png', 'pdf', 'heic']
1814
1837
  }, ref) => {
1815
1838
  const inpRef = useRef(null);
1839
+ const labelRef = useRef(null);
1840
+ const parentlRef = useRef(null);
1816
1841
  const memoizedItems = useMemo(() => filesArray, [filesArray]);
1817
1842
  const [error, setError] = useState('');
1818
1843
  const [isHover, setIsHover] = useState(false);
1844
+ const [removeID, setRemoveID] = useState('');
1819
1845
  const [classProps, setClassProps] = useState({});
1820
1846
  const [singleFile, setSingleFile] = useState(null);
1821
1847
  const [configStyles, setConfigStyles] = useState({});
1848
+ const [tooltipElem, setTooltipElem] = useState(null);
1822
1849
  const [choosenFileCount, setChoosenFileCount] = useState(0);
1823
1850
  const [image, setImage] = useState(!multiple ? defaultData ? defaultData.type !== 'application/pdf' ? defaultData.url.startsWith('data:image/heif') || defaultData.url.startsWith('data:image/heic') || defaultData.url.startsWith('data:application/octet-stream') ? 'heic' : defaultData.url : 'pdf' : null : null);
1824
1851
  const handleCheckHeicFormat = async file => {
@@ -2049,14 +2076,10 @@ const File = /*#__PURE__*/forwardRef(({
2049
2076
  }
2050
2077
  };
2051
2078
  const handleClick = () => {
2052
- inpRef.current.files = null;
2053
- inpRef.current.value = null;
2054
- if (multiple) {
2079
+ if (!image && !singleFile) {
2080
+ inpRef.current.files = null;
2081
+ inpRef.current.value = null;
2055
2082
  inpRef.current.click();
2056
- } else {
2057
- if (!image) {
2058
- inpRef.current.click();
2059
- }
2060
2083
  }
2061
2084
  };
2062
2085
  const handleDrop = e => {
@@ -2083,6 +2106,79 @@ const File = /*#__PURE__*/forwardRef(({
2083
2106
  const handleStopPropagation = e => {
2084
2107
  e.stopPropagation();
2085
2108
  };
2109
+ const getRenderedTextWidth = element => {
2110
+ const clone = element.cloneNode(true);
2111
+ clone.style.width = 'fit-content';
2112
+ document.body.appendChild(clone);
2113
+ const width = clone.offsetWidth;
2114
+ document.body.removeChild(clone);
2115
+ return width;
2116
+ };
2117
+ const handleLabelMouseEnter = event => {
2118
+ event.preventDefault();
2119
+ setRemoveID(() => v4());
2120
+ if (labelRef.current) {
2121
+ const parentElem = parentlRef.current.getBoundingClientRect();
2122
+ const rect = labelRef.current.getBoundingClientRect();
2123
+ const top = rect.top;
2124
+ const left = rect.left;
2125
+ const height = rect.height;
2126
+ const elementWidth = rect.width;
2127
+ const x = event.clientX - rect.left;
2128
+ const parentWidth = parentElem.width;
2129
+ const textWidth = getRenderedTextWidth(labelRef.current);
2130
+ if (textWidth > Math.ceil(elementWidth)) {
2131
+ const newTooltipElem = document.createElement('div');
2132
+ newTooltipElem.id = `fake_id_for_remove_dom${removeID}`;
2133
+ const newTootltipTextElem = document.createElement('p');
2134
+ const newTooltipChildElem = document.createElement('div');
2135
+ const newTooltipDecorElem = document.createElement('div');
2136
+ newTooltipElem.style.position = 'fixed';
2137
+ newTooltipElem.style.left = left + 'px';
2138
+ newTooltipElem.style.paddingTop = '20px';
2139
+ newTooltipElem.style.height = 'fit-content';
2140
+ newTooltipElem.style.boxSizing = 'border-box';
2141
+ newTooltipElem.style.top = top + height + 'px';
2142
+ newTooltipElem.style.width = parentWidth + 'px';
2143
+ newTooltipChildElem.style.width = '100%';
2144
+ newTooltipChildElem.style.position = 'relative';
2145
+ newTooltipChildElem.style.height = 'fit-content';
2146
+ newTooltipChildElem.style.boxSizing = 'border-box';
2147
+ newTooltipChildElem.style.padding = labelTooltipPadding ?? configStyles.FILE.label.tooltip.padding;
2148
+ newTooltipChildElem.style.borderRadius = labelTooltipBorderRadius ?? configStyles.FILE.label.tooltip.borderRadius;
2149
+ newTooltipChildElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.FILE.label.tooltip.backgroundColor;
2150
+ newTooltipDecorElem.style.zIndex = -1;
2151
+ newTooltipDecorElem.style.top = '-8px';
2152
+ newTooltipDecorElem.style.width = '18px';
2153
+ newTooltipDecorElem.style.height = '18px';
2154
+ newTooltipDecorElem.style.rotate = '45deg';
2155
+ newTooltipDecorElem.style.position = 'absolute';
2156
+ newTooltipDecorElem.style.left = x > elementWidth / 2 ? 'calc(100% - 40px)' : '23px';
2157
+ newTooltipDecorElem.style.backgroundColor = labelTooltipBackgroundColor ?? configStyles.FILE.label.tooltip.backgroundColor;
2158
+ newTootltipTextElem.innerText = label;
2159
+ newTootltipTextElem.style.color = labelTooltipColor ?? configStyles.FILE.label.tooltip.color;
2160
+ newTootltipTextElem.style.fontSize = labelTooltipFontSize ?? configStyles.FILE.label.tooltip.font.size;
2161
+ newTootltipTextElem.style.fontStyle = labelTooltipFontStyle ?? configStyles.FILE.label.tooltip.font.style;
2162
+ newTootltipTextElem.style.fontFamily = labelTooltipFontFamily ?? configStyles.FILE.label.tooltip.font.family;
2163
+ newTootltipTextElem.style.fontWeight = labelTooltipFontWeight ?? configStyles.FILE.label.tooltip.font.weight;
2164
+ document.body.appendChild(newTooltipElem);
2165
+ newTooltipElem.appendChild(newTooltipChildElem);
2166
+ newTooltipChildElem.appendChild(newTooltipDecorElem);
2167
+ newTooltipChildElem.appendChild(newTootltipTextElem);
2168
+ setTooltipElem(() => newTooltipElem);
2169
+ }
2170
+ }
2171
+ };
2172
+ const handleLabelMouseLeave = () => {
2173
+ const removableElem = document.getElementById(`fake_id_for_remove_dom${removeID}`);
2174
+ if (removableElem) {
2175
+ document.body.removeChild(removableElem);
2176
+ }
2177
+ if (tooltipElem) {
2178
+ document.body.removeChild(tooltipElem);
2179
+ }
2180
+ setRemoveID(() => '');
2181
+ };
2086
2182
  useImperativeHandle(ref, () => ({
2087
2183
  handleReset() {
2088
2184
  setError('');
@@ -2149,8 +2245,14 @@ const File = /*#__PURE__*/forwardRef(({
2149
2245
  }, error => {
2150
2246
  console.error(error);
2151
2247
  });
2248
+ return () => {
2249
+ if (tooltipElem) {
2250
+ document.body.removeChild(tooltipElem);
2251
+ }
2252
+ };
2152
2253
  }, []);
2153
2254
  return configStyles.FILE && /*#__PURE__*/React__default.createElement("div", {
2255
+ ref: parentlRef,
2154
2256
  style: {
2155
2257
  width: '100%',
2156
2258
  maxWidth: maxWidth ?? configStyles.FILE.maxWidth
@@ -2163,15 +2265,28 @@ const File = /*#__PURE__*/forwardRef(({
2163
2265
  alignItems: 'center',
2164
2266
  justifyContent: label ? 'space-between' : 'flex-end'
2165
2267
  }
2166
- }, label && /*#__PURE__*/React__default.createElement("label", {
2268
+ }, label && /*#__PURE__*/React__default.createElement("div", {
2167
2269
  style: {
2270
+ display: 'flex',
2271
+ maxWidth: '100%',
2272
+ width: 'fit-content',
2273
+ columnGap: '4px',
2274
+ justifyContent: 'flex-start'
2275
+ }
2276
+ }, /*#__PURE__*/React__default.createElement("label", {
2277
+ ref: labelRef,
2278
+ className: styles$b['file-label'],
2279
+ style: {
2280
+ width: '100%',
2168
2281
  color: labelColor ?? configStyles.FILE.label.color,
2169
2282
  fontSize: labelSize ?? configStyles.FILE.label.font.size,
2170
2283
  fontStyle: labelStyle ?? configStyles.FILE.label.font.style,
2171
2284
  fontWeight: labelWeight ?? configStyles.FILE.label.font.weight,
2172
2285
  fontFamily: labelFamily ?? configStyles.FILE.label.font.family
2173
- }
2174
- }, label, required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
2286
+ },
2287
+ onMouseEnter: handleLabelMouseEnter,
2288
+ onMouseLeave: handleLabelMouseLeave
2289
+ }, label), required && /*#__PURE__*/React__default.createElement("sup", null, iconRequired ? iconRequired : configStyles.FILE.icon.required ? configStyles.FILE.icon.required : /*#__PURE__*/React__default.createElement(SvgRequired, null))), deleteComponent && /*#__PURE__*/React__default.createElement("span", {
2175
2290
  style: {
2176
2291
  cursor: 'pointer'
2177
2292
  },
@@ -2256,7 +2371,7 @@ const File = /*#__PURE__*/forwardRef(({
2256
2371
  display: 'flex',
2257
2372
  alignItems: 'center',
2258
2373
  boxSizing: 'border-box',
2259
- justifyContent: 'space-between'
2374
+ justifyContent: textAlignLeftInSmallComponent ? 'flex-start' : 'space-between'
2260
2375
  }
2261
2376
  }, showPreviewIconInSmallComponent ? !image ? /*#__PURE__*/React__default.createElement(Button, {
2262
2377
  contentWidth: true,
@@ -2318,14 +2433,16 @@ const File = /*#__PURE__*/forwardRef(({
2318
2433
  }, iconRemoveFile ? iconRemoveFile : configStyles.FILE.icon.removeFile ? configStyles.FILE.icon.removeFile : /*#__PURE__*/React__default.createElement(SvgRemoveFile, null)))), error ? /*#__PURE__*/React__default.createElement("span", {
2319
2434
  style: {
2320
2435
  marginTop: '6px',
2321
- display: 'inline-block',
2322
2436
  color: errorColor ?? configStyles.FILE.error.color,
2323
2437
  fontSize: errorSize ?? configStyles.FILE.error.font.size,
2324
2438
  fontStyle: errorStyle ?? configStyles.FILE.error.font.style,
2325
2439
  fontWeight: errorWeight ?? configStyles.FILE.error.font.weight,
2326
- fontFamily: errorFamily ?? configStyles.FILE.error.font.family
2440
+ fontFamily: errorFamily ?? configStyles.FILE.error.font.family,
2441
+ alignItems: 'center',
2442
+ columnGap: '5px',
2443
+ display: errorIconShow && (errorIcon || configStyles.FILE.error?.icon) ? 'inline-flex' : 'inline-block'
2327
2444
  }
2328
- }, error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
2445
+ }, errorIconShow ? errorIcon ? errorIcon : configStyles.FILE.error?.icon ? configStyles.FILE.error?.icon : '' : '', error) : '', multiple && memoizedItems && memoizedItems.length > 0 && memoizedItems.map(item => {
2329
2446
  return /*#__PURE__*/React__default.createElement(FileItem, {
2330
2447
  key: item.uuid,
2331
2448
  uuid: item.uuid,
@@ -2397,6 +2514,14 @@ File.propTypes = {
2397
2514
  labelWeight: PropTypes.string,
2398
2515
  labelFamily: PropTypes.string,
2399
2516
  labelColor: PropTypes.string,
2517
+ labelTooltipColor: PropTypes.string,
2518
+ labelTooltipPadding: PropTypes.string,
2519
+ labelTooltipFontSize: PropTypes.string,
2520
+ labelTooltipFontStyle: PropTypes.string,
2521
+ labelTooltipFontFamily: PropTypes.string,
2522
+ labelTooltipFontWeight: PropTypes.string,
2523
+ labelTooltipBorderRadius: PropTypes.string,
2524
+ labelTooltipBackgroundColor: PropTypes.string,
2400
2525
  errorColor: PropTypes.string,
2401
2526
  formatError: PropTypes.string,
2402
2527
  putFileHere: PropTypes.string,
@@ -2404,6 +2529,8 @@ File.propTypes = {
2404
2529
  defaultData: PropTypes.object,
2405
2530
  componentId: PropTypes.number,
2406
2531
  maxSizeError: PropTypes.string,
2532
+ errorIcon: PropTypes.element,
2533
+ errorIconShow: PropTypes.bool,
2407
2534
  errorMessage: PropTypes.string,
2408
2535
  fileSizeText: PropTypes.string,
2409
2536
  noChoosenFile: PropTypes.string,
@@ -2461,10 +2588,107 @@ File.propTypes = {
2461
2588
  listItemBackgroundErrorColor: PropTypes.string,
2462
2589
  maxCHoosenLengthErrorHideTime: PropTypes.number,
2463
2590
  filesArray: PropTypes.arrayOf(PropTypes.object),
2591
+ textAlignLeftInSmallComponent: PropTypes.bool,
2464
2592
  showPreviewIconInSmallComponent: PropTypes.bool,
2465
2593
  fileExtensions: PropTypes.arrayOf(PropTypes.string)
2466
2594
  };
2467
2595
 
2596
+ const hasOwnerProperty = (object, property) => {
2597
+ return Object.prototype.hasOwnProperty.call(object, property);
2598
+ };
2599
+ const handleUtilsMouseEnterLeave = (e, behaviourStyle) => {
2600
+ if (typeof behaviourStyle !== 'object' || behaviourStyle === null || behaviourStyle === undefined) {
2601
+ alert('Please set a second param of handleUtilsMouseEnter function as valid object');
2602
+ return;
2603
+ }
2604
+ if (!hasOwnerProperty(e, 'target')) {
2605
+ alert('Please set a valid object like DOM event');
2606
+ return;
2607
+ }
2608
+ const existStyle = e.target.style;
2609
+ if (typeof existStyle !== 'object' || existStyle === null) {
2610
+ alert('Please set a valid style object in DOM event tergat');
2611
+ return;
2612
+ }
2613
+ for (const property in behaviourStyle) {
2614
+ if (existStyle[property]) {
2615
+ existStyle[property] = behaviourStyle[property];
2616
+ }
2617
+ }
2618
+ };
2619
+ const handleUtilsCheckTypeTel = (val, prevVal) => {
2620
+ const phoneNumberRegex = /^\d{0,8}$/;
2621
+ if (val.length > 7) {
2622
+ val = val.substr(0, 8);
2623
+ }
2624
+ if (!phoneNumberRegex.test(val)) {
2625
+ val = prevVal;
2626
+ }
2627
+ return val;
2628
+ };
2629
+ const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength, cardNumber) => {
2630
+ if (maxLength && maxLength > 0) {
2631
+ if (val.length > maxLength) {
2632
+ val = val.substr(0, maxLength);
2633
+ }
2634
+ } else {
2635
+ const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.|\․|\.|\,)?(\d+)?$/ : /^\d+$/;
2636
+ if (cardNumber) {
2637
+ if (val.length > 19 && !val.includes('.')) {
2638
+ val = val.substr(0, 19);
2639
+ }
2640
+ } else {
2641
+ if (val.length > 16 && !val.includes('.')) {
2642
+ val = val.substr(0, 16);
2643
+ }
2644
+ }
2645
+ if (numberMaxLength && numberMaxLength > 0 && !val.includes('.')) {
2646
+ val = val.substr(0, numberMaxLength);
2647
+ }
2648
+ const floatNumParts = typeof val === 'string' ? val.split(/\.|\․|\.|\,/) : val;
2649
+ const int = floatNumParts[0];
2650
+ const float = floatNumParts[1];
2651
+ if (floatToFix > 0) {
2652
+ if (float && float.length > 0) {
2653
+ let floatResult = '';
2654
+ [...float].map((item, index) => {
2655
+ if (index + 1 <= floatToFix) {
2656
+ floatResult += item;
2657
+ }
2658
+ });
2659
+ floatResult !== '' ? val = `${int}.${floatResult}` : val = `${int}`;
2660
+ }
2661
+ } else {
2662
+ if (floatNumParts && floatNumParts.length > 0 && floatToFix === 0) {
2663
+ val = `${int}`;
2664
+ }
2665
+ }
2666
+ if (!regNum.test(val)) {
2667
+ let newVal = typeof val === 'number' ? val.toString() : val;
2668
+ const newStr = newVal.replace(/[^0-9.]/g, '').replace(/^([^.]*\.|\․|\.|\,)(.*)$/, function (_, b, c) {
2669
+ return b + c.replace(/\.|\․|\.|\,/g, '');
2670
+ });
2671
+ val = newStr;
2672
+ }
2673
+ }
2674
+ if (withoutDot && !/^\d+$/.test(val)) {
2675
+ let newVal = typeof val === 'number' ? val.toString() : val;
2676
+ const newStr = newVal.replace(/[^0-9]/g, '').replace(/^([^.]*\.|\․|\.|\,)(.*)$/, function (_, b, c) {
2677
+ return b + c.replace(/\.|\․|\.|\,/g, '');
2678
+ });
2679
+ val = newStr;
2680
+ }
2681
+ return val;
2682
+ };
2683
+ const handleUtilsOpenInNewTab = url => {
2684
+ const imageLink = document.createElement('a');
2685
+ imageLink.href = url, imageLink.target = '_blank';
2686
+ imageLink.click();
2687
+ };
2688
+ const handleRemoveLeadingZeros = str => {
2689
+ return str.replace(/^0+(\d)/, '$1');
2690
+ };
2691
+
2468
2692
  const SvgCheckboxUnchecked = ({
2469
2693
  title,
2470
2694
  titleId,
@@ -2630,102 +2854,6 @@ SingleCheckbox.propTypes = {
2630
2854
  ignoreDisabledForChecked: PropTypes.bool
2631
2855
  };
2632
2856
 
2633
- const hasOwnerProperty = (object, property) => {
2634
- return Object.prototype.hasOwnProperty.call(object, property);
2635
- };
2636
- const handleUtilsMouseEnterLeave = (e, behaviourStyle) => {
2637
- if (typeof behaviourStyle !== 'object' || behaviourStyle === null || behaviourStyle === undefined) {
2638
- alert('Please set a second param of handleUtilsMouseEnter function as valid object');
2639
- return;
2640
- }
2641
- if (!hasOwnerProperty(e, 'target')) {
2642
- alert('Please set a valid object like DOM event');
2643
- return;
2644
- }
2645
- const existStyle = e.target.style;
2646
- if (typeof existStyle !== 'object' || existStyle === null) {
2647
- alert('Please set a valid style object in DOM event tergat');
2648
- return;
2649
- }
2650
- for (const property in behaviourStyle) {
2651
- if (existStyle[property]) {
2652
- existStyle[property] = behaviourStyle[property];
2653
- }
2654
- }
2655
- };
2656
- const handleUtilsCheckTypeTel = (val, prevVal) => {
2657
- const phoneNumberRegex = /^\d{0,8}$/;
2658
- if (val.length > 7) {
2659
- val = val.substr(0, 8);
2660
- }
2661
- if (!phoneNumberRegex.test(val)) {
2662
- val = prevVal;
2663
- }
2664
- return val;
2665
- };
2666
- const handleUtilsCheckTypeNumber = (val, prevVal, maxLength, floatToFix, maxNumSize, withoutDot, innerMinNumSize, numberMaxLength, cardNumber) => {
2667
- if (maxLength && maxLength > 0) {
2668
- if (val.length > maxLength) {
2669
- val = val.substr(0, maxLength);
2670
- }
2671
- } else {
2672
- const regNum = floatToFix && floatToFix >= 0 ? /^\d+(\.|\․|\.|\,)?(\d+)?$/ : /^\d+$/;
2673
- if (cardNumber) {
2674
- if (val.length > 19 && !val.includes('.')) {
2675
- val = val.substr(0, 19);
2676
- }
2677
- } else {
2678
- if (val.length > 16 && !val.includes('.')) {
2679
- val = val.substr(0, 16);
2680
- }
2681
- }
2682
- if (numberMaxLength && numberMaxLength > 0 && !val.includes('.')) {
2683
- val = val.substr(0, numberMaxLength);
2684
- }
2685
- const floatNumParts = typeof val === 'string' ? val.split(/\.|\․|\.|\,/) : val;
2686
- const int = floatNumParts[0];
2687
- const float = floatNumParts[1];
2688
- if (floatToFix > 0) {
2689
- if (float && float.length > 0) {
2690
- let floatResult = '';
2691
- [...float].map((item, index) => {
2692
- if (index + 1 <= floatToFix) {
2693
- floatResult += item;
2694
- }
2695
- });
2696
- floatResult !== '' ? val = `${int}.${floatResult}` : val = `${int}`;
2697
- }
2698
- } else {
2699
- if (floatNumParts && floatNumParts.length > 0 && floatToFix === 0) {
2700
- val = `${int}`;
2701
- }
2702
- }
2703
- if (!regNum.test(val)) {
2704
- let newVal = typeof val === 'number' ? val.toString() : val;
2705
- const newStr = newVal.replace(/[^0-9.]/g, '').replace(/^([^.]*\.|\․|\.|\,)(.*)$/, function (_, b, c) {
2706
- return b + c.replace(/\.|\․|\.|\,/g, '');
2707
- });
2708
- val = newStr;
2709
- }
2710
- }
2711
- if (withoutDot && !/^\d+$/.test(val)) {
2712
- let newVal = typeof val === 'number' ? val.toString() : val;
2713
- const newStr = newVal.replace(/[^0-9]/g, '').replace(/^([^.]*\.|\․|\.|\,)(.*)$/, function (_, b, c) {
2714
- return b + c.replace(/\.|\․|\.|\,/g, '');
2715
- });
2716
- val = newStr;
2717
- }
2718
- return val;
2719
- };
2720
- const handleUtilsOpenInNewTab = url => {
2721
- const imageLink = document.createElement('a');
2722
- imageLink.href = url, imageLink.target = '_blank';
2723
- imageLink.click();
2724
- };
2725
- const handleRemoveLeadingZeros = str => {
2726
- return str.replace(/^0+(\d)/, '$1');
2727
- };
2728
-
2729
2857
  var css_248z$c = ".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{display:inline-block;position:relative}.table-module_td-span__XHo6k>svg{left:0;position:absolute;top:0;z-index:-1}.table-module_list-text__kmKIq{align-items:center;cursor:pointer;display:flex;margin:0 0 8px;min-height:38px;white-space:wrap}.table-module_dots-option-item__jNOxO{box-sizing:border-box;cursor:pointer;display:flex;height:39px;margin-bottom:2px;padding:10px;position:relative;width:100%}.table-module_dots-option-item__jNOxO:after{background-color:#eee;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;-ms-border-radius:1px;-o-border-radius:1px;content:\"\";height:2px;left:10px;position:absolute;top:calc(100% - 2px);width:calc(100% - 20px)}.table-module_dots-option-item__jNOxO:last-child:after{display:none}.table-module_no-tabel-data__6xp3N{align-items:center;display:flex;height:200px;justify-content:center;width:100%}";
2730
2858
  var styles$a = {"sorting-arrows":"table-module_sorting-arrows__BaN-G","td-span":"table-module_td-span__XHo6k","list-text":"table-module_list-text__kmKIq","dots-option-item":"table-module_dots-option-item__jNOxO","no-tabel-data":"table-module_no-tabel-data__6xp3N"};
2731
2859
  styleInject(css_248z$c);
@@ -2820,6 +2948,7 @@ const TD = ({
2820
2948
  tBodyFontFamily,
2821
2949
  tBodyFontWeight,
2822
2950
  handleCheckDots,
2951
+ collapseFullRow,
2823
2952
  openListFontSize,
2824
2953
  borderRightColor,
2825
2954
  openListFontStyle,
@@ -2834,6 +2963,11 @@ const TD = ({
2834
2963
  handleCheckArrowAction,
2835
2964
  handleOpenCloseRowSingleArrow
2836
2965
  }) => {
2966
+ const [actionHover, setActionHover] = useState({
2967
+ id: '',
2968
+ type: '',
2969
+ index: -1
2970
+ });
2837
2971
  const handleBodyAction = (e, data) => {
2838
2972
  const actionData = {
2839
2973
  index,
@@ -2873,6 +3007,24 @@ const TD = ({
2873
3007
  contentListInnerItem
2874
3008
  });
2875
3009
  };
3010
+ const handleMouseEnter = (item, index) => {
3011
+ setActionHover(() => {
3012
+ return {
3013
+ id: item.id,
3014
+ type: item.type,
3015
+ index
3016
+ };
3017
+ });
3018
+ };
3019
+ const handleMouseLeave = () => {
3020
+ setActionHover(() => {
3021
+ return {
3022
+ id: '',
3023
+ type: '',
3024
+ index: -1
3025
+ };
3026
+ });
3027
+ };
2876
3028
  return /*#__PURE__*/React__default.createElement("td", {
2877
3029
  style: {
2878
3030
  width: 'auto',
@@ -2907,8 +3059,10 @@ const TD = ({
2907
3059
  type: newItem.type,
2908
3060
  className: styles$a['td-span'],
2909
3061
  key: `${newItem.id}_${newIndex}`,
2910
- onClick: e => handleCheckActions(e, newItem, 'type', newIndex)
2911
- }, newItem.content === 0 ? newItem.content.toString() : newItem.content ? newItem.content : '');
3062
+ onClick: e => handleCheckActions(e, newItem, 'type', newIndex),
3063
+ onMouseEnter: () => handleMouseEnter(newItem, newIndex),
3064
+ onMouseLeave: () => handleMouseLeave()
3065
+ }, newItem.content === 0 ? newItem.content.toString() : newItem.contentHover && actionHover.id === newItem.id && actionHover.type === newItem.type && actionHover.index === newIndex ? newItem.contentHover : newItem.content ? newItem.content : '');
2912
3066
  } else if (newItem && Array.isArray(newItem)) {
2913
3067
  return /*#__PURE__*/React__default.createElement("span", {
2914
3068
  key: `${newItem.id}_${newIndex}`,
@@ -2928,9 +3082,11 @@ const TD = ({
2928
3082
  id: iT.id ? iT.id : '',
2929
3083
  type: iT.type ? iT.type : '',
2930
3084
  className: styles$a['td-span'],
2931
- onClick: e => handleCheckActions(e, iT, 'type', iN),
2932
- key: `${iT.id || iT.content}_${iN}`
2933
- }, iT.content === 0 ? iT.content.toString() : iT.content ? iT.content : '');
3085
+ key: `${iT.id || iT.content}_${iN}`,
3086
+ onMouseEnter: () => handleMouseEnter(iT, iN),
3087
+ onMouseLeave: () => handleMouseLeave(),
3088
+ onClick: e => handleCheckActions(e, iT, 'type', iN)
3089
+ }, iT.content === 0 ? iT.content.toString() : iT.contentHover && actionHover.id === iT.id && actionHover.type === iT.type && actionHover.index === iN ? iT.contentHover : iT.content ? iT.content : '');
2934
3090
  }));
2935
3091
  } else {
2936
3092
  return /*#__PURE__*/React__default.createElement("span", {
@@ -2995,7 +3151,7 @@ const TD = ({
2995
3151
  cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto',
2996
3152
  ...item.props
2997
3153
  },
2998
- onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
3154
+ onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, collapseFullRow ? index : item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
2999
3155
  }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty(item, 'dots') ? /*#__PURE__*/React__default.createElement("span", {
3000
3156
  style: {
3001
3157
  display: 'block',
@@ -3042,7 +3198,7 @@ const TD = ({
3042
3198
  },
3043
3199
  title: optionItem.content
3044
3200
  }, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
3045
- }))) : ''), hasOwnerProperty(item, 'contentList') && /*#__PURE__*/React__default.createElement("div", {
3201
+ }))) : ''), hasOwnerProperty(item, 'contentList') && !collapseFullRow && /*#__PURE__*/React__default.createElement("div", {
3046
3202
  style: {
3047
3203
  overflow: 'auto',
3048
3204
  marginTop: '10px',
@@ -3203,7 +3359,12 @@ const Table = ({
3203
3359
  draggableColor,
3204
3360
  getDraggableData,
3205
3361
  draggableItemBoxShadow,
3206
- draggableItemBackgroundColor
3362
+ draggableItemBackgroundColor,
3363
+ tableBorder,
3364
+ tableBorderColor,
3365
+ collapseFullRow,
3366
+ openArrow,
3367
+ closeArrow
3207
3368
  }) => {
3208
3369
  const itemRefs = useRef({});
3209
3370
  const headerRef = useRef(null);
@@ -3337,8 +3498,8 @@ const Table = ({
3337
3498
  status: 'close',
3338
3499
  checkIndex: null,
3339
3500
  arrowComponent: true,
3340
- openArrow: /*#__PURE__*/React__default.createElement(SvgUpArrow, null),
3341
- closeArrow: /*#__PURE__*/React__default.createElement(SvgDownArrow, null)
3501
+ openArrow: openArrow ? openArrow : configStyles.TABLE?.openArrow ? configStyles.TABLE?.openArrow : /*#__PURE__*/React__default.createElement(SvgUpArrow, null),
3502
+ closeArrow: closeArrow ? closeArrow : configStyles.TABLE?.closeArrow ? configStyles.TABLE?.closeArrow : /*#__PURE__*/React__default.createElement(SvgDownArrow, null)
3342
3503
  };
3343
3504
  if (type === 'body') {
3344
3505
  return data.map((item, index) => {
@@ -3502,6 +3663,49 @@ const Table = ({
3502
3663
  prev[rowPosition] = checkedOpenableRow;
3503
3664
  return [...prev];
3504
3665
  });
3666
+ if (collapseFullRow) {
3667
+ const newRows = [];
3668
+ body[rowPosition].filter(newItem => hasOwnerProperty(newItem, 'contentList')).map((cfrItem, cfrIndex) => {
3669
+ newRows[cfrIndex] = cfrItem.contentList;
3670
+ });
3671
+ const transformedArray = newRows && newRows[0] && newRows[0].map((_, index) => {
3672
+ let result = [];
3673
+ for (let i = 0; i < newRows.length; i++) {
3674
+ result[i] = newRows[i][index];
3675
+ }
3676
+ return result;
3677
+ });
3678
+ if (transformedArray && transformedArray.length) {
3679
+ const fakeData = transformedArray.map(fakeItem => {
3680
+ fakeItem.unshift({
3681
+ id: 'fake',
3682
+ content: ''
3683
+ });
3684
+ fakeItem.push({
3685
+ id: 'fake',
3686
+ content: ''
3687
+ });
3688
+ return fakeItem;
3689
+ });
3690
+ if (status === 'close') {
3691
+ let met = [...body];
3692
+ setTimeout(() => {
3693
+ setBody(() => {
3694
+ met.splice(rowPosition + 1, 0, ...fakeData);
3695
+ return met;
3696
+ });
3697
+ }, 0);
3698
+ } else {
3699
+ let met = [...body];
3700
+ setTimeout(() => {
3701
+ setBody(() => {
3702
+ met.splice(rowPosition + 1, fakeData.length);
3703
+ return met;
3704
+ });
3705
+ }, 0);
3706
+ }
3707
+ }
3708
+ }
3505
3709
  };
3506
3710
  const handleOpenCloseRowSingleArrow = (arrowRowIndex, arrowIndex, clickableItem) => {
3507
3711
  let single = {};
@@ -3542,6 +3746,7 @@ const Table = ({
3542
3746
  };
3543
3747
  const handleCheckArrowActionHeader = (e, item) => {
3544
3748
  e.stopPropagation();
3749
+ let mergedArray = [];
3545
3750
  const checkedOpenableAllRows = header.map((innerItem, innerIndex) => {
3546
3751
  if (item.checkIndex === (draggable && !showOrder ? innerIndex - 1 : draggable && showOrder ? innerIndex - 2 : innerIndex)) {
3547
3752
  if (item.status === 'close') {
@@ -3564,8 +3769,52 @@ const Table = ({
3564
3769
  return iElem;
3565
3770
  });
3566
3771
  });
3772
+ if (collapseFullRow) {
3773
+ if (item.status === 'open') {
3774
+ const newFakeBody = checkedOpenableAllRowsBody.map(bodyItem => {
3775
+ let fakeData = [];
3776
+ const newRows = [];
3777
+ bodyItem.filter(newItem => hasOwnerProperty(newItem, 'contentList')).map((cfrItem, cfrIndex) => {
3778
+ newRows[cfrIndex] = cfrItem.contentList;
3779
+ });
3780
+ const transformedArray = newRows && newRows[0] && newRows[0].map((_, index) => {
3781
+ let result = [];
3782
+ for (let i = 0; i < newRows.length; i++) {
3783
+ result[i] = newRows[i][index];
3784
+ }
3785
+ return result;
3786
+ });
3787
+ if (transformedArray && transformedArray.length) {
3788
+ fakeData = transformedArray.map(fakeItem => {
3789
+ fakeItem.unshift({
3790
+ id: 'fake',
3791
+ content: ''
3792
+ });
3793
+ fakeItem.push({
3794
+ id: 'fake',
3795
+ content: ''
3796
+ });
3797
+ return fakeItem;
3798
+ });
3799
+ }
3800
+ return fakeData;
3801
+ });
3802
+ if (newFakeBody && newFakeBody.length) {
3803
+ checkedOpenableAllRowsBody.map((newBodyItem, newBodyIndex) => {
3804
+ mergedArray.push(newBodyItem);
3805
+ if (newFakeBody[newBodyIndex] && newFakeBody[newBodyIndex].length) {
3806
+ newFakeBody[newBodyIndex].map(newFakeBodyItem => {
3807
+ mergedArray.push(newFakeBodyItem);
3808
+ });
3809
+ }
3810
+ });
3811
+ }
3812
+ } else {
3813
+ mergedArray = checkedOpenableAllRowsBody.filter(realArray => !realArray.some(item => item.id === 'fake'));
3814
+ }
3815
+ }
3567
3816
  setHeader(() => checkedOpenableAllRows);
3568
- setBody(() => checkedOpenableAllRowsBody);
3817
+ setBody(() => !collapseFullRow ? checkedOpenableAllRowsBody : mergedArray);
3569
3818
  };
3570
3819
  const handleCheckDots = (e, item, index, innerIndex) => {
3571
3820
  e.stopPropagation();
@@ -3834,8 +4083,11 @@ const Table = ({
3834
4083
  return configStyles.TABLE && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("table", {
3835
4084
  style: {
3836
4085
  width: '100%',
3837
- borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse',
3838
- borderSpacing: `0 ${tBodyRowMarginTop ?? configStyles.TABLE.body.row.marginTop}`
4086
+ borderRadius: tHeadBorderRadius ?? configStyles.TABLE.head.radius,
4087
+ outline: hideBorder ? 'none' : tableBorder ?? configStyles.TABLE.border,
4088
+ outlineColor: hideBorder ? 'none' : tableBorderColor ?? configStyles.TABLE.borderColor,
4089
+ borderSpacing: `0 ${tBodyRowMarginTop ?? configStyles.TABLE.body.row.marginTop}`,
4090
+ borderCollapse: tableRowItem ?? configStyles.TABLE.body.row.asItem ? 'separate' : 'collapse'
3839
4091
  },
3840
4092
  onClick: handleTableClick,
3841
4093
  className: classProps
@@ -3845,7 +4097,7 @@ const Table = ({
3845
4097
  style: {
3846
4098
  color: tHeadColor ?? configStyles.TABLE.head.color,
3847
4099
  backgroundColor: tHeadBackgroundColor ?? configStyles.TABLE.head.colors.background,
3848
- borderColor: hideBorder ? 'transparent' : '#eeeeee'
4100
+ borderColor: hideBorder ? 'transparent' : tableBorderColor ?? configStyles.TABLE.borderColor
3849
4101
  }
3850
4102
  }, header.map((item, index) => {
3851
4103
  return /*#__PURE__*/React__default.createElement(TH, {
@@ -3922,7 +4174,8 @@ const Table = ({
3922
4174
  borderRight: innerIndex === Object.values(item).length - 1 ? 'none' : configStyles.TABLE.body.row.border,
3923
4175
  borderRightColor: innerIndex === Object.values(item).length - 1 ? 'transparent' : configStyles.TABLE.body.row.borderColor,
3924
4176
  handleCheckArrowAction: handleCheckArrowAction,
3925
- handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow
4177
+ handleOpenCloseRowSingleArrow: handleOpenCloseRowSingleArrow,
4178
+ collapseFullRow: collapseFullRow
3926
4179
  });
3927
4180
  }));
3928
4181
  })) : '', body && body.length > 0 && draggable && dragging && draggedItem && /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
@@ -4014,7 +4267,12 @@ Table.propTypes = {
4014
4267
  openListFontStyle: PropTypes.string,
4015
4268
  openListFontWeight: PropTypes.string,
4016
4269
  openListFontFamily: PropTypes.string,
4017
- hideBorder: PropTypes.bool
4270
+ hideBorder: PropTypes.bool,
4271
+ collapseFullRow: PropTypes.bool,
4272
+ tableBorder: PropTypes.string,
4273
+ tableBorderColor: PropTypes.string,
4274
+ openArrow: PropTypes.element,
4275
+ closeArrow: PropTypes.element
4018
4276
  };
4019
4277
 
4020
4278
  var css_248z$b = ".modal-module_animation__modal__3mt48{animation:modal-module_show-popup__WrH7a .15s;-webkit-animation:modal-module_show-popup__WrH7a .15s}@keyframes modal-module_show-popup__WrH7a{0%{transform:translate3d(0,-50%,0);-webkit-transform:translate3d(0,-50%,0);-moz-transform:translate3d(0,-50%,0);-ms-transform:translate3d(0,-50%,0);-o-transform:translate3d(0,-50%,0)}to{opacity:1;transform:translateZ(0);-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0)}}";
@@ -4614,6 +4872,7 @@ const TelInput = ({
4614
4872
  disabled: disabled,
4615
4873
  onInput: handleChange,
4616
4874
  name: inpAttributes?.iName,
4875
+ className: "tui-color-placeholder",
4617
4876
  placeholder: inpAttributes?.placeholder,
4618
4877
  autoComplete: inpAttributes?.autoComplete,
4619
4878
  style: {
@@ -4666,6 +4925,7 @@ const TextInput = ({
4666
4925
  disabled: disabled,
4667
4926
  onInput: handleChange,
4668
4927
  name: inpAttributes?.iName,
4928
+ className: "tui-color-placeholder",
4669
4929
  placeholder: inpAttributes?.placeholder,
4670
4930
  autoComplete: inpAttributes?.autoComplete,
4671
4931
  style: {
@@ -4724,6 +4984,7 @@ const PassInput = ({
4724
4984
  disabled: disabled,
4725
4985
  onInput: handleChange,
4726
4986
  name: inpAttributes?.iName,
4987
+ className: "tui-color-placeholder",
4727
4988
  placeholder: inpAttributes?.placeholder,
4728
4989
  autoComplete: inpAttributes?.autoComplete,
4729
4990
  style: {
@@ -4766,7 +5027,11 @@ const NumberInput = ({
4766
5027
  currentValue = handleUtilsCheckTypeNumber(currentValue, prevValue, null, float, maxNumSize, dots, innerMinNumSize, numberMaxLength, cardNumber);
4767
5028
  if (cardNumber) {
4768
5029
  let digits = currentValue.replace(/\D/g, '');
4769
- setInnerValue(() => digits.replace(/(\d{4})(?=\d)/g, '$1-'));
5030
+ if (digits.length <= 16) {
5031
+ setInnerValue(() => digits.replace(/(\d{4})(?=\d)/g, '$1-'));
5032
+ } else {
5033
+ setInnerValue(() => digits.substring(0, 16).replace(/(\d{4})(?=\d)/g, '$1-'));
5034
+ }
4770
5035
  } else {
4771
5036
  setInnerValue(() => currentValue);
4772
5037
  }
@@ -4844,7 +5109,11 @@ const NumberInput = ({
4844
5109
  }
4845
5110
  if (cardNumber) {
4846
5111
  let digits = newValue.replace(/\D/g, '');
4847
- setInnerValue(() => digits.replace(/(\d{4})(?=\d)/g, '$1-'));
5112
+ if (digits.length <= 16) {
5113
+ setInnerValue(() => digits.replace(/(\d{4})(?=\d)/g, '$1-'));
5114
+ } else {
5115
+ setInnerValue(() => digits.substring(0, 16).replace(/(\d{4})(?=\d)/g, '$1-'));
5116
+ }
4848
5117
  } else {
4849
5118
  setInnerValue(() => newValue);
4850
5119
  }
@@ -4855,6 +5124,7 @@ const NumberInput = ({
4855
5124
  value: innerValue,
4856
5125
  disabled: disabled,
4857
5126
  name: inpAttributes?.iName,
5127
+ className: "tui-color-placeholder",
4858
5128
  placeholder: inpAttributes?.placeholder,
4859
5129
  autoComplete: inpAttributes?.autoComplete,
4860
5130
  style: {
@@ -4960,6 +5230,7 @@ const Input = ({
4960
5230
  numberMaxLength,
4961
5231
  backgroundColor,
4962
5232
  errorIconMargin,
5233
+ placeholderColor,
4963
5234
  withZero = false,
4964
5235
  labelMarginBottom,
4965
5236
  regexpErrorMessage,
@@ -5074,7 +5345,9 @@ const Input = ({
5074
5345
  }, []);
5075
5346
  return configStyles.INPUT && /*#__PURE__*/React__default.createElement("div", {
5076
5347
  className: classProps
5077
- }, label ? /*#__PURE__*/React__default.createElement("label", {
5348
+ }, /*#__PURE__*/React__default.createElement("style", null, `.tui-color-placeholder::placeholder {
5349
+ color: ${placeholderColor ?? configStyles.INPUT.colors.placeholder};
5350
+ }`), label ? /*#__PURE__*/React__default.createElement("label", {
5078
5351
  style: {
5079
5352
  maxWidth: '100%',
5080
5353
  color: labelColor ?? configStyles.INPUT.label.color,
@@ -5302,6 +5575,7 @@ Input.propTypes = {
5302
5575
  labelMarginBottom: PropTypes.string,
5303
5576
  borderRight: PropTypes.string,
5304
5577
  placeholder: PropTypes.string,
5578
+ placeholderColor: PropTypes.string,
5305
5579
  phoneDisplay: PropTypes.string,
5306
5580
  autoComplete: PropTypes.string,
5307
5581
  errorDots: PropTypes.bool,
@@ -6853,7 +7127,7 @@ const Stepper = ({
6853
7127
  }, (() => {
6854
7128
  let steppers = [];
6855
7129
  for (let step = 1; step <= stepLength; step++) {
6856
- steppers.push( /*#__PURE__*/React__default.createElement("div", {
7130
+ steppers.push(/*#__PURE__*/React__default.createElement("div", {
6857
7131
  className: classnames(`${step <= activeSteps ? styles$3.activeRing : styles$3.bigRing}`),
6858
7132
  key: step
6859
7133
  }, /*#__PURE__*/React__default.createElement("div", {