twico-ui 1.21.0 → 1.22.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 +15 -0
- package/dist/index.cjs +387 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.mjs +387 -85
- package/dist/index.mjs.map +1 -1
- package/llms.txt +2 -0
- package/package.json +1 -1
- package/styles/twico-ui.css +7 -2
package/llms.txt
CHANGED
|
@@ -1610,6 +1610,8 @@ Props:
|
|
|
1610
1610
|
- `quickFilter` — `string` — Controlled quick-search string; pair with onQuickFilterChange to drive search from outside (the value flows into client filtering and the onServerChange query).
|
|
1611
1611
|
- `onQuickFilterChange` — `(value: string) => void` — Fires with the new quick-search string as the user types in the built-in box (and when a host sets it).
|
|
1612
1612
|
- `toolbarActions` — `React.ReactNode` — Custom node rendered in a leading toolbar slot, before the built-in Columns/Filters cluster — for host controls like an "Add row" button or bulk actions. Mirrors CardGrid's toolbar prop, so no internal-class or absolute-position hacks are needed.
|
|
1613
|
+
- `resizableFilters` — `boolean` · default `true` — Let the user drag-resize the Filters popover and its column/operator/value fields, layered over the auto-fit (a dragged width overrides the measured one; reset returns to it). Widths + panel size persist via stateKey and are keyboard-accessible. Set false to hide the handles/grip (fields still auto-fit).
|
|
1614
|
+
- `filterFieldMaxWidth` — `number` — Raise the drag cap for the filter panel's column/operator fields, in px (defaults: column 360, operator 260). Only applies when resizableFilters is on.
|
|
1613
1615
|
- `showBatchEdit` — `boolean` · default `true` — Render the built-in "Edit" button in the selection toolbar; set false to suppress it and ship your own batch-edit action via batchActions (avoids two Edit buttons).
|
|
1614
1616
|
- `batchEditFields` — `string[]` — Allow-list the column fields the built-in batch editor offers; defaults to every editable column. Trims a wide grid's editor without touching editable (which would also disable inline editing).
|
|
1615
1617
|
- `stateKey` — `string` — Persist the full view state (filters, sort, quick-search, page, page size, column order/widths/visibility/pinning, density) to localStorage under this key and restore it on mount. SSR-safe: storage is read in a mount effect, not during render, and unknown columns in a saved snapshot are dropped.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twico-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.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",
|
package/styles/twico-ui.css
CHANGED
|
@@ -367,8 +367,13 @@
|
|
|
367
367
|
--z-overlay: 1200; /* @kind other */
|
|
368
368
|
--z-modal: 1300; /* @kind other */
|
|
369
369
|
--z-popover: 1400; /* @kind other */
|
|
370
|
-
|
|
371
|
-
|
|
370
|
+
/* #288: tooltips sit BELOW toasts — a hover-only hint must never cover a toast's interactive
|
|
371
|
+
close/action controls. Still above modals/popovers so a tooltip inside them shows. */
|
|
372
|
+
--z-tooltip: 1500; /* @kind other */
|
|
373
|
+
--z-toast: 1600; /* @kind other */
|
|
374
|
+
/* Portaled input dropdowns/listboxes (Select, Combobox, MultiSelect, date/time/color pickers) sit
|
|
375
|
+
ABOVE toasts, so a toast never covers a dropdown you're actively interacting with (#288). */
|
|
376
|
+
--z-floating: 1700; /* @kind other */
|
|
372
377
|
}
|
|
373
378
|
|
|
374
379
|
/* ===== tokens/radius.css ===== */
|