twico-ui 1.43.0 → 1.44.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/llms.txt CHANGED
@@ -1559,6 +1559,13 @@ Props:
1559
1559
  - `toolbar` — `React.ReactNode` — Extra node rendered in the toolbar row, before the sort control.
1560
1560
  - `emptyState` — `React.ReactNode` · default `"No results."` — Content shown when there are no rows and the grid is not loading.
1561
1561
  - `label` — `React.ReactNode` — Optional heading rendered above the grid and associated with it for accessibility.
1562
+ - `checkboxSelection` — `boolean` · default `false` — Shows a selection checkbox on each card and a batch toolbar once anything is picked — the same prop as Datatable.
1563
+ - `batchActions` — `CardGridBatchAction<Row>[]` · default `[]` — Actions for the selection toolbar; disabled, hidden and disabledReason may each be predicates over the current selection.
1564
+ - `onRowSelectionChange` — `(keys: Array<string | number>, rows: Row[]) => void` — Fires when the selection changes, receiving the complete keys and the row objects that could be resolved.
1565
+ - `selectionPlacement` — `"top-start" | "top-end" | "bottom-start" | "bottom-end" | "none"` · default `"top-start"` — Which corner the grid draws its checkbox in; none suppresses the overlay so you can place it yourself.
1566
+ - `selectionLabel` — `(row: Row, index: number) => string` — Per-card aria-label for the checkbox — worth setting, since a card's content is not announced with the control.
1567
+ - `showSelectAll` — `boolean` · default `true` — Shows the page-scoped select-all control, which goes indeterminate when only some cards on the page are picked.
1568
+ - `retainSelectedRows` — `boolean | number` · default `false` — Keeps off-page row objects so a multi-page selection resolves rows, not just keys; bounded at 1000 or your number.
1562
1569
 
1563
1570
  ```jsx
1564
1571
  import { CardGrid, Card, Heading, Text } from "twico-ui";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twico-ui",
3
- "version": "1.43.0",
3
+ "version": "1.44.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",
@@ -129,19 +129,19 @@
129
129
  {
130
130
  "name": "ESM (full barrel)",
131
131
  "path": "dist/index.mjs",
132
- "limit": "132 kB"
132
+ "limit": "140 kB"
133
133
  },
134
134
  {
135
135
  "name": "Button only (tree-shaken)",
136
136
  "path": "dist/index.mjs",
137
137
  "import": "{ Button }",
138
- "limit": "12 kB"
138
+ "limit": "13 kB"
139
139
  },
140
140
  {
141
141
  "name": "Card only (tree-shaken)",
142
142
  "path": "dist/index.mjs",
143
143
  "import": "{ Card }",
144
- "limit": "10 kB"
144
+ "limit": "11 kB"
145
145
  }
146
146
  ],
147
147
  "engines": {