material-react-table 1.0.7 → 1.0.9
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/dist/cjs/MaterialReactTable.d.ts +7 -1
- package/dist/cjs/_locales/de.d.ts +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/table/MRT_TableRoot.d.ts +1 -1
- package/dist/esm/MaterialReactTable.d.ts +7 -1
- package/dist/esm/_locales/de.d.ts +2 -0
- package/dist/esm/material-react-table.esm.js.map +1 -1
- package/dist/esm/table/MRT_TableRoot.d.ts +1 -1
- package/dist/index.d.ts +7 -1
- package/locales/de.d.ts +2 -0
- package/locales/de.esm.d.ts +2 -0
- package/locales/de.esm.js +92 -0
- package/locales/de.esm.js.map +1 -0
- package/locales/de.js +96 -0
- package/locales/de.js.map +1 -0
- package/locales/es.esm.js +39 -39
- package/locales/es.esm.js.map +1 -1
- package/locales/es.js +39 -39
- package/locales/es.js.map +1 -1
- package/package.json +1 -1
- package/src/MaterialReactTable.tsx +7 -1
- package/src/_locales/de.ts +92 -1
- package/src/_locales/es.ts +39 -39
|
@@ -8,7 +8,7 @@ import { MRT_SortingFns } from './sortingFns';
|
|
|
8
8
|
/**
|
|
9
9
|
* Most of this file is just TypeScript types
|
|
10
10
|
*/
|
|
11
|
-
declare type DensityState = 'comfortable' | 'compact' | 'spacious';
|
|
11
|
+
export declare type DensityState = 'comfortable' | 'compact' | 'spacious';
|
|
12
12
|
declare type LiteralUnion<T extends U, U = string> = T | (U & Record<never, never>);
|
|
13
13
|
export interface MRT_Localization {
|
|
14
14
|
actions: string;
|
|
@@ -441,6 +441,12 @@ export declare type MaterialReactTableProps<TData extends Record<string, any> =
|
|
|
441
441
|
expandRowsFn?: (dataRow: TData) => TData[];
|
|
442
442
|
icons?: Partial<MRT_Icons>;
|
|
443
443
|
initialState?: Partial<MRT_TableState<TData>>;
|
|
444
|
+
/**
|
|
445
|
+
* Pass in either a locale imported from `material-react-table/locales/*` or a custom locale object.
|
|
446
|
+
*
|
|
447
|
+
* See the localization (i18n) guide for more info:
|
|
448
|
+
* @link https://www.material-react-table.com/docs/guides/localization
|
|
449
|
+
*/
|
|
444
450
|
localization?: Partial<MRT_Localization>;
|
|
445
451
|
muiBottomToolbarProps?: ToolbarProps | (({ table }: {
|
|
446
452
|
table: MRT_TableInstance<TData>;
|