flowbite-svelte 1.11.2 → 1.11.4
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 +14 -10
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +13 -10
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/alert/Alert.svelte +4 -5
- package/dist/alert/Alert.svelte.d.ts +1 -2
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/badge/Badge.svelte +5 -6
- package/dist/badge/Badge.svelte.d.ts +1 -2
- package/dist/banner/Banner.svelte +4 -5
- package/dist/banner/Banner.svelte.d.ts +1 -2
- package/dist/bottom-navigation/BottomNav.svelte +4 -5
- 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/bottom-navigation/theme.d.ts +9 -9
- 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 +1 -1
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +1 -1
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/card/Card.svelte +1 -1
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/carousel/Carousel.svelte +25 -35
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +11 -18
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +1 -1
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +13 -26
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +9 -10
- 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 +13 -20
- 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/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/datepicker/Datepicker.svelte +1 -1
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -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 +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/device-mockups/theme.d.ts +138 -138
- package/dist/drawer/Drawer.svelte +4 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -2
- package/dist/drawer/Drawerhead.svelte +1 -1
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/theme.d.ts +12 -12
- package/dist/dropdown/Dropdown.svelte +6 -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 +8 -15
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +21 -15
- package/dist/dropdown/theme.js +3 -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/footer/theme.d.ts +33 -33
- package/dist/forms/button-toggle/ButtonToggle.svelte +1 -1
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
- package/dist/forms/button-toggle/CheckIcon.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 +2 -2
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +4 -5
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -2
- 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/input-field/Input.svelte +1 -1
- package/dist/forms/input-field/index.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 +2 -2
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/select/MultiSelect.svelte +1 -1
- package/dist/forms/select/Select.svelte +1 -1
- package/dist/forms/tags/Tags.svelte +1 -1
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +27 -27
- package/dist/forms/textarea/Textarea.svelte +2 -2
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/theme.js +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/gallery/theme.d.ts +9 -9
- 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 +2 -2
- 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 +1 -1
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +5 -5
- package/dist/navbar/NavHamburger.svelte.d.ts +83 -35
- package/dist/navbar/NavLi.svelte +6 -12
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +11 -17
- package/dist/navbar/NavUl.svelte.d.ts +3 -3
- package/dist/navbar/Navbar.svelte +4 -2
- package/dist/navbar/Navbar.svelte.d.ts +2 -1
- package/dist/navbar/theme.d.ts +140 -19
- package/dist/navbar/theme.js +123 -12
- 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/rating/theme.d.ts +72 -72
- package/dist/sidebar/Sidebar.svelte +7 -8
- 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 +6 -6
- 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 +5 -14
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +42 -42
- 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/skeleton/theme.d.ts +33 -33
- 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 +1 -1
- 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 +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/tabs/TabItem.svelte +14 -27
- package/dist/tabs/TabItem.svelte.d.ts +3 -3
- package/dist/tabs/Tabs.svelte +16 -18
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/theme.d.ts +0 -3
- package/dist/tabs/theme.js +1 -2
- 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/timeline/theme.d.ts +63 -63
- package/dist/toast/Toast.svelte +4 -5
- package/dist/toast/Toast.svelte.d.ts +1 -2
- package/dist/toolbar/Toolbar.svelte +7 -8
- 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 +7 -7
- 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 +14 -18
- package/dist/types.js +1 -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/CloseButton.svelte +2 -2
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/utils/singleselection.svelte.d.ts +14 -0
- package/dist/utils/singleselection.svelte.js +48 -0
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +20 -17
- /package/dist/utils/{dismissable.svelte.d.ts → dismissable.d.ts} +0 -0
- /package/dist/utils/{dismissable.svelte.js → dismissable.js} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { type CarouselProps, type State, Slide } from "..";
|
|
3
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
2
5
|
import { onMount, setContext } from "svelte";
|
|
3
|
-
import { writable } from "svelte/store";
|
|
4
6
|
import { canChangeSlide } from "./CarouselSlide";
|
|
5
7
|
import { carousel } from "./theme";
|
|
6
|
-
import clsx from "clsx";
|
|
7
|
-
import { type CarouselProps, type State, Slide } from "..";
|
|
8
|
-
import { getTheme } from "../theme/themeUtils";
|
|
9
8
|
|
|
10
9
|
const SLIDE_DURATION_RATIO = 0.25;
|
|
11
10
|
|
|
@@ -13,20 +12,14 @@
|
|
|
13
12
|
|
|
14
13
|
const theme = getTheme("carousel");
|
|
15
14
|
|
|
16
|
-
const
|
|
15
|
+
const _state: State = $state({ images, index: index ?? 0, forward: true, slideDuration, lastSlideChange: new Date() });
|
|
17
16
|
|
|
18
|
-
setContext("state",
|
|
19
|
-
set: (_state: State) => set({ index: _state.index, images: _state.images, lastSlideChange: new Date(), slideDuration, forward }),
|
|
20
|
-
subscribe,
|
|
21
|
-
update
|
|
22
|
-
});
|
|
17
|
+
setContext("state", _state);
|
|
23
18
|
|
|
24
|
-
let forward = $state(true);
|
|
25
19
|
let initialized = false;
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
$effect(() => {
|
|
28
22
|
index = _state.index;
|
|
29
|
-
forward = _state.forward;
|
|
30
23
|
onchange?.(images[index]);
|
|
31
24
|
});
|
|
32
25
|
|
|
@@ -36,29 +29,23 @@
|
|
|
36
29
|
});
|
|
37
30
|
|
|
38
31
|
const nextSlide = () => {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
lastSlideChange: new Date()
|
|
47
|
-
};
|
|
48
|
-
});
|
|
32
|
+
if (!canChangeSlide({ lastSlideChange: _state.lastSlideChange, slideDuration, slideDurationRatio: SLIDE_DURATION_RATIO })) return _state;
|
|
33
|
+
|
|
34
|
+
_state.forward = true;
|
|
35
|
+
_state.index = _state.index >= images.length - 1 ? 0 : _state.index + 1;
|
|
36
|
+
_state.lastSlideChange = new Date();
|
|
37
|
+
|
|
38
|
+
return _state;
|
|
49
39
|
};
|
|
50
40
|
|
|
51
41
|
const prevSlide = () => {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
lastSlideChange: new Date()
|
|
60
|
-
};
|
|
61
|
-
});
|
|
42
|
+
if (!canChangeSlide({ lastSlideChange: _state.lastSlideChange, slideDuration, slideDurationRatio: SLIDE_DURATION_RATIO })) return _state;
|
|
43
|
+
|
|
44
|
+
_state.forward = false;
|
|
45
|
+
_state.index = _state.index <= 0 ? images.length - 1 : _state.index - 1;
|
|
46
|
+
_state.lastSlideChange = new Date();
|
|
47
|
+
|
|
48
|
+
return _state;
|
|
62
49
|
};
|
|
63
50
|
|
|
64
51
|
const loop = (node: HTMLElement) => {
|
|
@@ -68,7 +55,10 @@
|
|
|
68
55
|
|
|
69
56
|
if (duration > 0) {
|
|
70
57
|
intervalId = setInterval(nextSlide, duration);
|
|
71
|
-
if (initialized)
|
|
58
|
+
if (initialized) {
|
|
59
|
+
if (_state.forward) nextSlide();
|
|
60
|
+
else prevSlide();
|
|
61
|
+
}
|
|
72
62
|
}
|
|
73
63
|
|
|
74
64
|
return () => clearInterval(intervalId);
|
|
@@ -189,7 +179,7 @@
|
|
|
189
179
|
@component
|
|
190
180
|
[Go to docs](https://flowbite-svelte.com/)
|
|
191
181
|
## Type
|
|
192
|
-
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
182
|
+
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L372)
|
|
193
183
|
## Props
|
|
194
184
|
@prop children
|
|
195
185
|
@prop slide
|
|
@@ -2,7 +2,7 @@ import { type CarouselProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L372)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop slide
|
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { getContext } from "svelte";
|
|
3
|
-
import type { Writable } from "svelte/store";
|
|
4
|
-
import { carouselIndicators } from "./theme";
|
|
5
|
-
import clsx from "clsx";
|
|
6
2
|
import { Indicator, type IndicatorsProps, type State } from "..";
|
|
7
3
|
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { getContext } from "svelte";
|
|
6
|
+
import { carouselIndicators } from "./theme";
|
|
8
7
|
|
|
9
8
|
let { children, activeClass, inactiveClass, position = "bottom", class: className, ...restProps }: IndicatorsProps = $props();
|
|
10
9
|
|
|
11
10
|
const theme = getTheme("carouselIndicators");
|
|
12
11
|
|
|
13
|
-
const
|
|
12
|
+
const _state = getContext<State>("state");
|
|
14
13
|
const { base, indicator } = $derived(carouselIndicators({ position }));
|
|
15
14
|
|
|
16
15
|
function goToIndex(newIndex: number) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
..._state,
|
|
22
|
-
index: newIndex,
|
|
23
|
-
forward,
|
|
24
|
-
lastSlideChange: new Date()
|
|
25
|
-
};
|
|
26
|
-
});
|
|
16
|
+
const currentIndex = _state.index;
|
|
17
|
+
_state.index = newIndex;
|
|
18
|
+
_state.forward = newIndex >= currentIndex;
|
|
19
|
+
_state.lastSlideChange = new Date();
|
|
27
20
|
}
|
|
28
21
|
</script>
|
|
29
22
|
|
|
30
23
|
<div class={base({ class: clsx(theme?.base, className) })} {...restProps}>
|
|
31
|
-
{#each
|
|
32
|
-
{@const selected =
|
|
24
|
+
{#each _state.images as _, idx}
|
|
25
|
+
{@const selected = _state.index === idx}
|
|
33
26
|
<button onclick={() => goToIndex(idx)}>
|
|
34
27
|
{#if children}
|
|
35
28
|
{@render children({ selected, index: idx })}
|
|
@@ -44,7 +37,7 @@
|
|
|
44
37
|
@component
|
|
45
38
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
39
|
## Type
|
|
47
|
-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
40
|
+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L387)
|
|
48
41
|
## Props
|
|
49
42
|
@prop children
|
|
50
43
|
@prop activeClass
|
|
@@ -2,7 +2,7 @@ import { type IndicatorsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L387)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeClass
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L394)
|
|
40
40
|
## Props
|
|
41
41
|
@prop children
|
|
42
42
|
@prop forward
|
|
@@ -2,7 +2,7 @@ import { type ControlButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L394)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop forward
|
|
@@ -1,44 +1,31 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { type ControlsProps, type State, ControlButton } from "..";
|
|
3
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
2
5
|
import { getContext } from "svelte";
|
|
3
|
-
import type { Writable } from "svelte/store";
|
|
4
6
|
import { canChangeSlide } from "./CarouselSlide";
|
|
5
|
-
import clsx from "clsx";
|
|
6
|
-
import { type State, type ControlsProps, ControlButton } from "..";
|
|
7
|
-
import { getTheme } from "../theme/themeUtils";
|
|
8
7
|
|
|
9
8
|
let { children, class: className, ...restProps }: ControlsProps = $props();
|
|
10
9
|
|
|
11
10
|
const theme = getTheme("controlButton");
|
|
12
11
|
|
|
13
|
-
const
|
|
14
|
-
const { update } = state;
|
|
12
|
+
const _state = getContext<State>("state");
|
|
15
13
|
|
|
16
14
|
function changeSlide(forward: boolean) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
lastSlideChange: $state.lastSlideChange,
|
|
20
|
-
slideDuration: $state.slideDuration,
|
|
21
|
-
slideDurationRatio: 0.75
|
|
22
|
-
})
|
|
23
|
-
) {
|
|
15
|
+
const { lastSlideChange, slideDuration } = _state;
|
|
16
|
+
if (!canChangeSlide({ lastSlideChange, slideDuration, slideDurationRatio: 0.75 })) {
|
|
24
17
|
return;
|
|
25
18
|
}
|
|
26
19
|
|
|
27
20
|
if (forward) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_state.index = _state.index >= _state.images.length - 1 ? 0 : _state.index + 1;
|
|
31
|
-
_state.lastSlideChange = new Date();
|
|
32
|
-
return { ..._state };
|
|
33
|
-
});
|
|
21
|
+
_state.forward = true;
|
|
22
|
+
_state.index = _state.index >= _state.images.length - 1 ? 0 : _state.index + 1;
|
|
34
23
|
} else {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
_state.index = _state.index <= 0 ? _state.images.length - 1 : _state.index - 1;
|
|
38
|
-
_state.lastSlideChange = new Date();
|
|
39
|
-
return { ..._state };
|
|
40
|
-
});
|
|
24
|
+
_state.forward = false;
|
|
25
|
+
_state.index = _state.index <= 0 ? _state.images.length - 1 : _state.index - 1;
|
|
41
26
|
}
|
|
27
|
+
_state.lastSlideChange = new Date();
|
|
28
|
+
return _state;
|
|
42
29
|
}
|
|
43
30
|
</script>
|
|
44
31
|
|
|
@@ -54,7 +41,7 @@
|
|
|
54
41
|
@component
|
|
55
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
43
|
## Type
|
|
57
|
-
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L400)
|
|
58
45
|
## Props
|
|
59
46
|
@prop children
|
|
60
47
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type ControlsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L400)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { type SlideProps, type State } from "..";
|
|
3
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
2
5
|
import { getContext } from "svelte";
|
|
3
|
-
import type { Writable } from "svelte/store";
|
|
4
6
|
import { fly } from "svelte/transition";
|
|
5
7
|
import { slide } from "./theme";
|
|
6
|
-
import clsx from "clsx";
|
|
7
|
-
import { type SlideProps, type State } from "..";
|
|
8
|
-
import { getTheme } from "../theme/themeUtils";
|
|
9
8
|
|
|
10
|
-
const
|
|
9
|
+
const _state = getContext<State>("state");
|
|
11
10
|
|
|
12
11
|
let { image, transition, class: className, ...restProps }: SlideProps = $props();
|
|
13
12
|
|
|
14
13
|
const theme = getTheme("slide");
|
|
15
14
|
|
|
16
15
|
let transitionSlideIn = $derived({
|
|
17
|
-
x:
|
|
16
|
+
x: _state.forward ? "100%" : "-100%",
|
|
18
17
|
opacity: 1,
|
|
19
18
|
width: "100%",
|
|
20
19
|
height: "100%",
|
|
21
|
-
duration:
|
|
20
|
+
duration: _state.slideDuration
|
|
22
21
|
});
|
|
23
22
|
|
|
24
23
|
let transitionSlideOut = $derived({
|
|
25
|
-
x:
|
|
24
|
+
x: _state.forward ? "-100%" : "100%",
|
|
26
25
|
opacity: 0.9,
|
|
27
26
|
width: "100%",
|
|
28
27
|
height: "100%",
|
|
29
|
-
duration:
|
|
28
|
+
duration: _state.slideDuration
|
|
30
29
|
});
|
|
31
30
|
|
|
32
31
|
let imgClass = slide({ class: clsx(theme, className) });
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
@component
|
|
47
46
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
47
|
## Type
|
|
49
|
-
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
48
|
+
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L417)
|
|
50
49
|
## Props
|
|
51
50
|
@prop image
|
|
52
51
|
@prop transition
|
|
@@ -2,7 +2,7 @@ import { type SlideProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L417)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop image
|
|
8
8
|
* @prop transition
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@component
|
|
16
16
|
[Go to docs](https://flowbite-svelte.com/)
|
|
17
17
|
## Type
|
|
18
|
-
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
18
|
+
[ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L404)
|
|
19
19
|
## Props
|
|
20
20
|
@prop selected
|
|
21
21
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type ThumbnailProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ThumbnailProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L404)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop selected
|
|
8
8
|
* @prop class: className
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { type State, Thumbnail, type ThumbnailsProps } from "..";
|
|
3
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
2
5
|
import { getContext } from "svelte";
|
|
3
|
-
import type { Writable } from "svelte/store";
|
|
4
6
|
import { thumbnails } from "./theme";
|
|
5
|
-
import { type ThumbnailsProps, type State, Thumbnail } from "..";
|
|
6
|
-
import clsx from "clsx";
|
|
7
|
-
import { getTheme } from "../theme/themeUtils";
|
|
8
7
|
|
|
9
8
|
let { children, images = [], index = $bindable(), ariaLabel = "Click to view image", imgClass, throttleDelay = 650, class: className }: ThumbnailsProps = $props();
|
|
10
9
|
|
|
11
10
|
const theme = getTheme("thumbnails");
|
|
12
11
|
|
|
13
|
-
const
|
|
14
|
-
if (!
|
|
12
|
+
const _state = getContext<State>("state");
|
|
13
|
+
if (!_state) {
|
|
15
14
|
console.error("State is undefined. Make sure to provide state context or pass it as a prop.");
|
|
16
15
|
}
|
|
17
16
|
|
|
@@ -22,21 +21,15 @@
|
|
|
22
21
|
console.warn("Thumbnail action throttled");
|
|
23
22
|
return;
|
|
24
23
|
}
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
const currentIndex = _state.index;
|
|
28
|
-
const forward = newIndex >= currentIndex;
|
|
24
|
+
if (_state) {
|
|
25
|
+
const currentIndex = _state.index;
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
_state.index = newIndex;
|
|
28
|
+
_state.forward = newIndex >= currentIndex;
|
|
29
|
+
_state.lastSlideChange = new Date();
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
index: newIndex,
|
|
36
|
-
forward,
|
|
37
|
-
lastSlideChange: new Date()
|
|
38
|
-
};
|
|
39
|
-
});
|
|
31
|
+
// Update the bound index
|
|
32
|
+
index = newIndex;
|
|
40
33
|
} else {
|
|
41
34
|
// Fallback behavior if state is not available
|
|
42
35
|
index = newIndex;
|
|
@@ -67,7 +60,7 @@
|
|
|
67
60
|
@component
|
|
68
61
|
[Go to docs](https://flowbite-svelte.com/)
|
|
69
62
|
## Type
|
|
70
|
-
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
63
|
+
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L408)
|
|
71
64
|
## Props
|
|
72
65
|
@prop children
|
|
73
66
|
@prop images = []
|
|
@@ -2,7 +2,7 @@ import { type ThumbnailsProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L408)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop images = []
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@component
|
|
47
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
48
|
## Type
|
|
49
|
-
[ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L429)
|
|
50
50
|
## Props
|
|
51
51
|
@prop children
|
|
52
52
|
@prop embedded = false
|
|
@@ -2,7 +2,7 @@ import { type ClipboardProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ClipboardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L429)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop embedded = false
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
@component
|
|
65
65
|
[Go to docs](https://flowbite-svelte.com/)
|
|
66
66
|
## Type
|
|
67
|
-
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
67
|
+
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L438)
|
|
68
68
|
## Props
|
|
69
69
|
@prop class: className
|
|
70
70
|
@prop lightIcon
|
|
@@ -2,7 +2,7 @@ import { type DarkmodeProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L438)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop lightIcon
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
@component
|
|
467
467
|
[Go to docs](https://flowbite-svelte.com/)
|
|
468
468
|
## Type
|
|
469
|
-
[DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
469
|
+
[DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L448)
|
|
470
470
|
## Props
|
|
471
471
|
@prop value = $bindable()
|
|
472
472
|
@prop defaultDate = null
|
|
@@ -2,7 +2,7 @@ import { type DatepickerProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L448)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value = $bindable()
|
|
8
8
|
* @prop defaultDate = null
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
@component
|
|
40
40
|
[Go to docs](https://flowbite-svelte.com/)
|
|
41
41
|
## Type
|
|
42
|
-
[AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
42
|
+
[AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L502)
|
|
43
43
|
## Props
|
|
44
44
|
@prop children
|
|
45
45
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type AndroidProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L502)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[DefaultMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[DefaultMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L513)
|
|
40
40
|
## Props
|
|
41
41
|
@prop children
|
|
42
42
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type DefaultMockupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DefaultMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DefaultMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L513)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[DesktopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[DesktopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L486)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type DesktopProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DesktopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DesktopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L486)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L481)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@prop device = "default"
|
|
@@ -3,7 +3,7 @@ import type { DeviceMockupProps } from "../types";
|
|
|
3
3
|
/**
|
|
4
4
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
5
5
|
* ## Type
|
|
6
|
-
* [DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
6
|
+
* [DeviceMockupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L481)
|
|
7
7
|
* ## Props
|
|
8
8
|
* @prop children
|
|
9
9
|
* @prop device = "default"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L523)
|
|
40
40
|
## Props
|
|
41
41
|
@prop children
|
|
42
42
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type IosProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [IosProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L523)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L494)
|
|
40
40
|
## Props
|
|
41
41
|
@prop children
|
|
42
42
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type LaptopProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [LaptopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L494)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
@component
|
|
38
38
|
[Go to docs](https://flowbite-svelte.com/)
|
|
39
39
|
## Type
|
|
40
|
-
[SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
40
|
+
[SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L533)
|
|
41
41
|
## Props
|
|
42
42
|
@prop children
|
|
43
43
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type SmartwatchProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SmartwatchProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L533)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@component
|
|
37
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
38
|
## Type
|
|
39
|
-
[TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
39
|
+
[TabletProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L543)
|
|
40
40
|
## Props
|
|
41
41
|
@prop children
|
|
42
42
|
@prop class: className
|