material-react-table 1.0.8 → 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.
@@ -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>;
@@ -0,0 +1,2 @@
1
+ import { MRT_Localization } from '../MaterialReactTable';
2
+ export declare const MRT_Localization_DE: MRT_Localization;