Skip to content

Commit 6e9efb7

Browse files
committed
v1.12.0
1 parent 8716564 commit 6e9efb7

File tree

388 files changed

+651
-792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+651
-792
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

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+
325
## 1.11.8
426

527
### Patch Changes

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-svelte",
3-
"version": "1.11.8",
3+
"version": "1.12.0",
44
"description": "Flowbite components for Svelte",
55
"main": "dist/index.js",
66
"author": {
@@ -305,6 +305,10 @@
305305
"types": "./dist/device-mockups/Tablet.svelte.d.ts",
306306
"svelte": "./dist/device-mockups/Tablet.svelte"
307307
},
308+
"./Dialog.svelte": {
309+
"types": "./dist/dialog/Dialog.svelte.d.ts",
310+
"svelte": "./dist/dialog/Dialog.svelte"
311+
},
308312
"./Drawer.svelte": {
309313
"types": "./dist/drawer/Drawer.svelte.d.ts",
310314
"svelte": "./dist/drawer/Drawer.svelte"

src/lib/accordion/Accordion.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
@component
3535
[Go to docs](https://flowbite-svelte.com/)
3636
## Type
37-
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L168)
37+
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L169)
3838
## Props
3939
@prop children
4040
@prop flush

src/lib/accordion/AccordionItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
@component
9898
[Go to docs](https://flowbite-svelte.com/)
9999
## Type
100-
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L176)
100+
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L177)
101101
## Props
102102
@prop children
103103
@prop header

src/lib/alert/Alert.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
@component
6464
[Go to docs](https://flowbite-svelte.com/)
6565
## Type
66-
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L190)
66+
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L191)
6767
## Props
6868
@prop children
6969
@prop icon

src/lib/avatar/Avatar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
@component
4949
[Go to docs](https://flowbite-svelte.com/)
5050
## Type
51-
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L201)
51+
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L202)
5252
## Props
5353
@prop children
5454
@prop indicator

src/lib/badge/Badge.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
@component
5555
[Go to docs](https://flowbite-svelte.com/)
5656
## Type
57-
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L213)
57+
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L214)
5858
## Props
5959
@prop children
6060
@prop icon

src/lib/banner/Banner.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
@component
4545
[Go to docs](https://flowbite-svelte.com/)
4646
## Type
47-
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L227)
47+
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L228)
4848
## Props
4949
@prop children
5050
@prop header

src/lib/bottom-navigation/BottomNav.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@component
4242
[Go to docs](https://flowbite-svelte.com/)
4343
## Type
44-
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L245)
44+
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L246)
4545
## Props
4646
@prop children
4747
@prop header

src/lib/bottom-navigation/BottomNavHeader.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@component
2727
[Go to docs](https://flowbite-svelte.com/)
2828
## Type
29-
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L264)
29+
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L265)
3030
## Props
3131
@prop children
3232
@prop class: className

0 commit comments

Comments
 (0)