@xaypay/tui 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -47,12 +47,10 @@ function rng() {
47
47
  if (!getRandomValues) {
48
48
  // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
49
49
  getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
50
-
51
50
  if (!getRandomValues) {
52
51
  throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
53
52
  }
54
53
  }
55
-
56
54
  return getRandomValues(rnds8);
57
55
  }
58
56
 
@@ -62,11 +60,9 @@ function rng() {
62
60
  */
63
61
 
64
62
  const byteToHex = [];
65
-
66
63
  for (let i = 0; i < 256; ++i) {
67
64
  byteToHex.push((i + 0x100).toString(16).slice(1));
68
65
  }
69
-
70
66
  function unsafeStringify(arr, offset = 0) {
71
67
  // Note: Be careful editing this code! It's been tuned for performance
72
68
  // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
@@ -82,7 +78,6 @@ function v4(options, buf, offset) {
82
78
  if (native.randomUUID && !buf && !options) {
83
79
  return native.randomUUID();
84
80
  }
85
-
86
81
  options = options || {};
87
82
  const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
88
83
 
@@ -91,14 +86,11 @@ function v4(options, buf, offset) {
91
86
 
92
87
  if (buf) {
93
88
  offset = offset || 0;
94
-
95
89
  for (let i = 0; i < 16; ++i) {
96
90
  buf[offset + i] = rnds[i];
97
91
  }
98
-
99
92
  return buf;
100
93
  }
101
-
102
94
  return unsafeStringify(rnds);
103
95
  }
104
96
 
@@ -1128,7 +1120,7 @@ var packageResult = {
1128
1120
  marginLeft: '10px'
1129
1121
  }
1130
1122
 
1131
- // checkedIcon: React.createElement(SvgChecked, { fill: 'green' }),
1123
+ // checkedIcon: React.createElement(SvgChecked, { fill: 'green' }),
1132
1124
  // unCheckedIcon: React.createElement(<SvgUnchecked fill="#E00" />),
1133
1125
  },
1134
1126
  // default properties for <Table /> component
@@ -1261,7 +1253,7 @@ async function getProps() {
1261
1253
  }
1262
1254
 
1263
1255
  var configStylesPromise = getProps();
1264
- const hasOwnerProperty = (object, property) => {
1256
+ const hasOwnerProperty$1 = (object, property) => {
1265
1257
  return Object.prototype.hasOwnProperty.call(object, property);
1266
1258
  };
1267
1259
 
@@ -1307,6 +1299,9 @@ const Button = ({
1307
1299
  const handleMouseLeave = () => {
1308
1300
  setIsHover(false);
1309
1301
  };
1302
+ React.useEffect(() => {
1303
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.BUTTON.className));
1304
+ }, [className]);
1310
1305
  React.useEffect(() => {
1311
1306
  if (!label && !icon) {
1312
1307
  alert('Add icon or label props on Button component');
@@ -1812,6 +1807,9 @@ const File = /*#__PURE__*/React.forwardRef(({
1812
1807
  alert('Please add change prop on File component');
1813
1808
  }
1814
1809
  }, [change]);
1810
+ React.useEffect(() => {
1811
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.FILE.className));
1812
+ }, [className]);
1815
1813
  React.useEffect(() => {
1816
1814
  configStylesPromise.then(data => {
1817
1815
  setClassProps(() => classnames__default["default"](className ?? data.FILE.className));
@@ -2209,9 +2207,9 @@ const Checkbox$1 = ({
2209
2207
  },
2210
2208
  onClick: !innerDisabled && handleChecked ? handleClick : _ => _
2211
2209
  }, innerChecked && (ignoreDisabledForChecked ?? !innerDisabled) ? checkedIcon ? checkedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxChecked, {
2212
- fillColor: checkedColor ?? configStylesPromise.CHECKBOX.checkedColor
2210
+ fillColor: checkedColor
2213
2211
  }) : unCheckedIcon ? unCheckedIcon : /*#__PURE__*/React__default["default"].createElement(SvgCheckboxUnchecked, {
2214
- fillColor: unCheckedColor ?? configStylesPromise.CHECKBOX.unCheckedColor
2212
+ fillColor: unCheckedColor
2215
2213
  }), label && /*#__PURE__*/React__default["default"].createElement("span", {
2216
2214
  style: {
2217
2215
  marginLeft: labelMarginLeft
@@ -2260,12 +2258,12 @@ const SingleCheckbox = ({
2260
2258
  disabled: disabled,
2261
2259
  innerIndex: innerIndex,
2262
2260
  checkedIcon: checkedIcon,
2263
- checkedColor: checkedColor,
2264
2261
  unCheckedIcon: unCheckedIcon,
2265
2262
  handleChecked: handleChecked,
2266
- unCheckedColor: unCheckedColor,
2267
2263
  ignoreDisabledForChecked: ignoreDisabledForChecked,
2268
- labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.labelMarginLeft
2264
+ checkedColor: checkedColor ?? configStyles.CHECKBOX.colors.checked,
2265
+ unCheckedColor: unCheckedColor ?? configStyles.CHECKBOX.colors.unChecked,
2266
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft
2269
2267
  });
2270
2268
  };
2271
2269
  SingleCheckbox.propTypes = {
@@ -2285,15 +2283,14 @@ SingleCheckbox.propTypes = {
2285
2283
  };
2286
2284
 
2287
2285
  function styleInject(css, ref) {
2288
- if ( ref === void 0 ) ref = {};
2286
+ if (ref === void 0) ref = {};
2289
2287
  var insertAt = ref.insertAt;
2290
-
2291
- if (!css || typeof document === 'undefined') { return; }
2292
-
2288
+ if (!css || typeof document === 'undefined') {
2289
+ return;
2290
+ }
2293
2291
  var head = document.head || document.getElementsByTagName('head')[0];
2294
2292
  var style = document.createElement('style');
2295
2293
  style.type = 'text/css';
2296
-
2297
2294
  if (insertAt === 'top') {
2298
2295
  if (head.firstChild) {
2299
2296
  head.insertBefore(style, head.firstChild);
@@ -2303,7 +2300,6 @@ function styleInject(css, ref) {
2303
2300
  } else {
2304
2301
  head.appendChild(style);
2305
2302
  }
2306
-
2307
2303
  if (style.styleSheet) {
2308
2304
  style.styleSheet.cssText = css;
2309
2305
  } else {
@@ -2334,7 +2330,7 @@ const TH = ({
2334
2330
  handleCheckArrowActionHeader
2335
2331
  }) => {
2336
2332
  const handleCheckArrowAction = (e, object, property) => {
2337
- if (hasOwnerProperty(object, property)) {
2333
+ if (hasOwnerProperty$1(object, property)) {
2338
2334
  handleCheckArrowActionHeader(e, object);
2339
2335
  }
2340
2336
  };
@@ -2355,14 +2351,14 @@ const TH = ({
2355
2351
  borderColor: hideBorder ? 'transparent' : '#eeeeee'
2356
2352
  },
2357
2353
  onClick: handleHeaderItemClick,
2358
- className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
2354
+ className: `${hasOwnerProperty$1(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
2359
2355
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2360
2356
  style: {
2361
2357
  display: 'flex',
2362
2358
  alignItems: 'flex-start',
2363
- justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2359
+ justifyContent: hasOwnerProperty$1(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2364
2360
  }
2365
- }, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2361
+ }, hasOwnerProperty$1(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2366
2362
  data: item,
2367
2363
  checked: item.checkBox.checked,
2368
2364
  disabled: item.checkBox.disabled,
@@ -2374,7 +2370,7 @@ const TH = ({
2374
2370
  margin: '0px'
2375
2371
  },
2376
2372
  onClick: e => handleCheckArrowAction(e, item, 'arrowComponent')
2377
- }, item.type === 'show' ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
2373
+ }, item.type === 'show' ? item.content : hasOwnerProperty$1(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
2378
2374
  };
2379
2375
 
2380
2376
  const TD = ({
@@ -2419,7 +2415,7 @@ const TD = ({
2419
2415
  handleBodyActionClick(e, actionData);
2420
2416
  };
2421
2417
  const handleCheckActions = (e, object, property, objectIndex) => {
2422
- if (hasOwnerProperty(object, property)) {
2418
+ if (hasOwnerProperty$1(object, property)) {
2423
2419
  handleBodyAction(e, {
2424
2420
  item: object,
2425
2421
  itemIndex: objectIndex
@@ -2462,7 +2458,7 @@ const TD = ({
2462
2458
  maxWidth: tableColumnMaxWidth,
2463
2459
  whiteSpace: Array.isArray(item) ? 'nowrap' : 'wrap',
2464
2460
  borderColor: hideBorder ? 'transparent' : borderRightColor,
2465
- boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
2461
+ boxShadow: hasOwnerProperty$1(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
2466
2462
  borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
2467
2463
  borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
2468
2464
  borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
@@ -2475,7 +2471,7 @@ const TD = ({
2475
2471
  width: '32px',
2476
2472
  height: '32px',
2477
2473
  marginRight: '10px',
2478
- cursor: hasOwnerProperty(newItem, 'type') ? 'pointer' : 'auto'
2474
+ cursor: hasOwnerProperty$1(newItem, 'type') ? 'pointer' : 'auto'
2479
2475
  },
2480
2476
  id: newItem.id,
2481
2477
  type: newItem.type,
@@ -2497,7 +2493,7 @@ const TD = ({
2497
2493
  width: '32px',
2498
2494
  height: '32px',
2499
2495
  marginRight: '10px',
2500
- cursor: hasOwnerProperty(iT, 'type') ? 'pointer' : 'auto'
2496
+ cursor: hasOwnerProperty$1(iT, 'type') ? 'pointer' : 'auto'
2501
2497
  },
2502
2498
  id: iT.id ? iT.id : '',
2503
2499
  type: iT.type ? iT.type : '',
@@ -2515,9 +2511,9 @@ const TD = ({
2515
2511
  style: {
2516
2512
  display: 'flex',
2517
2513
  alignItems: 'flex-start',
2518
- justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2514
+ justifyContent: hasOwnerProperty$1(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
2519
2515
  }
2520
- }, !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2516
+ }, !hasOwnerProperty$1(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty$1(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty$1(item, 'contentList') && (hasOwnerProperty$1(item, 'closeArrow') || hasOwnerProperty$1(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2521
2517
  id: item.id,
2522
2518
  style: {
2523
2519
  width: '21px',
@@ -2526,7 +2522,7 @@ const TD = ({
2526
2522
  },
2527
2523
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
2528
2524
  className: styles$9['td-span']
2529
- }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2525
+ }, hasOwnerProperty$1(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty$1(item, 'checkBox') && /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
2530
2526
  data: item,
2531
2527
  index: index,
2532
2528
  innerIndex: innerIndex,
@@ -2538,18 +2534,18 @@ const TD = ({
2538
2534
  }), /*#__PURE__*/React__default["default"].createElement("div", {
2539
2535
  style: {
2540
2536
  flexShrink: 11,
2541
- marginLeft: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '0px' : '11px' : hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow') ? '11px' : '0px' : '0px',
2542
- marginRight: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '11px' : '0px' : '0px' : '0px'
2537
+ marginLeft: hasOwnerProperty$1(item, 'contentList') && (!hasOwnerProperty$1(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty$1(item, 'rightArrow') ? item.rightArrow === true ? '0px' : '11px' : hasOwnerProperty$1(item, 'closeArrow') || hasOwnerProperty$1(item, 'openArrow') ? '11px' : '0px' : '0px',
2538
+ marginRight: hasOwnerProperty$1(item, 'contentList') && (!hasOwnerProperty$1(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty$1(item, 'rightArrow') ? item.rightArrow === true ? '11px' : '0px' : '0px' : '0px'
2543
2539
  }
2544
2540
  }, /*#__PURE__*/React__default["default"].createElement("p", {
2545
2541
  style: {
2546
2542
  textAlign: tBodyTextAlign,
2547
2543
  margin: '0px',
2548
- cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto',
2544
+ cursor: hasOwnerProperty$1(item, 'arrowComponent') || hasOwnerProperty$1(item, 'dots') ? 'pointer' : 'auto',
2549
2545
  ...item.props
2550
2546
  },
2551
- onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
2552
- }, 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["default"].createElement("span", {
2547
+ onClick: hasOwnerProperty$1(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty$1(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
2548
+ }, item.content === 0 ? item.content.toString() : item.content ? item.content : hasOwnerProperty$1(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : hasOwnerProperty$1(item, 'dots') ? /*#__PURE__*/React__default["default"].createElement("span", {
2553
2549
  style: {
2554
2550
  display: 'block',
2555
2551
  position: 'relative'
@@ -2570,7 +2566,7 @@ const TD = ({
2570
2566
  backgroundColor: '#FFFFFF',
2571
2567
  boxShadow: '0px 0px 20px 0px #3C393E4D'
2572
2568
  }
2573
- }, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
2569
+ }, hasOwnerProperty$1(item, 'options') && item.options.map((optionItem, optionIndex) => {
2574
2570
  return /*#__PURE__*/React__default["default"].createElement("span", {
2575
2571
  key: `${optionItem.content}_${optionIndex}`,
2576
2572
  className: styles$9['dots-option-item'],
@@ -2595,7 +2591,7 @@ const TD = ({
2595
2591
  },
2596
2592
  title: optionItem.content
2597
2593
  }, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
2598
- }))) : ''), hasOwnerProperty(item, 'contentList') && /*#__PURE__*/React__default["default"].createElement("div", {
2594
+ }))) : ''), hasOwnerProperty$1(item, 'contentList') && /*#__PURE__*/React__default["default"].createElement("div", {
2599
2595
  style: {
2600
2596
  overflow: 'auto',
2601
2597
  marginTop: '10px',
@@ -2644,7 +2640,7 @@ const TD = ({
2644
2640
  onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
2645
2641
  }, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
2646
2642
  }
2647
- }))), !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2643
+ }))), !hasOwnerProperty$1(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty$1(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty$1(item, 'contentList') && (hasOwnerProperty$1(item, 'closeArrow') || hasOwnerProperty$1(item, 'openArrow')) && /*#__PURE__*/React__default["default"].createElement("div", {
2648
2644
  id: item.id,
2649
2645
  style: {
2650
2646
  width: '21px',
@@ -2653,7 +2649,7 @@ const TD = ({
2653
2649
  },
2654
2650
  onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
2655
2651
  className: styles$9['td-span']
2656
- }, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
2652
+ }, hasOwnerProperty$1(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
2657
2653
  };
2658
2654
 
2659
2655
  const SvgUpArrow = ({
@@ -2758,7 +2754,7 @@ const Table = ({
2758
2754
  bodyData.map((item, index) => {
2759
2755
  if (index === data.index) {
2760
2756
  item.map((innerItem, innerIndex) => {
2761
- if (hasOwnerProperty(innerItem, 'arrowComponent')) {
2757
+ if (hasOwnerProperty$1(innerItem, 'arrowComponent')) {
2762
2758
  removeItemIndex = innerIndex;
2763
2759
  }
2764
2760
  });
@@ -2782,7 +2778,7 @@ const Table = ({
2782
2778
  let removeItemIndex;
2783
2779
  let headerWithoutArrow;
2784
2780
  header.map((item, index) => {
2785
- if (hasOwnerProperty(item, 'arrowComponent')) {
2781
+ if (hasOwnerProperty$1(item, 'arrowComponent')) {
2786
2782
  removeItemIndex = index;
2787
2783
  }
2788
2784
  });
@@ -2822,7 +2818,7 @@ const Table = ({
2822
2818
  let checkedItems = [];
2823
2819
  data.map((item, index) => {
2824
2820
  item.map((innerItem, innerIndex) => {
2825
- if (hasOwnerProperty(innerItem, 'checkBox')) {
2821
+ if (hasOwnerProperty$1(innerItem, 'checkBox')) {
2826
2822
  if (!checkedItems[innerIndex]) {
2827
2823
  checkedItems[innerIndex] = [];
2828
2824
  }
@@ -2902,7 +2898,7 @@ const Table = ({
2902
2898
  checkableItemBool = !item.checkBox.checked;
2903
2899
  item.checkBox.checked = !item.checkBox.checked;
2904
2900
  }
2905
- if (hasOwnerProperty(item, 'arrowComponent')) {
2901
+ if (hasOwnerProperty$1(item, 'arrowComponent')) {
2906
2902
  removeItemIndex = index;
2907
2903
  }
2908
2904
  return item;
@@ -2910,7 +2906,7 @@ const Table = ({
2910
2906
  const newUpdatedBody = updatedBody.map((item, index) => {
2911
2907
  return item.map((innerItem, innerIndex) => {
2912
2908
  if (checkableItemIndex === innerIndex) {
2913
- if (!hasOwnerProperty(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
2909
+ if (!hasOwnerProperty$1(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
2914
2910
  innerItem.checkBox.checked = checkableItemBool;
2915
2911
  checkableBodyRowItems.push({
2916
2912
  column: innerIndex,
@@ -2954,7 +2950,7 @@ const Table = ({
2954
2950
  const updatedBody = body.slice().map(item => Object.values(item));
2955
2951
  const newData = updatedBody.map((item, index) => {
2956
2952
  return item.map((innerItem, innerIndex) => {
2957
- if (innerItem.id === data.id && innerItem.content == data.content && hasOwnerProperty(innerItem, 'checkBox')) {
2953
+ if (innerItem.id === data.id && innerItem.content == data.content && hasOwnerProperty$1(innerItem, 'checkBox')) {
2958
2954
  innerItem.checkBox.checked = !innerItem.checkBox.checked;
2959
2955
  handleHeaderCheckedUpdate({
2960
2956
  row: index,
@@ -3011,7 +3007,7 @@ const Table = ({
3011
3007
  const handleCheckArrowAction = (item, rowPosition) => {
3012
3008
  const status = item.status;
3013
3009
  const checkedOpenableRow = body[rowPosition].map(innerItem => {
3014
- if (hasOwnerProperty(innerItem, 'status')) {
3010
+ if (hasOwnerProperty$1(innerItem, 'status')) {
3015
3011
  if (status === 'close') {
3016
3012
  innerItem.status = 'open';
3017
3013
  } else {
@@ -3037,13 +3033,13 @@ const Table = ({
3037
3033
  }
3038
3034
  single = item;
3039
3035
  }
3040
- if (hasOwnerProperty(item, 'status') && !hasOwnerProperty(item, 'arrowComponent')) {
3036
+ if (hasOwnerProperty$1(item, 'status') && !hasOwnerProperty$1(item, 'arrowComponent')) {
3041
3037
  allArrows.push(item);
3042
3038
  }
3043
3039
  return item;
3044
3040
  });
3045
3041
  const checkedOpenableRowArrow = checkedOpenableRow.map(item => {
3046
- if (hasOwnerProperty(item, 'arrowComponent')) {
3042
+ if (hasOwnerProperty$1(item, 'arrowComponent')) {
3047
3043
  if (single && single.status === 'close') {
3048
3044
  item.status = 'close';
3049
3045
  } else if (single && single.status === 'open') {
@@ -3052,7 +3048,7 @@ const Table = ({
3052
3048
  }
3053
3049
  }
3054
3050
  }
3055
- if (hasOwnerProperty(clickableItem, 'theSame') && hasOwnerProperty(item, 'theSame') && clickableItem.theSame === item.theSame) {
3051
+ if (hasOwnerProperty$1(clickableItem, 'theSame') && hasOwnerProperty$1(item, 'theSame') && clickableItem.theSame === item.theSame) {
3056
3052
  item.status = clickableItem.status;
3057
3053
  }
3058
3054
  return item;
@@ -3076,7 +3072,7 @@ const Table = ({
3076
3072
  });
3077
3073
  const checkedOpenableAllRowsBody = body.map(innerItem => {
3078
3074
  return innerItem.map(iElem => {
3079
- if (hasOwnerProperty(iElem, 'status')) {
3075
+ if (hasOwnerProperty$1(iElem, 'status')) {
3080
3076
  if (item.status === 'open') {
3081
3077
  iElem.status = 'open';
3082
3078
  } else {
@@ -3093,7 +3089,7 @@ const Table = ({
3093
3089
  e.stopPropagation();
3094
3090
  const checkBodyMore = body.map((elemItem, elemIndex) => {
3095
3091
  return elemItem.map((elemInnerItem, elemInnerIndex) => {
3096
- if (elemIndex === index && hasOwnerProperty(elemInnerItem, 'dots')) {
3092
+ if (elemIndex === index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
3097
3093
  if (elemInnerIndex === innerIndex) {
3098
3094
  if (item.dotsStatus === 'deActive') {
3099
3095
  elemInnerItem.dotsStatus = 'active';
@@ -3101,7 +3097,7 @@ const Table = ({
3101
3097
  elemInnerItem.dotsStatus = 'deActive';
3102
3098
  }
3103
3099
  }
3104
- } else if (elemIndex !== index && hasOwnerProperty(elemInnerItem, 'dots')) {
3100
+ } else if (elemIndex !== index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
3105
3101
  if (elemInnerIndex === innerIndex) {
3106
3102
  elemInnerItem.dotsStatus = 'deActive';
3107
3103
  }
@@ -3150,7 +3146,7 @@ const Table = ({
3150
3146
  const handleTableClick = () => {
3151
3147
  const checkBodyMore = body.map(elemItem => {
3152
3148
  return elemItem.map(elemInnerItem => {
3153
- if (hasOwnerProperty(elemInnerItem, 'dots')) {
3149
+ if (hasOwnerProperty$1(elemInnerItem, 'dots')) {
3154
3150
  elemInnerItem.dotsStatus = 'deActive';
3155
3151
  }
3156
3152
  return elemInnerItem;
@@ -3167,8 +3163,8 @@ const Table = ({
3167
3163
  const checkForInsertArrow = handleTransformDataForInsertArrow(checkBodyForChackedItems, arrowColumnCount, 'body');
3168
3164
  const insert = checkForInsertArrow.map((item, index) => {
3169
3165
  item.map((innerItem, innerIndex) => {
3170
- if (hasOwnerProperty(innerItem, 'checkBox')) {
3171
- if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
3166
+ if (hasOwnerProperty$1(innerItem, 'checkBox')) {
3167
+ if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
3172
3168
  if (innerItem.checkBox.disabled === true) {
3173
3169
  if (!disabledArray[innerIndex]) {
3174
3170
  disabledArray[innerIndex] = {
@@ -3187,8 +3183,8 @@ const Table = ({
3187
3183
  } else {
3188
3184
  const insert = checkBodyForChackedItems.map((item, index) => {
3189
3185
  item.map((innerItem, innerIndex) => {
3190
- if (hasOwnerProperty(innerItem, 'checkBox')) {
3191
- if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
3186
+ if (hasOwnerProperty$1(innerItem, 'checkBox')) {
3187
+ if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
3192
3188
  if (innerItem.checkBox.disabled === true) {
3193
3189
  if (!disabledArray[innerIndex]) {
3194
3190
  disabledArray[innerIndex] = {
@@ -3218,6 +3214,9 @@ const Table = ({
3218
3214
  setHeader(() => dataHeader);
3219
3215
  }
3220
3216
  }, [dataHeader, arrowColumn, arrowShow, disableArr]);
3217
+ React.useEffect(() => {
3218
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.TABLE.className));
3219
+ }, [className]);
3221
3220
  React.useEffect(() => {
3222
3221
  configStylesPromise.then(data => {
3223
3222
  setClassProps(() => classnames__default["default"](className ?? data.TABLE.className));
@@ -3569,6 +3568,9 @@ const Modal = ({
3569
3568
  }
3570
3569
  }
3571
3570
  }, [selected]);
3571
+ React.useEffect(() => {
3572
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.MODAL.className));
3573
+ }, [className]);
3572
3574
  React.useEffect(() => {
3573
3575
  document.addEventListener('keydown', handleESC, false);
3574
3576
  configStylesPromise.then(data => {
@@ -3706,7 +3708,7 @@ const Modal = ({
3706
3708
  }
3707
3709
  }, innerData && innerData.length > 0 && innerData.map((item, index) => {
3708
3710
  if (select === index) {
3709
- if (!hasOwnerProperty(item, 'url')) {
3711
+ if (!hasOwnerProperty$1(item, 'url')) {
3710
3712
  alert('Please add url property in data prop on each element');
3711
3713
  } else {
3712
3714
  return /*#__PURE__*/React__default["default"].createElement("span", {
@@ -4180,6 +4182,7 @@ const Input = ({
4180
4182
  const [show, setShow] = React.useState(false);
4181
4183
  const [isHover, setIsHover] = React.useState(false);
4182
4184
  const [classProps, setClassProps] = React.useState({});
4185
+ const [innerValue, setInnerValue] = React.useState('');
4183
4186
  const [configStyles, setConfigStyles] = React.useState({});
4184
4187
  const [innerErrorMessage, setInnerErrorMessage] = React.useState('');
4185
4188
  const inpStyles = configStyles.INPUT && {
@@ -4233,6 +4236,13 @@ const Input = ({
4233
4236
  !regexp.test(value) ? setInnerErrorMessage(regexpErrorMessage) : setInnerErrorMessage('');
4234
4237
  }
4235
4238
  }, [type, regexp, errorMessage, regexpErrorMessage]);
4239
+ React.useEffect(() => {
4240
+ const val = typeof value === 'number' ? value.toString() : value;
4241
+ setInnerValue(() => val);
4242
+ }, [value]);
4243
+ React.useEffect(() => {
4244
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']));
4245
+ }, [className]);
4236
4246
  React.useEffect(() => {
4237
4247
  configStylesPromise.then(data => {
4238
4248
  setClassProps(() => classnames__default["default"](className ?? data.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']));
@@ -4284,7 +4294,7 @@ const Input = ({
4284
4294
  }
4285
4295
  }, type === 'password' ? show ? leftIcon[1] : leftIcon[0] : leftIcon[0]) : '', type === 'tel' ? /*#__PURE__*/React__default["default"].createElement(TelInput, {
4286
4296
  type: type,
4287
- value: value,
4297
+ value: innerValue,
4288
4298
  inputChange: change,
4289
4299
  isHover: isHover,
4290
4300
  disabled: disabled,
@@ -4299,8 +4309,8 @@ const Input = ({
4299
4309
  telBorderRightColor: telBorderRightColor ?? configStyles.INPUT.tel.borderRight.color,
4300
4310
  telBorderRightColorHover: telBorderRightColorHover ?? configStyles.INPUT.tel.borderRight.colors.hover
4301
4311
  }) : type === 'number' ? /*#__PURE__*/React__default["default"].createElement(NumberInput, {
4302
- value: value,
4303
4312
  dots: withoutDot,
4313
+ value: innerValue,
4304
4314
  float: floatToFix,
4305
4315
  disabled: disabled,
4306
4316
  inputChange: change,
@@ -4313,7 +4323,7 @@ const Input = ({
4313
4323
  }) : type === 'password' ? /*#__PURE__*/React__default["default"].createElement(PassInput, {
4314
4324
  show: show,
4315
4325
  type: type,
4316
- value: value,
4326
+ value: innerValue,
4317
4327
  disabled: disabled,
4318
4328
  inputChange: change,
4319
4329
  maxLength: maxLength,
@@ -4321,7 +4331,7 @@ const Input = ({
4321
4331
  inpAttributes: inpAttributes,
4322
4332
  radius: radius ?? configStyles.INPUT.radius
4323
4333
  }) : /*#__PURE__*/React__default["default"].createElement(TextInput, {
4324
- value: value,
4334
+ value: innerValue,
4325
4335
  disabled: disabled,
4326
4336
  inputChange: change,
4327
4337
  inpStyles: inpStyles,
@@ -4426,7 +4436,31 @@ Input.propTypes = {
4426
4436
  leftIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
4427
4437
  rightIcon: PropTypes__default["default"].arrayOf(PropTypes__default["default"].element),
4428
4438
  type: PropTypes__default["default"].oneOf(Object.values(InputTypes)),
4429
- value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].object])
4439
+ value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number, PropTypes__default["default"].object])
4440
+ };
4441
+
4442
+ const hasOwnerProperty = (object, property) => {
4443
+ return Object.prototype.hasOwnProperty.call(object, property);
4444
+ };
4445
+ const handleUtilsMouseEnterLeave = (e, behaviourStyle) => {
4446
+ if (typeof behaviourStyle !== 'object' || behaviourStyle === null || behaviourStyle === undefined) {
4447
+ alert('Please set a second param of handleUtilsMouseEnter function as valid object');
4448
+ return;
4449
+ }
4450
+ if (!hasOwnerProperty(e, 'target')) {
4451
+ alert('Please set a valid object like DOM event');
4452
+ return;
4453
+ }
4454
+ const existStyle = e.target.style;
4455
+ if (typeof existStyle !== 'object' || existStyle === null) {
4456
+ alert('Please set a valid style object in DOM event tergat');
4457
+ return;
4458
+ }
4459
+ for (const property in behaviourStyle) {
4460
+ if (existStyle[property]) {
4461
+ existStyle[property] = behaviourStyle[property];
4462
+ }
4463
+ }
4430
4464
  };
4431
4465
 
4432
4466
  const RadioDirectionMode = {
@@ -4468,6 +4502,18 @@ const Radio = ({
4468
4502
  });
4469
4503
  const handleMouseEnter = (id, elemID) => {
4470
4504
  const elem = document.querySelector(`#${elemID}`);
4505
+ // const newStyles = {
4506
+ // backgroundColor:
4507
+ // id === innerSelectedData?.id
4508
+ // ? borderActiveColor
4509
+ // ? borderActiveColor
4510
+ // : configStyles.RADIO.border.activeColor
4511
+ // : borderColor
4512
+ // ? borderColor
4513
+ // : configStyles.RADIO.border.color
4514
+ // }
4515
+ // handleUtilsMouseEnterLeave(e, newStyles);
4516
+
4471
4517
  elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
4472
4518
  };
4473
4519
  const handleMouseLeave = (id, elemID) => {
@@ -4520,6 +4566,9 @@ const Radio = ({
4520
4566
  });
4521
4567
  }
4522
4568
  }, [keyNames]);
4569
+ React.useEffect(() => {
4570
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.RADIO.className));
4571
+ }, [className]);
4523
4572
  React.useEffect(() => {
4524
4573
  configStylesPromise.then(data => {
4525
4574
  setClassProps(() => classnames__default["default"](className ?? data.RADIO.className));
@@ -4713,7 +4762,7 @@ const Select = ({
4713
4762
  onChange({});
4714
4763
  setNewSelected([]);
4715
4764
  const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
4716
- if (hasOwnerProperty(item, 'checked')) {
4765
+ if (hasOwnerProperty$1(item, 'checked')) {
4717
4766
  item.checked = false;
4718
4767
  }
4719
4768
  return item;
@@ -4763,7 +4812,7 @@ const Select = ({
4763
4812
  };
4764
4813
  const isObjectEmpty = obj => {
4765
4814
  for (var key in obj) {
4766
- if (hasOwnerProperty(obj, key)) {
4815
+ if (hasOwnerProperty$1(obj, key)) {
4767
4816
  return false;
4768
4817
  }
4769
4818
  }
@@ -4807,6 +4856,9 @@ const Select = ({
4807
4856
  setExistOptions(modifiedOptions);
4808
4857
  }
4809
4858
  }, [options, multiple, selected, selected?.length]);
4859
+ React.useEffect(() => {
4860
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.SELECT.className));
4861
+ }, [className]);
4810
4862
  React.useEffect(() => {
4811
4863
  configStylesPromise.then(data => {
4812
4864
  setClassProps(() => classnames__default["default"](className ?? data.SELECT.className));
@@ -5393,6 +5445,9 @@ const Toaster = ({
5393
5445
  const handleToasterClick = e => {
5394
5446
  e.stopPropagation();
5395
5447
  };
5448
+ React.useEffect(() => {
5449
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.TOASTER.className));
5450
+ }, [className]);
5396
5451
  React.useEffect(() => {
5397
5452
  configStylesPromise.then(data => {
5398
5453
  setClassProps(() => classnames__default["default"](className ?? data.TOASTER.className));
@@ -5469,6 +5524,9 @@ const Tooltip = ({
5469
5524
  tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
5470
5525
  tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
5471
5526
  }, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
5527
+ React.useEffect(() => {
5528
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.TOOLTIP.className));
5529
+ }, [className]);
5472
5530
  React.useEffect(() => {
5473
5531
  configStylesPromise.then(data => {
5474
5532
  setClassProps(() => classnames__default["default"](styles$4['tooltip-block'], className ?? data.TOOLTIP.className));
@@ -5620,6 +5678,9 @@ const Captcha = ({
5620
5678
  setRangeNumber(Math.min(roundedRange, 100));
5621
5679
  }
5622
5680
  }, [range, getRange]);
5681
+ React.useEffect(() => {
5682
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.CAPTCHA.className));
5683
+ }, [className]);
5623
5684
  React.useEffect(() => {
5624
5685
  configStylesPromise.then(data => {
5625
5686
  setClassProps(() => classnames__default["default"](className ?? data.CAPTCHA.className));
@@ -5735,6 +5796,9 @@ const Stepper = ({
5735
5796
  }) => {
5736
5797
  const [classProps, setClassProps] = React.useState({});
5737
5798
  const [configStyles, setConfigStyles] = React.useState({});
5799
+ React.useEffect(() => {
5800
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
5801
+ }, [className]);
5738
5802
  React.useEffect(() => {
5739
5803
  configStylesPromise.then(data => {
5740
5804
  setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
@@ -5828,6 +5892,9 @@ const Checkbox = ({
5828
5892
  });
5829
5893
  }
5830
5894
  }, [keyNames]);
5895
+ React.useEffect(() => {
5896
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.CHECKBOX.className));
5897
+ }, [className]);
5831
5898
  React.useEffect(() => {
5832
5899
  configStylesPromise.then(data => {
5833
5900
  setClassProps(() => classnames__default["default"](className ?? data.CHECKBOX.className));
@@ -5861,12 +5928,12 @@ const Checkbox = ({
5861
5928
  label: item[innerKeyNames.label],
5862
5929
  checked: item[innerKeyNames.checked],
5863
5930
  disabled: item[innerKeyNames.disabled],
5864
- ignoreDisabledForChecked: item[innerKeyNames.ignoreDisabledForChecked],
5865
- labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft,
5931
+ checkedIcon: checkedIcon ?? configStyles.CHECKBOX.checkedIcon,
5866
5932
  checkedColor: checkedColor ?? configStyles.CHECKBOX.colors.checked,
5933
+ unCheckedIcon: unCheckedIcon ?? configStyles.CHECKBOX.unCheckedIcon,
5934
+ ignoreDisabledForChecked: item[innerKeyNames.ignoreDisabledForChecked],
5867
5935
  unCheckedColor: unCheckedColor ?? configStyles.CHECKBOX.colors.unChecked,
5868
- checkedIcon: checkedIcon ?? configStyles.CHECKBOX.checkedIcon,
5869
- unCheckedIcon: unCheckedIcon ?? configStyles.CHECKBOX.unCheckedIcon
5936
+ labelMarginLeft: labelMarginLeft ?? configStyles.CHECKBOX.label.marginLeft
5870
5937
  }));
5871
5938
  }));
5872
5939
  };
@@ -5981,6 +6048,9 @@ const Textarea = ({
5981
6048
  }
5982
6049
  setInnerValue(() => value);
5983
6050
  }, [value, errorMessage]);
6051
+ React.useEffect(() => {
6052
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.TEXTAREA.className));
6053
+ }, [className]);
5984
6054
  React.useEffect(() => {
5985
6055
  configStylesPromise.then(data => {
5986
6056
  setClassProps(() => classnames__default["default"](className ?? data.TEXTAREA.className));
@@ -6187,6 +6257,9 @@ const Typography = ({
6187
6257
  setValidVariant(true);
6188
6258
  }
6189
6259
  }, [variant]);
6260
+ React.useEffect(() => {
6261
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.TYPOGRAPHY.className));
6262
+ }, [className]);
6190
6263
  React.useEffect(() => {
6191
6264
  configStylesPromise.then(data => {
6192
6265
  setClassProps(() => classnames__default["default"](className ?? data.TYPOGRAPHY.className));
@@ -6319,6 +6392,25 @@ const Pagination = ({
6319
6392
  const [configStyles, setConfigStyles] = React.useState({});
6320
6393
  const [currentPageNumber, setCurrentPage] = React.useState(currentPage);
6321
6394
  const [currentTotalCount, setcurrentTotalCount] = React.useState(totalCount);
6395
+ React.useEffect(() => {
6396
+ configStylesPromise.then(data => {
6397
+ setClassProps(() => classnames__default["default"](
6398
+ // TODO: check and remove pagination-bar-rem class
6399
+ styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
6400
+ setConfigStyles(() => {
6401
+ return {
6402
+ ...data
6403
+ };
6404
+ });
6405
+ }, error => {
6406
+ console.error(error);
6407
+ });
6408
+ }, []);
6409
+ React.useEffect(() => {
6410
+ className && setClassProps(() => classnames__default["default"](
6411
+ // TODO: check and remove pagination-bar-rem class
6412
+ styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
6413
+ }, [className]);
6322
6414
  React.useEffect(() => {
6323
6415
  setcurrentTotalCount(totalCount);
6324
6416
  }, [totalCount]);
@@ -6388,20 +6480,6 @@ const Pagination = ({
6388
6480
  }
6389
6481
  };
6390
6482
  let lastPage = paginationRange[paginationRange.length - 1];
6391
- React.useEffect(() => {
6392
- configStylesPromise.then(data => {
6393
- setClassProps(() => classnames__default["default"](
6394
- // TODO: check and remove pagination-bar-rem class
6395
- styles$1.list, className ?? data.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
6396
- setConfigStyles(() => {
6397
- return {
6398
- ...data
6399
- };
6400
- });
6401
- }, error => {
6402
- console.error(error);
6403
- });
6404
- }, []);
6405
6483
  return configStyles.PAGINATION && /*#__PURE__*/React__default["default"].createElement("div", {
6406
6484
  style: {
6407
6485
  display: 'flex',
@@ -6595,12 +6673,18 @@ const Autocomplete = ({
6595
6673
  setIsHover(false);
6596
6674
  };
6597
6675
  const handleRowMouseEnter = e => {
6598
- e.target.style.color = contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.hover;
6599
- e.target.style.backgroundColor = contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover;
6676
+ const newStyles = {
6677
+ color: contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.hover,
6678
+ backgroundColor: contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover
6679
+ };
6680
+ handleUtilsMouseEnterLeave(e, newStyles);
6600
6681
  };
6601
6682
  const handleRowMouseLeave = e => {
6602
- e.target.style.color = contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color;
6603
- e.target.style.backgroundColor = contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background;
6683
+ const newStyles = {
6684
+ color: contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color,
6685
+ backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background
6686
+ };
6687
+ handleUtilsMouseEnterLeave(e, newStyles);
6604
6688
  };
6605
6689
  const handleFocus = () => {
6606
6690
  setIsFocus(true);
@@ -6692,7 +6776,7 @@ const Autocomplete = ({
6692
6776
  alert('Please add options prop');
6693
6777
  }
6694
6778
  options && options.length > 0 && options.map(item => {
6695
- if (!hasOwnerProperty(item, keyNames.name)) {
6779
+ if (!hasOwnerProperty$1(item, keyNames.name)) {
6696
6780
  alert(`Please add ${keyNames.name} property in items of options array`);
6697
6781
  }
6698
6782
  });
@@ -6718,6 +6802,9 @@ const Autocomplete = ({
6718
6802
  React.useEffect(() => {
6719
6803
  setInnerError(errorMessage);
6720
6804
  }, [errorMessage]);
6805
+ React.useEffect(() => {
6806
+ className && setClassProps(() => classnames__default["default"](className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
6807
+ }, [className]);
6721
6808
  React.useEffect(() => {
6722
6809
  configStylesPromise.then(data => {
6723
6810
  setClassProps(() => classnames__default["default"](className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));