flowbite-svelte 1.10.19 → 1.10.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.svelte +1 -1
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +7 -7
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/theme.d.ts +0 -4
- package/dist/alert/Alert.svelte +1 -1
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +0 -2
- package/dist/avatar/Avatar.svelte +1 -1
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +0 -2
- package/dist/badge/Badge.svelte +5 -5
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +0 -3
- package/dist/banner/Banner.svelte +6 -6
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +0 -3
- package/dist/bottom-navigation/BottomNav.svelte +5 -5
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +5 -5
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +5 -5
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/theme.d.ts +0 -9
- package/dist/breadcrumb/Breadcrumb.svelte +5 -5
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +8 -8
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +0 -5
- package/dist/button-group/ButtonGroup.svelte +1 -1
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/index.d.ts +1 -1
- package/dist/button-group/theme.d.ts +0 -2
- package/dist/buttons/Button.svelte +3 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +5 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +0 -5
- package/dist/card/Card.svelte +6 -6
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +0 -3
- package/dist/carousel/Carousel.svelte +4 -4
- package/dist/carousel/Carousel.svelte.d.ts +2 -1
- package/dist/carousel/CarouselIndicators.svelte +5 -5
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +3 -3
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +2 -2
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +1 -1
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +1 -1
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +1 -1
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/index.d.ts +1 -1
- package/dist/carousel/theme.d.ts +0 -9
- package/dist/clipboard/Clipboard.svelte +1 -1
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +0 -2
- package/dist/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +0 -2
- package/dist/datepicker/Datepicker.svelte +13 -13
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +0 -3
- package/dist/device-mockups/Android.svelte +2 -2
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +2 -2
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +2 -2
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +2 -2
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +2 -2
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +2 -2
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +2 -2
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/drawer/Drawer.svelte +5 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +6 -6
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -8
- package/dist/dropdown/Dropdown.svelte +1 -1
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +1 -1
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +1 -1
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +4 -4
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +0 -8
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +5 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +6 -6
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +1 -1
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +5 -5
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +3 -13
- package/dist/forms/button-toggle/ButtonToggle.svelte +7 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/index.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +0 -4
- package/dist/forms/checkbox/Checkbox.svelte +6 -6
- package/dist/forms/checkbox/CheckboxButton.svelte +3 -3
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/index.js +1 -1
- package/dist/forms/checkbox/theme.d.ts +1 -5
- package/dist/forms/checkbox/theme.js +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +1 -1
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/dropzone/theme.d.ts +0 -2
- package/dist/forms/fileupload/Fileupload.svelte +6 -6
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/index.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +0 -3
- package/dist/forms/floating-label/FloatingLabelInput.svelte +8 -8
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/index.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +0 -3
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/index.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +0 -2
- package/dist/forms/input-addon/InputAddon.svelte +2 -5
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +11 -11
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +0 -3
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/index.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +0 -2
- package/dist/forms/phoneinput/PhoneInput.svelte +8 -8
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/index.js +1 -1
- package/dist/forms/phoneinput/theme.d.ts +3 -10
- package/dist/forms/phoneinput/theme.js +1 -1
- package/dist/forms/radio/Radio.svelte +5 -4
- package/dist/forms/radio/Radio.svelte.d.ts +10 -3
- package/dist/forms/radio/RadioButton.svelte +2 -2
- package/dist/forms/radio/RadioButton.svelte.d.ts +10 -3
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/index.js +1 -1
- package/dist/forms/radio/theme.d.ts +1 -5
- package/dist/forms/radio/theme.js +1 -1
- package/dist/forms/range/Range.svelte +5 -4
- package/dist/forms/range/Range.svelte.d.ts +2 -1
- package/dist/forms/range/theme.d.ts +0 -2
- package/dist/forms/search/Search.svelte +9 -9
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/index.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +0 -3
- package/dist/forms/select/MultiSelect.svelte +5 -5
- package/dist/forms/select/MultiSelect.svelte.d.ts +10 -3
- package/dist/forms/select/Select.svelte +5 -5
- package/dist/forms/select/Select.svelte.d.ts +10 -3
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/theme.d.ts +3 -5
- package/dist/forms/select/theme.js +2 -1
- package/dist/forms/tags/Tags.svelte +14 -12
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/index.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +6 -9
- package/dist/forms/textarea/Textarea.svelte +23 -21
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/index.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +0 -3
- package/dist/forms/timepicker/Timepicker.svelte +38 -38
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -1
- package/dist/forms/timepicker/theme.d.ts +0 -3
- package/dist/forms/toggle/Toggle.svelte +11 -7
- package/dist/forms/toggle/Toggle.svelte.d.ts +2 -1
- package/dist/forms/toggle/index.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -4
- package/dist/gallery/Gallery.svelte +10 -6
- package/dist/gallery/Gallery.svelte.d.ts +2 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +4 -5
- package/dist/gallery/theme.js +1 -2
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +0 -2
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +0 -2
- package/dist/list-group/Listgroup.svelte +3 -3
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +2 -2
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/index.d.ts +1 -1
- package/dist/list-group/theme.d.ts +1 -4
- package/dist/mega-menu/MegaMenu.svelte +15 -10
- package/dist/mega-menu/MegaMenu.svelte.d.ts +2 -1
- package/dist/mega-menu/index.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +6 -6
- package/dist/mega-menu/theme.js +2 -2
- package/dist/modal/Modal.svelte +18 -12
- package/dist/modal/Modal.svelte.d.ts +3 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/theme.d.ts +29 -7
- package/dist/modal/theme.js +7 -1
- package/dist/navbar/Menu.svelte +2 -5
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +2 -2
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +2 -2
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +11 -7
- package/dist/navbar/NavHamburger.svelte.d.ts +63 -2
- package/dist/navbar/NavLi.svelte +2 -2
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +13 -9
- package/dist/navbar/NavUl.svelte.d.ts +2 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/navbar/index.js +1 -1
- package/dist/navbar/theme.d.ts +4 -8
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +2 -2
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +15 -10
- package/dist/pagination/PaginationNav.svelte.d.ts +2 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/theme.d.ts +30 -34
- package/dist/pagination/theme.js +6 -6
- package/dist/popover/Popover.svelte +13 -8
- package/dist/popover/Popover.svelte.d.ts +2 -1
- package/dist/popover/index.d.ts +1 -1
- package/dist/popover/theme.d.ts +2 -4
- package/dist/progress/Progressbar.svelte +16 -9
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +10 -10
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/theme.d.ts +276 -290
- package/dist/progress/theme.js +92 -92
- package/dist/rating/AdvancedRating.svelte +21 -9
- package/dist/rating/AdvancedRating.svelte.d.ts +3 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +10 -6
- package/dist/rating/Rating.svelte.d.ts +2 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +28 -13
- package/dist/rating/Review.svelte.d.ts +3 -1
- package/dist/rating/ScoreRating.svelte +11 -10
- package/dist/rating/ScoreRating.svelte.d.ts +2 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/index.d.ts +1 -1
- package/dist/rating/theme.d.ts +12 -15
- package/dist/sidebar/Sidebar.svelte +23 -12
- package/dist/sidebar/Sidebar.svelte.d.ts +2 -1
- package/dist/sidebar/SidebarBrand.svelte +16 -7
- package/dist/sidebar/SidebarBrand.svelte.d.ts +2 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +16 -7
- package/dist/sidebar/SidebarCta.svelte.d.ts +2 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +21 -10
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +2 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +28 -34
- package/dist/sidebar/theme.js +7 -7
- package/dist/skeleton/CardPlaceholder.svelte +16 -15
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/ImagePlaceholder.svelte +15 -14
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/ListPlaceholder.svelte +15 -14
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/Skeleton.svelte +12 -11
- package/dist/skeleton/Skeleton.svelte.d.ts +2 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +17 -16
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/TextPlaceholder.svelte +36 -35
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +14 -13
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +2 -1
- package/dist/skeleton/index.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +93 -106
- package/dist/skeleton/theme.js +28 -24
- package/dist/speed-dial/SpeedDial.svelte +14 -6
- package/dist/speed-dial/SpeedDial.svelte.d.ts +2 -1
- package/dist/speed-dial/SpeedDialButton.svelte +27 -9
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +3 -2
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/index.d.ts +1 -1
- package/dist/speed-dial/theme.d.ts +3 -22
- package/dist/speed-dial/theme.js +0 -5
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +1 -1
- package/dist/spinner/theme.d.ts +0 -2
- package/dist/stepindicator/StepIndicator.svelte +12 -11
- package/dist/stepindicator/StepIndicator.svelte.d.ts +2 -1
- package/dist/stepindicator/theme.d.ts +46 -45
- package/dist/stepindicator/theme.js +15 -15
- package/dist/stepper/BreadcrumbStepper.svelte +10 -8
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +2 -1
- package/dist/stepper/DetailedStepper.svelte +9 -6
- package/dist/stepper/DetailedStepper.svelte.d.ts +2 -1
- package/dist/stepper/ProgressStepper.svelte +9 -7
- package/dist/stepper/ProgressStepper.svelte.d.ts +2 -1
- package/dist/stepper/Stepper.svelte +11 -8
- package/dist/stepper/Stepper.svelte.d.ts +2 -1
- package/dist/stepper/TimelineStepper.svelte +9 -6
- package/dist/stepper/TimelineStepper.svelte.d.ts +2 -1
- package/dist/stepper/VerticalStepper.svelte +10 -7
- package/dist/stepper/VerticalStepper.svelte.d.ts +2 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/theme.d.ts +407 -352
- package/dist/stepper/theme.js +157 -191
- package/dist/table/Table.svelte +14 -7
- package/dist/table/Table.svelte.d.ts +2 -1
- package/dist/table/TableBody.svelte +2 -5
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +27 -20
- package/dist/table/TableSearch.svelte.d.ts +2 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/theme.d.ts +19 -38
- package/dist/table/theme.js +5 -5
- package/dist/tabs/TabItem.svelte +7 -6
- package/dist/tabs/TabItem.svelte.d.ts +2 -1
- package/dist/tabs/Tabs.svelte +13 -7
- package/dist/tabs/Tabs.svelte.d.ts +3 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/theme.d.ts +3 -6
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/index.js +1 -2
- package/dist/theme/themeUtils.d.ts +5 -22
- package/dist/theme/themeUtils.js +25 -23
- package/dist/theme/themes.d.ts +70 -0
- package/dist/theme/themes.js +75 -0
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +41 -13
- package/dist/timeline/ActivityItem.svelte.d.ts +3 -1
- package/dist/timeline/Group.svelte +23 -7
- package/dist/timeline/Group.svelte.d.ts +3 -1
- package/dist/timeline/GroupItem.svelte +35 -13
- package/dist/timeline/GroupItem.svelte.d.ts +3 -1
- package/dist/timeline/Timeline.svelte +3 -3
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +32 -12
- package/dist/timeline/TimelineItem.svelte.d.ts +3 -1
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/theme.d.ts +57 -51
- package/dist/timeline/theme.js +11 -10
- package/dist/toast/Toast.svelte +22 -8
- package/dist/toast/Toast.svelte.d.ts +2 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/theme.d.ts +2 -4
- package/dist/toolbar/Toolbar.svelte +6 -5
- package/dist/toolbar/Toolbar.svelte.d.ts +2 -1
- package/dist/toolbar/ToolbarButton.svelte +1 -1
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/index.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +3 -7
- package/dist/tooltip/Tooltip.svelte +4 -4
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tooltip/theme.d.ts +3 -15
- package/dist/tooltip/theme.js +1 -4
- package/dist/types.d.ts +66 -65
- package/dist/types.js +0 -1
- package/dist/typography/anchor/A.svelte +2 -2
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +1 -1
- package/dist/typography/anchor/theme.d.ts +0 -2
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +0 -2
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +1 -1
- package/dist/typography/descriptionlist/theme.d.ts +0 -2
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +1 -1
- package/dist/typography/heading/theme.d.ts +0 -2
- package/dist/typography/hr/Hr.svelte +25 -10
- package/dist/typography/hr/Hr.svelte.d.ts +3 -2
- package/dist/typography/hr/index.d.ts +1 -1
- package/dist/typography/hr/theme.d.ts +6 -6
- package/dist/typography/hr/theme.js +1 -1
- package/dist/typography/img/EnhancedImg.svelte +25 -11
- package/dist/typography/img/EnhancedImg.svelte.d.ts +3 -2
- package/dist/typography/img/Img.svelte +24 -10
- package/dist/typography/img/Img.svelte.d.ts +3 -2
- package/dist/typography/img/index.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +5 -7
- package/dist/typography/img/theme.js +1 -1
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +1 -1
- package/dist/typography/layout/theme.d.ts +0 -2
- package/dist/typography/list/Li.svelte +2 -5
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +1 -1
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/index.d.ts +1 -1
- package/dist/typography/list/theme.d.ts +0 -2
- package/dist/typography/mark/Mark.svelte +1 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +1 -1
- package/dist/typography/mark/theme.d.ts +0 -2
- package/dist/typography/paragraph/P.svelte +2 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +1 -1
- package/dist/typography/paragraph/theme.d.ts +0 -2
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +1 -1
- package/dist/typography/secondary/theme.d.ts +0 -2
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +1 -1
- package/dist/typography/span/theme.d.ts +0 -2
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +11 -11
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
@component
|
|
31
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
32
|
## Type
|
|
33
|
-
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L177)
|
|
34
34
|
## Props
|
|
35
35
|
@prop children
|
|
36
36
|
@prop flush
|
|
@@ -2,7 +2,7 @@ import { type AccordionProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L177)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop flush
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { getContext } from "svelte";
|
|
6
6
|
import { writable } from "svelte/store";
|
|
7
7
|
import { slide } from "svelte/transition";
|
|
8
|
-
import { accordionItem
|
|
8
|
+
import { accordionItem } from ".";
|
|
9
9
|
|
|
10
10
|
let { children, header, arrowup, arrowdown, open = $bindable(false), activeClass, inactiveClass, transitionType = slide, transitionParams, class: className, classes, headerClass, contentClass }: AccordionItemProps = $props();
|
|
11
11
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
const useTransition = transitionType === "none" ? false : ctxTransitionType === "none" ? false : true;
|
|
33
33
|
|
|
34
34
|
// Theme context
|
|
35
|
-
const theme = getTheme("
|
|
35
|
+
const theme = getTheme("accordionItem");
|
|
36
36
|
|
|
37
37
|
const ctx: AccordionCtxType = getContext("ctx") ?? {};
|
|
38
38
|
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
let buttonClass = $derived(clsx(open && !ctx.flush && (styling.active || ctx.activeClass || active()), !open && !ctx.flush && (styling.inactive || ctx.inactiveClass || inactive())));
|
|
52
52
|
</script>
|
|
53
53
|
|
|
54
|
-
<h2 class={base({ class: clsx(
|
|
55
|
-
<button type="button" onclick={handleToggle} class={button({ class: clsx(buttonClass,
|
|
54
|
+
<h2 class={base({ class: clsx(theme?.base, className) })}>
|
|
55
|
+
<button type="button" onclick={handleToggle} class={button({ class: clsx(buttonClass, theme?.button, styling.button) })} aria-expanded={open}>
|
|
56
56
|
{#if header}
|
|
57
57
|
{@render header()}
|
|
58
58
|
{#if open}
|
|
@@ -77,14 +77,14 @@
|
|
|
77
77
|
{#if useTransition}
|
|
78
78
|
{#if open && transitionType !== "none"}
|
|
79
79
|
<div transition:transitionType={transitionParams as ParamsType}>
|
|
80
|
-
<div class={content({ class: clsx(
|
|
80
|
+
<div class={content({ class: clsx(theme?.content, styling.content) })}>
|
|
81
81
|
{@render children()}
|
|
82
82
|
</div>
|
|
83
83
|
</div>
|
|
84
84
|
{/if}
|
|
85
85
|
{:else}
|
|
86
86
|
<div class={open ? "block" : "hidden"}>
|
|
87
|
-
<div class={content({ class: clsx(
|
|
87
|
+
<div class={content({ class: clsx(theme?.content, styling.content) })}>
|
|
88
88
|
{@render children()}
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
@component
|
|
95
95
|
[Go to docs](https://flowbite-svelte.com/)
|
|
96
96
|
## Type
|
|
97
|
-
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
97
|
+
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L185)
|
|
98
98
|
## Props
|
|
99
99
|
@prop children
|
|
100
100
|
@prop header
|
|
@@ -2,7 +2,7 @@ import { type AccordionItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L185)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Accordion } from "./Accordion.svelte";
|
|
2
2
|
export { default as AccordionItem } from "./AccordionItem.svelte";
|
|
3
|
-
export { accordion, accordionItem
|
|
3
|
+
export { accordion, accordionItem } from "./theme";
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { Classes } from "../theme/themeUtils";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import { type VariantProps } from "tailwind-variants";
|
|
4
3
|
export type AccordionVariants = VariantProps<typeof accordion>;
|
|
5
4
|
export type AccordionItemVariants = VariantProps<typeof accordionItem> & Classes<typeof accordionItem>;
|
|
6
|
-
export type AccordionTheme = ClassValue;
|
|
7
|
-
export type AccordionItemSlots = keyof typeof accordionItem.slots;
|
|
8
|
-
export type AccordionItemTheme = Partial<Record<AccordionItemSlots, ClassValue>>;
|
|
9
5
|
export declare const accordion: import("tailwind-variants").TVReturnType<{
|
|
10
6
|
color: {
|
|
11
7
|
primary: string;
|
package/dist/alert/Alert.svelte
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
@component
|
|
53
53
|
[Go to docs](https://flowbite-svelte.com/)
|
|
54
54
|
## Type
|
|
55
|
-
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
55
|
+
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L199)
|
|
56
56
|
## Props
|
|
57
57
|
@prop children
|
|
58
58
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import { type AlertProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L199)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
package/dist/alert/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Alert } from "./Alert.svelte";
|
|
2
|
-
export { alert
|
|
2
|
+
export { alert } from "./theme";
|
package/dist/alert/theme.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
export type AlertVariants = VariantProps<typeof alert>;
|
|
4
|
-
export type AlertTheme = ClassValue;
|
|
5
3
|
export declare const alert: import("tailwind-variants").TVReturnType<{
|
|
6
4
|
color: {
|
|
7
5
|
primary: string;
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
@component
|
|
49
49
|
[Go to docs](https://flowbite-svelte.com/)
|
|
50
50
|
## Type
|
|
51
|
-
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
51
|
+
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L210)
|
|
52
52
|
## Props
|
|
53
53
|
@prop children
|
|
54
54
|
@prop indicator
|
|
@@ -2,7 +2,7 @@ import { type AvatarProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L210)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop indicator
|
package/dist/avatar/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Avatar } from "./Avatar.svelte";
|
|
2
|
-
export { avatar
|
|
2
|
+
export { avatar } from "./theme";
|
package/dist/avatar/theme.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { ClassValue } from "svelte/elements";
|
|
2
1
|
import { type VariantProps } from "tailwind-variants";
|
|
3
2
|
export type AvatarVariants = VariantProps<typeof avatar>;
|
|
4
|
-
export type AvatarTheme = ClassValue;
|
|
5
3
|
export declare const avatar: import("tailwind-variants").TVReturnType<{
|
|
6
4
|
cornerStyle: {
|
|
7
5
|
rounded: string;
|
package/dist/badge/Badge.svelte
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { fade } from "svelte/transition";
|
|
6
|
-
import { badge
|
|
6
|
+
import { badge } from ".";
|
|
7
7
|
|
|
8
8
|
let { children, icon, badgeStatus = $bindable(true), color = "primary", large = false, dismissable = false, class: className, classes, border, href, target, rounded, transition = fade, params, aClass, onclose, ...restProps }: BadgeProps = $props();
|
|
9
9
|
|
|
10
10
|
warnThemeDeprecation("Badge", { aClass }, { aClass: "linkClass" });
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const styling = $derived(classes ?? { linkClass: aClass });
|
|
13
13
|
|
|
14
14
|
// Theme context
|
|
15
15
|
const theme = getTheme("badge");
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
{#if badgeStatus}
|
|
26
|
-
<div {...restProps} transition:transition={params as ParamsType} class={base({ class: clsx(
|
|
26
|
+
<div {...restProps} transition:transition={params as ParamsType} class={base({ class: clsx(theme?.base, className) })}>
|
|
27
27
|
{#if href}
|
|
28
|
-
<a {href} {target} class={linkClass({ class: clsx(
|
|
28
|
+
<a {href} {target} class={linkClass({ class: clsx(theme?.linkClass, styling.linkClass) })}>
|
|
29
29
|
{@render children()}
|
|
30
30
|
</a>
|
|
31
31
|
{:else}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
@component
|
|
50
50
|
[Go to docs](https://flowbite-svelte.com/)
|
|
51
51
|
## Type
|
|
52
|
-
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
52
|
+
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L222)
|
|
53
53
|
## Props
|
|
54
54
|
@prop children
|
|
55
55
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import { type BadgeProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L222)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
package/dist/badge/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Badge } from "./Badge.svelte";
|
|
2
|
-
export { badge
|
|
2
|
+
export { badge } from "./theme";
|
package/dist/badge/theme.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { Classes } from "../theme/themeUtils";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import { type VariantProps } from "tailwind-variants";
|
|
4
3
|
export type BadgeVariants = VariantProps<typeof badge> & Classes<typeof badge>;
|
|
5
|
-
export type BadgeSlots = keyof typeof badge.slots;
|
|
6
|
-
export type BadgeTheme = Partial<Record<BadgeSlots, ClassValue>>;
|
|
7
4
|
export declare const badge: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
color: {
|
|
9
6
|
primary: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { fade } from "svelte/transition";
|
|
3
|
-
import { banner
|
|
3
|
+
import { banner } from ".";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { type ParamsType, type BannerProps, CloseButton } from "..";
|
|
6
6
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
warnThemeDeprecation("Banner", { innerClass, closeClass }, { innerClass: "insideDiv", closeClass: "dismissable" });
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
const styling = $derived(classes ?? { insideDiv: innerClass, dismissable: closeClass });
|
|
13
13
|
|
|
14
14
|
// Theme context
|
|
15
15
|
const theme = getTheme("banner");
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
</script>
|
|
19
19
|
|
|
20
20
|
{#if open}
|
|
21
|
-
<div tabindex="-1" class={base({ class: clsx(
|
|
22
|
-
<div class={insideDiv({ class: clsx(
|
|
21
|
+
<div tabindex="-1" class={base({ class: clsx(theme?.base, className) })} {...restProps} transition:transition={params as ParamsType}>
|
|
22
|
+
<div class={insideDiv({ class: clsx(theme?.insideDiv, styling.insideDiv) })}>
|
|
23
23
|
{@render children?.()}
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
26
|
{#if dismissable}
|
|
27
27
|
<div class="flex items-center justify-end">
|
|
28
28
|
<CloseButton
|
|
29
|
-
class={dismissableClass({ class: clsx(
|
|
29
|
+
class={dismissableClass({ class: clsx(theme?.dismissable, styling.dismissable) })}
|
|
30
30
|
{color}
|
|
31
31
|
ariaLabel="Remove banner"
|
|
32
32
|
onclick={() => {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
@component
|
|
43
43
|
[Go to docs](https://flowbite-svelte.com/)
|
|
44
44
|
## Type
|
|
45
|
-
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
45
|
+
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L237)
|
|
46
46
|
## Props
|
|
47
47
|
@prop children
|
|
48
48
|
@prop header
|
|
@@ -2,7 +2,7 @@ import { type BannerProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L237)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
package/dist/banner/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Banner } from "./Banner.svelte";
|
|
2
|
-
export { banner
|
|
2
|
+
export { banner } from "./theme";
|
package/dist/banner/theme.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type BannerVariants = VariantProps<typeof banner> & Classes<typeof banner>;
|
|
5
|
-
export type BannerSlots = keyof typeof banner.slots;
|
|
6
|
-
export type BannerTheme = Partial<Record<BannerSlots, ClassValue>>;
|
|
7
4
|
export declare const banner: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
type: {
|
|
9
6
|
top: {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
4
|
import { bottomNav } from ".";
|
|
5
5
|
import clsx from "clsx";
|
|
6
|
-
import { type BottomNavProps, type BottomNavContextType, cn
|
|
6
|
+
import { type BottomNavProps, type BottomNavContextType, cn } from "..";
|
|
7
7
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
8
8
|
|
|
9
9
|
let { children, header, position = "fixed", navType = "default", class: className, classes, outerClass, innerClass, activeClass, activeUrl = "", ...restProps }: BottomNavProps = $props();
|
|
10
10
|
|
|
11
11
|
warnThemeDeprecation("BottomNav", { innerClass, outerClass }, { innerClass: "inner", outerClass: "class" });
|
|
12
|
-
|
|
12
|
+
const styling = $derived(classes ?? { inner: innerClass });
|
|
13
13
|
|
|
14
14
|
// Theme context
|
|
15
15
|
const theme = getTheme("bottomNav");
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
});
|
|
29
29
|
</script>
|
|
30
30
|
|
|
31
|
-
<div {...restProps} class={base({ class: clsx(
|
|
31
|
+
<div {...restProps} class={base({ class: clsx(theme?.base, className ?? outerClass) })}>
|
|
32
32
|
{#if header}
|
|
33
33
|
{@render header()}
|
|
34
34
|
{/if}
|
|
35
35
|
|
|
36
|
-
<div class={inner({ class: clsx(
|
|
36
|
+
<div class={inner({ class: clsx(theme?.inner, styling.inner) })}>
|
|
37
37
|
{@render children()}
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
@component
|
|
43
43
|
[Go to docs](https://flowbite-svelte.com/)
|
|
44
44
|
## Type
|
|
45
|
-
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
45
|
+
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L255)
|
|
46
46
|
## Props
|
|
47
47
|
@prop children
|
|
48
48
|
@prop header
|
|
@@ -2,7 +2,7 @@ import { type BottomNavProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L255)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { bottomNavHeader } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { type BottomNavHeaderProps
|
|
4
|
+
import { type BottomNavHeaderProps } from "..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, class: className, classes, outerClass, innerClass, ...restProps }: BottomNavHeaderProps = $props();
|
|
8
8
|
|
|
9
9
|
warnThemeDeprecation("BottomNavHeader", { innerClass, outerClass }, { innerClass: "inner", outerClass: "class" });
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const styling = $derived(classes ?? { innerDiv: innerClass });
|
|
12
12
|
|
|
13
13
|
// Theme context
|
|
14
14
|
const theme = getTheme("bottomNavHeader");
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
const { innerDiv, base } = $derived(bottomNavHeader());
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
|
-
<div {...restProps} class={base({ class: clsx(
|
|
20
|
-
<div class={innerDiv({ class: clsx(
|
|
19
|
+
<div {...restProps} class={base({ class: clsx(theme?.base, className ?? outerClass) })}>
|
|
20
|
+
<div class={innerDiv({ class: clsx(theme?.innerDiv, styling.innerDiv) })} role="group">
|
|
21
21
|
{@render children()}
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L274)
|
|
30
30
|
## Props
|
|
31
31
|
@prop children
|
|
32
32
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type BottomNavHeaderProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L274)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@component
|
|
21
21
|
[Go to docs](https://flowbite-svelte.com/)
|
|
22
22
|
## Type
|
|
23
|
-
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
23
|
+
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L280)
|
|
24
24
|
## Props
|
|
25
25
|
@prop itemName
|
|
26
26
|
@prop active
|
|
@@ -2,7 +2,7 @@ import { type BottomNavHeaderItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L280)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop itemName
|
|
8
8
|
* @prop active
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getContext } from "svelte";
|
|
6
6
|
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
|
|
7
|
-
import { bottomNavItem
|
|
7
|
+
import { bottomNavItem } from ".";
|
|
8
8
|
|
|
9
9
|
let { children, btnName, appBtnPosition = "middle", activeClass, class: className, classes, btnClass, spanClass, active: manualActive, ...restProps }: BottomNavItemProps = $props();
|
|
10
10
|
|
|
11
11
|
warnThemeDeprecation("BottomNavItem", { spanClass, btnClass }, { spanClass: "span", btnClass: "class" });
|
|
12
|
-
|
|
12
|
+
const styling = $derived(classes ?? { span: spanClass });
|
|
13
13
|
|
|
14
14
|
// Theme context
|
|
15
15
|
const theme = getTheme("bottomNavItem");
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
function getCommonClass() {
|
|
30
|
-
return base({ class: clsx(isActive && (activeClass ?? context.activeClass),
|
|
30
|
+
return base({ class: clsx(isActive && (activeClass ?? context.activeClass), theme?.base, className ?? btnClass) });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
function getSpanClass() {
|
|
34
|
-
return span({ class: clsx(isActive && (activeClass ?? context.activeClass),
|
|
34
|
+
return span({ class: clsx(isActive && (activeClass ?? context.activeClass), theme?.span, styling.span) });
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
@component
|
|
68
68
|
[Go to docs](https://flowbite-svelte.com/)
|
|
69
69
|
## Type
|
|
70
|
-
[BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
70
|
+
[BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L264)
|
|
71
71
|
## Props
|
|
72
72
|
@prop children
|
|
73
73
|
@prop btnName
|
|
@@ -2,7 +2,7 @@ import { type BottomNavItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L264)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop btnName
|
|
@@ -2,4 +2,4 @@ export { default as BottomNav } from "./BottomNav.svelte";
|
|
|
2
2
|
export { default as BottomNavItem } from "./BottomNavItem.svelte";
|
|
3
3
|
export { default as BottomNavHeaderItem } from "./BottomNavHeaderItem.svelte";
|
|
4
4
|
export { default as BottomNavHeader } from "./BottomNavHeader.svelte";
|
|
5
|
-
export { bottomNav, bottomNavItem, bottomNavHeader, bottomNavHeaderItem
|
|
5
|
+
export { bottomNav, bottomNavItem, bottomNavHeader, bottomNavHeaderItem } from "./theme";
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type BottomNavVariants = VariantProps<typeof bottomNav> & Classes<typeof bottomNav>;
|
|
5
4
|
export type BottomNavItemVariants = VariantProps<typeof bottomNavItem> & Classes<typeof bottomNavItem>;
|
|
6
5
|
export type BottomNavHeaderVariants = VariantProps<typeof bottomNavHeader> & Classes<typeof bottomNavHeader>;
|
|
7
6
|
export type BottomNavHeaderItemVariants = VariantProps<typeof bottomNavHeaderItem>;
|
|
8
|
-
export type BottomNavSlots = keyof typeof bottomNav.slots;
|
|
9
|
-
export type BottomNavTheme = Partial<Record<BottomNavSlots, ClassValue>>;
|
|
10
|
-
export type BottomNavItemSlots = keyof typeof bottomNavItem.slots;
|
|
11
|
-
export type BottomNavItemTheme = Partial<Record<BottomNavItemSlots, ClassValue>>;
|
|
12
|
-
export type BottomnavheaderSlots = keyof typeof bottomNavHeader.slots;
|
|
13
|
-
export type BottomNavHeaderTheme = Partial<Record<BottomnavheaderSlots, ClassValue>>;
|
|
14
|
-
export type bottomNavHeaderItemSlots = keyof typeof bottomNavHeaderItem.slots;
|
|
15
|
-
export type BottomNavHeaderItemTheme = Partial<Record<bottomNavHeaderItemSlots, ClassValue>>;
|
|
16
7
|
export declare const bottomNav: import("tailwind-variants").TVReturnType<{
|
|
17
8
|
position: {
|
|
18
9
|
static: {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { breadcrumb } from ".";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { type BreadcrumbProps
|
|
4
|
+
import { type BreadcrumbProps } from "..";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
7
7
|
let { children, solid = false, class: className, classes, olClass, ariaLabel = "Breadcrumb", ...restProps }: BreadcrumbProps = $props();
|
|
8
8
|
|
|
9
9
|
warnThemeDeprecation("Breadcrumb", { olClass }, { olClass: "list" });
|
|
10
|
-
|
|
10
|
+
const styling = $derived(classes ?? { list: olClass });
|
|
11
11
|
|
|
12
12
|
const theme = getTheme("breadcrumb");
|
|
13
13
|
|
|
14
14
|
const { base, list } = breadcrumb({ solid });
|
|
15
|
-
let classNav = $derived(base({ class: clsx(
|
|
16
|
-
let classList = $derived(list({ class: clsx(
|
|
15
|
+
let classNav = $derived(base({ class: clsx(theme?.base, className) }));
|
|
16
|
+
let classList = $derived(list({ class: clsx(theme?.list, styling.list) }));
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<nav aria-label={ariaLabel} {...restProps} class={classNav}>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@component
|
|
27
27
|
[Go to docs](https://flowbite-svelte.com/)
|
|
28
28
|
## Type
|
|
29
|
-
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
29
|
+
[BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L286)
|
|
30
30
|
## Props
|
|
31
31
|
@prop children
|
|
32
32
|
@prop solid = false
|
|
@@ -2,7 +2,7 @@ import { type BreadcrumbProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BreadcrumbProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L286)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop solid = false
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { type BreadcrumbItemProps
|
|
2
|
+
import { type BreadcrumbItemProps } from "..";
|
|
3
3
|
import { getTheme } from "../theme/themeUtils";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { breadcrumbItem } from "./index";
|
|
6
6
|
|
|
7
7
|
let { children, icon, home = false, href, linkClass, spanClass, homeClass, class: className, classes, ...restProps }: BreadcrumbItemProps = $props();
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const styling = $derived(classes ?? {});
|
|
10
10
|
|
|
11
11
|
const theme = getTheme("breadcrumbItem");
|
|
12
12
|
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
);
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
|
-
<li {...restProps} class={base({ class: clsx(
|
|
21
|
+
<li {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
22
22
|
{#if home}
|
|
23
|
-
<a class={base({ home: true, class: clsx(
|
|
23
|
+
<a class={base({ home: true, class: clsx(theme?.base, homeClass) })} {href}>
|
|
24
24
|
{#if icon}
|
|
25
25
|
{@render icon()}
|
|
26
26
|
{:else}
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
{#if icon}
|
|
36
36
|
{@render icon()}
|
|
37
37
|
{:else}
|
|
38
|
-
<svg class={separator({ class: clsx(
|
|
38
|
+
<svg class={separator({ class: clsx(theme?.separator, styling.separator) })} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
|
|
39
39
|
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
|
40
40
|
</svg>
|
|
41
41
|
{/if}
|
|
42
42
|
|
|
43
43
|
{#if href}
|
|
44
|
-
<a class={base({ home: false, hasHref: true, class: clsx(
|
|
44
|
+
<a class={base({ home: false, hasHref: true, class: clsx(theme?.base, linkClass) })} {href}>
|
|
45
45
|
{@render children()}
|
|
46
46
|
</a>
|
|
47
47
|
{:else}
|
|
48
|
-
<span class={base({ home: false, hasHref: false, class: clsx(
|
|
48
|
+
<span class={base({ home: false, hasHref: false, class: clsx(theme?.base, spanClass) })}>
|
|
49
49
|
{@render children()}
|
|
50
50
|
</span>
|
|
51
51
|
{/if}
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
@component
|
|
57
57
|
[Go to docs](https://flowbite-svelte.com/)
|
|
58
58
|
## Type
|
|
59
|
-
[BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
59
|
+
[BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L293)
|
|
60
60
|
## Props
|
|
61
61
|
@prop children
|
|
62
62
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import { type BreadcrumbItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BreadcrumbItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L293)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Breadcrumb } from "./Breadcrumb.svelte";
|
|
2
2
|
export { default as BreadcrumbItem } from "./BreadcrumbItem.svelte";
|
|
3
|
-
export { breadcrumb, breadcrumbItem
|
|
3
|
+
export { breadcrumb, breadcrumbItem } from "./theme";
|