flowbite-svelte 1.10.6 → 1.10.8
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 +15 -10
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -0
- package/dist/accordion/theme.d.ts +4 -0
- 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/avatar/theme.d.ts +2 -0
- package/dist/badge/Badge.svelte +11 -6
- package/dist/badge/Badge.svelte.d.ts +2 -1
- package/dist/badge/theme.d.ts +3 -2
- package/dist/banner/Banner.svelte +9 -5
- package/dist/banner/Banner.svelte.d.ts +2 -1
- package/dist/banner/theme.d.ts +2 -1
- package/dist/bottom-navigation/BottomNav.svelte +16 -11
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +11 -6
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +3 -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 +25 -27
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +3 -3
- package/dist/bottom-navigation/theme.d.ts +54 -48
- package/dist/bottom-navigation/theme.js +16 -16
- package/dist/breadcrumb/Breadcrumb.svelte +10 -6
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +2 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +8 -5
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +2 -1
- package/dist/breadcrumb/theme.d.ts +10 -6
- package/dist/breadcrumb/theme.js +2 -2
- package/dist/button-group/ButtonGroup.svelte +1 -1
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/theme.d.ts +2 -0
- 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 +8 -5
- package/dist/card/Card.svelte.d.ts +2 -2
- package/dist/card/theme.d.ts +2 -1
- package/dist/carousel/Carousel.svelte +1 -1
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +1 -1
- 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 +1 -1
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +1 -1
- 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/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/datepicker/Datepicker.svelte +101 -38
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +2 -6
- package/dist/device-mockups/Android.svelte +27 -11
- package/dist/device-mockups/Android.svelte.d.ts +3 -1
- package/dist/device-mockups/DefaultMockup.svelte +25 -10
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +3 -1
- package/dist/device-mockups/Desktop.svelte +21 -8
- package/dist/device-mockups/Desktop.svelte.d.ts +5 -3
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +24 -9
- package/dist/device-mockups/Ios.svelte.d.ts +3 -1
- package/dist/device-mockups/Laptop.svelte +22 -8
- package/dist/device-mockups/Laptop.svelte.d.ts +5 -3
- package/dist/device-mockups/Smartwatch.svelte +24 -10
- package/dist/device-mockups/Smartwatch.svelte.d.ts +3 -1
- package/dist/device-mockups/Tablet.svelte +24 -9
- package/dist/device-mockups/Tablet.svelte.d.ts +3 -1
- package/dist/device-mockups/theme.d.ts +51 -42
- package/dist/device-mockups/theme.js +8 -8
- package/dist/drawer/Drawer.svelte +1 -1
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +1 -1
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/dropdown/Dropdown.svelte +1 -1
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +1 -1
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +1 -1
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +1 -1
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +1 -1
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +1 -1
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +1 -1
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +1 -1
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/forms/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 +21 -30
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +4 -1
- package/dist/forms/fileupload/Fileupload.svelte +1 -1
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +1 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/input-addon/InputAddon.svelte +1 -1
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/search/Search.svelte +1 -1
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/tags/Tags.svelte +1 -1
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/textarea/Textarea.svelte +1 -1
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +1 -1
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/toggle/Toggle.svelte +1 -1
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/gallery/Gallery.svelte +1 -1
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/list-group/Listgroup.svelte +1 -1
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +1 -1
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/mega-menu/MegaMenu.svelte +1 -1
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/modal/Modal.svelte +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 +1 -1
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +1 -1
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +1 -1
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +1 -1
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +1 -1
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +1 -1
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/popover/Popover.svelte +1 -1
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/progress/Progressbar.svelte +1 -1
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +1 -1
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/rating/AdvancedRating.svelte +1 -1
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +1 -1
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +1 -1
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +1 -1
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/sidebar/Sidebar.svelte +1 -1
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +1 -1
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +1 -1
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +3 -3
- package/dist/skeleton/CardPlaceholder.svelte +1 -1
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +1 -1
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +1 -1
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +1 -1
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDial.svelte +1 -1
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/stepindicator/StepIndicator.svelte +1 -1
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +1 -1
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +1 -1
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +1 -1
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +1 -1
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +1 -1
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +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 +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/themeUtils.d.ts +13 -0
- package/dist/theme/themeUtils.js +9 -1
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +1 -1
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +1 -1
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +1 -1
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +1 -1
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +12 -12
- package/dist/toast/Toast.svelte +1 -1
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toolbar/Toolbar.svelte +1 -1
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +1 -1
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/types.d.ts +37 -53
- package/dist/types.js +0 -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 +1 -1
- 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/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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#L381)
|
|
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#L388)
|
|
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#L388)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop forward
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@component
|
|
55
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
56
|
## Type
|
|
57
|
-
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L394)
|
|
58
58
|
## Props
|
|
59
59
|
@prop children
|
|
60
60
|
@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#L394)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
@component
|
|
47
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
48
48
|
## Type
|
|
49
|
-
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
49
|
+
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L411)
|
|
50
50
|
## Props
|
|
51
51
|
@prop image
|
|
52
52
|
@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#L411)
|
|
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#L398)
|
|
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#L398)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop selected
|
|
8
8
|
* @prop class: className
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
@component
|
|
68
68
|
[Go to docs](https://flowbite-svelte.com/)
|
|
69
69
|
## Type
|
|
70
|
-
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
70
|
+
[ThumbnailsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L402)
|
|
71
71
|
## Props
|
|
72
72
|
@prop children
|
|
73
73
|
@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#L402)
|
|
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#L423)
|
|
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#L423)
|
|
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#L432)
|
|
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#L432)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop lightIcon
|
|
@@ -11,14 +11,13 @@
|
|
|
11
11
|
|
|
12
12
|
const theme = getTheme("datepicker");
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
// If translationLocale is not explicitly provided, it will default to the value of locale. This ensures reactivity as both are directly exposed as props.
|
|
15
|
+
translationLocale = translationLocale ?? locale;
|
|
15
16
|
|
|
16
|
-
// Internal state
|
|
17
17
|
let isOpen: boolean = $state(inline);
|
|
18
18
|
let showMonthSelector: boolean = $state(false);
|
|
19
19
|
let inputElement: HTMLInputElement | null = $state(null);
|
|
20
20
|
|
|
21
|
-
// Update elementRef when inputElement changes
|
|
22
21
|
$effect(() => {
|
|
23
22
|
if (inputElement) {
|
|
24
23
|
elementRef = inputElement;
|
|
@@ -49,14 +48,12 @@
|
|
|
49
48
|
return eachDayOfInterval({ start: calendarStart, end: calendarEnd });
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
// MODIFIED: Use translationLocale for weekday names
|
|
53
51
|
const getWeekdayNames = (): string[] => {
|
|
54
52
|
return Array.from({ length: 7 }, (_, i) => new Date(1970, 0, 5 + i + firstDayOfWeek).toLocaleDateString(translationLocale, { weekday: "short" }));
|
|
55
53
|
};
|
|
56
54
|
|
|
57
55
|
let weekdays = $derived(getWeekdayNames());
|
|
58
56
|
|
|
59
|
-
// MODIFIED: Use translationLocale for month names
|
|
60
57
|
const getMonthNames = (): string[] => {
|
|
61
58
|
return Array.from({ length: 12 }, (_, i) => new Date(2000, i, 1).toLocaleDateString(translationLocale, { month: "short" }));
|
|
62
59
|
};
|
|
@@ -124,55 +121,123 @@
|
|
|
124
121
|
const inputValue = inputElement?.value?.trim();
|
|
125
122
|
if (!inputValue) return;
|
|
126
123
|
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
inputElement?.setCustomValidity("");
|
|
125
|
+
|
|
126
|
+
const parsedDate = tryParseDate(inputValue);
|
|
127
|
+
|
|
128
|
+
if (!parsedDate || !isValid(parsedDate)) {
|
|
129
|
+
const formatPattern = getDateFormatPattern();
|
|
130
|
+
inputElement?.setCustomValidity(`Please enter date in format: ${formatPattern}`);
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if (!isDateAvailable(parsedDate)) {
|
|
135
|
+
inputElement?.setCustomValidity("Selected date is not available");
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
129
138
|
|
|
139
|
+
handleDaySelect(parsedDate);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function tryParseDate(inputValue: string): Date | null {
|
|
143
|
+
const formatPattern = getDateFormatPattern();
|
|
130
144
|
try {
|
|
131
|
-
// Parse with the exact format expected
|
|
132
145
|
const parsedDate = parse(inputValue, formatPattern, new Date());
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
inputElement?.setCustomValidity(`Please enter date in format: ${formatPattern}`);
|
|
136
|
-
return;
|
|
146
|
+
if (isValid(parsedDate)) {
|
|
147
|
+
return parsedDate;
|
|
137
148
|
}
|
|
149
|
+
} catch (error) {
|
|
150
|
+
// Continue to next strategy
|
|
151
|
+
}
|
|
138
152
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
153
|
+
const commonFormats = [
|
|
154
|
+
"d.M.yyyy", // German: 17.7.2025
|
|
155
|
+
"dd.MM.yyyy", // German: 17.07.2025
|
|
156
|
+
"M/d/yyyy", // US: 7/17/2025
|
|
157
|
+
"MM/dd/yyyy", // US: 07/17/2025
|
|
158
|
+
"d/M/yyyy", // UK: 17/7/2025
|
|
159
|
+
"dd/MM/yyyy", // UK: 17/07/2025
|
|
160
|
+
"yyyy-MM-dd", // ISO: 2025-07-17
|
|
161
|
+
"yyyy-M-d", // ISO: 2025-7-17
|
|
162
|
+
"M-d-yyyy", // US with dashes: 7-17-2025
|
|
163
|
+
"d-M-yyyy" // EU with dashes: 17-7-2025
|
|
164
|
+
];
|
|
165
|
+
|
|
166
|
+
for (const format of commonFormats) {
|
|
167
|
+
try {
|
|
168
|
+
const parsedDate = parse(inputValue, format, new Date());
|
|
169
|
+
if (isValid(parsedDate)) {
|
|
170
|
+
return parsedDate;
|
|
171
|
+
}
|
|
172
|
+
} catch (error) {
|
|
173
|
+
// Continue to next format
|
|
144
174
|
}
|
|
175
|
+
}
|
|
145
176
|
|
|
146
|
-
|
|
177
|
+
try {
|
|
178
|
+
const nativeDate = new Date(inputValue);
|
|
179
|
+
if (isValid(nativeDate) && !isNaN(nativeDate.getTime())) {
|
|
180
|
+
return nativeDate;
|
|
181
|
+
}
|
|
147
182
|
} catch (error) {
|
|
148
|
-
|
|
183
|
+
// Continue
|
|
149
184
|
}
|
|
185
|
+
|
|
186
|
+
return null;
|
|
150
187
|
}
|
|
151
188
|
|
|
152
189
|
function getDateFormatPattern(): string {
|
|
153
|
-
|
|
154
|
-
const testDate = new Date(2025, 0, 15); // January 15, 2025
|
|
155
|
-
const formatted = formatDate(testDate);
|
|
190
|
+
const actualLocale = locale === "default" ? navigator.language : locale;
|
|
156
191
|
|
|
157
|
-
//
|
|
158
|
-
|
|
159
|
-
|
|
192
|
+
// Create a test date and format it to understand the pattern
|
|
193
|
+
const testDate = new Date(2025, 0, 15); // January 15, 2025
|
|
194
|
+
const formatted = testDate.toLocaleDateString(actualLocale, dateFormat || { year: "numeric", month: "numeric", day: "numeric" });
|
|
195
|
+
|
|
196
|
+
// Analyze the formatted string to determine the pattern
|
|
197
|
+
if (formatted.includes(".")) {
|
|
198
|
+
// German/European format with dots
|
|
199
|
+
if (formatted.startsWith("15.")) {
|
|
200
|
+
return "d.M.yyyy";
|
|
201
|
+
} else if (formatted.startsWith("01.")) {
|
|
202
|
+
return "M.d.yyyy";
|
|
203
|
+
}
|
|
204
|
+
return "d.M.yyyy"; // Default to day first
|
|
205
|
+
} else if (formatted.includes("/")) {
|
|
206
|
+
// US/UK format with slashes
|
|
207
|
+
if (formatted.startsWith("1/")) {
|
|
208
|
+
return "M/d/yyyy"; // US format
|
|
209
|
+
} else if (formatted.startsWith("15/")) {
|
|
210
|
+
return "d/M/yyyy"; // UK format
|
|
211
|
+
}
|
|
212
|
+
// Additional check with different test date
|
|
160
213
|
const testDate2 = new Date(2025, 11, 3); // December 3, 2025
|
|
161
|
-
const formatted2 =
|
|
162
|
-
|
|
214
|
+
const formatted2 = testDate2.toLocaleDateString(actualLocale, dateFormat || { year: "numeric", month: "numeric", day: "numeric" });
|
|
163
215
|
if (formatted2.startsWith("3/") || formatted2.startsWith("03/")) {
|
|
164
|
-
return "d/M/yyyy";
|
|
216
|
+
return "d/M/yyyy";
|
|
217
|
+
} else {
|
|
218
|
+
return "M/d/yyyy";
|
|
219
|
+
}
|
|
220
|
+
} else if (formatted.includes("-")) {
|
|
221
|
+
// ISO or other dash format
|
|
222
|
+
if (formatted.startsWith("2025-")) {
|
|
223
|
+
return "yyyy-M-d";
|
|
224
|
+
} else if (formatted.startsWith("1-")) {
|
|
225
|
+
return "M-d-yyyy";
|
|
165
226
|
} else {
|
|
166
|
-
return "M
|
|
227
|
+
return "d-M-yyyy";
|
|
167
228
|
}
|
|
168
229
|
}
|
|
169
230
|
|
|
170
|
-
|
|
171
|
-
|
|
231
|
+
// Default fallback - try to detect based on locale
|
|
232
|
+
if (actualLocale.startsWith("en-US")) {
|
|
233
|
+
return "M/d/yyyy";
|
|
234
|
+
} else if (actualLocale.startsWith("de") || actualLocale.startsWith("at") || actualLocale.startsWith("ch")) {
|
|
235
|
+
return "d.M.yyyy";
|
|
236
|
+
} else if (actualLocale.startsWith("en-GB") || actualLocale.startsWith("en-AU")) {
|
|
237
|
+
return "d/M/yyyy";
|
|
172
238
|
}
|
|
173
239
|
|
|
174
|
-
|
|
175
|
-
return "M/d/yyyy"; // Default fallback
|
|
240
|
+
return "M/d/yyyy";
|
|
176
241
|
}
|
|
177
242
|
|
|
178
243
|
function handleClickOutside(event: MouseEvent) {
|
|
@@ -274,7 +339,7 @@
|
|
|
274
339
|
<div bind:this={datepickerContainerElement} class={["relative", inline && "inline-block"]}>
|
|
275
340
|
{#if !inline}
|
|
276
341
|
<div class="relative">
|
|
277
|
-
<input bind:this={inputElement} type="text" class={input({ color, class: clsx((theme as DatepickerTheme)?.input, inputClass) })} {placeholder} value={range ? `${formatDate(rangeFrom)} - ${formatDate(rangeTo)}` : formatDate(value)} onfocus={() => (isOpen = true)}
|
|
342
|
+
<input bind:this={inputElement} type="text" class={input({ color, class: clsx((theme as DatepickerTheme)?.input, inputClass) })} {placeholder} value={range ? `${formatDate(rangeFrom)} - ${formatDate(rangeTo)}` : formatDate(value)} onfocus={() => (isOpen = true)} onchange={handleInputChangeWithDateFns} onkeydown={handleInputKeydown} {disabled} {required} {inputmode} aria-haspopup="dialog" />
|
|
278
343
|
<button type="button" class={button({ class: clsx(btnClass, (theme as DatepickerTheme)?.button, classes?.button) })} onclick={() => (isOpen = !isOpen)} {disabled} aria-label={isOpen ? "Close date picker" : "Open date picker"}>
|
|
279
344
|
<svg class="h-4 w-4 text-gray-500 dark:text-gray-400" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 20">
|
|
280
345
|
<path d="M20 4a2 2 0 0 0-2-2h-2V1a1 1 0 0 0-2 0v1h-3V1a1 1 0 0 0-2 0v1H6V1a1 1 0 0 0-2 0v1H2a2 2 0 0 0-2 2v2h20V4ZM0 18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8H0v10Zm5-8h10a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2Z"></path>
|
|
@@ -284,7 +349,7 @@
|
|
|
284
349
|
{/if}
|
|
285
350
|
|
|
286
351
|
{#if isOpen || inline}
|
|
287
|
-
<div bind:this={calendarRef} id="datepicker-dropdown" class={base({ inline, class: clsx((theme as DatepickerTheme)?.base,
|
|
352
|
+
<div bind:this={calendarRef} id="datepicker-dropdown" class={base({ inline, class: clsx((theme as DatepickerTheme)?.base, className) })} transition:fade={{ duration: 100 }} role="dialog" aria-label="Calendar">
|
|
288
353
|
{#if title}
|
|
289
354
|
<h2 class={titleVariant({ class: clsx((theme as DatepickerTheme)?.titleVariant, classes?.titleVariant) })}>{title}</h2>
|
|
290
355
|
{/if}
|
|
@@ -313,10 +378,8 @@
|
|
|
313
378
|
{/each}
|
|
314
379
|
</div>
|
|
315
380
|
{:else}
|
|
316
|
-
<!-- Regular Calendar View -->
|
|
317
381
|
<div class={nav({ class: clsx(classes?.nav) })}>
|
|
318
382
|
{@render navButton(false)}
|
|
319
|
-
<!-- MODIFIED: Use translationLocale for month/year display -->
|
|
320
383
|
<Button type="button" class={polite({ class: clsx("cursor-pointer rounded px-2 py-1 hover:bg-gray-100 dark:hover:bg-gray-700", classes?.polite) })} aria-live="polite" onclick={(event: MouseEvent) => toggleMonthSelector(event)}>
|
|
321
384
|
{currentMonth.toLocaleString(translationLocale, { month: "long", year: "numeric" })}
|
|
322
385
|
</Button>
|
|
@@ -368,7 +431,7 @@
|
|
|
368
431
|
@component
|
|
369
432
|
[Go to docs](https://flowbite-svelte.com/)
|
|
370
433
|
## Type
|
|
371
|
-
[DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
434
|
+
[DatepickerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L442)
|
|
372
435
|
## Props
|
|
373
436
|
@prop value = $bindable()
|
|
374
437
|
@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#L442)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value = $bindable()
|
|
8
8
|
* @prop defaultDate = null
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import type { Classes } from "../theme/themeUtils";
|
|
1
2
|
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
import { type VariantProps } from "tailwind-variants";
|
|
3
|
-
export type
|
|
4
|
-
[K in keyof (typeof datepicker)["slots"]]: ClassValue;
|
|
5
|
-
}>;
|
|
6
|
-
export type DatepickerVariants = VariantProps<typeof datepicker> & {
|
|
7
|
-
classes?: DatepickerClasses;
|
|
8
|
-
};
|
|
4
|
+
export type DatepickerVariants = VariantProps<typeof datepicker> & Classes<typeof datepicker>;
|
|
9
5
|
export declare const datepicker: import("tailwind-variants").TVReturnType<{
|
|
10
6
|
color: {
|
|
11
7
|
primary: {
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { type AndroidProps } from "..";
|
|
3
|
+
import { themeDeprecated } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
2
5
|
import { android } from ".";
|
|
3
|
-
import { type AndroidProps, cn } from "..";
|
|
4
6
|
|
|
5
|
-
let { children, divClass, div2Class, div3Class, div4Class, div5Class, div6Class, div7Class, ...restProps }: AndroidProps = $props();
|
|
7
|
+
let { children, class: className, classes, divClass, div2Class, div3Class, div4Class, div5Class, div6Class, div7Class, ...restProps }: AndroidProps = $props();
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
themeDeprecated("Android", { divClass, div2Class, div3Class, div4Class, div5Class, div6Class, div7Class });
|
|
10
|
+
let styling = $derived(
|
|
11
|
+
classes ?? {
|
|
12
|
+
top: div2Class,
|
|
13
|
+
leftTop: div3Class,
|
|
14
|
+
leftMid: div4Class,
|
|
15
|
+
leftBot: div5Class,
|
|
16
|
+
right: div6Class,
|
|
17
|
+
slot: div7Class
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
const { base, slot, top, leftTop, leftMid, leftBot, right } = android();
|
|
8
22
|
</script>
|
|
9
23
|
|
|
10
|
-
<div {...restProps} class={
|
|
11
|
-
<div class={
|
|
12
|
-
<div class={
|
|
13
|
-
<div class={
|
|
14
|
-
<div class={
|
|
15
|
-
<div class={
|
|
16
|
-
<div class={
|
|
24
|
+
<div {...restProps} class={base({ class: clsx(className ?? divClass) })}>
|
|
25
|
+
<div class={top({ class: clsx(styling.top) })}></div>
|
|
26
|
+
<div class={leftTop({ class: clsx(styling.leftTop) })}></div>
|
|
27
|
+
<div class={leftMid({ class: clsx(styling.leftMid) })}></div>
|
|
28
|
+
<div class={leftBot({ class: clsx(styling.leftBot) })}></div>
|
|
29
|
+
<div class={right({ class: clsx(styling.right) })}></div>
|
|
30
|
+
<div class={slot({ class: clsx(styling.slot) })}>
|
|
17
31
|
{#if children}
|
|
18
32
|
{@render children()}
|
|
19
33
|
{/if}
|
|
@@ -24,9 +38,11 @@
|
|
|
24
38
|
@component
|
|
25
39
|
[Go to docs](https://flowbite-svelte.com/)
|
|
26
40
|
## Type
|
|
27
|
-
[AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
41
|
+
[AndroidProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L496)
|
|
28
42
|
## Props
|
|
29
43
|
@prop children
|
|
44
|
+
@prop class: className
|
|
45
|
+
@prop classes
|
|
30
46
|
@prop divClass
|
|
31
47
|
@prop div2Class
|
|
32
48
|
@prop div3Class
|
|
@@ -2,9 +2,11 @@ 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#L496)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
|
+
* @prop class: className
|
|
9
|
+
* @prop classes
|
|
8
10
|
* @prop divClass
|
|
9
11
|
* @prop div2Class
|
|
10
12
|
* @prop div3Class
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { type DefaultMockupProps } from "..";
|
|
3
|
+
import { themeDeprecated } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
2
5
|
import { defaultMockup } from ".";
|
|
3
|
-
import { type DefaultMockupProps, cn } from "..";
|
|
4
6
|
|
|
5
|
-
let { children, divClass, div2Class, div3Class, div4Class, div5Class, div6Class, ...restProps }: DefaultMockupProps = $props();
|
|
7
|
+
let { children, class: className, classes, divClass, div2Class, div3Class, div4Class, div5Class, div6Class, ...restProps }: DefaultMockupProps = $props();
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
themeDeprecated("DefaultMockup", { divClass, div2Class, div3Class, div4Class, div5Class, div6Class });
|
|
10
|
+
let styling = $derived(
|
|
11
|
+
classes ?? {
|
|
12
|
+
top: div2Class,
|
|
13
|
+
leftTop: div3Class,
|
|
14
|
+
leftBot: div4Class,
|
|
15
|
+
right: div5Class,
|
|
16
|
+
slot: div6Class
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const { base, slot, top, leftTop, leftBot, right } = defaultMockup();
|
|
8
21
|
</script>
|
|
9
22
|
|
|
10
|
-
<div {...restProps} class={
|
|
11
|
-
<div class={
|
|
12
|
-
<div class={
|
|
13
|
-
<div class={
|
|
14
|
-
<div class={
|
|
15
|
-
<div class={
|
|
23
|
+
<div {...restProps} class={base({ class: clsx(className ?? divClass) })}>
|
|
24
|
+
<div class={top({ class: clsx(styling.top) })}></div>
|
|
25
|
+
<div class={leftTop({ class: clsx(styling.leftTop) })}></div>
|
|
26
|
+
<div class={leftBot({ class: clsx(styling.leftBot) })}></div>
|
|
27
|
+
<div class={right({ class: clsx(styling.right) })}></div>
|
|
28
|
+
<div class={slot({ class: clsx(styling.slot) })}>
|
|
16
29
|
{#if children}
|
|
17
30
|
{@render children()}
|
|
18
31
|
{/if}
|
|
@@ -23,9 +36,11 @@
|
|
|
23
36
|
@component
|
|
24
37
|
[Go to docs](https://flowbite-svelte.com/)
|
|
25
38
|
## Type
|
|
26
|
-
[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#L507)
|
|
27
40
|
## Props
|
|
28
41
|
@prop children
|
|
42
|
+
@prop class: className
|
|
43
|
+
@prop classes
|
|
29
44
|
@prop divClass
|
|
30
45
|
@prop div2Class
|
|
31
46
|
@prop div3Class
|
|
@@ -2,9 +2,11 @@ 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#L507)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
|
+
* @prop class: className
|
|
9
|
+
* @prop classes
|
|
8
10
|
* @prop divClass
|
|
9
11
|
* @prop div2Class
|
|
10
12
|
* @prop div3Class
|
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
+
import { type DesktopProps } from "..";
|
|
3
|
+
import { themeDeprecated } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
2
5
|
import { desktop } from ".";
|
|
3
|
-
import { type MockupBaseProps, cn } from "..";
|
|
4
6
|
|
|
5
|
-
let { children, divClass, div2Class, div3Class, div4Class, ...restProps }:
|
|
7
|
+
let { children, class: className, classes, divClass, div2Class, div3Class, div4Class, ...restProps }: DesktopProps = $props();
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
themeDeprecated("DesktopMockup", { divClass, div2Class, div3Class, div4Class });
|
|
10
|
+
let styling = $derived(
|
|
11
|
+
classes ?? {
|
|
12
|
+
inner: div2Class,
|
|
13
|
+
bot: div3Class,
|
|
14
|
+
botUnder: div4Class
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const { base, inner, bot, botUnder } = desktop();
|
|
8
19
|
</script>
|
|
9
20
|
|
|
10
|
-
<div {...restProps} class={
|
|
11
|
-
<div class={
|
|
21
|
+
<div {...restProps} class={base({ class: clsx(className ?? divClass) })}>
|
|
22
|
+
<div class={inner({ class: clsx(styling.inner) })}>
|
|
12
23
|
{#if children}
|
|
13
24
|
{@render children()}
|
|
14
25
|
{/if}
|
|
15
26
|
</div>
|
|
16
27
|
</div>
|
|
17
|
-
<div class={
|
|
18
|
-
<div class={
|
|
28
|
+
<div class={bot({ class: clsx(styling.bot) })}></div>
|
|
29
|
+
<div class={botUnder({ class: clsx(styling.botUnder) })}></div>
|
|
19
30
|
|
|
20
31
|
<!--
|
|
21
32
|
@component
|
|
22
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
34
|
## Type
|
|
24
|
-
[
|
|
35
|
+
[DesktopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L480)
|
|
25
36
|
## Props
|
|
26
37
|
@prop children
|
|
38
|
+
@prop class: className
|
|
39
|
+
@prop classes
|
|
27
40
|
@prop divClass
|
|
28
41
|
@prop div2Class
|
|
29
42
|
@prop div3Class
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DesktopProps } from "..";
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [
|
|
5
|
+
* [DesktopProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L480)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
|
+
* @prop class: className
|
|
9
|
+
* @prop classes
|
|
8
10
|
* @prop divClass
|
|
9
11
|
* @prop div2Class
|
|
10
12
|
* @prop div3Class
|
|
11
13
|
* @prop div4Class
|
|
12
14
|
* @prop ...restProps
|
|
13
15
|
*/
|
|
14
|
-
declare const Desktop: import("svelte").Component<
|
|
16
|
+
declare const Desktop: import("svelte").Component<DesktopProps, {}, "">;
|
|
15
17
|
type Desktop = ReturnType<typeof Desktop>;
|
|
16
18
|
export default Desktop;
|
|
@@ -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#L475)
|
|
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#L475)
|
|
7
7
|
* ## Props
|
|
8
8
|
* @prop children
|
|
9
9
|
* @prop device = "default"
|