@xaypay/tui 0.2.3 → 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/README.md +0 -38
- package/dist/index.es.js +155 -68
- package/dist/index.js +155 -68
- package/package.json +6 -23
- package/rollup.config.mjs +4 -4
- package/LICENSE +0 -21
- package/cli-command.js +0 -3
- package/vite.config.mjs +0 -50
package/dist/index.es.js
CHANGED
|
@@ -16,12 +16,10 @@ function rng() {
|
|
|
16
16
|
if (!getRandomValues) {
|
|
17
17
|
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
18
18
|
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
19
|
-
|
|
20
19
|
if (!getRandomValues) {
|
|
21
20
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
|
-
|
|
25
23
|
return getRandomValues(rnds8);
|
|
26
24
|
}
|
|
27
25
|
|
|
@@ -31,11 +29,9 @@ function rng() {
|
|
|
31
29
|
*/
|
|
32
30
|
|
|
33
31
|
const byteToHex = [];
|
|
34
|
-
|
|
35
32
|
for (let i = 0; i < 256; ++i) {
|
|
36
33
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
37
34
|
}
|
|
38
|
-
|
|
39
35
|
function unsafeStringify(arr, offset = 0) {
|
|
40
36
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
41
37
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
@@ -51,7 +47,6 @@ function v4(options, buf, offset) {
|
|
|
51
47
|
if (native.randomUUID && !buf && !options) {
|
|
52
48
|
return native.randomUUID();
|
|
53
49
|
}
|
|
54
|
-
|
|
55
50
|
options = options || {};
|
|
56
51
|
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
57
52
|
|
|
@@ -60,25 +55,27 @@ function v4(options, buf, offset) {
|
|
|
60
55
|
|
|
61
56
|
if (buf) {
|
|
62
57
|
offset = offset || 0;
|
|
63
|
-
|
|
64
58
|
for (let i = 0; i < 16; ++i) {
|
|
65
59
|
buf[offset + i] = rnds[i];
|
|
66
60
|
}
|
|
67
|
-
|
|
68
61
|
return buf;
|
|
69
62
|
}
|
|
70
|
-
|
|
71
63
|
return unsafeStringify(rnds);
|
|
72
64
|
}
|
|
73
65
|
|
|
74
66
|
function _extends() {
|
|
75
|
-
|
|
76
|
-
for (var
|
|
77
|
-
var
|
|
78
|
-
for (var
|
|
67
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
68
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
69
|
+
var source = arguments[i];
|
|
70
|
+
for (var key in source) {
|
|
71
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
72
|
+
target[key] = source[key];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
79
75
|
}
|
|
80
|
-
return
|
|
81
|
-
}
|
|
76
|
+
return target;
|
|
77
|
+
};
|
|
78
|
+
return _extends.apply(this, arguments);
|
|
82
79
|
}
|
|
83
80
|
|
|
84
81
|
const SvgHeic = ({
|
|
@@ -1225,7 +1222,7 @@ async function getProps() {
|
|
|
1225
1222
|
}
|
|
1226
1223
|
|
|
1227
1224
|
var configStylesPromise = getProps();
|
|
1228
|
-
const hasOwnerProperty = (object, property) => {
|
|
1225
|
+
const hasOwnerProperty$1 = (object, property) => {
|
|
1229
1226
|
return Object.prototype.hasOwnProperty.call(object, property);
|
|
1230
1227
|
};
|
|
1231
1228
|
|
|
@@ -1271,6 +1268,9 @@ const Button = ({
|
|
|
1271
1268
|
const handleMouseLeave = () => {
|
|
1272
1269
|
setIsHover(false);
|
|
1273
1270
|
};
|
|
1271
|
+
useEffect(() => {
|
|
1272
|
+
className && setClassProps(() => classnames(className ?? configStyles.BUTTON.className));
|
|
1273
|
+
}, [className]);
|
|
1274
1274
|
useEffect(() => {
|
|
1275
1275
|
if (!label && !icon) {
|
|
1276
1276
|
alert('Add icon or label props on Button component');
|
|
@@ -1776,6 +1776,9 @@ const File = /*#__PURE__*/forwardRef(({
|
|
|
1776
1776
|
alert('Please add change prop on File component');
|
|
1777
1777
|
}
|
|
1778
1778
|
}, [change]);
|
|
1779
|
+
useEffect(() => {
|
|
1780
|
+
className && setClassProps(() => classnames(className ?? configStyles.FILE.className));
|
|
1781
|
+
}, [className]);
|
|
1779
1782
|
useEffect(() => {
|
|
1780
1783
|
configStylesPromise.then(data => {
|
|
1781
1784
|
setClassProps(() => classnames(className ?? data.FILE.className));
|
|
@@ -2249,15 +2252,14 @@ SingleCheckbox.propTypes = {
|
|
|
2249
2252
|
};
|
|
2250
2253
|
|
|
2251
2254
|
function styleInject(css, ref) {
|
|
2252
|
-
if (
|
|
2255
|
+
if (ref === void 0) ref = {};
|
|
2253
2256
|
var insertAt = ref.insertAt;
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
+
if (!css || typeof document === 'undefined') {
|
|
2258
|
+
return;
|
|
2259
|
+
}
|
|
2257
2260
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
2258
2261
|
var style = document.createElement('style');
|
|
2259
2262
|
style.type = 'text/css';
|
|
2260
|
-
|
|
2261
2263
|
if (insertAt === 'top') {
|
|
2262
2264
|
if (head.firstChild) {
|
|
2263
2265
|
head.insertBefore(style, head.firstChild);
|
|
@@ -2267,7 +2269,6 @@ function styleInject(css, ref) {
|
|
|
2267
2269
|
} else {
|
|
2268
2270
|
head.appendChild(style);
|
|
2269
2271
|
}
|
|
2270
|
-
|
|
2271
2272
|
if (style.styleSheet) {
|
|
2272
2273
|
style.styleSheet.cssText = css;
|
|
2273
2274
|
} else {
|
|
@@ -2298,7 +2299,7 @@ const TH = ({
|
|
|
2298
2299
|
handleCheckArrowActionHeader
|
|
2299
2300
|
}) => {
|
|
2300
2301
|
const handleCheckArrowAction = (e, object, property) => {
|
|
2301
|
-
if (hasOwnerProperty(object, property)) {
|
|
2302
|
+
if (hasOwnerProperty$1(object, property)) {
|
|
2302
2303
|
handleCheckArrowActionHeader(e, object);
|
|
2303
2304
|
}
|
|
2304
2305
|
};
|
|
@@ -2319,14 +2320,14 @@ const TH = ({
|
|
|
2319
2320
|
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
2320
2321
|
},
|
|
2321
2322
|
onClick: handleHeaderItemClick,
|
|
2322
|
-
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
|
|
2323
|
+
className: `${hasOwnerProperty$1(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
|
|
2323
2324
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2324
2325
|
style: {
|
|
2325
2326
|
display: 'flex',
|
|
2326
2327
|
alignItems: 'flex-start',
|
|
2327
|
-
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
2328
|
+
justifyContent: hasOwnerProperty$1(item, 'checkBox') ? 'space-between' : tHeadTextAlign ? tHeadTextAlign === 'left' ? 'flex-start' : tHeadTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
2328
2329
|
}
|
|
2329
|
-
}, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/React__default.createElement(SingleCheckbox, {
|
|
2330
|
+
}, hasOwnerProperty$1(item, 'checkBox') ? /*#__PURE__*/React__default.createElement(SingleCheckbox, {
|
|
2330
2331
|
data: item,
|
|
2331
2332
|
checked: item.checkBox.checked,
|
|
2332
2333
|
disabled: item.checkBox.disabled,
|
|
@@ -2338,7 +2339,7 @@ const TH = ({
|
|
|
2338
2339
|
margin: '0px'
|
|
2339
2340
|
},
|
|
2340
2341
|
onClick: e => handleCheckArrowAction(e, item, 'arrowComponent')
|
|
2341
|
-
}, item.type === 'show' ? item.content : hasOwnerProperty(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
|
|
2342
|
+
}, item.type === 'show' ? item.content : hasOwnerProperty$1(item, 'arrowComponent') ? item.status === 'close' ? item.closeArrow : item.openArrow : '')));
|
|
2342
2343
|
};
|
|
2343
2344
|
|
|
2344
2345
|
const TD = ({
|
|
@@ -2383,7 +2384,7 @@ const TD = ({
|
|
|
2383
2384
|
handleBodyActionClick(e, actionData);
|
|
2384
2385
|
};
|
|
2385
2386
|
const handleCheckActions = (e, object, property, objectIndex) => {
|
|
2386
|
-
if (hasOwnerProperty(object, property)) {
|
|
2387
|
+
if (hasOwnerProperty$1(object, property)) {
|
|
2387
2388
|
handleBodyAction(e, {
|
|
2388
2389
|
item: object,
|
|
2389
2390
|
itemIndex: objectIndex
|
|
@@ -2426,7 +2427,7 @@ const TD = ({
|
|
|
2426
2427
|
maxWidth: tableColumnMaxWidth,
|
|
2427
2428
|
whiteSpace: Array.isArray(item) ? 'nowrap' : 'wrap',
|
|
2428
2429
|
borderColor: hideBorder ? 'transparent' : borderRightColor,
|
|
2429
|
-
boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
|
|
2430
|
+
boxShadow: hasOwnerProperty$1(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
|
|
2430
2431
|
borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
2431
2432
|
borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
2432
2433
|
borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
|
|
@@ -2439,7 +2440,7 @@ const TD = ({
|
|
|
2439
2440
|
width: '32px',
|
|
2440
2441
|
height: '32px',
|
|
2441
2442
|
marginRight: '10px',
|
|
2442
|
-
cursor: hasOwnerProperty(newItem, 'type') ? 'pointer' : 'auto'
|
|
2443
|
+
cursor: hasOwnerProperty$1(newItem, 'type') ? 'pointer' : 'auto'
|
|
2443
2444
|
},
|
|
2444
2445
|
id: newItem.id,
|
|
2445
2446
|
type: newItem.type,
|
|
@@ -2461,7 +2462,7 @@ const TD = ({
|
|
|
2461
2462
|
width: '32px',
|
|
2462
2463
|
height: '32px',
|
|
2463
2464
|
marginRight: '10px',
|
|
2464
|
-
cursor: hasOwnerProperty(iT, 'type') ? 'pointer' : 'auto'
|
|
2465
|
+
cursor: hasOwnerProperty$1(iT, 'type') ? 'pointer' : 'auto'
|
|
2465
2466
|
},
|
|
2466
2467
|
id: iT.id ? iT.id : '',
|
|
2467
2468
|
type: iT.type ? iT.type : '',
|
|
@@ -2479,9 +2480,9 @@ const TD = ({
|
|
|
2479
2480
|
style: {
|
|
2480
2481
|
display: 'flex',
|
|
2481
2482
|
alignItems: 'flex-start',
|
|
2482
|
-
justifyContent: hasOwnerProperty(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
2483
|
+
justifyContent: hasOwnerProperty$1(item, 'checkBox') ? 'space-between' : tBodyTextAlign ? tBodyTextAlign === 'left' ? 'flex-start' : tBodyTextAlign === 'right' ? 'flex-end' : 'center' : 'center'
|
|
2483
2484
|
}
|
|
2484
|
-
}, !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && (!hasOwnerProperty(item, 'rightArrow') || item.rightArrow !== true) ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default.createElement("div", {
|
|
2485
|
+
}, !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.createElement("div", {
|
|
2485
2486
|
id: item.id,
|
|
2486
2487
|
style: {
|
|
2487
2488
|
width: '21px',
|
|
@@ -2490,7 +2491,7 @@ const TD = ({
|
|
|
2490
2491
|
},
|
|
2491
2492
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
2492
2493
|
className: styles$9['td-span']
|
|
2493
|
-
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty(item, 'checkBox') && /*#__PURE__*/React__default.createElement(SingleCheckbox, {
|
|
2494
|
+
}, hasOwnerProperty$1(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '', hasOwnerProperty$1(item, 'checkBox') && /*#__PURE__*/React__default.createElement(SingleCheckbox, {
|
|
2494
2495
|
data: item,
|
|
2495
2496
|
index: index,
|
|
2496
2497
|
innerIndex: innerIndex,
|
|
@@ -2502,18 +2503,18 @@ const TD = ({
|
|
|
2502
2503
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2503
2504
|
style: {
|
|
2504
2505
|
flexShrink: 11,
|
|
2505
|
-
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',
|
|
2506
|
-
marginRight: hasOwnerProperty(item, 'contentList') && (!hasOwnerProperty(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty(item, 'rightArrow') ? item.rightArrow === true ? '11px' : '0px' : '0px' : '0px'
|
|
2506
|
+
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',
|
|
2507
|
+
marginRight: hasOwnerProperty$1(item, 'contentList') && (!hasOwnerProperty$1(item, 'hideArrow') || item.hideArrow !== true) ? hasOwnerProperty$1(item, 'rightArrow') ? item.rightArrow === true ? '11px' : '0px' : '0px' : '0px'
|
|
2507
2508
|
}
|
|
2508
2509
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
2509
2510
|
style: {
|
|
2510
2511
|
textAlign: tBodyTextAlign,
|
|
2511
2512
|
margin: '0px',
|
|
2512
|
-
cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto',
|
|
2513
|
+
cursor: hasOwnerProperty$1(item, 'arrowComponent') || hasOwnerProperty$1(item, 'dots') ? 'pointer' : 'auto',
|
|
2513
2514
|
...item.props
|
|
2514
2515
|
},
|
|
2515
|
-
onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
|
|
2516
|
-
}, 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", {
|
|
2516
|
+
onClick: hasOwnerProperty$1(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty$1(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
|
|
2517
|
+
}, 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.createElement("span", {
|
|
2517
2518
|
style: {
|
|
2518
2519
|
display: 'block',
|
|
2519
2520
|
position: 'relative'
|
|
@@ -2534,7 +2535,7 @@ const TD = ({
|
|
|
2534
2535
|
backgroundColor: '#FFFFFF',
|
|
2535
2536
|
boxShadow: '0px 0px 20px 0px #3C393E4D'
|
|
2536
2537
|
}
|
|
2537
|
-
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
2538
|
+
}, hasOwnerProperty$1(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
2538
2539
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
2539
2540
|
key: `${optionItem.content}_${optionIndex}`,
|
|
2540
2541
|
className: styles$9['dots-option-item'],
|
|
@@ -2559,7 +2560,7 @@ const TD = ({
|
|
|
2559
2560
|
},
|
|
2560
2561
|
title: optionItem.content
|
|
2561
2562
|
}, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
|
|
2562
|
-
}))) : ''), hasOwnerProperty(item, 'contentList') && /*#__PURE__*/React__default.createElement("div", {
|
|
2563
|
+
}))) : ''), hasOwnerProperty$1(item, 'contentList') && /*#__PURE__*/React__default.createElement("div", {
|
|
2563
2564
|
style: {
|
|
2564
2565
|
overflow: 'auto',
|
|
2565
2566
|
marginTop: '10px',
|
|
@@ -2608,7 +2609,7 @@ const TD = ({
|
|
|
2608
2609
|
onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
|
|
2609
2610
|
}, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
|
|
2610
2611
|
}
|
|
2611
|
-
}))), !hasOwnerProperty(item, 'hideArrow') && item.hideArrow !== false && hasOwnerProperty(item, 'rightArrow') && item.rightArrow === true ? hasOwnerProperty(item, 'contentList') && (hasOwnerProperty(item, 'closeArrow') || hasOwnerProperty(item, 'openArrow')) && /*#__PURE__*/React__default.createElement("div", {
|
|
2612
|
+
}))), !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.createElement("div", {
|
|
2612
2613
|
id: item.id,
|
|
2613
2614
|
style: {
|
|
2614
2615
|
width: '21px',
|
|
@@ -2617,7 +2618,7 @@ const TD = ({
|
|
|
2617
2618
|
},
|
|
2618
2619
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
2619
2620
|
className: styles$9['td-span']
|
|
2620
|
-
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
2621
|
+
}, hasOwnerProperty$1(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
2621
2622
|
};
|
|
2622
2623
|
|
|
2623
2624
|
const SvgUpArrow = ({
|
|
@@ -2722,7 +2723,7 @@ const Table = ({
|
|
|
2722
2723
|
bodyData.map((item, index) => {
|
|
2723
2724
|
if (index === data.index) {
|
|
2724
2725
|
item.map((innerItem, innerIndex) => {
|
|
2725
|
-
if (hasOwnerProperty(innerItem, 'arrowComponent')) {
|
|
2726
|
+
if (hasOwnerProperty$1(innerItem, 'arrowComponent')) {
|
|
2726
2727
|
removeItemIndex = innerIndex;
|
|
2727
2728
|
}
|
|
2728
2729
|
});
|
|
@@ -2746,7 +2747,7 @@ const Table = ({
|
|
|
2746
2747
|
let removeItemIndex;
|
|
2747
2748
|
let headerWithoutArrow;
|
|
2748
2749
|
header.map((item, index) => {
|
|
2749
|
-
if (hasOwnerProperty(item, 'arrowComponent')) {
|
|
2750
|
+
if (hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
2750
2751
|
removeItemIndex = index;
|
|
2751
2752
|
}
|
|
2752
2753
|
});
|
|
@@ -2786,7 +2787,7 @@ const Table = ({
|
|
|
2786
2787
|
let checkedItems = [];
|
|
2787
2788
|
data.map((item, index) => {
|
|
2788
2789
|
item.map((innerItem, innerIndex) => {
|
|
2789
|
-
if (hasOwnerProperty(innerItem, 'checkBox')) {
|
|
2790
|
+
if (hasOwnerProperty$1(innerItem, 'checkBox')) {
|
|
2790
2791
|
if (!checkedItems[innerIndex]) {
|
|
2791
2792
|
checkedItems[innerIndex] = [];
|
|
2792
2793
|
}
|
|
@@ -2866,7 +2867,7 @@ const Table = ({
|
|
|
2866
2867
|
checkableItemBool = !item.checkBox.checked;
|
|
2867
2868
|
item.checkBox.checked = !item.checkBox.checked;
|
|
2868
2869
|
}
|
|
2869
|
-
if (hasOwnerProperty(item, 'arrowComponent')) {
|
|
2870
|
+
if (hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
2870
2871
|
removeItemIndex = index;
|
|
2871
2872
|
}
|
|
2872
2873
|
return item;
|
|
@@ -2874,7 +2875,7 @@ const Table = ({
|
|
|
2874
2875
|
const newUpdatedBody = updatedBody.map((item, index) => {
|
|
2875
2876
|
return item.map((innerItem, innerIndex) => {
|
|
2876
2877
|
if (checkableItemIndex === innerIndex) {
|
|
2877
|
-
if (!hasOwnerProperty(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
|
|
2878
|
+
if (!hasOwnerProperty$1(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
|
|
2878
2879
|
innerItem.checkBox.checked = checkableItemBool;
|
|
2879
2880
|
checkableBodyRowItems.push({
|
|
2880
2881
|
column: innerIndex,
|
|
@@ -2918,7 +2919,7 @@ const Table = ({
|
|
|
2918
2919
|
const updatedBody = body.slice().map(item => Object.values(item));
|
|
2919
2920
|
const newData = updatedBody.map((item, index) => {
|
|
2920
2921
|
return item.map((innerItem, innerIndex) => {
|
|
2921
|
-
if (innerItem.id === data.id && innerItem.content == data.content && hasOwnerProperty(innerItem, 'checkBox')) {
|
|
2922
|
+
if (innerItem.id === data.id && innerItem.content == data.content && hasOwnerProperty$1(innerItem, 'checkBox')) {
|
|
2922
2923
|
innerItem.checkBox.checked = !innerItem.checkBox.checked;
|
|
2923
2924
|
handleHeaderCheckedUpdate({
|
|
2924
2925
|
row: index,
|
|
@@ -2975,7 +2976,7 @@ const Table = ({
|
|
|
2975
2976
|
const handleCheckArrowAction = (item, rowPosition) => {
|
|
2976
2977
|
const status = item.status;
|
|
2977
2978
|
const checkedOpenableRow = body[rowPosition].map(innerItem => {
|
|
2978
|
-
if (hasOwnerProperty(innerItem, 'status')) {
|
|
2979
|
+
if (hasOwnerProperty$1(innerItem, 'status')) {
|
|
2979
2980
|
if (status === 'close') {
|
|
2980
2981
|
innerItem.status = 'open';
|
|
2981
2982
|
} else {
|
|
@@ -3001,13 +3002,13 @@ const Table = ({
|
|
|
3001
3002
|
}
|
|
3002
3003
|
single = item;
|
|
3003
3004
|
}
|
|
3004
|
-
if (hasOwnerProperty(item, 'status') && !hasOwnerProperty(item, 'arrowComponent')) {
|
|
3005
|
+
if (hasOwnerProperty$1(item, 'status') && !hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
3005
3006
|
allArrows.push(item);
|
|
3006
3007
|
}
|
|
3007
3008
|
return item;
|
|
3008
3009
|
});
|
|
3009
3010
|
const checkedOpenableRowArrow = checkedOpenableRow.map(item => {
|
|
3010
|
-
if (hasOwnerProperty(item, 'arrowComponent')) {
|
|
3011
|
+
if (hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
3011
3012
|
if (single && single.status === 'close') {
|
|
3012
3013
|
item.status = 'close';
|
|
3013
3014
|
} else if (single && single.status === 'open') {
|
|
@@ -3016,7 +3017,7 @@ const Table = ({
|
|
|
3016
3017
|
}
|
|
3017
3018
|
}
|
|
3018
3019
|
}
|
|
3019
|
-
if (hasOwnerProperty(clickableItem, 'theSame') && hasOwnerProperty(item, 'theSame') && clickableItem.theSame === item.theSame) {
|
|
3020
|
+
if (hasOwnerProperty$1(clickableItem, 'theSame') && hasOwnerProperty$1(item, 'theSame') && clickableItem.theSame === item.theSame) {
|
|
3020
3021
|
item.status = clickableItem.status;
|
|
3021
3022
|
}
|
|
3022
3023
|
return item;
|
|
@@ -3040,7 +3041,7 @@ const Table = ({
|
|
|
3040
3041
|
});
|
|
3041
3042
|
const checkedOpenableAllRowsBody = body.map(innerItem => {
|
|
3042
3043
|
return innerItem.map(iElem => {
|
|
3043
|
-
if (hasOwnerProperty(iElem, 'status')) {
|
|
3044
|
+
if (hasOwnerProperty$1(iElem, 'status')) {
|
|
3044
3045
|
if (item.status === 'open') {
|
|
3045
3046
|
iElem.status = 'open';
|
|
3046
3047
|
} else {
|
|
@@ -3057,7 +3058,7 @@ const Table = ({
|
|
|
3057
3058
|
e.stopPropagation();
|
|
3058
3059
|
const checkBodyMore = body.map((elemItem, elemIndex) => {
|
|
3059
3060
|
return elemItem.map((elemInnerItem, elemInnerIndex) => {
|
|
3060
|
-
if (elemIndex === index && hasOwnerProperty(elemInnerItem, 'dots')) {
|
|
3061
|
+
if (elemIndex === index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
|
|
3061
3062
|
if (elemInnerIndex === innerIndex) {
|
|
3062
3063
|
if (item.dotsStatus === 'deActive') {
|
|
3063
3064
|
elemInnerItem.dotsStatus = 'active';
|
|
@@ -3065,7 +3066,7 @@ const Table = ({
|
|
|
3065
3066
|
elemInnerItem.dotsStatus = 'deActive';
|
|
3066
3067
|
}
|
|
3067
3068
|
}
|
|
3068
|
-
} else if (elemIndex !== index && hasOwnerProperty(elemInnerItem, 'dots')) {
|
|
3069
|
+
} else if (elemIndex !== index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
|
|
3069
3070
|
if (elemInnerIndex === innerIndex) {
|
|
3070
3071
|
elemInnerItem.dotsStatus = 'deActive';
|
|
3071
3072
|
}
|
|
@@ -3114,7 +3115,7 @@ const Table = ({
|
|
|
3114
3115
|
const handleTableClick = () => {
|
|
3115
3116
|
const checkBodyMore = body.map(elemItem => {
|
|
3116
3117
|
return elemItem.map(elemInnerItem => {
|
|
3117
|
-
if (hasOwnerProperty(elemInnerItem, 'dots')) {
|
|
3118
|
+
if (hasOwnerProperty$1(elemInnerItem, 'dots')) {
|
|
3118
3119
|
elemInnerItem.dotsStatus = 'deActive';
|
|
3119
3120
|
}
|
|
3120
3121
|
return elemInnerItem;
|
|
@@ -3131,8 +3132,8 @@ const Table = ({
|
|
|
3131
3132
|
const checkForInsertArrow = handleTransformDataForInsertArrow(checkBodyForChackedItems, arrowColumnCount, 'body');
|
|
3132
3133
|
const insert = checkForInsertArrow.map((item, index) => {
|
|
3133
3134
|
item.map((innerItem, innerIndex) => {
|
|
3134
|
-
if (hasOwnerProperty(innerItem, 'checkBox')) {
|
|
3135
|
-
if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
|
|
3135
|
+
if (hasOwnerProperty$1(innerItem, 'checkBox')) {
|
|
3136
|
+
if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
|
|
3136
3137
|
if (innerItem.checkBox.disabled === true) {
|
|
3137
3138
|
if (!disabledArray[innerIndex]) {
|
|
3138
3139
|
disabledArray[innerIndex] = {
|
|
@@ -3151,8 +3152,8 @@ const Table = ({
|
|
|
3151
3152
|
} else {
|
|
3152
3153
|
const insert = checkBodyForChackedItems.map((item, index) => {
|
|
3153
3154
|
item.map((innerItem, innerIndex) => {
|
|
3154
|
-
if (hasOwnerProperty(innerItem, 'checkBox')) {
|
|
3155
|
-
if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
|
|
3155
|
+
if (hasOwnerProperty$1(innerItem, 'checkBox')) {
|
|
3156
|
+
if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
|
|
3156
3157
|
if (innerItem.checkBox.disabled === true) {
|
|
3157
3158
|
if (!disabledArray[innerIndex]) {
|
|
3158
3159
|
disabledArray[innerIndex] = {
|
|
@@ -3182,6 +3183,9 @@ const Table = ({
|
|
|
3182
3183
|
setHeader(() => dataHeader);
|
|
3183
3184
|
}
|
|
3184
3185
|
}, [dataHeader, arrowColumn, arrowShow, disableArr]);
|
|
3186
|
+
useEffect(() => {
|
|
3187
|
+
className && setClassProps(() => classnames(className ?? configStyles.TABLE.className));
|
|
3188
|
+
}, [className]);
|
|
3185
3189
|
useEffect(() => {
|
|
3186
3190
|
configStylesPromise.then(data => {
|
|
3187
3191
|
setClassProps(() => classnames(className ?? data.TABLE.className));
|
|
@@ -3533,6 +3537,9 @@ const Modal = ({
|
|
|
3533
3537
|
}
|
|
3534
3538
|
}
|
|
3535
3539
|
}, [selected]);
|
|
3540
|
+
useEffect(() => {
|
|
3541
|
+
className && setClassProps(() => classnames(className ?? configStyles.MODAL.className));
|
|
3542
|
+
}, [className]);
|
|
3536
3543
|
useEffect(() => {
|
|
3537
3544
|
document.addEventListener('keydown', handleESC, false);
|
|
3538
3545
|
configStylesPromise.then(data => {
|
|
@@ -3670,7 +3677,7 @@ const Modal = ({
|
|
|
3670
3677
|
}
|
|
3671
3678
|
}, innerData && innerData.length > 0 && innerData.map((item, index) => {
|
|
3672
3679
|
if (select === index) {
|
|
3673
|
-
if (!hasOwnerProperty(item, 'url')) {
|
|
3680
|
+
if (!hasOwnerProperty$1(item, 'url')) {
|
|
3674
3681
|
alert('Please add url property in data prop on each element');
|
|
3675
3682
|
} else {
|
|
3676
3683
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -4202,6 +4209,9 @@ const Input = ({
|
|
|
4202
4209
|
const val = typeof value === 'number' ? value.toString() : value;
|
|
4203
4210
|
setInnerValue(() => val);
|
|
4204
4211
|
}, [value]);
|
|
4212
|
+
useEffect(() => {
|
|
4213
|
+
className && setClassProps(() => classnames(className ?? configStyles.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']));
|
|
4214
|
+
}, [className]);
|
|
4205
4215
|
useEffect(() => {
|
|
4206
4216
|
configStylesPromise.then(data => {
|
|
4207
4217
|
setClassProps(() => classnames(className ?? data.INPUT.className, type === 'number' ? styles$7['inp-num'] : '', styles$7['input-wrap']));
|
|
@@ -4398,6 +4408,30 @@ Input.propTypes = {
|
|
|
4398
4408
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object])
|
|
4399
4409
|
};
|
|
4400
4410
|
|
|
4411
|
+
const hasOwnerProperty = (object, property) => {
|
|
4412
|
+
return Object.prototype.hasOwnProperty.call(object, property);
|
|
4413
|
+
};
|
|
4414
|
+
const handleUtilsMouseEnterLeave = (e, behaviourStyle) => {
|
|
4415
|
+
if (typeof behaviourStyle !== 'object' || behaviourStyle === null || behaviourStyle === undefined) {
|
|
4416
|
+
alert('Please set a second param of handleUtilsMouseEnter function as valid object');
|
|
4417
|
+
return;
|
|
4418
|
+
}
|
|
4419
|
+
if (!hasOwnerProperty(e, 'target')) {
|
|
4420
|
+
alert('Please set a valid object like DOM event');
|
|
4421
|
+
return;
|
|
4422
|
+
}
|
|
4423
|
+
const existStyle = e.target.style;
|
|
4424
|
+
if (typeof existStyle !== 'object' || existStyle === null) {
|
|
4425
|
+
alert('Please set a valid style object in DOM event tergat');
|
|
4426
|
+
return;
|
|
4427
|
+
}
|
|
4428
|
+
for (const property in behaviourStyle) {
|
|
4429
|
+
if (existStyle[property]) {
|
|
4430
|
+
existStyle[property] = behaviourStyle[property];
|
|
4431
|
+
}
|
|
4432
|
+
}
|
|
4433
|
+
};
|
|
4434
|
+
|
|
4401
4435
|
const RadioDirectionMode = {
|
|
4402
4436
|
VERTICAL: 'vertical',
|
|
4403
4437
|
HORINZONTAL: 'horizontal'
|
|
@@ -4437,6 +4471,18 @@ const Radio = ({
|
|
|
4437
4471
|
});
|
|
4438
4472
|
const handleMouseEnter = (id, elemID) => {
|
|
4439
4473
|
const elem = document.querySelector(`#${elemID}`);
|
|
4474
|
+
// const newStyles = {
|
|
4475
|
+
// backgroundColor:
|
|
4476
|
+
// id === innerSelectedData?.id
|
|
4477
|
+
// ? borderActiveColor
|
|
4478
|
+
// ? borderActiveColor
|
|
4479
|
+
// : configStyles.RADIO.border.activeColor
|
|
4480
|
+
// : borderColor
|
|
4481
|
+
// ? borderColor
|
|
4482
|
+
// : configStyles.RADIO.border.color
|
|
4483
|
+
// }
|
|
4484
|
+
// handleUtilsMouseEnterLeave(e, newStyles);
|
|
4485
|
+
|
|
4440
4486
|
elem.style.backgroundColor = id === innerSelectedData?.id ? borderActiveColor ? borderActiveColor : configStyles.RADIO.border.activeColor : borderColor ? borderColor : configStyles.RADIO.border.color;
|
|
4441
4487
|
};
|
|
4442
4488
|
const handleMouseLeave = (id, elemID) => {
|
|
@@ -4489,6 +4535,9 @@ const Radio = ({
|
|
|
4489
4535
|
});
|
|
4490
4536
|
}
|
|
4491
4537
|
}, [keyNames]);
|
|
4538
|
+
useEffect(() => {
|
|
4539
|
+
className && setClassProps(() => classnames(className ?? configStyles.RADIO.className));
|
|
4540
|
+
}, [className]);
|
|
4492
4541
|
useEffect(() => {
|
|
4493
4542
|
configStylesPromise.then(data => {
|
|
4494
4543
|
setClassProps(() => classnames(className ?? data.RADIO.className));
|
|
@@ -4682,7 +4731,7 @@ const Select = ({
|
|
|
4682
4731
|
onChange({});
|
|
4683
4732
|
setNewSelected([]);
|
|
4684
4733
|
const clearedOptions = existOptions && existOptions.length > 0 && existOptions.map(item => {
|
|
4685
|
-
if (hasOwnerProperty(item, 'checked')) {
|
|
4734
|
+
if (hasOwnerProperty$1(item, 'checked')) {
|
|
4686
4735
|
item.checked = false;
|
|
4687
4736
|
}
|
|
4688
4737
|
return item;
|
|
@@ -4732,7 +4781,7 @@ const Select = ({
|
|
|
4732
4781
|
};
|
|
4733
4782
|
const isObjectEmpty = obj => {
|
|
4734
4783
|
for (var key in obj) {
|
|
4735
|
-
if (hasOwnerProperty(obj, key)) {
|
|
4784
|
+
if (hasOwnerProperty$1(obj, key)) {
|
|
4736
4785
|
return false;
|
|
4737
4786
|
}
|
|
4738
4787
|
}
|
|
@@ -4776,6 +4825,9 @@ const Select = ({
|
|
|
4776
4825
|
setExistOptions(modifiedOptions);
|
|
4777
4826
|
}
|
|
4778
4827
|
}, [options, multiple, selected, selected?.length]);
|
|
4828
|
+
useEffect(() => {
|
|
4829
|
+
className && setClassProps(() => classnames(className ?? configStyles.SELECT.className));
|
|
4830
|
+
}, [className]);
|
|
4779
4831
|
useEffect(() => {
|
|
4780
4832
|
configStylesPromise.then(data => {
|
|
4781
4833
|
setClassProps(() => classnames(className ?? data.SELECT.className));
|
|
@@ -5362,6 +5414,9 @@ const Toaster = ({
|
|
|
5362
5414
|
const handleToasterClick = e => {
|
|
5363
5415
|
e.stopPropagation();
|
|
5364
5416
|
};
|
|
5417
|
+
useEffect(() => {
|
|
5418
|
+
className && setClassProps(() => classnames(className ?? configStyles.TOASTER.className));
|
|
5419
|
+
}, [className]);
|
|
5365
5420
|
useEffect(() => {
|
|
5366
5421
|
configStylesPromise.then(data => {
|
|
5367
5422
|
setClassProps(() => classnames(className ?? data.TOASTER.className));
|
|
@@ -5438,6 +5493,9 @@ const Tooltip = ({
|
|
|
5438
5493
|
tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
|
|
5439
5494
|
tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
|
|
5440
5495
|
}, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
|
|
5496
|
+
useEffect(() => {
|
|
5497
|
+
className && setClassProps(() => classnames(className ?? configStyles.TOOLTIP.className));
|
|
5498
|
+
}, [className]);
|
|
5441
5499
|
useEffect(() => {
|
|
5442
5500
|
configStylesPromise.then(data => {
|
|
5443
5501
|
setClassProps(() => classnames(styles$4['tooltip-block'], className ?? data.TOOLTIP.className));
|
|
@@ -5589,6 +5647,9 @@ const Captcha = ({
|
|
|
5589
5647
|
setRangeNumber(Math.min(roundedRange, 100));
|
|
5590
5648
|
}
|
|
5591
5649
|
}, [range, getRange]);
|
|
5650
|
+
useEffect(() => {
|
|
5651
|
+
className && setClassProps(() => classnames(className ?? configStyles.CAPTCHA.className));
|
|
5652
|
+
}, [className]);
|
|
5592
5653
|
useEffect(() => {
|
|
5593
5654
|
configStylesPromise.then(data => {
|
|
5594
5655
|
setClassProps(() => classnames(className ?? data.CAPTCHA.className));
|
|
@@ -5704,6 +5765,9 @@ const Stepper = ({
|
|
|
5704
5765
|
}) => {
|
|
5705
5766
|
const [classProps, setClassProps] = useState({});
|
|
5706
5767
|
const [configStyles, setConfigStyles] = useState({});
|
|
5768
|
+
useEffect(() => {
|
|
5769
|
+
className && setClassProps(() => classnames(className ?? configStyles.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
|
|
5770
|
+
}, [className]);
|
|
5707
5771
|
useEffect(() => {
|
|
5708
5772
|
configStylesPromise.then(data => {
|
|
5709
5773
|
setClassProps(() => classnames(className ?? data.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
|
|
@@ -5797,6 +5861,9 @@ const Checkbox = ({
|
|
|
5797
5861
|
});
|
|
5798
5862
|
}
|
|
5799
5863
|
}, [keyNames]);
|
|
5864
|
+
useEffect(() => {
|
|
5865
|
+
className && setClassProps(() => classnames(className ?? configStyles.CHECKBOX.className));
|
|
5866
|
+
}, [className]);
|
|
5800
5867
|
useEffect(() => {
|
|
5801
5868
|
configStylesPromise.then(data => {
|
|
5802
5869
|
setClassProps(() => classnames(className ?? data.CHECKBOX.className));
|
|
@@ -5950,6 +6017,9 @@ const Textarea = ({
|
|
|
5950
6017
|
}
|
|
5951
6018
|
setInnerValue(() => value);
|
|
5952
6019
|
}, [value, errorMessage]);
|
|
6020
|
+
useEffect(() => {
|
|
6021
|
+
className && setClassProps(() => classnames(className ?? configStyles.TEXTAREA.className));
|
|
6022
|
+
}, [className]);
|
|
5953
6023
|
useEffect(() => {
|
|
5954
6024
|
configStylesPromise.then(data => {
|
|
5955
6025
|
setClassProps(() => classnames(className ?? data.TEXTAREA.className));
|
|
@@ -6156,6 +6226,9 @@ const Typography = ({
|
|
|
6156
6226
|
setValidVariant(true);
|
|
6157
6227
|
}
|
|
6158
6228
|
}, [variant]);
|
|
6229
|
+
useEffect(() => {
|
|
6230
|
+
className && setClassProps(() => classnames(className ?? configStyles.TYPOGRAPHY.className));
|
|
6231
|
+
}, [className]);
|
|
6159
6232
|
useEffect(() => {
|
|
6160
6233
|
configStylesPromise.then(data => {
|
|
6161
6234
|
setClassProps(() => classnames(className ?? data.TYPOGRAPHY.className));
|
|
@@ -6302,6 +6375,11 @@ const Pagination = ({
|
|
|
6302
6375
|
console.error(error);
|
|
6303
6376
|
});
|
|
6304
6377
|
}, []);
|
|
6378
|
+
useEffect(() => {
|
|
6379
|
+
className && setClassProps(() => classnames(
|
|
6380
|
+
// TODO: check and remove pagination-bar-rem class
|
|
6381
|
+
styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
6382
|
+
}, [className]);
|
|
6305
6383
|
useEffect(() => {
|
|
6306
6384
|
setcurrentTotalCount(totalCount);
|
|
6307
6385
|
}, [totalCount]);
|
|
@@ -6564,12 +6642,18 @@ const Autocomplete = ({
|
|
|
6564
6642
|
setIsHover(false);
|
|
6565
6643
|
};
|
|
6566
6644
|
const handleRowMouseEnter = e => {
|
|
6567
|
-
|
|
6568
|
-
|
|
6645
|
+
const newStyles = {
|
|
6646
|
+
color: contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.hover,
|
|
6647
|
+
backgroundColor: contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover
|
|
6648
|
+
};
|
|
6649
|
+
handleUtilsMouseEnterLeave(e, newStyles);
|
|
6569
6650
|
};
|
|
6570
6651
|
const handleRowMouseLeave = e => {
|
|
6571
|
-
|
|
6572
|
-
|
|
6652
|
+
const newStyles = {
|
|
6653
|
+
color: contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color,
|
|
6654
|
+
backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background
|
|
6655
|
+
};
|
|
6656
|
+
handleUtilsMouseEnterLeave(e, newStyles);
|
|
6573
6657
|
};
|
|
6574
6658
|
const handleFocus = () => {
|
|
6575
6659
|
setIsFocus(true);
|
|
@@ -6661,7 +6745,7 @@ const Autocomplete = ({
|
|
|
6661
6745
|
alert('Please add options prop');
|
|
6662
6746
|
}
|
|
6663
6747
|
options && options.length > 0 && options.map(item => {
|
|
6664
|
-
if (!hasOwnerProperty(item, keyNames.name)) {
|
|
6748
|
+
if (!hasOwnerProperty$1(item, keyNames.name)) {
|
|
6665
6749
|
alert(`Please add ${keyNames.name} property in items of options array`);
|
|
6666
6750
|
}
|
|
6667
6751
|
});
|
|
@@ -6687,6 +6771,9 @@ const Autocomplete = ({
|
|
|
6687
6771
|
useEffect(() => {
|
|
6688
6772
|
setInnerError(errorMessage);
|
|
6689
6773
|
}, [errorMessage]);
|
|
6774
|
+
useEffect(() => {
|
|
6775
|
+
className && setClassProps(() => classnames(className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
6776
|
+
}, [className]);
|
|
6690
6777
|
useEffect(() => {
|
|
6691
6778
|
configStylesPromise.then(data => {
|
|
6692
6779
|
setClassProps(() => classnames(className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
|