@majoo-ui/react 1.54.4 → 1.54.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/index.esm.js +14 -7
- package/index.umd.js +12 -7
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -18341,18 +18341,24 @@ function Table({
|
|
|
18341
18341
|
css: customStyle
|
|
18342
18342
|
}, row.getRowProps(), {
|
|
18343
18343
|
children: row.cells.filter(cell => !cell.column.isSubRow).map(cell => {
|
|
18344
|
-
var _a
|
|
18344
|
+
var _a;
|
|
18345
18345
|
|
|
18346
|
+
const collId = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.id;
|
|
18347
|
+
const exceptionId = ['expander', 'selection', 'menu', 'eye'].includes(collId);
|
|
18346
18348
|
return jsx(TableCell$3, Object.assign({}, cell.getCellProps(addOnCellStyle(cell.column.id)), {
|
|
18347
18349
|
css: Object.assign(Object.assign({
|
|
18348
|
-
padding: !isContextMenu ||
|
|
18350
|
+
padding: !isContextMenu || exceptionId ? cell.column.accessor ? '20px 8px' : '20px 20px' : '',
|
|
18349
18351
|
verticalAlign: cell.column.accessor ? cellAlign : 'center',
|
|
18350
18352
|
cursor: onRowClick ? 'pointer' : 'unset'
|
|
18351
18353
|
}, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column, tableScrollPosition, scrollAreaWidth)),
|
|
18352
|
-
onClick: () =>
|
|
18354
|
+
onClick: () => {
|
|
18355
|
+
if (!exceptionId) {
|
|
18356
|
+
handleRowClick(row, i);
|
|
18357
|
+
}
|
|
18358
|
+
}
|
|
18353
18359
|
}, {
|
|
18354
18360
|
children: jsx(ConditionalWrapper, Object.assign({
|
|
18355
|
-
condition: isContextMenu && !
|
|
18361
|
+
condition: isContextMenu && !exceptionId,
|
|
18356
18362
|
wrapper: children => jsx(ContextMenuTrigger, Object.assign({
|
|
18357
18363
|
id: "context-menu-table",
|
|
18358
18364
|
triggerSide: "left"
|
|
@@ -23860,6 +23866,7 @@ const CardMessage = styled('div', {
|
|
|
23860
23866
|
fontWeight: 400,
|
|
23861
23867
|
overflowWrap: 'break-word',
|
|
23862
23868
|
wordWrap: 'break-word',
|
|
23869
|
+
width: 'fit-content',
|
|
23863
23870
|
variants: {
|
|
23864
23871
|
variant: {
|
|
23865
23872
|
sms: {
|
|
@@ -24052,7 +24059,7 @@ const Device = props => {
|
|
|
24052
24059
|
position: 'absolute',
|
|
24053
24060
|
right: '5%',
|
|
24054
24061
|
bottom: '12%',
|
|
24055
|
-
|
|
24062
|
+
paddingLeft: 15
|
|
24056
24063
|
}
|
|
24057
24064
|
}, {
|
|
24058
24065
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? jsx(CardMessage, Object.assign({
|
|
@@ -24110,8 +24117,8 @@ const Device = props => {
|
|
|
24110
24117
|
position: 'absolute',
|
|
24111
24118
|
right: '5%',
|
|
24112
24119
|
bottom: '12%',
|
|
24113
|
-
|
|
24114
|
-
|
|
24120
|
+
maxHeight: '75%',
|
|
24121
|
+
paddingLeft: 15,
|
|
24115
24122
|
overflow: 'auto',
|
|
24116
24123
|
'&::-webkit-scrollbar': {
|
|
24117
24124
|
width: 3
|
package/index.umd.js
CHANGED
|
@@ -18681,20 +18681,24 @@
|
|
|
18681
18681
|
children: row.cells.filter(function (cell) {
|
|
18682
18682
|
return !cell.column.isSubRow;
|
|
18683
18683
|
}).map(function (cell) {
|
|
18684
|
-
var _a
|
|
18684
|
+
var _a;
|
|
18685
18685
|
|
|
18686
|
+
var collId = (_a = cell === null || cell === void 0 ? void 0 : cell.column) === null || _a === void 0 ? void 0 : _a.id;
|
|
18687
|
+
var exceptionId = ['expander', 'selection', 'menu', 'eye'].includes(collId);
|
|
18686
18688
|
return jsxRuntime.jsx(TableCell$3, __assign({}, cell.getCellProps(addOnCellStyle(cell.column.id)), {
|
|
18687
18689
|
css: __assign(__assign({
|
|
18688
|
-
padding: !isContextMenu ||
|
|
18690
|
+
padding: !isContextMenu || exceptionId ? cell.column.accessor ? '20px 8px' : '20px 20px' : '',
|
|
18689
18691
|
verticalAlign: cell.column.accessor ? cellAlign : 'center',
|
|
18690
18692
|
cursor: onRowClick ? 'pointer' : 'unset'
|
|
18691
18693
|
}, stickyPositionStyling(cell.column)), stickyShadowStyling(cell.column, tableScrollPosition, scrollAreaWidth)),
|
|
18692
18694
|
onClick: function () {
|
|
18693
|
-
|
|
18695
|
+
if (!exceptionId) {
|
|
18696
|
+
handleRowClick(row, i);
|
|
18697
|
+
}
|
|
18694
18698
|
}
|
|
18695
18699
|
}, {
|
|
18696
18700
|
children: jsxRuntime.jsx(ConditionalWrapper, __assign({
|
|
18697
|
-
condition: isContextMenu && !
|
|
18701
|
+
condition: isContextMenu && !exceptionId,
|
|
18698
18702
|
wrapper: function (children) {
|
|
18699
18703
|
return jsxRuntime.jsx(ContextMenuTrigger, __assign({
|
|
18700
18704
|
id: "context-menu-table",
|
|
@@ -24253,6 +24257,7 @@
|
|
|
24253
24257
|
fontWeight: 400,
|
|
24254
24258
|
overflowWrap: 'break-word',
|
|
24255
24259
|
wordWrap: 'break-word',
|
|
24260
|
+
width: 'fit-content',
|
|
24256
24261
|
variants: {
|
|
24257
24262
|
variant: {
|
|
24258
24263
|
sms: {
|
|
@@ -24458,7 +24463,7 @@
|
|
|
24458
24463
|
position: 'absolute',
|
|
24459
24464
|
right: '5%',
|
|
24460
24465
|
bottom: '12%',
|
|
24461
|
-
|
|
24466
|
+
paddingLeft: 15
|
|
24462
24467
|
}
|
|
24463
24468
|
}, {
|
|
24464
24469
|
children: typeof (content === null || content === void 0 ? void 0 : content.message) === 'string' ? jsxRuntime.jsx(CardMessage, __assign({
|
|
@@ -24516,8 +24521,8 @@
|
|
|
24516
24521
|
position: 'absolute',
|
|
24517
24522
|
right: '5%',
|
|
24518
24523
|
bottom: '12%',
|
|
24519
|
-
|
|
24520
|
-
|
|
24524
|
+
maxHeight: '75%',
|
|
24525
|
+
paddingLeft: 15,
|
|
24521
24526
|
overflow: 'auto',
|
|
24522
24527
|
'&::-webkit-scrollbar': {
|
|
24523
24528
|
width: 3
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@majoo-ui/react",
|
|
3
|
-
"version": "1.54.
|
|
3
|
+
"version": "1.54.5",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@majoo-ui/core": "^1.31.1",
|
|
6
6
|
"@majoo-ui/helpers": "^1.30.5",
|
|
7
|
-
"@majoo-ui/icons": "^1.38.
|
|
7
|
+
"@majoo-ui/icons": "^1.38.2",
|
|
8
8
|
"@stitches/react": "^1.2.8",
|
|
9
9
|
"@radix-ui/react-alert-dialog": "^1.0.0",
|
|
10
10
|
"@radix-ui/react-avatar": "^1.0.0",
|