flowbite-svelte 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/Accordion.svelte +8 -9
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +10 -11
- package/dist/accordion/AccordionItem.svelte.d.ts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.js +1 -1
- package/dist/accordion/theme.d.ts +18 -3
- package/dist/accordion/theme.js +6 -2
- package/dist/alert/Alert.svelte +8 -8
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +1 -0
- package/dist/avatar/Avatar.svelte +8 -9
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +1 -0
- package/dist/badge/Badge.svelte +9 -11
- package/dist/badge/Badge.svelte.d.ts +1 -1
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +5 -3
- package/dist/badge/theme.js +1 -1
- package/dist/banner/Banner.svelte +9 -5
- package/dist/banner/Banner.svelte.d.ts +1 -1
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +2 -0
- package/dist/bottom-navigation/BottomNav.svelte +8 -4
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +11 -6
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +9 -4
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +8 -4
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/index.js +1 -1
- package/dist/bottom-navigation/theme.d.ts +10 -2
- package/dist/bottom-navigation/theme.js +2 -2
- package/dist/breadcrumb/Breadcrumb.svelte +7 -10
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +13 -10
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/theme.d.ts +33 -22
- package/dist/breadcrumb/theme.js +18 -12
- package/dist/button-group/ButtonGroup.svelte +5 -2
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/index.d.ts +1 -1
- package/dist/button-group/theme.d.ts +1 -0
- package/dist/buttons/Button.svelte +7 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +8 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +4 -0
- package/dist/card/Card.svelte +9 -6
- package/dist/card/Card.svelte.d.ts +2 -2
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -0
- package/dist/carousel/Carousel.svelte +5 -2
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/{Indicators.svelte → CarouselIndicators.svelte} +8 -5
- package/dist/carousel/{Indicators.svelte.d.ts → CarouselIndicators.svelte.d.ts} +4 -4
- package/dist/carousel/ControlButton.svelte +5 -2
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +6 -3
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +5 -2
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +5 -2
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +5 -2
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/index.d.ts +2 -2
- package/dist/carousel/index.js +2 -2
- package/dist/carousel/theme.d.ts +8 -1
- package/dist/carousel/theme.js +1 -2
- package/dist/clipboard/Clipboard.svelte +6 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +2 -2
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +1 -0
- package/dist/darkmode/DarkMode.svelte +5 -2
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +1 -0
- package/dist/datepicker/Datepicker.svelte +25 -20
- package/dist/datepicker/Datepicker.svelte.d.ts +2 -2
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +2 -0
- package/dist/device-mockups/Android.svelte +1 -1
- package/dist/device-mockups/Android.svelte.d.ts +1 -1
- package/dist/device-mockups/DefaultMockup.svelte +1 -1
- package/dist/device-mockups/DefaultMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Desktop.svelte +1 -1
- package/dist/device-mockups/Desktop.svelte.d.ts +1 -1
- package/dist/device-mockups/DeviceMockup.svelte +1 -1
- package/dist/device-mockups/DeviceMockup.svelte.d.ts +1 -1
- package/dist/device-mockups/Ios.svelte +1 -1
- package/dist/device-mockups/Ios.svelte.d.ts +1 -1
- package/dist/device-mockups/Laptop.svelte +1 -1
- package/dist/device-mockups/Laptop.svelte.d.ts +1 -1
- package/dist/device-mockups/Smartwatch.svelte +1 -1
- package/dist/device-mockups/Smartwatch.svelte.d.ts +1 -1
- package/dist/device-mockups/Tablet.svelte +1 -1
- package/dist/device-mockups/Tablet.svelte.d.ts +1 -1
- package/dist/device-mockups/theme.d.ts +21 -21
- package/dist/drawer/Drawer.svelte +8 -5
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +8 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +16 -12
- package/dist/drawer/theme.js +4 -4
- package/dist/dropdown/Dropdown.svelte +5 -2
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +5 -2
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +5 -2
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +5 -2
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +6 -3
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +7 -0
- package/dist/footer/Footer.svelte +5 -2
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +8 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +8 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +5 -2
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +8 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +5 -2
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +18 -10
- package/dist/footer/theme.js +6 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte +8 -5
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +4 -1
- package/dist/forms/button-toggle/CheckIcon.svelte +1 -1
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/index.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +152 -144
- package/dist/forms/button-toggle/theme.js +65 -63
- package/dist/forms/checkbox/Checkbox.svelte +8 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +5 -2
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +3 -0
- package/dist/forms/dropzone/Dropzone.svelte +5 -2
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/dropzone/theme.d.ts +1 -0
- package/dist/forms/fileupload/Fileupload.svelte +8 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/index.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +2 -0
- package/dist/forms/floating-label/FloatingLabelInput.svelte +11 -8
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/index.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +5 -3
- package/dist/forms/floating-label/theme.js +1 -1
- package/dist/forms/helper/Helper.svelte +5 -2
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/index.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +1 -0
- package/dist/forms/input-addon/InputAddon.svelte +6 -2
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +13 -10
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +5 -3
- package/dist/forms/input-field/theme.js +1 -1
- package/dist/forms/label/Label.svelte +5 -2
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/index.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +1 -0
- package/dist/forms/phoneinput/PhoneInput.svelte +11 -8
- package/dist/forms/phoneinput/PhoneInput.svelte.d.ts +1 -1
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/theme.d.ts +2 -0
- package/dist/forms/radio/Radio.svelte +6 -3
- package/dist/forms/radio/RadioButton.svelte +4 -1
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/theme.d.ts +3 -0
- package/dist/forms/range/Range.svelte +5 -2
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +1 -0
- package/dist/forms/search/Search.svelte +12 -9
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/index.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +5 -3
- package/dist/forms/search/theme.js +1 -1
- package/dist/forms/select/MultiSelect.svelte +7 -4
- package/dist/forms/select/Select.svelte +8 -5
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/index.js +1 -1
- package/dist/forms/select/theme.d.ts +7 -3
- package/dist/forms/select/theme.js +1 -1
- package/dist/forms/tags/Tags.svelte +10 -7
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/index.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +11 -9
- package/dist/forms/tags/theme.js +1 -1
- package/dist/forms/textarea/Textarea.svelte +14 -11
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/index.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +5 -3
- package/dist/forms/textarea/theme.js +1 -1
- package/dist/forms/timepicker/Timepicker.svelte +107 -64
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -0
- package/dist/forms/timepicker/index.js +1 -0
- package/dist/forms/timepicker/theme.d.ts +191 -0
- package/dist/forms/timepicker/theme.js +72 -0
- package/dist/forms/toggle/Toggle.svelte +8 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/index.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -0
- package/dist/gallery/Gallery.svelte +7 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +5 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -2
- package/dist/indicator/Indicator.svelte +6 -3
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +121 -360
- package/dist/indicator/theme.js +48 -56
- package/dist/kbd/Kbd.svelte +6 -2
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +1 -0
- package/dist/list-group/Listgroup.svelte +5 -2
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +7 -4
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/index.d.ts +1 -1
- package/dist/list-group/theme.d.ts +2 -0
- package/dist/mega-menu/MegaMenu.svelte +9 -6
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/index.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +2 -0
- package/dist/modal/Modal.svelte +13 -10
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/modal/index.d.ts +2 -3
- package/dist/modal/index.js +2 -3
- package/dist/modal/theme.d.ts +5 -3
- package/dist/modal/theme.js +1 -1
- package/dist/navbar/Menu.svelte +6 -2
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +7 -4
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +7 -4
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +9 -6
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +7 -4
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +11 -8
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +6 -4
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +7 -7
- package/dist/navbar/index.js +7 -7
- package/dist/navbar/theme.d.ts +12 -5
- package/dist/navbar/theme.js +5 -5
- package/dist/pagination/Pagination.svelte +7 -3
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +18 -12
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +7 -4
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +13 -11
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/index.js +1 -1
- package/dist/pagination/theme.d.ts +7 -2
- package/dist/pagination/theme.js +2 -2
- package/dist/popover/Popover.svelte +10 -7
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/index.d.ts +2 -3
- package/dist/popover/index.js +2 -3
- package/dist/popover/theme.d.ts +2 -3
- package/dist/popover/theme.js +1 -2
- package/dist/progress/Progressbar.svelte +12 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +13 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +1 -1
- package/dist/progress/theme.d.ts +4 -0
- package/dist/rating/AdvancedRating.svelte +12 -9
- package/dist/rating/AdvancedRating.svelte.d.ts +1 -1
- package/dist/rating/CustomIcon.svelte +1 -1
- package/dist/rating/CustomIcon.svelte.d.ts +1 -1
- package/dist/rating/Heart.svelte +1 -1
- package/dist/rating/Heart.svelte.d.ts +1 -1
- package/dist/rating/Rating.svelte +8 -4
- package/dist/rating/Rating.svelte.d.ts +1 -1
- package/dist/rating/RatingComment.svelte +1 -1
- package/dist/rating/RatingComment.svelte.d.ts +1 -1
- package/dist/rating/Review.svelte +14 -11
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +14 -10
- package/dist/rating/ScoreRating.svelte.d.ts +1 -1
- package/dist/rating/Star.svelte +1 -1
- package/dist/rating/Star.svelte.d.ts +1 -1
- package/dist/rating/Thumbup.svelte +1 -1
- package/dist/rating/Thumbup.svelte.d.ts +1 -1
- package/dist/rating/index.d.ts +10 -11
- package/dist/rating/index.js +10 -11
- package/dist/rating/theme.d.ts +16 -14
- package/dist/rating/theme.js +2 -3
- package/dist/sidebar/Sidebar.svelte +12 -9
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +10 -7
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +8 -4
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +11 -7
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +13 -10
- package/dist/sidebar/SidebarDropdownWrapper.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarGroup.svelte +1 -1
- package/dist/sidebar/SidebarGroup.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarItem.svelte +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/index.d.ts +10 -11
- package/dist/sidebar/index.js +10 -11
- package/dist/sidebar/theme.d.ts +22 -13
- package/dist/sidebar/theme.js +4 -4
- package/dist/skeleton/CardPlaceholder.svelte +17 -14
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +17 -14
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +12 -9
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +15 -11
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +14 -10
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +32 -28
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +7 -3
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +8 -4
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/index.d.ts +9 -10
- package/dist/skeleton/index.js +9 -10
- package/dist/skeleton/theme.d.ts +29 -15
- package/dist/skeleton/theme.js +8 -9
- package/dist/speed-dial/SpeedDial.svelte +9 -9
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +9 -8
- package/dist/speed-dial/SpeedDialButton.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte +1 -1
- package/dist/speed-dial/SpeedDialTrigger.svelte.d.ts +1 -1
- package/dist/speed-dial/index.d.ts +4 -5
- package/dist/speed-dial/index.js +4 -5
- package/dist/speed-dial/theme.d.ts +8 -4
- package/dist/speed-dial/theme.js +2 -2
- package/dist/spinner/Spinner.svelte +6 -3
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +2 -3
- package/dist/spinner/index.js +2 -3
- package/dist/spinner/theme.d.ts +1 -0
- package/dist/stepindicator/StepIndicator.svelte +28 -49
- package/dist/stepindicator/StepIndicator.svelte.d.ts +3 -3
- package/dist/stepindicator/index.d.ts +1 -0
- package/dist/stepindicator/index.js +1 -0
- package/dist/stepindicator/theme.d.ts +246 -0
- package/dist/stepindicator/theme.js +103 -0
- package/dist/stepper/BreadcrumbStepper.svelte +15 -11
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +9 -9
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +13 -11
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +15 -13
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +9 -9
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +9 -10
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/index.js +1 -1
- package/dist/stepper/theme.d.ts +303 -261
- package/dist/stepper/theme.js +198 -186
- package/dist/table/Table.svelte +8 -6
- package/dist/table/Table.svelte.d.ts +2 -2
- package/dist/table/TableBody.svelte +6 -2
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +7 -4
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +8 -5
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +8 -5
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +7 -4
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +35 -30
- package/dist/table/TableSearch.svelte.d.ts +8 -8
- package/dist/table/index.d.ts +8 -9
- package/dist/table/index.js +8 -9
- package/dist/table/theme.d.ts +192 -4
- package/dist/table/theme.js +68 -4
- package/dist/tabs/TabItem.svelte +8 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +9 -6
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/index.d.ts +3 -4
- package/dist/tabs/index.js +3 -4
- package/dist/tabs/theme.d.ts +4 -0
- package/dist/theme/ThemeProvider.svelte +30 -0
- package/dist/theme/ThemeProvider.svelte.d.ts +17 -0
- package/dist/theme/index.d.ts +0 -10296
- package/dist/theme/index.js +2 -119
- package/dist/theme/themeUtils.d.ts +2 -0
- package/dist/theme/themeUtils.js +6 -0
- package/dist/timeline/Activity.svelte +6 -3
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +15 -11
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +11 -5
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +13 -8
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +6 -2
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +13 -9
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/index.d.ts +7 -8
- package/dist/timeline/index.js +7 -8
- package/dist/timeline/theme.d.ts +25 -15
- package/dist/timeline/theme.js +3 -3
- package/dist/toast/Toast.svelte +10 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/index.d.ts +2 -3
- package/dist/toast/index.js +2 -3
- package/dist/toast/theme.d.ts +2 -0
- package/dist/toolbar/Toolbar.svelte +8 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +6 -2
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +6 -2
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/index.d.ts +4 -5
- package/dist/toolbar/index.js +4 -5
- package/dist/toolbar/theme.d.ts +4 -0
- package/dist/tooltip/Tooltip.svelte +7 -3
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +2 -3
- package/dist/tooltip/index.js +2 -3
- package/dist/tooltip/theme.d.ts +2 -0
- package/dist/types.d.ts +25 -25
- package/dist/types.js +1 -1
- package/dist/typography/anchor/A.svelte +7 -3
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +2 -3
- package/dist/typography/anchor/index.js +2 -3
- package/dist/typography/anchor/theme.d.ts +1 -0
- package/dist/typography/blockquote/Blockquote.svelte +6 -2
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +1 -0
- package/dist/typography/descriptionlist/DescriptionList.svelte +7 -3
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +2 -3
- package/dist/typography/descriptionlist/index.js +2 -3
- package/dist/typography/descriptionlist/theme.d.ts +1 -0
- package/dist/typography/heading/Heading.svelte +7 -3
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +2 -3
- package/dist/typography/heading/index.js +2 -3
- package/dist/typography/heading/theme.d.ts +1 -0
- package/dist/typography/hr/Hr.svelte +10 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/index.d.ts +2 -3
- package/dist/typography/hr/index.js +2 -3
- package/dist/typography/hr/theme.d.ts +2 -0
- package/dist/typography/img/EnhancedImg.svelte +10 -6
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +10 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/index.d.ts +3 -4
- package/dist/typography/img/index.js +3 -4
- package/dist/typography/img/theme.d.ts +2 -0
- package/dist/typography/layout/Layout.svelte +6 -2
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +2 -3
- package/dist/typography/layout/index.js +2 -3
- package/dist/typography/layout/theme.d.ts +1 -0
- package/dist/typography/list/Li.svelte +6 -3
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +6 -2
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/index.d.ts +3 -4
- package/dist/typography/list/index.js +3 -4
- package/dist/typography/list/theme.d.ts +1 -0
- package/dist/typography/mark/Mark.svelte +6 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +2 -3
- package/dist/typography/mark/index.js +2 -3
- package/dist/typography/mark/theme.d.ts +1 -0
- package/dist/typography/paragraph/P.svelte +6 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +2 -3
- package/dist/typography/paragraph/index.js +2 -3
- package/dist/typography/paragraph/theme.d.ts +1 -0
- package/dist/typography/secondary/Secondary.svelte +6 -2
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +2 -3
- package/dist/typography/secondary/index.js +2 -3
- package/dist/typography/secondary/theme.d.ts +1 -0
- package/dist/typography/span/Span.svelte +6 -2
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +2 -3
- package/dist/typography/span/index.js +2 -3
- package/dist/typography/span/theme.d.ts +1 -0
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/CloseButton.svelte +1 -1
- package/dist/utils/CloseButton.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +6 -2
- package/dist/video/Video.svelte.d.ts +1 -1
- package/dist/video/index.d.ts +1 -2
- package/dist/video/index.js +1 -2
- package/package.json +9 -12
- package/dist/chart/Chart.svelte +0 -45
- package/dist/chart/Chart.svelte.d.ts +0 -13
- package/dist/chart/chart.css +0 -166
- package/dist/chart/index.d.ts +0 -1
- package/dist/chart/index.js +0 -1
- package/dist/forms/button-toggle/button-toggle.txt +0 -25
- package/dist/theme/Theme.svelte +0 -60
- package/dist/theme/Theme.svelte.d.ts +0 -12
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { dropdownDivider } from ".";
|
|
3
3
|
import { type DropdownDividerProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { class: className, ...restProps }: DropdownDividerProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme("dropdownDivider");
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
|
-
<div {...restProps} class={cn(dropdownDivider(), className)}></div>
|
|
11
|
+
<div {...restProps} class={cn(dropdownDivider(), className, theme)}></div>
|
|
9
12
|
|
|
10
13
|
<!--
|
|
11
14
|
@component
|
|
12
15
|
[Go to docs](https://flowbite-svelte.com/)
|
|
13
16
|
## Type
|
|
14
|
-
[DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
17
|
+
[DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L602)
|
|
15
18
|
## Props
|
|
16
19
|
@prop class: className
|
|
17
20
|
@prop ...restProps
|
|
@@ -2,7 +2,7 @@ import { type DropdownDividerProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropdownDividerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L602)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop ...restProps
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { dropdownGroup } from ".";
|
|
3
3
|
import { type DropdownGroupProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { children, class: className, ...restProps }: DropdownGroupProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme("dropdownGroup");
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
|
-
<ul {...restProps} class={cn(dropdownGroup(), className)}>
|
|
11
|
+
<ul {...restProps} class={cn(dropdownGroup(), className, theme)}>
|
|
9
12
|
{@render children()}
|
|
10
13
|
</ul>
|
|
11
14
|
|
|
@@ -13,7 +16,7 @@
|
|
|
13
16
|
@component
|
|
14
17
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
18
|
## Type
|
|
16
|
-
[DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
19
|
+
[DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L619)
|
|
17
20
|
## Props
|
|
18
21
|
@prop children
|
|
19
22
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type DropdownGroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropdownGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L619)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { dropdownHeader } from ".";
|
|
3
3
|
import { type DropdownHeaderProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { children, class: className, ...restProps }: DropdownHeaderProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme("dropdownHeader");
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
|
-
<div {...restProps} class={cn(dropdownHeader(), className)}>
|
|
11
|
+
<div {...restProps} class={cn(dropdownHeader(), className, theme)}>
|
|
9
12
|
{@render children()}
|
|
10
13
|
</div>
|
|
11
14
|
|
|
@@ -13,7 +16,7 @@
|
|
|
13
16
|
@component
|
|
14
17
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
18
|
## Type
|
|
16
|
-
[DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
19
|
+
[DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L604)
|
|
17
20
|
## Props
|
|
18
21
|
@prop children
|
|
19
22
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import { type DropdownHeaderProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropdownHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L604)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
|
-
import { dropdownItem } from ".";
|
|
3
|
+
import { dropdownItem, type DropdownItemTheme } from ".";
|
|
4
4
|
import { type DropdownItemProps, cn } from "..";
|
|
5
|
+
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { aClass, children, activeClass, liClass, class: className, ...restProps }: DropdownItemProps = $props();
|
|
7
8
|
|
|
9
|
+
const theme = getTheme("dropdownItem");
|
|
10
|
+
|
|
8
11
|
const activeUrlStore = getContext("activeUrl") as { subscribe: (callback: (value: string) => void) => void };
|
|
9
12
|
let sidebarUrl = $state("");
|
|
10
13
|
activeUrlStore.subscribe((value) => {
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
});
|
|
18
21
|
|
|
19
22
|
const { anchor, activeAnchor } = dropdownItem();
|
|
20
|
-
let finalClass = $derived([active ? cn(activeAnchor(), activeClass, className) : cn(anchor(), aClass, className)]);
|
|
23
|
+
let finalClass = $derived([active ? cn(activeAnchor(), activeClass, className, (theme as DropdownItemTheme)?.activeAnchor) : cn(anchor(), aClass, className, (theme as DropdownItemTheme)?.anchor)]);
|
|
21
24
|
</script>
|
|
22
25
|
|
|
23
26
|
<li class={cn(liClass)}>
|
|
@@ -40,7 +43,7 @@
|
|
|
40
43
|
@component
|
|
41
44
|
[Go to docs](https://flowbite-svelte.com/)
|
|
42
45
|
## Type
|
|
43
|
-
[DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
46
|
+
[DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L610)
|
|
44
47
|
## Props
|
|
45
48
|
@prop aClass
|
|
46
49
|
@prop children
|
|
@@ -2,7 +2,7 @@ import { type DropdownItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [DropdownItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L610)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop aClass
|
|
8
8
|
* @prop children
|
package/dist/dropdown/index.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export { default as DropdownDivider } from "./DropdownDivider.svelte";
|
|
|
3
3
|
export { default as DropdownGroup } from "./DropdownGroup.svelte";
|
|
4
4
|
export { default as DropdownHeader } from "./DropdownHeader.svelte";
|
|
5
5
|
export { default as DropdownItem } from "./DropdownItem.svelte";
|
|
6
|
-
export { dropdown, dropdownDivider, dropdownGroup, dropdownHeader, dropdownItem } from "./theme";
|
|
6
|
+
export { dropdown, dropdownDivider, dropdownGroup, dropdownHeader, dropdownItem, type DropdownTheme, type DropdownDividerTheme, type DropdownGroupTheme, type DropdownHeaderTheme, type DropdownItemTheme } from "./theme";
|
package/dist/dropdown/theme.d.ts
CHANGED
|
@@ -29,8 +29,12 @@ export declare const dropdown: import("tailwind-variants").TVReturnType<{
|
|
|
29
29
|
base: string;
|
|
30
30
|
backdrop: string;
|
|
31
31
|
}, undefined, unknown, unknown, undefined>>;
|
|
32
|
+
export type DropdownSlots = keyof typeof dropdown.slots;
|
|
33
|
+
export type DropdownTheme = Partial<Record<DropdownSlots, string>>;
|
|
32
34
|
export declare const dropdownDivider: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "my-1 h-px bg-gray-100 dark:bg-gray-500", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "my-1 h-px bg-gray-100 dark:bg-gray-500", unknown, unknown, undefined>>;
|
|
35
|
+
export type DropdownDividerTheme = string;
|
|
33
36
|
export declare const dropdownHeader: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "px-4 py-3 text-sm text-gray-900 dark:text-white", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "px-4 py-3 text-sm text-gray-900 dark:text-white", unknown, unknown, undefined>>;
|
|
37
|
+
export type DropdownHeaderTheme = string;
|
|
34
38
|
export declare const dropdownItem: import("tailwind-variants").TVReturnType<{
|
|
35
39
|
[key: string]: {
|
|
36
40
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
@@ -62,4 +66,7 @@ export declare const dropdownItem: import("tailwind-variants").TVReturnType<{
|
|
|
62
66
|
anchor: string;
|
|
63
67
|
activeAnchor: string;
|
|
64
68
|
}, undefined, unknown, unknown, undefined>>;
|
|
69
|
+
export type DropdownItemSlots = keyof typeof dropdownItem.slots;
|
|
70
|
+
export type DropdownItemTheme = Partial<Record<DropdownItemSlots, string>>;
|
|
65
71
|
export declare const dropdownGroup: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "py-2 text-sm text-gray-700 dark:text-gray-200", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "py-2 text-sm text-gray-700 dark:text-gray-200", unknown, unknown, undefined>>;
|
|
72
|
+
export type DropdownGroupTheme = string;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footer } from ".";
|
|
3
3
|
import { type FooterProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { children, footerType = "default", class: className, ...restProps }: FooterProps = $props();
|
|
6
7
|
|
|
8
|
+
const theme = getTheme("footer");
|
|
9
|
+
|
|
7
10
|
const footerCls = $derived(footer({ footerType }));
|
|
8
11
|
</script>
|
|
9
12
|
|
|
10
|
-
<footer {...restProps} class={cn(footerCls, className)}>
|
|
13
|
+
<footer {...restProps} class={cn(footerCls, className, theme)}>
|
|
11
14
|
{@render children()}
|
|
12
15
|
</footer>
|
|
13
16
|
|
|
@@ -15,7 +18,7 @@
|
|
|
15
18
|
@component
|
|
16
19
|
[Go to docs](https://flowbite-svelte.com/)
|
|
17
20
|
## Type
|
|
18
|
-
[FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
21
|
+
[FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L626)
|
|
19
22
|
## Props
|
|
20
23
|
@prop children
|
|
21
24
|
@prop footerType = "default"
|
|
@@ -2,7 +2,7 @@ import { type FooterProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L626)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop footerType = "default"
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { footerBrand } from ".";
|
|
2
|
+
import { footerBrand, type FooterBrandTheme } from ".";
|
|
3
3
|
import { type FooterBrandProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { children, aClass, spanClass, imgClass, href, src, alt, name, ...restProps }: FooterBrandProps = $props();
|
|
6
7
|
|
|
8
|
+
const theme = getTheme("footerBrand");
|
|
9
|
+
|
|
7
10
|
const { base, span, img } = $derived(footerBrand());
|
|
8
11
|
</script>
|
|
9
12
|
|
|
10
13
|
{#if href}
|
|
11
|
-
<a {...restProps} {href} class={cn(base(), aClass)}>
|
|
14
|
+
<a {...restProps} {href} class={cn(base(), aClass, (theme as FooterBrandTheme)?.base)}>
|
|
12
15
|
{#if src}
|
|
13
|
-
<img {src} class={cn(img(), imgClass)} {alt} />
|
|
16
|
+
<img {src} class={cn(img(), imgClass, (theme as FooterBrandTheme)?.img)} {alt} />
|
|
14
17
|
{/if}
|
|
15
18
|
{#if name}
|
|
16
|
-
<span class={cn(span(), spanClass)}>{name}</span>
|
|
19
|
+
<span class={cn(span(), spanClass, (theme as FooterBrandTheme)?.span)}>{name}</span>
|
|
17
20
|
{/if}
|
|
18
21
|
{#if children}
|
|
19
22
|
{@render children()}
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
@component
|
|
28
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
29
32
|
## Type
|
|
30
|
-
[FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L631)
|
|
31
34
|
## Props
|
|
32
35
|
@prop children
|
|
33
36
|
@prop aClass
|
|
@@ -2,7 +2,7 @@ import { type FooterBrandProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L631)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop aClass
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { footerCopyright } from ".";
|
|
2
|
+
import { footerCopyright, type FooterCopyrightTheme } from ".";
|
|
3
3
|
import { type FooterCopyrightProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { spanClass, aClass, href, by, copyrightMessage = "All Rights Reserved.", year, bySpanClass, ...restProps }: FooterCopyrightProps = $props();
|
|
6
7
|
|
|
8
|
+
const theme = getTheme("footerCopyright");
|
|
9
|
+
|
|
7
10
|
if (!year) year = new Date().getFullYear();
|
|
8
11
|
|
|
9
12
|
const { base, link, bySpan } = footerCopyright();
|
|
10
13
|
</script>
|
|
11
14
|
|
|
12
|
-
<span class={cn(base(), spanClass)}>
|
|
15
|
+
<span class={cn(base(), spanClass, (theme as FooterCopyrightTheme)?.base)}>
|
|
13
16
|
© {year}
|
|
14
17
|
{#if href}
|
|
15
|
-
<a {...restProps} {href} class={cn(link(), aClass)}>
|
|
18
|
+
<a {...restProps} {href} class={cn(link(), aClass, (theme as FooterCopyrightTheme)?.link)}>
|
|
16
19
|
{by}
|
|
17
20
|
</a>
|
|
18
21
|
{:else}
|
|
19
|
-
<span class={cn(bySpan(), bySpanClass)}>{by}</span>
|
|
22
|
+
<span class={cn(bySpan(), bySpanClass, (theme as FooterCopyrightTheme)?.bySpan)}>{by}</span>
|
|
20
23
|
{/if}
|
|
21
24
|
{copyrightMessage}
|
|
22
25
|
</span>
|
|
@@ -25,7 +28,7 @@
|
|
|
25
28
|
@component
|
|
26
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
27
30
|
## Type
|
|
28
|
-
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L642)
|
|
29
32
|
## Props
|
|
30
33
|
@prop spanClass
|
|
31
34
|
@prop aClass
|
|
@@ -2,7 +2,7 @@ import { type FooterCopyrightProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterCopyrightProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L642)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop spanClass
|
|
8
8
|
* @prop aClass
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footerIcon } from ".";
|
|
3
3
|
import { type FooterIconProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { children, href, ariaLabel, class: className, ...restProps }: FooterIconProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme("footerIcon");
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
11
|
{#if href}
|
|
9
|
-
<a {...restProps} {href} aria-label={ariaLabel} class={cn(footerIcon(), className)}>
|
|
12
|
+
<a {...restProps} {href} aria-label={ariaLabel} class={cn(footerIcon(), className, theme)}>
|
|
10
13
|
{@render children()}
|
|
11
14
|
</a>
|
|
12
15
|
{:else}
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
@component
|
|
18
21
|
[Go to docs](https://flowbite-svelte.com/)
|
|
19
22
|
## Type
|
|
20
|
-
[FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
23
|
+
[FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L652)
|
|
21
24
|
## Props
|
|
22
25
|
@prop children
|
|
23
26
|
@prop href
|
|
@@ -2,7 +2,7 @@ import { type FooterIconProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L652)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop href
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { footerLink } from ".";
|
|
2
|
+
import { footerLink, type FooterLinkTheme } from ".";
|
|
3
3
|
import { type FooterLinkProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { children, liClass, aClass, href, ...restProps }: FooterLinkProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme("footerLink");
|
|
9
|
+
|
|
6
10
|
const { base, link } = footerLink();
|
|
7
11
|
</script>
|
|
8
12
|
|
|
9
|
-
<li class={cn(base(), liClass)}>
|
|
10
|
-
<a {...restProps} {href} class={cn(link(), aClass)}>
|
|
13
|
+
<li class={cn(base(), liClass, (theme as FooterLinkTheme)?.base)}>
|
|
14
|
+
<a {...restProps} {href} class={cn(link(), aClass, (theme as FooterLinkTheme)?.link)}>
|
|
11
15
|
{@render children()}
|
|
12
16
|
</a>
|
|
13
17
|
</li>
|
|
@@ -16,7 +20,7 @@
|
|
|
16
20
|
@component
|
|
17
21
|
[Go to docs](https://flowbite-svelte.com/)
|
|
18
22
|
## Type
|
|
19
|
-
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
23
|
+
[FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L662)
|
|
20
24
|
## Props
|
|
21
25
|
@prop children
|
|
22
26
|
@prop liClass
|
|
@@ -2,7 +2,7 @@ import { type FooterLinkProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterLinkProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L662)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop liClass
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { footerLinkGroup } from ".";
|
|
3
3
|
import { type FooterLinkGroupProps, cn } from "..";
|
|
4
|
+
import { getTheme } from "../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { class: className, children, ...restProps }: FooterLinkGroupProps = $props();
|
|
7
|
+
|
|
8
|
+
const theme = getTheme("footerLinkGroup");
|
|
6
9
|
</script>
|
|
7
10
|
|
|
8
|
-
<ul {...restProps} class={cn(footerLinkGroup(), className)}>
|
|
11
|
+
<ul {...restProps} class={cn(footerLinkGroup(), className, theme)}>
|
|
9
12
|
{@render children()}
|
|
10
13
|
</ul>
|
|
11
14
|
|
|
@@ -13,7 +16,7 @@
|
|
|
13
16
|
@component
|
|
14
17
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
18
|
## Type
|
|
16
|
-
[FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
19
|
+
[FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L658)
|
|
17
20
|
## Props
|
|
18
21
|
@prop class: className
|
|
19
22
|
@prop children
|
|
@@ -2,7 +2,7 @@ import { type FooterLinkGroupProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [FooterLinkGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L658)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop class: className
|
|
8
8
|
* @prop children
|
package/dist/footer/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export { default as FooterCopyright } from "./FooterCopyright.svelte";
|
|
|
4
4
|
export { default as FooterIcon } from "./FooterIcon.svelte";
|
|
5
5
|
export { default as FooterLink } from "./FooterLink.svelte";
|
|
6
6
|
export { default as FooterLinkGroup } from "./FooterLinkGroup.svelte";
|
|
7
|
-
export { footer, footerBrand, footerCopyright, footerIcon, footerLinkGroup, footerLink } from "./theme";
|
|
7
|
+
export { footer, footerBrand, footerCopyright, footerIcon, footerLinkGroup, footerLink, type FooterTheme, type FooterBrandTheme, type FooterCopyrightTheme, type FooterIconTheme, type FooterLinkGroupTheme, type FooterLinkTheme } from "./theme";
|
package/dist/footer/theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const footer: import("tailwind-variants").TVReturnType<{
|
|
1
|
+
export declare const footer: import("tailwind-variants").TVReturnType<{
|
|
2
2
|
footerType: {
|
|
3
3
|
default: string;
|
|
4
4
|
sitemap: string;
|
|
@@ -23,20 +23,21 @@ declare const footer: import("tailwind-variants").TVReturnType<{
|
|
|
23
23
|
sticky: string;
|
|
24
24
|
};
|
|
25
25
|
}, undefined, "bg-white dark:bg-gray-800", unknown, unknown, undefined>>;
|
|
26
|
-
|
|
26
|
+
export type FooterTheme = string;
|
|
27
|
+
export declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
27
28
|
[key: string]: {
|
|
28
29
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
29
30
|
base?: import("tailwind-variants").ClassValue;
|
|
30
|
-
span?: import("tailwind-variants").ClassValue;
|
|
31
31
|
img?: import("tailwind-variants").ClassValue;
|
|
32
|
+
span?: import("tailwind-variants").ClassValue;
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
35
|
} | {
|
|
35
36
|
[x: string]: {
|
|
36
37
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
37
38
|
base?: import("tailwind-variants").ClassValue;
|
|
38
|
-
span?: import("tailwind-variants").ClassValue;
|
|
39
39
|
img?: import("tailwind-variants").ClassValue;
|
|
40
|
+
span?: import("tailwind-variants").ClassValue;
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
} | {}, {
|
|
@@ -47,8 +48,8 @@ declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
|
47
48
|
[key: string]: {
|
|
48
49
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
49
50
|
base?: import("tailwind-variants").ClassValue;
|
|
50
|
-
span?: import("tailwind-variants").ClassValue;
|
|
51
51
|
img?: import("tailwind-variants").ClassValue;
|
|
52
|
+
span?: import("tailwind-variants").ClassValue;
|
|
52
53
|
};
|
|
53
54
|
};
|
|
54
55
|
} | {}, {
|
|
@@ -60,7 +61,9 @@ declare const footerBrand: import("tailwind-variants").TVReturnType<{
|
|
|
60
61
|
span: string;
|
|
61
62
|
img: string;
|
|
62
63
|
}, undefined, unknown, unknown, undefined>>;
|
|
63
|
-
|
|
64
|
+
export type FooterBrandSlots = keyof typeof footerBrand.slots;
|
|
65
|
+
export type FooterBrandTheme = Partial<Record<FooterBrandSlots, string>>;
|
|
66
|
+
export declare const footerCopyright: import("tailwind-variants").TVReturnType<{
|
|
64
67
|
[key: string]: {
|
|
65
68
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
66
69
|
base?: import("tailwind-variants").ClassValue;
|
|
@@ -97,9 +100,13 @@ declare const footerCopyright: import("tailwind-variants").TVReturnType<{
|
|
|
97
100
|
link: string;
|
|
98
101
|
bySpan: string;
|
|
99
102
|
}, undefined, unknown, unknown, undefined>>;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
declare const
|
|
103
|
+
export type FooterCopyrightSlots = keyof typeof footerCopyright.slots;
|
|
104
|
+
export type FooterCopyrightTheme = Partial<Record<FooterCopyrightSlots, string>>;
|
|
105
|
+
export declare const footerIcon: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-500 hover:text-gray-900 dark:hover:text-white", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-500 hover:text-gray-900 dark:hover:text-white", unknown, unknown, undefined>>;
|
|
106
|
+
export type FooterIconTheme = string;
|
|
107
|
+
export declare const footerLinkGroup: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "text-gray-600 dark:text-gray-400", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "text-gray-600 dark:text-gray-400", unknown, unknown, undefined>>;
|
|
108
|
+
export type FooterLinkGroupTheme = string;
|
|
109
|
+
export declare const footerLink: import("tailwind-variants").TVReturnType<{
|
|
103
110
|
[key: string]: {
|
|
104
111
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
105
112
|
base?: import("tailwind-variants").ClassValue;
|
|
@@ -130,4 +137,5 @@ declare const footerLink: import("tailwind-variants").TVReturnType<{
|
|
|
130
137
|
base: string;
|
|
131
138
|
link: string;
|
|
132
139
|
}, undefined, unknown, unknown, undefined>>;
|
|
133
|
-
export
|
|
140
|
+
export type FooterLinkSlots = keyof typeof footerLink.slots;
|
|
141
|
+
export type FooterLinkTheme = Partial<Record<FooterLinkSlots, string>>;
|
package/dist/footer/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
|
-
const footer = tv({
|
|
2
|
+
export const footer = tv({
|
|
3
3
|
base: "bg-white dark:bg-gray-800",
|
|
4
4
|
variants: {
|
|
5
5
|
footerType: {
|
|
@@ -11,30 +11,29 @@ const footer = tv({
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
const footerBrand = tv({
|
|
14
|
+
export const footerBrand = tv({
|
|
15
15
|
slots: {
|
|
16
16
|
base: "flex items-center",
|
|
17
17
|
span: "self-center text-2xl font-semibold whitespace-nowrap dark:text-white",
|
|
18
18
|
img: "me-3 h-8"
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
const footerCopyright = tv({
|
|
21
|
+
export const footerCopyright = tv({
|
|
22
22
|
slots: {
|
|
23
23
|
base: "block text-sm text-gray-500 sm:text-center dark:text-gray-400",
|
|
24
24
|
link: "hover:underline",
|
|
25
25
|
bySpan: "ms-1"
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
const footerIcon = tv({
|
|
28
|
+
export const footerIcon = tv({
|
|
29
29
|
base: "text-gray-500 hover:text-gray-900 dark:hover:text-white"
|
|
30
30
|
});
|
|
31
|
-
const footerLinkGroup = tv({
|
|
31
|
+
export const footerLinkGroup = tv({
|
|
32
32
|
base: "text-gray-600 dark:text-gray-400"
|
|
33
33
|
});
|
|
34
|
-
const footerLink = tv({
|
|
34
|
+
export const footerLink = tv({
|
|
35
35
|
slots: {
|
|
36
36
|
base: "me-4 last:me-0 md:me-6",
|
|
37
37
|
link: "hover:underline"
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
export { footer, footerBrand, footerCopyright, footerIcon, footerLinkGroup, footerLink };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { getContext } from "svelte";
|
|
3
3
|
import CheckIcon from "./CheckIcon.svelte";
|
|
4
|
-
import { buttonToggle,
|
|
4
|
+
import { buttonToggle, type ButtonToggleTheme } from ".";
|
|
5
5
|
import type { ButtonToggleVariants } from "./theme";
|
|
6
6
|
import { type ButtonToggleProps, type ButtonToggleContext, cn } from "../..";
|
|
7
|
+
import { getTheme } from "../../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
let { value, selected = false, children, iconSlot, color, class: className, iconClass, txtClass, contentClass, ...restProps }: ButtonToggleProps = $props();
|
|
9
10
|
|
|
11
|
+
const theme = getTheme("buttonToggle");
|
|
12
|
+
|
|
10
13
|
const { toggleSelected, isSelected } = getContext<ButtonToggleContext>("button-toggle-group");
|
|
11
14
|
const multiSelect = getContext<boolean>("multiSelect");
|
|
12
15
|
const actualColor = getContext<ButtonToggleVariants["color"]>("buttonToggleColor") ? getContext<ButtonToggleVariants["color"]>("buttonToggleColor") : color ? color : "primary";
|
|
@@ -25,8 +28,8 @@
|
|
|
25
28
|
});
|
|
26
29
|
</script>
|
|
27
30
|
|
|
28
|
-
<button type="button" class={cn(buttonToggle({ selected, color: actualColor, size, roundedSize }), ctxBtnClass, className)} data-selected={selected} onclick={handleClick} role={multiSelect ? "checkbox" : "radio"} aria-checked={selected} {...restProps}>
|
|
29
|
-
<div class={cn(
|
|
31
|
+
<button type="button" class={cn(buttonToggle.button({ selected, color: actualColor, size, roundedSize }), ctxBtnClass, className, (theme as ButtonToggleTheme)?.button)} data-selected={selected} onclick={handleClick} role={multiSelect ? "checkbox" : "radio"} aria-checked={selected} {...restProps}>
|
|
32
|
+
<div class={cn(buttonToggle.content(), contentClass, (theme as ButtonToggleTheme)?.content)}>
|
|
30
33
|
{#if selected}
|
|
31
34
|
{#if iconSlot}
|
|
32
35
|
{@render iconSlot()}
|
|
@@ -34,7 +37,7 @@
|
|
|
34
37
|
<CheckIcon class={cn("absolute left-0 flex-shrink-0 text-green-600", actualIconClass)} />
|
|
35
38
|
{/if}
|
|
36
39
|
{/if}
|
|
37
|
-
<span class={cn(
|
|
40
|
+
<span class={cn(buttonToggle.text({ selected }), txtClass, (theme as ButtonToggleTheme)?.text)}>
|
|
38
41
|
{@render children()}
|
|
39
42
|
</span>
|
|
40
43
|
</div>
|
|
@@ -44,7 +47,7 @@
|
|
|
44
47
|
@component
|
|
45
48
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
49
|
## Type
|
|
47
|
-
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
50
|
+
[ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L368)
|
|
48
51
|
## Props
|
|
49
52
|
@prop value
|
|
50
53
|
@prop selected = false
|
|
@@ -2,7 +2,7 @@ import { type ButtonToggleProps } from "../..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ButtonToggleProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L368)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop value
|
|
8
8
|
* @prop selected = false
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
3
|
import { type ButtonToggleGroupProps, buttonToggleGroup, cn } from "../..";
|
|
4
|
+
import { getTheme } from "../../theme/themeUtils";
|
|
4
5
|
|
|
5
6
|
let { multiSelect = false, name = "toggle-group", value = multiSelect ? [] : null, color, size = "md", roundedSize = "md", onSelect = (val: any) => {}, children, ctxIconClass, ctxBtnClass, class: className, ...restProps }: ButtonToggleGroupProps = $props();
|
|
6
7
|
|
|
8
|
+
const theme = getTheme("buttonToggleGroup");
|
|
9
|
+
|
|
7
10
|
const base = $derived(buttonToggleGroup({ roundedSize }));
|
|
8
11
|
type SelectedValue = string | null | string[];
|
|
9
12
|
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
</script>
|
|
62
65
|
|
|
63
66
|
<div class="inline">
|
|
64
|
-
<div class={cn(base, className)} role={multiSelect ? "group" : "radiogroup"} aria-label={name} {...restProps}>
|
|
67
|
+
<div class={cn(base, className, theme)} role={multiSelect ? "group" : "radiogroup"} aria-label={name} {...restProps}>
|
|
65
68
|
{@render children()}
|
|
66
69
|
</div>
|
|
67
70
|
</div>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@component
|
|
12
12
|
[Go to docs](https://flowbite-svelte.com/)
|
|
13
13
|
## Type
|
|
14
|
-
[CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
14
|
+
[CheckIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L384)
|
|
15
15
|
## Props
|
|
16
16
|
@prop class: className
|
|
17
17
|
@prop ...restProps
|