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

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 (147) hide show
  1. package/dist/cjs/index.js +17 -13
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/_locales/cs.d.ts +1 -1
  4. package/dist/cjs/types/_locales/da.d.ts +1 -1
  5. package/dist/cjs/types/_locales/de.d.ts +1 -1
  6. package/dist/cjs/types/_locales/en.d.ts +1 -1
  7. package/dist/cjs/types/_locales/es.d.ts +1 -1
  8. package/dist/cjs/types/_locales/fa.d.ts +1 -1
  9. package/dist/cjs/types/_locales/fi.d.ts +1 -1
  10. package/dist/cjs/types/_locales/fr.d.ts +1 -1
  11. package/dist/cjs/types/_locales/hu.d.ts +1 -1
  12. package/dist/cjs/types/_locales/id.d.ts +1 -1
  13. package/dist/cjs/types/_locales/it.d.ts +1 -1
  14. package/dist/cjs/types/_locales/ja.d.ts +1 -1
  15. package/dist/cjs/types/_locales/nl.d.ts +1 -1
  16. package/dist/cjs/types/_locales/pl.d.ts +1 -1
  17. package/dist/cjs/types/_locales/pt-BR.d.ts +1 -1
  18. package/dist/cjs/types/_locales/pt.d.ts +1 -1
  19. package/dist/cjs/types/_locales/ro.d.ts +1 -1
  20. package/dist/cjs/types/_locales/ru.d.ts +1 -1
  21. package/dist/cjs/types/_locales/sk.d.ts +1 -1
  22. package/dist/cjs/types/_locales/sr-Cyrl-RS.d.ts +1 -1
  23. package/dist/cjs/types/_locales/sr-Latn-RS.d.ts +1 -1
  24. package/dist/cjs/types/_locales/sv.d.ts +1 -1
  25. package/dist/cjs/types/_locales/tr.d.ts +1 -1
  26. package/dist/cjs/types/_locales/uk.d.ts +1 -1
  27. package/dist/cjs/types/_locales/vi.d.ts +1 -1
  28. package/dist/cjs/types/_locales/zh-Hans.d.ts +1 -1
  29. package/dist/cjs/types/_locales/zh-Hant.d.ts +1 -1
  30. package/dist/esm/material-react-table.esm.js +20 -14
  31. package/dist/esm/material-react-table.esm.js.map +1 -1
  32. package/dist/esm/types/_locales/cs.d.ts +1 -1
  33. package/dist/esm/types/_locales/da.d.ts +1 -1
  34. package/dist/esm/types/_locales/de.d.ts +1 -1
  35. package/dist/esm/types/_locales/en.d.ts +1 -1
  36. package/dist/esm/types/_locales/es.d.ts +1 -1
  37. package/dist/esm/types/_locales/fa.d.ts +1 -1
  38. package/dist/esm/types/_locales/fi.d.ts +1 -1
  39. package/dist/esm/types/_locales/fr.d.ts +1 -1
  40. package/dist/esm/types/_locales/hu.d.ts +1 -1
  41. package/dist/esm/types/_locales/id.d.ts +1 -1
  42. package/dist/esm/types/_locales/it.d.ts +1 -1
  43. package/dist/esm/types/_locales/ja.d.ts +1 -1
  44. package/dist/esm/types/_locales/nl.d.ts +1 -1
  45. package/dist/esm/types/_locales/pl.d.ts +1 -1
  46. package/dist/esm/types/_locales/pt-BR.d.ts +1 -1
  47. package/dist/esm/types/_locales/pt.d.ts +1 -1
  48. package/dist/esm/types/_locales/ro.d.ts +1 -1
  49. package/dist/esm/types/_locales/ru.d.ts +1 -1
  50. package/dist/esm/types/_locales/sk.d.ts +1 -1
  51. package/dist/esm/types/_locales/sr-Cyrl-RS.d.ts +1 -1
  52. package/dist/esm/types/_locales/sr-Latn-RS.d.ts +1 -1
  53. package/dist/esm/types/_locales/sv.d.ts +1 -1
  54. package/dist/esm/types/_locales/tr.d.ts +1 -1
  55. package/dist/esm/types/_locales/uk.d.ts +1 -1
  56. package/dist/esm/types/_locales/vi.d.ts +1 -1
  57. package/dist/esm/types/_locales/zh-Hans.d.ts +1 -1
  58. package/dist/esm/types/_locales/zh-Hant.d.ts +1 -1
  59. package/dist/index.d.ts +3 -4
  60. package/locales/cs.d.ts +1 -1
  61. package/locales/cs.esm.d.ts +1 -1
  62. package/locales/da.d.ts +1 -1
  63. package/locales/da.esm.d.ts +1 -1
  64. package/locales/de.d.ts +1 -1
  65. package/locales/de.esm.d.ts +1 -1
  66. package/locales/en.d.ts +1 -1
  67. package/locales/en.esm.d.ts +1 -1
  68. package/locales/es.d.ts +1 -1
  69. package/locales/es.esm.d.ts +1 -1
  70. package/locales/fa.d.ts +1 -1
  71. package/locales/fa.esm.d.ts +1 -1
  72. package/locales/fi.d.ts +1 -1
  73. package/locales/fi.esm.d.ts +1 -1
  74. package/locales/fr.d.ts +1 -1
  75. package/locales/fr.esm.d.ts +1 -1
  76. package/locales/hu.d.ts +1 -1
  77. package/locales/hu.esm.d.ts +1 -1
  78. package/locales/id.d.ts +1 -1
  79. package/locales/id.esm.d.ts +1 -1
  80. package/locales/it.d.ts +1 -1
  81. package/locales/it.esm.d.ts +1 -1
  82. package/locales/ja.d.ts +1 -1
  83. package/locales/ja.esm.d.ts +1 -1
  84. package/locales/nl.d.ts +1 -1
  85. package/locales/nl.esm.d.ts +1 -1
  86. package/locales/pl.d.ts +1 -1
  87. package/locales/pl.esm.d.ts +1 -1
  88. package/locales/pt-BR.d.ts +1 -1
  89. package/locales/pt-BR.esm.d.ts +1 -1
  90. package/locales/pt.d.ts +1 -1
  91. package/locales/pt.esm.d.ts +1 -1
  92. package/locales/ro.d.ts +1 -1
  93. package/locales/ro.esm.d.ts +1 -1
  94. package/locales/ru.d.ts +1 -1
  95. package/locales/ru.esm.d.ts +1 -1
  96. package/locales/sk.d.ts +1 -1
  97. package/locales/sk.esm.d.ts +1 -1
  98. package/locales/sr-Cyrl-RS.d.ts +1 -1
  99. package/locales/sr-Cyrl-RS.esm.d.ts +1 -1
  100. package/locales/sr-Latn-RS.d.ts +1 -1
  101. package/locales/sr-Latn-RS.esm.d.ts +1 -1
  102. package/locales/sv.d.ts +1 -1
  103. package/locales/sv.esm.d.ts +1 -1
  104. package/locales/tr.d.ts +1 -1
  105. package/locales/tr.esm.d.ts +1 -1
  106. package/locales/uk.d.ts +1 -1
  107. package/locales/uk.esm.d.ts +1 -1
  108. package/locales/vi.d.ts +1 -1
  109. package/locales/vi.esm.d.ts +1 -1
  110. package/locales/zh-Hans.d.ts +1 -1
  111. package/locales/zh-Hans.esm.d.ts +1 -1
  112. package/locales/zh-Hant.d.ts +1 -1
  113. package/locales/zh-Hant.esm.d.ts +1 -1
  114. package/package.json +2 -2
  115. package/src/_locales/cs.ts +1 -1
  116. package/src/_locales/da.ts +1 -1
  117. package/src/_locales/de.ts +1 -1
  118. package/src/_locales/en.ts +1 -1
  119. package/src/_locales/es.ts +1 -1
  120. package/src/_locales/fa.ts +1 -1
  121. package/src/_locales/fi.ts +1 -1
  122. package/src/_locales/fr.ts +1 -1
  123. package/src/_locales/hu.ts +1 -1
  124. package/src/_locales/id.ts +1 -1
  125. package/src/_locales/it.ts +1 -1
  126. package/src/_locales/ja.ts +1 -1
  127. package/src/_locales/nl.ts +1 -1
  128. package/src/_locales/pl.ts +1 -1
  129. package/src/_locales/pt-BR.ts +1 -1
  130. package/src/_locales/pt.ts +1 -1
  131. package/src/_locales/ro.ts +1 -1
  132. package/src/_locales/ru.ts +1 -1
  133. package/src/_locales/sk.ts +1 -1
  134. package/src/_locales/sr-Cyrl-RS.ts +1 -1
  135. package/src/_locales/sr-Latn-RS.ts +1 -1
  136. package/src/_locales/sv.ts +1 -1
  137. package/src/_locales/tr.ts +1 -1
  138. package/src/_locales/uk.ts +1 -1
  139. package/src/_locales/vi.ts +1 -1
  140. package/src/_locales/zh-Hans.ts +1 -1
  141. package/src/_locales/zh-Hant.ts +1 -1
  142. package/src/column.utils.ts +1 -1
  143. package/src/filterFns.ts +5 -1
  144. package/src/footer/MRT_TableFooterRow.tsx +5 -1
  145. package/src/head/MRT_TableHeadRow.tsx +5 -1
  146. package/src/inputs/MRT_EditCellTextField.tsx +6 -1
  147. package/src/menus/MRT_ShowHideColumnsMenuItems.tsx +7 -1
@@ -1,4 +1,4 @@
1
- import { type MRT_Localization } from '../types';
1
+ import { type MRT_Localization } from '..';
2
2
 
3
3
  export const MRT_Localization_RU: MRT_Localization = {
4
4
  actions: 'Действия',
@@ -1,4 +1,4 @@
1
- import { type MRT_Localization } from '../types';
1
+ import { type MRT_Localization } from '..';
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 '../types';
1
+ import { type MRT_Localization } from '..';
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 '../types';
1
+ import { type MRT_Localization } from '..';
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 '../types';
1
+ import { type MRT_Localization } from '..';
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 '../types';
1
+ import { type MRT_Localization } from '..';
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 '../types';
1
+ import { type MRT_Localization } from '..';
2
2
 
3
3
  export const MRT_Localization_UK: MRT_Localization = {
4
4
  actions: 'Дії',
@@ -1,4 +1,4 @@
1
- import { type MRT_Localization } from '../types';
1
+ import { type MRT_Localization } from '..';
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 '../types';
1
+ import { type MRT_Localization } from '..';
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 '../types';
1
+ import { type MRT_Localization } from '..';
2
2
 
3
3
  export const MRT_Localization_ZH_HANT: MRT_Localization = {
4
4
  actions: '動作',
@@ -1,7 +1,7 @@
1
+ import { alpha, lighten } from '@mui/material/styles';
1
2
  import { type MRT_AggregationFns } from './aggregationFns';
2
3
  import { type MRT_FilterFns } from './filterFns';
3
4
  import { type MRT_SortingFns } from './sortingFns';
4
- import { alpha, lighten } from '@mui/material/styles';
5
5
  import { type Row } from '@tanstack/react-table';
6
6
  import { type TableCellProps } from '@mui/material/TableCell';
7
7
  import { type Theme } from '@mui/material/styles';
package/src/filterFns.ts CHANGED
@@ -1,4 +1,8 @@
1
- import { rankItem, rankings, type RankingInfo } from '@tanstack/match-sorter-utils';
1
+ import {
2
+ rankItem,
3
+ rankings,
4
+ type RankingInfo,
5
+ } from '@tanstack/match-sorter-utils';
2
6
  import { filterFns, type Row } from '@tanstack/react-table';
3
7
 
4
8
  const fuzzy = <TData extends Record<string, any> = {}>(
@@ -2,7 +2,11 @@ import TableRow from '@mui/material/TableRow';
2
2
  import { lighten } from '@mui/material/styles';
3
3
  import { MRT_TableFooterCell } from './MRT_TableFooterCell';
4
4
  import { type VirtualItem } from '@tanstack/react-virtual';
5
- import { type MRT_Header, type MRT_HeaderGroup, type MRT_TableInstance } from '../types';
5
+ import {
6
+ type MRT_Header,
7
+ type MRT_HeaderGroup,
8
+ type MRT_TableInstance,
9
+ } from '../types';
6
10
 
7
11
  interface Props {
8
12
  footerGroup: MRT_HeaderGroup;
@@ -2,7 +2,11 @@ import TableRow from '@mui/material/TableRow';
2
2
  import { alpha, lighten } from '@mui/material/styles';
3
3
  import { MRT_TableHeadCell } from './MRT_TableHeadCell';
4
4
  import { type VirtualItem } from '@tanstack/react-virtual';
5
- import { type MRT_Header, type MRT_HeaderGroup, type MRT_TableInstance } from '../types';
5
+ import {
6
+ type MRT_Header,
7
+ type MRT_HeaderGroup,
8
+ type MRT_TableInstance,
9
+ } from '../types';
6
10
 
7
11
  interface Props {
8
12
  headerGroup: MRT_HeaderGroup;
@@ -1,4 +1,9 @@
1
- import { type ChangeEvent, type FocusEvent, type KeyboardEvent, useState } from 'react';
1
+ import {
2
+ type ChangeEvent,
3
+ type FocusEvent,
4
+ type KeyboardEvent,
5
+ useState,
6
+ } from 'react';
2
7
  import TextField from '@mui/material/TextField';
3
8
  import MenuItem from '@mui/material/MenuItem';
4
9
  import { type TextFieldProps } from '@mui/material/TextField';
@@ -1,4 +1,10 @@
1
- import { type Dispatch, type DragEvent, type SetStateAction, useRef, useState } from 'react';
1
+ import {
2
+ type Dispatch,
3
+ type DragEvent,
4
+ type SetStateAction,
5
+ useRef,
6
+ useState,
7
+ } from 'react';
2
8
  import Box from '@mui/material/Box';
3
9
  import FormControlLabel from '@mui/material/FormControlLabel';
4
10
  import MenuItem from '@mui/material/MenuItem';