@invana/tables 0.0.26 → 0.0.28

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.
Files changed (2) hide show
  1. package/README.md +43 -0
  2. package/package.json +7 -7
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # @invana/tables
2
+
3
+ Data table components for Invana products — TanStack Table v8 underneath, `@invana/ui` on top,
4
+ with drag-to-reorder columns and editable cells.
5
+
6
+ ```bash
7
+ pnpm add @invana/tables
8
+ ```
9
+
10
+ Peer dependencies: `@invana/ui`, `@invana/styling`, `@invana/forms`, `react`, `react-dom`.
11
+
12
+ ## Usage
13
+
14
+ ```tsx
15
+ import { DataTable, DataTablePagination, type ColumnDef } from '@invana/tables';
16
+
17
+ type Run = { id: string; task: string; status: string; duration: string };
18
+
19
+ const columns: ColumnDef<Run>[] = [
20
+ { accessorKey: 'task', header: 'Task' },
21
+ { accessorKey: 'status', header: 'Status' },
22
+ { accessorKey: 'duration', header: 'Duration' },
23
+ ];
24
+
25
+ export function RunsTable({ rows }: { rows: Run[] }) {
26
+ return <DataTable columns={columns} data={rows} />;
27
+ }
28
+ ```
29
+
30
+ ## Exports
31
+
32
+ - `DataTable` (and `DataTableProps`)
33
+ - `DataTableToolbar` — filter and column-visibility chrome
34
+ - `DataTablePagination` — page controls
35
+ - `EditableCell` — in-place cell editing, with `CellEditHandler`, `EditType` and `EditOption`
36
+
37
+ TanStack's state types are re-exported so consumers need not add `@tanstack/react-table` directly:
38
+ `ColumnDef`, `SortingState`, `ColumnFiltersState`, `ColumnOrderState`, `ColumnPinningState`,
39
+ `PaginationState`, `VisibilityState`.
40
+
41
+ ## License
42
+
43
+ MIT © Ravi Raja Merugu
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invana/tables",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "Invana Design System - Data table components",
5
5
  "homepage": "https://github.com/invana/design-kit#readme",
6
6
  "type": "module",
@@ -40,9 +40,9 @@
40
40
  "peerDependencies": {
41
41
  "react": "^18 || ^19",
42
42
  "react-dom": "^18 || ^19",
43
- "@invana/styling": "0.0.26",
44
- "@invana/ui": "0.0.26",
45
- "@invana/forms": "0.0.26"
43
+ "@invana/forms": "0.0.28",
44
+ "@invana/styling": "0.0.28",
45
+ "@invana/ui": "0.0.28"
46
46
  },
47
47
  "dependencies": {
48
48
  "@dnd-kit/core": "^6.3.1",
@@ -59,9 +59,9 @@
59
59
  "react-dom": "^19.2.7",
60
60
  "tsup": "^8.5.1",
61
61
  "typescript": "~5.9.3",
62
- "@invana/forms": "0.0.26",
63
- "@invana/styling": "0.0.26",
64
- "@invana/ui": "0.0.26"
62
+ "@invana/styling": "0.0.28",
63
+ "@invana/forms": "0.0.28",
64
+ "@invana/ui": "0.0.28"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "tsup",