flowbite-svelte 1.28.0 → 1.28.2
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/accordion/Accordion.svelte +1 -1
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +1 -1
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/alert/Alert.svelte +1 -1
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/badge/Badge.svelte +1 -1
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/banner/Banner.svelte +1 -1
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNav.svelte +1 -1
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/Breadcrumb.svelte +1 -1
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/button-group/ButtonGroup.svelte +1 -1
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +19 -6
- package/dist/buttons/Button.svelte.d.ts +1 -0
- package/dist/buttons/theme.d.ts +3 -0
- package/dist/buttons/theme.js +2 -1
- package/dist/carousel/Carousel.svelte +1 -1
- package/dist/carousel/CarouselIndicators.svelte +1 -1
- package/dist/carousel/Thumbnails.svelte +1 -1
- package/dist/command-palette/CommandPalette.svelte +1 -1
- package/dist/command-palette/CommandPalette.svelte.d.ts +1 -1
- package/dist/datepicker/Datepicker.svelte +3 -3
- package/dist/datepicker/theme.js +23 -23
- package/dist/dialog/Dialog.svelte +0 -1
- package/dist/drawer/theme.d.ts +3 -3
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +14 -12
- package/dist/dropdown/DropdownItem.svelte.d.ts +4 -2
- 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 +2 -2
- 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/select/MultiSelect.svelte +5 -5
- package/dist/forms/select/Select.svelte +1 -1
- package/dist/forms/tags/Tags.svelte +2 -2
- package/dist/forms/tags/theme.d.ts +9 -9
- package/dist/forms/textarea/Textarea.svelte +1 -1
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +3 -3
- 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 +2 -2
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5 -2
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/kanban/KanbanCard.svelte +1 -1
- package/dist/kanban/KanbanCard.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 +6 -8
- 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 +2 -2
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/modal/Modal.svelte +1 -1
- package/dist/modal/Modal.svelte.d.ts +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 +4 -4
- package/dist/navbar/NavContainer.svelte.d.ts +2 -2
- package/dist/navbar/NavHamburger.svelte +1 -1
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +4 -3
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +5 -5
- package/dist/navbar/NavUl.svelte.d.ts +2 -2
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/pagination/Pagination.svelte +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- 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 +3 -3
- 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/rating/theme.d.ts +3 -3
- package/dist/scroll-spy/ScrollSpy.svelte +1 -1
- package/dist/scroll-spy/ScrollSpy.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +4 -3
- 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 +15 -22
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +2 -2
- 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 +2 -2
- 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/spinner/theme.d.ts +1 -1
- package/dist/split-pane/Divider.svelte +1 -1
- package/dist/split-pane/Divider.svelte.d.ts +1 -1
- package/dist/split-pane/Pane.svelte +1 -1
- package/dist/split-pane/Pane.svelte.d.ts +1 -1
- package/dist/split-pane/SplitPane.svelte +1 -1
- package/dist/split-pane/SplitPane.svelte.d.ts +1 -1
- package/dist/step-indicator/StepIndicator.svelte +2 -2
- package/dist/step-indicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +2 -2
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +2 -2
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +2 -2
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +2 -2
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +2 -2
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +2 -2
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +1 -1
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +3 -3
- 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 +2 -2
- 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/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/theme/index.d.ts +1 -0
- package/dist/theme/index.js +1 -0
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +2 -2
- 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 +2 -2
- 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/toast/ToastContainer.svelte +1 -1
- package/dist/toast/ToastContainer.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/tooltip/theme.d.ts +2 -2
- package/dist/tooltip/theme.js +1 -1
- package/dist/types.d.ts +31 -13
- package/dist/typography/a/A.svelte +1 -1
- package/dist/typography/a/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/blockquote/index.d.ts +2 -3
- package/dist/typography/blockquote/index.js +2 -3
- 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/img/Img.svelte +1 -1
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/index.d.ts +0 -1
- package/dist/typography/img/index.js +0 -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/uiHelpers.svelte.d.ts +3 -3
- package/dist/uiHelpers.svelte.js +46 -53
- package/dist/utils/Arrow.svelte +6 -8
- package/dist/utils/Arrow.svelte.d.ts +1 -2
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +7 -9
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/debounce.d.ts +1 -1
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +29 -34
- package/dist/typography/img/EnhancedImg.svelte +0 -64
- package/dist/typography/img/EnhancedImg.svelte.d.ts +0 -19
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L206)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@prop flush
|
|
@@ -2,7 +2,7 @@ import type { AccordionProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L206)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop flush
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
@component
|
|
112
112
|
[Go to docs](https://flowbite-svelte.com/)
|
|
113
113
|
## Type
|
|
114
|
-
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
114
|
+
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L214)
|
|
115
115
|
## Props
|
|
116
116
|
@prop children
|
|
117
117
|
@prop header
|
|
@@ -2,7 +2,7 @@ import type { AccordionItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L214)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
package/dist/alert/Alert.svelte
CHANGED
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
@component
|
|
78
78
|
[Go to docs](https://flowbite-svelte.com/)
|
|
79
79
|
## Type
|
|
80
|
-
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
80
|
+
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L228)
|
|
81
81
|
## Props
|
|
82
82
|
@prop children
|
|
83
83
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import { type AlertProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L228)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@component
|
|
50
50
|
[Go to docs](https://flowbite-svelte.com/)
|
|
51
51
|
## Type
|
|
52
|
-
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
52
|
+
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L239)
|
|
53
53
|
## Props
|
|
54
54
|
@prop children
|
|
55
55
|
@prop indicator
|
|
@@ -2,7 +2,7 @@ import { type AvatarProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L239)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop indicator
|
package/dist/badge/Badge.svelte
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
@component
|
|
73
73
|
[Go to docs](https://flowbite-svelte.com/)
|
|
74
74
|
## Type
|
|
75
|
-
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
75
|
+
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L251)
|
|
76
76
|
## Props
|
|
77
77
|
@prop children
|
|
78
78
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import { type BadgeProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L251)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
@component
|
|
62
62
|
[Go to docs](https://flowbite-svelte.com/)
|
|
63
63
|
## Type
|
|
64
|
-
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
64
|
+
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L265)
|
|
65
65
|
## Props
|
|
66
66
|
@prop children
|
|
67
67
|
@prop header
|
|
@@ -2,7 +2,7 @@ import { type BannerProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L265)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
@component
|
|
43
43
|
[Go to docs](https://flowbite-svelte.com/)
|
|
44
44
|
## Type
|
|
45
|
-
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
45
|
+
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L284)
|
|
46
46
|
## Props
|
|
47
47
|
@prop children
|
|
48
48
|
@prop header
|
|
@@ -2,7 +2,7 @@ import { type BottomNavProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L284)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L303)
|
|
30
30
|
## Props
|
|
31
31
|
@prop children
|
|
32
32
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { BottomNavHeaderProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L303)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@component
|
|
21
21
|
[Go to docs](https://flowbite-svelte.com/)
|
|
22
22
|
## Type
|
|
23
|
-
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
23
|
+
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
|
|
24
24
|
## Props
|
|
25
25
|
@prop itemName
|
|
26
26
|
@prop active
|
|
@@ -2,7 +2,7 @@ import type { BottomNavHeaderItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L309)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop itemName
|
|
8
8
|
* @prop active
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
@component
|
|
74
74
|
[Go to docs](https://flowbite-svelte.com/)
|
|
75
75
|
## Type
|
|
76
|
-
[BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
76
|
+
[BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L293)
|
|
77
77
|
## Props
|
|
78
78
|
@prop children
|
|
79
79
|
@prop btnName
|
|
@@ -2,7 +2,7 @@ import type { BottomNavItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L293)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop btnName
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L315)
|
|
30
30
|
## Props
|
|
31
31
|
@prop children
|
|
32
32
|
@prop solid = false
|
|
@@ -2,7 +2,7 @@ import type { BreadcrumbProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L315)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop solid = false
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
@component
|
|
59
59
|
[Go to docs](https://flowbite-svelte.com/)
|
|
60
60
|
## Type
|
|
61
|
-
[BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
61
|
+
[BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L322)
|
|
62
62
|
## Props
|
|
63
63
|
@prop children
|
|
64
64
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { BreadcrumbItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L322)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Type
|
|
25
|
-
[ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L333)
|
|
26
26
|
## Props
|
|
27
27
|
@prop children
|
|
28
28
|
@prop size = "md"
|
|
@@ -2,7 +2,7 @@ import type { ButtonGroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L333)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size = "md"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
+
import { Spinner } from "..";
|
|
4
5
|
import type { SizeType, ButtonProps } from "..";
|
|
5
6
|
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
import { button } from "./theme";
|
|
@@ -8,7 +9,20 @@
|
|
|
8
9
|
const group: SizeType = getContext("group");
|
|
9
10
|
const ctxDisabled: boolean | undefined = getContext("disabled");
|
|
10
11
|
|
|
11
|
-
let {
|
|
12
|
+
let {
|
|
13
|
+
children,
|
|
14
|
+
pill,
|
|
15
|
+
outline = false,
|
|
16
|
+
size = "md",
|
|
17
|
+
color,
|
|
18
|
+
shadow = false,
|
|
19
|
+
tag = "button",
|
|
20
|
+
disabled,
|
|
21
|
+
loading = false,
|
|
22
|
+
spinnerProps = { size: "4" },
|
|
23
|
+
class: className,
|
|
24
|
+
...restProps
|
|
25
|
+
}: ButtonProps = $props();
|
|
12
26
|
|
|
13
27
|
const theme = getTheme("button");
|
|
14
28
|
|
|
@@ -16,7 +30,8 @@
|
|
|
16
30
|
let actualColor = $derived(color ?? (group ? (outline ? "dark" : "alternative") : "primary"));
|
|
17
31
|
let isDisabled = $derived(Boolean(ctxDisabled) || Boolean(disabled) || loading);
|
|
18
32
|
|
|
19
|
-
const { base, outline: outline_, shadow: shadow_ } = $derived(button({ color: actualColor, size: actualSize, disabled: isDisabled, pill, group: !!group }));
|
|
33
|
+
const { base, outline: outline_, shadow: shadow_, spinner } = $derived(button({ color: actualColor, size: actualSize, disabled: isDisabled, pill, group: !!group }));
|
|
34
|
+
|
|
20
35
|
let btnCls = $derived(base({ class: clsx(outline && outline_(), shadow && shadow_(), theme?.base, className) }));
|
|
21
36
|
</script>
|
|
22
37
|
|
|
@@ -28,10 +43,7 @@
|
|
|
28
43
|
<button type="button" {...restProps} class={btnCls} disabled={isDisabled}>
|
|
29
44
|
{@render children?.()}
|
|
30
45
|
{#if loading}
|
|
31
|
-
<
|
|
32
|
-
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" />
|
|
33
|
-
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z" />
|
|
34
|
-
</svg>
|
|
46
|
+
<Spinner {...spinnerProps} class={spinner()} />
|
|
35
47
|
{/if}
|
|
36
48
|
</button>
|
|
37
49
|
{:else}
|
|
@@ -55,6 +67,7 @@
|
|
|
55
67
|
@prop tag = "button"
|
|
56
68
|
@prop disabled
|
|
57
69
|
@prop loading = false
|
|
70
|
+
@prop spinnerProps = { size: "4" }
|
|
58
71
|
@prop class: className
|
|
59
72
|
@prop ...restProps
|
|
60
73
|
-->
|
package/dist/buttons/theme.d.ts
CHANGED
|
@@ -146,6 +146,7 @@ export declare const button: import("tailwind-variants").TVReturnType<{
|
|
|
146
146
|
base: string;
|
|
147
147
|
outline: string;
|
|
148
148
|
shadow: string;
|
|
149
|
+
spinner: string;
|
|
149
150
|
}, undefined, {
|
|
150
151
|
color: {
|
|
151
152
|
primary: {
|
|
@@ -291,6 +292,7 @@ export declare const button: import("tailwind-variants").TVReturnType<{
|
|
|
291
292
|
base: string;
|
|
292
293
|
outline: string;
|
|
293
294
|
shadow: string;
|
|
295
|
+
spinner: string;
|
|
294
296
|
}, import("tailwind-variants").TVReturnType<{
|
|
295
297
|
color: {
|
|
296
298
|
primary: {
|
|
@@ -436,6 +438,7 @@ export declare const button: import("tailwind-variants").TVReturnType<{
|
|
|
436
438
|
base: string;
|
|
437
439
|
outline: string;
|
|
438
440
|
shadow: string;
|
|
441
|
+
spinner: string;
|
|
439
442
|
}, undefined, unknown, unknown, undefined>>;
|
|
440
443
|
export declare const gradientButton: import("tailwind-variants").TVReturnType<{
|
|
441
444
|
color: {
|
package/dist/buttons/theme.js
CHANGED
|
@@ -3,7 +3,8 @@ export const button = tv({
|
|
|
3
3
|
slots: {
|
|
4
4
|
base: "text-center font-medium inline-flex items-center justify-center",
|
|
5
5
|
outline: "bg-transparent border hover:text-white dark:bg-transparent dark:hover-text-white",
|
|
6
|
-
shadow: "shadow-lg"
|
|
6
|
+
shadow: "shadow-lg",
|
|
7
|
+
spinner: "ms-2"
|
|
7
8
|
},
|
|
8
9
|
variants: {
|
|
9
10
|
color: {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<div class={base({ class: clsx(theme?.base, className) })} {...restProps}>
|
|
22
|
-
{#each _state.images as _, idx}
|
|
22
|
+
{#each _state.images as _, idx (idx)}
|
|
23
23
|
{@const selected = _state.index === idx}
|
|
24
24
|
<button type="button" onclick={() => goToIndex(idx)} aria-current={selected ? "true" : undefined} aria-label={`Go to slide ${idx + 1}`}>
|
|
25
25
|
{#if children}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<div class={thumbnails({ class: clsx(theme, className) })}>
|
|
34
|
-
{#each images as image, idx}
|
|
34
|
+
{#each images as image, idx (image.src || idx)}
|
|
35
35
|
{@const selected = index === idx}
|
|
36
36
|
<button onclick={() => btnClick(idx)} aria-label={ariaLabel} aria-current={selected ? "true" : undefined}>
|
|
37
37
|
{#if children}
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
@component
|
|
195
195
|
[Go to docs](https://flowbite-svelte.com/)
|
|
196
196
|
## Type
|
|
197
|
-
[CommandPaletteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
197
|
+
[CommandPaletteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2213)
|
|
198
198
|
## Props
|
|
199
199
|
@prop open = $bindable(false)
|
|
200
200
|
@prop items = []
|
|
@@ -2,7 +2,7 @@ import type { CommandPaletteProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CommandPaletteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CommandPaletteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L2213)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop open = $bindable(false)
|
|
8
8
|
* @prop items = []
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
{@render yearNavButton(true)}
|
|
461
461
|
</div>
|
|
462
462
|
<div class="grid grid-cols-4 gap-2 p-4">
|
|
463
|
-
{#each monthNames as month, index}
|
|
463
|
+
{#each monthNames as month, index (index)}
|
|
464
464
|
<Button
|
|
465
465
|
type="button"
|
|
466
466
|
color={monthColor}
|
|
@@ -487,10 +487,10 @@
|
|
|
487
487
|
{@render navButton(true)}
|
|
488
488
|
</div>
|
|
489
489
|
<div class={grid({ class: clsx(theme?.grid, classes?.grid) })} role="grid">
|
|
490
|
-
{#each weekdays as day}
|
|
490
|
+
{#each weekdays as day (day)}
|
|
491
491
|
<div class={columnHeader({ class: clsx(theme?.columnHeader, classes?.columnHeader) })} role="columnheader">{day}</div>
|
|
492
492
|
{/each}
|
|
493
|
-
{#each daysInMonth as day}
|
|
493
|
+
{#each daysInMonth as day (day)}
|
|
494
494
|
{@const current = day.getMonth() !== currentMonth.getMonth()}
|
|
495
495
|
{@const available = isDateAvailable(day)}
|
|
496
496
|
<Button
|
package/dist/datepicker/theme.js
CHANGED
|
@@ -16,29 +16,29 @@ export const datepicker = tv({
|
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
18
18
|
color: {
|
|
19
|
-
primary: { input: "focus:ring-primary-500 dark:focus:ring-primary-400", dayButton: "bg-primary-
|
|
20
|
-
blue: { input: "focus:ring-blue-500 dark:focus:ring-blue-400", dayButton: "bg-blue-
|
|
21
|
-
red: { input: "focus:ring-red-500 dark:focus:ring-red-400", dayButton: "bg-red-
|
|
22
|
-
green: { input: "focus:ring-green-500 dark:focus:ring-green-400", dayButton: "bg-green-
|
|
23
|
-
yellow: { input: "focus:ring-yellow-500 dark:focus:ring-yellow-400", dayButton: "bg-yellow-
|
|
24
|
-
purple: { input: "focus:ring-purple-500 dark:focus:ring-purple-400", dayButton: "bg-purple-
|
|
25
|
-
dark: { input: "focus:ring-gray-500 dark:focus:ring-gray-400", dayButton: "bg-gray-
|
|
26
|
-
light: { input: "focus:ring-gray-500 dark:focus:ring-gray-400", dayButton: "bg-gray-
|
|
27
|
-
alternative: { input: "focus:ring-alternative-500 dark:focus:ring-alternative-400", dayButton: "bg-alternative-
|
|
28
|
-
secondary: { input: "focus:ring-secondary-500 dark:focus:ring-secondary-400", dayButton: "bg-secondary-
|
|
29
|
-
gray: { input: "focus:ring-gray-500 dark:focus:ring-gray-400", dayButton: "bg-gray-
|
|
30
|
-
orange: { input: "focus:ring-orange-500 dark:focus:ring-orange-400", dayButton: "bg-orange-
|
|
31
|
-
amber: { input: "focus:ring-amber-500 dark:focus:ring-amber-400", dayButton: "bg-amber-
|
|
32
|
-
lime: { input: "focus:ring-lime-500 dark:focus:ring-lime-400", dayButton: "bg-lime-
|
|
33
|
-
emerald: { input: "focus:ring-emerald-500 dark:focus:ring-emerald-400", dayButton: "bg-emerald-
|
|
34
|
-
teal: { input: "focus:ring-teal-500 dark:focus:ring-teal-400", dayButton: "bg-teal-
|
|
35
|
-
cyan: { input: "focus:ring-cyan-500 dark:focus:ring-cyan-400", dayButton: "bg-cyan-
|
|
36
|
-
sky: { input: "focus:ring-sky-500 dark:focus:ring-sky-400", dayButton: "bg-sky-
|
|
37
|
-
indigo: { input: "focus:ring-indigo-500 dark:focus:ring-indigo-400", dayButton: "bg-indigo-
|
|
38
|
-
violet: { input: "focus:ring-violet-500 dark:focus:ring-violet-400", dayButton: "bg-violet-
|
|
39
|
-
fuchsia: { input: "focus:ring-fuchsia-500 dark:focus:ring-fuchsia-400", dayButton: "bg-fuchsia-
|
|
40
|
-
pink: { input: "focus:ring-pink-500 dark:focus:ring-pink-400", dayButton: "bg-pink-
|
|
41
|
-
rose: { input: "focus:ring-rose-500 dark:focus:ring-rose-400", dayButton: "bg-rose-
|
|
19
|
+
primary: { input: "focus:ring-primary-500 dark:focus:ring-primary-400", dayButton: "bg-primary-300 dark:bg-primary-900" },
|
|
20
|
+
blue: { input: "focus:ring-blue-500 dark:focus:ring-blue-400", dayButton: "bg-blue-300 dark:bg-blue-900" },
|
|
21
|
+
red: { input: "focus:ring-red-500 dark:focus:ring-red-400", dayButton: "bg-red-300 dark:bg-red-900" },
|
|
22
|
+
green: { input: "focus:ring-green-500 dark:focus:ring-green-400", dayButton: "bg-green-300 dark:bg-green-900" },
|
|
23
|
+
yellow: { input: "focus:ring-yellow-500 dark:focus:ring-yellow-400", dayButton: "bg-yellow-300 dark:bg-yellow-900" },
|
|
24
|
+
purple: { input: "focus:ring-purple-500 dark:focus:ring-purple-400", dayButton: "bg-purple-300 dark:bg-purple-900" },
|
|
25
|
+
dark: { input: "focus:ring-gray-500 dark:focus:ring-gray-400", dayButton: "bg-gray-300 dark:bg-gray-900" },
|
|
26
|
+
light: { input: "focus:ring-gray-500 dark:focus:ring-gray-400", dayButton: "bg-gray-300 dark:bg-gray-900" },
|
|
27
|
+
alternative: { input: "focus:ring-alternative-500 dark:focus:ring-alternative-400", dayButton: "bg-alternative-300 dark:bg-alternative-900" },
|
|
28
|
+
secondary: { input: "focus:ring-secondary-500 dark:focus:ring-secondary-400", dayButton: "bg-secondary-300 dark:bg-secondary-900" },
|
|
29
|
+
gray: { input: "focus:ring-gray-500 dark:focus:ring-gray-400", dayButton: "bg-gray-300 dark:bg-gray-900" },
|
|
30
|
+
orange: { input: "focus:ring-orange-500 dark:focus:ring-orange-400", dayButton: "bg-orange-300 dark:bg-orange-900" },
|
|
31
|
+
amber: { input: "focus:ring-amber-500 dark:focus:ring-amber-400", dayButton: "bg-amber-300 dark:bg-amber-900" },
|
|
32
|
+
lime: { input: "focus:ring-lime-500 dark:focus:ring-lime-400", dayButton: "bg-lime-300 dark:bg-lime-900" },
|
|
33
|
+
emerald: { input: "focus:ring-emerald-500 dark:focus:ring-emerald-400", dayButton: "bg-emerald-300 dark:bg-emerald-900" },
|
|
34
|
+
teal: { input: "focus:ring-teal-500 dark:focus:ring-teal-400", dayButton: "bg-teal-300 dark:bg-teal-900" },
|
|
35
|
+
cyan: { input: "focus:ring-cyan-500 dark:focus:ring-cyan-400", dayButton: "bg-cyan-300 dark:bg-cyan-900" },
|
|
36
|
+
sky: { input: "focus:ring-sky-500 dark:focus:ring-sky-400", dayButton: "bg-sky-300 dark:bg-sky-900" },
|
|
37
|
+
indigo: { input: "focus:ring-indigo-500 dark:focus:ring-indigo-400", dayButton: "bg-indigo-300 dark:bg-indigo-900" },
|
|
38
|
+
violet: { input: "focus:ring-violet-500 dark:focus:ring-violet-400", dayButton: "bg-violet-300 dark:bg-violet-900" },
|
|
39
|
+
fuchsia: { input: "focus:ring-fuchsia-500 dark:focus:ring-fuchsia-400", dayButton: "bg-fuchsia-300 dark:bg-fuchsia-900" },
|
|
40
|
+
pink: { input: "focus:ring-pink-500 dark:focus:ring-pink-400", dayButton: "bg-pink-300 dark:bg-pink-900" },
|
|
41
|
+
rose: { input: "focus:ring-rose-500 dark:focus:ring-rose-400", dayButton: "bg-rose-300 dark:bg-rose-900" }
|
|
42
42
|
},
|
|
43
43
|
inline: {
|
|
44
44
|
false: { base: "absolute z-10 mt-1" }
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
|
|
38
38
|
// Prefer requestClose when available to trigger a cancellable "cancel" event; otherwise synthesize it.
|
|
39
39
|
const cancel = (dlg: HTMLDialogElement) => {
|
|
40
|
-
// @ts-ignore
|
|
41
40
|
if (typeof dlg.requestClose === "function") return dlg.requestClose();
|
|
42
41
|
dlg.dispatchEvent(new Event("cancel", { bubbles: true, cancelable: true }));
|
|
43
42
|
};
|
package/dist/drawer/theme.d.ts
CHANGED
|
@@ -63,16 +63,16 @@ export type DrawerheadVariants = VariantProps<typeof drawerhead> & Classes<typeo
|
|
|
63
63
|
export declare const drawerhead: import("tailwind-variants").TVReturnType<{
|
|
64
64
|
[key: string]: {
|
|
65
65
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
66
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
67
66
|
button?: import("tailwind-merge").ClassNameValue;
|
|
67
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
68
68
|
svg?: import("tailwind-merge").ClassNameValue;
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
} | {
|
|
72
72
|
[x: string]: {
|
|
73
73
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
74
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
75
74
|
button?: import("tailwind-merge").ClassNameValue;
|
|
75
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
76
76
|
svg?: import("tailwind-merge").ClassNameValue;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
@@ -83,8 +83,8 @@ export declare const drawerhead: import("tailwind-variants").TVReturnType<{
|
|
|
83
83
|
}, undefined, {
|
|
84
84
|
[key: string]: {
|
|
85
85
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
86
|
-
base?: import("tailwind-merge").ClassNameValue;
|
|
87
86
|
button?: import("tailwind-merge").ClassNameValue;
|
|
87
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
88
88
|
svg?: import("tailwind-merge").ClassNameValue;
|
|
89
89
|
};
|
|
90
90
|
};
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L663)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { DropdownGroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L663)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import { dropdownItem } from "./theme";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import type { DropdownItemProps } from "..";
|
|
6
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
|
+
import type { DropdownItemProps } from "../types";
|
|
7
7
|
|
|
8
|
-
let { aClass, children, activeClass, liClass, classes, class: className, ...restProps }: DropdownItemProps = $props();
|
|
8
|
+
let { aClass, children, activeClass, liClass, classes, class: className, href, onclick, ...restProps }: DropdownItemProps = $props();
|
|
9
9
|
|
|
10
10
|
warnThemeDeprecation("DropdownItem", { aClass, activeClass, liClass }, { aClass: "class", activeClass: "active", liClass: "li" });
|
|
11
11
|
const styling = $derived(classes ?? { active: activeClass, li: liClass });
|
|
@@ -14,25 +14,25 @@
|
|
|
14
14
|
|
|
15
15
|
const activeUrl: { value: string } = getContext("activeUrl");
|
|
16
16
|
|
|
17
|
-
let isActive = $derived(activeUrl?.value ?
|
|
17
|
+
let isActive = $derived(activeUrl?.value && href ? href === activeUrl.value : false);
|
|
18
18
|
|
|
19
19
|
const { base, active, li } = dropdownItem();
|
|
20
|
-
let finalClass = $derived(
|
|
20
|
+
let finalClass = $derived(isActive ? active({ class: clsx(theme?.active, styling.active) }) : base({ class: clsx(theme?.base, className) }));
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
<li class={li({ class: clsx(styling.li) })}>
|
|
24
|
-
{#if
|
|
25
|
-
<
|
|
24
|
+
{#if href}
|
|
25
|
+
<a {href} {...restProps} class={finalClass}>
|
|
26
26
|
{@render children()}
|
|
27
|
-
</
|
|
28
|
-
{:else if
|
|
29
|
-
<button type="button" {...restProps} class={finalClass}>
|
|
27
|
+
</a>
|
|
28
|
+
{:else if onclick}
|
|
29
|
+
<button type="button" {onclick} {...restProps} class={finalClass}>
|
|
30
30
|
{@render children()}
|
|
31
31
|
</button>
|
|
32
32
|
{:else}
|
|
33
|
-
<
|
|
33
|
+
<div {...restProps} class={finalClass}>
|
|
34
34
|
{@render children()}
|
|
35
|
-
</
|
|
35
|
+
</div>
|
|
36
36
|
{/if}
|
|
37
37
|
</li>
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
@component
|
|
41
41
|
[Go to docs](https://flowbite-svelte.com/)
|
|
42
42
|
## Type
|
|
43
|
-
[DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
43
|
+
[DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L647)
|
|
44
44
|
## Props
|
|
45
45
|
@prop aClass
|
|
46
46
|
@prop children
|
|
@@ -48,5 +48,7 @@
|
|
|
48
48
|
@prop liClass
|
|
49
49
|
@prop classes
|
|
50
50
|
@prop class: className
|
|
51
|
+
@prop href
|
|
52
|
+
@prop onclick
|
|
51
53
|
@prop ...restProps
|
|
52
54
|
-->
|