material-react-table 2.13.2 → 3.0.0-alpha.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.
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "version": "2.13.2",
2
+ "version": "3.0.0-alpha.0",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
- "description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
5
+ "description": "A fully featured Material UI V6 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
6
6
  "author": "KevinVandy",
7
7
  "keywords": [
8
8
  "react-table",
@@ -65,9 +65,9 @@
65
65
  "@emotion/react": "^11.13.3",
66
66
  "@emotion/styled": "^11.13.0",
67
67
  "@faker-js/faker": "^8.4.1",
68
- "@mui/icons-material": "^5.16.5",
69
- "@mui/material": "^5.16.5",
70
- "@mui/x-date-pickers": "^7.11.1",
68
+ "@mui/icons-material": "^6.0.1",
69
+ "@mui/material": "^6.0.1",
70
+ "@mui/x-date-pickers": "^7.15.0",
71
71
  "@rollup/plugin-typescript": "^11.1.6",
72
72
  "@size-limit/preset-small-lib": "^11.1.4",
73
73
  "@storybook/addon-a11y": "^8.2.9",
@@ -105,11 +105,11 @@
105
105
  "vite": "^5.4.2"
106
106
  },
107
107
  "peerDependencies": {
108
- "@emotion/react": ">=11.11",
109
- "@emotion/styled": ">=11.11",
110
- "@mui/icons-material": ">=5.11",
111
- "@mui/material": ">=5.13",
112
- "@mui/x-date-pickers": ">=6.15.0",
108
+ "@emotion/react": ">=11.13",
109
+ "@emotion/styled": ">=11.13",
110
+ "@mui/icons-material": ">=6",
111
+ "@mui/material": ">=6",
112
+ "@mui/x-date-pickers": ">=7.15",
113
113
  "react": ">=17.0",
114
114
  "react-dom": ">=17.0"
115
115
  },
package/src/types.ts CHANGED
@@ -89,10 +89,6 @@ export type Xor<A, B> =
89
89
  export type DropdownOption =
90
90
  | {
91
91
  label?: string;
92
- /**
93
- * @deprecated use `label` instead
94
- */
95
- text?: string;
96
92
  value: any;
97
93
  }
98
94
  | string;
@@ -138,13 +134,6 @@ export type MRT_RowVirtualizer<
138
134
  virtualRows: MRT_VirtualItem[];
139
135
  };
140
136
 
141
- /**
142
- * @deprecated use `MRT_ColumnVirtualizer` or `MRT_RowVirtualizer` instead
143
- */
144
- export type MRT_Virtualizer<_TScrollElement = any, _TItemElement = any> =
145
- | MRT_ColumnVirtualizer
146
- | MRT_RowVirtualizer;
147
-
148
137
  export type MRT_ColumnHelper<TData extends MRT_RowData> = {
149
138
  accessor: <
150
139
  TAccessor extends AccessorFn<TData> | DeepKeys<TData>,
@@ -822,7 +811,7 @@ export interface MRT_TableOptions<TData extends MRT_RowData>
822
811
  LiteralUnion<string & MRT_FilterOption>
823
812
  > | null;
824
813
  columnVirtualizerInstanceRef?: MutableRefObject<
825
- MRT_ColumnVirtualizer | MRT_Virtualizer | null
814
+ MRT_ColumnVirtualizer | null
826
815
  >;
827
816
  columnVirtualizerOptions?:
828
817
  | ((props: {
@@ -1283,7 +1272,7 @@ export interface MRT_TableOptions<TData extends MRT_RowData>
1283
1272
  | 'top'
1284
1273
  | 'top-and-bottom';
1285
1274
  rowVirtualizerInstanceRef?: MutableRefObject<
1286
- MRT_RowVirtualizer | MRT_Virtualizer | null
1275
+ MRT_RowVirtualizer | null
1287
1276
  >;
1288
1277
  rowVirtualizerOptions?:
1289
1278
  | ((props: {
@@ -15,7 +15,7 @@ export const getValueAndLabel = (
15
15
  label = option;
16
16
  value = option;
17
17
  } else {
18
- label = option.label ?? option.text ?? option.value;
18
+ label = option.label ?? option.value;
19
19
  value = option.value ?? label;
20
20
  }
21
21
  }