material-react-table 2.0.0-beta.7 → 2.0.0-beta.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. package/dist/cjs/index.js +24 -24
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/material-react-table.esm.js +24 -24
  4. package/dist/esm/material-react-table.esm.js.map +1 -1
  5. package/locales/{ar/index.d.ts → ar.d.ts} +1 -1
  6. package/locales/{az/index.d.ts → az.d.ts} +1 -1
  7. package/locales/{bg/index.d.ts → bg.d.ts} +1 -1
  8. package/locales/{cs/index.d.ts → cs.d.ts} +1 -1
  9. package/locales/{da/index.d.ts → da.d.ts} +1 -1
  10. package/locales/{de/index.d.ts → de.d.ts} +1 -1
  11. package/locales/{en/index.d.ts → en.d.ts} +1 -1
  12. package/locales/{es/index.d.ts → es.d.ts} +1 -1
  13. package/locales/{et/index.d.ts → et.d.ts} +1 -1
  14. package/locales/{fa/index.d.ts → fa.d.ts} +1 -1
  15. package/locales/{fi/index.d.ts → fi.d.ts} +1 -1
  16. package/locales/{fr/index.d.ts → fr.d.ts} +1 -1
  17. package/locales/{hu/index.d.ts → hu.d.ts} +1 -1
  18. package/locales/{hy/index.d.ts → hy.d.ts} +1 -1
  19. package/locales/{id/index.d.ts → id.d.ts} +1 -1
  20. package/locales/{it/index.d.ts → it.d.ts} +1 -1
  21. package/locales/{ja/index.d.ts → ja.d.ts} +1 -1
  22. package/locales/{ko/index.d.ts → ko.d.ts} +1 -1
  23. package/locales/{nl/index.d.ts → nl.d.ts} +1 -1
  24. package/locales/{no/index.d.ts → no.d.ts} +1 -1
  25. package/locales/{np/index.d.ts → np.d.ts} +1 -1
  26. package/locales/{pl/index.d.ts → pl.d.ts} +1 -1
  27. package/locales/{pt-BR/index.d.ts → pt-BR.d.ts} +1 -1
  28. package/locales/{pt/index.d.ts → pt.d.ts} +1 -1
  29. package/locales/{ro/index.d.ts → ro.d.ts} +1 -1
  30. package/locales/{ru/index.d.ts → ru.d.ts} +1 -1
  31. package/locales/{sk/index.d.ts → sk.d.ts} +1 -1
  32. package/locales/{sr-Cyrl-RS/index.d.ts → sr-Cyrl-RS.d.ts} +1 -1
  33. package/locales/{sr-Latn-RS/index.d.ts → sr-Latn-RS.d.ts} +1 -1
  34. package/locales/{sv/index.d.ts → sv.d.ts} +1 -1
  35. package/locales/{tr/index.d.ts → tr.d.ts} +1 -1
  36. package/locales/{uk/index.d.ts → uk.d.ts} +1 -1
  37. package/locales/{vi/index.d.ts → vi.d.ts} +1 -1
  38. package/locales/{zh-Hans/index.d.ts → zh-Hans.d.ts} +1 -1
  39. package/locales/{zh-Hans/index.js → zh-Hans.js} +17 -17
  40. package/locales/{zh-Hans/index.esm.js → zh-Hans.mjs} +17 -17
  41. package/locales/{zh-Hant/index.d.ts → zh-Hant.d.ts} +1 -1
  42. package/package.json +176 -2
  43. package/src/buttons/MRT_ColumnPinningButtons.tsx +3 -3
  44. package/src/buttons/MRT_CopyButton.tsx +0 -1
  45. package/src/buttons/MRT_EditActionButtons.tsx +2 -2
  46. package/src/buttons/MRT_ExpandAllButton.tsx +0 -1
  47. package/src/buttons/MRT_ExpandButton.tsx +0 -1
  48. package/src/buttons/MRT_GrabHandleButton.tsx +0 -1
  49. package/src/buttons/MRT_RowPinButton.tsx +0 -1
  50. package/src/buttons/MRT_ShowHideColumnsButton.tsx +1 -1
  51. package/src/buttons/MRT_ToggleDensePaddingButton.tsx +1 -1
  52. package/src/buttons/MRT_ToggleFiltersButton.tsx +1 -1
  53. package/src/buttons/MRT_ToggleFullScreenButton.tsx +0 -1
  54. package/src/buttons/MRT_ToggleGlobalFilterButton.tsx +1 -1
  55. package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +1 -2
  56. package/src/head/MRT_TableHeadCellColumnActionsButton.tsx +0 -1
  57. package/src/head/MRT_TableHeadCellFilterLabel.tsx +1 -1
  58. package/src/head/MRT_TableHeadCellSortLabel.tsx +1 -1
  59. package/src/inputs/MRT_FilterCheckbox.tsx +0 -1
  60. package/src/inputs/MRT_FilterTextField.tsx +2 -2
  61. package/src/inputs/MRT_GlobalFilterTextField.tsx +2 -2
  62. package/src/inputs/MRT_SelectCheckbox.tsx +0 -1
  63. package/src/locales/zh-Hans.ts +17 -17
  64. package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +0 -1
  65. package/src/table/MRT_TablePaper.tsx +1 -0
  66. package/locales/ar/index.esm.d.ts +0 -3
  67. package/locales/ar/package.json +0 -14
  68. package/locales/az/index.esm.d.ts +0 -3
  69. package/locales/az/package.json +0 -14
  70. package/locales/bg/index.esm.d.ts +0 -3
  71. package/locales/bg/package.json +0 -14
  72. package/locales/cs/index.esm.d.ts +0 -3
  73. package/locales/cs/package.json +0 -14
  74. package/locales/da/index.esm.d.ts +0 -3
  75. package/locales/da/package.json +0 -14
  76. package/locales/de/index.esm.d.ts +0 -3
  77. package/locales/de/package.json +0 -14
  78. package/locales/en/index.esm.d.ts +0 -3
  79. package/locales/en/package.json +0 -14
  80. package/locales/es/index.esm.d.ts +0 -3
  81. package/locales/es/package.json +0 -14
  82. package/locales/et/index.esm.d.ts +0 -3
  83. package/locales/et/package.json +0 -14
  84. package/locales/fa/index.esm.d.ts +0 -3
  85. package/locales/fa/package.json +0 -14
  86. package/locales/fi/index.esm.d.ts +0 -3
  87. package/locales/fi/package.json +0 -14
  88. package/locales/fr/index.esm.d.ts +0 -3
  89. package/locales/fr/package.json +0 -14
  90. package/locales/hu/index.esm.d.ts +0 -3
  91. package/locales/hu/package.json +0 -14
  92. package/locales/hy/index.esm.d.ts +0 -3
  93. package/locales/hy/package.json +0 -14
  94. package/locales/id/index.esm.d.ts +0 -3
  95. package/locales/id/package.json +0 -14
  96. package/locales/it/index.esm.d.ts +0 -3
  97. package/locales/it/package.json +0 -14
  98. package/locales/ja/index.esm.d.ts +0 -3
  99. package/locales/ja/package.json +0 -14
  100. package/locales/ko/index.esm.d.ts +0 -3
  101. package/locales/ko/package.json +0 -14
  102. package/locales/nl/index.esm.d.ts +0 -3
  103. package/locales/nl/package.json +0 -14
  104. package/locales/no/index.esm.d.ts +0 -3
  105. package/locales/no/package.json +0 -14
  106. package/locales/np/index.esm.d.ts +0 -3
  107. package/locales/np/package.json +0 -14
  108. package/locales/pl/index.esm.d.ts +0 -3
  109. package/locales/pl/package.json +0 -14
  110. package/locales/pt/index.esm.d.ts +0 -3
  111. package/locales/pt/package.json +0 -14
  112. package/locales/pt-BR/index.esm.d.ts +0 -3
  113. package/locales/pt-BR/package.json +0 -14
  114. package/locales/ro/index.esm.d.ts +0 -3
  115. package/locales/ro/package.json +0 -14
  116. package/locales/ru/index.esm.d.ts +0 -3
  117. package/locales/ru/package.json +0 -14
  118. package/locales/sk/index.esm.d.ts +0 -3
  119. package/locales/sk/package.json +0 -14
  120. package/locales/sr-Cyrl-RS/index.esm.d.ts +0 -3
  121. package/locales/sr-Cyrl-RS/package.json +0 -14
  122. package/locales/sr-Latn-RS/index.esm.d.ts +0 -3
  123. package/locales/sr-Latn-RS/package.json +0 -14
  124. package/locales/sv/index.esm.d.ts +0 -3
  125. package/locales/sv/package.json +0 -14
  126. package/locales/tr/index.esm.d.ts +0 -3
  127. package/locales/tr/package.json +0 -14
  128. package/locales/uk/index.esm.d.ts +0 -3
  129. package/locales/uk/package.json +0 -14
  130. package/locales/vi/index.esm.d.ts +0 -3
  131. package/locales/vi/package.json +0 -14
  132. package/locales/zh-Hans/index.esm.d.ts +0 -3
  133. package/locales/zh-Hans/package.json +0 -14
  134. package/locales/zh-Hant/index.esm.d.ts +0 -3
  135. package/locales/zh-Hant/package.json +0 -14
  136. /package/locales/{ar/index.js → ar.js} +0 -0
  137. /package/locales/{ar/index.esm.js → ar.mjs} +0 -0
  138. /package/locales/{az/index.js → az.js} +0 -0
  139. /package/locales/{az/index.esm.js → az.mjs} +0 -0
  140. /package/locales/{bg/index.js → bg.js} +0 -0
  141. /package/locales/{bg/index.esm.js → bg.mjs} +0 -0
  142. /package/locales/{cs/index.js → cs.js} +0 -0
  143. /package/locales/{cs/index.esm.js → cs.mjs} +0 -0
  144. /package/locales/{da/index.js → da.js} +0 -0
  145. /package/locales/{da/index.esm.js → da.mjs} +0 -0
  146. /package/locales/{de/index.js → de.js} +0 -0
  147. /package/locales/{de/index.esm.js → de.mjs} +0 -0
  148. /package/locales/{en/index.js → en.js} +0 -0
  149. /package/locales/{en/index.esm.js → en.mjs} +0 -0
  150. /package/locales/{es/index.js → es.js} +0 -0
  151. /package/locales/{es/index.esm.js → es.mjs} +0 -0
  152. /package/locales/{et/index.js → et.js} +0 -0
  153. /package/locales/{et/index.esm.js → et.mjs} +0 -0
  154. /package/locales/{fa/index.js → fa.js} +0 -0
  155. /package/locales/{fa/index.esm.js → fa.mjs} +0 -0
  156. /package/locales/{fi/index.js → fi.js} +0 -0
  157. /package/locales/{fi/index.esm.js → fi.mjs} +0 -0
  158. /package/locales/{fr/index.js → fr.js} +0 -0
  159. /package/locales/{fr/index.esm.js → fr.mjs} +0 -0
  160. /package/locales/{hu/index.js → hu.js} +0 -0
  161. /package/locales/{hu/index.esm.js → hu.mjs} +0 -0
  162. /package/locales/{hy/index.js → hy.js} +0 -0
  163. /package/locales/{hy/index.esm.js → hy.mjs} +0 -0
  164. /package/locales/{id/index.js → id.js} +0 -0
  165. /package/locales/{id/index.esm.js → id.mjs} +0 -0
  166. /package/locales/{it/index.js → it.js} +0 -0
  167. /package/locales/{it/index.esm.js → it.mjs} +0 -0
  168. /package/locales/{ja/index.js → ja.js} +0 -0
  169. /package/locales/{ja/index.esm.js → ja.mjs} +0 -0
  170. /package/locales/{ko/index.js → ko.js} +0 -0
  171. /package/locales/{ko/index.esm.js → ko.mjs} +0 -0
  172. /package/locales/{nl/index.js → nl.js} +0 -0
  173. /package/locales/{nl/index.esm.js → nl.mjs} +0 -0
  174. /package/locales/{no/index.js → no.js} +0 -0
  175. /package/locales/{no/index.esm.js → no.mjs} +0 -0
  176. /package/locales/{np/index.js → np.js} +0 -0
  177. /package/locales/{np/index.esm.js → np.mjs} +0 -0
  178. /package/locales/{pl/index.js → pl.js} +0 -0
  179. /package/locales/{pl/index.esm.js → pl.mjs} +0 -0
  180. /package/locales/{pt-BR/index.js → pt-BR.js} +0 -0
  181. /package/locales/{pt-BR/index.esm.js → pt-BR.mjs} +0 -0
  182. /package/locales/{pt/index.js → pt.js} +0 -0
  183. /package/locales/{pt/index.esm.js → pt.mjs} +0 -0
  184. /package/locales/{ro/index.js → ro.js} +0 -0
  185. /package/locales/{ro/index.esm.js → ro.mjs} +0 -0
  186. /package/locales/{ru/index.js → ru.js} +0 -0
  187. /package/locales/{ru/index.esm.js → ru.mjs} +0 -0
  188. /package/locales/{sk/index.js → sk.js} +0 -0
  189. /package/locales/{sk/index.esm.js → sk.mjs} +0 -0
  190. /package/locales/{sr-Cyrl-RS/index.js → sr-Cyrl-RS.js} +0 -0
  191. /package/locales/{sr-Cyrl-RS/index.esm.js → sr-Cyrl-RS.mjs} +0 -0
  192. /package/locales/{sr-Latn-RS/index.js → sr-Latn-RS.js} +0 -0
  193. /package/locales/{sr-Latn-RS/index.esm.js → sr-Latn-RS.mjs} +0 -0
  194. /package/locales/{sv/index.js → sv.js} +0 -0
  195. /package/locales/{sv/index.esm.js → sv.mjs} +0 -0
  196. /package/locales/{tr/index.js → tr.js} +0 -0
  197. /package/locales/{tr/index.esm.js → tr.mjs} +0 -0
  198. /package/locales/{uk/index.js → uk.js} +0 -0
  199. /package/locales/{uk/index.esm.js → uk.mjs} +0 -0
  200. /package/locales/{vi/index.js → vi.js} +0 -0
  201. /package/locales/{vi/index.esm.js → vi.mjs} +0 -0
  202. /package/locales/{zh-Hant/index.js → zh-Hant.js} +0 -0
  203. /package/locales/{zh-Hant/index.esm.js → zh-Hant.mjs} +0 -0
@@ -448,7 +448,7 @@ const MRT_GrabHandleButton = (_a) => {
448
448
  var { iconButtonProps, location, onDragEnd, onDragStart, table } = _a, rest = __rest(_a, ["iconButtonProps", "location", "onDragEnd", "onDragStart", "table"]);
449
449
  const { options: { icons: { DragHandleIcon }, localization, }, } = table;
450
450
  const _iconButtonProps = Object.assign(Object.assign({}, iconButtonProps), rest);
451
- return (jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_b = _iconButtonProps === null || _iconButtonProps === void 0 ? void 0 : _iconButtonProps.title) !== null && _b !== void 0 ? _b : localization.move, children: jsx(IconButton, Object.assign({ disableRipple: true, draggable: "true", size: "small" }, _iconButtonProps, { onClick: (e) => {
451
+ return (jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_b = _iconButtonProps === null || _iconButtonProps === void 0 ? void 0 : _iconButtonProps.title) !== null && _b !== void 0 ? _b : localization.move, children: jsx(IconButton, Object.assign({ disableRipple: true, draggable: "true", size: "small" }, _iconButtonProps, { onClick: (e) => {
452
452
  var _a;
453
453
  e.stopPropagation();
454
454
  (_a = _iconButtonProps === null || _iconButtonProps === void 0 ? void 0 : _iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(_iconButtonProps, e);
@@ -506,7 +506,7 @@ const MRT_CopyButton = (_a) => {
506
506
  row,
507
507
  table,
508
508
  })), rest);
509
- return (jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_b = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _b !== void 0 ? _b : (copied ? localization.copiedToClipboard : localization.clickToCopy), children: jsx(Button, Object.assign({ onClick: (e) => handleCopy(e, cell.getValue()), size: "small", type: "button", variant: "text" }, buttonProps, { sx: (theme) => (Object.assign({ backgroundColor: 'transparent', border: 'none', color: 'inherit', cursor: 'copy', fontFamily: 'inherit', fontSize: 'inherit', letterSpacing: 'inherit', m: '-0.25rem', minWidth: 'unset', textAlign: 'inherit', textTransform: 'inherit' }, parseFromValuesOrFunc(buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx, theme))), title: undefined })) }));
509
+ return (jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_b = buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.title) !== null && _b !== void 0 ? _b : (copied ? localization.copiedToClipboard : localization.clickToCopy), children: jsx(Button, Object.assign({ onClick: (e) => handleCopy(e, cell.getValue()), size: "small", type: "button", variant: "text" }, buttonProps, { sx: (theme) => (Object.assign({ backgroundColor: 'transparent', border: 'none', color: 'inherit', cursor: 'copy', fontFamily: 'inherit', fontSize: 'inherit', letterSpacing: 'inherit', m: '-0.25rem', minWidth: 'unset', textAlign: 'inherit', textTransform: 'inherit' }, parseFromValuesOrFunc(buttonProps === null || buttonProps === void 0 ? void 0 : buttonProps.sx, theme))), title: undefined })) }));
510
510
  };
511
511
 
512
512
  const MRT_EditCellTextField = (_a) => {
@@ -1462,7 +1462,7 @@ const MRT_TableHeadCellColumnActionsButton = (_a) => {
1462
1462
  column,
1463
1463
  table,
1464
1464
  })), rest);
1465
- return (jsxs(Fragment, { children: [jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _b !== void 0 ? _b : localization.columnActions, children: jsx(IconButton, Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ '&:hover': {
1465
+ return (jsxs(Fragment, { children: [jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, placement: "top", title: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _b !== void 0 ? _b : localization.columnActions, children: jsx(IconButton, Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ '&:hover': {
1466
1466
  opacity: 1,
1467
1467
  }, height: '2rem', m: '-8px -4px', opacity: 0.3, transition: 'all 150ms', width: '2rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: jsx(MoreVertIcon, { style: { transform: 'scale(0.9)' } }) })) }), anchorEl && (jsx(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))] }));
1468
1468
  };
@@ -1481,7 +1481,7 @@ const MRT_FilterCheckbox = (_a) => {
1481
1481
  table,
1482
1482
  })), rest);
1483
1483
  const filterLabel = (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace('{column}', columnDef.header);
1484
- return (jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_c = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, children: jsx(FormControlLabel, { control: jsx(Checkbox, Object.assign({ checked: column.getFilterValue() === 'true', color: column.getFilterValue() === undefined ? 'default' : 'primary', indeterminate: column.getFilterValue() === undefined, size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onChange: (e, checked) => {
1484
+ return (jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: (_c = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, children: jsx(FormControlLabel, { control: jsx(Checkbox, Object.assign({ checked: column.getFilterValue() === 'true', color: column.getFilterValue() === undefined ? 'default' : 'primary', indeterminate: column.getFilterValue() === undefined, size: density === 'compact' ? 'small' : 'medium' }, checkboxProps, { onChange: (e, checked) => {
1485
1485
  var _a;
1486
1486
  column.setFilterValue(column.getFilterValue() === undefined
1487
1487
  ? 'true'
@@ -1639,12 +1639,12 @@ const MRT_FilterTextField = (_a) => {
1639
1639
  isMultiSelectFilter,
1640
1640
  isSelectFilter,
1641
1641
  ]);
1642
- const endAdornment = !isAutocompleteFilter && !isDateFilter && !filterChipLabel ? (jsx(InputAdornment, { position: "end", sx: { mr: isSelectFilter || isMultiSelectFilter ? '20px' : undefined }, children: jsx(Tooltip, { arrow: true, placement: "right", title: (_j = localization.clearFilter) !== null && _j !== void 0 ? _j : '', children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.clearFilter, disabled: !((_k = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _k === void 0 ? void 0 : _k.length), onClick: handleClear, size: "small", sx: {
1642
+ const endAdornment = !isAutocompleteFilter && !isDateFilter && !filterChipLabel ? (jsx(InputAdornment, { position: "end", sx: { mr: isSelectFilter || isMultiSelectFilter ? '20px' : undefined }, children: jsx(Tooltip, { placement: "right", title: (_j = localization.clearFilter) !== null && _j !== void 0 ? _j : '', children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.clearFilter, disabled: !((_k = filterValue === null || filterValue === void 0 ? void 0 : filterValue.toString()) === null || _k === void 0 ? void 0 : _k.length), onClick: handleClear, size: "small", sx: {
1643
1643
  height: '2rem',
1644
1644
  transform: 'scale(0.9)',
1645
1645
  width: '2rem',
1646
1646
  }, children: jsx(CloseIcon, {}) }) }) }) })) : null;
1647
- const startAdornment = showChangeModeButton ? (jsxs(InputAdornment, { position: "start", children: [jsx(Tooltip, { arrow: true, title: localization.changeFilterMode, children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsx(FilterListIcon, {}) }) }) }), filterChipLabel && (jsx(Chip, { label: filterChipLabel, onDelete: handleClearEmptyFilterChip }))] })) : null;
1647
+ const startAdornment = showChangeModeButton ? (jsxs(InputAdornment, { position: "start", children: [jsx(Tooltip, { title: localization.changeFilterMode, children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsx(FilterListIcon, {}) }) }) }), filterChipLabel && (jsx(Chip, { label: filterChipLabel, onDelete: handleClearEmptyFilterChip }))] })) : null;
1648
1648
  const commonTextFieldProps = Object.assign(Object.assign({ FormHelperTextProps: {
1649
1649
  sx: {
1650
1650
  fontSize: '0.75rem',
@@ -1848,7 +1848,7 @@ const MRT_TableHeadCellFilterLabel = (_a) => {
1848
1848
  return (jsxs(Fragment, { children: [jsx(Grow, { in: columnFilterDisplayMode === 'popover' ||
1849
1849
  (!!filterValue && !isRangeFilter) ||
1850
1850
  (isRangeFilter && // @ts-ignore
1851
- (!!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[0]) || !!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[1]))), unmountOnExit: true, children: jsx(Box, { component: "span", sx: { flex: '0 0' }, children: jsx(Tooltip, { arrow: true, placement: "top", title: filterTooltip, children: jsx(IconButton, Object.assign({ disableRipple: true, onClick: (event) => {
1851
+ (!!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[0]) || !!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[1]))), unmountOnExit: true, children: jsx(Box, { component: "span", sx: { flex: '0 0' }, children: jsx(Tooltip, { placement: "top", title: filterTooltip, children: jsx(IconButton, Object.assign({ disableRipple: true, onClick: (event) => {
1852
1852
  if (columnFilterDisplayMode === 'popover') {
1853
1853
  setAnchorEl(event.currentTarget);
1854
1854
  }
@@ -1954,7 +1954,7 @@ const MRT_TableHeadCellSortLabel = (_a) => {
1954
1954
  : column.getNextSortingOrder() === 'desc'
1955
1955
  ? localization.sortByColumnDesc.replace('{column}', columnDef.header)
1956
1956
  : localization.sortByColumnAsc.replace('{column}', columnDef.header);
1957
- return (jsx(Tooltip, { arrow: true, placement: "top", title: sortTooltip, children: jsx(Badge, { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular", children: jsx(TableSortLabel, Object.assign({ IconComponent: !isSorted
1957
+ return (jsx(Tooltip, { placement: "top", title: sortTooltip, children: jsx(Badge, { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular", children: jsx(TableSortLabel, Object.assign({ IconComponent: !isSorted
1958
1958
  ? (props) => (jsx(SyncAltIcon, Object.assign({}, props, { style: {
1959
1959
  transform: 'rotate(-90deg) scaleX(0.9) translateX(-1px)',
1960
1960
  } })))
@@ -2216,7 +2216,7 @@ const MRT_GlobalFilterTextField = (_a) => {
2216
2216
  }
2217
2217
  isMounted.current = true;
2218
2218
  }, [globalFilter]);
2219
- return (jsxs(Collapse, { in: showGlobalFilter, mountOnEnter: true, orientation: "horizontal", unmountOnExit: true, children: [jsx(TextField, Object.assign({ InputProps: Object.assign(Object.assign({ endAdornment: (jsx(InputAdornment, { position: "end", children: jsx(Tooltip, { arrow: true, title: (_b = localization.clearSearch) !== null && _b !== void 0 ? _b : '', children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small", children: jsx(CloseIcon, {}) }) }) }) })), startAdornment: enableGlobalFilterModes ? (jsx(InputAdornment, { position: "start", children: jsx(Tooltip, { arrow: true, title: localization.changeSearchMode, children: jsx(IconButton, { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsx(SearchIcon, {}) }) }) })) : (jsx(SearchIcon, { style: { marginRight: '4px' } })) }, textFieldProps.InputProps), { sx: (theme) => {
2219
+ return (jsxs(Collapse, { in: showGlobalFilter, mountOnEnter: true, orientation: "horizontal", unmountOnExit: true, children: [jsx(TextField, Object.assign({ InputProps: Object.assign(Object.assign({ endAdornment: (jsx(InputAdornment, { position: "end", children: jsx(Tooltip, { title: (_b = localization.clearSearch) !== null && _b !== void 0 ? _b : '', children: jsx("span", { children: jsx(IconButton, { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small", children: jsx(CloseIcon, {}) }) }) }) })), startAdornment: enableGlobalFilterModes ? (jsx(InputAdornment, { position: "start", children: jsx(Tooltip, { title: localization.changeSearchMode, children: jsx(IconButton, { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsx(SearchIcon, {}) }) }) })) : (jsx(SearchIcon, { style: { marginRight: '4px' } })) }, textFieldProps.InputProps), { sx: (theme) => {
2220
2220
  var _a;
2221
2221
  return (Object.assign({ mb: 0 }, parseFromValuesOrFunc((_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.InputProps) === null || _a === void 0 ? void 0 : _a.sx, theme)));
2222
2222
  } }), inputProps: Object.assign({ autoComplete: 'new-password' }, textFieldProps.inputProps), onChange: handleChange, placeholder: localization.search, size: "small", value: searchValue !== null && searchValue !== void 0 ? searchValue : '', variant: "outlined" }, textFieldProps, { inputRef: (inputRef) => {
@@ -2268,7 +2268,7 @@ const MRT_SelectCheckbox = (_a) => {
2268
2268
  e.stopPropagation();
2269
2269
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
2270
2270
  }, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.5rem', m: density !== 'compact' ? '-0.4rem' : undefined, width: density === 'compact' ? '1.75rem' : '2.5rem', zIndex: 0 }, parseFromValuesOrFunc(checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.sx, theme))), title: undefined });
2271
- return (jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : (selectAll
2271
+ return (jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : (selectAll
2272
2272
  ? localization.toggleSelectAll
2273
2273
  : localization.toggleSelectRow), children: enableMultiRowSelection === false ? (jsx(Radio, Object.assign({}, commonProps))) : (jsx(Checkbox, Object.assign({ indeterminate: selectAll
2274
2274
  ? table.getIsSomeRowsSelected() && !allRowsSelected
@@ -2375,9 +2375,9 @@ const MRT_ColumnPinningButtons = (_a) => {
2375
2375
  const handlePinColumn = (pinDirection) => {
2376
2376
  column.pin(pinDirection);
2377
2377
  };
2378
- return (jsx(Box, Object.assign({}, rest, { sx: (theme) => (Object.assign({ minWidth: '70px', textAlign: 'center' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: column.getIsPinned() ? (jsx(Tooltip, { arrow: true, title: localization.unpin, children: jsx(IconButton, { onClick: () => handlePinColumn(false), size: "small", children: jsx(PushPinIcon, {}) }) })) : (jsxs(Fragment, { children: [jsx(Tooltip, { arrow: true, title: localization.pinToLeft, children: jsx(IconButton, { onClick: () => handlePinColumn('left'), size: "small", children: jsx(PushPinIcon, { style: {
2378
+ return (jsx(Box, Object.assign({}, rest, { sx: (theme) => (Object.assign({ minWidth: '70px', textAlign: 'center' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: column.getIsPinned() ? (jsx(Tooltip, { title: localization.unpin, children: jsx(IconButton, { onClick: () => handlePinColumn(false), size: "small", children: jsx(PushPinIcon, {}) }) })) : (jsxs(Fragment, { children: [jsx(Tooltip, { title: localization.pinToLeft, children: jsx(IconButton, { onClick: () => handlePinColumn('left'), size: "small", children: jsx(PushPinIcon, { style: {
2379
2379
  transform: 'rotate(90deg)',
2380
- } }) }) }), jsx(Tooltip, { arrow: true, title: localization.pinToRight, children: jsx(IconButton, { onClick: () => handlePinColumn('right'), size: "small", children: jsx(PushPinIcon, { style: {
2380
+ } }) }) }), jsx(Tooltip, { title: localization.pinToRight, children: jsx(IconButton, { onClick: () => handlePinColumn('right'), size: "small", children: jsx(PushPinIcon, { style: {
2381
2381
  transform: 'rotate(-90deg)',
2382
2382
  } }) }) })] })) })));
2383
2383
  };
@@ -2442,7 +2442,7 @@ const MRT_ShowHideColumnsMenuItems = (_a) => {
2442
2442
  opacity: columnDefType !== 'display' ? 1 : 0.5,
2443
2443
  },
2444
2444
  },
2445
- }, control: jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility, children: jsx(Switch, {}) }), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsx(Typography, { sx: { alignSelf: 'center' }, children: columnDef.header }))] }) })), (_b = column.columns) === null || _b === void 0 ? void 0 : _b.map((c, i) => (jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
2445
+ }, control: jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility, children: jsx(Switch, {}) }), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsx(Typography, { sx: { alignSelf: 'center' }, children: columnDef.header }))] }) })), (_b = column.columns) === null || _b === void 0 ? void 0 : _b.map((c, i) => (jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
2446
2446
  };
2447
2447
 
2448
2448
  const MRT_ShowHideColumnsMenu = (_a) => {
@@ -2492,7 +2492,7 @@ const MRT_ShowHideColumnsButton = (_a) => {
2492
2492
  const handleClick = (event) => {
2493
2493
  setAnchorEl(event.currentTarget);
2494
2494
  };
2495
- return (jsxs(Fragment, { children: [jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns, children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined, children: jsx(ViewColumnIcon, {}) })) }), anchorEl && (jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
2495
+ return (jsxs(Fragment, { children: [jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns, children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined, children: jsx(ViewColumnIcon, {}) })) }), anchorEl && (jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
2496
2496
  };
2497
2497
 
2498
2498
  const MRT_ToggleDensePaddingButton = (_a) => {
@@ -2508,7 +2508,7 @@ const MRT_ToggleDensePaddingButton = (_a) => {
2508
2508
  : 'comfortable';
2509
2509
  setDensity(nextDensity);
2510
2510
  };
2511
- return (jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity, children: jsx(IconButton, Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined, children: density === 'compact' ? (jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsx(DensityMediumIcon, {})) : (jsx(DensityLargeIcon, {})) })) }));
2511
+ return (jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity, children: jsx(IconButton, Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined, children: density === 'compact' ? (jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsx(DensityMediumIcon, {})) : (jsx(DensityLargeIcon, {})) })) }));
2512
2512
  };
2513
2513
 
2514
2514
  const MRT_ToggleFiltersButton = (_a) => {
@@ -2519,7 +2519,7 @@ const MRT_ToggleFiltersButton = (_a) => {
2519
2519
  const handleToggleShowFilters = () => {
2520
2520
  setShowColumnFilters(!showColumnFilters);
2521
2521
  };
2522
- return (jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters, children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined, children: showColumnFilters ? jsx(FilterListOffIcon, {}) : jsx(FilterListIcon, {}) })) }));
2522
+ return (jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters, children: jsx(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined, children: showColumnFilters ? jsx(FilterListOffIcon, {}) : jsx(FilterListIcon, {}) })) }));
2523
2523
  };
2524
2524
 
2525
2525
  const MRT_ToggleFullScreenButton = (_a) => {
@@ -2532,7 +2532,7 @@ const MRT_ToggleFullScreenButton = (_a) => {
2532
2532
  setTooltipOpened(false);
2533
2533
  setIsFullScreen(!isFullScreen);
2534
2534
  };
2535
- return (jsx(Tooltip, { arrow: true, open: tooltipOpened, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen, children: jsx(IconButton, Object.assign({ "aria-label": localization.toggleFullScreen, onClick: handleToggleFullScreen, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false) }, rest, { title: undefined, children: isFullScreen ? jsx(FullscreenExitIcon, {}) : jsx(FullscreenIcon, {}) })) }));
2535
+ return (jsx(Tooltip, { open: tooltipOpened, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen, children: jsx(IconButton, Object.assign({ "aria-label": localization.toggleFullScreen, onClick: handleToggleFullScreen, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false) }, rest, { title: undefined, children: isFullScreen ? jsx(FullscreenExitIcon, {}) : jsx(FullscreenIcon, {}) })) }));
2536
2536
  };
2537
2537
 
2538
2538
  const MRT_ToggleGlobalFilterButton = (_a) => {
@@ -2544,7 +2544,7 @@ const MRT_ToggleGlobalFilterButton = (_a) => {
2544
2544
  setShowGlobalFilter(!showGlobalFilter);
2545
2545
  queueMicrotask(() => { var _a; return (_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
2546
2546
  };
2547
- return (jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch, children: jsx(IconButton, Object.assign({ "aria-label": (_c = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _c !== void 0 ? _c : localization.showHideSearch, disabled: !!globalFilter, onClick: handleToggleSearch }, rest, { title: undefined, children: showGlobalFilter ? jsx(SearchOffIcon, {}) : jsx(SearchIcon, {}) })) }));
2547
+ return (jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch, children: jsx(IconButton, Object.assign({ "aria-label": (_c = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _c !== void 0 ? _c : localization.showHideSearch, disabled: !!globalFilter, onClick: handleToggleSearch }, rest, { title: undefined, children: showGlobalFilter ? jsx(SearchOffIcon, {}) : jsx(SearchIcon, {}) })) }));
2548
2548
  };
2549
2549
 
2550
2550
  const MRT_ToolbarInternalButtons = (_a) => {
@@ -2754,7 +2754,7 @@ const MRT_EditActionButtons = (_a) => {
2754
2754
  });
2755
2755
  }
2756
2756
  };
2757
- return (jsx(Box, { onClick: (e) => e.stopPropagation(), sx: (theme) => (Object.assign({ display: 'flex', gap: '0.75rem' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: variant === 'icon' ? (jsxs(Fragment, { children: [jsx(Tooltip, { arrow: true, title: localization.cancel, children: jsx(IconButton, { "aria-label": localization.cancel, onClick: handleCancel, children: jsx(CancelIcon, {}) }) }), jsx(Tooltip, { arrow: true, title: localization.save, children: jsx(IconButton, { "aria-label": localization.save, color: "info", onClick: handleSubmitRow, children: isSaving ? jsx(CircularProgress, { size: 18 }) : jsx(SaveIcon, {}) }) })] })) : (jsxs(Fragment, { children: [jsx(Button, { onClick: handleCancel, sx: { minWidth: '100px' }, children: localization.cancel }), jsxs(Button, { onClick: handleSubmitRow, sx: { minWidth: '100px' }, variant: "contained", children: [isSaving && jsx(CircularProgress, { color: "inherit", size: 18 }), localization.save] })] })) }));
2757
+ return (jsx(Box, { onClick: (e) => e.stopPropagation(), sx: (theme) => (Object.assign({ display: 'flex', gap: '0.75rem' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: variant === 'icon' ? (jsxs(Fragment, { children: [jsx(Tooltip, { title: localization.cancel, children: jsx(IconButton, { "aria-label": localization.cancel, onClick: handleCancel, children: jsx(CancelIcon, {}) }) }), jsx(Tooltip, { title: localization.save, children: jsx(IconButton, { "aria-label": localization.save, color: "info", onClick: handleSubmitRow, children: isSaving ? jsx(CircularProgress, { size: 18 }) : jsx(SaveIcon, {}) }) })] })) : (jsxs(Fragment, { children: [jsx(Button, { onClick: handleCancel, sx: { minWidth: '100px' }, children: localization.cancel }), jsxs(Button, { onClick: handleSubmitRow, sx: { minWidth: '100px' }, variant: "contained", children: [isSaving && jsx(CircularProgress, { color: "inherit", size: 18 }), localization.save] })] })) }));
2758
2758
  };
2759
2759
 
2760
2760
  const MRT_EditRowModal = (_a) => {
@@ -2862,7 +2862,7 @@ const MRT_TablePaper = (_a) => {
2862
2862
  width: '100vw',
2863
2863
  zIndex: 999,
2864
2864
  }
2865
- : {})), tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.style), sx: (theme) => (Object.assign({ backgroundColor: getMRTTheme(table, theme).baseBackgroundColor, overflow: 'hidden', transition: 'all 100ms ease-in-out' }, parseFromValuesOrFunc(tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.sx, theme))), children: [enableTopToolbar &&
2865
+ : {})), tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.style), sx: (theme) => (Object.assign({ backgroundColor: getMRTTheme(table, theme).baseBackgroundColor, backgroundImage: 'unset', overflow: 'hidden', transition: 'all 100ms ease-in-out' }, parseFromValuesOrFunc(tablePaperProps === null || tablePaperProps === void 0 ? void 0 : tablePaperProps.sx, theme))), children: [enableTopToolbar &&
2866
2866
  ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : (jsx(MRT_TopToolbar, { table: table }))), jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
2867
2867
  ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : (jsx(MRT_BottomToolbar, { table: table })))] })));
2868
2868
  };
@@ -2877,7 +2877,7 @@ const MRT_RowPinButton = (_a) => {
2877
2877
  event.stopPropagation();
2878
2878
  row.pin(isPinned ? false : pinningPosition);
2879
2879
  };
2880
- return (jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, open: tooltipOpened, title: isPinned ? localization.unpin : localization.pin, children: jsx(IconButton, Object.assign({ "aria-label": localization.pin, onClick: handleTogglePin, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false), size: "small" }, rest, { sx: (theme) => (Object.assign({ height: '24px', width: '24px' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: isPinned ? (jsx(CloseIcon, {})) : (jsx(PushPinIcon, { fontSize: "small", style: {
2880
+ return (jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, open: tooltipOpened, title: isPinned ? localization.unpin : localization.pin, children: jsx(IconButton, Object.assign({ "aria-label": localization.pin, onClick: handleTogglePin, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false), size: "small" }, rest, { sx: (theme) => (Object.assign({ height: '24px', width: '24px' }, parseFromValuesOrFunc(rest === null || rest === void 0 ? void 0 : rest.sx, theme))), children: isPinned ? (jsx(CloseIcon, {})) : (jsx(PushPinIcon, { fontSize: "small", style: {
2881
2881
  transform: `rotate(${rowPinningDisplayMode === 'sticky'
2882
2882
  ? 135
2883
2883
  : pinningPosition === 'top'
@@ -2913,7 +2913,7 @@ const MRT_ExpandAllButton = (_a) => {
2913
2913
  table,
2914
2914
  })), rest);
2915
2915
  const isAllRowsExpanded = getIsAllRowsExpanded();
2916
- return (jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _b !== void 0 ? _b : (isAllRowsExpanded ? localization.collapseAll : localization.expandAll), children: jsx("span", { children: jsx(IconButton, Object.assign({ "aria-label": localization.expandAll, disabled: isLoading || (!renderDetailPanel && !getCanSomeRowsExpand()), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded) }, iconButtonProps, { sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', mt: density !== 'compact' ? '-0.25rem' : undefined, width: density === 'compact' ? '1.75rem' : '2.25rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: (_c = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _c !== void 0 ? _c : (jsx(KeyboardDoubleArrowDownIcon, { style: {
2916
+ return (jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _b !== void 0 ? _b : (isAllRowsExpanded ? localization.collapseAll : localization.expandAll), children: jsx("span", { children: jsx(IconButton, Object.assign({ "aria-label": localization.expandAll, disabled: isLoading || (!renderDetailPanel && !getCanSomeRowsExpand()), onClick: () => toggleAllRowsExpanded(!isAllRowsExpanded) }, iconButtonProps, { sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', mt: density !== 'compact' ? '-0.25rem' : undefined, width: density === 'compact' ? '1.75rem' : '2.25rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: (_c = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _c !== void 0 ? _c : (jsx(KeyboardDoubleArrowDownIcon, { style: {
2917
2917
  transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
2918
2918
  transition: 'transform 150ms',
2919
2919
  } })) })) }) }));
@@ -2935,7 +2935,7 @@ const MRT_ExpandButton = ({ row, table, }) => {
2935
2935
  row.toggleExpanded();
2936
2936
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
2937
2937
  };
2938
- return (jsx(Tooltip, { arrow: true, disableHoverListener: !canExpand && !renderDetailPanel, enterDelay: 1000, enterNextDelay: 1000, title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : (isExpanded ? localization.collapse : localization.expand), children: jsx("span", { children: jsx(IconButton, Object.assign({ "aria-label": localization.expand, disabled: !canExpand && !renderDetailPanel }, iconButtonProps, { onClick: handleToggleExpand, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', opacity: !canExpand && !renderDetailPanel ? 0.3 : 1, width: density === 'compact' ? '1.75rem' : '2.25rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (jsx(ExpandMoreIcon, { style: {
2938
+ return (jsx(Tooltip, { disableHoverListener: !canExpand && !renderDetailPanel, enterDelay: 1000, enterNextDelay: 1000, title: (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.title) !== null && _a !== void 0 ? _a : (isExpanded ? localization.collapse : localization.expand), children: jsx("span", { children: jsx(IconButton, Object.assign({ "aria-label": localization.expand, disabled: !canExpand && !renderDetailPanel }, iconButtonProps, { onClick: handleToggleExpand, sx: (theme) => (Object.assign({ height: density === 'compact' ? '1.75rem' : '2.25rem', opacity: !canExpand && !renderDetailPanel ? 0.3 : 1, width: density === 'compact' ? '1.75rem' : '2.25rem' }, parseFromValuesOrFunc(iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.sx, theme))), title: undefined, children: (_b = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.children) !== null && _b !== void 0 ? _b : (jsx(ExpandMoreIcon, { style: {
2939
2939
  transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
2940
2940
  transition: 'transform 150ms',
2941
2941
  } })) })) }) }));
@@ -2985,7 +2985,7 @@ const MRT_ToggleRowActionMenuButton = (_a) => {
2985
2985
  };
2986
2986
  return (jsx(Fragment, { children: renderRowActions && !showEditActionButtons ? (renderRowActions({ cell, row, table })) : showEditActionButtons ? (jsx(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
2987
2987
  parseFromValuesOrFunc(enableEditing, row) &&
2988
- ['modal', 'row'].includes(editDisplayMode) ? (jsx(Tooltip, { arrow: true, placement: "right", title: localization.edit, children: jsx(IconButton, Object.assign({ "aria-label": localization.edit, onClick: handleStartEditMode, sx: commonIconButtonStyles }, rest, { children: jsx(EditIcon, {}) })) })) : renderRowActionMenuItems ? (jsxs(Fragment, { children: [jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions, children: jsx(IconButton, Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, rest, { children: jsx(MoreHorizIcon, {}) })) }), jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table })] })) : null }));
2988
+ ['modal', 'row'].includes(editDisplayMode) ? (jsx(Tooltip, { placement: "right", title: localization.edit, children: jsx(IconButton, Object.assign({ "aria-label": localization.edit, onClick: handleStartEditMode, sx: commonIconButtonStyles }, rest, { children: jsx(EditIcon, {}) })) })) : renderRowActionMenuItems ? (jsxs(Fragment, { children: [jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions, children: jsx(IconButton, Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, rest, { children: jsx(MoreHorizIcon, {}) })) }), jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table })] })) : null }));
2989
2989
  };
2990
2990
 
2991
2991
  const MRT_AggregationFns = Object.assign({}, aggregationFns);