twico-ui 1.34.0 → 1.35.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
@@ -1617,7 +1617,10 @@ Props:
1617
1617
  - `rowResize` — `boolean` · default `false` — Allows users to drag row edges to adjust individual row heights; off by default.
1618
1618
  - `renderRowDetail` — `(row: T) => React.ReactNode` — Expandable rows: return a detail panel to show under an expanded row (null ⇒ that row isn't expandable). Adds a leading chevron column + a full-width detail row. Not yet supported with virtualized.
1619
1619
  - `expandedRowIds` — `Array<string | number>` — Controlled set of expanded row keys (from rowKey). Omit for uncontrolled expansion; pair with onExpandedRowsChange to control it.
1620
- - `onExpandedRowsChange` — `(ids: Array<string | number>) => void` — Fires with the next full array of expanded row keys whenever a row's detail panel is expanded or collapsed.
1620
+ - `onExpandedRowsChange` — `(ids: Array<string | number>) => void` — Fires with the next full array of expanded row keys whenever a row is expanded or collapsed (shared by renderRowDetail and the row-tree).
1621
+ - `getRowCanExpand` — `(row: T) => boolean` — Server-mode lazy row-tree: draws the leading chevron on a parent DATA row (independent of renderRowDetail); expanding reveals child rows in the SAME columns. Server mode folds the expanded set into onServerChange (`expanded`); client mode uses getSubRows.
1622
+ - `getRowDepth` — `(row: T) => number` · default `0` — 0-based nesting depth for the tree indent on the first data cell (server mode supplies it; client mode derives it from the getSubRows splice).
1623
+ - `getSubRows` — `(row: T) => T[]` — Client-mode child rows for an expanded parent, spliced in as first-class rows (same columns) after it. Ignored in serverMode (host returns children inline). Rendered after pagination, so not independently sorted/filtered.
1621
1624
  - `onRowOrderChange` — `(keys)=>void` · default `-` — Fires with the new array of row keys after a drag reorder, letting you persist the updated order.
1622
1625
  - `pivot` — `object|null` · default `null` — Supplies the initial pivot model defining row, column, and value fields for cross-tabulated analysis; null by default.
1623
1626
  - `pivotMode` — `boolean` · default `false` — Renders the grid in pivot view from the start instead of the flat table layout; off by default.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twico-ui",
3
- "version": "1.34.0",
3
+ "version": "1.35.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",
@@ -109,14 +109,14 @@
109
109
  "@semantic-release/changelog": "^7.0.0",
110
110
  "@semantic-release/git": "^11.0.1",
111
111
  "@size-limit/preset-small-lib": "^13.0.3",
112
- "@testing-library/jest-dom": "^7.0.0",
112
+ "@testing-library/jest-dom": "^7.0.1",
113
113
  "@testing-library/react": "^16.1.0",
114
114
  "@testing-library/user-event": "^14.6.3",
115
115
  "@types/react": "^19.2.18",
116
116
  "@types/react-dom": "^19.2.4",
117
117
  "jsdom": "^30.0.1",
118
- "lucide-react": "^1.28.0",
119
- "semantic-release": "^25.0.8",
118
+ "lucide-react": "^1.31.0",
119
+ "semantic-release": "^25.0.9",
120
120
  "size-limit": "^13.0.3",
121
121
  "tsup": "^8.3.5",
122
122
  "typescript": "^5.9.3",