flowbite-svelte 1.10.19 → 1.10.21
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 +7 -7
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/theme.d.ts +0 -4
- package/dist/alert/Alert.svelte +1 -1
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +0 -2
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +0 -2
- package/dist/badge/Badge.svelte +5 -5
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +0 -3
- package/dist/banner/Banner.svelte +6 -6
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +0 -3
- package/dist/bottom-navigation/BottomNav.svelte +5 -5
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +5 -5
- 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 +5 -5
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/theme.d.ts +0 -9
- package/dist/breadcrumb/Breadcrumb.svelte +5 -5
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +8 -8
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +0 -5
- package/dist/button-group/ButtonGroup.svelte +1 -1
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/index.d.ts +1 -1
- package/dist/button-group/theme.d.ts +0 -2
- package/dist/buttons/Button.svelte +3 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +5 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +0 -5
- package/dist/card/Card.svelte +6 -6
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +0 -3
- package/dist/carousel/Carousel.svelte +4 -4
- package/dist/carousel/Carousel.svelte.d.ts +2 -1
- package/dist/carousel/CarouselIndicators.svelte +5 -5
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +3 -3
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +2 -2
- 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/carousel/index.d.ts +1 -1
- package/dist/carousel/theme.d.ts +0 -9
- package/dist/clipboard/Clipboard.svelte +1 -1
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +0 -2
- package/dist/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +0 -2
- package/dist/datepicker/Datepicker.svelte +13 -13
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +0 -3
- package/dist/device-mockups/Android.svelte +2 -2
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +2 -2
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +2 -2
- 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 +2 -2
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +2 -2
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +2 -2
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +2 -2
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/drawer/Drawer.svelte +5 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +6 -6
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -8
- 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 +4 -4
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +0 -8
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +5 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +6 -6
- 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 +5 -5
- 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/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +3 -13
- package/dist/forms/button-toggle/ButtonToggle.svelte +7 -7
- 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/button-toggle/index.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +0 -4
- package/dist/forms/checkbox/Checkbox.svelte +6 -6
- package/dist/forms/checkbox/CheckboxButton.svelte +3 -3
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/index.js +1 -1
- package/dist/forms/checkbox/theme.d.ts +1 -5
- package/dist/forms/checkbox/theme.js +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +1 -1
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/dropzone/theme.d.ts +0 -2
- package/dist/forms/fileupload/Fileupload.svelte +6 -6
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/index.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +0 -3
- package/dist/forms/floating-label/FloatingLabelInput.svelte +8 -8
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/index.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +0 -3
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/index.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +0 -2
- package/dist/forms/input-addon/InputAddon.svelte +2 -5
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +11 -11
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +0 -3
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/index.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +0 -2
- package/dist/forms/phoneinput/PhoneInput.svelte +8 -8
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/index.js +1 -1
- package/dist/forms/phoneinput/theme.d.ts +3 -10
- package/dist/forms/phoneinput/theme.js +1 -1
- package/dist/forms/radio/Radio.svelte +5 -4
- package/dist/forms/radio/Radio.svelte.d.ts +10 -3
- package/dist/forms/radio/RadioButton.svelte +2 -2
- package/dist/forms/radio/RadioButton.svelte.d.ts +10 -3
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/index.js +1 -1
- package/dist/forms/radio/theme.d.ts +1 -5
- package/dist/forms/radio/theme.js +1 -1
- package/dist/forms/range/Range.svelte +5 -4
- package/dist/forms/range/Range.svelte.d.ts +2 -1
- package/dist/forms/range/theme.d.ts +0 -2
- package/dist/forms/search/Search.svelte +9 -9
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/index.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +0 -3
- package/dist/forms/select/MultiSelect.svelte +5 -5
- package/dist/forms/select/MultiSelect.svelte.d.ts +10 -3
- package/dist/forms/select/Select.svelte +5 -5
- package/dist/forms/select/Select.svelte.d.ts +10 -3
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/theme.d.ts +3 -5
- package/dist/forms/select/theme.js +2 -1
- package/dist/forms/tags/Tags.svelte +14 -12
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/index.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +6 -9
- package/dist/forms/textarea/Textarea.svelte +23 -21
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/index.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +0 -3
- package/dist/forms/timepicker/Timepicker.svelte +38 -38
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -1
- package/dist/forms/timepicker/theme.d.ts +0 -3
- package/dist/forms/toggle/Toggle.svelte +11 -7
- package/dist/forms/toggle/Toggle.svelte.d.ts +2 -1
- package/dist/forms/toggle/index.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -4
- package/dist/gallery/Gallery.svelte +10 -6
- package/dist/gallery/Gallery.svelte.d.ts +2 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +4 -5
- package/dist/gallery/theme.js +1 -2
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +0 -2
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +0 -2
- package/dist/list-group/Listgroup.svelte +3 -3
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +2 -2
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/index.d.ts +1 -1
- package/dist/list-group/theme.d.ts +1 -4
- package/dist/mega-menu/MegaMenu.svelte +15 -10
- package/dist/mega-menu/MegaMenu.svelte.d.ts +2 -1
- package/dist/mega-menu/index.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +6 -6
- package/dist/mega-menu/theme.js +2 -2
- package/dist/modal/Modal.svelte +18 -12
- package/dist/modal/Modal.svelte.d.ts +3 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/theme.d.ts +29 -7
- package/dist/modal/theme.js +7 -1
- package/dist/navbar/Menu.svelte +2 -5
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +2 -2
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +2 -2
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +11 -7
- package/dist/navbar/NavHamburger.svelte.d.ts +63 -2
- package/dist/navbar/NavLi.svelte +2 -2
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +13 -9
- package/dist/navbar/NavUl.svelte.d.ts +2 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/navbar/index.js +1 -1
- package/dist/navbar/theme.d.ts +4 -8
- 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 +2 -2
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +15 -10
- package/dist/pagination/PaginationNav.svelte.d.ts +2 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/theme.d.ts +30 -34
- package/dist/pagination/theme.js +6 -6
- package/dist/popover/Popover.svelte +13 -8
- package/dist/popover/Popover.svelte.d.ts +2 -1
- package/dist/popover/index.d.ts +1 -1
- package/dist/popover/theme.d.ts +2 -4
- package/dist/progress/Progressbar.svelte +16 -9
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +10 -10
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/theme.d.ts +276 -290
- package/dist/progress/theme.js +92 -92
- package/dist/rating/AdvancedRating.svelte +21 -9
- package/dist/rating/AdvancedRating.svelte.d.ts +3 -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 +10 -6
- package/dist/rating/Rating.svelte.d.ts +2 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +28 -13
- package/dist/rating/Review.svelte.d.ts +3 -1
- package/dist/rating/ScoreRating.svelte +11 -10
- package/dist/rating/ScoreRating.svelte.d.ts +2 -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/index.d.ts +1 -1
- package/dist/rating/theme.d.ts +12 -15
- package/dist/sidebar/Sidebar.svelte +23 -12
- package/dist/sidebar/Sidebar.svelte.d.ts +2 -1
- package/dist/sidebar/SidebarBrand.svelte +16 -7
- package/dist/sidebar/SidebarBrand.svelte.d.ts +2 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +16 -7
- package/dist/sidebar/SidebarCta.svelte.d.ts +2 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +21 -10
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +2 -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/index.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +28 -34
- package/dist/sidebar/theme.js +7 -7
- package/dist/skeleton/CardPlaceholder.svelte +16 -15
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/ImagePlaceholder.svelte +15 -14
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/ListPlaceholder.svelte +15 -14
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/Skeleton.svelte +12 -11
- package/dist/skeleton/Skeleton.svelte.d.ts +2 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +17 -16
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/TextPlaceholder.svelte +36 -35
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +14 -13
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/index.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +93 -106
- package/dist/skeleton/theme.js +28 -24
- package/dist/speed-dial/SpeedDial.svelte +14 -6
- package/dist/speed-dial/SpeedDial.svelte.d.ts +2 -1
- package/dist/speed-dial/SpeedDialButton.svelte +27 -9
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +3 -2
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/index.d.ts +1 -1
- package/dist/speed-dial/theme.d.ts +3 -22
- package/dist/speed-dial/theme.js +0 -5
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +1 -1
- package/dist/spinner/theme.d.ts +0 -2
- package/dist/stepindicator/StepIndicator.svelte +12 -11
- package/dist/stepindicator/StepIndicator.svelte.d.ts +2 -1
- package/dist/stepindicator/theme.d.ts +46 -45
- package/dist/stepindicator/theme.js +15 -15
- package/dist/stepper/BreadcrumbStepper.svelte +10 -8
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +2 -1
- package/dist/stepper/DetailedStepper.svelte +9 -6
- package/dist/stepper/DetailedStepper.svelte.d.ts +2 -1
- package/dist/stepper/ProgressStepper.svelte +9 -7
- package/dist/stepper/ProgressStepper.svelte.d.ts +2 -1
- package/dist/stepper/Stepper.svelte +11 -8
- package/dist/stepper/Stepper.svelte.d.ts +2 -1
- package/dist/stepper/TimelineStepper.svelte +9 -6
- package/dist/stepper/TimelineStepper.svelte.d.ts +2 -1
- package/dist/stepper/VerticalStepper.svelte +10 -7
- package/dist/stepper/VerticalStepper.svelte.d.ts +2 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/theme.d.ts +407 -352
- package/dist/stepper/theme.js +157 -191
- package/dist/table/Table.svelte +14 -7
- package/dist/table/Table.svelte.d.ts +2 -1
- package/dist/table/TableBody.svelte +2 -5
- 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 +27 -20
- package/dist/table/TableSearch.svelte.d.ts +2 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/theme.d.ts +19 -38
- package/dist/table/theme.js +5 -5
- package/dist/tabs/TabItem.svelte +7 -6
- package/dist/tabs/TabItem.svelte.d.ts +2 -1
- package/dist/tabs/Tabs.svelte +13 -7
- package/dist/tabs/Tabs.svelte.d.ts +3 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/theme.d.ts +3 -6
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/index.js +1 -2
- package/dist/theme/themeUtils.d.ts +5 -22
- package/dist/theme/themeUtils.js +25 -23
- package/dist/theme/themes.d.ts +70 -0
- package/dist/theme/themes.js +75 -0
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +41 -13
- package/dist/timeline/ActivityItem.svelte.d.ts +3 -1
- package/dist/timeline/Group.svelte +23 -7
- package/dist/timeline/Group.svelte.d.ts +3 -1
- package/dist/timeline/GroupItem.svelte +35 -13
- package/dist/timeline/GroupItem.svelte.d.ts +3 -1
- package/dist/timeline/Timeline.svelte +3 -3
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +32 -12
- package/dist/timeline/TimelineItem.svelte.d.ts +3 -1
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/theme.d.ts +57 -51
- package/dist/timeline/theme.js +11 -10
- package/dist/toast/Toast.svelte +22 -8
- package/dist/toast/Toast.svelte.d.ts +2 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/theme.d.ts +2 -4
- package/dist/toolbar/Toolbar.svelte +6 -5
- package/dist/toolbar/Toolbar.svelte.d.ts +2 -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/toolbar/index.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +3 -7
- package/dist/tooltip/Tooltip.svelte +4 -4
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tooltip/theme.d.ts +3 -15
- package/dist/tooltip/theme.js +1 -4
- package/dist/types.d.ts +66 -65
- package/dist/types.js +0 -1
- package/dist/typography/anchor/A.svelte +2 -2
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +1 -1
- package/dist/typography/anchor/theme.d.ts +0 -2
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +0 -2
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +1 -1
- package/dist/typography/descriptionlist/theme.d.ts +0 -2
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +1 -1
- package/dist/typography/heading/theme.d.ts +0 -2
- package/dist/typography/hr/Hr.svelte +25 -10
- package/dist/typography/hr/Hr.svelte.d.ts +3 -2
- package/dist/typography/hr/index.d.ts +1 -1
- package/dist/typography/hr/theme.d.ts +6 -6
- package/dist/typography/hr/theme.js +1 -1
- package/dist/typography/img/EnhancedImg.svelte +25 -11
- package/dist/typography/img/EnhancedImg.svelte.d.ts +3 -2
- package/dist/typography/img/Img.svelte +24 -10
- package/dist/typography/img/Img.svelte.d.ts +3 -2
- package/dist/typography/img/index.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +5 -7
- package/dist/typography/img/theme.js +1 -1
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +1 -1
- package/dist/typography/layout/theme.d.ts +0 -2
- package/dist/typography/list/Li.svelte +2 -5
- 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/list/index.d.ts +1 -1
- package/dist/typography/list/theme.d.ts +0 -2
- package/dist/typography/mark/Mark.svelte +1 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +1 -1
- package/dist/typography/mark/theme.d.ts +0 -2
- package/dist/typography/paragraph/P.svelte +2 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +1 -1
- package/dist/typography/paragraph/theme.d.ts +0 -2
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +1 -1
- package/dist/typography/secondary/theme.d.ts +0 -2
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +1 -1
- package/dist/typography/span/theme.d.ts +0 -2
- 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 +11 -11
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type BreadcrumbVariants = VariantProps<typeof breadcrumb> & Classes<typeof breadcrumb>;
|
|
5
4
|
export type BreadcrumbItemVariants = VariantProps<typeof breadcrumbItem> & Classes<typeof breadcrumbItem>;
|
|
6
|
-
export type BreadcrumbSlots = keyof typeof breadcrumb.slots;
|
|
7
|
-
export type BreadcrumbTheme = Partial<Record<BreadcrumbSlots, ClassValue>>;
|
|
8
|
-
export type BreadcrumbItemSlots = keyof typeof breadcrumbItem.slots;
|
|
9
|
-
export type BreadcrumbItemTheme = Partial<Record<BreadcrumbItemSlots, ClassValue>>;
|
|
10
5
|
export declare const breadcrumb: import("tailwind-variants").TVReturnType<{
|
|
11
6
|
solid: {
|
|
12
7
|
true: {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Type
|
|
25
|
-
[ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L304)
|
|
26
26
|
## Props
|
|
27
27
|
@prop children
|
|
28
28
|
@prop size = "md"
|
|
@@ -2,7 +2,7 @@ import { type ButtonGroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L304)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size = "md"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ButtonGroup } from "./ButtonGroup.svelte";
|
|
2
|
-
export { buttonGroup
|
|
2
|
+
export { buttonGroup } from "./theme";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { ClassValue } from "svelte/elements";
|
|
2
1
|
import { type VariantProps } from "tailwind-variants";
|
|
3
2
|
export type ButtonGroupVariants = VariantProps<typeof buttonGroup>;
|
|
4
|
-
export type ButtonGroupTheme = ClassValue;
|
|
5
3
|
export declare const buttonGroup: import("tailwind-variants").TVReturnType<{
|
|
6
4
|
size: {
|
|
7
5
|
sm: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type SizeType, type ButtonProps } from "..";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
6
|
-
import { button
|
|
6
|
+
import { button } from ".";
|
|
7
7
|
|
|
8
8
|
const group: SizeType = getContext("group");
|
|
9
9
|
const ctxDisabled: boolean | undefined = getContext("disabled");
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
let isDisabled = $derived(Boolean(ctxDisabled) || Boolean(disabled) || loading);
|
|
18
18
|
|
|
19
19
|
const { base, outline: outline_, shadow: shadow_ } = $derived(button({ color: actualColor, size: actualSize, disabled: isDisabled, pill, group: !!group }));
|
|
20
|
-
let btnCls = $derived(base({ class: clsx(outline && outline_(), shadow && shadow_(),
|
|
20
|
+
let btnCls = $derived(base({ class: clsx(outline && outline_(), shadow && shadow_(), theme?.base, className) }));
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
{#if restProps.href === undefined}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@component
|
|
45
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
46
|
## Type
|
|
47
|
-
[ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L314)
|
|
48
48
|
## Props
|
|
49
49
|
@prop children
|
|
50
50
|
@prop pill
|
|
@@ -2,7 +2,7 @@ import { type ButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L314)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop pill
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import { gradientButton
|
|
3
|
+
import { gradientButton } from ".";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { type GradientButtonProps, type SizeType, Button } from "..";
|
|
6
6
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
</script>
|
|
16
16
|
|
|
17
17
|
{#if outline}
|
|
18
|
-
<div class={base({ class: clsx(
|
|
19
|
-
<Button {...restProps} class={outlineWrapper({ class: clsx(
|
|
18
|
+
<div class={base({ class: clsx(theme?.base, className) })}>
|
|
19
|
+
<Button {...restProps} class={outlineWrapper({ class: clsx(theme?.outlineWrapper, btnClass) })} {disabled} {href} {size}>
|
|
20
20
|
{@render children?.()}
|
|
21
21
|
</Button>
|
|
22
22
|
</div>
|
|
23
23
|
{:else}
|
|
24
|
-
<Button {...restProps} class={base({ class: clsx(
|
|
24
|
+
<Button {...restProps} class={base({ class: clsx(theme?.base, className) })} {disabled} {href} {size}>
|
|
25
25
|
{@render children?.()}
|
|
26
26
|
</Button>
|
|
27
27
|
{/if}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
@component
|
|
31
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
32
|
## Type
|
|
33
|
-
[GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L323)
|
|
34
34
|
## Props
|
|
35
35
|
@prop children
|
|
36
36
|
@prop outline
|
|
@@ -2,7 +2,7 @@ import { type GradientButtonProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [GradientButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L323)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop outline
|
package/dist/buttons/index.d.ts
CHANGED
package/dist/buttons/theme.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
export type ButtonVariants = VariantProps<typeof button>;
|
|
4
3
|
export type GradientButtonVariantes = VariantProps<typeof gradientButton>;
|
|
5
|
-
export type ButtonSlots = keyof typeof button.slots;
|
|
6
|
-
export type ButtonTheme = Partial<Record<ButtonSlots, ClassValue>>;
|
|
7
|
-
export type GradientButtonSlots = keyof typeof gradientButton.slots;
|
|
8
|
-
export type GradientButtonTheme = Partial<Record<GradientButtonSlots, ClassValue>>;
|
|
9
4
|
export declare const button: import("tailwind-variants").TVReturnType<{
|
|
10
5
|
color: {
|
|
11
6
|
primary: {
|
package/dist/card/Card.svelte
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { type CardProps } from "..";
|
|
3
3
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
-
import { card
|
|
5
|
+
import { card } from ".";
|
|
6
6
|
|
|
7
7
|
let { children, color = "gray", horizontal = false, shadow = "md", reverse = false, img, size = "sm", class: className, classes, imgClass, ...restProps }: CardProps = $props();
|
|
8
8
|
|
|
9
9
|
warnThemeDeprecation("Card", { imgClass }, { imgClass: "image" });
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const styling = $derived(classes ?? { image: imgClass });
|
|
12
12
|
|
|
13
13
|
const theme = getTheme("card");
|
|
14
14
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
{#snippet childSlot()}
|
|
28
28
|
{#if img}
|
|
29
|
-
<img class={image({ class: clsx(
|
|
29
|
+
<img class={image({ class: clsx(theme?.image, styling.image) })} src={img} alt={img} />
|
|
30
30
|
{@render children()}
|
|
31
31
|
{:else}
|
|
32
32
|
{@render children()}
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
{/snippet}
|
|
35
35
|
|
|
36
36
|
{#if restProps.href === undefined}
|
|
37
|
-
<div {...restProps} class={base({ class: clsx(
|
|
37
|
+
<div {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
38
38
|
{@render childSlot()}
|
|
39
39
|
</div>
|
|
40
40
|
{:else}
|
|
41
|
-
<a {...restProps} class={base({ class: clsx(
|
|
41
|
+
<a {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
42
42
|
{@render childSlot()}
|
|
43
43
|
</a>
|
|
44
44
|
{/if}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
@component
|
|
48
48
|
[Go to docs](https://flowbite-svelte.com/)
|
|
49
49
|
## Type
|
|
50
|
-
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
50
|
+
[CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L364)
|
|
51
51
|
## Props
|
|
52
52
|
@prop children
|
|
53
53
|
@prop color = "gray"
|
|
@@ -2,7 +2,7 @@ import { type CardProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CardProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L364)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "gray"
|
package/dist/card/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Card } from "./Card.svelte";
|
|
2
|
-
export { card
|
|
2
|
+
export { card } from "./theme";
|
package/dist/card/theme.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type CardVariants = VariantProps<typeof card> & Classes<typeof card>;
|
|
5
|
-
export type CardSlots = keyof typeof card.slots;
|
|
6
|
-
export type CardTheme = Partial<Record<CardSlots, ClassValue>>;
|
|
7
4
|
export declare const card: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
size: {
|
|
9
6
|
xs: {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
const SLIDE_DURATION_RATIO = 0.25;
|
|
11
11
|
|
|
12
|
-
let { children, slide, images, index = $bindable(0), slideDuration = 1000, transition, duration = 0, "aria-label": ariaLabel = "Draggable Carousel", disableSwipe = false, imgClass = "", class: className, onchange, divClass, ...restProps }: CarouselProps = $props();
|
|
12
|
+
let { children, slide, images, index = $bindable(0), slideDuration = 1000, transition, duration = 0, "aria-label": ariaLabel = "Draggable Carousel", disableSwipe = false, imgClass = "", class: className, onchange, divClass, isPreload = false, ...restProps }: CarouselProps = $props();
|
|
13
13
|
|
|
14
14
|
const theme = getTheme("carousel");
|
|
15
15
|
|
|
@@ -158,9 +158,8 @@
|
|
|
158
158
|
);
|
|
159
159
|
</script>
|
|
160
160
|
|
|
161
|
-
<!-- Preload all Carousel images for improved responsivity -->
|
|
162
161
|
<svelte:head>
|
|
163
|
-
{#if images.length > 0}
|
|
162
|
+
{#if isPreload && images.length > 0}
|
|
164
163
|
{#each images as image}
|
|
165
164
|
<link rel="preload" href={image.src} as="image" />
|
|
166
165
|
{/each}
|
|
@@ -184,7 +183,7 @@
|
|
|
184
183
|
@component
|
|
185
184
|
[Go to docs](https://flowbite-svelte.com/)
|
|
186
185
|
## Type
|
|
187
|
-
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
186
|
+
[CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L382)
|
|
188
187
|
## Props
|
|
189
188
|
@prop children
|
|
190
189
|
@prop slide
|
|
@@ -199,5 +198,6 @@
|
|
|
199
198
|
@prop class: className
|
|
200
199
|
@prop onchange
|
|
201
200
|
@prop divClass
|
|
201
|
+
@prop isPreload = false
|
|
202
202
|
@prop ...restProps
|
|
203
203
|
-->
|
|
@@ -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#L382)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop slide
|
|
@@ -17,6 +17,7 @@ import { type CarouselProps } from "..";
|
|
|
17
17
|
* @prop class: className
|
|
18
18
|
* @prop onchange
|
|
19
19
|
* @prop divClass
|
|
20
|
+
* @prop isPreload = false
|
|
20
21
|
* @prop ...restProps
|
|
21
22
|
*/
|
|
22
23
|
declare const Carousel: import("svelte").Component<CarouselProps, {}, "index">;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
|
-
import { carouselIndicators
|
|
4
|
+
import { carouselIndicators } from "./theme";
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import { Indicator, type IndicatorsProps, type State } from "..";
|
|
7
7
|
import { getTheme } from "../theme/themeUtils";
|
|
8
8
|
|
|
9
9
|
let { children, activeClass, inactiveClass, position = "bottom", class: className, ...restProps }: IndicatorsProps = $props();
|
|
10
10
|
|
|
11
|
-
const theme = getTheme("
|
|
11
|
+
const theme = getTheme("carouselIndicators");
|
|
12
12
|
|
|
13
13
|
const state = getContext<Writable<State>>("state");
|
|
14
14
|
const { base, indicator } = $derived(carouselIndicators({ position }));
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
}
|
|
28
28
|
</script>
|
|
29
29
|
|
|
30
|
-
<div class={base({ class: clsx(
|
|
30
|
+
<div class={base({ class: clsx(theme?.base, className) })} {...restProps}>
|
|
31
31
|
{#each $state.images as _, idx}
|
|
32
32
|
{@const selected = $state.index === idx}
|
|
33
33
|
<button onclick={() => goToIndex(idx)}>
|
|
34
34
|
{#if children}
|
|
35
35
|
{@render children({ selected, index: idx })}
|
|
36
36
|
{:else}
|
|
37
|
-
<Indicator class={indicator({ selected, class: clsx(selected ? activeClass : inactiveClass,
|
|
37
|
+
<Indicator class={indicator({ selected, class: clsx(selected ? activeClass : inactiveClass, theme?.indicator) })} />
|
|
38
38
|
{/if}
|
|
39
39
|
</button>
|
|
40
40
|
{/each}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
@component
|
|
45
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
46
|
## Type
|
|
47
|
-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L397)
|
|
48
48
|
## Props
|
|
49
49
|
@prop children
|
|
50
50
|
@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#L397)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeClass
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { controlButton
|
|
2
|
+
import { controlButton } from "./theme";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { type ControlButtonProps } from "..";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
const { base, span } = controlButton({ forward });
|
|
10
10
|
|
|
11
|
-
const theme = getTheme("
|
|
11
|
+
const theme = getTheme("controlButton");
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<button type="button" class={base({ class: clsx(className, theme) })} {...restProps}>
|
|
@@ -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#L404)
|
|
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#L404)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop forward
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
let { children, class: className, ...restProps }: ControlsProps = $props();
|
|
10
10
|
|
|
11
|
-
const theme = getTheme("
|
|
11
|
+
const theme = getTheme("controlButton");
|
|
12
12
|
|
|
13
13
|
const state = getContext<Writable<State>>("state");
|
|
14
14
|
const { update } = state;
|
|
@@ -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#L410)
|
|
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#L410)
|
|
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#L427)
|
|
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#L427)
|
|
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#L414)
|
|
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#L414)
|
|
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#L418)
|
|
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#L418)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop images = []
|
package/dist/carousel/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { default as Carousel } from "./Carousel.svelte";
|
|
|
2
2
|
export { default as ControlButton } from "./ControlButton.svelte";
|
|
3
3
|
export { default as Controls } from "./Controls.svelte";
|
|
4
4
|
export { default as CarouselIndicators } from "./CarouselIndicators.svelte";
|
|
5
|
-
export { carousel,
|
|
5
|
+
export { carousel, carouselIndicators, controlButton, thumbnails, thumbnail, slide } from "./theme";
|
|
6
6
|
export { default as Thumbnails } from "./Thumbnails.svelte";
|
|
7
7
|
export { default as Slide } from "./Slide.svelte";
|
|
8
8
|
export { default as Thumbnail } from "./Thumbnail.svelte";
|
package/dist/carousel/theme.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
export type CarouselVariants = VariantProps<typeof carousel>;
|
|
4
3
|
export declare const carousel: import("tailwind-variants").TVReturnType<{}, undefined, "grid overflow-hidden relative rounded-lg h-56 sm:h-64 xl:h-80 2xl:h-96", {}, undefined, import("tailwind-variants").TVReturnType<{}, undefined, "grid overflow-hidden relative rounded-lg h-56 sm:h-64 xl:h-80 2xl:h-96", unknown, unknown, undefined>>;
|
|
5
|
-
export type CarouselTheme = ClassValue;
|
|
6
4
|
export declare const carouselIndicators: import("tailwind-variants").TVReturnType<{
|
|
7
5
|
selected: {
|
|
8
6
|
true: {
|
|
@@ -73,8 +71,6 @@ export declare const carouselIndicators: import("tailwind-variants").TVReturnTyp
|
|
|
73
71
|
base: string;
|
|
74
72
|
indicator: string;
|
|
75
73
|
}, undefined, unknown, unknown, undefined>>;
|
|
76
|
-
export type CarouselIndicatorsSlots = keyof typeof carouselIndicators.slots;
|
|
77
|
-
export type CarouselIndicatorsTheme = Partial<Record<CarouselIndicatorsSlots, ClassValue>>;
|
|
78
74
|
export declare const controlButton: import("tailwind-variants").TVReturnType<{
|
|
79
75
|
forward: {
|
|
80
76
|
true: string;
|
|
@@ -100,10 +96,7 @@ export declare const controlButton: import("tailwind-variants").TVReturnType<{
|
|
|
100
96
|
base: string;
|
|
101
97
|
span: string;
|
|
102
98
|
}, undefined, unknown, unknown, undefined>>;
|
|
103
|
-
export type ControlButtonSlots = keyof typeof controlButton.slots;
|
|
104
|
-
export type ControlButtonTheme = Partial<Record<ControlButtonSlots, ClassValue>>;
|
|
105
99
|
export declare const thumbnails: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex flex-row justify-center bg-gray-100 w-full", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex flex-row justify-center bg-gray-100 w-full", unknown, unknown, undefined>>;
|
|
106
|
-
export type ThumbnailsTheme = ClassValue;
|
|
107
100
|
export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
108
101
|
selected: {
|
|
109
102
|
true: string;
|
|
@@ -120,6 +113,4 @@ export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
|
120
113
|
false: string;
|
|
121
114
|
};
|
|
122
115
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
123
|
-
export type ThumbnailTheme = ClassValue;
|
|
124
116
|
export declare const slide: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "absolute block w-full! h-full object-cover", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "absolute block w-full! h-full object-cover", unknown, unknown, undefined>>;
|
|
125
|
-
export type SlideTheme = ClassValue;
|
|
@@ -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#L439)
|
|
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#L439)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop embedded = false
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Clipboard } from "./Clipboard.svelte";
|
|
2
|
-
export { clipboard
|
|
2
|
+
export { clipboard } from "./theme";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
export type ClipboardVariants = VariantProps<typeof clipboard>;
|
|
4
3
|
export declare const clipboard: import("tailwind-variants").TVReturnType<{
|
|
5
4
|
embedded: {
|
|
@@ -17,4 +16,3 @@ export declare const clipboard: import("tailwind-variants").TVReturnType<{
|
|
|
17
16
|
false: string;
|
|
18
17
|
};
|
|
19
18
|
}, undefined, "gap-2", unknown, unknown, undefined>>;
|
|
20
|
-
export type ClipboardTheme = ClassValue;
|
|
@@ -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#L448)
|
|
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#L448)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop lightIcon
|
package/dist/darkmode/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as DarkMode } from "./DarkMode.svelte";
|
|
2
|
-
export { darkmode
|
|
2
|
+
export { darkmode } from "./theme";
|
package/dist/darkmode/theme.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import type { ClassValue } from "svelte/elements";
|
|
2
1
|
export declare const darkmode: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-hidden rounded-lg text-sm p-2.5", unknown, unknown, undefined>>;
|
|
3
|
-
export type DarkModeTheme = ClassValue;
|