|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 1.12.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- Dialog component & exports — src/lib/dialog/Dialog.svelte, src/lib/dialog/index.ts, src/lib/dialog/theme.ts, src/lib/index.ts |
| 8 | + New Dialog.svelte (TypeScript) implementing native <dialog> integration (form/modal modes), lifecycle callbacks (onaction / oncancel / onsubmit / ontoggle), focus trap, dismissal, transitions, and styling via dialog() theme. Re-exports added and surfaced in library index. |
| 9 | + |
| 10 | +- Drawer refactor & theme — src/lib/drawer/Drawer.svelte, src/lib/drawer/theme.ts |
| 11 | + Drawer now renders via Dialog (bind:open); public API changed from hidden / backdrop / activateClickOutside / transitionType → open / outsideclose / transition. Theme extends dialog and simplifies slots, placement, and backdrop handling. |
| 12 | + |
| 13 | +- Modal refactor & theme — src/lib/modal/Modal.svelte, src/lib/modal/theme.ts |
| 14 | + Modal delegates rendering/lifecycle to Dialog (bind:open), removes native dialog handlers and legacy props, adopts transitionParams. Modal theme extends dialog and updates slots/placements. |
| 15 | + |
| 16 | +- Types centralization — src/lib/types.ts |
| 17 | + Adds DialogProps and DialogVariants. Refactors DrawerProps and ModalProps to extend/reuse dialog typings and reflect the new prop surface (transitionParams, modal, outsideclose, etc.). |
| 18 | + |
| 19 | +- Examples & docs — Drawer migration — src/routes/api-check/components/drawer/examples/_, src/routes/examples/drawer/_.svelte, src/routes/blocks/**, src/routes/docs/**, src/routes/builder/drawer/+page.svelte |
| 20 | +Examples/docs updated: rename hiddenX → openX, bind:hidden → bind:open, replace backdrop / activateClickOutside with modal / outsideclose or CSS backdrop classes, remove some CloseButton / header wrappers, and update generated code snippets. |
| 21 | + |
| 22 | +- Specific page & example updates — src/routes/admin-dashboard/(sidebar)/crud/products/+page.svelte, src/routes/builder/modal/+page.svelte, src/routes/api-check/forms/timepicker.svelte, various drawer example pages |
| 23 | + Replace hidden → open bindings; update modal usage from params → transitionParams; align triggers and handlers to new open semantics and new Drawer props (outsideclose / modal). |
| 24 | + |
3 | 25 | ## 1.11.8 |
4 | 26 |
|
5 | 27 | ### Patch Changes |
|
0 commit comments