material-react-table 0.14.1 → 0.14.2
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/{buttons/MRT_ToggleColumnActionMenuButton.d.ts → head/MRT_TableHeadCellColumnActionsButton.d.ts} +1 -1
- package/dist/material-react-table.cjs.development.js +11 -5
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +11 -5
- package/dist/material-react-table.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/head/MRT_TableHeadCell.tsx +3 -2
- package/src/{buttons/MRT_ToggleColumnActionMenuButton.tsx → head/MRT_TableHeadCellColumnActionsButton.tsx} +1 -2
- package/src/head/MRT_TableHeadCellFilterLabel.tsx +1 -0
- package/src/head/MRT_TableHeadCellResizeHandle.tsx +1 -0
- package/src/head/MRT_TableHeadCellSortLabel.tsx +4 -0
|
@@ -6052,7 +6052,8 @@ var MRT_TableHeadCellFilterLabel = function MRT_TableHeadCellFilterLabel(_ref) {
|
|
|
6052
6052
|
'&:hover': {
|
|
6053
6053
|
backgroundColor: 'transparent',
|
|
6054
6054
|
opacity: 0.8
|
|
6055
|
-
}
|
|
6055
|
+
},
|
|
6056
|
+
width: '1.5ch'
|
|
6056
6057
|
}
|
|
6057
6058
|
}, showFilters && !column.getFilterValue() ? React__default.createElement(FilterAltOffIcon, null) : React__default.createElement(FilterAltIcon, null)));
|
|
6058
6059
|
};
|
|
@@ -6081,6 +6082,7 @@ var MRT_TableHeadCellResizeHandle = function MRT_TableHeadCellResizeHandle(_ref)
|
|
|
6081
6082
|
height: showFilters && columnDefType === 'data' ? '4rem' : '2rem',
|
|
6082
6083
|
opacity: 0.8,
|
|
6083
6084
|
position: 'absolute',
|
|
6085
|
+
mr: '-1rem',
|
|
6084
6086
|
right: '1px',
|
|
6085
6087
|
touchAction: 'none',
|
|
6086
6088
|
transition: column.getIsResizing() ? undefined : 'all 0.2s ease-in-out',
|
|
@@ -6114,11 +6116,15 @@ var MRT_TableHeadCellSortLabel = function MRT_TableHeadCellSortLabel(_ref) {
|
|
|
6114
6116
|
}, React__default.createElement(material.TableSortLabel, {
|
|
6115
6117
|
"aria-label": sortTooltip,
|
|
6116
6118
|
active: !!column.getIsSorted(),
|
|
6117
|
-
direction: column.getIsSorted() ? column.getIsSorted() : undefined
|
|
6119
|
+
direction: column.getIsSorted() ? column.getIsSorted() : undefined,
|
|
6120
|
+
sx: {
|
|
6121
|
+
width: '2ch',
|
|
6122
|
+
transform: 'translateX(-0.5ch)'
|
|
6123
|
+
}
|
|
6118
6124
|
}));
|
|
6119
6125
|
};
|
|
6120
6126
|
|
|
6121
|
-
var
|
|
6127
|
+
var MRT_TableHeadCellColumnActionsButton = function MRT_TableHeadCellColumnActionsButton(_ref) {
|
|
6122
6128
|
var header = _ref.header,
|
|
6123
6129
|
instance = _ref.instance;
|
|
6124
6130
|
var _instance$options = instance.options,
|
|
@@ -6162,7 +6168,6 @@ var MRT_ToggleColumnActionMenuButton = function MRT_ToggleColumnActionMenuButton
|
|
|
6162
6168
|
}, iconButtonProps, {
|
|
6163
6169
|
sx: _extends({
|
|
6164
6170
|
height: '2rem',
|
|
6165
|
-
mr: '2px',
|
|
6166
6171
|
mt: '-0.2rem',
|
|
6167
6172
|
opacity: 0.5,
|
|
6168
6173
|
transition: 'opacity 0.2s',
|
|
@@ -6268,6 +6273,7 @@ var MRT_TableHeadCell = function MRT_TableHeadCell(_ref) {
|
|
|
6268
6273
|
display: 'flex',
|
|
6269
6274
|
justifyContent: columnDefType === 'group' ? 'center' : 'space-between',
|
|
6270
6275
|
opacity: isDragging ? 0.5 : 1,
|
|
6276
|
+
position: 'relative',
|
|
6271
6277
|
width: '100%'
|
|
6272
6278
|
}
|
|
6273
6279
|
}, React__default.createElement(material.Box, {
|
|
@@ -6294,7 +6300,7 @@ var MRT_TableHeadCell = function MRT_TableHeadCell(_ref) {
|
|
|
6294
6300
|
}, columnDefType === 'data' && (enableColumnOrdering && columnDef.enableColumnOrdering !== false || enableGrouping && columnDef.enableGrouping !== false) && React__default.createElement(MRT_GrabHandleButton, {
|
|
6295
6301
|
ref: dragRef,
|
|
6296
6302
|
instance: instance
|
|
6297
|
-
}), (enableColumnActions || columnDef.enableColumnActions) && columnDef.enableColumnActions !== false && columnDefType !== 'group' && React__default.createElement(
|
|
6303
|
+
}), (enableColumnActions || columnDef.enableColumnActions) && columnDef.enableColumnActions !== false && columnDefType !== 'group' && React__default.createElement(MRT_TableHeadCellColumnActionsButton, {
|
|
6298
6304
|
header: header,
|
|
6299
6305
|
instance: instance
|
|
6300
6306
|
})), column.getCanResize() && React__default.createElement(MRT_TableHeadCellResizeHandle, {
|