@xeplr/ui-table 1.0.6 → 1.0.7

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 +213 -105
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,151 +1,259 @@
1
1
  # @xeplr/ui-table
2
2
 
3
- Schema-driven React data table. Sort, filter, paginate, edit, nested children, transactional commits, config-driven cell renderers. Gold-on-dark theme.
3
+ **A schema-driven React data table on TanStack Table.** Column types are detected from the data and each gets its own filter; rows sort and paginate; with `onCommit` the table edits, adds and deletes rows — nested children included — and hands back one changeset for a transactional save.
4
4
 
5
- (The package name on npm is `@xeplr/ui-table` — the GitHub repo and folder are named `xeplr-ui-table`.)
5
+ ```jsx
6
+ import { XeplrTable } from '@xeplr/ui-table'
7
+
8
+ <XeplrTable
9
+ data={departments}
10
+ schema={{ 0: { key: 'department', columns: [
11
+ { accessor: 'name', header: 'Department' },
12
+ { accessor: 'budget', header: 'Budget', render: { type: 'currency', currency: 'INR' } },
13
+ { accessor: 'isActive', header: 'Active' }
14
+ ] } }}
15
+ onCommit={(changeSet) => api.post('/api/departments/save', changeSet)}
16
+ />
17
+ ```
18
+
19
+ The changeset is exactly what [`@xeplr/base-apis`](https://www.npmjs.com/package/@xeplr/base-apis)' `genericRoute` `POST /save` takes.
20
+
21
+ ## How the pieces fit
22
+
23
+ | what | where |
24
+ |---|---|
25
+ | The component | `XeplrTable` |
26
+ | Sorting, filtering, pagination, type detection | `useTableController` (TanStack wiring) |
27
+ | Add / edit / delete staging, selection, commit | `useActionsController` |
28
+ | The diff sent to `onCommit` | `buildChangeSet` |
29
+ | Conditional cell styles written as sentences | `resolveCellStyle` |
30
+ | Declarative cell renderers | `renderers` |
31
+ | Style layers → CSS for a host's style panel | `tableStyles` exports |
32
+ | Widths sized to content | `useColumnWidths`, `columnWidths` exports |
6
33
 
7
34
  ## Install
8
35
 
9
36
  ```sh
10
- npm i @xeplr/ui-table
37
+ npm i @xeplr/ui-table @tanstack/react-table
11
38
  ```
12
39
 
13
- Peer dep: `react ^18 || ^19`.
40
+ Peers: `react` 18 or 19, `@tanstack/react-table` 8. Filter panels use `createPortal` from `react-dom`.
14
41
 
15
- ## Quick start
42
+ The package ships its `src/` as ES modules with JSX and imports its own stylesheet (`xeplr-table.css`), so it needs a bundler that compiles both — Vite does.
16
43
 
17
- ```jsx
18
- import { XeplrTable } from '@xeplr/ui-table';
44
+ ## Props
19
45
 
20
- <XeplrTable
21
- data={projects}
22
- schema={{ 0: { key: 'projects', columns: [
23
- { accessor: 'name', header: 'Project', render: { type: 'twoLine', subKey: 'subtitle' } },
24
- { accessor: 'client', header: 'Client', render: { type: 'avatarName', subKey: 'clientType' } },
25
- { accessor: 'tags', header: 'Tags', render: { type: 'tags' } },
26
- { accessor: 'budget', header: 'Budget', render: { type: 'currency', currency: 'INR' } },
27
- { accessor: 'members', header: 'Team', render: { type: 'memberChips', max: 3 } }
28
- ]}}}
29
- onCommit={async (changeSet) => api.save(changeSet)}
30
- />
46
+ | prop | default | |
47
+ |---|---|---|
48
+ | `data` | — | row array. Rows need an `id` for editing, selection and the changeset |
49
+ | `schema` | — | `{ 0: { key, columns }, 1: { key, columns, header? }, … }` — see below |
50
+ | `onCommit` | — | `async (changeSet) => …`. **Omit it and the table is read-only** |
51
+ | `rowActions` | — | custom per-row buttons, replacing the built-in set |
52
+ | `childDisplay` | `'popup'` | `'popup'` or `'inner'` — how level-1 children show |
53
+ | `pageSize` | `20` | initial page size (the page-size menu offers 100, 200, 500, 1000) |
54
+ | `enableSorting`, `enableFiltering`, `enablePagination` | `true` | |
55
+ | `minDetectionRows` | `10` | non-empty samples a column needs before its detected type is final |
56
+ | `sorting`, `onSortingChange` | — | controlled sort (`[{ id, desc }]`) — see Sorting |
57
+ | `onHeaderClick` | — | `(columnKey, isGroupHeader)` — **replaces** sort-on-click |
58
+ | `toolbarLeading` | — | `(ctx) => node` after the built-in toolbar buttons |
59
+ | `toolbarActions` | — | `(ctx) => node` replacing Clear Filters / Clear Sort |
60
+ | `rowClassName` | — | `(row) => string` |
61
+ | `columnClassName` | — | `(column, index) => string`, applied to the header and every cell of that column |
62
+ | `cellStyle` | — | `({ row, rowIndex, columnKey, value }) => style` — on top of the schema's conditional styles |
63
+ | `headerStyle` | — | `({ columnKey, isGroupHeader, depth }) => style` |
64
+ | `cellZoom` | `false` | double-click a cell to show it enlarged. Ignored when the schema has children shown as `'popup'`, where double-click opens the record |
65
+ | `columnSizing` | fill | `'content'` sizes columns to their text |
66
+ | `columnText`, `sizingSampleRows` (200), `minColumnWidth` (40), `maxColumnWidth` (420), `columnWidths`, `sizingKey`, `onColumnSizing` | | content sizing — see below |
67
+ | `className` | — | added to the container |
68
+
69
+ Toolbar slots receive `{ rowCount, totalCount, selectedCount, resetFilters, resetSorting, enableFiltering }` — `rowCount` after filtering, `totalCount` before.
70
+
71
+ ## Schema
72
+
73
+ ```js
74
+ {
75
+ 0: { key: 'department', columns: [...] }, // the rows
76
+ 1: { key: 'employees', header: 'Employees', columns: [...] }, // row.employees
77
+ 2: { key: 'salaries', columns: [...] } // each employee's salaries
78
+ }
31
79
  ```
32
80
 
33
- Filters, sort, pagination, type detection are all automatic.
81
+ Level N+1's `key` is the array property on each level-N row. `header` titles a child table (defaults to `key`).
34
82
 
35
- ## Column config
83
+ ### Columns
36
84
 
37
- Each column object:
85
+ | field | |
86
+ |---|---|
87
+ | `accessor` | row property — required on a leaf column |
88
+ | `header` | title; defaults to `accessor` |
89
+ | `dataType` | `'string'`, `'number'`, `'date'` or `'boolean'` — skips detection |
90
+ | `render` | `{ type, …config }`, or the renderer name as a string |
91
+ | `cell` | TanStack cell function `(ctx) => node`; wins over `render` |
92
+ | `cellStyle` | `[{ when, …css }]` or `(value, row) => css` |
93
+ | `enableSorting`, `enableColumnFilter` | default `true` |
38
94
 
39
- | field | type | notes |
40
- |---|---|---|
41
- | `accessor` | string | required — row property |
42
- | `header` | string | column title |
43
- | `dataType` | `'string'\|'number'\|'date'\|'boolean'` | optional — auto-detected from data |
44
- | `render` | `{ type, ...config }` or string | declarative cell — see renderers |
45
- | `cell` | `(ctx) => ReactNode` | escape hatch — custom JSX (overrides `render`) |
46
- | `cellStyle` | array | conditional styles — `[{ when: '$.status is active', backgroundColor, color }]` |
47
- | `enableSorting` | boolean | default true |
48
- | `enableColumnFilter` | boolean | default true |
95
+ A column may instead be a **group** — `{ header, id?, columns: [...] }` — rendered as one header cell spanning its children (a pivoted date over its measures). Groups nest; leaves under them sort, filter and render as usual.
49
96
 
50
- ## Renderers
97
+ An unknown `render` type throws, listing the available ones.
51
98
 
52
- Pass via `render: { type: 'X', ...config }`. String shorthand `render: 'X'` works for renderers with no config.
99
+ ## Column types and filters
53
100
 
54
- | type | config | value shape | output |
55
- |---|---|---|---|
56
- | `avatarName` | `{ subKey?, size? }` | string | avatar+bold name [+ subtitle from `row[subKey]`] |
57
- | `twoLine` | `{ subKey? }` | string | primary line [+ subtitle from `row[subKey]`] |
58
- | `tags` | `{ variant?: 'gold'\|'muted'\|'blue', max? }` | `string[]` or comma-string | pill list, `+N` overflow |
59
- | `currency` | `{ currency?: 'INR', position?: 'before', decimals?: 0, bold? }` | number | symbol + formatted number |
60
- | `memberChips` | `{ max?: 3, nameKey?: 'name' }` | `Array<{name,...}>` | avatar+name chips, `+N` overflow |
61
- | `statusBadge` | `{ map: { value: { bg, color, label? } }, default? }` | string | colored pill |
62
- | `dateDisplay` | `{ format?: 'date'\|'datetime'\|'relative' }` | Date or ISO string | formatted date |
63
- | `link` | `{ onClick?(row), hrefKey?, target? }` | string | clickable text or `<a>` |
101
+ Detection samples the first 100 rows, ignoring `null`, `undefined` and `''`. A column is:
64
102
 
65
- Add your own: drop a file in `src/renderers/<name>.jsx` exporting `default function (config) { return cell; }`, register it in `renderers/index.js`. Or import the registry and extend at runtime: `import { renderers } from '@xeplr/ui-table'`.
103
+ 1. **boolean** if every value is one of `true false 0 1 '0' '1' 'true' 'false' 'True' 'False' 'TRUE' 'FALSE'`
104
+ 2. else **number** if every value converts with `Number()`
105
+ 3. else **date** if every value is a non-numeric string that `Date.parse` accepts
106
+ 4. else **string**
66
107
 
67
- ## Conditional cell styling
108
+ A column with no samples is a string. Once every column has at least `minDetectionRows` samples, the types are kept for the life of the component.
68
109
 
69
- ```js
70
- { accessor: 'status', cellStyle: [
71
- { when: '$.status is active', backgroundColor: '#1b5e20', color: '#a5d6a7' },
72
- { when: '$.budget < 100000', backgroundColor: '#bf360c', color: '#ffab91' }
73
- ]}
74
- ```
110
+ | type | filter |
111
+ |---|---|
112
+ | string | searchable checklist of the distinct values, Select All / Clear All, Is Null / Is Not Null |
113
+ | number | equals, not equals, `>`, `>=`, `<`, `<=`, between; Is Null / Is Not Null |
114
+ | date | equals, not equals, after, on or after, before, on or before, between — compared by calendar day |
115
+ | boolean | All / True / False |
75
116
 
76
- Operators: `is`, `is not`, `>`, `<`, `>=`, `<=`, `contains`, `starts with`, `ends with`, `is empty`, `is not empty`. See `operators.js`.
117
+ Filter panels are portalled to `document.body` so a scrolling table cannot clip them; they close on scroll and resize.
77
118
 
78
- ## Nested data (schema levels)
119
+ ## Sorting
79
120
 
80
- ```js
81
- schema = {
82
- 0: { key: 'teams', columns: [...] }, // root
83
- 1: { key: 'employees', columns: [...] }, // children of each row
84
- 2: { key: 'tasks', columns: [...] } // grandchildren
85
- }
86
- ```
121
+ Uncontrolled by default: clicking a header sorts the rows. Pass `sorting` and the table stops sorting itself — header clicks are reported through `onSortingChange` and the rows are shown in the order given. That is for data whose order is not the view's to change: a grouped report's subtotals belong with their group, and a running total describes the order it was computed in.
87
122
 
88
- Each row at level N must have `row[schema[N+1].key]` as an array.
123
+ ## Editing
89
124
 
90
- `childDisplay` prop:
91
- - `'popup'` (default) — double-click row → modal with children
92
- - `'inner'` — expand arrow inline
125
+ With `onCommit`:
93
126
 
94
- ## Edit / add / delete / commit
127
+ - **+ Add New** opens a form; its fields are the keys of the first row (or the schema columns when there are no rows).
128
+ - Each row gets a checkbox, and the Actions column shows **view, copy, edit, delete**. Copy opens Add with the row's values and no id.
129
+ - Selected rows: **Delete Selected (n)**.
130
+ - Changes are **staged** — the table shows them at once — and counted on **Commit (n)**. **Discard** drops them.
131
+ - **Commit** diffs the staged rows against `data` and calls `onCommit(changeSet)`. When it resolves, the stage is cleared; when it rejects, the stage is kept. The table does not update `data` itself — pass the saved rows back in.
95
132
 
96
- Pass `onCommit={async (changeSet) => ...}`. Toolbar gets **+ Add New**, row checkboxes get **Delete Selected**, double-click → edit modal. Edits stage locally; **Commit** flushes a deep diff:
133
+ Children (a schema with level 1): in `'popup'` mode, double-click or view opens the record with its child tables, which have their own add, edit and delete. In `'inner'` mode an expand arrow shows the child table under the row. Without children, view opens a read-only form.
134
+
135
+ Without `onCommit` there are no checkboxes, toolbar edit buttons or built-in row actions.
136
+
137
+ ### The changeset
138
+
139
+ Sparse, nested by child `key`:
97
140
 
98
141
  ```js
99
142
  [
100
- { op: 'add', path: ['teams', null], record: {...} },
101
- { op: 'update', path: ['teams', '3'], record: {...}, changes: { status: 'inactive' } },
102
- { op: 'delete', path: ['teams', '5', 'employees', 'e7'] }
143
+ { id: 'd1', name: 'Engineering Dept', // changed fields only
144
+ employees: [
145
+ { id: '', name: 'New Hire', role: 'Junior' }, // new: every field, no usable id
146
+ { id: 'e2', role: 'Senior' },
147
+ { id: 'e3', deleted: true }
148
+ ] },
149
+ { id: '', name: 'New Department' },
150
+ { id: 'd9', deleted: true }
103
151
  ]
104
152
  ```
105
153
 
106
- `buildChangeSet(originalData, stagedData, schema)` is exported if you want to compute diffs yourself.
154
+ | staged row | entry |
155
+ |---|---|
156
+ | new (no `id`) | all fields, children included; the internal `_tempId` is stripped |
157
+ | changed | `id` plus fields whose value is not `===` the original, plus a child array if its children changed |
158
+ | removed | `{ id, deleted: true }` |
159
+ | unchanged | omitted |
107
160
 
108
- ## Props (XeplrTable)
161
+ `buildChangeSet(originalData, stagedData, schema)` is exported.
109
162
 
110
- | prop | type | default |
111
- |---|---|---|
112
- | `data` | `Array<object>` | required |
113
- | `schema` | `{ 0: { key, columns }, 1?, 2?, ... }` | required |
114
- | `childDisplay` | `'popup'\|'inner'` | `'popup'` |
115
- | `pageSize` | number | 20 |
116
- | `enableSorting` | boolean | true |
117
- | `enableFiltering` | boolean | true |
118
- | `enablePagination` | boolean | true |
119
- | `onCommit` | `async (changeSet) => void` | — (omit to make table read-only) |
120
- | `className` | string | — |
163
+ ### Row actions
121
164
 
122
- ## Theme
165
+ ```jsx
166
+ rowActions={[
167
+ { key: 'rollback', label: 'Rollback', onClick: (row) => rollback(row.id),
168
+ visible: (row) => row.status === 'done', disabled: (row) => row.locked, variant: 'danger', icon: <UndoIcon /> }
169
+ ]}
170
+ ```
123
171
 
124
- Gold-on-dark by default. Override in your stylesheet — every chrome rule and renderer class is namespaced `.xeplr-table-*` / `.xeplr-r-*`. The override block at the bottom of `xeplr-table.css` is the canonical theme definition.
172
+ Replaces the built-in buttons. Each fires `onClick(row)` immediately — no staging, and `onCommit` is not needed. Button classes: `xeplr-table-action-<key>`, `xeplr-table-action-<variant>`.
125
173
 
126
- ## Files
174
+ ## Conditional cell styles
127
175
 
176
+ ```js
177
+ { accessor: 'status', cellStyle: [
178
+ { when: '$.status is active', backgroundColor: '#1b5e20', color: '#a5d6a7' },
179
+ { when: '$.budget < 100000', backgroundColor: '#bf360c' }
180
+ ] }
128
181
  ```
129
- src/
130
- XeplrTable.jsx ─ main component
131
- useTableController.js ─ TanStack wiring + renderer dispatch
132
- useActionsController.js ─ add/edit/delete staging + commit
133
- detectTypes.js ─ infers column dataType from rows
134
- resolveCellStyle.js ─ evaluates `cellStyle` rules
135
- operators.js ─ shared comparison logic
136
- buildChangeSet.js ─ deep-diff for transactional commits
137
- xeplr-table.css ─ chrome + renderer styles + theme
138
-
139
- filters/
140
- StringFilter.jsx · NumberFilter.jsx · DateFilter.jsx · BooleanFilter.jsx · FilterWrapper.jsx
141
- actions/
142
- ActionsCell.jsx · RecordModal.jsx · RecordDetail.jsx · ChildTable.jsx
143
- renderers/
144
- avatarName.jsx · twoLine.jsx · tags.jsx · currency.jsx
145
- memberChips.jsx · statusBadge.jsx · dateDisplay.jsx · link.jsx
146
- _helpers.js · index.js
147
- ```
182
+
183
+ Rules are tried in order; **the first match wins** and its keys other than `when` become the inline style. `$.field` reads any field of the row.
184
+
185
+ | operator | example |
186
+ |---|---|
187
+ | `is`, `is not` | `$.status is active` |
188
+ | `is null`, `is not null` | `$.endDate is null` — `''` counts as null |
189
+ | `>`, `<`, `>=`, `<=` | `$.score >= 90` |
190
+ | `between … and …` | `$.age between 18 and 65` |
191
+ | `in [ … ]`, `not in [ … ]` | `$.region in [north, south]` |
192
+ | `starts with`, `ends with`, `contains`, `does not contain` | `$.name starts with 'Jo'` — case-insensitive |
193
+
194
+ Numeric strings compare as numbers. A host `cellStyle` prop result is merged over this.
195
+
196
+ ## Renderers
197
+
198
+ `render: { type, …config }`:
199
+
200
+ | type | config | value |
201
+ |---|---|---|
202
+ | `twoLine` | `subKey` | text, with `row[subKey]` beneath |
203
+ | `avatarName` | `subKey`, `size` (`'md'`), `imgKey`, `imgPrefix` | name with an image (`imgPrefix + row[imgKey]`) or coloured initials |
204
+ | `tags` | `variant` (`'gold'`, `'muted'`, `'blue'`), `max` | `string[]` or a comma-separated string; `+N` overflow |
205
+ | `currency` | `currency` (`'INR'`), `position` (`'before'` / `'after'`), `decimals` (0), `bold` (true) | number |
206
+ | `memberChips` | `max` (3), `nameKey` (`'name'`), `imgKey`, `imgPrefix` | array of objects |
207
+ | `statusBadge` | `map: { value: { bg, color, border?, label? } }`, `default` | text |
208
+ | `dateDisplay` | `format`: `'date'` (`15 Sep 2026`), `'datetime'`, `'relative'` (`3h ago`, dates after 30 days) | Date or ISO string |
209
+ | `link` | `hrefKey` (renders `<a href={row[hrefKey]}>`) and `target`, or `onClick(row)` | text |
210
+
211
+ Each renderer is `(config) => (ctx) => node`. The `renderers` object is the registry the table reads, so `renderers.myType = (config) => (ctx) => …` adds one.
212
+
213
+ ## Content sizing
214
+
215
+ `columnSizing="content"` measures each column's text (canvas, at the table's font) over the first `sizingSampleRows` rows of `data` — not the current page, so columns do not jump when paging.
216
+
217
+ - Everything fits → each column gets its natural width; leftover space stays empty.
218
+ - It does not fit → no empty space; every column drops to its floor (its longest word) and the remainder is shared in proportion to what each wanted.
219
+ - Not even the floors fit → floors, and the table scrolls horizontally.
220
+
221
+ `columnWidths: { [leafIndex]: percent }` pins columns to a share of the width the columns divide (after checkbox, expand and actions columns). **By index**, because a pivot's column keys are data and change on refresh. `columnText(row, column)` supplies the displayed text when cells are formatted; `sizingKey` forces a re-measure (a font change cannot be observed); `onColumnSizing` receives each column's natural width, floor, assigned width and reason (`natural`, `shrunk`, `floor`, `pinned`).
222
+
223
+ ## Styling
224
+
225
+ CSS classes are namespaced `xeplr-table-*` (chrome) and `xeplr-r-*` (renderers). Colours come from `@xeplr/ui-account`'s theme tokens when present (`.xeplr-theme-light` / `.xeplr-theme-dark` on an ancestor), with a dark palette as fallback:
226
+
227
+ `--xeplr-text-primary`, `--xeplr-text-secondary`, `--xeplr-text-muted`, `--xeplr-bg-secondary`, `--xeplr-bg-tertiary`, `--xeplr-bg-hover`, `--xeplr-bg-active`, `--xeplr-bg-overlay`, `--xeplr-border-primary`, `--xeplr-border-secondary`, `--xeplr-accent`, `--xeplr-accent-hover`, `--xeplr-accent-muted`, `--xeplr-accent-text`, `--xeplr-input-bg`, `--xeplr-input-border`, `--xeplr-input-text`, `--xeplr-tag-bg`, `--xeplr-tag-border`, `--xeplr-tag-text`, `--xeplr-success`, `--xeplr-success-bg`, `--xeplr-warning`, `--xeplr-warning-bg`, `--xeplr-danger`, `--xeplr-danger-bg`, `--xeplr-shadow-lg`, `--xeplr-table-group-border`.
228
+
229
+ The `gold` / `blue` tag variants and `link` use fixed colours. The header is not sticky by default; add `position: sticky; top: 0` to `.xeplr-table-th` and the table offsets each grouped header row by the real height of the rows above it.
230
+
231
+ ### Style layers for a host panel
232
+
233
+ `tableStyles.js` is the vocabulary a host builds a style editor from — no React:
234
+
235
+ | export | |
236
+ |---|---|
237
+ | `STYLE_GROUPS`, `STYLE_FIELDS`, `styleField(path)` | every stylable property by path: `text.*`, `fill.background`, `box.padding.*`, `box.height`, `border.radius`, `border.{all,top,right,bottom,left}.{width,style,color}` |
238
+ | `flattenStyle(style)` | nested → `{ path: value }`, with `border.all` expanded into the sides **inside its own layer** |
239
+ | `resolveStyle(layers)` | per property, the higher `rank` wins; equal ranks are decided by the later `at` |
240
+ | `toCssProperties(resolved)`, `resolveCellCss(layers)` | → a React style object; a border width without a style becomes `solid` |
241
+ | `cssLength(value)` | `12` → `12px`, `{ value, unit }` → `value+unit`, strings unchanged |
242
+
243
+ There is no margin property: a `<td>` ignores margin.
148
244
 
149
245
  ## Exports
150
246
 
151
- `XeplrTable`, `useTableController`, `useActionsController`, `TYPES`, `detectTypes`, `buildChangeSet`, `resolveCellStyle`, `resolveOperator`, `CHILD_DISPLAY`, individual filter components, action components, `renderers` registry + each renderer factory.
247
+ `XeplrTable`, `CHILD_DISPLAY`, `useTableController`, `useActionsController`, `detectTypes`, `TYPES`, `StringFilter` / `stringFilterFn`, `NumberFilter` / `numberFilterFn`, `DateFilter` / `dateFilterFn`, `BooleanFilter` / `booleanFilterFn`, `FilterWrapper`, `ActionsCell`, `RecordModal`, `RecordDetail`, `ChildTable`, `CellZoom`, `buildChangeSet`, `resolveOperator`, `resolveString`, `resolveNumber`, `resolveDate`, `isNullish`, `resolveCellStyle`, `STYLE_GROUPS`, `STYLE_FIELDS`, `BORDER_SIDES`, `styleField`, `cssLength`, `flattenStyle`, `resolveStyle`, `toCssProperties`, `resolveCellCss`, `useColumnWidths`, `measureColumnDemand`, `allocateColumnWidths`, `resolvePercentWidths`, `longestToken`, `WIDTH_NATURAL`, `WIDTH_SHRUNK`, `WIDTH_FLOOR`, `renderers`, `avatarName`, `tags`, `currency`, `memberChips`, `twoLine`, `statusBadge`, `dateDisplay`, `link`.
248
+
249
+ ## Tests
250
+
251
+ ```sh
252
+ npm test
253
+ ```
254
+
255
+ Plain Node, no browser: changeset building, conditional-style parsing, style-layer resolution, column-width allocation, and the staging logic behind `useActionsController`. A Vite demo lives in `demo/`.
256
+
257
+ ## License
258
+
259
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeplr/ui-table",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Controlled TanStack Table wrapper with auto-detected column types and smart filters",
5
5
  "type": "module",
6
6
  "main": "src/index.js",