flowbite-svelte 1.12.3 → 1.12.5
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/dist/avatar/theme.js +1 -1
- package/dist/dialog/Dialog.svelte +7 -4
- package/dist/drawer/Drawer.svelte +31 -9
- package/dist/drawer/Drawer.svelte.d.ts +5 -2
- package/dist/drawer/Drawerhead.svelte +1 -1
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/theme.d.ts +10 -1
- package/dist/drawer/theme.js +8 -4
- package/dist/dropdown/Dropdown.svelte +1 -1
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +1 -1
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +1 -1
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +1 -1
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +1 -1
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +1 -1
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +1 -1
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +1 -1
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/forms/checkbox/CheckboxButton.svelte +1 -1
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +1 -1
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/fileupload/Fileupload.svelte +1 -1
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/input-addon/InputAddon.svelte +1 -1
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/search/Search.svelte +1 -1
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/tags/Tags.svelte +1 -1
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/textarea/Textarea.svelte +1 -1
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +1 -1
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/toggle/Toggle.svelte +1 -1
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/gallery/Gallery.svelte +1 -1
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/list-group/Listgroup.svelte +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +1 -1
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/mega-menu/MegaMenu.svelte +1 -1
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/modal/Modal.svelte +3 -4
- package/dist/modal/Modal.svelte.d.ts +1 -2
- package/dist/modal/theme.d.ts +1 -1
- package/dist/modal/theme.js +1 -1
- package/dist/navbar/Menu.svelte +1 -1
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +1 -1
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +1 -1
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +1 -1
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +1 -1
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +1 -1
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +1 -1
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/popover/Popover.svelte +1 -1
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/progress/Progressbar.svelte +1 -1
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +1 -1
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/rating/AdvancedRating.svelte +1 -1
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +1 -1
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +1 -1
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +1 -1
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +1 -1
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +1 -1
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +1 -1
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/skeleton/CardPlaceholder.svelte +1 -1
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +1 -1
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +1 -1
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDial.svelte +1 -1
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/stepindicator/StepIndicator.svelte +1 -1
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +1 -1
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +1 -1
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +1 -1
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +1 -1
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +1 -1
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +3 -3
- package/dist/table/Table.svelte.d.ts +2 -2
- package/dist/table/TableBody.svelte +1 -1
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +1 -1
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/table/theme.js +1 -1
- package/dist/tabs/TabItem.svelte +1 -1
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +1 -1
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +1 -1
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +1 -1
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +1 -1
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +1 -1
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/toast/Toast.svelte +1 -1
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +1 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +1 -1
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +5 -1
- package/dist/typography/anchor/A.svelte +1 -1
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/hr/Hr.svelte +1 -1
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/img/EnhancedImg.svelte +1 -1
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +1 -1
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/list/Li.svelte +1 -1
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +1 -1
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/mark/Mark.svelte +1 -1
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/paragraph/P.svelte +1 -1
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/responsive.svelte +111 -0
- package/dist/utils/responsive.svelte.d.ts +18 -0
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +13 -6
- package/dist/utils/responsive.svelte.js +0 -99
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@component
|
|
50
50
|
[Go to docs](https://flowbite-svelte.com/)
|
|
51
51
|
## Type
|
|
52
|
-
[ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
52
|
+
[ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1909)
|
|
53
53
|
## Props
|
|
54
54
|
@prop size = "none"
|
|
55
55
|
@prop effect = "none"
|
|
@@ -2,7 +2,7 @@ import type { ImgProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ImgProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1909)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "none"
|
|
8
8
|
* @prop effect = "none"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1931)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { LayoutProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LayoutProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1931)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
@component
|
|
19
19
|
[Go to docs](https://flowbite-svelte.com/)
|
|
20
20
|
## Type
|
|
21
|
-
[LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
21
|
+
[LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1944)
|
|
22
22
|
## Props
|
|
23
23
|
@prop children
|
|
24
24
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { LiProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1944)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@component
|
|
29
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
30
|
## Type
|
|
31
|
-
[ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1936)
|
|
32
32
|
## Props
|
|
33
33
|
@prop children
|
|
34
34
|
@prop tag = "ul"
|
|
@@ -2,7 +2,7 @@ import type { ListProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ListProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1936)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop tag = "ul"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1950)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { MarkProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [MarkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1950)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1955)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className = "text-gray-900 dark:text-white"
|
|
@@ -2,7 +2,7 @@ import type { ParagraphProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ParagraphProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1955)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className = "text-gray-900 dark:text-white"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1963)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SecondaryProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SecondaryProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1963)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
@component
|
|
35
35
|
[Go to docs](https://flowbite-svelte.com/)
|
|
36
36
|
## Type
|
|
37
|
-
[SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
37
|
+
[SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1968)
|
|
38
38
|
## Props
|
|
39
39
|
@prop children
|
|
40
40
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SpanProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SpanProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1968)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
package/dist/utils/Arrow.svelte
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@component
|
|
51
51
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
52
|
## Type
|
|
53
|
-
[ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
53
|
+
[ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2010)
|
|
54
54
|
## Props
|
|
55
55
|
@prop placement = "top"
|
|
56
56
|
@prop cords
|
|
@@ -2,7 +2,7 @@ import { type ArrowProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ArrowProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2010)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop placement = "top"
|
|
8
8
|
* @prop cords
|
package/dist/utils/Popper.svelte
CHANGED
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
@component
|
|
214
214
|
[Go to docs](https://flowbite-svelte.com/)
|
|
215
215
|
## Type
|
|
216
|
-
[PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
216
|
+
[PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1990)
|
|
217
217
|
## Props
|
|
218
218
|
@prop triggeredBy
|
|
219
219
|
@prop triggerDelay = 200
|
|
@@ -2,7 +2,7 @@ import type { PopperProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PopperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1990)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop triggeredBy
|
|
8
8
|
* @prop triggerDelay = 200
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
/**
|
|
3
|
+
* A Svelte 5 rune-based media query hook
|
|
4
|
+
* @param query - CSS media query string (e.g., '(min-width: 768px)')
|
|
5
|
+
* @returns A function that returns the current match state
|
|
6
|
+
*/
|
|
7
|
+
export function useMediaQuery(query: string): () => boolean {
|
|
8
|
+
let matches = $state<boolean>(false);
|
|
9
|
+
|
|
10
|
+
$effect(() => {
|
|
11
|
+
if (typeof window === "undefined") return;
|
|
12
|
+
|
|
13
|
+
const mediaQuery: MediaQueryList = window.matchMedia(query);
|
|
14
|
+
matches = mediaQuery.matches;
|
|
15
|
+
|
|
16
|
+
const handler = (e: MediaQueryListEvent): void => {
|
|
17
|
+
matches = e.matches;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
mediaQuery.addEventListener("change", handler);
|
|
21
|
+
|
|
22
|
+
return (): void => {
|
|
23
|
+
mediaQuery.removeEventListener("change", handler);
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
return (): boolean => matches;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Hook for common Tailwind CSS breakpoints
|
|
32
|
+
* @returns Object with boolean values for each breakpoint
|
|
33
|
+
*/
|
|
34
|
+
export function useBreakpoints() {
|
|
35
|
+
const sm = useMediaQuery("(min-width: 640px)");
|
|
36
|
+
const md = useMediaQuery("(min-width: 768px)");
|
|
37
|
+
const lg = useMediaQuery("(min-width: 1024px)");
|
|
38
|
+
const xl = useMediaQuery("(min-width: 1280px)");
|
|
39
|
+
const xxl = useMediaQuery("(min-width: 1536px)");
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
get sm() {
|
|
43
|
+
return sm();
|
|
44
|
+
},
|
|
45
|
+
get md() {
|
|
46
|
+
return md();
|
|
47
|
+
},
|
|
48
|
+
get lg() {
|
|
49
|
+
return lg();
|
|
50
|
+
},
|
|
51
|
+
get xl() {
|
|
52
|
+
return xl();
|
|
53
|
+
},
|
|
54
|
+
get "2xl"() {
|
|
55
|
+
return xxl();
|
|
56
|
+
},
|
|
57
|
+
get isMobile() {
|
|
58
|
+
return !sm();
|
|
59
|
+
},
|
|
60
|
+
get isTablet() {
|
|
61
|
+
return sm() && !lg();
|
|
62
|
+
},
|
|
63
|
+
get isDesktop() {
|
|
64
|
+
return lg();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Get current breakpoint name
|
|
71
|
+
* @returns Current breakpoint as string
|
|
72
|
+
*/
|
|
73
|
+
export function useCurrentBreakpoint(): () => "xs" | "sm" | "md" | "lg" | "xl" | "2xl" {
|
|
74
|
+
let currentBreakpoint = $state<"xs" | "sm" | "md" | "lg" | "xl" | "2xl">("xs");
|
|
75
|
+
|
|
76
|
+
$effect(() => {
|
|
77
|
+
if (typeof window === "undefined") return;
|
|
78
|
+
|
|
79
|
+
const updateBreakpoint = (): void => {
|
|
80
|
+
const width = window.innerWidth;
|
|
81
|
+
if (width >= 1536) currentBreakpoint = "2xl";
|
|
82
|
+
else if (width >= 1280) currentBreakpoint = "xl";
|
|
83
|
+
else if (width >= 1024) currentBreakpoint = "lg";
|
|
84
|
+
else if (width >= 768) currentBreakpoint = "md";
|
|
85
|
+
else if (width >= 640) currentBreakpoint = "sm";
|
|
86
|
+
else currentBreakpoint = "xs";
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
updateBreakpoint();
|
|
90
|
+
window.addEventListener("resize", updateBreakpoint);
|
|
91
|
+
|
|
92
|
+
return (): void => {
|
|
93
|
+
window.removeEventListener("resize", updateBreakpoint);
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
return (): "xs" | "sm" | "md" | "lg" | "xl" | "2xl" => currentBreakpoint;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Type definitions for common breakpoint values
|
|
101
|
+
export type BreakpointKey = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
102
|
+
|
|
103
|
+
export const BREAKPOINTS: Record<BreakpointKey, number> = {
|
|
104
|
+
xs: 0,
|
|
105
|
+
sm: 640,
|
|
106
|
+
md: 768,
|
|
107
|
+
lg: 1024,
|
|
108
|
+
xl: 1280,
|
|
109
|
+
"2xl": 1536
|
|
110
|
+
} as const;
|
|
111
|
+
</script>
|
|
@@ -25,3 +25,21 @@ export declare function useBreakpoints(): {
|
|
|
25
25
|
export declare function useCurrentBreakpoint(): () => "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
26
26
|
export type BreakpointKey = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
27
27
|
export declare const BREAKPOINTS: Record<BreakpointKey, number>;
|
|
28
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
29
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
30
|
+
$$bindings?: Bindings;
|
|
31
|
+
} & Exports;
|
|
32
|
+
(internal: unknown, props: {
|
|
33
|
+
$$events?: Events;
|
|
34
|
+
$$slots?: Slots;
|
|
35
|
+
}): Exports & {
|
|
36
|
+
$set?: any;
|
|
37
|
+
$on?: any;
|
|
38
|
+
};
|
|
39
|
+
z_$$bindings?: Bindings;
|
|
40
|
+
}
|
|
41
|
+
declare const Responsive: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
42
|
+
[evt: string]: CustomEvent<any>;
|
|
43
|
+
}, {}, {}, string>;
|
|
44
|
+
type Responsive = InstanceType<typeof Responsive>;
|
|
45
|
+
export default Responsive;
|
package/dist/video/Video.svelte
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
@component
|
|
22
22
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
23
|
## Type
|
|
24
|
-
[VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
24
|
+
[VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1977)
|
|
25
25
|
## Props
|
|
26
26
|
@prop children
|
|
27
27
|
@prop type = "video/mp4"
|
|
@@ -2,7 +2,7 @@ import type { VideoProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [VideoProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1977)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop type = "video/mp4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -21,11 +21,12 @@
|
|
|
21
21
|
"@flowbite-svelte-plugins/datatable": "^0.4.0",
|
|
22
22
|
"@flowbite-svelte-plugins/texteditor": "^0.25.3",
|
|
23
23
|
"@playwright/test": "^1.54.2",
|
|
24
|
+
"@resvg/resvg-js": "^2.6.2",
|
|
24
25
|
"@sveltejs/adapter-auto": "^6.0.2",
|
|
25
26
|
"@sveltejs/adapter-vercel": "^5.8.2",
|
|
26
|
-
"@sveltejs/enhanced-img": "
|
|
27
|
+
"@sveltejs/enhanced-img": "0.6.1",
|
|
27
28
|
"@sveltejs/kit": "^2.27.3",
|
|
28
|
-
"@sveltejs/package": "2.4.
|
|
29
|
+
"@sveltejs/package": "2.4.1",
|
|
29
30
|
"@sveltejs/vite-plugin-svelte": "^6.1.1",
|
|
30
31
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
31
32
|
"@tailwindcss/vite": "^4.1.11",
|
|
@@ -57,19 +58,21 @@
|
|
|
57
58
|
"publint": "^0.3.12",
|
|
58
59
|
"runatics": "^0.1.4",
|
|
59
60
|
"runes-meta-tags": "^0.4.4",
|
|
61
|
+
"satori": "^0.16.2",
|
|
62
|
+
"satori-html": "^0.3.2",
|
|
60
63
|
"simple-datatables": "^10.0.0",
|
|
61
64
|
"svelte": "^5.38.0",
|
|
62
65
|
"svelte-check": "^4.3.1",
|
|
63
66
|
"svelte-doc-llm": "^0.2.2",
|
|
64
67
|
"svelte-lib-helpers": "^0.4.30",
|
|
65
68
|
"svelte-meta-tags": "^4.4.0",
|
|
66
|
-
"svelte-rune-highlight": "^0.
|
|
69
|
+
"svelte-rune-highlight": "^0.7.0",
|
|
67
70
|
"tailwindcss": "^4.1.11",
|
|
68
71
|
"tsx": "^4.20.3",
|
|
69
72
|
"typescript": "^5.9.2",
|
|
70
|
-
"typescript-eslint": "8.39.
|
|
73
|
+
"typescript-eslint": "8.39.1",
|
|
71
74
|
"vite": "^6.3.5",
|
|
72
|
-
"vite-plugin-devtools-json": "^0.
|
|
75
|
+
"vite-plugin-devtools-json": "^1.0.0",
|
|
73
76
|
"vitest": "^3.2.4"
|
|
74
77
|
},
|
|
75
78
|
"peerDependencies": {
|
|
@@ -805,6 +808,10 @@
|
|
|
805
808
|
"types": "./dist/utils/Popper.svelte.d.ts",
|
|
806
809
|
"svelte": "./dist/utils/Popper.svelte"
|
|
807
810
|
},
|
|
811
|
+
"./responsive.svelte": {
|
|
812
|
+
"types": "./dist/utils/responsive.svelte.d.ts",
|
|
813
|
+
"svelte": "./dist/utils/responsive.svelte"
|
|
814
|
+
},
|
|
808
815
|
"./Video.svelte": {
|
|
809
816
|
"types": "./dist/video/Video.svelte.d.ts",
|
|
810
817
|
"svelte": "./dist/video/Video.svelte"
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A Svelte 5 rune-based media query hook
|
|
3
|
-
* @param query - CSS media query string (e.g., '(min-width: 768px)')
|
|
4
|
-
* @returns A function that returns the current match state
|
|
5
|
-
*/
|
|
6
|
-
export function useMediaQuery(query) {
|
|
7
|
-
let matches = $state(false);
|
|
8
|
-
$effect(() => {
|
|
9
|
-
if (typeof window === "undefined")
|
|
10
|
-
return;
|
|
11
|
-
const mediaQuery = window.matchMedia(query);
|
|
12
|
-
matches = mediaQuery.matches;
|
|
13
|
-
const handler = (e) => {
|
|
14
|
-
matches = e.matches;
|
|
15
|
-
};
|
|
16
|
-
mediaQuery.addEventListener("change", handler);
|
|
17
|
-
return () => {
|
|
18
|
-
mediaQuery.removeEventListener("change", handler);
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
return () => matches;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Hook for common Tailwind CSS breakpoints
|
|
25
|
-
* @returns Object with boolean values for each breakpoint
|
|
26
|
-
*/
|
|
27
|
-
export function useBreakpoints() {
|
|
28
|
-
const sm = useMediaQuery("(min-width: 640px)");
|
|
29
|
-
const md = useMediaQuery("(min-width: 768px)");
|
|
30
|
-
const lg = useMediaQuery("(min-width: 1024px)");
|
|
31
|
-
const xl = useMediaQuery("(min-width: 1280px)");
|
|
32
|
-
const xxl = useMediaQuery("(min-width: 1536px)");
|
|
33
|
-
return {
|
|
34
|
-
get sm() {
|
|
35
|
-
return sm();
|
|
36
|
-
},
|
|
37
|
-
get md() {
|
|
38
|
-
return md();
|
|
39
|
-
},
|
|
40
|
-
get lg() {
|
|
41
|
-
return lg();
|
|
42
|
-
},
|
|
43
|
-
get xl() {
|
|
44
|
-
return xl();
|
|
45
|
-
},
|
|
46
|
-
get "2xl"() {
|
|
47
|
-
return xxl();
|
|
48
|
-
},
|
|
49
|
-
get isMobile() {
|
|
50
|
-
return !sm();
|
|
51
|
-
},
|
|
52
|
-
get isTablet() {
|
|
53
|
-
return sm() && !lg();
|
|
54
|
-
},
|
|
55
|
-
get isDesktop() {
|
|
56
|
-
return lg();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Get current breakpoint name
|
|
62
|
-
* @returns Current breakpoint as string
|
|
63
|
-
*/
|
|
64
|
-
export function useCurrentBreakpoint() {
|
|
65
|
-
let currentBreakpoint = $state("xs");
|
|
66
|
-
$effect(() => {
|
|
67
|
-
if (typeof window === "undefined")
|
|
68
|
-
return;
|
|
69
|
-
const updateBreakpoint = () => {
|
|
70
|
-
const width = window.innerWidth;
|
|
71
|
-
if (width >= 1536)
|
|
72
|
-
currentBreakpoint = "2xl";
|
|
73
|
-
else if (width >= 1280)
|
|
74
|
-
currentBreakpoint = "xl";
|
|
75
|
-
else if (width >= 1024)
|
|
76
|
-
currentBreakpoint = "lg";
|
|
77
|
-
else if (width >= 768)
|
|
78
|
-
currentBreakpoint = "md";
|
|
79
|
-
else if (width >= 640)
|
|
80
|
-
currentBreakpoint = "sm";
|
|
81
|
-
else
|
|
82
|
-
currentBreakpoint = "xs";
|
|
83
|
-
};
|
|
84
|
-
updateBreakpoint();
|
|
85
|
-
window.addEventListener("resize", updateBreakpoint);
|
|
86
|
-
return () => {
|
|
87
|
-
window.removeEventListener("resize", updateBreakpoint);
|
|
88
|
-
};
|
|
89
|
-
});
|
|
90
|
-
return () => currentBreakpoint;
|
|
91
|
-
}
|
|
92
|
-
export const BREAKPOINTS = {
|
|
93
|
-
xs: 0,
|
|
94
|
-
sm: 640,
|
|
95
|
-
md: 768,
|
|
96
|
-
lg: 1024,
|
|
97
|
-
xl: 1280,
|
|
98
|
-
"2xl": 1536
|
|
99
|
-
};
|