twico-ui 1.26.0 → 1.28.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.
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +70 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.mjs +70 -21
- package/dist/index.mjs.map +1 -1
- package/llms.txt +5 -2
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -1562,7 +1562,8 @@ Props:
|
|
|
1562
1562
|
- `loading` — `boolean` · default `false` — Replaces the grid body with skeleton rows while data is being fetched; off by default.
|
|
1563
1563
|
- `rowKey` — `(row,index)=>key` · default `(r,i)=>r.id??i` — Returns a stable unique key per row, defaulting to the row's id or its index, to keep selection and renders consistent.
|
|
1564
1564
|
- `checkboxSelection` — `boolean` · default `false` — Adds a leading checkbox column for selecting rows, enabling batch actions; off by default.
|
|
1565
|
-
- `batchActions` — `DatatableBatchAction array` · default `[]` —
|
|
1565
|
+
- `batchActions` — `DatatableBatchAction array` · default `[]` — Actions in the selection toolbar that operate on the selected rows; each action's disabled/hidden can be a predicate (keys, rows) => boolean evaluated against the current selection.
|
|
1566
|
+
- `onRowSelectionChange` — `(keys,rows)=>void` · default `-` — Fires when the checkbox row selection changes, with the selected keys and rows — the row-mode analogue of onCellSelectionChange, for driving a batch action's disabled state.
|
|
1566
1567
|
- `density` — `compact|standard|comfortable` · default `comfortable` — Sets the row height preset (compact, standard, or comfortable) to trade vertical space for readability, defaulting to comfortable.
|
|
1567
1568
|
- `pageSize` — `number` · default `10` — Rows per page (0 disables pagination). Uncontrolled by default (changing it re-applies + resets to page 0); controlled when onPageSizeChange is set.
|
|
1568
1569
|
- `page` — `number` — Controlled current page (0-based); when set, the table renders this page and reports changes via onPageChange.
|
|
@@ -1593,7 +1594,9 @@ Props:
|
|
|
1593
1594
|
- `onCellClick` — `(value,row,field)=>void` · default `-` — Fires with the clicked cell's value, its row, and the field name when a cell is clicked.
|
|
1594
1595
|
- `onActiveCellChange` — `(cell|null)=>void` · default `-` — Fires when the active cell changes via keyboard or click, receiving the new cell descriptor or null.
|
|
1595
1596
|
- `onCellSelectionChange` — `(cells)=>void` · default `-` — Fires when the rectangular cell selection changes in cell mode (Shift+Click / Shift+Arrow), with every selected cell {key, field} in row-major order.
|
|
1596
|
-
- `enableClipboard` — `boolean` · default `false` — Enable spreadsheet clipboard in cell mode: Ctrl/Cmd+C/X/V copy/cut/paste as TSV. Paste is format-restricted by each column's copyType (incompatible cells skipped) and commits via one batched onRowsChange.
|
|
1597
|
+
- `enableClipboard` — `boolean` · default `false` — Enable spreadsheet clipboard in cell mode: Ctrl/Cmd+C/X/V copy/cut/paste as TSV. Paste is format-restricted by each column's copyType (incompatible cells skipped) and commits via one batched onRowsChange. Copy/cut/paste also show a visible in-grid toast + cell flash.
|
|
1598
|
+
- `onCellsCopy` — `(cells,meta)=>void` · default `-` — Fires on a clipboard copy/cut with the copied cells ({key, field}[]) and { cut }, so you can surface your own toast or notification.
|
|
1599
|
+
- `onCellsPaste` — `(result)=>void` · default `-` — Fires after a clipboard paste with { written, skipped } — cells committed vs rejected (read-only or incompatible copyType).
|
|
1597
1600
|
- `showAggregation` — `boolean` · default `false` — Shows the toolbar Aggregation button and starts with the totals row on; hidden by default, so enable it to expose column aggregations.
|
|
1598
1601
|
- `ariaLabel` — `string` · default `Data table` — Sets the grid's accessible aria-label for screen readers, defaulting to "Data table".
|
|
1599
1602
|
- `rowGrouping` — `string array` · default `[]` — Lists the field names to group rows by on initial render, collapsing rows into expandable groups; empty by default.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twico-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "Twico UI — a free, modern, themeable React + Tailwind-friendly component library. 61 components with dark mode, motion, and accessibility built in.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Twico UI",
|