@ethanhann/mantine-dataview 0.4.2 → 0.6.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.
@@ -58,6 +58,10 @@ export type ColumnFilterMeta = {
58
58
  step?: number;
59
59
  };
60
60
  declare module "@tanstack/react-table" {
61
+ interface TableMeta<TData extends RowData> {
62
+ /** Current view mode, available in cell renderers via `ctx.table.options.meta?.viewMode`. */
63
+ viewMode?: "table" | "cards";
64
+ }
61
65
  interface ColumnMeta<TData extends RowData, TValue> {
62
66
  /** Human label used by the toolbar, sort control, and card field labels. */
63
67
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethanhann/mantine-dataview",
3
- "version": "0.4.2",
3
+ "version": "0.6.0",
4
4
  "description": "A React library that renders server-driven, paginated datasets as a table or card grid, switchable at runtime, built on Mantine v9 and TanStack Table v8",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",