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
package/dist/timeline/theme.js
CHANGED
|
@@ -2,7 +2,7 @@ import { tv } from "tailwind-variants";
|
|
|
2
2
|
export const activity = tv({
|
|
3
3
|
base: "relative border-s border-gray-200 dark:border-gray-700"
|
|
4
4
|
});
|
|
5
|
-
export const
|
|
5
|
+
export const activityItem = tv({
|
|
6
6
|
slots: {
|
|
7
7
|
li: "mb-10 ms-6",
|
|
8
8
|
span: "flex absolute -start-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900",
|
|
@@ -21,7 +21,7 @@ export const group = tv({
|
|
|
21
21
|
ol: "mt-3 divide-y divider-gray-200 dark:divide-gray-700"
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
export const
|
|
24
|
+
export const groupItem = tv({
|
|
25
25
|
slots: {
|
|
26
26
|
a: "block items-center p-3 sm:flex hover:bg-gray-100 dark:hover:bg-gray-700",
|
|
27
27
|
img: "me-3 mb-3 w-12 h-12 rounded-full sm:mb-0",
|
|
@@ -45,7 +45,7 @@ export const timeline = tv({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
// export type TimelineItemVariants = VariantProps<typeof timelineitem>;
|
|
48
|
-
export const
|
|
48
|
+
export const timelineItem = tv({
|
|
49
49
|
slots: {
|
|
50
50
|
li: "",
|
|
51
51
|
div: "",
|
package/dist/toast/Toast.svelte
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { CloseButton } from "..";
|
|
3
3
|
import type { ParamsType } from "../types";
|
|
4
|
-
import { toast } from ".";
|
|
4
|
+
import { toast, type ToastTheme } from ".";
|
|
5
5
|
import type { ToastProps } from "../types";
|
|
6
6
|
import { fly } from "svelte/transition";
|
|
7
|
+
import { cn } from "..";
|
|
8
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
9
|
|
|
8
10
|
let { children, icon, toastStatus = $bindable(true), dismissable = true, color = "primary", position, iconClass, contentClass, align = true, params, transition = fly, class: className, onclose, ...restProps }: ToastProps = $props();
|
|
9
11
|
|
|
12
|
+
const theme = getTheme("toast");
|
|
13
|
+
|
|
10
14
|
const { base, icon: iconVariants, content, close } = $derived(toast({ color, position, align }));
|
|
11
15
|
|
|
12
16
|
function handleClose() {
|
|
@@ -16,19 +20,19 @@
|
|
|
16
20
|
</script>
|
|
17
21
|
|
|
18
22
|
{#if toastStatus}
|
|
19
|
-
<div role="alert" transition:transition={params as ParamsType} {...restProps} class={base({ class: className })}>
|
|
23
|
+
<div role="alert" transition:transition={params as ParamsType} {...restProps} class={cn(base({ class: className }), (theme as ToastTheme)?.base)}>
|
|
20
24
|
{#if icon}
|
|
21
|
-
<div class={iconVariants({ class: iconClass })}>
|
|
25
|
+
<div class={cn(iconVariants({ class: iconClass }), (theme as ToastTheme)?.icon)}>
|
|
22
26
|
{@render icon()}
|
|
23
27
|
</div>
|
|
24
28
|
{/if}
|
|
25
29
|
|
|
26
|
-
<div class={content({ class: contentClass })}>
|
|
30
|
+
<div class={cn(content({ class: contentClass }), (theme as ToastTheme)?.content)}>
|
|
27
31
|
{@render children()}
|
|
28
32
|
</div>
|
|
29
33
|
|
|
30
34
|
{#if dismissable}
|
|
31
|
-
<CloseButton class={close()} ariaLabel="Remove toast" {color} onclick={handleClose} />
|
|
35
|
+
<CloseButton class={cn(close(), (theme as ToastTheme)?.close)} ariaLabel="Remove toast" {color} onclick={handleClose} />
|
|
32
36
|
{/if}
|
|
33
37
|
</div>
|
|
34
38
|
{/if}
|
|
@@ -37,7 +41,7 @@
|
|
|
37
41
|
@component
|
|
38
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
39
43
|
## Type
|
|
40
|
-
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1821)
|
|
41
45
|
## Props
|
|
42
46
|
@prop children
|
|
43
47
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { ToastProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToastProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1821)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
package/dist/toast/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Toast, toast };
|
|
1
|
+
export { default as Toast } from "./Toast.svelte";
|
|
2
|
+
export { toast, type ToastTheme } from "./theme";
|
package/dist/toast/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Toast, toast };
|
|
1
|
+
export { default as Toast } from "./Toast.svelte";
|
|
2
|
+
export { toast } from "./theme";
|
package/dist/toast/theme.d.ts
CHANGED
|
@@ -319,3 +319,5 @@ export declare const toast: import("tailwind-variants").TVReturnType<{
|
|
|
319
319
|
content: string;
|
|
320
320
|
close: string;
|
|
321
321
|
}, undefined, unknown, unknown, undefined>>;
|
|
322
|
+
export type ToastSlots = keyof typeof toast.slots;
|
|
323
|
+
export type ToastTheme = Partial<Record<ToastSlots, string>>;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
|
-
import { toolbar } from "./";
|
|
4
|
+
import { toolbar, type ToolbarTheme } from "./";
|
|
5
5
|
import type { ToolbarProps } from "../types";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
+
import { cn } from "..";
|
|
8
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
9
|
|
|
8
10
|
let { children, end, color, embedded, class: className, ...restProps }: ToolbarProps = $props();
|
|
9
11
|
|
|
12
|
+
const theme = getTheme("toolbar");
|
|
13
|
+
|
|
10
14
|
const separators = writable(false);
|
|
11
15
|
setContext("toolbar", separators);
|
|
12
16
|
|
|
@@ -25,8 +29,8 @@
|
|
|
25
29
|
// let divClass: string = twMerge('flex justify-between items-center', !embedded && 'py-2 px-3', className);
|
|
26
30
|
</script>
|
|
27
31
|
|
|
28
|
-
<div {...restProps} class={base({ class: clsx(className) })}>
|
|
29
|
-
<div class={content()}>
|
|
32
|
+
<div {...restProps} class={cn(base({ class: clsx(className) }), (theme as ToolbarTheme)?.base)}>
|
|
33
|
+
<div class={cn(content(), (theme as ToolbarTheme)?.content)}>
|
|
30
34
|
{@render children?.()}
|
|
31
35
|
</div>
|
|
32
36
|
{#if end}
|
|
@@ -38,7 +42,7 @@
|
|
|
38
42
|
@component
|
|
39
43
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
44
|
## Type
|
|
41
|
-
[ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
45
|
+
[ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1132)
|
|
42
46
|
## Props
|
|
43
47
|
@prop children
|
|
44
48
|
@prop end
|
|
@@ -2,7 +2,7 @@ import type { ToolbarProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToolbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1132)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop end
|
|
@@ -3,10 +3,14 @@
|
|
|
3
3
|
import { toolbarButton } from ".";
|
|
4
4
|
import type { ToolbarButtonProps } from "../types";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
+
import { cn } from "..";
|
|
7
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
8
|
|
|
7
9
|
const background = getContext("background");
|
|
8
10
|
let { children, color, name, "aria-label": ariaLabel, size, class: className, ...restProps }: ToolbarButtonProps = $props();
|
|
9
11
|
|
|
12
|
+
const theme = getTheme("toolbarButton");
|
|
13
|
+
|
|
10
14
|
const buttonClass = $derived(
|
|
11
15
|
toolbarButton({
|
|
12
16
|
color,
|
|
@@ -18,7 +22,7 @@
|
|
|
18
22
|
</script>
|
|
19
23
|
|
|
20
24
|
{#if restProps.href === undefined}
|
|
21
|
-
<button type="button" {...restProps} class={buttonClass} aria-label={ariaLabel ?? name}>
|
|
25
|
+
<button type="button" {...restProps} class={cn(buttonClass, theme)} aria-label={ariaLabel ?? name}>
|
|
22
26
|
{#if name}<span class="sr-only">{name}</span>{/if}
|
|
23
27
|
{@render children?.()}
|
|
24
28
|
</button>
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
@component
|
|
34
38
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
39
|
## Type
|
|
36
|
-
[ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
40
|
+
[ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1138)
|
|
37
41
|
## Props
|
|
38
42
|
@prop children
|
|
39
43
|
@prop color
|
|
@@ -2,7 +2,7 @@ import type { ToolbarButtonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToolbarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1138)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color
|
|
@@ -4,16 +4,20 @@
|
|
|
4
4
|
import { toolbarGroup } from ".";
|
|
5
5
|
import type { ToolbarGroupProps } from "../types";
|
|
6
6
|
import clsx from "clsx";
|
|
7
|
+
import { cn } from "..";
|
|
8
|
+
import { getTheme } from "../theme/themeUtils";
|
|
7
9
|
|
|
8
10
|
let { children, spacing, padding, position = "middle", class: className, ...restProps }: ToolbarGroupProps = $props();
|
|
9
11
|
|
|
12
|
+
const theme = getTheme("toolbarGroup");
|
|
13
|
+
|
|
10
14
|
const groupClass = $derived(toolbarGroup({ spacing, padding, position, class: clsx(className) }));
|
|
11
15
|
|
|
12
16
|
const options: Writable<boolean> = getContext("toolbar");
|
|
13
17
|
if (options) $options = true;
|
|
14
18
|
</script>
|
|
15
19
|
|
|
16
|
-
<div {...restProps} class={groupClass}>
|
|
20
|
+
<div {...restProps} class={cn(groupClass, theme)}>
|
|
17
21
|
{@render children?.()}
|
|
18
22
|
</div>
|
|
19
23
|
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
@component
|
|
22
26
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
27
|
## Type
|
|
24
|
-
[ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
28
|
+
[ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1136)
|
|
25
29
|
## Props
|
|
26
30
|
@prop children
|
|
27
31
|
@prop spacing
|
|
@@ -2,7 +2,7 @@ import type { ToolbarGroupProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ToolbarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1136)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop spacing
|
package/dist/toolbar/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { Toolbar, toolbar, ToolbarButton, toolbarButton, ToolbarGroup, toolbarGroup };
|
|
1
|
+
export { default as Toolbar } from "./Toolbar.svelte";
|
|
2
|
+
export { default as ToolbarButton } from "./ToolbarButton.svelte";
|
|
3
|
+
export { default as ToolbarGroup } from "./ToolbarGroup.svelte";
|
|
4
|
+
export { toolbar, toolbarGroup, toolbarButton, type ToolbarTheme, type ToolbarGroupTheme, type ToolbarButtonTheme } from "./theme";
|
package/dist/toolbar/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { Toolbar, toolbar, ToolbarButton, toolbarButton, ToolbarGroup, toolbarGroup };
|
|
1
|
+
export { default as Toolbar } from "./Toolbar.svelte";
|
|
2
|
+
export { default as ToolbarButton } from "./ToolbarButton.svelte";
|
|
3
|
+
export { default as ToolbarGroup } from "./ToolbarGroup.svelte";
|
|
4
|
+
export { toolbar, toolbarGroup, toolbarButton } from "./theme";
|
package/dist/toolbar/theme.d.ts
CHANGED
|
@@ -196,6 +196,8 @@ export declare const toolbar: import("tailwind-variants").TVReturnType<{
|
|
|
196
196
|
base: string;
|
|
197
197
|
content: string;
|
|
198
198
|
}, undefined, unknown, unknown, undefined>>;
|
|
199
|
+
export type ToolbarSlots = keyof typeof toolbar.slots;
|
|
200
|
+
export type ToolbarTheme = Partial<Record<ToolbarSlots, string>>;
|
|
199
201
|
export type ToolbarGroupVariants = VariantProps<typeof toolbarGroup>;
|
|
200
202
|
export declare const toolbarGroup: import("tailwind-variants").TVReturnType<{
|
|
201
203
|
spacing: {
|
|
@@ -243,6 +245,7 @@ export declare const toolbarGroup: import("tailwind-variants").TVReturnType<{
|
|
|
243
245
|
last: string;
|
|
244
246
|
};
|
|
245
247
|
}, undefined, "flex items-center", unknown, unknown, undefined>>;
|
|
248
|
+
export type ToolbarGroupTheme = string;
|
|
246
249
|
export type ToolbarButtonVariants = VariantProps<typeof toolbarButton>;
|
|
247
250
|
export declare const toolbarButton: import("tailwind-variants").TVReturnType<{
|
|
248
251
|
color: {
|
|
@@ -317,3 +320,4 @@ export declare const toolbarButton: import("tailwind-variants").TVReturnType<{
|
|
|
317
320
|
false: string;
|
|
318
321
|
};
|
|
319
322
|
}, undefined, "focus:outline-hidden whitespace-normal", unknown, unknown, undefined>>;
|
|
323
|
+
export type ToolbarButtonTheme = string;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import Popper from "../utils/Popper.svelte";
|
|
4
|
-
import { tooltip } from "./theme";
|
|
4
|
+
import { tooltip, type TooltipTheme } from "./theme";
|
|
5
5
|
import type { TooltipProps, TriggeredToggleEvent } from "..";
|
|
6
|
+
import { cn } from "..";
|
|
7
|
+
import { getTheme } from "../theme/themeUtils";
|
|
6
8
|
|
|
7
9
|
let { type = "dark", color = undefined, trigger = "hover", arrow = true, children, placement = "top", onbeforetoggle: _onbeforetoggle, class: className, isOpen = $bindable(false), ...restProps }: TooltipProps = $props();
|
|
8
10
|
|
|
11
|
+
const theme = getTheme("tooltip");
|
|
12
|
+
|
|
9
13
|
let { base } = $derived(tooltip({ color, type }));
|
|
10
14
|
|
|
11
15
|
function onbeforetoggle(ev: TriggeredToggleEvent) {
|
|
@@ -18,7 +22,7 @@
|
|
|
18
22
|
}
|
|
19
23
|
</script>
|
|
20
24
|
|
|
21
|
-
<Popper {...restProps} bind:isOpen {placement} {trigger} {arrow} class={base({ class: clsx(className) })} {onbeforetoggle}>
|
|
25
|
+
<Popper {...restProps} bind:isOpen {placement} {trigger} {arrow} class={cn(base({ class: clsx(className) }), (theme as TooltipTheme)?.base)} {onbeforetoggle}>
|
|
22
26
|
<div class="pointer-events-none">{@render children()}</div>
|
|
23
27
|
</Popper>
|
|
24
28
|
|
|
@@ -26,7 +30,7 @@
|
|
|
26
30
|
@component
|
|
27
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
32
|
## Type
|
|
29
|
-
[TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1838)
|
|
30
34
|
## Props
|
|
31
35
|
@prop type = "dark"
|
|
32
36
|
@prop color = undefined
|
|
@@ -2,7 +2,7 @@ import type { TooltipProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [TooltipProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1838)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop type = "dark"
|
|
8
8
|
* @prop color = undefined
|
package/dist/tooltip/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Tooltip, tooltip };
|
|
1
|
+
export { default as Tooltip } from "./Tooltip.svelte";
|
|
2
|
+
export { tooltip, type TooltipTheme } from "./theme";
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { Tooltip, tooltip };
|
|
1
|
+
export { default as Tooltip } from "./Tooltip.svelte";
|
|
2
|
+
export { tooltip } from "./theme";
|
package/dist/tooltip/theme.d.ts
CHANGED
|
@@ -232,3 +232,5 @@ export declare const tooltip: import("tailwind-variants").TVReturnType<{
|
|
|
232
232
|
base: string;
|
|
233
233
|
arrowBase: string;
|
|
234
234
|
}, undefined, unknown, unknown, undefined>>;
|
|
235
|
+
export type TooltipSlots = keyof typeof tooltip.slots;
|
|
236
|
+
export type TooltipTheme = Partial<Record<TooltipSlots, string>>;
|
package/dist/types.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ import type { Component, Snippet } from "svelte";
|
|
|
5
5
|
import type { HTMLAnchorAttributes, HTMLAttributes, HTMLBlockquoteAttributes, HTMLButtonAttributes, HTMLDialogAttributes, HTMLImgAttributes, HTMLInputAttributes, HTMLLabelAttributes, HTMLLiAttributes, HTMLOlAttributes, HTMLSelectAttributes, HTMLSourceAttributes, HTMLTableAttributes, HTMLTdAttributes, HTMLTextareaAttributes, HTMLThAttributes, HTMLTrackAttributes, HTMLVideoAttributes, SVGAttributes, FullAutoFill } from "svelte/elements";
|
|
6
6
|
import { type Writable } from "svelte/store";
|
|
7
7
|
import type { BlurParams, EasingFunction, FadeParams, FlyParams, ScaleParams, SlideParams, TransitionConfig } from "svelte/transition";
|
|
8
|
-
import {
|
|
8
|
+
import { type VariantProps } from "tailwind-variants";
|
|
9
|
+
import type { Day } from "date-fns";
|
|
9
10
|
import type { DatepickerVariants } from "./datepicker/theme";
|
|
10
11
|
import type { IndicatorVariants } from "./indicator/theme";
|
|
11
12
|
import type { ListgroupItemVariants, ListgroupVariants } from "./list-group/theme";
|
|
@@ -14,12 +15,12 @@ import type { PopoverVariants } from "./popover/theme";
|
|
|
14
15
|
import type { SidebarVariants } from "./sidebar/theme";
|
|
15
16
|
import type { CardPlaceholderVariants, ImagePlaceholderVariants, ListPlaceholderVariants, SkeletonVariants, TextPlaceholderVariants, VideoPlaceholderVariants } from "./skeleton/theme";
|
|
16
17
|
import type { SpinnerVaraiants } from "./spinner/theme";
|
|
18
|
+
import type { StepIndicatorVariants } from "./stepindicator/theme";
|
|
17
19
|
import type { StepperVariants, ProgressStepperVariants, DetailedStepperVariants, VerticalStepperVariants, BreadcrumbStepperVariants, TimelineStepperVariants } from "./stepper/theme";
|
|
18
20
|
import type { TableVariants } from "./table/theme";
|
|
19
21
|
import type { TabsVaraints } from "./tabs/theme";
|
|
20
22
|
import type { PaginationItemVariants, PaginationVariants } from "./pagination/theme";
|
|
21
23
|
import type { ProgressbarVariants, ProgressradialVariants } from "./progress/theme";
|
|
22
|
-
import { baseThemes } from "./theme";
|
|
23
24
|
import { timeline } from "./timeline/theme";
|
|
24
25
|
import type { ToastVaraints } from "./toast/theme";
|
|
25
26
|
import type { ToolbarButtonVariants, ToolbarGroupVariants, ToolbarVariants } from "./toolbar/theme";
|
|
@@ -47,6 +48,7 @@ import type { MultiSelectVariants, SelectVariants } from "./forms/select/theme";
|
|
|
47
48
|
import type { ToggleVariants } from "./forms/toggle/theme";
|
|
48
49
|
import type { PhoneInputVariants } from "./forms/phoneinput/theme";
|
|
49
50
|
import type { ButtonToggleVariants } from "./forms/button-toggle/theme";
|
|
51
|
+
import type { TableSearchColor } from "./table/theme";
|
|
50
52
|
import type { AnchorVariants } from "./typography/anchor/theme";
|
|
51
53
|
import type { BlockquoteVariants } from "./typography/blockquote/theme";
|
|
52
54
|
import type { DescriptionListVariants } from "./typography/descriptionlist/theme";
|
|
@@ -56,15 +58,6 @@ import type { ListVariants } from "./typography/list/theme";
|
|
|
56
58
|
import type { ParagraphVariants } from "./typography/paragraph/theme";
|
|
57
59
|
import type { SpanVariants } from "./typography/span/theme";
|
|
58
60
|
import type { ClipboardVariants } from "./clipboard/theme";
|
|
59
|
-
export interface ThemeConfig {
|
|
60
|
-
slots?: Record<string, object | string>;
|
|
61
|
-
variants?: Record<string, object>;
|
|
62
|
-
compoundVariants?: Array<Record<string, object>>;
|
|
63
|
-
defaultVariants?: Record<string, object>;
|
|
64
|
-
}
|
|
65
|
-
export interface ThemeType {
|
|
66
|
-
[key: string]: ReturnType<typeof tv>;
|
|
67
|
-
}
|
|
68
61
|
export declare const xs = "xs";
|
|
69
62
|
export declare const sm = "sm";
|
|
70
63
|
export declare const md = "md";
|
|
@@ -422,7 +415,7 @@ export interface DatepickerProps extends DatepickerVariants, Omit<HTMLAttributes
|
|
|
422
415
|
availableFrom?: Date | null;
|
|
423
416
|
availableTo?: Date | null;
|
|
424
417
|
locale?: string;
|
|
425
|
-
firstDayOfWeek?:
|
|
418
|
+
firstDayOfWeek?: Day;
|
|
426
419
|
dateFormat?: Intl.DateTimeFormatOptions;
|
|
427
420
|
placeholder?: string;
|
|
428
421
|
disabled?: boolean;
|
|
@@ -441,6 +434,8 @@ export interface DatepickerProps extends DatepickerVariants, Omit<HTMLAttributes
|
|
|
441
434
|
monthColor?: ButtonProps["color"];
|
|
442
435
|
monthBtnSelected?: ClassValue;
|
|
443
436
|
monthBtn?: ClassValue;
|
|
437
|
+
translationLocale?: string;
|
|
438
|
+
elementRef?: HTMLInputElement;
|
|
444
439
|
}
|
|
445
440
|
export interface DeviceMockupProps {
|
|
446
441
|
children: Snippet;
|
|
@@ -913,20 +908,25 @@ export interface MegaMenuProps extends Omit<PopperProps, "children"> {
|
|
|
913
908
|
isOpen?: boolean;
|
|
914
909
|
}
|
|
915
910
|
export interface ModalProps extends ModalVariants, HTMLDialogAttributes {
|
|
916
|
-
|
|
917
|
-
|
|
911
|
+
onaction?: ({ action, data }: {
|
|
912
|
+
action: string;
|
|
913
|
+
data: FormData;
|
|
914
|
+
}) => any;
|
|
918
915
|
modal?: boolean;
|
|
916
|
+
form?: boolean;
|
|
919
917
|
autoclose?: boolean;
|
|
920
918
|
outsideclose?: boolean;
|
|
921
919
|
dismissable?: boolean;
|
|
922
920
|
permanent?: boolean;
|
|
921
|
+
focustrap?: boolean;
|
|
923
922
|
transition?: TransitionFunc;
|
|
924
923
|
params?: ParamsType;
|
|
924
|
+
header?: Snippet;
|
|
925
|
+
footer?: Snippet;
|
|
925
926
|
headerClass?: ClassValue;
|
|
926
927
|
bodyClass?: ClassValue;
|
|
927
928
|
footerClass?: ClassValue;
|
|
928
929
|
closeBtnClass?: ClassValue;
|
|
929
|
-
onclose?: () => void;
|
|
930
930
|
}
|
|
931
931
|
export interface MenuProps extends SVGAttributes<SVGSVGElement> {
|
|
932
932
|
size?: string;
|
|
@@ -1317,11 +1317,12 @@ export interface SpinnerProps extends SVGAttributes<SVGSVGElement> {
|
|
|
1317
1317
|
currentColor?: string;
|
|
1318
1318
|
}
|
|
1319
1319
|
export interface StepIndicatorProps extends HTMLAttributes<HTMLElement> {
|
|
1320
|
-
steps
|
|
1321
|
-
currentStep
|
|
1322
|
-
size?:
|
|
1323
|
-
|
|
1324
|
-
|
|
1320
|
+
steps?: string[];
|
|
1321
|
+
currentStep?: number;
|
|
1322
|
+
size?: StepIndicatorVariants["size"];
|
|
1323
|
+
color?: StepIndicatorVariants["color"] | "custom";
|
|
1324
|
+
glow?: StepIndicatorVariants["glow"];
|
|
1325
|
+
hideLabel?: StepIndicatorVariants["hideLabel"];
|
|
1325
1326
|
completedCustom?: string;
|
|
1326
1327
|
currentCustom?: string;
|
|
1327
1328
|
}
|
|
@@ -1469,7 +1470,7 @@ export interface TableSearchProps extends HTMLTableAttributes {
|
|
|
1469
1470
|
striped?: boolean;
|
|
1470
1471
|
hoverable?: boolean;
|
|
1471
1472
|
customColor?: string;
|
|
1472
|
-
color?:
|
|
1473
|
+
color?: TableSearchColor;
|
|
1473
1474
|
innerDivClass?: ClassValue;
|
|
1474
1475
|
inputClass?: ClassValue;
|
|
1475
1476
|
searchClass?: ClassValue;
|
|
@@ -1502,10 +1503,8 @@ export interface TabCtxType {
|
|
|
1502
1503
|
selected: Writable<HTMLElement>;
|
|
1503
1504
|
panelId: string;
|
|
1504
1505
|
}
|
|
1505
|
-
export
|
|
1506
|
-
|
|
1507
|
-
children: Snippet;
|
|
1508
|
-
theme?: BaseThemes;
|
|
1506
|
+
export interface ThemeConfig {
|
|
1507
|
+
[key: string]: string | ThemeConfig;
|
|
1509
1508
|
}
|
|
1510
1509
|
export type TimelineVariants = VariantProps<typeof timeline>;
|
|
1511
1510
|
export interface ActivityType {
|
|
@@ -1635,9 +1634,17 @@ export interface HrProps extends HTMLAttributes<HTMLElement> {
|
|
|
1635
1634
|
textSpanClass?: string;
|
|
1636
1635
|
innerDivClass?: string;
|
|
1637
1636
|
}
|
|
1638
|
-
export
|
|
1639
|
-
|
|
1640
|
-
|
|
1637
|
+
export interface Picture {
|
|
1638
|
+
/**
|
|
1639
|
+
* Key is format. Value is srcset.
|
|
1640
|
+
*/
|
|
1641
|
+
sources: Record<string, string>;
|
|
1642
|
+
img: {
|
|
1643
|
+
src: string;
|
|
1644
|
+
w: number;
|
|
1645
|
+
h: number;
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1641
1648
|
export interface ImgProps extends HTMLImgAttributes {
|
|
1642
1649
|
size?: ImgVariants["size"];
|
|
1643
1650
|
effect?: ImgVariants["effect"];
|
|
@@ -1646,7 +1653,8 @@ export interface ImgProps extends HTMLImgAttributes {
|
|
|
1646
1653
|
captionClass?: string;
|
|
1647
1654
|
href?: HTMLAnchorElement["href"];
|
|
1648
1655
|
}
|
|
1649
|
-
export interface EnhandedImgProps extends
|
|
1656
|
+
export interface EnhandedImgProps extends Omit<HTMLImgAttributes, "src"> {
|
|
1657
|
+
src: string | Picture;
|
|
1650
1658
|
size?: ImgVariants["size"];
|
|
1651
1659
|
multiple?: boolean;
|
|
1652
1660
|
transform?: string;
|
package/dist/types.js
CHANGED
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { anchor } from "./index";
|
|
4
4
|
import type { AnchorProps } from "../../types";
|
|
5
|
+
import { cn } from "../..";
|
|
6
|
+
import { getTheme } from "../../theme/themeUtils";
|
|
5
7
|
|
|
6
8
|
let { children, color = "primary", asButton = false, onclick, href = "#", class: className, ...restProps }: AnchorProps = $props();
|
|
7
9
|
|
|
10
|
+
const theme = getTheme("a");
|
|
11
|
+
|
|
8
12
|
let linkClass = $derived(anchor({ color, class: clsx(className) }));
|
|
9
13
|
|
|
10
14
|
// Handle click events when in button mode
|
|
@@ -26,12 +30,12 @@
|
|
|
26
30
|
|
|
27
31
|
{#if asButton}
|
|
28
32
|
<!-- Render as a button that looks like a link -->
|
|
29
|
-
<button type="button" class={linkClass} onclick={handleClick} {...buttonProps}>
|
|
33
|
+
<button type="button" class={cn(linkClass, theme)} onclick={handleClick} {...buttonProps}>
|
|
30
34
|
{@render children()}
|
|
31
35
|
</button>
|
|
32
36
|
{:else}
|
|
33
37
|
<!-- Standard anchor behavior -->
|
|
34
|
-
<a {href} class={linkClass} onclick={handleClick} {...restProps}>
|
|
38
|
+
<a {href} class={cn(linkClass, theme)} onclick={handleClick} {...restProps}>
|
|
35
39
|
{@render children()}
|
|
36
40
|
</a>
|
|
37
41
|
{/if}
|
|
@@ -40,7 +44,7 @@
|
|
|
40
44
|
@component
|
|
41
45
|
[Go to docs](https://flowbite-svelte.com/)
|
|
42
46
|
## Type
|
|
43
|
-
[AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
47
|
+
[AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1846)
|
|
44
48
|
## Props
|
|
45
49
|
@prop children
|
|
46
50
|
@prop color = "primary"
|
|
@@ -2,7 +2,7 @@ import type { AnchorProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AnchorProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1846)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop color = "primary"
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { A, anchor };
|
|
1
|
+
export { default as A } from "./A.svelte";
|
|
2
|
+
export { anchor, type AnchorTheme } from "./theme";
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { A, anchor };
|
|
1
|
+
export { default as A } from "./A.svelte";
|
|
2
|
+
export { anchor } from "./theme";
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { blockquote } from "./index";
|
|
4
4
|
import type { BlockquoteProps } from "../../types";
|
|
5
|
+
import { cn } from "../..";
|
|
6
|
+
import { getTheme } from "../../theme/themeUtils";
|
|
5
7
|
|
|
6
8
|
let { children, class: className, border, italic = true, bg, alignment = "left", size = "lg", ...restProps }: BlockquoteProps = $props();
|
|
7
9
|
|
|
10
|
+
const theme = getTheme("blockquote");
|
|
11
|
+
|
|
8
12
|
let blockquoteClass = $derived(
|
|
9
13
|
blockquote({
|
|
10
14
|
border,
|
|
@@ -17,7 +21,7 @@
|
|
|
17
21
|
);
|
|
18
22
|
</script>
|
|
19
23
|
|
|
20
|
-
<blockquote {...restProps} class={blockquoteClass}>
|
|
24
|
+
<blockquote {...restProps} class={cn(blockquoteClass, theme)}>
|
|
21
25
|
{@render children()}
|
|
22
26
|
</blockquote>
|
|
23
27
|
|
|
@@ -25,7 +29,7 @@
|
|
|
25
29
|
@component
|
|
26
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
27
31
|
## Type
|
|
28
|
-
[BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1875)
|
|
29
33
|
## Props
|
|
30
34
|
@prop children
|
|
31
35
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { BlockquoteProps } from "../../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BlockquoteProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1875)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|