material-react-table 1.11.4 → 1.12.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/index.js +770 -1004
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/MaterialReactTable.d.ts +4 -743
  5. package/dist/cjs/types/_locales/cs.d.ts +1 -1
  6. package/dist/cjs/types/_locales/da.d.ts +1 -1
  7. package/dist/cjs/types/_locales/de.d.ts +1 -1
  8. package/dist/cjs/types/_locales/en.d.ts +1 -1
  9. package/dist/cjs/types/_locales/es.d.ts +1 -1
  10. package/dist/cjs/types/_locales/fa.d.ts +1 -1
  11. package/dist/cjs/types/_locales/fi.d.ts +1 -1
  12. package/dist/cjs/types/_locales/fr.d.ts +1 -1
  13. package/dist/cjs/types/_locales/hu.d.ts +1 -1
  14. package/dist/cjs/types/_locales/id.d.ts +1 -1
  15. package/dist/cjs/types/_locales/it.d.ts +1 -1
  16. package/dist/cjs/types/_locales/ja.d.ts +1 -1
  17. package/dist/cjs/types/_locales/nl.d.ts +1 -1
  18. package/dist/cjs/types/_locales/pl.d.ts +1 -1
  19. package/dist/cjs/types/_locales/pt-BR.d.ts +1 -1
  20. package/dist/cjs/types/_locales/pt.d.ts +1 -1
  21. package/dist/cjs/types/_locales/ro.d.ts +1 -1
  22. package/dist/cjs/types/_locales/ru.d.ts +1 -1
  23. package/dist/cjs/types/_locales/sk.d.ts +1 -1
  24. package/dist/cjs/types/_locales/sr-Cyrl-RS.d.ts +1 -1
  25. package/dist/cjs/types/_locales/sr-Latn-RS.d.ts +1 -1
  26. package/dist/cjs/types/_locales/sv.d.ts +1 -1
  27. package/dist/cjs/types/_locales/tr.d.ts +1 -1
  28. package/dist/cjs/types/_locales/uk.d.ts +1 -1
  29. package/dist/cjs/types/_locales/vi.d.ts +1 -1
  30. package/dist/cjs/types/_locales/zh-Hans.d.ts +1 -1
  31. package/dist/cjs/types/_locales/zh-Hant.d.ts +1 -1
  32. package/dist/cjs/types/body/MRT_EditRowModal.d.ts +2 -3
  33. package/dist/cjs/types/body/MRT_TableBody.d.ts +4 -4
  34. package/dist/cjs/types/body/MRT_TableBodyCell.d.ts +5 -5
  35. package/dist/cjs/types/body/MRT_TableBodyCellValue.d.ts +2 -3
  36. package/dist/cjs/types/body/MRT_TableBodyRow.d.ts +5 -5
  37. package/dist/cjs/types/body/MRT_TableBodyRowGrabHandle.d.ts +3 -3
  38. package/dist/cjs/types/body/MRT_TableDetailPanel.d.ts +4 -4
  39. package/dist/cjs/types/buttons/MRT_ColumnPinningButtons.d.ts +2 -3
  40. package/dist/cjs/types/buttons/MRT_CopyButton.d.ts +3 -3
  41. package/dist/cjs/types/buttons/MRT_EditActionButtons.d.ts +2 -3
  42. package/dist/cjs/types/buttons/MRT_ExpandAllButton.d.ts +2 -3
  43. package/dist/cjs/types/buttons/MRT_ExpandButton.d.ts +2 -3
  44. package/dist/cjs/types/buttons/MRT_FullScreenToggleButton.d.ts +3 -4
  45. package/dist/cjs/types/buttons/MRT_GrabHandleButton.d.ts +4 -4
  46. package/dist/cjs/types/buttons/MRT_ShowHideColumnsButton.d.ts +3 -4
  47. package/dist/cjs/types/buttons/MRT_ToggleDensePaddingButton.d.ts +3 -4
  48. package/dist/cjs/types/buttons/MRT_ToggleFiltersButton.d.ts +3 -4
  49. package/dist/cjs/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +3 -4
  50. package/dist/cjs/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +2 -3
  51. package/dist/cjs/types/column.utils.d.ts +10 -10
  52. package/dist/cjs/types/filterFns.d.ts +1 -1
  53. package/dist/cjs/types/footer/MRT_TableFooter.d.ts +3 -4
  54. package/dist/cjs/types/footer/MRT_TableFooterCell.d.ts +2 -3
  55. package/dist/cjs/types/footer/MRT_TableFooterRow.d.ts +3 -4
  56. package/dist/cjs/types/head/MRT_TableHead.d.ts +3 -4
  57. package/dist/cjs/types/head/MRT_TableHeadCell.d.ts +2 -3
  58. package/dist/cjs/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +2 -3
  59. package/dist/cjs/types/head/MRT_TableHeadCellFilterContainer.d.ts +2 -3
  60. package/dist/cjs/types/head/MRT_TableHeadCellFilterLabel.d.ts +2 -3
  61. package/dist/cjs/types/head/MRT_TableHeadCellGrabHandle.d.ts +3 -3
  62. package/dist/cjs/types/head/MRT_TableHeadCellResizeHandle.d.ts +2 -3
  63. package/dist/cjs/types/head/MRT_TableHeadCellSortLabel.d.ts +3 -4
  64. package/dist/cjs/types/head/MRT_TableHeadRow.d.ts +3 -4
  65. package/dist/cjs/types/index.d.ts +6 -4
  66. package/dist/cjs/types/inputs/MRT_EditCellTextField.d.ts +2 -3
  67. package/dist/cjs/types/inputs/MRT_FilterCheckbox.d.ts +2 -3
  68. package/dist/cjs/types/inputs/MRT_FilterRangeFields.d.ts +2 -3
  69. package/dist/cjs/types/inputs/MRT_FilterTextField.d.ts +2 -3
  70. package/dist/cjs/types/inputs/MRT_GlobalFilterTextField.d.ts +2 -3
  71. package/dist/cjs/types/inputs/MRT_SelectCheckbox.d.ts +2 -3
  72. package/dist/cjs/types/menus/MRT_ColumnActionMenu.d.ts +2 -3
  73. package/dist/cjs/types/menus/MRT_FilterOptionMenu.d.ts +2 -3
  74. package/dist/cjs/types/menus/MRT_RowActionMenu.d.ts +3 -3
  75. package/dist/cjs/types/menus/MRT_ShowHideColumnsMenu.d.ts +2 -3
  76. package/dist/cjs/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +3 -3
  77. package/dist/cjs/types/sortingFns.d.ts +17 -17
  78. package/dist/cjs/types/table/MRT_Table.d.ts +2 -3
  79. package/dist/cjs/types/table/MRT_TableContainer.d.ts +2 -3
  80. package/dist/cjs/types/table/MRT_TablePaper.d.ts +2 -3
  81. package/dist/cjs/types/toolbar/MRT_BottomToolbar.d.ts +2 -3
  82. package/dist/cjs/types/toolbar/MRT_LinearProgressBar.d.ts +2 -3
  83. package/dist/cjs/types/toolbar/MRT_TablePagination.d.ts +2 -3
  84. package/dist/cjs/types/toolbar/MRT_ToolbarAlertBanner.d.ts +2 -3
  85. package/dist/cjs/types/toolbar/MRT_ToolbarDropZone.d.ts +2 -3
  86. package/dist/cjs/types/toolbar/MRT_ToolbarInternalButtons.d.ts +2 -3
  87. package/dist/cjs/types/toolbar/MRT_TopToolbar.d.ts +3 -4
  88. package/dist/cjs/types/types.d.ts +745 -0
  89. package/dist/esm/material-react-table.esm.js +691 -925
  90. package/dist/esm/material-react-table.esm.js.map +1 -1
  91. package/dist/esm/types/MaterialReactTable.d.ts +4 -743
  92. package/dist/esm/types/_locales/cs.d.ts +1 -1
  93. package/dist/esm/types/_locales/da.d.ts +1 -1
  94. package/dist/esm/types/_locales/de.d.ts +1 -1
  95. package/dist/esm/types/_locales/en.d.ts +1 -1
  96. package/dist/esm/types/_locales/es.d.ts +1 -1
  97. package/dist/esm/types/_locales/fa.d.ts +1 -1
  98. package/dist/esm/types/_locales/fi.d.ts +1 -1
  99. package/dist/esm/types/_locales/fr.d.ts +1 -1
  100. package/dist/esm/types/_locales/hu.d.ts +1 -1
  101. package/dist/esm/types/_locales/id.d.ts +1 -1
  102. package/dist/esm/types/_locales/it.d.ts +1 -1
  103. package/dist/esm/types/_locales/ja.d.ts +1 -1
  104. package/dist/esm/types/_locales/nl.d.ts +1 -1
  105. package/dist/esm/types/_locales/pl.d.ts +1 -1
  106. package/dist/esm/types/_locales/pt-BR.d.ts +1 -1
  107. package/dist/esm/types/_locales/pt.d.ts +1 -1
  108. package/dist/esm/types/_locales/ro.d.ts +1 -1
  109. package/dist/esm/types/_locales/ru.d.ts +1 -1
  110. package/dist/esm/types/_locales/sk.d.ts +1 -1
  111. package/dist/esm/types/_locales/sr-Cyrl-RS.d.ts +1 -1
  112. package/dist/esm/types/_locales/sr-Latn-RS.d.ts +1 -1
  113. package/dist/esm/types/_locales/sv.d.ts +1 -1
  114. package/dist/esm/types/_locales/tr.d.ts +1 -1
  115. package/dist/esm/types/_locales/uk.d.ts +1 -1
  116. package/dist/esm/types/_locales/vi.d.ts +1 -1
  117. package/dist/esm/types/_locales/zh-Hans.d.ts +1 -1
  118. package/dist/esm/types/_locales/zh-Hant.d.ts +1 -1
  119. package/dist/esm/types/body/MRT_EditRowModal.d.ts +2 -3
  120. package/dist/esm/types/body/MRT_TableBody.d.ts +4 -4
  121. package/dist/esm/types/body/MRT_TableBodyCell.d.ts +5 -5
  122. package/dist/esm/types/body/MRT_TableBodyCellValue.d.ts +2 -3
  123. package/dist/esm/types/body/MRT_TableBodyRow.d.ts +5 -5
  124. package/dist/esm/types/body/MRT_TableBodyRowGrabHandle.d.ts +3 -3
  125. package/dist/esm/types/body/MRT_TableDetailPanel.d.ts +4 -4
  126. package/dist/esm/types/buttons/MRT_ColumnPinningButtons.d.ts +2 -3
  127. package/dist/esm/types/buttons/MRT_CopyButton.d.ts +3 -3
  128. package/dist/esm/types/buttons/MRT_EditActionButtons.d.ts +2 -3
  129. package/dist/esm/types/buttons/MRT_ExpandAllButton.d.ts +2 -3
  130. package/dist/esm/types/buttons/MRT_ExpandButton.d.ts +2 -3
  131. package/dist/esm/types/buttons/MRT_FullScreenToggleButton.d.ts +3 -4
  132. package/dist/esm/types/buttons/MRT_GrabHandleButton.d.ts +4 -4
  133. package/dist/esm/types/buttons/MRT_ShowHideColumnsButton.d.ts +3 -4
  134. package/dist/esm/types/buttons/MRT_ToggleDensePaddingButton.d.ts +3 -4
  135. package/dist/esm/types/buttons/MRT_ToggleFiltersButton.d.ts +3 -4
  136. package/dist/esm/types/buttons/MRT_ToggleGlobalFilterButton.d.ts +3 -4
  137. package/dist/esm/types/buttons/MRT_ToggleRowActionMenuButton.d.ts +2 -3
  138. package/dist/esm/types/column.utils.d.ts +10 -10
  139. package/dist/esm/types/filterFns.d.ts +1 -1
  140. package/dist/esm/types/footer/MRT_TableFooter.d.ts +3 -4
  141. package/dist/esm/types/footer/MRT_TableFooterCell.d.ts +2 -3
  142. package/dist/esm/types/footer/MRT_TableFooterRow.d.ts +3 -4
  143. package/dist/esm/types/head/MRT_TableHead.d.ts +3 -4
  144. package/dist/esm/types/head/MRT_TableHeadCell.d.ts +2 -3
  145. package/dist/esm/types/head/MRT_TableHeadCellColumnActionsButton.d.ts +2 -3
  146. package/dist/esm/types/head/MRT_TableHeadCellFilterContainer.d.ts +2 -3
  147. package/dist/esm/types/head/MRT_TableHeadCellFilterLabel.d.ts +2 -3
  148. package/dist/esm/types/head/MRT_TableHeadCellGrabHandle.d.ts +3 -3
  149. package/dist/esm/types/head/MRT_TableHeadCellResizeHandle.d.ts +2 -3
  150. package/dist/esm/types/head/MRT_TableHeadCellSortLabel.d.ts +3 -4
  151. package/dist/esm/types/head/MRT_TableHeadRow.d.ts +3 -4
  152. package/dist/esm/types/index.d.ts +6 -4
  153. package/dist/esm/types/inputs/MRT_EditCellTextField.d.ts +2 -3
  154. package/dist/esm/types/inputs/MRT_FilterCheckbox.d.ts +2 -3
  155. package/dist/esm/types/inputs/MRT_FilterRangeFields.d.ts +2 -3
  156. package/dist/esm/types/inputs/MRT_FilterTextField.d.ts +2 -3
  157. package/dist/esm/types/inputs/MRT_GlobalFilterTextField.d.ts +2 -3
  158. package/dist/esm/types/inputs/MRT_SelectCheckbox.d.ts +2 -3
  159. package/dist/esm/types/menus/MRT_ColumnActionMenu.d.ts +2 -3
  160. package/dist/esm/types/menus/MRT_FilterOptionMenu.d.ts +2 -3
  161. package/dist/esm/types/menus/MRT_RowActionMenu.d.ts +3 -3
  162. package/dist/esm/types/menus/MRT_ShowHideColumnsMenu.d.ts +2 -3
  163. package/dist/esm/types/menus/MRT_ShowHideColumnsMenuItems.d.ts +3 -3
  164. package/dist/esm/types/sortingFns.d.ts +17 -17
  165. package/dist/esm/types/table/MRT_Table.d.ts +2 -3
  166. package/dist/esm/types/table/MRT_TableContainer.d.ts +2 -3
  167. package/dist/esm/types/table/MRT_TablePaper.d.ts +2 -3
  168. package/dist/esm/types/toolbar/MRT_BottomToolbar.d.ts +2 -3
  169. package/dist/esm/types/toolbar/MRT_LinearProgressBar.d.ts +2 -3
  170. package/dist/esm/types/toolbar/MRT_TablePagination.d.ts +2 -3
  171. package/dist/esm/types/toolbar/MRT_ToolbarAlertBanner.d.ts +2 -3
  172. package/dist/esm/types/toolbar/MRT_ToolbarDropZone.d.ts +2 -3
  173. package/dist/esm/types/toolbar/MRT_ToolbarInternalButtons.d.ts +2 -3
  174. package/dist/esm/types/toolbar/MRT_TopToolbar.d.ts +3 -4
  175. package/dist/esm/types/types.d.ts +745 -0
  176. package/dist/index.d.ts +40 -35
  177. package/locales/cs.d.ts +1 -1
  178. package/locales/cs.esm.d.ts +1 -1
  179. package/locales/da.d.ts +1 -1
  180. package/locales/da.esm.d.ts +1 -1
  181. package/locales/de.d.ts +1 -1
  182. package/locales/de.esm.d.ts +1 -1
  183. package/locales/en.d.ts +1 -1
  184. package/locales/en.esm.d.ts +1 -1
  185. package/locales/es.d.ts +1 -1
  186. package/locales/es.esm.d.ts +1 -1
  187. package/locales/fa.d.ts +1 -1
  188. package/locales/fa.esm.d.ts +1 -1
  189. package/locales/fi.d.ts +1 -1
  190. package/locales/fi.esm.d.ts +1 -1
  191. package/locales/fr.d.ts +1 -1
  192. package/locales/fr.esm.d.ts +1 -1
  193. package/locales/hu.d.ts +1 -1
  194. package/locales/hu.esm.d.ts +1 -1
  195. package/locales/id.d.ts +1 -1
  196. package/locales/id.esm.d.ts +1 -1
  197. package/locales/it.d.ts +1 -1
  198. package/locales/it.esm.d.ts +1 -1
  199. package/locales/ja.d.ts +1 -1
  200. package/locales/ja.esm.d.ts +1 -1
  201. package/locales/nl.d.ts +1 -1
  202. package/locales/nl.esm.d.ts +1 -1
  203. package/locales/pl.d.ts +1 -1
  204. package/locales/pl.esm.d.ts +1 -1
  205. package/locales/pt-BR.d.ts +1 -1
  206. package/locales/pt-BR.esm.d.ts +1 -1
  207. package/locales/pt.d.ts +1 -1
  208. package/locales/pt.esm.d.ts +1 -1
  209. package/locales/ro.d.ts +1 -1
  210. package/locales/ro.esm.d.ts +1 -1
  211. package/locales/ru.d.ts +1 -1
  212. package/locales/ru.esm.d.ts +1 -1
  213. package/locales/sk.d.ts +1 -1
  214. package/locales/sk.esm.d.ts +1 -1
  215. package/locales/sr-Cyrl-RS.d.ts +1 -1
  216. package/locales/sr-Cyrl-RS.esm.d.ts +1 -1
  217. package/locales/sr-Latn-RS.d.ts +1 -1
  218. package/locales/sr-Latn-RS.esm.d.ts +1 -1
  219. package/locales/sv.d.ts +1 -1
  220. package/locales/sv.esm.d.ts +1 -1
  221. package/locales/tr.d.ts +1 -1
  222. package/locales/tr.esm.d.ts +1 -1
  223. package/locales/uk.d.ts +1 -1
  224. package/locales/uk.esm.d.ts +1 -1
  225. package/locales/vi.d.ts +1 -1
  226. package/locales/vi.esm.d.ts +1 -1
  227. package/locales/zh-Hans.d.ts +1 -1
  228. package/locales/zh-Hans.esm.d.ts +1 -1
  229. package/locales/zh-Hant.d.ts +1 -1
  230. package/locales/zh-Hant.esm.d.ts +1 -1
  231. package/package.json +35 -17
  232. package/src/MaterialReactTable.tsx +10 -984
  233. package/src/_locales/cs.ts +1 -1
  234. package/src/_locales/da.ts +1 -1
  235. package/src/_locales/de.ts +1 -1
  236. package/src/_locales/en.ts +1 -1
  237. package/src/_locales/es.ts +1 -1
  238. package/src/_locales/fa.ts +1 -1
  239. package/src/_locales/fi.ts +1 -1
  240. package/src/_locales/fr.ts +1 -1
  241. package/src/_locales/hu.ts +1 -1
  242. package/src/_locales/id.ts +1 -1
  243. package/src/_locales/it.ts +1 -1
  244. package/src/_locales/ja.ts +1 -1
  245. package/src/_locales/nl.ts +1 -1
  246. package/src/_locales/pl.ts +1 -1
  247. package/src/_locales/pt-BR.ts +1 -1
  248. package/src/_locales/pt.ts +1 -1
  249. package/src/_locales/ro.ts +1 -1
  250. package/src/_locales/ru.ts +1 -1
  251. package/src/_locales/sk.ts +1 -1
  252. package/src/_locales/sr-Cyrl-RS.ts +1 -1
  253. package/src/_locales/sr-Latn-RS.ts +1 -1
  254. package/src/_locales/sv.ts +1 -1
  255. package/src/_locales/tr.ts +1 -1
  256. package/src/_locales/uk.ts +1 -1
  257. package/src/_locales/vi.ts +1 -1
  258. package/src/_locales/zh-Hans.ts +1 -1
  259. package/src/_locales/zh-Hant.ts +1 -1
  260. package/src/body/MRT_EditRowModal.tsx +1 -2
  261. package/src/body/MRT_TableBody.tsx +2 -2
  262. package/src/body/MRT_TableBodyCell.tsx +6 -6
  263. package/src/body/MRT_TableBodyCellValue.tsx +2 -2
  264. package/src/body/MRT_TableBodyRow.tsx +3 -3
  265. package/src/body/MRT_TableBodyRowGrabHandle.tsx +2 -2
  266. package/src/body/MRT_TableDetailPanel.tsx +3 -3
  267. package/src/buttons/MRT_ColumnPinningButtons.tsx +1 -2
  268. package/src/buttons/MRT_CopyButton.tsx +2 -2
  269. package/src/buttons/MRT_EditActionButtons.tsx +1 -2
  270. package/src/buttons/MRT_ExpandAllButton.tsx +1 -2
  271. package/src/buttons/MRT_ExpandButton.tsx +2 -2
  272. package/src/buttons/MRT_FullScreenToggleButton.tsx +2 -3
  273. package/src/buttons/MRT_GrabHandleButton.tsx +3 -3
  274. package/src/buttons/MRT_ShowHideColumnsButton.tsx +3 -3
  275. package/src/buttons/MRT_ToggleDensePaddingButton.tsx +2 -3
  276. package/src/buttons/MRT_ToggleFiltersButton.tsx +2 -3
  277. package/src/buttons/MRT_ToggleGlobalFilterButton.tsx +2 -3
  278. package/src/buttons/MRT_ToggleRowActionMenuButton.tsx +2 -2
  279. package/src/column.utils.ts +23 -22
  280. package/src/filterFns.ts +1 -1
  281. package/src/footer/MRT_TableFooter.tsx +2 -3
  282. package/src/footer/MRT_TableFooterCell.tsx +1 -2
  283. package/src/footer/MRT_TableFooterRow.tsx +2 -3
  284. package/src/head/MRT_TableHead.tsx +2 -3
  285. package/src/head/MRT_TableHeadCell.tsx +3 -3
  286. package/src/head/MRT_TableHeadCellColumnActionsButton.tsx +2 -2
  287. package/src/head/MRT_TableHeadCellFilterContainer.tsx +1 -2
  288. package/src/head/MRT_TableHeadCellFilterLabel.tsx +2 -2
  289. package/src/head/MRT_TableHeadCellGrabHandle.tsx +2 -2
  290. package/src/head/MRT_TableHeadCellResizeHandle.tsx +1 -2
  291. package/src/head/MRT_TableHeadCellSortLabel.tsx +2 -3
  292. package/src/head/MRT_TableHeadRow.tsx +2 -3
  293. package/src/index.tsx +7 -5
  294. package/src/inputs/MRT_EditCellTextField.tsx +3 -3
  295. package/src/inputs/MRT_FilterCheckbox.tsx +2 -3
  296. package/src/inputs/MRT_FilterRangeFields.tsx +1 -2
  297. package/src/inputs/MRT_FilterTextField.tsx +5 -5
  298. package/src/inputs/MRT_GlobalFilterTextField.tsx +4 -4
  299. package/src/inputs/MRT_SelectCheckbox.tsx +3 -3
  300. package/src/menus/MRT_ColumnActionMenu.tsx +3 -2
  301. package/src/menus/MRT_FilterOptionMenu.tsx +8 -8
  302. package/src/menus/MRT_RowActionMenu.tsx +2 -2
  303. package/src/menus/MRT_ShowHideColumnsMenu.tsx +2 -2
  304. package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +2 -8
  305. package/src/sortingFns.ts +1 -1
  306. package/src/table/MRT_Table.tsx +2 -2
  307. package/src/table/MRT_TableContainer.tsx +2 -2
  308. package/src/table/MRT_TablePaper.tsx +1 -2
  309. package/src/table/MRT_TableRoot.tsx +16 -16
  310. package/src/toolbar/MRT_BottomToolbar.tsx +1 -2
  311. package/src/toolbar/MRT_LinearProgressBar.tsx +1 -2
  312. package/src/toolbar/MRT_TablePagination.tsx +2 -2
  313. package/src/toolbar/MRT_ToolbarAlertBanner.tsx +2 -2
  314. package/src/toolbar/MRT_ToolbarDropZone.tsx +2 -2
  315. package/src/toolbar/MRT_ToolbarInternalButtons.tsx +1 -2
  316. package/src/toolbar/MRT_TopToolbar.tsx +2 -3
  317. package/src/types.ts +981 -0
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_CS: MRT_Localization = {
4
4
  actions: 'Akce',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_DA: MRT_Localization = {
4
4
  actions: 'Handlinger',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_DE: MRT_Localization = {
4
4
  actions: 'Aktionen',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_EN: MRT_Localization = {
4
4
  actions: 'Actions',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '..';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_ES: MRT_Localization = {
4
4
  actions: 'Acciones',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_FA: MRT_Localization = {
4
4
  actions: 'عملیات',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_FI: MRT_Localization = {
4
4
  actions: 'Toiminnot',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_FR: MRT_Localization = {
4
4
  actions: 'Actions',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_HU: MRT_Localization = {
4
4
  actions: 'Műveletek',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_ID: MRT_Localization = {
4
4
  actions: 'Aksi',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_IT: MRT_Localization = {
4
4
  actions: 'Azioni',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_JA: MRT_Localization = {
4
4
  actions: '操作',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '..';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_NL: MRT_Localization = {
4
4
  actions: 'Acties',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_PL: MRT_Localization = {
4
4
  actions: 'Akcje',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_PT_BR: MRT_Localization = {
4
4
  actions: 'Ações',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_PT: MRT_Localization = {
4
4
  actions: 'Ações',
@@ -1,4 +1,4 @@
1
- import { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_RO: MRT_Localization = {
4
4
  actions: 'Acțiuni',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_RU: MRT_Localization = {
4
4
  actions: 'Действия',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_SK: MRT_Localization = {
4
4
  actions: 'Akcie',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_SR_CYRL_RS: MRT_Localization = {
4
4
  actions: 'Акције',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_SR_LATN_RS: MRT_Localization = {
4
4
  actions: 'Akcije',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_SV: MRT_Localization = {
4
4
  actions: 'Åtgärder',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_TR: MRT_Localization = {
4
4
  actions: 'İşlemler',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_UK: MRT_Localization = {
4
4
  actions: 'Дії',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_VI: MRT_Localization = {
4
4
  actions: 'Thao tác',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_ZH_HANS: MRT_Localization = {
4
4
  actions: '动作',
@@ -1,4 +1,4 @@
1
- import type { MRT_Localization } from '../MaterialReactTable';
1
+ import { type MRT_Localization } from '../types';
2
2
 
3
3
  export const MRT_Localization_ZH_HANT: MRT_Localization = {
4
4
  actions: '動作',
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import Dialog from '@mui/material/Dialog';
3
2
  import DialogActions from '@mui/material/DialogActions';
4
3
  import DialogContent from '@mui/material/DialogContent';
@@ -6,7 +5,7 @@ import DialogTitle from '@mui/material/DialogTitle';
6
5
  import Stack from '@mui/material/Stack';
7
6
  import { MRT_EditActionButtons } from '../buttons/MRT_EditActionButtons';
8
7
  import { MRT_EditCellTextField } from '../inputs/MRT_EditCellTextField';
9
- import type { MRT_Row, MRT_TableInstance } from '..';
8
+ import { type MRT_Row, type MRT_TableInstance } from '../types';
10
9
 
11
10
  interface Props<TData extends Record<string, any> = {}> {
12
11
  open: boolean;
@@ -1,4 +1,4 @@
1
- import React, { memo, useMemo } from 'react';
1
+ import { memo, useMemo } from 'react';
2
2
  import {
3
3
  useVirtualizer,
4
4
  type VirtualItem,
@@ -8,7 +8,7 @@ import TableBody from '@mui/material/TableBody';
8
8
  import Typography from '@mui/material/Typography';
9
9
  import { Memo_MRT_TableBodyRow, MRT_TableBodyRow } from './MRT_TableBodyRow';
10
10
  import { rankGlobalFuzzy } from '../sortingFns';
11
- import type { MRT_Row, MRT_TableInstance } from '..';
11
+ import { type MRT_Row, type MRT_TableInstance } from '../types';
12
12
 
13
13
  interface Props {
14
14
  columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
@@ -1,8 +1,8 @@
1
- import React, {
2
- DragEvent,
1
+ import {
2
+ type DragEvent,
3
3
  memo,
4
- MouseEvent,
5
- RefObject,
4
+ type MouseEvent,
5
+ type RefObject,
6
6
  useEffect,
7
7
  useMemo,
8
8
  useState,
@@ -19,8 +19,8 @@ import {
19
19
  getIsFirstColumn,
20
20
  getIsLastColumn,
21
21
  } from '../column.utils';
22
- import type { VirtualItem } from '@tanstack/react-virtual';
23
- import type { MRT_Cell, MRT_TableInstance } from '..';
22
+ import { type VirtualItem } from '@tanstack/react-virtual';
23
+ import { type MRT_Cell, type MRT_TableInstance } from '../types';
24
24
 
25
25
  interface Props {
26
26
  cell: MRT_Cell;
@@ -1,8 +1,8 @@
1
- import React, { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import Box from '@mui/material/Box';
3
3
  import { darken, lighten } from '@mui/material/styles';
4
4
  import highlightWords from 'highlight-words';
5
- import type { MRT_Cell, MRT_TableInstance } from '..';
5
+ import { type MRT_Cell, type MRT_TableInstance } from '../types';
6
6
 
7
7
  const allowedTypes = ['string', 'number'];
8
8
 
@@ -1,10 +1,10 @@
1
- import React, { DragEvent, memo, useRef } from 'react';
1
+ import { type DragEvent, memo, useRef } from 'react';
2
2
  import TableRow from '@mui/material/TableRow';
3
3
  import { type Theme, alpha, darken, lighten } from '@mui/material/styles';
4
4
  import { Memo_MRT_TableBodyCell, MRT_TableBodyCell } from './MRT_TableBodyCell';
5
5
  import { MRT_TableDetailPanel } from './MRT_TableDetailPanel';
6
- import type { VirtualItem, Virtualizer } from '@tanstack/react-virtual';
7
- import type { MRT_Cell, MRT_Row, MRT_TableInstance } from '..';
6
+ import { type VirtualItem, type Virtualizer } from '@tanstack/react-virtual';
7
+ import { type MRT_Cell, type MRT_Row, type MRT_TableInstance } from '../types';
8
8
 
9
9
  interface Props {
10
10
  columnVirtualizer?: Virtualizer<HTMLDivElement, HTMLTableCellElement>;
@@ -1,5 +1,5 @@
1
- import React, { DragEvent, RefObject } from 'react';
2
- import { MRT_Cell, MRT_TableInstance } from '..';
1
+ import { type DragEvent, type RefObject } from 'react';
2
+ import { type MRT_Cell, type MRT_TableInstance } from '../types';
3
3
  import { MRT_GrabHandleButton } from '../buttons/MRT_GrabHandleButton';
4
4
 
5
5
  interface Props {
@@ -1,10 +1,10 @@
1
- import React from 'react';
1
+ import * as React from 'react';
2
2
  import Collapse from '@mui/material/Collapse';
3
3
  import TableCell from '@mui/material/TableCell';
4
4
  import TableRow from '@mui/material/TableRow';
5
5
  import { lighten } from '@mui/material/styles';
6
- import type { VirtualItem } from '@tanstack/react-virtual';
7
- import type { MRT_Row, MRT_TableInstance } from '..';
6
+ import { type VirtualItem } from '@tanstack/react-virtual';
7
+ import { type MRT_Row, type MRT_TableInstance } from '../types';
8
8
 
9
9
  interface Props {
10
10
  parentRowRef: React.RefObject<HTMLTableRowElement>;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import Box from '@mui/material/Box';
3
2
  import IconButton from '@mui/material/IconButton';
4
3
  import Tooltip from '@mui/material/Tooltip';
5
- import type { MRT_Column, MRT_TableInstance } from '..';
4
+ import { type MRT_Column, type MRT_TableInstance } from '../types';
6
5
 
7
6
  interface Props<TData extends Record<string, any> = {}> {
8
7
  column: MRT_Column<TData>;
@@ -1,7 +1,7 @@
1
- import React, { MouseEvent, ReactNode, useState } from 'react';
1
+ import { type MouseEvent, type ReactNode, useState } from 'react';
2
2
  import Button from '@mui/material/Button';
3
3
  import Tooltip from '@mui/material/Tooltip';
4
- import { MRT_Cell, MRT_TableInstance } from '..';
4
+ import { type MRT_Cell, type MRT_TableInstance } from '../types';
5
5
 
6
6
  interface Props<TData extends Record<string, any> = {}> {
7
7
  cell: MRT_Cell<TData>;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import Box from '@mui/material/Box';
3
2
  import Button from '@mui/material/Button';
4
3
  import IconButton from '@mui/material/IconButton';
5
4
  import Tooltip from '@mui/material/Tooltip';
6
- import type { MRT_Row, MRT_TableInstance } from '..';
5
+ import { type MRT_Row, type MRT_TableInstance } from '../types';
7
6
 
8
7
  interface Props<TData extends Record<string, any> = {}> {
9
8
  row: MRT_Row<TData>;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import IconButton from '@mui/material/IconButton';
3
2
  import Tooltip from '@mui/material/Tooltip';
4
- import type { MRT_TableInstance } from '..';
3
+ import { type MRT_TableInstance } from '../types';
5
4
 
6
5
  interface Props {
7
6
  table: MRT_TableInstance;
@@ -1,7 +1,7 @@
1
- import React, { MouseEvent } from 'react';
1
+ import { type MouseEvent } from 'react';
2
2
  import IconButton from '@mui/material/IconButton';
3
3
  import Tooltip from '@mui/material/Tooltip';
4
- import type { MRT_Row, MRT_TableInstance } from '..';
4
+ import { type MRT_Row, type MRT_TableInstance } from '../types';
5
5
 
6
6
  interface Props<TData extends Record<string, any> = {}> {
7
7
  row: MRT_Row<TData>;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import IconButton from '@mui/material/IconButton';
3
- import type { IconButtonProps } from '@mui/material/IconButton';
2
+ import { type IconButtonProps } from '@mui/material/IconButton';
4
3
  import Tooltip from '@mui/material/Tooltip';
5
- import type { MRT_TableInstance } from '..';
4
+ import { type MRT_TableInstance } from '../types';
6
5
 
7
6
  interface Props<TData extends Record<string, any> = {}>
8
7
  extends IconButtonProps {
@@ -1,8 +1,8 @@
1
- import React, { DragEventHandler } from 'react';
1
+ import { type DragEventHandler } from 'react';
2
2
  import IconButton from '@mui/material/IconButton';
3
3
  import Tooltip from '@mui/material/Tooltip';
4
- import type { IconButtonProps } from '@mui/material/IconButton';
5
- import type { MRT_TableInstance } from '..';
4
+ import { type IconButtonProps } from '@mui/material/IconButton';
5
+ import { type MRT_TableInstance } from '../types';
6
6
 
7
7
  interface Props<TData extends Record<string, any> = {}> {
8
8
  iconButtonProps?: IconButtonProps;
@@ -1,9 +1,9 @@
1
- import React, { MouseEvent, useState } from 'react';
1
+ import { type MouseEvent, useState } from 'react';
2
2
  import IconButton from '@mui/material/IconButton';
3
- import type { IconButtonProps } from '@mui/material/IconButton';
3
+ import { type IconButtonProps } from '@mui/material/IconButton';
4
4
  import Tooltip from '@mui/material/Tooltip';
5
5
  import { MRT_ShowHideColumnsMenu } from '../menus/MRT_ShowHideColumnsMenu';
6
- import type { MRT_TableInstance } from '..';
6
+ import { type MRT_TableInstance } from '../types';
7
7
 
8
8
  interface Props<TData extends Record<string, any> = {}>
9
9
  extends IconButtonProps {
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import IconButton from '@mui/material/IconButton';
3
- import type { IconButtonProps } from '@mui/material/IconButton';
2
+ import { type IconButtonProps } from '@mui/material/IconButton';
4
3
  import Tooltip from '@mui/material/Tooltip';
5
- import type { MRT_TableInstance } from '..';
4
+ import { type MRT_TableInstance } from '../types';
6
5
 
7
6
  interface Props<TData extends Record<string, any> = {}>
8
7
  extends IconButtonProps {
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import IconButton from '@mui/material/IconButton';
3
- import type { IconButtonProps } from '@mui/material/IconButton';
2
+ import { type IconButtonProps } from '@mui/material/IconButton';
4
3
  import Tooltip from '@mui/material/Tooltip';
5
- import type { MRT_TableInstance } from '..';
4
+ import { type MRT_TableInstance } from '../types';
6
5
 
7
6
  interface Props<TData extends Record<string, any> = {}>
8
7
  extends IconButtonProps {
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import IconButton from '@mui/material/IconButton';
3
- import type { IconButtonProps } from '@mui/material/IconButton';
2
+ import { type IconButtonProps } from '@mui/material/IconButton';
4
3
  import Tooltip from '@mui/material/Tooltip';
5
- import type { MRT_TableInstance } from '..';
4
+ import { type MRT_TableInstance } from '../types';
6
5
 
7
6
  interface Props<TData extends Record<string, any> = {}>
8
7
  extends IconButtonProps {
@@ -1,9 +1,9 @@
1
- import React, { MouseEvent, useState } from 'react';
1
+ import { type MouseEvent, useState } from 'react';
2
2
  import IconButton from '@mui/material/IconButton';
3
3
  import Tooltip from '@mui/material/Tooltip';
4
4
  import { MRT_RowActionMenu } from '../menus/MRT_RowActionMenu';
5
5
  import { MRT_EditActionButtons } from './MRT_EditActionButtons';
6
- import type { MRT_Cell, MRT_Row, MRT_TableInstance } from '..';
6
+ import { type MRT_Cell, type MRT_Row, type MRT_TableInstance } from '../types';
7
7
 
8
8
  const commonIconButtonStyles = {
9
9
  height: '2rem',
@@ -1,22 +1,22 @@
1
- import { MRT_AggregationFns } from './aggregationFns';
2
- import { MRT_FilterFns } from './filterFns';
3
- import { MRT_SortingFns } from './sortingFns';
1
+ import { type MRT_AggregationFns } from './aggregationFns';
2
+ import { type MRT_FilterFns } from './filterFns';
3
+ import { type MRT_SortingFns } from './sortingFns';
4
4
  import { alpha, lighten } from '@mui/material/styles';
5
- import type { Row } from '@tanstack/react-table';
6
- import type { TableCellProps } from '@mui/material/TableCell';
7
- import type { Theme } from '@mui/material/styles';
8
- import type {
9
- MaterialReactTableProps,
10
- MRT_Column,
11
- MRT_ColumnDef,
12
- MRT_ColumnOrderState,
13
- MRT_DefinedColumnDef,
14
- MRT_DisplayColumnIds,
15
- MRT_FilterOption,
16
- MRT_GroupingState,
17
- MRT_Header,
18
- MRT_TableInstance,
19
- } from '.';
5
+ import { type Row } from '@tanstack/react-table';
6
+ import { type TableCellProps } from '@mui/material/TableCell';
7
+ import { type Theme } from '@mui/material/styles';
8
+ import {
9
+ type MaterialReactTableProps,
10
+ type MRT_Column,
11
+ type MRT_ColumnDef,
12
+ type MRT_ColumnOrderState,
13
+ type MRT_DefinedColumnDef,
14
+ type MRT_DisplayColumnIds,
15
+ type MRT_FilterOption,
16
+ type MRT_GroupingState,
17
+ type MRT_Header,
18
+ type MRT_TableInstance,
19
+ } from './types';
20
20
 
21
21
  export const getColumnId = <TData extends Record<string, any> = {}>(
22
22
  columnDef: MRT_ColumnDef<TData>,
@@ -123,12 +123,13 @@ export const reorderColumn = <TData extends Record<string, any> = {}>(
123
123
  if (draggedColumn.getCanPin()) {
124
124
  draggedColumn.pin(targetColumn.getIsPinned());
125
125
  }
126
- columnOrder.splice(
127
- columnOrder.indexOf(targetColumn.id),
126
+ const newColumnOrder = [...columnOrder];
127
+ newColumnOrder.splice(
128
+ newColumnOrder.indexOf(targetColumn.id),
128
129
  0,
129
- columnOrder.splice(columnOrder.indexOf(draggedColumn.id), 1)[0],
130
+ newColumnOrder.splice(newColumnOrder.indexOf(draggedColumn.id), 1)[0],
130
131
  );
131
- return [...columnOrder];
132
+ return newColumnOrder;
132
133
  };
133
134
 
134
135
  export const showExpandColumn = <TData extends Record<string, any> = {}>(
package/src/filterFns.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { rankItem, rankings, RankingInfo } from '@tanstack/match-sorter-utils';
1
+ import { rankItem, rankings, type RankingInfo } from '@tanstack/match-sorter-utils';
2
2
  import { filterFns, type Row } from '@tanstack/react-table';
3
3
 
4
4
  const fuzzy = <TData extends Record<string, any> = {}>(
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import TableFooter from '@mui/material/TableFooter';
3
2
  import { MRT_TableFooterRow } from './MRT_TableFooterRow';
4
- import type { VirtualItem } from '@tanstack/react-virtual';
5
- import type { MRT_TableInstance } from '..';
3
+ import { type VirtualItem } from '@tanstack/react-virtual';
4
+ import { type MRT_TableInstance } from '../types';
6
5
 
7
6
  interface Props {
8
7
  table: MRT_TableInstance;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import TableCell from '@mui/material/TableCell';
3
2
  import { getCommonCellStyles } from '../column.utils';
4
- import type { MRT_Header, MRT_TableInstance } from '..';
3
+ import { type MRT_Header, type MRT_TableInstance } from '../types';
5
4
 
6
5
  interface Props {
7
6
  footer: MRT_Header;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  import TableRow from '@mui/material/TableRow';
3
2
  import { lighten } from '@mui/material/styles';
4
3
  import { MRT_TableFooterCell } from './MRT_TableFooterCell';
5
- import type { VirtualItem } from '@tanstack/react-virtual';
6
- import type { MRT_Header, MRT_HeaderGroup, MRT_TableInstance } from '..';
4
+ import { type VirtualItem } from '@tanstack/react-virtual';
5
+ import { type MRT_Header, type MRT_HeaderGroup, type MRT_TableInstance } from '../types';
7
6
 
8
7
  interface Props {
9
8
  footerGroup: MRT_HeaderGroup;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import TableHead from '@mui/material/TableHead';
3
2
  import { MRT_TableHeadRow } from './MRT_TableHeadRow';
4
- import type { VirtualItem } from '@tanstack/react-virtual';
5
- import type { MRT_TableInstance } from '..';
3
+ import { type VirtualItem } from '@tanstack/react-virtual';
4
+ import { type MRT_TableInstance } from '../types';
6
5
 
7
6
  interface Props {
8
7
  table: MRT_TableInstance;
@@ -1,4 +1,4 @@
1
- import React, { DragEvent, ReactNode, useMemo } from 'react';
1
+ import { type DragEvent, type ReactNode, useMemo } from 'react';
2
2
  import Box from '@mui/material/Box';
3
3
  import TableCell from '@mui/material/TableCell';
4
4
  import { useTheme } from '@mui/material/styles';
@@ -9,8 +9,8 @@ import { MRT_TableHeadCellGrabHandle } from './MRT_TableHeadCellGrabHandle';
9
9
  import { MRT_TableHeadCellResizeHandle } from './MRT_TableHeadCellResizeHandle';
10
10
  import { MRT_TableHeadCellSortLabel } from './MRT_TableHeadCellSortLabel';
11
11
  import { getCommonCellStyles } from '../column.utils';
12
- import type { Theme } from '@mui/material/styles';
13
- import type { MRT_Header, MRT_TableInstance } from '..';
12
+ import { type Theme } from '@mui/material/styles';
13
+ import { type MRT_Header, type MRT_TableInstance } from '../types';
14
14
 
15
15
  interface Props {
16
16
  header: MRT_Header;
@@ -1,8 +1,8 @@
1
- import React, { MouseEvent, useState } from 'react';
1
+ import { type MouseEvent, useState } from 'react';
2
2
  import IconButton from '@mui/material/IconButton';
3
3
  import Tooltip from '@mui/material/Tooltip';
4
4
  import { MRT_ColumnActionMenu } from '../menus/MRT_ColumnActionMenu';
5
- import type { MRT_Header, MRT_TableInstance } from '..';
5
+ import { type MRT_Header, type MRT_TableInstance } from '../types';
6
6
 
7
7
  interface Props {
8
8
  header: MRT_Header;
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  import Collapse from '@mui/material/Collapse';
3
2
  import { MRT_FilterRangeFields } from '../inputs/MRT_FilterRangeFields';
4
3
  import { MRT_FilterTextField } from '../inputs/MRT_FilterTextField';
5
- import { MRT_Header, MRT_TableInstance } from '..';
4
+ import { type MRT_Header, type MRT_TableInstance } from '../types';
6
5
  import { MRT_FilterCheckbox } from '../inputs/MRT_FilterCheckbox';
7
6
 
8
7
  interface Props {
@@ -1,9 +1,9 @@
1
- import React, { MouseEvent } from 'react';
1
+ import { type MouseEvent } from 'react';
2
2
  import Box from '@mui/material/Box';
3
3
  import Grow from '@mui/material/Grow';
4
4
  import IconButton from '@mui/material/IconButton';
5
5
  import Tooltip from '@mui/material/Tooltip';
6
- import { MRT_Header, MRT_TableInstance } from '..';
6
+ import { type MRT_Header, type MRT_TableInstance } from '../types';
7
7
 
8
8
  interface Props {
9
9
  header: MRT_Header;