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
package/dist/modal/theme.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type {
|
|
3
|
-
export type ModalVariants = VariantProps<typeof modal>;
|
|
2
|
+
import type { Classes } from "../theme/themeUtils";
|
|
3
|
+
export type ModalVariants = VariantProps<typeof modal> & Classes<typeof modal>;
|
|
4
4
|
export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
fullscreen: {
|
|
6
|
+
true: {
|
|
7
|
+
base: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
5
10
|
placement: {
|
|
6
11
|
"top-left": {
|
|
7
12
|
base: string;
|
|
@@ -32,6 +37,9 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
32
37
|
};
|
|
33
38
|
};
|
|
34
39
|
size: {
|
|
40
|
+
none: {
|
|
41
|
+
base: string;
|
|
42
|
+
};
|
|
35
43
|
xs: {
|
|
36
44
|
base: string;
|
|
37
45
|
};
|
|
@@ -54,8 +62,13 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
54
62
|
header: string;
|
|
55
63
|
footer: string;
|
|
56
64
|
body: string;
|
|
57
|
-
|
|
65
|
+
close: string;
|
|
58
66
|
}, undefined, {
|
|
67
|
+
fullscreen: {
|
|
68
|
+
true: {
|
|
69
|
+
base: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
59
72
|
placement: {
|
|
60
73
|
"top-left": {
|
|
61
74
|
base: string;
|
|
@@ -86,6 +99,9 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
86
99
|
};
|
|
87
100
|
};
|
|
88
101
|
size: {
|
|
102
|
+
none: {
|
|
103
|
+
base: string;
|
|
104
|
+
};
|
|
89
105
|
xs: {
|
|
90
106
|
base: string;
|
|
91
107
|
};
|
|
@@ -108,8 +124,13 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
108
124
|
header: string;
|
|
109
125
|
footer: string;
|
|
110
126
|
body: string;
|
|
111
|
-
|
|
127
|
+
close: string;
|
|
112
128
|
}, import("tailwind-variants").TVReturnType<{
|
|
129
|
+
fullscreen: {
|
|
130
|
+
true: {
|
|
131
|
+
base: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
113
134
|
placement: {
|
|
114
135
|
"top-left": {
|
|
115
136
|
base: string;
|
|
@@ -140,6 +161,9 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
140
161
|
};
|
|
141
162
|
};
|
|
142
163
|
size: {
|
|
164
|
+
none: {
|
|
165
|
+
base: string;
|
|
166
|
+
};
|
|
143
167
|
xs: {
|
|
144
168
|
base: string;
|
|
145
169
|
};
|
|
@@ -162,7 +186,5 @@ export declare const modal: import("tailwind-variants").TVReturnType<{
|
|
|
162
186
|
header: string;
|
|
163
187
|
footer: string;
|
|
164
188
|
body: string;
|
|
165
|
-
|
|
189
|
+
close: string;
|
|
166
190
|
}, undefined, unknown, unknown, undefined>>;
|
|
167
|
-
export type ModalSlots = keyof typeof modal.slots;
|
|
168
|
-
export type ModalTheme = Partial<Record<ModalSlots, ClassValue>>;
|
package/dist/modal/theme.js
CHANGED
|
@@ -6,9 +6,14 @@ export const modal = tv({
|
|
|
6
6
|
header: "flex items-center p-4 md:p-5 justify-between rounded-t-lg shrink-0 text-xl font-semibold text-gray-900 dark:text-white",
|
|
7
7
|
footer: "flex items-center p-4 md:p-5 space-x-3 rtl:space-x-reverse rounded-b-lg shrink-0",
|
|
8
8
|
body: "p-4 md:p-5 space-y-4 overflow-y-auto overscroll-contain",
|
|
9
|
-
|
|
9
|
+
close: "absolute top-3 end-2.5"
|
|
10
10
|
},
|
|
11
11
|
variants: {
|
|
12
|
+
fullscreen: {
|
|
13
|
+
true: {
|
|
14
|
+
base: "fixed inset-0 w-screen h-screen max-w-none max-h-none m-0 p-0 border-none rounded-none bg-white dark:bg-gray-900"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
12
17
|
placement: {
|
|
13
18
|
"top-left": { base: "top-0 left-0" },
|
|
14
19
|
"top-center": { base: "top-0 left-1/2 -translate-x-1/2" },
|
|
@@ -21,6 +26,7 @@ export const modal = tv({
|
|
|
21
26
|
"bottom-right": { base: "top-full -translate-y-full left-full -translate-x-full" }
|
|
22
27
|
},
|
|
23
28
|
size: {
|
|
29
|
+
none: { base: "" },
|
|
24
30
|
xs: { base: "max-w-md" },
|
|
25
31
|
sm: { base: "max-w-lg" },
|
|
26
32
|
md: { base: "max-w-2xl" },
|
package/dist/navbar/Menu.svelte
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { MenuProps } from "../types";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { getTheme } from "../theme/themeUtils";
|
|
5
4
|
|
|
6
5
|
let { size = "24", color = "currentColor", variation = "outline", ariaLabel = "bars 3", class: className, ...restProps }: MenuProps = $props();
|
|
7
6
|
|
|
8
|
-
const theme = getTheme("memu");
|
|
9
|
-
|
|
10
7
|
let viewBox: string = $state("0 0 24 24");
|
|
11
8
|
let svgpath: string = $state("");
|
|
12
9
|
let svgoutline = `<path stroke="${color}" stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"></path> `;
|
|
@@ -28,7 +25,7 @@
|
|
|
28
25
|
});
|
|
29
26
|
</script>
|
|
30
27
|
|
|
31
|
-
<svg xmlns="http://www.w3.org/2000/svg" role="button" tabindex="0" width={size} height={size} class={clsx(
|
|
28
|
+
<svg xmlns="http://www.w3.org/2000/svg" role="button" tabindex="0" width={size} height={size} class={clsx(className)} {...restProps} aria-label={ariaLabel} fill="none" {viewBox} stroke-width="2">
|
|
32
29
|
{@html svgpath}
|
|
33
30
|
</svg>
|
|
34
31
|
|
|
@@ -36,7 +33,7 @@
|
|
|
36
33
|
@component
|
|
37
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
38
35
|
## Type
|
|
39
|
-
[MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1076)
|
|
40
37
|
## Props
|
|
41
38
|
@prop size = "24"
|
|
42
39
|
@prop color = "currentColor"
|
|
@@ -2,7 +2,7 @@ import type { MenuProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [MenuProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1076)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop size = "24"
|
|
8
8
|
* @prop color = "currentColor"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, class: className, ...restProps }: NavBrandProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("
|
|
9
|
+
const theme = getTheme("navbarBrand");
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<a {...restProps} class={navbarBrand({ class: clsx(theme, className) })}>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1096)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { NavBrandProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [NavBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1096)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
let { children, fluid, class: clasName, ...restProps }: NavContainerProps = $props();
|
|
8
8
|
|
|
9
|
-
const theme = getTheme("
|
|
9
|
+
const theme = getTheme("navbarContainer");
|
|
10
10
|
</script>
|
|
11
11
|
|
|
12
12
|
<div {...restProps} class={navbarContainer({ fluid, class: clsx(theme, clasName) })}>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@component
|
|
18
18
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
19
|
## Type
|
|
20
|
-
[NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
20
|
+
[NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1098)
|
|
21
21
|
## Props
|
|
22
22
|
@prop children
|
|
23
23
|
@prop fluid
|
|
@@ -2,7 +2,7 @@ import type { NavContainerProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [NavContainerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1098)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop fluid
|
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
import { getContext } from "svelte";
|
|
4
4
|
import ToolbarButton from "../toolbar/ToolbarButton.svelte";
|
|
5
5
|
import Menu from "./Menu.svelte";
|
|
6
|
-
import { navbarHamburger
|
|
6
|
+
import { navbarHamburger } from "./theme";
|
|
7
7
|
import type { NavbarState, NavHamburgerProps } from "../types";
|
|
8
8
|
import type { MouseEventHandler } from "svelte/elements";
|
|
9
|
-
import { getTheme } from "../theme/themeUtils";
|
|
9
|
+
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
10
10
|
|
|
11
|
-
let { children, onclick, menuClass, class: className, name = "Open main menu", ...restProps }: NavHamburgerProps = $props();
|
|
11
|
+
let { children, onclick, menuClass, class: className, classes, name = "Open main menu", ...restProps }: NavHamburgerProps = $props();
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
warnThemeDeprecation("NavHamburger", { menuClass }, { menuClass: "menu" });
|
|
14
|
+
const styling = $derived(classes ?? { menu: menuClass });
|
|
15
|
+
|
|
16
|
+
const theme = getTheme("navbarHamburger");
|
|
14
17
|
|
|
15
18
|
let { base, menu } = navbarHamburger();
|
|
16
19
|
|
|
@@ -20,20 +23,21 @@
|
|
|
20
23
|
};
|
|
21
24
|
</script>
|
|
22
25
|
|
|
23
|
-
<ToolbarButton {name} onclick={onclick || toggle} {...restProps} class={base({ class: clsx(
|
|
24
|
-
<Menu class={menu({ class: clsx(
|
|
26
|
+
<ToolbarButton {name} onclick={onclick || toggle} {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
27
|
+
<Menu class={menu({ class: clsx(theme?.menu, styling.menu) })} />
|
|
25
28
|
</ToolbarButton>
|
|
26
29
|
|
|
27
30
|
<!--
|
|
28
31
|
@component
|
|
29
32
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
33
|
## Type
|
|
31
|
-
[NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
34
|
+
[NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1102)
|
|
32
35
|
## Props
|
|
33
36
|
@prop children
|
|
34
37
|
@prop onclick
|
|
35
38
|
@prop menuClass
|
|
36
39
|
@prop class: className
|
|
40
|
+
@prop classes
|
|
37
41
|
@prop name = "Open main menu"
|
|
38
42
|
@prop ...restProps
|
|
39
43
|
-->
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
3
3
|
* ## Type
|
|
4
|
-
* [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
4
|
+
* [NavHamburgerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1102)
|
|
5
5
|
* ## Props
|
|
6
6
|
* @prop children
|
|
7
7
|
* @prop onclick
|
|
8
8
|
* @prop menuClass
|
|
9
9
|
* @prop class: className
|
|
10
|
+
* @prop classes
|
|
10
11
|
* @prop name = "Open main menu"
|
|
11
12
|
* @prop ...restProps
|
|
12
13
|
*/
|
|
@@ -14,7 +15,67 @@ declare const NavHamburger: import("svelte").Component<import("../toolbar/theme"
|
|
|
14
15
|
href?: undefined;
|
|
15
16
|
} & import("svelte/elements").HTMLButtonAttributes & {
|
|
16
17
|
name?: string;
|
|
17
|
-
} & {
|
|
18
|
+
} & import("tailwind-variants").VariantProps<import("tailwind-variants").TVReturnType<{
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
21
|
+
base?: import("tailwind-variants").ClassValue;
|
|
22
|
+
menu?: import("tailwind-variants").ClassValue;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
} | {
|
|
26
|
+
[x: string]: {
|
|
27
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
28
|
+
base?: import("tailwind-variants").ClassValue;
|
|
29
|
+
menu?: import("tailwind-variants").ClassValue;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
} | {}, {
|
|
33
|
+
base: string;
|
|
34
|
+
menu: string;
|
|
35
|
+
}, undefined, {
|
|
36
|
+
[key: string]: {
|
|
37
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
38
|
+
base?: import("tailwind-variants").ClassValue;
|
|
39
|
+
menu?: import("tailwind-variants").ClassValue;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
} | {}, {
|
|
43
|
+
base: string;
|
|
44
|
+
menu: string;
|
|
45
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
46
|
+
base: string;
|
|
47
|
+
menu: string;
|
|
48
|
+
}, undefined, unknown, unknown, undefined>>> & import("../theme/themeUtils").Classes<import("tailwind-variants").TVReturnType<{
|
|
49
|
+
[key: string]: {
|
|
50
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
51
|
+
base?: import("tailwind-variants").ClassValue;
|
|
52
|
+
menu?: import("tailwind-variants").ClassValue;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
} | {
|
|
56
|
+
[x: string]: {
|
|
57
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
58
|
+
base?: import("tailwind-variants").ClassValue;
|
|
59
|
+
menu?: import("tailwind-variants").ClassValue;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
} | {}, {
|
|
63
|
+
base: string;
|
|
64
|
+
menu: string;
|
|
65
|
+
}, undefined, {
|
|
66
|
+
[key: string]: {
|
|
67
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
68
|
+
base?: import("tailwind-variants").ClassValue;
|
|
69
|
+
menu?: import("tailwind-variants").ClassValue;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | {}, {
|
|
73
|
+
base: string;
|
|
74
|
+
menu: string;
|
|
75
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
76
|
+
base: string;
|
|
77
|
+
menu: string;
|
|
78
|
+
}, undefined, unknown, unknown, undefined>>> & {
|
|
18
79
|
href?: undefined;
|
|
19
80
|
menuClass?: import("svelte/elements").ClassValue;
|
|
20
81
|
}, {}, "">;
|
package/dist/navbar/NavLi.svelte
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
let { children, activeClass, nonActiveClass, class: className, ...restProps }: NavLiProps = $props();
|
|
11
11
|
|
|
12
|
-
const theme = getTheme("
|
|
12
|
+
const theme = getTheme("navbarLi");
|
|
13
13
|
|
|
14
14
|
const activeUrlStore = getContext("activeUrl") as { subscribe: (callback: (value: string) => void) => void };
|
|
15
15
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
@component
|
|
39
39
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
40
|
## Type
|
|
41
|
-
[NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
41
|
+
[NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1123)
|
|
42
42
|
## Props
|
|
43
43
|
@prop children
|
|
44
44
|
@prop activeClass
|
|
@@ -2,7 +2,7 @@ import type { NavLiProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [NavLiProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1123)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeClass
|
package/dist/navbar/NavUl.svelte
CHANGED
|
@@ -5,15 +5,18 @@
|
|
|
5
5
|
import { writable } from "svelte/store";
|
|
6
6
|
import { slide, fly, fade, scale } from "svelte/transition";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { navbarUl
|
|
8
|
+
import { navbarUl } from "./theme";
|
|
9
9
|
import type { NavbarState, NavUlProps } from "../types";
|
|
10
|
-
import { getTheme } from "../theme/themeUtils";
|
|
10
|
+
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
11
11
|
|
|
12
12
|
let navState = getContext<NavbarState>("navState");
|
|
13
13
|
|
|
14
|
-
let { children, activeUrl, ulClass, slideParams, transition = slide, transitionParams, activeClass, nonActiveClass, respectMotionPreference = true, class: clasName, ...restProps }: NavUlProps = $props();
|
|
14
|
+
let { children, activeUrl, ulClass, slideParams, transition = slide, transitionParams, activeClass, nonActiveClass, respectMotionPreference = true, class: clasName, classes, ...restProps }: NavUlProps = $props();
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
warnThemeDeprecation("NavUl", { ulClass, activeClass, nonActiveClass }, { ulClass: "ul", activeClass: "active", nonActiveClass: "nonActive" });
|
|
17
|
+
const styling = $derived(classes ?? { ul: ulClass, active: activeClass, nonActive: nonActiveClass });
|
|
18
|
+
|
|
19
|
+
const theme = getTheme("navbarUl");
|
|
17
20
|
|
|
18
21
|
// Default parameters for different transitions
|
|
19
22
|
const getDefaultParams = (transitionFn: any) => {
|
|
@@ -43,8 +46,8 @@
|
|
|
43
46
|
let { base, ul, active, nonActive } = $derived(navbarUl({ hidden }));
|
|
44
47
|
|
|
45
48
|
$effect(() => {
|
|
46
|
-
navState.activeClass = active({ class: clsx(
|
|
47
|
-
navState.nonActiveClass = nonActive({ class: clsx(
|
|
49
|
+
navState.activeClass = active({ class: clsx(theme?.active, styling.active) });
|
|
50
|
+
navState.nonActiveClass = nonActive({ class: clsx(theme?.nonActive, styling.nonActive) });
|
|
48
51
|
});
|
|
49
52
|
|
|
50
53
|
$effect(() => {
|
|
@@ -52,8 +55,8 @@
|
|
|
52
55
|
});
|
|
53
56
|
setContext("activeUrl", activeUrlStore);
|
|
54
57
|
|
|
55
|
-
let divCls: string = $derived(base({ class: clsx(
|
|
56
|
-
let ulCls: string = $derived(ul({ class: clsx(
|
|
58
|
+
let divCls: string = $derived(base({ class: clsx(theme?.base, clasName) }));
|
|
59
|
+
let ulCls: string = $derived(ul({ class: clsx(theme?.ul, styling.ul) }));
|
|
57
60
|
</script>
|
|
58
61
|
|
|
59
62
|
{#if !hidden}
|
|
@@ -74,7 +77,7 @@
|
|
|
74
77
|
@component
|
|
75
78
|
[Go to docs](https://flowbite-svelte.com/)
|
|
76
79
|
## Type
|
|
77
|
-
[NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
80
|
+
[NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1108)
|
|
78
81
|
## Props
|
|
79
82
|
@prop children
|
|
80
83
|
@prop activeUrl
|
|
@@ -86,5 +89,6 @@
|
|
|
86
89
|
@prop nonActiveClass
|
|
87
90
|
@prop respectMotionPreference = true
|
|
88
91
|
@prop class: clasName
|
|
92
|
+
@prop classes
|
|
89
93
|
@prop ...restProps
|
|
90
94
|
-->
|
|
@@ -2,7 +2,7 @@ import type { NavUlProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1108)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeUrl
|
|
@@ -14,6 +14,7 @@ import type { NavUlProps } from "../types";
|
|
|
14
14
|
* @prop nonActiveClass
|
|
15
15
|
* @prop respectMotionPreference = true
|
|
16
16
|
* @prop class: clasName
|
|
17
|
+
* @prop classes
|
|
17
18
|
* @prop ...restProps
|
|
18
19
|
*/
|
|
19
20
|
declare const NavUl: import("svelte").Component<NavUlProps, {}, "">;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@component
|
|
46
46
|
[Go to docs](https://flowbite-svelte.com/)
|
|
47
47
|
## Type
|
|
48
|
-
[NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
48
|
+
[NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1089)
|
|
49
49
|
## Props
|
|
50
50
|
@prop children
|
|
51
51
|
@prop fluid
|
|
@@ -2,7 +2,7 @@ import type { NavbarProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1089)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop fluid
|
package/dist/navbar/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export { default as NavLi } from "./NavLi.svelte";
|
|
|
4
4
|
export { default as NavUl } from "./NavUl.svelte";
|
|
5
5
|
export { default as NavHamburger } from "./NavHamburger.svelte";
|
|
6
6
|
export { default as NavContainer } from "./NavContainer.svelte";
|
|
7
|
-
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger,
|
|
7
|
+
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger, navbarContainer } from "./theme";
|
package/dist/navbar/index.js
CHANGED
|
@@ -4,4 +4,4 @@ export { default as NavLi } from "./NavLi.svelte";
|
|
|
4
4
|
export { default as NavUl } from "./NavUl.svelte";
|
|
5
5
|
export { default as NavHamburger } from "./NavHamburger.svelte";
|
|
6
6
|
export { default as NavContainer } from "./NavContainer.svelte";
|
|
7
|
-
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger } from "./theme";
|
|
7
|
+
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger, navbarContainer } from "./theme";
|
package/dist/navbar/theme.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { Classes } from "../theme/themeUtils";
|
|
3
|
+
export type NavbarUlVariants = VariantProps<typeof navbarUl> & Classes<typeof navbarUl>;
|
|
4
|
+
export type NavbarHamburgerVariants = VariantProps<typeof navbarHamburger> & Classes<typeof navbarHamburger>;
|
|
2
5
|
export declare const navbar: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "relative w-full px-2 py-2.5 sm:px-4", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "relative w-full px-2 py-2.5 sm:px-4", unknown, unknown, undefined>>;
|
|
3
|
-
export type NavbarTheme = ClassValue;
|
|
4
6
|
export declare const navbarBrand: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-center", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex items-center", unknown, unknown, undefined>>;
|
|
5
|
-
export type NavbarBrandTheme = ClassValue;
|
|
6
7
|
export declare const navbarContainer: import("tailwind-variants").TVReturnType<{
|
|
7
8
|
fluid: {
|
|
8
9
|
true: string;
|
|
@@ -65,8 +66,6 @@ export declare const navbarUl: import("tailwind-variants").TVReturnType<{
|
|
|
65
66
|
active: string;
|
|
66
67
|
nonActive: string;
|
|
67
68
|
}, undefined, unknown, unknown, undefined>>;
|
|
68
|
-
export type NavbarUlSlots = keyof typeof navbarUl.slots;
|
|
69
|
-
export type NavbarUlTheme = Partial<Record<NavbarUlSlots, ClassValue>>;
|
|
70
69
|
export declare const navbarLi: import("tailwind-variants").TVReturnType<{
|
|
71
70
|
hidden: {
|
|
72
71
|
false: string;
|
|
@@ -80,7 +79,6 @@ export declare const navbarLi: import("tailwind-variants").TVReturnType<{
|
|
|
80
79
|
false: string;
|
|
81
80
|
};
|
|
82
81
|
}, undefined, "block py-2 pe-4 ps-3 md:p-2 rounded-sm md:border-0", unknown, unknown, undefined>>;
|
|
83
|
-
export type NavbarLiTheme = ClassValue;
|
|
84
82
|
export declare const navbarHamburger: import("tailwind-variants").TVReturnType<{
|
|
85
83
|
[key: string]: {
|
|
86
84
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -112,5 +110,3 @@ export declare const navbarHamburger: import("tailwind-variants").TVReturnType<{
|
|
|
112
110
|
base: string;
|
|
113
111
|
menu: string;
|
|
114
112
|
}, undefined, unknown, unknown, undefined>>;
|
|
115
|
-
export type NavbarHamburgerSlots = keyof typeof navbarHamburger.slots;
|
|
116
|
-
export type NavbarHamburgerTheme = Partial<Record<NavbarHamburgerSlots, ClassValue>>;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@component
|
|
55
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
56
|
## Type
|
|
57
|
-
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
|
|
58
58
|
## Props
|
|
59
59
|
@prop pages = []
|
|
60
60
|
@prop previous
|
|
@@ -2,7 +2,7 @@ import type { PaginationProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop pages = []
|
|
8
8
|
* @prop previous
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@component
|
|
51
51
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
52
|
## Type
|
|
53
|
-
[PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
53
|
+
[PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1159)
|
|
54
54
|
## Props
|
|
55
55
|
@prop children
|
|
56
56
|
@prop size
|
|
@@ -2,7 +2,7 @@ import type { PaginationButtonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1159)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { paginationItem
|
|
3
|
+
import { paginationItem } from ".";
|
|
4
4
|
import type { PaginationItemProps } from "../types";
|
|
5
5
|
import { getContext } from "svelte";
|
|
6
6
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1184)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@prop size
|
|
@@ -2,7 +2,7 @@ import type { PaginationItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1184)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size
|