@majoo-ui/react 1.58.13 → 1.58.15
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/index.esm.js +19 -15
- package/index.umd.js +21 -15
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -21887,16 +21887,20 @@ const MobileTable = /*#__PURE__*/React__default.forwardRef(({
|
|
|
21887
21887
|
}, {
|
|
21888
21888
|
children: renderCell()
|
|
21889
21889
|
}), void 0)
|
|
21890
|
-
}), void 0),
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
|
|
21890
|
+
}), void 0), (() => {
|
|
21891
|
+
var _a;
|
|
21892
|
+
const expandable = ((_a = row.cells.filter((cell, indexCell) => (getIsMobileHeader() ? !cell.column.isMobileHeader : indexCell !== indexDefaultHeader) && cell.column.accessor)) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
21893
|
+
return expandable && jsx(Box, Object.assign({
|
|
21894
|
+
onClick: () => {
|
|
21895
|
+
if (!Object.keys(state.expanded).includes(row.id) && !getMultipleExpander().isMultipleExpander) {
|
|
21896
|
+
toggleAllRowsExpanded(false);
|
|
21897
|
+
}
|
|
21898
|
+
row.toggleRowExpanded(!row.isExpanded);
|
|
21894
21899
|
}
|
|
21895
|
-
|
|
21896
|
-
|
|
21897
|
-
|
|
21898
|
-
|
|
21899
|
-
}), void 0)]
|
|
21900
|
+
}, {
|
|
21901
|
+
children: row.isExpanded ? jsx(ChevronUpOutline, {}, void 0) : jsx(ChevronDownOutline, {}, void 0)
|
|
21902
|
+
}), void 0);
|
|
21903
|
+
})()]
|
|
21900
21904
|
}), void 0) : renderCell()
|
|
21901
21905
|
}), void 0);
|
|
21902
21906
|
})
|
|
@@ -50635,7 +50639,7 @@ const Status = styled('div', {
|
|
|
50635
50639
|
borderColor: '$primary500'
|
|
50636
50640
|
},
|
|
50637
50641
|
inActive: {
|
|
50638
|
-
borderColor: '$
|
|
50642
|
+
borderColor: '$gray150'
|
|
50639
50643
|
},
|
|
50640
50644
|
error: {
|
|
50641
50645
|
borderColor: '$red400'
|
|
@@ -50862,9 +50866,9 @@ function ProgressIndicator(props) {
|
|
|
50862
50866
|
}, {
|
|
50863
50867
|
children: [jsxs(Status, Object.assign({
|
|
50864
50868
|
css: {
|
|
50865
|
-
borderWidth:
|
|
50866
|
-
height:
|
|
50867
|
-
width:
|
|
50869
|
+
borderWidth: 1,
|
|
50870
|
+
height: 8,
|
|
50871
|
+
width: 8
|
|
50868
50872
|
},
|
|
50869
50873
|
state: getState(item === null || item === void 0 ? void 0 : item.progress),
|
|
50870
50874
|
withIcon: isIcon,
|
|
@@ -50875,7 +50879,7 @@ function ProgressIndicator(props) {
|
|
|
50875
50879
|
css: {
|
|
50876
50880
|
position: 'absolute',
|
|
50877
50881
|
top: isIcon ? 10 : -5,
|
|
50878
|
-
left: isIcon ?
|
|
50882
|
+
left: isIcon ? 40 : 20,
|
|
50879
50883
|
right: width ? `-${width}px` : -300
|
|
50880
50884
|
}
|
|
50881
50885
|
}, {
|
|
@@ -50894,7 +50898,7 @@ function ProgressIndicator(props) {
|
|
|
50894
50898
|
state: getState(item === null || item === void 0 ? void 0 : item.progress),
|
|
50895
50899
|
withIcon: isIcon,
|
|
50896
50900
|
css: {
|
|
50897
|
-
width:
|
|
50901
|
+
width: 2,
|
|
50898
50902
|
height: gap
|
|
50899
50903
|
}
|
|
50900
50904
|
}, void 0)]
|
package/index.umd.js
CHANGED
|
@@ -22199,16 +22199,22 @@
|
|
|
22199
22199
|
}, {
|
|
22200
22200
|
children: renderCell()
|
|
22201
22201
|
}), void 0)
|
|
22202
|
-
}), void 0),
|
|
22203
|
-
|
|
22204
|
-
|
|
22205
|
-
|
|
22202
|
+
}), void 0), function () {
|
|
22203
|
+
var _a;
|
|
22204
|
+
var expandable = ((_a = row.cells.filter(function (cell, indexCell) {
|
|
22205
|
+
return (getIsMobileHeader() ? !cell.column.isMobileHeader : indexCell !== indexDefaultHeader) && cell.column.accessor;
|
|
22206
|
+
})) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
22207
|
+
return expandable && jsxRuntime.jsx(Box, __assign({
|
|
22208
|
+
onClick: function () {
|
|
22209
|
+
if (!Object.keys(state.expanded).includes(row.id) && !getMultipleExpander().isMultipleExpander) {
|
|
22210
|
+
toggleAllRowsExpanded(false);
|
|
22211
|
+
}
|
|
22212
|
+
row.toggleRowExpanded(!row.isExpanded);
|
|
22206
22213
|
}
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
}), void 0)]
|
|
22214
|
+
}, {
|
|
22215
|
+
children: row.isExpanded ? jsxRuntime.jsx(icons.ChevronUpOutline, {}, void 0) : jsxRuntime.jsx(icons.ChevronDownOutline, {}, void 0)
|
|
22216
|
+
}), void 0);
|
|
22217
|
+
}()]
|
|
22212
22218
|
}), void 0) : renderCell()
|
|
22213
22219
|
}), void 0);
|
|
22214
22220
|
})
|
|
@@ -51088,7 +51094,7 @@
|
|
|
51088
51094
|
borderColor: '$primary500'
|
|
51089
51095
|
},
|
|
51090
51096
|
inActive: {
|
|
51091
|
-
borderColor: '$
|
|
51097
|
+
borderColor: '$gray150'
|
|
51092
51098
|
},
|
|
51093
51099
|
error: {
|
|
51094
51100
|
borderColor: '$red400'
|
|
@@ -51317,9 +51323,9 @@
|
|
|
51317
51323
|
}, {
|
|
51318
51324
|
children: [jsxRuntime.jsxs(Status, __assign({
|
|
51319
51325
|
css: {
|
|
51320
|
-
borderWidth:
|
|
51321
|
-
height:
|
|
51322
|
-
width:
|
|
51326
|
+
borderWidth: 1,
|
|
51327
|
+
height: 8,
|
|
51328
|
+
width: 8
|
|
51323
51329
|
},
|
|
51324
51330
|
state: getState(item === null || item === void 0 ? void 0 : item.progress),
|
|
51325
51331
|
withIcon: isIcon,
|
|
@@ -51330,7 +51336,7 @@
|
|
|
51330
51336
|
css: {
|
|
51331
51337
|
position: 'absolute',
|
|
51332
51338
|
top: isIcon ? 10 : -5,
|
|
51333
|
-
left: isIcon ?
|
|
51339
|
+
left: isIcon ? 40 : 20,
|
|
51334
51340
|
right: width ? "-".concat(width, "px") : -300
|
|
51335
51341
|
}
|
|
51336
51342
|
}, {
|
|
@@ -51349,7 +51355,7 @@
|
|
|
51349
51355
|
state: getState(item === null || item === void 0 ? void 0 : item.progress),
|
|
51350
51356
|
withIcon: isIcon,
|
|
51351
51357
|
css: {
|
|
51352
|
-
width:
|
|
51358
|
+
width: 2,
|
|
51353
51359
|
height: gap
|
|
51354
51360
|
}
|
|
51355
51361
|
}, void 0)]
|