twico-ui 1.36.0 → 1.37.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
@@ -2882,7 +2882,8 @@ Props:
2882
2882
  - `size` — `"sm" | "md" | "lg" | "full"` · default `"md"` — Adds a new "full" option: a near-fullscreen panel that fills the viewport minus a small margin (existing sm/md/lg unchanged).
2883
2883
  - `closeOnBackdrop` — `boolean` · default `true` — Closes the dialog when the surrounding scrim is clicked, enabled by default; disable for required interactions.
2884
2884
  - `children` — `React.ReactNode` — Main body content of the dialog, such as forms, messages, or detail views requiring the user's attention.
2885
- - `scrollBody` — `boolean` · default `false` — Keep the header and footer fixed and scroll only the body, so long content does not overflow the viewport.
2885
+ - `scrollBody` — `boolean` · default `true` — Pin the header and footer and scroll only the body, so the action buttons never scroll off-screen; set false to scroll the whole panel as one block.
2886
+ - `dividers` — `boolean` · default `true` — Draw a rule between header/body and body/footer (auto-suppressed for an empty region); set false to read as one continuous surface.
2886
2887
 
2887
2888
  ```jsx
2888
2889
  import { Dialog, Button } from "twico-ui";
@@ -2921,6 +2922,7 @@ Props:
2921
2922
  - `description` — `React.ReactNode` — Secondary supporting text shown under the title to give context for the drawer's content or task.
2922
2923
  - `footer` — `React.ReactNode` — Footer region for pinned actions, typically right-aligned buttons displayed below the drawer body.
2923
2924
  - `closeOnBackdrop` — `boolean` · default `true` — Closes the drawer when the backdrop scrim is clicked, enabled by default; disable for required interactions.
2925
+ - `dividers` — `boolean` · default `true` — Draw a rule between header/body and body/footer (matches Dialog; auto-suppressed for an empty region); set false for one continuous surface.
2924
2926
  - `children` — `React.ReactNode` — Body content of the drawer, such as nav menus, filters, detail views, or a cart over the page.
2925
2927
  - `width` — `"sm" | "md" | "lg" | number | string` · default `"md"` — Panel width for side left/right — preset sm/md/lg, a number (px), or a CSS length.
2926
2928
  - `height` — `"sm" | "md" | "lg" | number | string` · default `"md"` — Panel height for side top/bottom — preset sm/md/lg, a number (px), or a CSS length.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twico-ui",
3
- "version": "1.36.0",
3
+ "version": "1.37.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",
@@ -120,7 +120,7 @@
120
120
  "size-limit": "^13.0.3",
121
121
  "tsup": "^8.3.5",
122
122
  "typescript": "^5.9.3",
123
- "vitest": "^4.1.10"
123
+ "vitest": "^5.0.0"
124
124
  },
125
125
  "size-limit": [
126
126
  {