material-react-table 1.0.8 → 1.0.10

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.
@@ -168,7 +168,7 @@ export declare const MRT_TableRoot: <TData extends Record<string, any> = {}>(pro
168
168
  muiTopToolbarProps?: import("@mui/material").ToolbarProps<"div", {}> | (({ table }: {
169
169
  table: MRT_TableInstance<TData>;
170
170
  }) => import("@mui/material").ToolbarProps<"div", {}>) | undefined;
171
- onDensityChange?: import("@tanstack/table-core").OnChangeFn<"compact" | "comfortable" | "spacious"> | undefined;
171
+ onDensityChange?: import("@tanstack/table-core").OnChangeFn<import("..").DensityState> | undefined;
172
172
  onDraggingColumnChange?: import("@tanstack/table-core").OnChangeFn<MRT_Column<TData> | null> | undefined;
173
173
  onDraggingRowChange?: import("@tanstack/table-core").OnChangeFn<MRT_Row<TData> | null> | undefined;
174
174
  onEditingCellChange?: import("@tanstack/table-core").OnChangeFn<MRT_Cell<TData> | null> | undefined;
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { MRT_Localization } from '../MaterialReactTable';
2
+ export declare const MRT_Localization_RU: MRT_Localization;