cleanplate 0.3.12 → 0.3.13

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/docs/Modal.md CHANGED
@@ -137,10 +137,10 @@ const App = () => {
137
137
 
138
138
  ## Behavior Notes
139
139
 
140
- - **Rendering:** When `isOpen` is false, the component returns `null` (nothing in the DOM).
140
+ - **Rendering:** The modal mounts when `isOpen` is true and unmounts shortly after close so the exit transition can finish.
141
141
  - **Close:** onClose is called when the user clicks the X button (if showCloseButton), the overlay (if closeOnOverlayClick), or Escape (if closeOnEscape). Footer buttons do not auto-close; call onClose in their handlers if desired.
142
- - **Body scroll:** When open, `document.body.style.overflow` is set to `"hidden"`; restored on close.
143
- - **Focus:** On open, focus moves to the modal panel (ref + tabIndex={-1}); on close, focus returns to the previously focused element.
142
+ - **Body scroll:** Body scroll is locked while open and restored when dismissed.
143
+ - **Focus:** Focus is trapped while open and returned to the previously focused element on close.
144
144
  - **ARIA:** The overlay has `role="dialog"`, `aria-modal="true"`, and `aria-labelledby` pointing to the title when present.
145
145
  - **Spacing:** `margin` accepts a full class string (e.g. "m-0") or an array of spacing suffixes; the component uses `getSpacingClass` with prefix `m-`.
146
146
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cleanplate",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "description": "CleanPlate - A Headless React UI Framework",
5
5
  "files": [
6
6
  "dist",