flowbite-svelte 1.29.0 → 1.30.0
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 +24 -12
- package/dist/accordion/Accordion.svelte.d.ts +2 -2
- package/dist/accordion/AccordionItem.svelte +10 -8
- 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 +4 -4
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/badge/Badge.svelte +2 -1
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/banner/Banner.svelte +2 -1
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNav.svelte +20 -12
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +2 -2
- package/dist/bottom-navigation/BottomNavHeader.svelte +2 -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 +10 -8
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/Breadcrumb.svelte +4 -2
- 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 +15 -4
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/buttons/Button.svelte +5 -4
- package/dist/buttons/GradientButton.svelte +4 -4
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/card/Card.svelte +2 -1
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/carousel/Carousel.svelte +12 -13
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +19 -17
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +2 -2
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +5 -4
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +8 -8
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +1 -1
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +1 -1
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/clipboard/Clipboard.svelte +1 -1
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard-manager/ClipboardManager.svelte +7 -2
- package/dist/command-palette/CommandPalette.svelte +1 -1
- package/dist/command-palette/CommandPalette.svelte.d.ts +1 -1
- package/dist/context.d.ts +47 -0
- package/dist/context.js +72 -0
- package/dist/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/datepicker/Datepicker.svelte +17 -11
- package/dist/device-mockups/Android.svelte +2 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +3 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +3 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +3 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +3 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +3 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +3 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/device-mockups/theme.d.ts +12 -12
- package/dist/dialog/Dialog.svelte +1 -1
- package/dist/dialog/Dialog.svelte.d.ts +1 -1
- package/dist/drawer/Drawer.svelte +18 -9
- package/dist/drawer/Drawer.svelte.d.ts +2 -2
- package/dist/drawer/DrawerHandle.svelte +3 -3
- package/dist/drawer/DrawerHandle.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +3 -1
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -3
- package/dist/drawer/theme.js +2 -2
- package/dist/dropdown/Dropdown.svelte +10 -7
- 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 +7 -5
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +3 -3
- package/dist/dropdown/theme.js +2 -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 +6 -3
- 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 +3 -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/footer/theme.d.ts +3 -3
- package/dist/forms/button-toggle/ButtonToggle.svelte +29 -13
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +32 -20
- package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/checkbox/Checkbox.svelte +2 -0
- 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 +3 -1
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +3 -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 +18 -16
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +6 -5
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.js +2 -2
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/radio/Radio.svelte +2 -0
- package/dist/forms/radio/Radio.svelte.d.ts +2 -2
- package/dist/forms/radio/RadioButton.svelte.d.ts +2 -2
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/search/Search.svelte +3 -1
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/select/MultiSelect.svelte +8 -4
- package/dist/forms/select/Select.svelte +5 -5
- package/dist/forms/tags/Tags.svelte +2 -0
- package/dist/forms/tags/theme.d.ts +3 -3
- package/dist/forms/textarea/Textarea.svelte +3 -1
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +2 -2
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/toggle/Toggle.svelte +3 -1
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/gallery/Gallery.svelte +3 -1
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/theme.d.ts +3 -3
- package/dist/indicator/Indicator.svelte +2 -2
- 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 +2 -2
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/list-group/Listgroup.svelte +15 -5
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +6 -5
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/mega-menu/MegaMenu.svelte +3 -2
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/modal/Modal.svelte +4 -2
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/navbar/Menu.svelte +5 -3
- 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 +9 -6
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +12 -8
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +10 -7
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +8 -5
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/pagination/Pagination.svelte +18 -6
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +12 -13
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +14 -5
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +23 -10
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/popover/Popover.svelte +3 -2
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/progress/Progressbar.svelte +7 -5
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +8 -6
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/rating/AdvancedRating.svelte +3 -1
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +2 -2
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +2 -2
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +8 -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 +3 -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 +2 -2
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +2 -2
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/theme.d.ts +6 -6
- package/dist/scroll-spy/ScrollSpy.svelte +5 -2
- package/dist/scroll-spy/ScrollSpy.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +24 -13
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +3 -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 +3 -1
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +6 -9
- 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 +8 -8
- package/dist/sidebar/SidebarItem.svelte.d.ts +2 -2
- package/dist/sidebar/theme.d.ts +6 -6
- 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 +6 -2
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +4 -2
- 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/split-pane/Divider.svelte +1 -1
- package/dist/split-pane/Divider.svelte.d.ts +1 -1
- package/dist/split-pane/Pane.svelte +2 -2
- package/dist/split-pane/Pane.svelte.d.ts +1 -1
- package/dist/split-pane/SplitPane.svelte +12 -37
- package/dist/split-pane/SplitPane.svelte.d.ts +1 -14
- package/dist/step-indicator/StepIndicator.svelte +61 -9
- package/dist/step-indicator/StepIndicator.svelte.d.ts +7 -5
- package/dist/stepper/BreadcrumbStepper.svelte +1 -4
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/CheckmarkIcon.svelte +2 -2
- package/dist/stepper/DetailedStepper.svelte +1 -4
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +1 -4
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +1 -4
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +1 -4
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +1 -4
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +7 -5
- package/dist/table/Table.svelte.d.ts +1 -1
- 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 +8 -8
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +7 -7
- 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 +12 -9
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/tabs/TabItem.svelte +14 -8
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +21 -10
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/theme/ThemeProvider.svelte +8 -6
- package/dist/theme/themeUtils.d.ts +1 -1
- package/dist/theme/themeUtils.js +2 -2
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +3 -1
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +3 -1
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +3 -1
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +4 -2
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +2 -1
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +30 -30
- package/dist/toast/Toast.svelte +3 -1
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/ToastContainer.svelte +2 -2
- package/dist/toast/ToastContainer.svelte.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +15 -3
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +2 -4
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +4 -4
- 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/tour/theme.js +1 -1
- package/dist/types.d.ts +84 -23
- 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/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 +5 -4
- package/dist/typography/img/Img.svelte +5 -4
- package/dist/typography/img/Img.svelte.d.ts +2 -2
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/list/Li.svelte +4 -4
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +12 -4
- 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 +7 -4
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/dist/virtual-masonry/VirtualMasonry.svelte +1 -1
- package/dist/virtuallist/VirtualList.svelte +1 -1
- package/package.json +13 -13
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
@component
|
|
20
20
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
21
|
## Type
|
|
22
|
-
[TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
22
|
+
[TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1819)
|
|
23
23
|
## Props
|
|
24
24
|
@prop children
|
|
25
25
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { TableHeadCellProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TableHeadCellProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1819)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
3
|
-
import type { TableSearchProps,
|
|
2
|
+
import { setTableContext } from "../context";
|
|
3
|
+
import type { TableSearchProps, TableContextType } from "../types";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { tableSearch } from "./theme";
|
|
6
6
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
@@ -27,11 +27,13 @@
|
|
|
27
27
|
...restProps
|
|
28
28
|
}: TableSearchProps = $props();
|
|
29
29
|
|
|
30
|
+
// svelte-ignore state_referenced_locally
|
|
30
31
|
warnThemeDeprecation(
|
|
31
32
|
"TableSearch",
|
|
32
33
|
{ divClass, innerDivClass, inputClass, searchClass, svgDivClass, svgClass, tableClass },
|
|
33
34
|
{ divClass: "root", innerDivClass: "inner", inputClass: "input", searchClass: "search", svgDivClass: "svgDiv", svgClass: "svg", tableClass: "table" }
|
|
34
35
|
);
|
|
36
|
+
|
|
35
37
|
const styling = $derived(
|
|
36
38
|
classes ?? {
|
|
37
39
|
root: divClass,
|
|
@@ -46,8 +48,7 @@
|
|
|
46
48
|
|
|
47
49
|
const theme = getTheme("tableSearch");
|
|
48
50
|
|
|
49
|
-
|
|
50
|
-
const themeColor = color === "custom" ? "default" : (color as "default" | "blue" | "green" | "red" | "yellow" | "purple" | "indigo" | "pink");
|
|
51
|
+
const themeColor = $derived(color === "custom" ? "default" : (color as "default" | "blue" | "green" | "red" | "yellow" | "purple" | "indigo" | "pink"));
|
|
51
52
|
|
|
52
53
|
const { root, inner, search, svgDiv, svg, input, table } = $derived(tableSearch({ color: themeColor, striped, hoverable }));
|
|
53
54
|
|
|
@@ -56,13 +57,15 @@
|
|
|
56
57
|
// Handle custom color
|
|
57
58
|
const finalTableClass = $derived(color === "custom" && customColor ? clsx(tableCls, customColor) : tableCls);
|
|
58
59
|
|
|
59
|
-
const tableSearchCtx
|
|
60
|
+
const tableSearchCtx = $derived<TableContextType>({
|
|
60
61
|
striped,
|
|
61
62
|
hoverable,
|
|
62
|
-
color
|
|
63
|
-
};
|
|
63
|
+
color: themeColor
|
|
64
|
+
});
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
$effect(() => {
|
|
67
|
+
setTableContext(tableSearchCtx);
|
|
68
|
+
});
|
|
66
69
|
</script>
|
|
67
70
|
|
|
68
71
|
<div class={root({ class: clsx(theme?.root, styling.root) })}>
|
|
@@ -94,7 +97,7 @@
|
|
|
94
97
|
@component
|
|
95
98
|
[Go to docs](https://flowbite-svelte.com/)
|
|
96
99
|
## Type
|
|
97
|
-
[TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
100
|
+
[TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1834)
|
|
98
101
|
## Props
|
|
99
102
|
@prop children
|
|
100
103
|
@prop header
|
|
@@ -2,7 +2,7 @@ import type { TableSearchProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TableSearchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1834)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
package/dist/tabs/TabItem.svelte
CHANGED
|
@@ -3,24 +3,30 @@
|
|
|
3
3
|
import { getTheme } from "../theme/themeUtils";
|
|
4
4
|
import { useSingleSelection } from "../utils/singleselection.svelte";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { getContext } from "svelte";
|
|
7
6
|
import { tabItem, tabs } from "./theme";
|
|
7
|
+
import { getTabsContext } from "../context";
|
|
8
8
|
|
|
9
9
|
let { children, titleSlot, open = $bindable(false), title = "Tab title", key, activeClass, inactiveClass, class: className, classes, disabled, tabStyle, ...restProps }: TabitemProps = $props();
|
|
10
10
|
|
|
11
11
|
const theme = getTheme("tabItem");
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const tabsCtx = getTabsContext();
|
|
13
|
+
|
|
14
|
+
if (!tabsCtx) {
|
|
15
|
+
throw new Error("TabItem must be used within a Tabs component");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const activeClasses = tabsCtx.activeClasses;
|
|
19
|
+
const ctx: TabCtxType = tabsCtx.ctx;
|
|
14
20
|
|
|
15
21
|
const compoTabStyle = $derived(tabStyle ?? ctx.tabStyle ?? "full");
|
|
16
22
|
const { active, inactive } = $derived(tabs({ tabStyle: compoTabStyle, hasDivider: true }));
|
|
17
23
|
|
|
18
24
|
const tabId = $props.id();
|
|
19
|
-
const tabIdentifier = key ?? tabId;
|
|
20
|
-
const self
|
|
25
|
+
const tabIdentifier = $derived(key ?? tabId);
|
|
26
|
+
const self = $derived<SelectedTab>({ id: tabIdentifier, snippet: children });
|
|
21
27
|
|
|
22
|
-
const registerTab =
|
|
23
|
-
const unregisterTab =
|
|
28
|
+
const registerTab = tabsCtx.registerTab;
|
|
29
|
+
const unregisterTab = tabsCtx.unregisterTab;
|
|
24
30
|
|
|
25
31
|
const updateSingleSelection = useSingleSelection<SelectedTab>((value) => (open = value?.id === self.id));
|
|
26
32
|
|
|
@@ -63,7 +69,7 @@
|
|
|
63
69
|
@component
|
|
64
70
|
[Go to docs](https://flowbite-svelte.com/)
|
|
65
71
|
## Type
|
|
66
|
-
[TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
72
|
+
[TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1863)
|
|
67
73
|
## Props
|
|
68
74
|
@prop children
|
|
69
75
|
@prop titleSlot
|
|
@@ -2,7 +2,7 @@ import type { TabitemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TabitemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1863)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop titleSlot
|
package/dist/tabs/Tabs.svelte
CHANGED
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
import type { SelectedTab, TabCtxType, TabsProps } from "../types";
|
|
4
4
|
import { createSingleSelectionContext, useSingleSelection } from "../utils/singleselection.svelte";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { setContext } from "svelte";
|
|
7
6
|
import { tabs } from "./theme";
|
|
7
|
+
import { setTabsContext } from "../context";
|
|
8
8
|
|
|
9
9
|
let { children, selected = $bindable(), tabStyle = "none", ulClass, contentClass, divider = true, class: className, classes, ...restProps }: TabsProps = $props();
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
setContext("activeClasses", classes.active);
|
|
13
|
-
}
|
|
11
|
+
const activeClasses = $derived(typeof classes?.active === "string" ? classes.active : undefined);
|
|
14
12
|
|
|
13
|
+
// svelte-ignore state_referenced_locally
|
|
15
14
|
warnThemeDeprecation("Tabs", { ulClass, contentClass }, { ulClass: "class", contentClass: "content" });
|
|
16
15
|
|
|
17
16
|
const theme = getTheme("tabs");
|
|
@@ -20,10 +19,9 @@
|
|
|
20
19
|
|
|
21
20
|
const uuid = $props.id();
|
|
22
21
|
const panelId = `tab-panel-${uuid}`;
|
|
23
|
-
const ctx
|
|
22
|
+
const ctx = $derived<TabCtxType>({ tabStyle, panelId });
|
|
24
23
|
const dividerBool = $derived(["full", "pill"].includes(tabStyle) ? false : divider);
|
|
25
24
|
|
|
26
|
-
setContext("ctx", ctx);
|
|
27
25
|
createSingleSelectionContext<SelectedTab>();
|
|
28
26
|
|
|
29
27
|
const tabRegistry = $state(new Map<string, SelectedTab>());
|
|
@@ -54,14 +52,27 @@
|
|
|
54
52
|
}
|
|
55
53
|
});
|
|
56
54
|
|
|
57
|
-
|
|
55
|
+
const registerFn = (tabData: SelectedTab) => {
|
|
58
56
|
if (tabData.id) {
|
|
59
57
|
tabRegistry.set(tabData.id, tabData);
|
|
60
58
|
}
|
|
61
|
-
}
|
|
59
|
+
};
|
|
62
60
|
|
|
63
|
-
|
|
61
|
+
const unregisterFn = (tabId: string) => {
|
|
64
62
|
tabRegistry.delete(tabId);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// Set context synchronously for SSR compatibility
|
|
66
|
+
// Use getters to make the context reactive
|
|
67
|
+
setTabsContext({
|
|
68
|
+
get activeClasses() {
|
|
69
|
+
return activeClasses;
|
|
70
|
+
},
|
|
71
|
+
get ctx() {
|
|
72
|
+
return ctx;
|
|
73
|
+
},
|
|
74
|
+
registerTab: registerFn,
|
|
75
|
+
unregisterTab: unregisterFn
|
|
65
76
|
});
|
|
66
77
|
</script>
|
|
67
78
|
|
|
@@ -80,7 +91,7 @@
|
|
|
80
91
|
@component
|
|
81
92
|
[Go to docs](https://flowbite-svelte.com/)
|
|
82
93
|
## Type
|
|
83
|
-
[TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
94
|
+
[TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1854)
|
|
84
95
|
## Props
|
|
85
96
|
@prop children
|
|
86
97
|
@prop selected = $bindable()
|
|
@@ -2,7 +2,7 @@ import type { TabsProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TabsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1854)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop selected = $bindable()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Snippet } from "svelte";
|
|
3
|
-
import {
|
|
3
|
+
import { setThemeContext } from "../context";
|
|
4
4
|
import type { ThemeConfig } from "../types";
|
|
5
5
|
|
|
6
6
|
interface ThemeProviderProps {
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
let { children, theme }: ThemeProviderProps = $props();
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
$effect(() => {
|
|
14
|
+
if (theme) {
|
|
15
|
+
setThemeContext(theme);
|
|
16
|
+
} else {
|
|
17
|
+
console.log("ThemeProvider: No theme provided");
|
|
18
|
+
}
|
|
19
|
+
});
|
|
18
20
|
</script>
|
|
19
21
|
|
|
20
22
|
{@render children()}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ThemeConfig } from "..";
|
|
2
2
|
import type { ClassValue } from "clsx";
|
|
3
|
-
export declare function getTheme<K extends keyof ThemeConfig>(componentKey: K): ThemeConfig[K];
|
|
3
|
+
export declare function getTheme<K extends keyof ThemeConfig>(componentKey: K): ThemeConfig[K] | undefined;
|
|
4
4
|
type Slots<T extends {
|
|
5
5
|
slots: Record<string, unknown>;
|
|
6
6
|
}> = Omit<T["slots"], "base">;
|
package/dist/theme/themeUtils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getThemeContext } from "../context";
|
|
2
2
|
import { DEV } from "esm-env";
|
|
3
3
|
export function getTheme(componentKey) {
|
|
4
|
-
const theme =
|
|
4
|
+
const theme = getThemeContext();
|
|
5
5
|
return theme?.[componentKey];
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1908)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { ActivityProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ActivityProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1908)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { activities, liClass, spanClass, imgClass, outerDivClass, innerDivClass, timeClass, titleClass, textClass, class: className, classes, ...restProps }: ActivityItemProps = $props();
|
|
8
8
|
|
|
9
|
+
// svelte-ignore state_referenced_locally
|
|
9
10
|
warnThemeDeprecation(
|
|
10
11
|
"ActivityItem",
|
|
11
12
|
{ liClass, spanClass, imgClass, outerDivClass, innerDivClass, timeClass, titleClass, textClass },
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
textClass: "text"
|
|
21
22
|
}
|
|
22
23
|
);
|
|
24
|
+
|
|
23
25
|
const styling = $derived(
|
|
24
26
|
classes ?? {
|
|
25
27
|
span: spanClass,
|
|
@@ -62,7 +64,7 @@
|
|
|
62
64
|
@component
|
|
63
65
|
[Go to docs](https://flowbite-svelte.com/)
|
|
64
66
|
## Type
|
|
65
|
-
[ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
67
|
+
[ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1912)
|
|
66
68
|
## Props
|
|
67
69
|
@prop activities
|
|
68
70
|
@prop liClass
|
|
@@ -2,7 +2,7 @@ import type { ActivityItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ActivityItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1912)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop activities
|
|
8
8
|
* @prop liClass
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, divClass, timeClass, date, olClass, class: className, classes, ...restProps }: GroupProps = $props();
|
|
8
8
|
|
|
9
|
+
// svelte-ignore state_referenced_locally
|
|
9
10
|
warnThemeDeprecation(
|
|
10
11
|
"Group",
|
|
11
12
|
{ divClass, timeClass, olClass },
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
olClass: "ol"
|
|
16
17
|
}
|
|
17
18
|
);
|
|
19
|
+
|
|
18
20
|
const styling = $derived({
|
|
19
21
|
time: timeClass,
|
|
20
22
|
ol: olClass
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
@component
|
|
37
39
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
40
|
## Type
|
|
39
|
-
[GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
41
|
+
[GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1924)
|
|
40
42
|
## Props
|
|
41
43
|
@prop children
|
|
42
44
|
@prop divClass
|
|
@@ -2,7 +2,7 @@ import type { GroupProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1924)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop divClass
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { timelines, aClass, imgClass, divClass, titleClass, spanClass, class: className, classes, ...restProps }: GroupItemProps = $props();
|
|
8
8
|
|
|
9
|
+
// svelte-ignore state_referenced_locally
|
|
9
10
|
warnThemeDeprecation(
|
|
10
11
|
"GroupItem",
|
|
11
12
|
{ aClass, imgClass, divClass, titleClass, spanClass },
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
spanClass: "span"
|
|
18
19
|
}
|
|
19
20
|
);
|
|
21
|
+
|
|
20
22
|
const styling = $derived(
|
|
21
23
|
classes ?? {
|
|
22
24
|
img: imgClass,
|
|
@@ -74,7 +76,7 @@
|
|
|
74
76
|
@component
|
|
75
77
|
[Go to docs](https://flowbite-svelte.com/)
|
|
76
78
|
## Type
|
|
77
|
-
[GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
79
|
+
[GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1932)
|
|
78
80
|
## Props
|
|
79
81
|
@prop timelines
|
|
80
82
|
@prop aClass
|
|
@@ -2,7 +2,7 @@ import type { GroupItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GroupItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1932)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop timelines
|
|
8
8
|
* @prop aClass
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
const theme = getTheme("timeline");
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
$effect(() => {
|
|
13
|
+
setContext<TimelineVariants["order"]>("order", order);
|
|
14
|
+
});
|
|
13
15
|
const olCls = $derived(timeline({ order, class: clsx(theme, className) }));
|
|
14
16
|
</script>
|
|
15
17
|
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
@component
|
|
22
24
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
25
|
## Type
|
|
24
|
-
[TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
26
|
+
[TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1953)
|
|
25
27
|
## Props
|
|
26
28
|
@prop children
|
|
27
29
|
@prop order = "default"
|
|
@@ -2,7 +2,7 @@ import type { TimelineProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TimelineProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1953)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop order = "default"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
...restProps
|
|
26
26
|
}: TimelineItemProps = $props();
|
|
27
27
|
|
|
28
|
+
// svelte-ignore state_referenced_locally
|
|
28
29
|
warnThemeDeprecation(
|
|
29
30
|
"TimelineItem",
|
|
30
31
|
{ svgClass, liClass, divClass, timeClass, h3Class, connectorClass },
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
@component
|
|
130
131
|
[Go to docs](https://flowbite-svelte.com/)
|
|
131
132
|
## Type
|
|
132
|
-
[TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
133
|
+
[TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1960)
|
|
133
134
|
## Props
|
|
134
135
|
@prop children
|
|
135
136
|
@prop orientationSlot
|
|
@@ -2,7 +2,7 @@ import type { TimelineItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TimelineItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1960)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop orientationSlot
|
package/dist/timeline/theme.d.ts
CHANGED
|
@@ -9,26 +9,26 @@ export declare const activity: import("tailwind-variants").TVReturnType<{} | {}
|
|
|
9
9
|
export declare const activityItem: import("tailwind-variants").TVReturnType<{
|
|
10
10
|
[key: string]: {
|
|
11
11
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
12
|
-
img?: import("tailwind-merge").ClassNameValue;
|
|
13
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
14
|
-
inner?: import("tailwind-merge").ClassNameValue;
|
|
15
12
|
title?: import("tailwind-merge").ClassNameValue;
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
14
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
18
15
|
li?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
18
|
+
inner?: import("tailwind-merge").ClassNameValue;
|
|
19
19
|
outer?: import("tailwind-merge").ClassNameValue;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
} | {
|
|
23
23
|
[x: string]: {
|
|
24
24
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
25
|
-
img?: import("tailwind-merge").ClassNameValue;
|
|
26
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
27
|
-
inner?: import("tailwind-merge").ClassNameValue;
|
|
28
25
|
title?: import("tailwind-merge").ClassNameValue;
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
27
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
31
28
|
li?: import("tailwind-merge").ClassNameValue;
|
|
29
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
30
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
31
|
+
inner?: import("tailwind-merge").ClassNameValue;
|
|
32
32
|
outer?: import("tailwind-merge").ClassNameValue;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -44,13 +44,13 @@ export declare const activityItem: import("tailwind-variants").TVReturnType<{
|
|
|
44
44
|
}, undefined, {
|
|
45
45
|
[key: string]: {
|
|
46
46
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
47
|
-
img?: import("tailwind-merge").ClassNameValue;
|
|
48
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
49
|
-
inner?: import("tailwind-merge").ClassNameValue;
|
|
50
47
|
title?: import("tailwind-merge").ClassNameValue;
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
49
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
53
50
|
li?: import("tailwind-merge").ClassNameValue;
|
|
51
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
52
|
+
text?: import("tailwind-merge").ClassNameValue;
|
|
53
|
+
inner?: import("tailwind-merge").ClassNameValue;
|
|
54
54
|
outer?: import("tailwind-merge").ClassNameValue;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
@@ -76,17 +76,17 @@ export declare const activityItem: import("tailwind-variants").TVReturnType<{
|
|
|
76
76
|
export declare const group: import("tailwind-variants").TVReturnType<{
|
|
77
77
|
[key: string]: {
|
|
78
78
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
79
|
-
time?: import("tailwind-merge").ClassNameValue;
|
|
80
79
|
div?: import("tailwind-merge").ClassNameValue;
|
|
81
80
|
ol?: import("tailwind-merge").ClassNameValue;
|
|
81
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
84
|
} | {
|
|
85
85
|
[x: string]: {
|
|
86
86
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
87
|
-
time?: import("tailwind-merge").ClassNameValue;
|
|
88
87
|
div?: import("tailwind-merge").ClassNameValue;
|
|
89
88
|
ol?: import("tailwind-merge").ClassNameValue;
|
|
89
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
} | {}, {
|
|
@@ -96,9 +96,9 @@ export declare const group: import("tailwind-variants").TVReturnType<{
|
|
|
96
96
|
}, undefined, {
|
|
97
97
|
[key: string]: {
|
|
98
98
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
99
|
-
time?: import("tailwind-merge").ClassNameValue;
|
|
100
99
|
div?: import("tailwind-merge").ClassNameValue;
|
|
101
100
|
ol?: import("tailwind-merge").ClassNameValue;
|
|
101
|
+
time?: import("tailwind-merge").ClassNameValue;
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
104
|
} | {}, {
|
|
@@ -114,24 +114,24 @@ export declare const groupItem: import("tailwind-variants").TVReturnType<{
|
|
|
114
114
|
[key: string]: {
|
|
115
115
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
116
116
|
base?: import("tailwind-merge").ClassNameValue;
|
|
117
|
-
img?: import("tailwind-merge").ClassNameValue;
|
|
118
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
119
|
-
title?: import("tailwind-merge").ClassNameValue;
|
|
120
117
|
svg?: import("tailwind-merge").ClassNameValue;
|
|
121
|
-
|
|
118
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
119
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
122
120
|
a?: import("tailwind-merge").ClassNameValue;
|
|
121
|
+
div?: import("tailwind-merge").ClassNameValue;
|
|
122
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
125
|
} | {
|
|
126
126
|
[x: string]: {
|
|
127
127
|
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
128
128
|
base?: import("tailwind-merge").ClassNameValue;
|
|
129
|
-
img?: import("tailwind-merge").ClassNameValue;
|
|
130
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
131
|
-
title?: import("tailwind-merge").ClassNameValue;
|
|
132
129
|
svg?: import("tailwind-merge").ClassNameValue;
|
|
133
|
-
|
|
130
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
131
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
134
132
|
a?: import("tailwind-merge").ClassNameValue;
|
|
133
|
+
div?: import("tailwind-merge").ClassNameValue;
|
|
134
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
137
|
} | {}, {
|
|
@@ -146,12 +146,12 @@ export declare const groupItem: import("tailwind-variants").TVReturnType<{
|
|
|
146
146
|
[key: string]: {
|
|
147
147
|
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
148
148
|
base?: import("tailwind-merge").ClassNameValue;
|
|
149
|
-
img?: import("tailwind-merge").ClassNameValue;
|
|
150
|
-
span?: import("tailwind-merge").ClassNameValue;
|
|
151
|
-
title?: import("tailwind-merge").ClassNameValue;
|
|
152
149
|
svg?: import("tailwind-merge").ClassNameValue;
|
|
153
|
-
|
|
150
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
151
|
+
span?: import("tailwind-merge").ClassNameValue;
|
|
154
152
|
a?: import("tailwind-merge").ClassNameValue;
|
|
153
|
+
div?: import("tailwind-merge").ClassNameValue;
|
|
154
|
+
img?: import("tailwind-merge").ClassNameValue;
|
|
155
155
|
};
|
|
156
156
|
};
|
|
157
157
|
} | {}, {
|
package/dist/toast/Toast.svelte
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
...restProps
|
|
25
25
|
}: ToastProps = $props();
|
|
26
26
|
|
|
27
|
+
// svelte-ignore state_referenced_locally
|
|
27
28
|
warnThemeDeprecation(
|
|
28
29
|
"Toast",
|
|
29
30
|
{ iconClass, contentClass },
|
|
@@ -32,6 +33,7 @@
|
|
|
32
33
|
contentClass: "content"
|
|
33
34
|
}
|
|
34
35
|
);
|
|
36
|
+
|
|
35
37
|
const styling = $derived(
|
|
36
38
|
classes ?? {
|
|
37
39
|
icon: iconClass,
|
|
@@ -76,7 +78,7 @@
|
|
|
76
78
|
@component
|
|
77
79
|
[Go to docs](https://flowbite-svelte.com/)
|
|
78
80
|
## Type
|
|
79
|
-
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
81
|
+
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1978)
|
|
80
82
|
## Props
|
|
81
83
|
@prop children
|
|
82
84
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { ToastProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1978)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"bottom-right": "bottom-4 right-4"
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const base = toastContainer({ class: clsx(positionClasses[position], theme, className) });
|
|
18
|
+
const base = $derived(toastContainer({ class: clsx(positionClasses[position], theme, className) }));
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
21
|
<div {...restProps} class={base}>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[ToastContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[ToastContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1993)
|
|
30
30
|
## Props
|
|
31
31
|
@prop children
|
|
32
32
|
@prop position = "top-right"
|