flowbite-svelte 1.8.6 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.svelte +8 -9
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +10 -11
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +1 -1
- package/dist/accordion/theme.d.ts +18 -3
- package/dist/accordion/theme.js +6 -2
- package/dist/alert/Alert.svelte +8 -8
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +1 -0
- package/dist/avatar/Avatar.svelte +8 -9
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +1 -0
- package/dist/badge/Badge.svelte +9 -11
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +5 -3
- package/dist/badge/theme.js +1 -1
- package/dist/banner/Banner.svelte +9 -5
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +2 -0
- package/dist/bottom-navigation/BottomNav.svelte +8 -4
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +11 -6
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +9 -4
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +8 -4
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/index.js +1 -1
- package/dist/bottom-navigation/theme.d.ts +10 -2
- package/dist/bottom-navigation/theme.js +2 -2
- package/dist/breadcrumb/Breadcrumb.svelte +7 -10
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +13 -10
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/theme.d.ts +33 -22
- package/dist/breadcrumb/theme.js +18 -12
- package/dist/button-group/ButtonGroup.svelte +5 -2
- 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 +1 -0
- package/dist/buttons/Button.svelte +7 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +8 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +4 -0
- package/dist/card/Card.svelte +9 -6
- package/dist/card/Card.svelte.d.ts +2 -2
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -0
- package/dist/carousel/Carousel.svelte +5 -2
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/{Indicators.svelte → CarouselIndicators.svelte} +8 -5
- package/dist/carousel/{Indicators.svelte.d.ts → CarouselIndicators.svelte.d.ts} +4 -4
- package/dist/carousel/ControlButton.svelte +5 -2
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +6 -3
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +5 -2
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +5 -2
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +5 -2
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/index.d.ts +2 -2
- package/dist/carousel/index.js +2 -2
- package/dist/carousel/theme.d.ts +8 -1
- package/dist/carousel/theme.js +1 -2
- package/dist/clipboard/Clipboard.svelte +6 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +2 -2
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +1 -0
- package/dist/darkmode/DarkMode.svelte +5 -2
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +1 -0
- package/dist/datepicker/Datepicker.svelte +127 -86
- package/dist/datepicker/Datepicker.svelte.d.ts +38 -5
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +2 -0
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/device-mockups/theme.d.ts +21 -21
- package/dist/drawer/Drawer.svelte +8 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +8 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +16 -12
- package/dist/drawer/theme.js +4 -4
- package/dist/dropdown/Dropdown.svelte +5 -2
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +5 -2
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +5 -2
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +5 -2
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +6 -3
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +7 -0
- package/dist/footer/Footer.svelte +5 -2
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +8 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +8 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +5 -2
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +8 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +5 -2
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +18 -10
- package/dist/footer/theme.js +6 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte +8 -5
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +4 -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 +152 -144
- package/dist/forms/button-toggle/theme.js +65 -63
- package/dist/forms/checkbox/Checkbox.svelte +8 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +5 -2
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +3 -0
- package/dist/forms/dropzone/Dropzone.svelte +5 -2
- 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 +1 -0
- package/dist/forms/fileupload/Fileupload.svelte +8 -5
- 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 +2 -0
- package/dist/forms/floating-label/FloatingLabelInput.svelte +11 -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 +5 -3
- package/dist/forms/floating-label/theme.js +1 -1
- package/dist/forms/helper/Helper.svelte +5 -2
- 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 +1 -0
- package/dist/forms/input-addon/InputAddon.svelte +6 -2
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +13 -10
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +5 -3
- package/dist/forms/input-field/theme.js +1 -1
- package/dist/forms/label/Label.svelte +5 -2
- 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 +1 -0
- package/dist/forms/phoneinput/PhoneInput.svelte +11 -8
- package/dist/forms/phoneinput/PhoneInput.svelte.d.ts +1 -1
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/theme.d.ts +2 -0
- package/dist/forms/radio/Radio.svelte +6 -3
- package/dist/forms/radio/RadioButton.svelte +4 -1
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/theme.d.ts +3 -0
- package/dist/forms/range/Range.svelte +5 -2
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +1 -0
- package/dist/forms/search/Search.svelte +12 -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 +5 -3
- package/dist/forms/search/theme.js +1 -1
- package/dist/forms/select/MultiSelect.svelte +7 -4
- package/dist/forms/select/Select.svelte +8 -5
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/index.js +1 -1
- package/dist/forms/select/theme.d.ts +7 -3
- package/dist/forms/select/theme.js +1 -1
- package/dist/forms/tags/Tags.svelte +10 -7
- 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 +11 -9
- package/dist/forms/tags/theme.js +1 -1
- package/dist/forms/textarea/Textarea.svelte +14 -11
- 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 +5 -3
- package/dist/forms/textarea/theme.js +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +107 -64
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -0
- package/dist/forms/timepicker/index.js +1 -0
- package/dist/forms/timepicker/theme.d.ts +191 -0
- package/dist/forms/timepicker/theme.js +72 -0
- package/dist/forms/toggle/Toggle.svelte +8 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/index.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -0
- package/dist/gallery/Gallery.svelte +7 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +5 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -2
- package/dist/indicator/Indicator.svelte +6 -3
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +121 -360
- package/dist/indicator/theme.js +48 -56
- package/dist/kbd/Kbd.svelte +6 -2
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +1 -0
- package/dist/list-group/Listgroup.svelte +5 -2
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +7 -4
- 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 +2 -0
- package/dist/mega-menu/MegaMenu.svelte +9 -6
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/index.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +2 -0
- package/dist/modal/Modal.svelte +86 -70
- package/dist/modal/Modal.svelte.d.ts +5 -1
- package/dist/modal/index.d.ts +2 -3
- package/dist/modal/index.js +2 -3
- package/dist/modal/theme.d.ts +8 -3
- package/dist/modal/theme.js +2 -1
- package/dist/navbar/Menu.svelte +6 -2
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +7 -4
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +7 -4
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +9 -6
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +7 -4
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +11 -8
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +6 -4
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +7 -7
- package/dist/navbar/index.js +7 -7
- package/dist/navbar/theme.d.ts +12 -5
- package/dist/navbar/theme.js +5 -5
- package/dist/pagination/Pagination.svelte +7 -3
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +18 -12
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +7 -4
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +13 -11
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/theme.d.ts +7 -2
- package/dist/pagination/theme.js +2 -2
- package/dist/popover/Popover.svelte +10 -7
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/index.d.ts +2 -3
- package/dist/popover/index.js +2 -3
- package/dist/popover/theme.d.ts +2 -3
- package/dist/popover/theme.js +1 -2
- package/dist/progress/Progressbar.svelte +12 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +13 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +1 -1
- package/dist/progress/theme.d.ts +4 -0
- package/dist/rating/AdvancedRating.svelte +12 -9
- 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 +8 -4
- 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 +14 -11
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +14 -10
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/index.d.ts +10 -11
- package/dist/rating/index.js +10 -11
- package/dist/rating/theme.d.ts +16 -14
- package/dist/rating/theme.js +2 -3
- package/dist/sidebar/Sidebar.svelte +12 -9
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +10 -7
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +8 -4
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +11 -7
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +13 -10
- 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/index.d.ts +10 -11
- package/dist/sidebar/index.js +10 -11
- package/dist/sidebar/theme.d.ts +22 -13
- package/dist/sidebar/theme.js +4 -4
- package/dist/skeleton/CardPlaceholder.svelte +17 -14
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +17 -14
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +12 -9
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +15 -11
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +14 -10
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +32 -28
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +7 -3
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +8 -4
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/index.d.ts +9 -10
- package/dist/skeleton/index.js +9 -10
- package/dist/skeleton/theme.d.ts +29 -15
- package/dist/skeleton/theme.js +8 -9
- package/dist/speed-dial/SpeedDial.svelte +9 -9
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +9 -8
- 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/speed-dial/index.d.ts +4 -5
- package/dist/speed-dial/index.js +4 -5
- package/dist/speed-dial/theme.d.ts +8 -4
- package/dist/speed-dial/theme.js +2 -2
- package/dist/spinner/Spinner.svelte +6 -3
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +2 -3
- package/dist/spinner/index.js +2 -3
- package/dist/spinner/theme.d.ts +1 -0
- package/dist/stepindicator/StepIndicator.svelte +28 -49
- package/dist/stepindicator/StepIndicator.svelte.d.ts +3 -3
- package/dist/stepindicator/index.d.ts +1 -0
- package/dist/stepindicator/index.js +1 -0
- package/dist/stepindicator/theme.d.ts +246 -0
- package/dist/stepindicator/theme.js +103 -0
- package/dist/stepper/BreadcrumbStepper.svelte +15 -11
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +9 -9
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +13 -11
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +15 -13
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +9 -9
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +9 -10
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/theme.d.ts +303 -261
- package/dist/stepper/theme.js +198 -186
- package/dist/table/Table.svelte +8 -6
- package/dist/table/Table.svelte.d.ts +2 -2
- package/dist/table/TableBody.svelte +6 -2
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +7 -4
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +8 -5
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +8 -5
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +7 -4
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +35 -30
- package/dist/table/TableSearch.svelte.d.ts +8 -8
- package/dist/table/index.d.ts +8 -9
- package/dist/table/index.js +8 -9
- package/dist/table/theme.d.ts +192 -4
- package/dist/table/theme.js +68 -4
- package/dist/tabs/TabItem.svelte +8 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +9 -6
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/index.d.ts +3 -4
- package/dist/tabs/index.js +3 -4
- package/dist/tabs/theme.d.ts +4 -0
- package/dist/theme/ThemeProvider.svelte +30 -0
- package/dist/theme/ThemeProvider.svelte.d.ts +17 -0
- package/dist/theme/index.d.ts +0 -10293
- package/dist/theme/index.js +2 -119
- package/dist/theme/themeUtils.d.ts +2 -0
- package/dist/theme/themeUtils.js +6 -0
- package/dist/timeline/Activity.svelte +6 -3
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +15 -11
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +11 -5
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +13 -8
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +6 -2
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +13 -9
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/index.d.ts +7 -8
- package/dist/timeline/index.js +7 -8
- package/dist/timeline/theme.d.ts +25 -15
- package/dist/timeline/theme.js +3 -3
- package/dist/toast/Toast.svelte +10 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/index.d.ts +2 -3
- package/dist/toast/index.js +2 -3
- package/dist/toast/theme.d.ts +2 -0
- package/dist/toolbar/Toolbar.svelte +8 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +6 -2
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +6 -2
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/index.d.ts +4 -5
- package/dist/toolbar/index.js +4 -5
- package/dist/toolbar/theme.d.ts +4 -0
- package/dist/tooltip/Tooltip.svelte +7 -3
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +2 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/theme.d.ts +2 -0
- package/dist/types.d.ts +37 -29
- package/dist/types.js +1 -1
- package/dist/typography/anchor/A.svelte +7 -3
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +2 -3
- package/dist/typography/anchor/index.js +2 -3
- package/dist/typography/anchor/theme.d.ts +1 -0
- package/dist/typography/blockquote/Blockquote.svelte +6 -2
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +1 -0
- package/dist/typography/descriptionlist/DescriptionList.svelte +7 -3
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +2 -3
- package/dist/typography/descriptionlist/index.js +2 -3
- package/dist/typography/descriptionlist/theme.d.ts +1 -0
- package/dist/typography/heading/Heading.svelte +7 -3
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +2 -3
- package/dist/typography/heading/index.js +2 -3
- package/dist/typography/heading/theme.d.ts +1 -0
- package/dist/typography/hr/Hr.svelte +10 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/index.d.ts +2 -3
- package/dist/typography/hr/index.js +2 -3
- package/dist/typography/hr/theme.d.ts +2 -0
- package/dist/typography/img/EnhancedImg.svelte +10 -6
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +10 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/index.d.ts +3 -4
- package/dist/typography/img/index.js +3 -4
- package/dist/typography/img/theme.d.ts +2 -0
- package/dist/typography/layout/Layout.svelte +6 -2
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +2 -3
- package/dist/typography/layout/index.js +2 -3
- package/dist/typography/layout/theme.d.ts +1 -0
- package/dist/typography/list/Li.svelte +6 -3
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +6 -2
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/index.d.ts +3 -4
- package/dist/typography/list/index.js +3 -4
- package/dist/typography/list/theme.d.ts +1 -0
- package/dist/typography/mark/Mark.svelte +6 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +2 -3
- package/dist/typography/mark/index.js +2 -3
- package/dist/typography/mark/theme.d.ts +1 -0
- package/dist/typography/paragraph/P.svelte +6 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +2 -3
- package/dist/typography/paragraph/index.js +2 -3
- package/dist/typography/paragraph/theme.d.ts +1 -0
- package/dist/typography/secondary/Secondary.svelte +6 -2
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +2 -3
- package/dist/typography/secondary/index.js +2 -3
- package/dist/typography/secondary/theme.d.ts +1 -0
- package/dist/typography/span/Span.svelte +6 -2
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +2 -3
- package/dist/typography/span/index.js +2 -3
- package/dist/typography/span/theme.d.ts +1 -0
- 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 +6 -2
- package/dist/video/Video.svelte.d.ts +1 -1
- package/dist/video/index.d.ts +1 -2
- package/dist/video/index.js +1 -2
- package/package.json +10 -12
- package/dist/chart/Chart.svelte +0 -45
- package/dist/chart/Chart.svelte.d.ts +0 -13
- package/dist/chart/chart.css +0 -166
- package/dist/chart/index.d.ts +0 -1
- package/dist/chart/index.js +0 -1
- package/dist/forms/button-toggle/button-toggle.txt +0 -25
- package/dist/theme/Theme.svelte +0 -60
- package/dist/theme/Theme.svelte.d.ts +0 -12
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
import { canChangeSlide } from "./CarouselSlide";
|
|
5
5
|
import { carousel } from "./theme";
|
|
6
6
|
import { type CarouselProps, type State, Slide, cn } from "..";
|
|
7
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
const SLIDE_DURATION_RATIO = 0.25;
|
|
9
10
|
|
|
10
11
|
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();
|
|
11
12
|
|
|
13
|
+
const theme = getTheme("carousel");
|
|
14
|
+
|
|
12
15
|
const { set, subscribe, update } = writable<State>({ images, index: index ?? 0, forward: true, slideDuration, lastSlideChange: new Date() });
|
|
13
16
|
|
|
14
17
|
setContext("state", {
|
|
@@ -166,7 +169,7 @@
|
|
|
166
169
|
<!-- The move listeners go here, so things keep working if the touch strays out of the element. -->
|
|
167
170
|
<svelte:document onmousemove={onDragMove} onmouseup={onDragStop} ontouchmove={onDragMove} ontouchend={onDragStop} />
|
|
168
171
|
<div bind:this={carouselDiv} class={cn("relative", divClass)} onmousedown={onDragStart} ontouchstart={onDragStart} onmousemove={onDragMove} onmouseup={onDragStop} ontouchmove={onDragMove} ontouchend={onDragStop} role="button" aria-label={ariaLabel} tabindex="0">
|
|
169
|
-
<div {...restProps} class={cn(carousel(), activeDragGesture === undefined ? "transition-transform" : "", className)} {@attach loop}>
|
|
172
|
+
<div {...restProps} class={cn(carousel(), activeDragGesture === undefined ? "transition-transform" : "", className, theme)} {@attach loop}>
|
|
170
173
|
{#if slide}
|
|
171
174
|
{@render slide({ index, Slide })}
|
|
172
175
|
{:else}
|
|
@@ -180,7 +183,7 @@
|
|
|
180
183
|
@component
|
|
181
184
|
[Go to docs](https://flowbite-svelte.com/)
|
|
182
185
|
## Type
|
|
183
|
-
[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#L405)
|
|
184
187
|
## Props
|
|
185
188
|
@prop children
|
|
186
189
|
@prop slide
|
|
@@ -2,7 +2,7 @@ import { type CarouselProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [CarouselProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L405)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop slide
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
|
-
import {
|
|
4
|
+
import { carouselIndicators, type CarouselIndicatorsTheme } from "./theme";
|
|
5
5
|
import { Indicator, type IndicatorsProps, type State, cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, activeClass, inactiveClass, position = "bottom", class: className, ...restProps }: IndicatorsProps = $props();
|
|
8
9
|
|
|
10
|
+
const theme = getTheme("indicators");
|
|
11
|
+
|
|
9
12
|
const state = getContext<Writable<State>>("state");
|
|
10
|
-
const { base, indicator } = $derived(
|
|
13
|
+
const { base, indicator } = $derived(carouselIndicators({ position }));
|
|
11
14
|
|
|
12
15
|
function goToIndex(newIndex: number) {
|
|
13
16
|
state.update((_state) => {
|
|
@@ -23,14 +26,14 @@
|
|
|
23
26
|
}
|
|
24
27
|
</script>
|
|
25
28
|
|
|
26
|
-
<div class={cn(base(), className)} {...restProps}>
|
|
29
|
+
<div class={cn(base(), className, (theme as CarouselIndicatorsTheme)?.base)} {...restProps}>
|
|
27
30
|
{#each $state.images as _, idx}
|
|
28
31
|
{@const selected = $state.index === idx}
|
|
29
32
|
<button onclick={() => goToIndex(idx)}>
|
|
30
33
|
{#if children}
|
|
31
34
|
{@render children({ selected, index: idx })}
|
|
32
35
|
{:else}
|
|
33
|
-
<Indicator class={cn(indicator({ selected }), selected ? activeClass : inactiveClass)} />
|
|
36
|
+
<Indicator class={cn(indicator({ selected }), selected ? activeClass : inactiveClass, (theme as CarouselIndicatorsTheme)?.indicator)} />
|
|
34
37
|
{/if}
|
|
35
38
|
</button>
|
|
36
39
|
{/each}
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
@component
|
|
41
44
|
[Go to docs](https://flowbite-svelte.com/)
|
|
42
45
|
## Type
|
|
43
|
-
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
46
|
+
[IndicatorsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L419)
|
|
44
47
|
## Props
|
|
45
48
|
@prop children
|
|
46
49
|
@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#L419)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeClass
|
|
@@ -11,6 +11,6 @@ import { type IndicatorsProps } from "..";
|
|
|
11
11
|
* @prop class: className
|
|
12
12
|
* @prop ...restProps
|
|
13
13
|
*/
|
|
14
|
-
declare const
|
|
15
|
-
type
|
|
16
|
-
export default
|
|
14
|
+
declare const CarouselIndicators: import("svelte").Component<IndicatorsProps, {}, "">;
|
|
15
|
+
type CarouselIndicators = ReturnType<typeof CarouselIndicators>;
|
|
16
|
+
export default CarouselIndicators;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { controlButton } from "./theme";
|
|
3
3
|
import { type ControlButtonProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { children, forward, name, class: className, spanClass, ...restProps }: ControlButtonProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme("carouselButton");
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
|
-
<button type="button" class={cn(controlButton({ forward }), className)} {...restProps}>
|
|
11
|
+
<button type="button" class={cn(controlButton({ forward }), className, theme)} {...restProps}>
|
|
9
12
|
{#if children}
|
|
10
13
|
{@render children()}
|
|
11
14
|
{:else}
|
|
@@ -30,7 +33,7 @@
|
|
|
30
33
|
@component
|
|
31
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
35
|
## Type
|
|
33
|
-
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[ControlButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L426)
|
|
34
37
|
## Props
|
|
35
38
|
@prop children
|
|
36
39
|
@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#L426)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop forward
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
import type { Writable } from "svelte/store";
|
|
4
4
|
import { canChangeSlide } from "./CarouselSlide";
|
|
5
5
|
import { type State, type ControlsProps, ControlButton, cn } from "..";
|
|
6
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, class: className, ...restProps }: ControlsProps = $props();
|
|
8
9
|
|
|
10
|
+
const theme = getTheme("controls");
|
|
11
|
+
|
|
9
12
|
const state = getContext<Writable<State>>("state");
|
|
10
13
|
const { update } = state;
|
|
11
14
|
|
|
@@ -42,15 +45,15 @@
|
|
|
42
45
|
{#if children}
|
|
43
46
|
{@render children(changeSlide)}
|
|
44
47
|
{:else}
|
|
45
|
-
<ControlButton name="Previous" forward={false} onclick={() => changeSlide(false)} class={cn(className)} {...restProps} />
|
|
46
|
-
<ControlButton name="Next" forward={true} onclick={() => changeSlide(true)} class={cn(className)} {...restProps} />
|
|
48
|
+
<ControlButton name="Previous" forward={false} onclick={() => changeSlide(false)} class={cn(className, theme)} {...restProps} />
|
|
49
|
+
<ControlButton name="Next" forward={true} onclick={() => changeSlide(true)} class={cn(className, theme)} {...restProps} />
|
|
47
50
|
{/if}
|
|
48
51
|
|
|
49
52
|
<!--
|
|
50
53
|
@component
|
|
51
54
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
55
|
## Type
|
|
53
|
-
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
56
|
+
[ControlsProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L432)
|
|
54
57
|
## Props
|
|
55
58
|
@prop children
|
|
56
59
|
@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#L432)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
import { fly } from "svelte/transition";
|
|
5
5
|
import { slide } from "./theme";
|
|
6
6
|
import { type SlideProps, type State, cn } from "..";
|
|
7
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
const state = getContext<Writable<State>>("state");
|
|
9
10
|
|
|
10
11
|
let { image, transition, class: className, ...restProps }: SlideProps = $props();
|
|
11
12
|
|
|
13
|
+
const theme = getTheme("slide");
|
|
14
|
+
|
|
12
15
|
let transitionSlideIn = $derived({
|
|
13
16
|
x: $state.forward ? "100%" : "-100%",
|
|
14
17
|
opacity: 1,
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
duration: $state.slideDuration
|
|
26
29
|
});
|
|
27
30
|
|
|
28
|
-
let imgClass = cn(slide(), className);
|
|
31
|
+
let imgClass = cn(slide(), className, theme);
|
|
29
32
|
</script>
|
|
30
33
|
|
|
31
34
|
{#if transition}
|
|
@@ -42,7 +45,7 @@
|
|
|
42
45
|
@component
|
|
43
46
|
[Go to docs](https://flowbite-svelte.com/)
|
|
44
47
|
## Type
|
|
45
|
-
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
48
|
+
[SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L449)
|
|
46
49
|
## Props
|
|
47
50
|
@prop image
|
|
48
51
|
@prop transition
|
|
@@ -2,7 +2,7 @@ import { type SlideProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SlideProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L449)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop image
|
|
8
8
|
* @prop transition
|
|
@@ -2,17 +2,20 @@
|
|
|
2
2
|
import { thumbnail } from "./theme";
|
|
3
3
|
import { type ThumbnailProps, cn } from "..";
|
|
4
4
|
import clsx from "clsx";
|
|
5
|
+
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { selected, class: className, ...restProps }: ThumbnailProps = $props();
|
|
8
|
+
|
|
9
|
+
const theme = getTheme("thumbnail");
|
|
7
10
|
</script>
|
|
8
11
|
|
|
9
|
-
<img {...restProps} class={thumbnail({ selected, class: clsx(className) })} />
|
|
12
|
+
<img {...restProps} class={cn(thumbnail({ selected, class: clsx(className) }), theme)} />
|
|
10
13
|
|
|
11
14
|
<!--
|
|
12
15
|
@component
|
|
13
16
|
[Go to docs](https://flowbite-svelte.com/)
|
|
14
17
|
## Type
|
|
15
|
-
[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#L436)
|
|
16
19
|
## Props
|
|
17
20
|
@prop selected
|
|
18
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#L436)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop selected
|
|
8
8
|
* @prop class: className
|
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
import { thumbnails } from "./theme";
|
|
5
5
|
import { type ThumbnailsProps, type State, Thumbnail, cn } from "..";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
let { children, images = [], index = $bindable(), ariaLabel = "Click to view image", imgClass, throttleDelay = 650, class: className }: ThumbnailsProps = $props();
|
|
9
10
|
|
|
11
|
+
const theme = getTheme("thumbnails");
|
|
12
|
+
|
|
10
13
|
const state = getContext<Writable<State>>("state");
|
|
11
14
|
if (!state) {
|
|
12
15
|
console.error("State is undefined. Make sure to provide state context or pass it as a prop.");
|
|
@@ -47,7 +50,7 @@
|
|
|
47
50
|
});
|
|
48
51
|
</script>
|
|
49
52
|
|
|
50
|
-
<div class={cn(thumbnails(), className)}>
|
|
53
|
+
<div class={cn(thumbnails(), className, theme)}>
|
|
51
54
|
{#each images as image, idx}
|
|
52
55
|
{@const selected = index === idx}
|
|
53
56
|
<button onclick={() => btnClick(idx)} aria-label={ariaLabel}>
|
|
@@ -64,7 +67,7 @@
|
|
|
64
67
|
@component
|
|
65
68
|
[Go to docs](https://flowbite-svelte.com/)
|
|
66
69
|
## Type
|
|
67
|
-
[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#L440)
|
|
68
71
|
## Props
|
|
69
72
|
@prop children
|
|
70
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#L440)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop images = []
|
package/dist/carousel/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
export { default as
|
|
5
|
-
export { carousel } from "./theme";
|
|
4
|
+
export { default as CarouselIndicators } from "./CarouselIndicators.svelte";
|
|
5
|
+
export { carousel, type CarouselTheme, carouselIndicators, type CarouselIndicatorsTheme, controlButton, type ControlButtonTheme, thumbnails, type ThumbnailsTheme, thumbnail, type ThumbnailTheme, slide, type SlideTheme } 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/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
export { default as
|
|
5
|
-
export { carousel } from "./theme";
|
|
4
|
+
export { default as CarouselIndicators } from "./CarouselIndicators.svelte";
|
|
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,7 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
2
|
export type CarouselVariants = VariantProps<typeof carousel>;
|
|
3
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>>;
|
|
4
|
-
export
|
|
4
|
+
export type CarouselTheme = string;
|
|
5
|
+
export declare const carouselIndicators: import("tailwind-variants").TVReturnType<{
|
|
5
6
|
selected: {
|
|
6
7
|
true: {
|
|
7
8
|
indicator: string;
|
|
@@ -71,6 +72,8 @@ export declare const indicators: import("tailwind-variants").TVReturnType<{
|
|
|
71
72
|
base: string;
|
|
72
73
|
indicator: string;
|
|
73
74
|
}, undefined, unknown, unknown, undefined>>;
|
|
75
|
+
export type CarouselIndicatorsSlots = keyof typeof carouselIndicators.slots;
|
|
76
|
+
export type CarouselIndicatorsTheme = Partial<Record<CarouselIndicatorsSlots, string>>;
|
|
74
77
|
export declare const controlButton: import("tailwind-variants").TVReturnType<{
|
|
75
78
|
forward: {
|
|
76
79
|
true: string;
|
|
@@ -87,7 +90,9 @@ export declare const controlButton: import("tailwind-variants").TVReturnType<{
|
|
|
87
90
|
false: string;
|
|
88
91
|
};
|
|
89
92
|
}, undefined, "flex absolute top-0 z-30 justify-center items-center px-4 h-full group focus:outline-hidden text-white dark:text-gray-300", unknown, unknown, undefined>>;
|
|
93
|
+
export type ControlButtonTheme = string;
|
|
90
94
|
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>>;
|
|
95
|
+
export type ThumbnailsTheme = string;
|
|
91
96
|
export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
92
97
|
selected: {
|
|
93
98
|
true: string;
|
|
@@ -104,4 +109,6 @@ export declare const thumbnail: import("tailwind-variants").TVReturnType<{
|
|
|
104
109
|
false: string;
|
|
105
110
|
};
|
|
106
111
|
}, undefined, "", unknown, unknown, undefined>>;
|
|
112
|
+
export type ThumbnailTheme = string;
|
|
107
113
|
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>>;
|
|
114
|
+
export type SlideTheme = string;
|
package/dist/carousel/theme.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { select } from "../forms/select";
|
|
2
1
|
import { tv } from "tailwind-variants";
|
|
3
2
|
export const carousel = tv({
|
|
4
3
|
base: "grid overflow-hidden relative rounded-lg h-56 sm:h-64 xl:h-80 2xl:h-96",
|
|
@@ -6,7 +5,7 @@ export const carousel = tv({
|
|
|
6
5
|
compoundVariants: [],
|
|
7
6
|
defaultVariants: {}
|
|
8
7
|
});
|
|
9
|
-
export const
|
|
8
|
+
export const carouselIndicators = tv({
|
|
10
9
|
slots: {
|
|
11
10
|
base: "absolute start-1/2 z-30 flex -translate-x-1/2 space-x-3 rtl:translate-x-1/2 rtl:space-x-reverse",
|
|
12
11
|
indicator: "bg-gray-100 hover:bg-gray-300"
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import Button from "../buttons/Button.svelte";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import type
|
|
4
|
+
import { type ClipboardProps, cn } from "..";
|
|
5
5
|
import { clipboard } from "./theme";
|
|
6
6
|
import type { MouseEventHandler } from "svelte/elements";
|
|
7
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
let { children, embedded = false, value = $bindable(""), success = $bindable(false), onclick, class: className = "", ...restProps }: ClipboardProps = $props();
|
|
9
10
|
|
|
11
|
+
const theme = getTheme("clipboard");
|
|
12
|
+
|
|
10
13
|
const copyToClipboard: MouseEventHandler<HTMLButtonElement> = async (ev) => {
|
|
11
14
|
onclick?.(ev);
|
|
12
15
|
if (ev.defaultPrevented) return;
|
|
@@ -35,7 +38,7 @@
|
|
|
35
38
|
};
|
|
36
39
|
</script>
|
|
37
40
|
|
|
38
|
-
<Button onclick={copyToClipboard} {...restProps} class={clipboard({ embedded, class: clsx(className) })}>
|
|
41
|
+
<Button onclick={copyToClipboard} {...restProps} class={cn(clipboard({ embedded, class: clsx(className) }), theme)}>
|
|
39
42
|
{@render children?.(success)}
|
|
40
43
|
</Button>
|
|
41
44
|
|
|
@@ -43,7 +46,7 @@
|
|
|
43
46
|
@component
|
|
44
47
|
[Go to docs](https://flowbite-svelte.com/)
|
|
45
48
|
## Type
|
|
46
|
-
[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#L461)
|
|
47
50
|
## Props
|
|
48
51
|
@prop children
|
|
49
52
|
@prop embedded = false
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
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#L461)
|
|
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 } from "./theme";
|
|
2
|
+
export { clipboard, type ClipboardTheme } from "./theme";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { darkmode } from ".";
|
|
3
3
|
import { type DarkmodeProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
// const THEME_PREFERENCE_KEY = 'color-theme';
|
|
6
7
|
let { class: className, lightIcon, darkIcon, size = "md", ariaLabel = "Dark mode", ...restProps }: DarkmodeProps = $props();
|
|
7
8
|
|
|
9
|
+
const theme = getTheme("darkmode");
|
|
10
|
+
|
|
8
11
|
const sizes = {
|
|
9
12
|
sm: "w-4 h-4",
|
|
10
13
|
md: "w-5 h-5",
|
|
@@ -30,7 +33,7 @@
|
|
|
30
33
|
</script>
|
|
31
34
|
</svelte:head>
|
|
32
35
|
|
|
33
|
-
<button onclick={toggleTheme} aria-label={ariaLabel} type="button" {...restProps} class={cn(darkmode(), className)} tabindex={0}>
|
|
36
|
+
<button onclick={toggleTheme} aria-label={ariaLabel} type="button" {...restProps} class={cn(darkmode(), className, theme)} tabindex={0}>
|
|
34
37
|
<span class="hidden dark:block">
|
|
35
38
|
{#if lightIcon}
|
|
36
39
|
{@render lightIcon()}
|
|
@@ -60,7 +63,7 @@
|
|
|
60
63
|
@component
|
|
61
64
|
[Go to docs](https://flowbite-svelte.com/)
|
|
62
65
|
## Type
|
|
63
|
-
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
66
|
+
[DarkmodeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L470)
|
|
64
67
|
## Props
|
|
65
68
|
@prop class: className
|
|
66
69
|
@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#L470)
|
|
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 } from "./theme";
|
|
2
|
+
export { darkmode, type DarkModeTheme } from "./theme";
|
package/dist/darkmode/theme.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
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>>;
|
|
2
|
+
export type DarkModeTheme = string;
|