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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. package/dist/cjs/index.js +23 -23
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/material-react-table.esm.js +23 -23
  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/ar.js +3 -1
  7. package/locales/{az/index.d.ts → az.d.ts} +1 -1
  8. package/locales/az.js +3 -1
  9. package/locales/{bg/index.d.ts → bg.d.ts} +1 -1
  10. package/locales/bg.js +3 -1
  11. package/locales/{cs/index.d.ts → cs.d.ts} +1 -1
  12. package/locales/cs.js +3 -1
  13. package/locales/{da/index.d.ts → da.d.ts} +1 -1
  14. package/locales/da.js +3 -1
  15. package/locales/{de/index.d.ts → de.d.ts} +1 -1
  16. package/locales/de.js +3 -1
  17. package/locales/{en/index.d.ts → en.d.ts} +1 -1
  18. package/locales/en.js +3 -1
  19. package/locales/{es/index.d.ts → es.d.ts} +1 -1
  20. package/locales/es.js +3 -1
  21. package/locales/{et/index.d.ts → et.d.ts} +1 -1
  22. package/locales/et.js +3 -1
  23. package/locales/{fa/index.d.ts → fa.d.ts} +1 -1
  24. package/locales/fa.js +3 -1
  25. package/locales/{fi/index.d.ts → fi.d.ts} +1 -1
  26. package/locales/fi.js +3 -1
  27. package/locales/{fr/index.d.ts → fr.d.ts} +1 -1
  28. package/locales/fr.js +3 -1
  29. package/locales/{hu/index.d.ts → hu.d.ts} +1 -1
  30. package/locales/hu.js +3 -1
  31. package/locales/{hy/index.d.ts → hy.d.ts} +1 -1
  32. package/locales/hy.js +3 -1
  33. package/locales/{id/index.d.ts → id.d.ts} +1 -1
  34. package/locales/id.js +3 -1
  35. package/locales/{it/index.d.ts → it.d.ts} +1 -1
  36. package/locales/it.js +3 -1
  37. package/locales/{ja/index.d.ts → ja.d.ts} +1 -1
  38. package/locales/ja.js +3 -1
  39. package/locales/{ko/index.d.ts → ko.d.ts} +1 -1
  40. package/locales/ko.js +3 -1
  41. package/locales/{nl/index.d.ts → nl.d.ts} +1 -1
  42. package/locales/nl.js +3 -1
  43. package/locales/{no/index.d.ts → no.d.ts} +1 -1
  44. package/locales/no.js +3 -1
  45. package/locales/{np/index.d.ts → np.d.ts} +1 -1
  46. package/locales/np.js +3 -1
  47. package/locales/{pl/index.d.ts → pl.d.ts} +1 -1
  48. package/locales/pl.js +3 -1
  49. package/locales/{pt-BR/index.d.ts → pt-BR.d.ts} +1 -1
  50. package/locales/pt-BR.js +3 -1
  51. package/locales/{pt/index.d.ts → pt.d.ts} +1 -1
  52. package/locales/pt.js +3 -1
  53. package/locales/{ro/index.d.ts → ro.d.ts} +1 -1
  54. package/locales/ro.js +3 -1
  55. package/locales/{ru/index.d.ts → ru.d.ts} +1 -1
  56. package/locales/ru.js +3 -1
  57. package/locales/{sk/index.d.ts → sk.d.ts} +1 -1
  58. package/locales/sk.js +3 -1
  59. package/locales/{sr-Cyrl-RS/index.d.ts → sr-Cyrl-RS.d.ts} +1 -1
  60. package/locales/sr-Cyrl-RS.js +3 -1
  61. package/locales/{sr-Latn-RS/index.d.ts → sr-Latn-RS.d.ts} +1 -1
  62. package/locales/sr-Latn-RS.js +3 -1
  63. package/locales/{sv/index.d.ts → sv.d.ts} +1 -1
  64. package/locales/sv.js +3 -1
  65. package/locales/{tr/index.d.ts → tr.d.ts} +1 -1
  66. package/locales/tr.js +3 -1
  67. package/locales/{uk/index.d.ts → uk.d.ts} +1 -1
  68. package/locales/uk.js +3 -1
  69. package/locales/{vi/index.d.ts → vi.d.ts} +1 -1
  70. package/locales/vi.js +3 -1
  71. package/locales/{zh-Hans/index.d.ts → zh-Hans.d.ts} +1 -1
  72. package/locales/zh-Hans.js +20 -18
  73. package/locales/{zh-Hans/index.esm.js → zh-Hans.mjs} +17 -17
  74. package/locales/{zh-Hant/index.d.ts → zh-Hant.d.ts} +1 -1
  75. package/locales/zh-Hant.js +3 -1
  76. package/package.json +176 -2
  77. package/src/buttons/MRT_ColumnPinningButtons.tsx +3 -3
  78. package/src/buttons/MRT_CopyButton.tsx +0 -1
  79. package/src/buttons/MRT_EditActionButtons.tsx +2 -2
  80. package/src/buttons/MRT_ExpandAllButton.tsx +0 -1
  81. package/src/buttons/MRT_ExpandButton.tsx +0 -1
  82. package/src/buttons/MRT_GrabHandleButton.tsx +0 -1
  83. package/src/buttons/MRT_RowPinButton.tsx +0 -1
  84. package/src/buttons/MRT_ShowHideColumnsButton.tsx +1 -1
  85. package/src/buttons/MRT_ToggleDensePaddingButton.tsx +1 -1
  86. package/src/buttons/MRT_ToggleFiltersButton.tsx +1 -1
  87. package/src/buttons/MRT_ToggleFullScreenButton.tsx +0 -1
  88. package/src/buttons/MRT_ToggleGlobalFilterButton.tsx +1 -1
  89. package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +1 -2
  90. package/src/head/MRT_TableHeadCellColumnActionsButton.tsx +0 -1
  91. package/src/head/MRT_TableHeadCellFilterLabel.tsx +1 -1
  92. package/src/head/MRT_TableHeadCellSortLabel.tsx +1 -1
  93. package/src/inputs/MRT_FilterCheckbox.tsx +0 -1
  94. package/src/inputs/MRT_FilterTextField.tsx +2 -2
  95. package/src/inputs/MRT_GlobalFilterTextField.tsx +2 -2
  96. package/src/inputs/MRT_SelectCheckbox.tsx +0 -1
  97. package/src/locales/zh-Hans.ts +17 -17
  98. package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +0 -1
  99. package/locales/ar/index.esm.d.ts +0 -3
  100. package/locales/ar/index.js +0 -95
  101. package/locales/ar/package.json +0 -14
  102. package/locales/az/index.esm.d.ts +0 -3
  103. package/locales/az/index.js +0 -95
  104. package/locales/az/package.json +0 -14
  105. package/locales/bg/index.esm.d.ts +0 -3
  106. package/locales/bg/index.js +0 -95
  107. package/locales/bg/package.json +0 -14
  108. package/locales/cs/index.esm.d.ts +0 -3
  109. package/locales/cs/index.js +0 -95
  110. package/locales/cs/package.json +0 -14
  111. package/locales/da/index.esm.d.ts +0 -3
  112. package/locales/da/index.js +0 -95
  113. package/locales/da/package.json +0 -14
  114. package/locales/de/index.esm.d.ts +0 -3
  115. package/locales/de/index.js +0 -95
  116. package/locales/de/package.json +0 -14
  117. package/locales/en/index.esm.d.ts +0 -3
  118. package/locales/en/index.js +0 -95
  119. package/locales/en/package.json +0 -14
  120. package/locales/es/index.esm.d.ts +0 -3
  121. package/locales/es/index.js +0 -95
  122. package/locales/es/package.json +0 -14
  123. package/locales/et/index.esm.d.ts +0 -3
  124. package/locales/et/index.js +0 -95
  125. package/locales/et/package.json +0 -14
  126. package/locales/fa/index.esm.d.ts +0 -3
  127. package/locales/fa/index.js +0 -95
  128. package/locales/fa/package.json +0 -14
  129. package/locales/fi/index.esm.d.ts +0 -3
  130. package/locales/fi/index.js +0 -95
  131. package/locales/fi/package.json +0 -14
  132. package/locales/fr/index.esm.d.ts +0 -3
  133. package/locales/fr/index.js +0 -95
  134. package/locales/fr/package.json +0 -14
  135. package/locales/hu/index.esm.d.ts +0 -3
  136. package/locales/hu/index.js +0 -95
  137. package/locales/hu/package.json +0 -14
  138. package/locales/hy/index.esm.d.ts +0 -3
  139. package/locales/hy/index.js +0 -95
  140. package/locales/hy/package.json +0 -14
  141. package/locales/id/index.esm.d.ts +0 -3
  142. package/locales/id/index.js +0 -95
  143. package/locales/id/package.json +0 -14
  144. package/locales/it/index.esm.d.ts +0 -3
  145. package/locales/it/index.js +0 -95
  146. package/locales/it/package.json +0 -14
  147. package/locales/ja/index.esm.d.ts +0 -3
  148. package/locales/ja/index.js +0 -95
  149. package/locales/ja/package.json +0 -14
  150. package/locales/ko/index.esm.d.ts +0 -3
  151. package/locales/ko/index.js +0 -95
  152. package/locales/ko/package.json +0 -14
  153. package/locales/nl/index.esm.d.ts +0 -3
  154. package/locales/nl/index.js +0 -95
  155. package/locales/nl/package.json +0 -14
  156. package/locales/no/index.esm.d.ts +0 -3
  157. package/locales/no/index.js +0 -95
  158. package/locales/no/package.json +0 -14
  159. package/locales/np/index.esm.d.ts +0 -3
  160. package/locales/np/index.js +0 -95
  161. package/locales/np/package.json +0 -14
  162. package/locales/pl/index.esm.d.ts +0 -3
  163. package/locales/pl/index.js +0 -95
  164. package/locales/pl/package.json +0 -14
  165. package/locales/pt/index.esm.d.ts +0 -3
  166. package/locales/pt/index.js +0 -95
  167. package/locales/pt/package.json +0 -14
  168. package/locales/pt-BR/index.esm.d.ts +0 -3
  169. package/locales/pt-BR/index.js +0 -95
  170. package/locales/pt-BR/package.json +0 -14
  171. package/locales/ro/index.esm.d.ts +0 -3
  172. package/locales/ro/index.js +0 -95
  173. package/locales/ro/package.json +0 -14
  174. package/locales/ru/index.esm.d.ts +0 -3
  175. package/locales/ru/index.js +0 -95
  176. package/locales/ru/package.json +0 -14
  177. package/locales/sk/index.esm.d.ts +0 -3
  178. package/locales/sk/index.js +0 -95
  179. package/locales/sk/package.json +0 -14
  180. package/locales/sr-Cyrl-RS/index.esm.d.ts +0 -3
  181. package/locales/sr-Cyrl-RS/index.js +0 -95
  182. package/locales/sr-Cyrl-RS/package.json +0 -14
  183. package/locales/sr-Latn-RS/index.esm.d.ts +0 -3
  184. package/locales/sr-Latn-RS/index.js +0 -95
  185. package/locales/sr-Latn-RS/package.json +0 -14
  186. package/locales/sv/index.esm.d.ts +0 -3
  187. package/locales/sv/index.js +0 -95
  188. package/locales/sv/package.json +0 -14
  189. package/locales/tr/index.esm.d.ts +0 -3
  190. package/locales/tr/index.js +0 -95
  191. package/locales/tr/package.json +0 -14
  192. package/locales/uk/index.esm.d.ts +0 -3
  193. package/locales/uk/index.js +0 -95
  194. package/locales/uk/package.json +0 -14
  195. package/locales/vi/index.esm.d.ts +0 -3
  196. package/locales/vi/index.js +0 -95
  197. package/locales/vi/package.json +0 -14
  198. package/locales/zh-Hans/index.esm.d.ts +0 -3
  199. package/locales/zh-Hans/index.js +0 -95
  200. package/locales/zh-Hans/package.json +0 -14
  201. package/locales/zh-Hant/index.esm.d.ts +0 -3
  202. package/locales/zh-Hant/index.js +0 -95
  203. package/locales/zh-Hant/package.json +0 -14
  204. /package/locales/{ar/index.esm.js → ar.mjs} +0 -0
  205. /package/locales/{az/index.esm.js → az.mjs} +0 -0
  206. /package/locales/{bg/index.esm.js → bg.mjs} +0 -0
  207. /package/locales/{cs/index.esm.js → cs.mjs} +0 -0
  208. /package/locales/{da/index.esm.js → da.mjs} +0 -0
  209. /package/locales/{de/index.esm.js → de.mjs} +0 -0
  210. /package/locales/{en/index.esm.js → en.mjs} +0 -0
  211. /package/locales/{es/index.esm.js → es.mjs} +0 -0
  212. /package/locales/{et/index.esm.js → et.mjs} +0 -0
  213. /package/locales/{fa/index.esm.js → fa.mjs} +0 -0
  214. /package/locales/{fi/index.esm.js → fi.mjs} +0 -0
  215. /package/locales/{fr/index.esm.js → fr.mjs} +0 -0
  216. /package/locales/{hu/index.esm.js → hu.mjs} +0 -0
  217. /package/locales/{hy/index.esm.js → hy.mjs} +0 -0
  218. /package/locales/{id/index.esm.js → id.mjs} +0 -0
  219. /package/locales/{it/index.esm.js → it.mjs} +0 -0
  220. /package/locales/{ja/index.esm.js → ja.mjs} +0 -0
  221. /package/locales/{ko/index.esm.js → ko.mjs} +0 -0
  222. /package/locales/{nl/index.esm.js → nl.mjs} +0 -0
  223. /package/locales/{no/index.esm.js → no.mjs} +0 -0
  224. /package/locales/{np/index.esm.js → np.mjs} +0 -0
  225. /package/locales/{pl/index.esm.js → pl.mjs} +0 -0
  226. /package/locales/{pt-BR/index.esm.js → pt-BR.mjs} +0 -0
  227. /package/locales/{pt/index.esm.js → pt.mjs} +0 -0
  228. /package/locales/{ro/index.esm.js → ro.mjs} +0 -0
  229. /package/locales/{ru/index.esm.js → ru.mjs} +0 -0
  230. /package/locales/{sk/index.esm.js → sk.mjs} +0 -0
  231. /package/locales/{sr-Cyrl-RS/index.esm.js → sr-Cyrl-RS.mjs} +0 -0
  232. /package/locales/{sr-Latn-RS/index.esm.js → sr-Latn-RS.mjs} +0 -0
  233. /package/locales/{sv/index.esm.js → sv.mjs} +0 -0
  234. /package/locales/{tr/index.esm.js → tr.mjs} +0 -0
  235. /package/locales/{uk/index.esm.js → uk.mjs} +0 -0
  236. /package/locales/{vi/index.esm.js → vi.mjs} +0 -0
  237. /package/locales/{zh-Hant/index.esm.js → zh-Hant.mjs} +0 -0
package/dist/cjs/index.js CHANGED
@@ -450,7 +450,7 @@ const MRT_GrabHandleButton = (_a) => {
450
450
  var { iconButtonProps, location, onDragEnd, onDragStart, table } = _a, rest = __rest(_a, ["iconButtonProps", "location", "onDragEnd", "onDragStart", "table"]);
451
451
  const { options: { icons: { DragHandleIcon }, localization, }, } = table;
452
452
  const _iconButtonProps = Object.assign(Object.assign({}, iconButtonProps), rest);
453
- return (jsxRuntime.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: jsxRuntime.jsx(IconButton, Object.assign({ disableRipple: true, draggable: "true", size: "small" }, _iconButtonProps, { onClick: (e) => {
453
+ return (jsxRuntime.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: jsxRuntime.jsx(IconButton, Object.assign({ disableRipple: true, draggable: "true", size: "small" }, _iconButtonProps, { onClick: (e) => {
454
454
  var _a;
455
455
  e.stopPropagation();
456
456
  (_a = _iconButtonProps === null || _iconButtonProps === void 0 ? void 0 : _iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(_iconButtonProps, e);
@@ -508,7 +508,7 @@ const MRT_CopyButton = (_a) => {
508
508
  row,
509
509
  table,
510
510
  })), rest);
511
- return (jsxRuntime.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: jsxRuntime.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 })) }));
511
+ return (jsxRuntime.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: jsxRuntime.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 })) }));
512
512
  };
513
513
 
514
514
  const MRT_EditCellTextField = (_a) => {
@@ -1464,7 +1464,7 @@ const MRT_TableHeadCellColumnActionsButton = (_a) => {
1464
1464
  column,
1465
1465
  table,
1466
1466
  })), rest);
1467
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.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: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ '&:hover': {
1467
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.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: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.columnActions, onClick: handleClick, size: "small" }, iconButtonProps, { sx: (theme) => (Object.assign({ '&:hover': {
1468
1468
  opacity: 1,
1469
1469
  }, 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: jsxRuntime.jsx(MoreVertIcon, { style: { transform: 'scale(0.9)' } }) })) }), anchorEl && (jsxRuntime.jsx(MRT_ColumnActionMenu, { anchorEl: anchorEl, header: header, setAnchorEl: setAnchorEl, table: table }))] }));
1470
1470
  };
@@ -1483,7 +1483,7 @@ const MRT_FilterCheckbox = (_a) => {
1483
1483
  table,
1484
1484
  })), rest);
1485
1485
  const filterLabel = (_b = localization.filterByColumn) === null || _b === void 0 ? void 0 : _b.replace('{column}', columnDef.header);
1486
- return (jsxRuntime.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: jsxRuntime.jsx(FormControlLabel, { control: jsxRuntime.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) => {
1486
+ return (jsxRuntime.jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: (_c = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _c !== void 0 ? _c : filterLabel, children: jsxRuntime.jsx(FormControlLabel, { control: jsxRuntime.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) => {
1487
1487
  var _a;
1488
1488
  column.setFilterValue(column.getFilterValue() === undefined
1489
1489
  ? 'true'
@@ -1641,12 +1641,12 @@ const MRT_FilterTextField = (_a) => {
1641
1641
  isMultiSelectFilter,
1642
1642
  isSelectFilter,
1643
1643
  ]);
1644
- const endAdornment = !isAutocompleteFilter && !isDateFilter && !filterChipLabel ? (jsxRuntime.jsx(InputAdornment, { position: "end", sx: { mr: isSelectFilter || isMultiSelectFilter ? '20px' : undefined }, children: jsxRuntime.jsx(Tooltip, { arrow: true, placement: "right", title: (_j = localization.clearFilter) !== null && _j !== void 0 ? _j : '', children: jsxRuntime.jsx("span", { children: jsxRuntime.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: {
1644
+ const endAdornment = !isAutocompleteFilter && !isDateFilter && !filterChipLabel ? (jsxRuntime.jsx(InputAdornment, { position: "end", sx: { mr: isSelectFilter || isMultiSelectFilter ? '20px' : undefined }, children: jsxRuntime.jsx(Tooltip, { placement: "right", title: (_j = localization.clearFilter) !== null && _j !== void 0 ? _j : '', children: jsxRuntime.jsx("span", { children: jsxRuntime.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: {
1645
1645
  height: '2rem',
1646
1646
  transform: 'scale(0.9)',
1647
1647
  width: '2rem',
1648
1648
  }, children: jsxRuntime.jsx(CloseIcon, {}) }) }) }) })) : null;
1649
- const startAdornment = showChangeModeButton ? (jsxRuntime.jsxs(InputAdornment, { position: "start", children: [jsxRuntime.jsx(Tooltip, { arrow: true, title: localization.changeFilterMode, children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton, { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsxRuntime.jsx(FilterListIcon, {}) }) }) }), filterChipLabel && (jsxRuntime.jsx(Chip, { label: filterChipLabel, onDelete: handleClearEmptyFilterChip }))] })) : null;
1649
+ const startAdornment = showChangeModeButton ? (jsxRuntime.jsxs(InputAdornment, { position: "start", children: [jsxRuntime.jsx(Tooltip, { title: localization.changeFilterMode, children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton, { "aria-label": localization.changeFilterMode, onClick: handleFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsxRuntime.jsx(FilterListIcon, {}) }) }) }), filterChipLabel && (jsxRuntime.jsx(Chip, { label: filterChipLabel, onDelete: handleClearEmptyFilterChip }))] })) : null;
1650
1650
  const commonTextFieldProps = Object.assign(Object.assign({ FormHelperTextProps: {
1651
1651
  sx: {
1652
1652
  fontSize: '0.75rem',
@@ -1850,7 +1850,7 @@ const MRT_TableHeadCellFilterLabel = (_a) => {
1850
1850
  return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Grow, { in: columnFilterDisplayMode === 'popover' ||
1851
1851
  (!!filterValue && !isRangeFilter) ||
1852
1852
  (isRangeFilter && // @ts-ignore
1853
- (!!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[0]) || !!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[1]))), unmountOnExit: true, children: jsxRuntime.jsx(Box, { component: "span", sx: { flex: '0 0' }, children: jsxRuntime.jsx(Tooltip, { arrow: true, placement: "top", title: filterTooltip, children: jsxRuntime.jsx(IconButton, Object.assign({ disableRipple: true, onClick: (event) => {
1853
+ (!!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[0]) || !!(filterValue === null || filterValue === void 0 ? void 0 : filterValue[1]))), unmountOnExit: true, children: jsxRuntime.jsx(Box, { component: "span", sx: { flex: '0 0' }, children: jsxRuntime.jsx(Tooltip, { placement: "top", title: filterTooltip, children: jsxRuntime.jsx(IconButton, Object.assign({ disableRipple: true, onClick: (event) => {
1854
1854
  if (columnFilterDisplayMode === 'popover') {
1855
1855
  setAnchorEl(event.currentTarget);
1856
1856
  }
@@ -1956,7 +1956,7 @@ const MRT_TableHeadCellSortLabel = (_a) => {
1956
1956
  : column.getNextSortingOrder() === 'desc'
1957
1957
  ? localization.sortByColumnDesc.replace('{column}', columnDef.header)
1958
1958
  : localization.sortByColumnAsc.replace('{column}', columnDef.header);
1959
- return (jsxRuntime.jsx(Tooltip, { arrow: true, placement: "top", title: sortTooltip, children: jsxRuntime.jsx(Badge, { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular", children: jsxRuntime.jsx(TableSortLabel, Object.assign({ IconComponent: !isSorted
1959
+ return (jsxRuntime.jsx(Tooltip, { placement: "top", title: sortTooltip, children: jsxRuntime.jsx(Badge, { badgeContent: sorting.length > 1 ? column.getSortIndex() + 1 : 0, overlap: "circular", children: jsxRuntime.jsx(TableSortLabel, Object.assign({ IconComponent: !isSorted
1960
1960
  ? (props) => (jsxRuntime.jsx(SyncAltIcon, Object.assign({}, props, { style: {
1961
1961
  transform: 'rotate(-90deg) scaleX(0.9) translateX(-1px)',
1962
1962
  } })))
@@ -2218,7 +2218,7 @@ const MRT_GlobalFilterTextField = (_a) => {
2218
2218
  }
2219
2219
  isMounted.current = true;
2220
2220
  }, [globalFilter]);
2221
- return (jsxRuntime.jsxs(Collapse, { in: showGlobalFilter, mountOnEnter: true, orientation: "horizontal", unmountOnExit: true, children: [jsxRuntime.jsx(TextField, Object.assign({ InputProps: Object.assign(Object.assign({ endAdornment: (jsxRuntime.jsx(InputAdornment, { position: "end", children: jsxRuntime.jsx(Tooltip, { arrow: true, title: (_b = localization.clearSearch) !== null && _b !== void 0 ? _b : '', children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton, { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small", children: jsxRuntime.jsx(CloseIcon, {}) }) }) }) })), startAdornment: enableGlobalFilterModes ? (jsxRuntime.jsx(InputAdornment, { position: "start", children: jsxRuntime.jsx(Tooltip, { arrow: true, title: localization.changeSearchMode, children: jsxRuntime.jsx(IconButton, { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsxRuntime.jsx(SearchIcon, {}) }) }) })) : (jsxRuntime.jsx(SearchIcon, { style: { marginRight: '4px' } })) }, textFieldProps.InputProps), { sx: (theme) => {
2221
+ return (jsxRuntime.jsxs(Collapse, { in: showGlobalFilter, mountOnEnter: true, orientation: "horizontal", unmountOnExit: true, children: [jsxRuntime.jsx(TextField, Object.assign({ InputProps: Object.assign(Object.assign({ endAdornment: (jsxRuntime.jsx(InputAdornment, { position: "end", children: jsxRuntime.jsx(Tooltip, { title: (_b = localization.clearSearch) !== null && _b !== void 0 ? _b : '', children: jsxRuntime.jsx("span", { children: jsxRuntime.jsx(IconButton, { "aria-label": localization.clearSearch, disabled: !(searchValue === null || searchValue === void 0 ? void 0 : searchValue.length), onClick: handleClear, size: "small", children: jsxRuntime.jsx(CloseIcon, {}) }) }) }) })), startAdornment: enableGlobalFilterModes ? (jsxRuntime.jsx(InputAdornment, { position: "start", children: jsxRuntime.jsx(Tooltip, { title: localization.changeSearchMode, children: jsxRuntime.jsx(IconButton, { "aria-label": localization.changeSearchMode, onClick: handleGlobalFilterMenuOpen, size: "small", sx: { height: '1.75rem', width: '1.75rem' }, children: jsxRuntime.jsx(SearchIcon, {}) }) }) })) : (jsxRuntime.jsx(SearchIcon, { style: { marginRight: '4px' } })) }, textFieldProps.InputProps), { sx: (theme) => {
2222
2222
  var _a;
2223
2223
  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)));
2224
2224
  } }), 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) => {
@@ -2270,7 +2270,7 @@ const MRT_SelectCheckbox = (_a) => {
2270
2270
  e.stopPropagation();
2271
2271
  (_a = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.onClick) === null || _a === void 0 ? void 0 : _a.call(checkboxProps, e);
2272
2272
  }, 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 });
2273
- return (jsxRuntime.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
2273
+ return (jsxRuntime.jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: (_b = checkboxProps === null || checkboxProps === void 0 ? void 0 : checkboxProps.title) !== null && _b !== void 0 ? _b : (selectAll
2274
2274
  ? localization.toggleSelectAll
2275
2275
  : localization.toggleSelectRow), children: enableMultiRowSelection === false ? (jsxRuntime.jsx(Radio, Object.assign({}, commonProps))) : (jsxRuntime.jsx(Checkbox, Object.assign({ indeterminate: selectAll
2276
2276
  ? table.getIsSomeRowsSelected() && !allRowsSelected
@@ -2377,9 +2377,9 @@ const MRT_ColumnPinningButtons = (_a) => {
2377
2377
  const handlePinColumn = (pinDirection) => {
2378
2378
  column.pin(pinDirection);
2379
2379
  };
2380
- return (jsxRuntime.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() ? (jsxRuntime.jsx(Tooltip, { arrow: true, title: localization.unpin, children: jsxRuntime.jsx(IconButton, { onClick: () => handlePinColumn(false), size: "small", children: jsxRuntime.jsx(PushPinIcon, {}) }) })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { arrow: true, title: localization.pinToLeft, children: jsxRuntime.jsx(IconButton, { onClick: () => handlePinColumn('left'), size: "small", children: jsxRuntime.jsx(PushPinIcon, { style: {
2380
+ return (jsxRuntime.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() ? (jsxRuntime.jsx(Tooltip, { title: localization.unpin, children: jsxRuntime.jsx(IconButton, { onClick: () => handlePinColumn(false), size: "small", children: jsxRuntime.jsx(PushPinIcon, {}) }) })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { title: localization.pinToLeft, children: jsxRuntime.jsx(IconButton, { onClick: () => handlePinColumn('left'), size: "small", children: jsxRuntime.jsx(PushPinIcon, { style: {
2381
2381
  transform: 'rotate(90deg)',
2382
- } }) }) }), jsxRuntime.jsx(Tooltip, { arrow: true, title: localization.pinToRight, children: jsxRuntime.jsx(IconButton, { onClick: () => handlePinColumn('right'), size: "small", children: jsxRuntime.jsx(PushPinIcon, { style: {
2382
+ } }) }) }), jsxRuntime.jsx(Tooltip, { title: localization.pinToRight, children: jsxRuntime.jsx(IconButton, { onClick: () => handlePinColumn('right'), size: "small", children: jsxRuntime.jsx(PushPinIcon, { style: {
2383
2383
  transform: 'rotate(-90deg)',
2384
2384
  } }) }) })] })) })));
2385
2385
  };
@@ -2444,7 +2444,7 @@ const MRT_ShowHideColumnsMenuItems = (_a) => {
2444
2444
  opacity: columnDefType !== 'display' ? 1 : 0.5,
2445
2445
  },
2446
2446
  },
2447
- }, control: jsxRuntime.jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility, children: jsxRuntime.jsx(Switch, {}) }), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsxRuntime.jsx(Typography, { sx: { alignSelf: 'center' }, children: columnDef.header }))] }) })), (_b = column.columns) === null || _b === void 0 ? void 0 : _b.map((c, i) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
2447
+ }, control: jsxRuntime.jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: localization.toggleVisibility, children: jsxRuntime.jsx(Switch, {}) }), disabled: !column.getCanHide(), label: columnDef.header, onChange: () => handleToggleColumnHidden(column) })) : (jsxRuntime.jsx(Typography, { sx: { alignSelf: 'center' }, children: columnDef.header }))] }) })), (_b = column.columns) === null || _b === void 0 ? void 0 : _b.map((c, i) => (jsxRuntime.jsx(MRT_ShowHideColumnsMenuItems, { allColumns: allColumns, column: c, hoveredColumn: hoveredColumn, setHoveredColumn: setHoveredColumn, table: table }, `${i}-${c.id}`)))] }));
2448
2448
  };
2449
2449
 
2450
2450
  const MRT_ShowHideColumnsMenu = (_a) => {
@@ -2494,7 +2494,7 @@ const MRT_ShowHideColumnsButton = (_a) => {
2494
2494
  const handleClick = (event) => {
2495
2495
  setAnchorEl(event.currentTarget);
2496
2496
  };
2497
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined, children: jsxRuntime.jsx(ViewColumnIcon, {}) })) }), anchorEl && (jsxRuntime.jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
2497
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideColumns, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.showHideColumns, onClick: handleClick }, rest, { title: undefined, children: jsxRuntime.jsx(ViewColumnIcon, {}) })) }), anchorEl && (jsxRuntime.jsx(MRT_ShowHideColumnsMenu, { anchorEl: anchorEl, setAnchorEl: setAnchorEl, table: table }))] }));
2498
2498
  };
2499
2499
 
2500
2500
  const MRT_ToggleDensePaddingButton = (_a) => {
@@ -2510,7 +2510,7 @@ const MRT_ToggleDensePaddingButton = (_a) => {
2510
2510
  : 'comfortable';
2511
2511
  setDensity(nextDensity);
2512
2512
  };
2513
- return (jsxRuntime.jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined, children: density === 'compact' ? (jsxRuntime.jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsxRuntime.jsx(DensityMediumIcon, {})) : (jsxRuntime.jsx(DensityLargeIcon, {})) })) }));
2513
+ return (jsxRuntime.jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleDensity, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.toggleDensity, onClick: handleToggleDensePadding }, rest, { title: undefined, children: density === 'compact' ? (jsxRuntime.jsx(DensitySmallIcon, {})) : density === 'comfortable' ? (jsxRuntime.jsx(DensityMediumIcon, {})) : (jsxRuntime.jsx(DensityLargeIcon, {})) })) }));
2514
2514
  };
2515
2515
 
2516
2516
  const MRT_ToggleFiltersButton = (_a) => {
@@ -2521,7 +2521,7 @@ const MRT_ToggleFiltersButton = (_a) => {
2521
2521
  const handleToggleShowFilters = () => {
2522
2522
  setShowColumnFilters(!showColumnFilters);
2523
2523
  };
2524
- return (jsxRuntime.jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined, children: showColumnFilters ? jsxRuntime.jsx(FilterListOffIcon, {}) : jsxRuntime.jsx(FilterListIcon, {}) })) }));
2524
+ return (jsxRuntime.jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideFilters, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.showHideFilters, onClick: handleToggleShowFilters }, rest, { title: undefined, children: showColumnFilters ? jsxRuntime.jsx(FilterListOffIcon, {}) : jsxRuntime.jsx(FilterListIcon, {}) })) }));
2525
2525
  };
2526
2526
 
2527
2527
  const MRT_ToggleFullScreenButton = (_a) => {
@@ -2534,7 +2534,7 @@ const MRT_ToggleFullScreenButton = (_a) => {
2534
2534
  setTooltipOpened(false);
2535
2535
  setIsFullScreen(!isFullScreen);
2536
2536
  };
2537
- return (jsxRuntime.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: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.toggleFullScreen, onClick: handleToggleFullScreen, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false) }, rest, { title: undefined, children: isFullScreen ? jsxRuntime.jsx(FullscreenExitIcon, {}) : jsxRuntime.jsx(FullscreenIcon, {}) })) }));
2537
+ return (jsxRuntime.jsx(Tooltip, { open: tooltipOpened, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.toggleFullScreen, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.toggleFullScreen, onClick: handleToggleFullScreen, onMouseEnter: () => setTooltipOpened(true), onMouseLeave: () => setTooltipOpened(false) }, rest, { title: undefined, children: isFullScreen ? jsxRuntime.jsx(FullscreenExitIcon, {}) : jsxRuntime.jsx(FullscreenIcon, {}) })) }));
2538
2538
  };
2539
2539
 
2540
2540
  const MRT_ToggleGlobalFilterButton = (_a) => {
@@ -2546,7 +2546,7 @@ const MRT_ToggleGlobalFilterButton = (_a) => {
2546
2546
  setShowGlobalFilter(!showGlobalFilter);
2547
2547
  queueMicrotask(() => { var _a; return (_a = searchInputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
2548
2548
  };
2549
- return (jsxRuntime.jsx(Tooltip, { arrow: true, title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch, children: jsxRuntime.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 ? jsxRuntime.jsx(SearchOffIcon, {}) : jsxRuntime.jsx(SearchIcon, {}) })) }));
2549
+ return (jsxRuntime.jsx(Tooltip, { title: (_b = rest === null || rest === void 0 ? void 0 : rest.title) !== null && _b !== void 0 ? _b : localization.showHideSearch, children: jsxRuntime.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 ? jsxRuntime.jsx(SearchOffIcon, {}) : jsxRuntime.jsx(SearchIcon, {}) })) }));
2550
2550
  };
2551
2551
 
2552
2552
  const MRT_ToolbarInternalButtons = (_a) => {
@@ -2756,7 +2756,7 @@ const MRT_EditActionButtons = (_a) => {
2756
2756
  });
2757
2757
  }
2758
2758
  };
2759
- return (jsxRuntime.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' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { arrow: true, title: localization.cancel, children: jsxRuntime.jsx(IconButton, { "aria-label": localization.cancel, onClick: handleCancel, children: jsxRuntime.jsx(CancelIcon, {}) }) }), jsxRuntime.jsx(Tooltip, { arrow: true, title: localization.save, children: jsxRuntime.jsx(IconButton, { "aria-label": localization.save, color: "info", onClick: handleSubmitRow, children: isSaving ? jsxRuntime.jsx(CircularProgress, { size: 18 }) : jsxRuntime.jsx(SaveIcon, {}) }) })] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button, { onClick: handleCancel, sx: { minWidth: '100px' }, children: localization.cancel }), jsxRuntime.jsxs(Button, { onClick: handleSubmitRow, sx: { minWidth: '100px' }, variant: "contained", children: [isSaving && jsxRuntime.jsx(CircularProgress, { color: "inherit", size: 18 }), localization.save] })] })) }));
2759
+ return (jsxRuntime.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' ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { title: localization.cancel, children: jsxRuntime.jsx(IconButton, { "aria-label": localization.cancel, onClick: handleCancel, children: jsxRuntime.jsx(CancelIcon, {}) }) }), jsxRuntime.jsx(Tooltip, { title: localization.save, children: jsxRuntime.jsx(IconButton, { "aria-label": localization.save, color: "info", onClick: handleSubmitRow, children: isSaving ? jsxRuntime.jsx(CircularProgress, { size: 18 }) : jsxRuntime.jsx(SaveIcon, {}) }) })] })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Button, { onClick: handleCancel, sx: { minWidth: '100px' }, children: localization.cancel }), jsxRuntime.jsxs(Button, { onClick: handleSubmitRow, sx: { minWidth: '100px' }, variant: "contained", children: [isSaving && jsxRuntime.jsx(CircularProgress, { color: "inherit", size: 18 }), localization.save] })] })) }));
2760
2760
  };
2761
2761
 
2762
2762
  const MRT_EditRowModal = (_a) => {
@@ -2879,7 +2879,7 @@ const MRT_RowPinButton = (_a) => {
2879
2879
  event.stopPropagation();
2880
2880
  row.pin(isPinned ? false : pinningPosition);
2881
2881
  };
2882
- return (jsxRuntime.jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, open: tooltipOpened, title: isPinned ? localization.unpin : localization.pin, children: jsxRuntime.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 ? (jsxRuntime.jsx(CloseIcon, {})) : (jsxRuntime.jsx(PushPinIcon, { fontSize: "small", style: {
2882
+ return (jsxRuntime.jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, open: tooltipOpened, title: isPinned ? localization.unpin : localization.pin, children: jsxRuntime.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 ? (jsxRuntime.jsx(CloseIcon, {})) : (jsxRuntime.jsx(PushPinIcon, { fontSize: "small", style: {
2883
2883
  transform: `rotate(${rowPinningDisplayMode === 'sticky'
2884
2884
  ? 135
2885
2885
  : pinningPosition === 'top'
@@ -2915,7 +2915,7 @@ const MRT_ExpandAllButton = (_a) => {
2915
2915
  table,
2916
2916
  })), rest);
2917
2917
  const isAllRowsExpanded = getIsAllRowsExpanded();
2918
- return (jsxRuntime.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: jsxRuntime.jsx("span", { children: jsxRuntime.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 : (jsxRuntime.jsx(KeyboardDoubleArrowDownIcon, { style: {
2918
+ return (jsxRuntime.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: jsxRuntime.jsx("span", { children: jsxRuntime.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 : (jsxRuntime.jsx(KeyboardDoubleArrowDownIcon, { style: {
2919
2919
  transform: `rotate(${isAllRowsExpanded ? -180 : getIsSomeRowsExpanded() ? -90 : 0}deg)`,
2920
2920
  transition: 'transform 150ms',
2921
2921
  } })) })) }) }));
@@ -2937,7 +2937,7 @@ const MRT_ExpandButton = ({ row, table, }) => {
2937
2937
  row.toggleExpanded();
2938
2938
  (_a = iconButtonProps === null || iconButtonProps === void 0 ? void 0 : iconButtonProps.onClick) === null || _a === void 0 ? void 0 : _a.call(iconButtonProps, event);
2939
2939
  };
2940
- return (jsxRuntime.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: jsxRuntime.jsx("span", { children: jsxRuntime.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 : (jsxRuntime.jsx(ExpandMoreIcon, { style: {
2940
+ return (jsxRuntime.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: jsxRuntime.jsx("span", { children: jsxRuntime.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 : (jsxRuntime.jsx(ExpandMoreIcon, { style: {
2941
2941
  transform: `rotate(${!canExpand && !renderDetailPanel ? -90 : isExpanded ? -180 : 0}deg)`,
2942
2942
  transition: 'transform 150ms',
2943
2943
  } })) })) }) }));
@@ -2987,7 +2987,7 @@ const MRT_ToggleRowActionMenuButton = (_a) => {
2987
2987
  };
2988
2988
  return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderRowActions && !showEditActionButtons ? (renderRowActions({ cell, row, table })) : showEditActionButtons ? (jsxRuntime.jsx(MRT_EditActionButtons, { row: row, table: table })) : !renderRowActionMenuItems &&
2989
2989
  parseFromValuesOrFunc(enableEditing, row) &&
2990
- ['modal', 'row'].includes(editDisplayMode) ? (jsxRuntime.jsx(Tooltip, { arrow: true, placement: "right", title: localization.edit, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.edit, onClick: handleStartEditMode, sx: commonIconButtonStyles }, rest, { children: jsxRuntime.jsx(EditIcon, {}) })) })) : renderRowActionMenuItems ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { arrow: true, enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, rest, { children: jsxRuntime.jsx(MoreHorizIcon, {}) })) }), jsxRuntime.jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table })] })) : null }));
2990
+ ['modal', 'row'].includes(editDisplayMode) ? (jsxRuntime.jsx(Tooltip, { placement: "right", title: localization.edit, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.edit, onClick: handleStartEditMode, sx: commonIconButtonStyles }, rest, { children: jsxRuntime.jsx(EditIcon, {}) })) })) : renderRowActionMenuItems ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Tooltip, { enterDelay: 1000, enterNextDelay: 1000, title: localization.rowActions, children: jsxRuntime.jsx(IconButton, Object.assign({ "aria-label": localization.rowActions, onClick: handleOpenRowActionMenu, size: "small", sx: commonIconButtonStyles }, rest, { children: jsxRuntime.jsx(MoreHorizIcon, {}) })) }), jsxRuntime.jsx(MRT_RowActionMenu, { anchorEl: anchorEl, handleEdit: handleStartEditMode, row: row, setAnchorEl: setAnchorEl, table: table })] })) : null }));
2991
2991
  };
2992
2992
 
2993
2993
  const MRT_AggregationFns = Object.assign({}, reactTable.aggregationFns);