@xaypay/tui 0.2.3 → 0.2.5
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 +170 -78
- package/dist/index.js +170 -78
- 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.js
CHANGED
|
@@ -7,7 +7,7 @@ var PropTypes = require('prop-types');
|
|
|
7
7
|
var classnames = require('classnames');
|
|
8
8
|
var _ = require('lodash');
|
|
9
9
|
var styled = require('styled-components');
|
|
10
|
-
var ReactDOM = require('react-dom');
|
|
10
|
+
var ReactDOM = require('react-dom/client');
|
|
11
11
|
|
|
12
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
13
|
|
|
@@ -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,25 +86,27 @@ 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
|
|
|
105
97
|
function _extends() {
|
|
106
|
-
|
|
107
|
-
for (var
|
|
108
|
-
var
|
|
109
|
-
for (var
|
|
98
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
99
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
100
|
+
var source = arguments[i];
|
|
101
|
+
for (var key in source) {
|
|
102
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
103
|
+
target[key] = source[key];
|
|
104
|
+
}
|
|
105
|
+
}
|
|
110
106
|
}
|
|
111
|
-
return
|
|
112
|
-
}
|
|
107
|
+
return target;
|
|
108
|
+
};
|
|
109
|
+
return _extends.apply(this, arguments);
|
|
113
110
|
}
|
|
114
111
|
|
|
115
112
|
const SvgHeic = ({
|
|
@@ -1256,7 +1253,7 @@ async function getProps() {
|
|
|
1256
1253
|
}
|
|
1257
1254
|
|
|
1258
1255
|
var configStylesPromise = getProps();
|
|
1259
|
-
const hasOwnerProperty = (object, property) => {
|
|
1256
|
+
const hasOwnerProperty$1 = (object, property) => {
|
|
1260
1257
|
return Object.prototype.hasOwnProperty.call(object, property);
|
|
1261
1258
|
};
|
|
1262
1259
|
|
|
@@ -1302,6 +1299,9 @@ const Button = ({
|
|
|
1302
1299
|
const handleMouseLeave = () => {
|
|
1303
1300
|
setIsHover(false);
|
|
1304
1301
|
};
|
|
1302
|
+
React.useEffect(() => {
|
|
1303
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.BUTTON.className));
|
|
1304
|
+
}, [className]);
|
|
1305
1305
|
React.useEffect(() => {
|
|
1306
1306
|
if (!label && !icon) {
|
|
1307
1307
|
alert('Add icon or label props on Button component');
|
|
@@ -1807,6 +1807,9 @@ const File = /*#__PURE__*/React.forwardRef(({
|
|
|
1807
1807
|
alert('Please add change prop on File component');
|
|
1808
1808
|
}
|
|
1809
1809
|
}, [change]);
|
|
1810
|
+
React.useEffect(() => {
|
|
1811
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.FILE.className));
|
|
1812
|
+
}, [className]);
|
|
1810
1813
|
React.useEffect(() => {
|
|
1811
1814
|
configStylesPromise.then(data => {
|
|
1812
1815
|
setClassProps(() => classnames__default["default"](className ?? data.FILE.className));
|
|
@@ -2280,15 +2283,14 @@ SingleCheckbox.propTypes = {
|
|
|
2280
2283
|
};
|
|
2281
2284
|
|
|
2282
2285
|
function styleInject(css, ref) {
|
|
2283
|
-
if (
|
|
2286
|
+
if (ref === void 0) ref = {};
|
|
2284
2287
|
var insertAt = ref.insertAt;
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
+
if (!css || typeof document === 'undefined') {
|
|
2289
|
+
return;
|
|
2290
|
+
}
|
|
2288
2291
|
var head = document.head || document.getElementsByTagName('head')[0];
|
|
2289
2292
|
var style = document.createElement('style');
|
|
2290
2293
|
style.type = 'text/css';
|
|
2291
|
-
|
|
2292
2294
|
if (insertAt === 'top') {
|
|
2293
2295
|
if (head.firstChild) {
|
|
2294
2296
|
head.insertBefore(style, head.firstChild);
|
|
@@ -2298,7 +2300,6 @@ function styleInject(css, ref) {
|
|
|
2298
2300
|
} else {
|
|
2299
2301
|
head.appendChild(style);
|
|
2300
2302
|
}
|
|
2301
|
-
|
|
2302
2303
|
if (style.styleSheet) {
|
|
2303
2304
|
style.styleSheet.cssText = css;
|
|
2304
2305
|
} else {
|
|
@@ -2329,7 +2330,7 @@ const TH = ({
|
|
|
2329
2330
|
handleCheckArrowActionHeader
|
|
2330
2331
|
}) => {
|
|
2331
2332
|
const handleCheckArrowAction = (e, object, property) => {
|
|
2332
|
-
if (hasOwnerProperty(object, property)) {
|
|
2333
|
+
if (hasOwnerProperty$1(object, property)) {
|
|
2333
2334
|
handleCheckArrowActionHeader(e, object);
|
|
2334
2335
|
}
|
|
2335
2336
|
};
|
|
@@ -2350,14 +2351,14 @@ const TH = ({
|
|
|
2350
2351
|
borderColor: hideBorder ? 'transparent' : '#eeeeee'
|
|
2351
2352
|
},
|
|
2352
2353
|
onClick: handleHeaderItemClick,
|
|
2353
|
-
className: `${hasOwnerProperty(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
|
|
2354
|
+
className: `${hasOwnerProperty$1(item, 'sortingArrows') ? item.sortingArrows === true ? styles$9['sorting-arrows'] : '' : ''}`
|
|
2354
2355
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2355
2356
|
style: {
|
|
2356
2357
|
display: 'flex',
|
|
2357
2358
|
alignItems: 'flex-start',
|
|
2358
|
-
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'
|
|
2359
2360
|
}
|
|
2360
|
-
}, hasOwnerProperty(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
2361
|
+
}, hasOwnerProperty$1(item, 'checkBox') ? /*#__PURE__*/React__default["default"].createElement(SingleCheckbox, {
|
|
2361
2362
|
data: item,
|
|
2362
2363
|
checked: item.checkBox.checked,
|
|
2363
2364
|
disabled: item.checkBox.disabled,
|
|
@@ -2369,7 +2370,7 @@ const TH = ({
|
|
|
2369
2370
|
margin: '0px'
|
|
2370
2371
|
},
|
|
2371
2372
|
onClick: e => handleCheckArrowAction(e, item, 'arrowComponent')
|
|
2372
|
-
}, 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 : '')));
|
|
2373
2374
|
};
|
|
2374
2375
|
|
|
2375
2376
|
const TD = ({
|
|
@@ -2414,7 +2415,7 @@ const TD = ({
|
|
|
2414
2415
|
handleBodyActionClick(e, actionData);
|
|
2415
2416
|
};
|
|
2416
2417
|
const handleCheckActions = (e, object, property, objectIndex) => {
|
|
2417
|
-
if (hasOwnerProperty(object, property)) {
|
|
2418
|
+
if (hasOwnerProperty$1(object, property)) {
|
|
2418
2419
|
handleBodyAction(e, {
|
|
2419
2420
|
item: object,
|
|
2420
2421
|
itemIndex: objectIndex
|
|
@@ -2457,7 +2458,7 @@ const TD = ({
|
|
|
2457
2458
|
maxWidth: tableColumnMaxWidth,
|
|
2458
2459
|
whiteSpace: Array.isArray(item) ? 'nowrap' : 'wrap',
|
|
2459
2460
|
borderColor: hideBorder ? 'transparent' : borderRightColor,
|
|
2460
|
-
boxShadow: hasOwnerProperty(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
|
|
2461
|
+
boxShadow: hasOwnerProperty$1(item, 'colorStatus') ? `inset 3px 0px 0px 0px ${item.colorStatus}` : '',
|
|
2461
2462
|
borderTopLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
2462
2463
|
borderBottomLeftRadius: rowItem && innerIndex === 0 ? rowRadius : '0px',
|
|
2463
2464
|
borderTopRightRadius: rowItem && innerIndex === row.length - 1 ? rowRadius : '0px',
|
|
@@ -2470,7 +2471,7 @@ const TD = ({
|
|
|
2470
2471
|
width: '32px',
|
|
2471
2472
|
height: '32px',
|
|
2472
2473
|
marginRight: '10px',
|
|
2473
|
-
cursor: hasOwnerProperty(newItem, 'type') ? 'pointer' : 'auto'
|
|
2474
|
+
cursor: hasOwnerProperty$1(newItem, 'type') ? 'pointer' : 'auto'
|
|
2474
2475
|
},
|
|
2475
2476
|
id: newItem.id,
|
|
2476
2477
|
type: newItem.type,
|
|
@@ -2492,7 +2493,7 @@ const TD = ({
|
|
|
2492
2493
|
width: '32px',
|
|
2493
2494
|
height: '32px',
|
|
2494
2495
|
marginRight: '10px',
|
|
2495
|
-
cursor: hasOwnerProperty(iT, 'type') ? 'pointer' : 'auto'
|
|
2496
|
+
cursor: hasOwnerProperty$1(iT, 'type') ? 'pointer' : 'auto'
|
|
2496
2497
|
},
|
|
2497
2498
|
id: iT.id ? iT.id : '',
|
|
2498
2499
|
type: iT.type ? iT.type : '',
|
|
@@ -2510,9 +2511,9 @@ const TD = ({
|
|
|
2510
2511
|
style: {
|
|
2511
2512
|
display: 'flex',
|
|
2512
2513
|
alignItems: 'flex-start',
|
|
2513
|
-
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'
|
|
2514
2515
|
}
|
|
2515
|
-
}, !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", {
|
|
2516
2517
|
id: item.id,
|
|
2517
2518
|
style: {
|
|
2518
2519
|
width: '21px',
|
|
@@ -2521,7 +2522,7 @@ const TD = ({
|
|
|
2521
2522
|
},
|
|
2522
2523
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
2523
2524
|
className: styles$9['td-span']
|
|
2524
|
-
}, 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, {
|
|
2525
2526
|
data: item,
|
|
2526
2527
|
index: index,
|
|
2527
2528
|
innerIndex: innerIndex,
|
|
@@ -2533,18 +2534,18 @@ const TD = ({
|
|
|
2533
2534
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2534
2535
|
style: {
|
|
2535
2536
|
flexShrink: 11,
|
|
2536
|
-
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',
|
|
2537
|
-
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'
|
|
2538
2539
|
}
|
|
2539
2540
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
2540
2541
|
style: {
|
|
2541
2542
|
textAlign: tBodyTextAlign,
|
|
2542
2543
|
margin: '0px',
|
|
2543
|
-
cursor: hasOwnerProperty(item, 'arrowComponent') || hasOwnerProperty(item, 'dots') ? 'pointer' : 'auto',
|
|
2544
|
+
cursor: hasOwnerProperty$1(item, 'arrowComponent') || hasOwnerProperty$1(item, 'dots') ? 'pointer' : 'auto',
|
|
2544
2545
|
...item.props
|
|
2545
2546
|
},
|
|
2546
|
-
onClick: hasOwnerProperty(item, 'arrowComponent') ? () => handleCheckArrowAction(item, item.checkIndex) : hasOwnerProperty(item, 'dots') ? e => handleCheckDots(e, item, index, innerIndex) : _ => _
|
|
2547
|
-
}, 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", {
|
|
2548
2549
|
style: {
|
|
2549
2550
|
display: 'block',
|
|
2550
2551
|
position: 'relative'
|
|
@@ -2565,7 +2566,7 @@ const TD = ({
|
|
|
2565
2566
|
backgroundColor: '#FFFFFF',
|
|
2566
2567
|
boxShadow: '0px 0px 20px 0px #3C393E4D'
|
|
2567
2568
|
}
|
|
2568
|
-
}, hasOwnerProperty(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
2569
|
+
}, hasOwnerProperty$1(item, 'options') && item.options.map((optionItem, optionIndex) => {
|
|
2569
2570
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2570
2571
|
key: `${optionItem.content}_${optionIndex}`,
|
|
2571
2572
|
className: styles$9['dots-option-item'],
|
|
@@ -2590,7 +2591,7 @@ const TD = ({
|
|
|
2590
2591
|
},
|
|
2591
2592
|
title: optionItem.content
|
|
2592
2593
|
}, optionItem.content === 0 ? optionItem.content.toString() : optionItem.content ? optionItem.content : ''));
|
|
2593
|
-
}))) : ''), hasOwnerProperty(item, 'contentList') && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2594
|
+
}))) : ''), hasOwnerProperty$1(item, 'contentList') && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2594
2595
|
style: {
|
|
2595
2596
|
overflow: 'auto',
|
|
2596
2597
|
marginTop: '10px',
|
|
@@ -2639,7 +2640,7 @@ const TD = ({
|
|
|
2639
2640
|
onClick: e => handleContentList(e, item, index, innerIndex, innerItem.id, innerItem.content, innerItemIndex)
|
|
2640
2641
|
}, innerItem.content === 0 ? innerItem.content.toString() : innerItem.content ? innerItem.content : '');
|
|
2641
2642
|
}
|
|
2642
|
-
}))), !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", {
|
|
2643
2644
|
id: item.id,
|
|
2644
2645
|
style: {
|
|
2645
2646
|
width: '21px',
|
|
@@ -2648,7 +2649,7 @@ const TD = ({
|
|
|
2648
2649
|
},
|
|
2649
2650
|
onClick: () => handleOpenCloseRowSingleArrow(index, innerIndex, item),
|
|
2650
2651
|
className: styles$9['td-span']
|
|
2651
|
-
}, hasOwnerProperty(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
2652
|
+
}, hasOwnerProperty$1(item, 'status') && item.status === 'close' ? item.closeArrow : item.openArrow) : '') : '');
|
|
2652
2653
|
};
|
|
2653
2654
|
|
|
2654
2655
|
const SvgUpArrow = ({
|
|
@@ -2753,7 +2754,7 @@ const Table = ({
|
|
|
2753
2754
|
bodyData.map((item, index) => {
|
|
2754
2755
|
if (index === data.index) {
|
|
2755
2756
|
item.map((innerItem, innerIndex) => {
|
|
2756
|
-
if (hasOwnerProperty(innerItem, 'arrowComponent')) {
|
|
2757
|
+
if (hasOwnerProperty$1(innerItem, 'arrowComponent')) {
|
|
2757
2758
|
removeItemIndex = innerIndex;
|
|
2758
2759
|
}
|
|
2759
2760
|
});
|
|
@@ -2777,7 +2778,7 @@ const Table = ({
|
|
|
2777
2778
|
let removeItemIndex;
|
|
2778
2779
|
let headerWithoutArrow;
|
|
2779
2780
|
header.map((item, index) => {
|
|
2780
|
-
if (hasOwnerProperty(item, 'arrowComponent')) {
|
|
2781
|
+
if (hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
2781
2782
|
removeItemIndex = index;
|
|
2782
2783
|
}
|
|
2783
2784
|
});
|
|
@@ -2817,7 +2818,7 @@ const Table = ({
|
|
|
2817
2818
|
let checkedItems = [];
|
|
2818
2819
|
data.map((item, index) => {
|
|
2819
2820
|
item.map((innerItem, innerIndex) => {
|
|
2820
|
-
if (hasOwnerProperty(innerItem, 'checkBox')) {
|
|
2821
|
+
if (hasOwnerProperty$1(innerItem, 'checkBox')) {
|
|
2821
2822
|
if (!checkedItems[innerIndex]) {
|
|
2822
2823
|
checkedItems[innerIndex] = [];
|
|
2823
2824
|
}
|
|
@@ -2897,7 +2898,7 @@ const Table = ({
|
|
|
2897
2898
|
checkableItemBool = !item.checkBox.checked;
|
|
2898
2899
|
item.checkBox.checked = !item.checkBox.checked;
|
|
2899
2900
|
}
|
|
2900
|
-
if (hasOwnerProperty(item, 'arrowComponent')) {
|
|
2901
|
+
if (hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
2901
2902
|
removeItemIndex = index;
|
|
2902
2903
|
}
|
|
2903
2904
|
return item;
|
|
@@ -2905,7 +2906,7 @@ const Table = ({
|
|
|
2905
2906
|
const newUpdatedBody = updatedBody.map((item, index) => {
|
|
2906
2907
|
return item.map((innerItem, innerIndex) => {
|
|
2907
2908
|
if (checkableItemIndex === innerIndex) {
|
|
2908
|
-
if (!hasOwnerProperty(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
|
|
2909
|
+
if (!hasOwnerProperty$1(innerItem.checkBox, 'disabled') || innerItem.checkBox.disabled !== true) {
|
|
2909
2910
|
innerItem.checkBox.checked = checkableItemBool;
|
|
2910
2911
|
checkableBodyRowItems.push({
|
|
2911
2912
|
column: innerIndex,
|
|
@@ -2949,7 +2950,7 @@ const Table = ({
|
|
|
2949
2950
|
const updatedBody = body.slice().map(item => Object.values(item));
|
|
2950
2951
|
const newData = updatedBody.map((item, index) => {
|
|
2951
2952
|
return item.map((innerItem, innerIndex) => {
|
|
2952
|
-
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')) {
|
|
2953
2954
|
innerItem.checkBox.checked = !innerItem.checkBox.checked;
|
|
2954
2955
|
handleHeaderCheckedUpdate({
|
|
2955
2956
|
row: index,
|
|
@@ -3006,7 +3007,7 @@ const Table = ({
|
|
|
3006
3007
|
const handleCheckArrowAction = (item, rowPosition) => {
|
|
3007
3008
|
const status = item.status;
|
|
3008
3009
|
const checkedOpenableRow = body[rowPosition].map(innerItem => {
|
|
3009
|
-
if (hasOwnerProperty(innerItem, 'status')) {
|
|
3010
|
+
if (hasOwnerProperty$1(innerItem, 'status')) {
|
|
3010
3011
|
if (status === 'close') {
|
|
3011
3012
|
innerItem.status = 'open';
|
|
3012
3013
|
} else {
|
|
@@ -3032,13 +3033,13 @@ const Table = ({
|
|
|
3032
3033
|
}
|
|
3033
3034
|
single = item;
|
|
3034
3035
|
}
|
|
3035
|
-
if (hasOwnerProperty(item, 'status') && !hasOwnerProperty(item, 'arrowComponent')) {
|
|
3036
|
+
if (hasOwnerProperty$1(item, 'status') && !hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
3036
3037
|
allArrows.push(item);
|
|
3037
3038
|
}
|
|
3038
3039
|
return item;
|
|
3039
3040
|
});
|
|
3040
3041
|
const checkedOpenableRowArrow = checkedOpenableRow.map(item => {
|
|
3041
|
-
if (hasOwnerProperty(item, 'arrowComponent')) {
|
|
3042
|
+
if (hasOwnerProperty$1(item, 'arrowComponent')) {
|
|
3042
3043
|
if (single && single.status === 'close') {
|
|
3043
3044
|
item.status = 'close';
|
|
3044
3045
|
} else if (single && single.status === 'open') {
|
|
@@ -3047,7 +3048,7 @@ const Table = ({
|
|
|
3047
3048
|
}
|
|
3048
3049
|
}
|
|
3049
3050
|
}
|
|
3050
|
-
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) {
|
|
3051
3052
|
item.status = clickableItem.status;
|
|
3052
3053
|
}
|
|
3053
3054
|
return item;
|
|
@@ -3071,7 +3072,7 @@ const Table = ({
|
|
|
3071
3072
|
});
|
|
3072
3073
|
const checkedOpenableAllRowsBody = body.map(innerItem => {
|
|
3073
3074
|
return innerItem.map(iElem => {
|
|
3074
|
-
if (hasOwnerProperty(iElem, 'status')) {
|
|
3075
|
+
if (hasOwnerProperty$1(iElem, 'status')) {
|
|
3075
3076
|
if (item.status === 'open') {
|
|
3076
3077
|
iElem.status = 'open';
|
|
3077
3078
|
} else {
|
|
@@ -3088,7 +3089,7 @@ const Table = ({
|
|
|
3088
3089
|
e.stopPropagation();
|
|
3089
3090
|
const checkBodyMore = body.map((elemItem, elemIndex) => {
|
|
3090
3091
|
return elemItem.map((elemInnerItem, elemInnerIndex) => {
|
|
3091
|
-
if (elemIndex === index && hasOwnerProperty(elemInnerItem, 'dots')) {
|
|
3092
|
+
if (elemIndex === index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
|
|
3092
3093
|
if (elemInnerIndex === innerIndex) {
|
|
3093
3094
|
if (item.dotsStatus === 'deActive') {
|
|
3094
3095
|
elemInnerItem.dotsStatus = 'active';
|
|
@@ -3096,7 +3097,7 @@ const Table = ({
|
|
|
3096
3097
|
elemInnerItem.dotsStatus = 'deActive';
|
|
3097
3098
|
}
|
|
3098
3099
|
}
|
|
3099
|
-
} else if (elemIndex !== index && hasOwnerProperty(elemInnerItem, 'dots')) {
|
|
3100
|
+
} else if (elemIndex !== index && hasOwnerProperty$1(elemInnerItem, 'dots')) {
|
|
3100
3101
|
if (elemInnerIndex === innerIndex) {
|
|
3101
3102
|
elemInnerItem.dotsStatus = 'deActive';
|
|
3102
3103
|
}
|
|
@@ -3145,7 +3146,7 @@ const Table = ({
|
|
|
3145
3146
|
const handleTableClick = () => {
|
|
3146
3147
|
const checkBodyMore = body.map(elemItem => {
|
|
3147
3148
|
return elemItem.map(elemInnerItem => {
|
|
3148
|
-
if (hasOwnerProperty(elemInnerItem, 'dots')) {
|
|
3149
|
+
if (hasOwnerProperty$1(elemInnerItem, 'dots')) {
|
|
3149
3150
|
elemInnerItem.dotsStatus = 'deActive';
|
|
3150
3151
|
}
|
|
3151
3152
|
return elemInnerItem;
|
|
@@ -3162,8 +3163,8 @@ const Table = ({
|
|
|
3162
3163
|
const checkForInsertArrow = handleTransformDataForInsertArrow(checkBodyForChackedItems, arrowColumnCount, 'body');
|
|
3163
3164
|
const insert = checkForInsertArrow.map((item, index) => {
|
|
3164
3165
|
item.map((innerItem, innerIndex) => {
|
|
3165
|
-
if (hasOwnerProperty(innerItem, 'checkBox')) {
|
|
3166
|
-
if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
|
|
3166
|
+
if (hasOwnerProperty$1(innerItem, 'checkBox')) {
|
|
3167
|
+
if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
|
|
3167
3168
|
if (innerItem.checkBox.disabled === true) {
|
|
3168
3169
|
if (!disabledArray[innerIndex]) {
|
|
3169
3170
|
disabledArray[innerIndex] = {
|
|
@@ -3182,8 +3183,8 @@ const Table = ({
|
|
|
3182
3183
|
} else {
|
|
3183
3184
|
const insert = checkBodyForChackedItems.map((item, index) => {
|
|
3184
3185
|
item.map((innerItem, innerIndex) => {
|
|
3185
|
-
if (hasOwnerProperty(innerItem, 'checkBox')) {
|
|
3186
|
-
if (hasOwnerProperty(innerItem.checkBox, 'disabled')) {
|
|
3186
|
+
if (hasOwnerProperty$1(innerItem, 'checkBox')) {
|
|
3187
|
+
if (hasOwnerProperty$1(innerItem.checkBox, 'disabled')) {
|
|
3187
3188
|
if (innerItem.checkBox.disabled === true) {
|
|
3188
3189
|
if (!disabledArray[innerIndex]) {
|
|
3189
3190
|
disabledArray[innerIndex] = {
|
|
@@ -3213,6 +3214,9 @@ const Table = ({
|
|
|
3213
3214
|
setHeader(() => dataHeader);
|
|
3214
3215
|
}
|
|
3215
3216
|
}, [dataHeader, arrowColumn, arrowShow, disableArr]);
|
|
3217
|
+
React.useEffect(() => {
|
|
3218
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TABLE.className));
|
|
3219
|
+
}, [className]);
|
|
3216
3220
|
React.useEffect(() => {
|
|
3217
3221
|
configStylesPromise.then(data => {
|
|
3218
3222
|
setClassProps(() => classnames__default["default"](className ?? data.TABLE.className));
|
|
@@ -3564,6 +3568,9 @@ const Modal = ({
|
|
|
3564
3568
|
}
|
|
3565
3569
|
}
|
|
3566
3570
|
}, [selected]);
|
|
3571
|
+
React.useEffect(() => {
|
|
3572
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.MODAL.className));
|
|
3573
|
+
}, [className]);
|
|
3567
3574
|
React.useEffect(() => {
|
|
3568
3575
|
document.addEventListener('keydown', handleESC, false);
|
|
3569
3576
|
configStylesPromise.then(data => {
|
|
@@ -3701,7 +3708,7 @@ const Modal = ({
|
|
|
3701
3708
|
}
|
|
3702
3709
|
}, innerData && innerData.length > 0 && innerData.map((item, index) => {
|
|
3703
3710
|
if (select === index) {
|
|
3704
|
-
if (!hasOwnerProperty(item, 'url')) {
|
|
3711
|
+
if (!hasOwnerProperty$1(item, 'url')) {
|
|
3705
3712
|
alert('Please add url property in data prop on each element');
|
|
3706
3713
|
} else {
|
|
3707
3714
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -4233,6 +4240,9 @@ const Input = ({
|
|
|
4233
4240
|
const val = typeof value === 'number' ? value.toString() : value;
|
|
4234
4241
|
setInnerValue(() => val);
|
|
4235
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']));
|
|
@@ -4429,6 +4439,30 @@ Input.propTypes = {
|
|
|
4429
4439
|
value: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number, PropTypes__default["default"].object])
|
|
4430
4440
|
};
|
|
4431
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
|
+
}
|
|
4464
|
+
};
|
|
4465
|
+
|
|
4432
4466
|
const RadioDirectionMode = {
|
|
4433
4467
|
VERTICAL: 'vertical',
|
|
4434
4468
|
HORINZONTAL: 'horizontal'
|
|
@@ -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));
|
|
@@ -5251,13 +5303,18 @@ let toastify;
|
|
|
5251
5303
|
let path = window.location.href;
|
|
5252
5304
|
let wWidth = window.innerWidth;
|
|
5253
5305
|
const removeToast = ref => {
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5306
|
+
if (ref.current) {
|
|
5307
|
+
const node = ref.current;
|
|
5308
|
+
const removeElem = node.parentNode;
|
|
5309
|
+
const parent = removeElem.parentNode;
|
|
5310
|
+
if (parent && parent.contains(removeElem)) {
|
|
5311
|
+
parent.removeChild(removeElem);
|
|
5312
|
+
}
|
|
5313
|
+
if (!parent.hasChildNodes()) {
|
|
5314
|
+
if (toastify && toastify.contains(parent)) {
|
|
5315
|
+
toastify.removeChild(parent);
|
|
5316
|
+
}
|
|
5317
|
+
}
|
|
5261
5318
|
}
|
|
5262
5319
|
};
|
|
5263
5320
|
const createToast = ({
|
|
@@ -5298,8 +5355,8 @@ const createToast = ({
|
|
|
5298
5355
|
toastParentBlock.style.zIndex = 999999999999;
|
|
5299
5356
|
toastParentBlock.style.flexDirection = position === 'top-left' || position === 'top-right' || position === 'top-center' ? 'column-reverse' : 'column';
|
|
5300
5357
|
toastParentBlock.setAttribute('id', styles$5[position]);
|
|
5301
|
-
toastParentBlock.appendChild(toastBlock);
|
|
5302
|
-
toastify.appendChild(toastParentBlock);
|
|
5358
|
+
toastParentBlock && toastParentBlock.appendChild(toastBlock);
|
|
5359
|
+
toastify && toastify.appendChild(toastParentBlock);
|
|
5303
5360
|
} else {
|
|
5304
5361
|
document.getElementById(styles$5[position]).appendChild(toastBlock);
|
|
5305
5362
|
}
|
|
@@ -5393,6 +5450,9 @@ const Toaster = ({
|
|
|
5393
5450
|
const handleToasterClick = e => {
|
|
5394
5451
|
e.stopPropagation();
|
|
5395
5452
|
};
|
|
5453
|
+
React.useEffect(() => {
|
|
5454
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TOASTER.className));
|
|
5455
|
+
}, [className]);
|
|
5396
5456
|
React.useEffect(() => {
|
|
5397
5457
|
configStylesPromise.then(data => {
|
|
5398
5458
|
setClassProps(() => classnames__default["default"](className ?? data.TOASTER.className));
|
|
@@ -5469,6 +5529,9 @@ const Tooltip = ({
|
|
|
5469
5529
|
tooltipRef.current && tooltipRef.current.clientWidth && tooltipRef.current.clientWidth > 0 && setCheckTooltipWidth(tooltipRef.current.clientWidth);
|
|
5470
5530
|
tooltipRef.current && tooltipRef.current.clientHeight && tooltipRef.current.clientHeight > 0 && setCheckTooltipHeight(tooltipRef.current.clientHeight);
|
|
5471
5531
|
}, [text, tooltipRef, checkTooltipWidth, checkTooltipHeight]);
|
|
5532
|
+
React.useEffect(() => {
|
|
5533
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TOOLTIP.className));
|
|
5534
|
+
}, [className]);
|
|
5472
5535
|
React.useEffect(() => {
|
|
5473
5536
|
configStylesPromise.then(data => {
|
|
5474
5537
|
setClassProps(() => classnames__default["default"](styles$4['tooltip-block'], className ?? data.TOOLTIP.className));
|
|
@@ -5620,6 +5683,9 @@ const Captcha = ({
|
|
|
5620
5683
|
setRangeNumber(Math.min(roundedRange, 100));
|
|
5621
5684
|
}
|
|
5622
5685
|
}, [range, getRange]);
|
|
5686
|
+
React.useEffect(() => {
|
|
5687
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.CAPTCHA.className));
|
|
5688
|
+
}, [className]);
|
|
5623
5689
|
React.useEffect(() => {
|
|
5624
5690
|
configStylesPromise.then(data => {
|
|
5625
5691
|
setClassProps(() => classnames__default["default"](className ?? data.CAPTCHA.className));
|
|
@@ -5735,6 +5801,9 @@ const Stepper = ({
|
|
|
5735
5801
|
}) => {
|
|
5736
5802
|
const [classProps, setClassProps] = React.useState({});
|
|
5737
5803
|
const [configStyles, setConfigStyles] = React.useState({});
|
|
5804
|
+
React.useEffect(() => {
|
|
5805
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
|
|
5806
|
+
}, [className]);
|
|
5738
5807
|
React.useEffect(() => {
|
|
5739
5808
|
configStylesPromise.then(data => {
|
|
5740
5809
|
setClassProps(() => classnames__default["default"](className ?? data.STEPPER.className, `${styles$2['stepper-container']} stepper-container-rem`));
|
|
@@ -5828,6 +5897,9 @@ const Checkbox = ({
|
|
|
5828
5897
|
});
|
|
5829
5898
|
}
|
|
5830
5899
|
}, [keyNames]);
|
|
5900
|
+
React.useEffect(() => {
|
|
5901
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.CHECKBOX.className));
|
|
5902
|
+
}, [className]);
|
|
5831
5903
|
React.useEffect(() => {
|
|
5832
5904
|
configStylesPromise.then(data => {
|
|
5833
5905
|
setClassProps(() => classnames__default["default"](className ?? data.CHECKBOX.className));
|
|
@@ -5981,6 +6053,9 @@ const Textarea = ({
|
|
|
5981
6053
|
}
|
|
5982
6054
|
setInnerValue(() => value);
|
|
5983
6055
|
}, [value, errorMessage]);
|
|
6056
|
+
React.useEffect(() => {
|
|
6057
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TEXTAREA.className));
|
|
6058
|
+
}, [className]);
|
|
5984
6059
|
React.useEffect(() => {
|
|
5985
6060
|
configStylesPromise.then(data => {
|
|
5986
6061
|
setClassProps(() => classnames__default["default"](className ?? data.TEXTAREA.className));
|
|
@@ -6187,6 +6262,9 @@ const Typography = ({
|
|
|
6187
6262
|
setValidVariant(true);
|
|
6188
6263
|
}
|
|
6189
6264
|
}, [variant]);
|
|
6265
|
+
React.useEffect(() => {
|
|
6266
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.TYPOGRAPHY.className));
|
|
6267
|
+
}, [className]);
|
|
6190
6268
|
React.useEffect(() => {
|
|
6191
6269
|
configStylesPromise.then(data => {
|
|
6192
6270
|
setClassProps(() => classnames__default["default"](className ?? data.TYPOGRAPHY.className));
|
|
@@ -6333,6 +6411,11 @@ const Pagination = ({
|
|
|
6333
6411
|
console.error(error);
|
|
6334
6412
|
});
|
|
6335
6413
|
}, []);
|
|
6414
|
+
React.useEffect(() => {
|
|
6415
|
+
className && setClassProps(() => classnames__default["default"](
|
|
6416
|
+
// TODO: check and remove pagination-bar-rem class
|
|
6417
|
+
styles$1.list, className ?? configStyles.PAGINATION.className, `${styles$1['pagination-bar']} pagination-bar-rem`));
|
|
6418
|
+
}, [className]);
|
|
6336
6419
|
React.useEffect(() => {
|
|
6337
6420
|
setcurrentTotalCount(totalCount);
|
|
6338
6421
|
}, [totalCount]);
|
|
@@ -6595,12 +6678,18 @@ const Autocomplete = ({
|
|
|
6595
6678
|
setIsHover(false);
|
|
6596
6679
|
};
|
|
6597
6680
|
const handleRowMouseEnter = e => {
|
|
6598
|
-
|
|
6599
|
-
|
|
6681
|
+
const newStyles = {
|
|
6682
|
+
color: contentBottomRowHoverColor ? contentBottomRowHoverColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.hover,
|
|
6683
|
+
backgroundColor: contentBottomRowHoverBackgroundColor ? contentBottomRowHoverBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.backgroundHover
|
|
6684
|
+
};
|
|
6685
|
+
handleUtilsMouseEnterLeave(e, newStyles);
|
|
6600
6686
|
};
|
|
6601
6687
|
const handleRowMouseLeave = e => {
|
|
6602
|
-
|
|
6603
|
-
|
|
6688
|
+
const newStyles = {
|
|
6689
|
+
color: contentBottomRowColor ? contentBottomRowColor : configStyles.AUTOCOMPLETE.contentBottom.row.color,
|
|
6690
|
+
backgroundColor: contentBottomRowBackgroundColor ? contentBottomRowBackgroundColor : configStyles.AUTOCOMPLETE.contentBottom.row.colors.background
|
|
6691
|
+
};
|
|
6692
|
+
handleUtilsMouseEnterLeave(e, newStyles);
|
|
6604
6693
|
};
|
|
6605
6694
|
const handleFocus = () => {
|
|
6606
6695
|
setIsFocus(true);
|
|
@@ -6692,7 +6781,7 @@ const Autocomplete = ({
|
|
|
6692
6781
|
alert('Please add options prop');
|
|
6693
6782
|
}
|
|
6694
6783
|
options && options.length > 0 && options.map(item => {
|
|
6695
|
-
if (!hasOwnerProperty(item, keyNames.name)) {
|
|
6784
|
+
if (!hasOwnerProperty$1(item, keyNames.name)) {
|
|
6696
6785
|
alert(`Please add ${keyNames.name} property in items of options array`);
|
|
6697
6786
|
}
|
|
6698
6787
|
});
|
|
@@ -6718,6 +6807,9 @@ const Autocomplete = ({
|
|
|
6718
6807
|
React.useEffect(() => {
|
|
6719
6808
|
setInnerError(errorMessage);
|
|
6720
6809
|
}, [errorMessage]);
|
|
6810
|
+
React.useEffect(() => {
|
|
6811
|
+
className && setClassProps(() => classnames__default["default"](className ?? configStyles.AUTOCOMPLETE.className, styles['auto-complete']));
|
|
6812
|
+
}, [className]);
|
|
6721
6813
|
React.useEffect(() => {
|
|
6722
6814
|
configStylesPromise.then(data => {
|
|
6723
6815
|
setClassProps(() => classnames__default["default"](className ?? data.AUTOCOMPLETE.className, styles['auto-complete']));
|