flowbite-svelte 1.10.5 → 1.10.7
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 +5 -5
- package/dist/accordion/Accordion.svelte.d.ts +1 -1
- package/dist/accordion/AccordionItem.svelte +16 -10
- package/dist/accordion/AccordionItem.svelte.d.ts +2 -1
- package/dist/accordion/theme.d.ts +7 -2
- package/dist/alert/Alert.svelte +11 -13
- package/dist/alert/Alert.svelte.d.ts +1 -1
- package/dist/alert/theme.d.ts +2 -1
- package/dist/avatar/Avatar.svelte +10 -12
- package/dist/avatar/Avatar.svelte.d.ts +1 -1
- package/dist/avatar/theme.d.ts +4 -1
- package/dist/badge/Badge.svelte +13 -7
- package/dist/badge/Badge.svelte.d.ts +2 -1
- package/dist/badge/theme.d.ts +4 -2
- package/dist/banner/Banner.svelte +12 -7
- package/dist/banner/Banner.svelte.d.ts +2 -1
- package/dist/banner/theme.d.ts +4 -2
- package/dist/bottom-navigation/BottomNav.svelte +17 -11
- package/dist/bottom-navigation/BottomNav.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeader.svelte +13 -7
- package/dist/bottom-navigation/BottomNavHeader.svelte.d.ts +3 -1
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte +5 -4
- package/dist/bottom-navigation/BottomNavHeaderItem.svelte.d.ts +1 -1
- package/dist/bottom-navigation/BottomNavItem.svelte +25 -26
- package/dist/bottom-navigation/BottomNavItem.svelte.d.ts +3 -3
- package/dist/bottom-navigation/theme.d.ts +59 -52
- package/dist/bottom-navigation/theme.js +16 -16
- package/dist/breadcrumb/Breadcrumb.svelte +5 -4
- package/dist/breadcrumb/Breadcrumb.svelte.d.ts +1 -1
- package/dist/breadcrumb/BreadcrumbItem.svelte +8 -7
- package/dist/breadcrumb/BreadcrumbItem.svelte.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +3 -2
- package/dist/button-group/ButtonGroup.svelte +4 -3
- package/dist/button-group/ButtonGroup.svelte.d.ts +1 -1
- package/dist/button-group/theme.d.ts +2 -1
- package/dist/buttons/Button.svelte +4 -3
- package/dist/buttons/Button.svelte.d.ts +1 -1
- package/dist/buttons/GradientButton.svelte +6 -5
- package/dist/buttons/GradientButton.svelte.d.ts +1 -1
- package/dist/buttons/theme.d.ts +3 -2
- package/dist/card/Card.svelte +5 -5
- package/dist/card/Card.svelte.d.ts +1 -1
- package/dist/card/theme.d.ts +2 -1
- package/dist/carousel/Carousel.svelte +6 -5
- package/dist/carousel/Carousel.svelte.d.ts +1 -1
- package/dist/carousel/CarouselIndicators.svelte +5 -4
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +8 -5
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +5 -4
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +4 -3
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +3 -3
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +4 -4
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/theme.d.ts +20 -9
- package/dist/carousel/theme.js +4 -1
- package/dist/clipboard/Clipboard.svelte +3 -3
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +2 -1
- package/dist/darkmode/DarkMode.svelte +4 -3
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +2 -1
- package/dist/datepicker/Datepicker.svelte +28 -24
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +1 -1
- 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/drawer/Drawer.svelte +5 -4
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +6 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -2
- package/dist/dropdown/Dropdown.svelte +4 -3
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +4 -3
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +4 -3
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +4 -3
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +5 -4
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +6 -5
- package/dist/footer/Footer.svelte +5 -4
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +7 -6
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +6 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +4 -3
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +5 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +4 -3
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/theme.d.ts +7 -6
- package/dist/forms/button-toggle/ButtonToggle.svelte +8 -7
- package/dist/forms/button-toggle/ButtonToggle.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/ButtonToggleGroup.svelte +6 -5
- package/dist/forms/button-toggle/CheckIcon.svelte +4 -3
- package/dist/forms/button-toggle/CheckIcon.svelte.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +5 -4
- package/dist/forms/checkbox/Checkbox.svelte +6 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +4 -3
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/theme.d.ts +3 -2
- package/dist/forms/dropzone/Dropzone.svelte +23 -31
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +4 -1
- package/dist/forms/dropzone/theme.d.ts +2 -1
- package/dist/forms/fileupload/Fileupload.svelte +6 -5
- package/dist/forms/fileupload/Fileupload.svelte.d.ts +1 -1
- package/dist/forms/fileupload/theme.d.ts +2 -1
- package/dist/forms/floating-label/FloatingLabelInput.svelte +8 -7
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +2 -1
- package/dist/forms/helper/Helper.svelte +4 -3
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +2 -1
- package/dist/forms/input-addon/InputAddon.svelte +4 -3
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +11 -10
- package/dist/forms/input-field/theme.d.ts +2 -1
- package/dist/forms/label/Label.svelte +4 -3
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +2 -1
- package/dist/forms/phoneinput/PhoneInput.svelte +7 -7
- package/dist/forms/phoneinput/theme.d.ts +1 -1
- package/dist/forms/radio/Radio.svelte +4 -3
- package/dist/forms/radio/RadioButton.svelte +3 -2
- package/dist/forms/radio/theme.d.ts +3 -2
- package/dist/forms/range/Range.svelte +4 -3
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +2 -1
- package/dist/forms/search/Search.svelte +9 -8
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +2 -1
- package/dist/forms/select/MultiSelect.svelte +7 -6
- package/dist/forms/select/Select.svelte +5 -4
- package/dist/forms/select/theme.d.ts +3 -2
- package/dist/forms/tags/Tags.svelte +8 -7
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +2 -1
- package/dist/forms/textarea/Textarea.svelte +12 -11
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +2 -1
- package/dist/forms/timepicker/Timepicker.svelte +39 -38
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/theme.d.ts +2 -1
- package/dist/forms/toggle/Toggle.svelte +6 -5
- package/dist/forms/toggle/Toggle.svelte.d.ts +1 -1
- package/dist/forms/toggle/theme.d.ts +2 -1
- package/dist/gallery/Gallery.svelte +5 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/theme.d.ts +2 -1
- package/dist/indicator/Indicator.svelte +6 -4
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/theme.d.ts +2 -1
- package/dist/kbd/Kbd.svelte +4 -3
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/theme.d.ts +2 -1
- package/dist/list-group/Listgroup.svelte +7 -6
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +8 -7
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/theme.d.ts +3 -2
- package/dist/mega-menu/MegaMenu.svelte +7 -6
- package/dist/mega-menu/MegaMenu.svelte.d.ts +1 -1
- package/dist/mega-menu/theme.d.ts +2 -1
- package/dist/modal/Modal.svelte +8 -8
- package/dist/modal/Modal.svelte.d.ts +1 -1
- package/dist/modal/theme.d.ts +2 -1
- package/dist/navbar/Menu.svelte +2 -3
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +2 -3
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +2 -3
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +3 -4
- package/dist/navbar/NavHamburger.svelte.d.ts +2 -3
- package/dist/navbar/NavLi.svelte +2 -3
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +5 -6
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +3 -3
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/theme.d.ts +6 -5
- package/dist/pagination/Pagination.svelte +3 -3
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +11 -14
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +2 -3
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +8 -8
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/theme.d.ts +5 -4
- package/dist/popover/Popover.svelte +5 -6
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/theme.d.ts +2 -1
- package/dist/progress/Progressbar.svelte +7 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +8 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/theme.d.ts +2 -2
- package/dist/rating/AdvancedRating.svelte +6 -7
- 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 +3 -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 +8 -9
- package/dist/rating/Review.svelte.d.ts +1 -1
- package/dist/rating/ScoreRating.svelte +9 -9
- 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/theme.d.ts +5 -4
- package/dist/sidebar/Sidebar.svelte +9 -10
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +4 -5
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +2 -3
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +4 -5
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +7 -8
- 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 +6 -5
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +9 -8
- package/dist/skeleton/CardPlaceholder.svelte +12 -13
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +40 -13
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +27 -9
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +25 -10
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +28 -9
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +50 -27
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +3 -4
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +2 -3
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +9 -8
- package/dist/speed-dial/SpeedDial.svelte +4 -4
- package/dist/speed-dial/SpeedDial.svelte.d.ts +1 -1
- package/dist/speed-dial/SpeedDialButton.svelte +4 -4
- 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/theme.d.ts +3 -2
- package/dist/spinner/Spinner.svelte +3 -4
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/theme.d.ts +2 -1
- package/dist/stepindicator/StepIndicator.svelte +11 -10
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepindicator/theme.d.ts +2 -1
- package/dist/stepper/BreadcrumbStepper.svelte +10 -11
- package/dist/stepper/BreadcrumbStepper.svelte.d.ts +1 -1
- package/dist/stepper/DetailedStepper.svelte +5 -5
- package/dist/stepper/DetailedStepper.svelte.d.ts +1 -1
- package/dist/stepper/ProgressStepper.svelte +9 -12
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +13 -19
- package/dist/stepper/Stepper.svelte.d.ts +1 -1
- package/dist/stepper/TimelineStepper.svelte +5 -5
- package/dist/stepper/TimelineStepper.svelte.d.ts +1 -1
- package/dist/stepper/VerticalStepper.svelte +5 -5
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/table/Table.svelte +4 -4
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +2 -3
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +2 -3
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +3 -4
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +3 -4
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +2 -3
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +10 -10
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/table/theme.d.ts +6 -6
- package/dist/tabs/TabItem.svelte +6 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +4 -5
- package/dist/tabs/Tabs.svelte.d.ts +1 -1
- package/dist/tabs/theme.d.ts +3 -2
- package/dist/theme/themeUtils.d.ts +13 -0
- package/dist/theme/themeUtils.js +9 -1
- package/dist/timeline/Activity.svelte +2 -3
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +10 -10
- package/dist/timeline/ActivityItem.svelte.d.ts +1 -1
- package/dist/timeline/Group.svelte +5 -5
- package/dist/timeline/Group.svelte.d.ts +1 -1
- package/dist/timeline/GroupItem.svelte +7 -7
- package/dist/timeline/GroupItem.svelte.d.ts +1 -1
- package/dist/timeline/Timeline.svelte +3 -4
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +8 -8
- package/dist/timeline/TimelineItem.svelte.d.ts +1 -1
- package/dist/timeline/theme.d.ts +19 -18
- package/dist/toast/Toast.svelte +6 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/theme.d.ts +2 -1
- package/dist/toolbar/Toolbar.svelte +3 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +5 -6
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +3 -4
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +4 -3
- package/dist/tooltip/Tooltip.svelte +2 -3
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/theme.d.ts +2 -1
- package/dist/types.d.ts +19 -44
- package/dist/types.js +0 -1
- package/dist/typography/anchor/A.svelte +4 -5
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/theme.d.ts +2 -1
- package/dist/typography/blockquote/Blockquote.svelte +4 -5
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +2 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte +3 -4
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/theme.d.ts +2 -1
- package/dist/typography/heading/Heading.svelte +3 -4
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/theme.d.ts +2 -1
- package/dist/typography/hr/Hr.svelte +5 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/theme.d.ts +2 -1
- package/dist/typography/img/EnhancedImg.svelte +5 -6
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +5 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +2 -1
- package/dist/typography/layout/Layout.svelte +3 -4
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/theme.d.ts +2 -1
- package/dist/typography/list/Li.svelte +2 -3
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +3 -4
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/theme.d.ts +2 -1
- package/dist/typography/mark/Mark.svelte +2 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/theme.d.ts +2 -1
- package/dist/typography/paragraph/P.svelte +3 -4
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/theme.d.ts +2 -1
- package/dist/typography/secondary/Secondary.svelte +2 -3
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/theme.d.ts +2 -1
- package/dist/typography/span/Span.svelte +3 -4
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/theme.d.ts +2 -1
- 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 +3 -3
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
4
|
import { accordion } from "./";
|
|
5
|
-
import
|
|
5
|
+
import clsx from "clsx";
|
|
6
|
+
import { type AccordionProps } from "..";
|
|
6
7
|
import { getTheme } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
9
|
let { children, flush, activeClass, inactiveClass, multiple = false, class: className, transitionType, ...restProps }: AccordionProps = $props();
|
|
@@ -18,11 +19,10 @@
|
|
|
18
19
|
|
|
19
20
|
setContext("ctx", ctx);
|
|
20
21
|
setContext("ctxTransitionType", transitionType);
|
|
21
|
-
const base = $derived(
|
|
22
|
-
const finalClass = $derived(cn(base, theme));
|
|
22
|
+
const base = $derived(accordion({ flush, class: clsx(theme, className) }));
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
|
-
<div {...restProps} class={
|
|
25
|
+
<div {...restProps} class={base}>
|
|
26
26
|
{@render children()}
|
|
27
27
|
</div>
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
@component
|
|
31
31
|
[Go to docs](https://flowbite-svelte.com/)
|
|
32
32
|
## Type
|
|
33
|
-
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
33
|
+
[AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L159)
|
|
34
34
|
## Props
|
|
35
35
|
@prop children
|
|
36
36
|
@prop flush
|
|
@@ -2,7 +2,7 @@ import { type AccordionProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AccordionProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L159)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop flush
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { type AccordionCtxType, type AccordionItemProps, type ParamsType } from "..";
|
|
3
|
+
import { getTheme, themeDeprecated } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
3
5
|
import { getContext } from "svelte";
|
|
4
6
|
import { writable } from "svelte/store";
|
|
7
|
+
import { slide } from "svelte/transition";
|
|
5
8
|
import { accordionItem, type AccordionItemTheme } from ".";
|
|
6
|
-
import { type AccordionCtxType, type AccordionItemProps, type ParamsType, cn } from "..";
|
|
7
|
-
import { getTheme } from "../theme/themeUtils";
|
|
8
9
|
|
|
9
|
-
let { children, header, arrowup, arrowdown, open = $bindable(false), activeClass, inactiveClass, transitionType = slide, transitionParams, class: className, headerClass, contentClass }: AccordionItemProps = $props();
|
|
10
|
+
let { children, header, arrowup, arrowdown, open = $bindable(false), activeClass, inactiveClass, transitionType = slide, transitionParams, class: className, classes, headerClass, contentClass }: AccordionItemProps = $props();
|
|
11
|
+
|
|
12
|
+
themeDeprecated("AccordionItem", { headerClass, contentClass, activeClass, inactiveClass });
|
|
13
|
+
|
|
14
|
+
let styling: typeof classes = $derived(classes ?? { button: headerClass, content: contentClass, active: activeClass, inactive: inactiveClass });
|
|
10
15
|
|
|
11
16
|
const ctxTransitionType = getContext("ctxTransitionType");
|
|
12
17
|
// Check if transitionType is explicitly set to undefined in props
|
|
@@ -29,11 +34,11 @@
|
|
|
29
34
|
|
|
30
35
|
const { base, button, content, active, inactive } = $derived(accordionItem({ flush: ctx.flush, open }));
|
|
31
36
|
|
|
32
|
-
let buttonClass = $derived(
|
|
37
|
+
let buttonClass = $derived(clsx(open && !ctx.flush && (styling.active || ctx.activeClass || active()), !open && !ctx.flush && (styling.inactive || ctx.inactiveClass || inactive())));
|
|
33
38
|
</script>
|
|
34
39
|
|
|
35
|
-
<h2 class={
|
|
36
|
-
<button type="button" onclick={handleToggle} class={
|
|
40
|
+
<h2 class={base({ class: clsx((theme as AccordionItemTheme)?.base, className) })}>
|
|
41
|
+
<button type="button" onclick={handleToggle} class={button({ class: clsx(buttonClass, (theme as AccordionItemTheme)?.button, styling.button) })} aria-expanded={open}>
|
|
37
42
|
{#if header}
|
|
38
43
|
{@render header()}
|
|
39
44
|
{#if open}
|
|
@@ -58,14 +63,14 @@
|
|
|
58
63
|
{#if useTransition}
|
|
59
64
|
{#if open && transitionType !== "none"}
|
|
60
65
|
<div transition:transitionType={transitionParams as ParamsType}>
|
|
61
|
-
<div class={
|
|
66
|
+
<div class={content({ class: clsx((theme as AccordionItemTheme)?.content, styling.content) })}>
|
|
62
67
|
{@render children()}
|
|
63
68
|
</div>
|
|
64
69
|
</div>
|
|
65
70
|
{/if}
|
|
66
71
|
{:else}
|
|
67
72
|
<div class={open ? "block" : "hidden"}>
|
|
68
|
-
<div class={
|
|
73
|
+
<div class={content({ class: clsx((theme as AccordionItemTheme)?.content, styling.content) })}>
|
|
69
74
|
{@render children()}
|
|
70
75
|
</div>
|
|
71
76
|
</div>
|
|
@@ -75,7 +80,7 @@
|
|
|
75
80
|
@component
|
|
76
81
|
[Go to docs](https://flowbite-svelte.com/)
|
|
77
82
|
## Type
|
|
78
|
-
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
83
|
+
[AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L167)
|
|
79
84
|
## Props
|
|
80
85
|
@prop children
|
|
81
86
|
@prop header
|
|
@@ -87,6 +92,7 @@
|
|
|
87
92
|
@prop transitionType = slide
|
|
88
93
|
@prop transitionParams
|
|
89
94
|
@prop class: className
|
|
95
|
+
@prop classes
|
|
90
96
|
@prop headerClass
|
|
91
97
|
@prop contentClass
|
|
92
98
|
-->
|
|
@@ -2,7 +2,7 @@ import { type AccordionItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AccordionItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L167)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -14,6 +14,7 @@ import { type AccordionItemProps } from "..";
|
|
|
14
14
|
* @prop transitionType = slide
|
|
15
15
|
* @prop transitionParams
|
|
16
16
|
* @prop class: className
|
|
17
|
+
* @prop classes
|
|
17
18
|
* @prop headerClass
|
|
18
19
|
* @prop contentClass
|
|
19
20
|
*/
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import type { Classes } from "../theme/themeUtils";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
3
|
+
import { type VariantProps } from "tailwind-variants";
|
|
4
|
+
export type AccordionVariants = VariantProps<typeof accordion>;
|
|
5
|
+
export type AccordionItemVariants = VariantProps<typeof accordionItem> & Classes<typeof accordionItem>;
|
|
1
6
|
export declare const accordion: import("tailwind-variants").TVReturnType<{
|
|
2
7
|
color: {
|
|
3
8
|
primary: string;
|
|
@@ -90,6 +95,6 @@ export declare const accordionItem: import("tailwind-variants").TVReturnType<{
|
|
|
90
95
|
active: string;
|
|
91
96
|
inactive: string;
|
|
92
97
|
}, undefined, unknown, unknown, undefined>>;
|
|
93
|
-
export type AccordionTheme =
|
|
98
|
+
export type AccordionTheme = ClassValue;
|
|
94
99
|
export type AccordionItemSlots = keyof typeof accordionItem.slots;
|
|
95
|
-
export type AccordionItemTheme = Partial<Record<AccordionItemSlots,
|
|
100
|
+
export type AccordionItemTheme = Partial<Record<AccordionItemSlots, ClassValue>>;
|
package/dist/alert/Alert.svelte
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { fade } from "svelte/transition";
|
|
3
3
|
import { alert } from ".";
|
|
4
|
-
import
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { type AlertProps, type ParamsType, CloseButton } from "..";
|
|
5
6
|
import { getTheme } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
8
|
let { children, icon, alertStatus = $bindable(true), closeIcon: CloseIcon, color = "primary", rounded = true, border, class: className, dismissable, transition = fade, params, onclick = () => (alertStatus = false), ...restProps }: AlertProps = $props();
|
|
@@ -10,17 +11,14 @@
|
|
|
10
11
|
const theme = getTheme("alert");
|
|
11
12
|
|
|
12
13
|
let divCls = $derived(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
className,
|
|
22
|
-
theme
|
|
23
|
-
)
|
|
14
|
+
alert({
|
|
15
|
+
color,
|
|
16
|
+
rounded,
|
|
17
|
+
border,
|
|
18
|
+
icon: !!icon,
|
|
19
|
+
dismissable,
|
|
20
|
+
class: clsx(theme, className)
|
|
21
|
+
})
|
|
24
22
|
);
|
|
25
23
|
</script>
|
|
26
24
|
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
@component
|
|
55
53
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
54
|
## Type
|
|
57
|
-
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
55
|
+
[AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L181)
|
|
58
56
|
## Props
|
|
59
57
|
@prop children
|
|
60
58
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import { type AlertProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AlertProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L181)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
package/dist/alert/theme.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
3
|
type AlertVariants = VariantProps<typeof alert>;
|
|
3
4
|
declare const alert: import("tailwind-variants").TVReturnType<{
|
|
4
5
|
color: {
|
|
@@ -107,4 +108,4 @@ declare const alert: import("tailwind-variants").TVReturnType<{
|
|
|
107
108
|
};
|
|
108
109
|
}, undefined, "p-4 gap-3 text-sm", unknown, unknown, undefined>>;
|
|
109
110
|
export { alert, type AlertVariants };
|
|
110
|
-
export type AlertTheme =
|
|
111
|
+
export type AlertTheme = ClassValue;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { avatar } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type AvatarProps, Indicator } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { children, indicator, src, href, target, cornerStyle = "circular", border = false, stacked = false, dot, class: className, alt, size = "md", onclick, ...restProps }: AvatarProps = $props();
|
|
@@ -11,16 +12,13 @@
|
|
|
11
12
|
dot = dot && { placement: "top-right", color: "gray", size: "lg", ...dot };
|
|
12
13
|
|
|
13
14
|
let avatarClass = $derived(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
className,
|
|
22
|
-
theme
|
|
23
|
-
)
|
|
15
|
+
avatar({
|
|
16
|
+
cornerStyle,
|
|
17
|
+
border,
|
|
18
|
+
stacked,
|
|
19
|
+
size,
|
|
20
|
+
class: clsx(theme, className)
|
|
21
|
+
})
|
|
24
22
|
);
|
|
25
23
|
</script>
|
|
26
24
|
|
|
@@ -50,7 +48,7 @@
|
|
|
50
48
|
@component
|
|
51
49
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
50
|
## Type
|
|
53
|
-
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
51
|
+
[AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L192)
|
|
54
52
|
## Props
|
|
55
53
|
@prop children
|
|
56
54
|
@prop indicator
|
|
@@ -2,7 +2,7 @@ import { type AvatarProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AvatarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L192)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop indicator
|
package/dist/avatar/theme.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import type { ClassValue } from "svelte/elements";
|
|
2
|
+
import { type VariantProps } from "tailwind-variants";
|
|
3
|
+
export type AvatarVariants = VariantProps<typeof avatar>;
|
|
1
4
|
declare const avatar: import("tailwind-variants").TVReturnType<{
|
|
2
5
|
cornerStyle: {
|
|
3
6
|
rounded: string;
|
|
@@ -60,4 +63,4 @@ declare const avatar: import("tailwind-variants").TVReturnType<{
|
|
|
60
63
|
};
|
|
61
64
|
}, undefined, "relative flex items-center justify-center bg-gray-100 dark:bg-gray-600 text-gray-600 dark:text-gray-300", unknown, unknown, undefined>>;
|
|
62
65
|
export { avatar };
|
|
63
|
-
export type AvatarTheme =
|
|
66
|
+
export type AvatarTheme = ClassValue;
|
package/dist/badge/Badge.svelte
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import {
|
|
2
|
+
import { type BadgeProps, CloseButton, type ParamsType } from "..";
|
|
3
|
+
import { getTheme, themeDeprecated } from "../theme/themeUtils";
|
|
4
|
+
import clsx from "clsx";
|
|
3
5
|
import { fade } from "svelte/transition";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
+
import { badge, type BadgeTheme } from ".";
|
|
7
|
+
|
|
8
|
+
let { children, icon, badgeStatus = $bindable(true), color = "primary", large = false, dismissable = false, class: className, classes, border, href, target, rounded, transition = fade, params, aClass, onclose, ...restProps }: BadgeProps = $props();
|
|
9
|
+
|
|
10
|
+
themeDeprecated("Badge", { aClass });
|
|
6
11
|
|
|
7
|
-
let
|
|
12
|
+
let styling = $derived(classes ?? { linkClass: aClass });
|
|
8
13
|
|
|
9
14
|
// Theme context
|
|
10
15
|
const theme = getTheme("badge");
|
|
@@ -18,9 +23,9 @@
|
|
|
18
23
|
</script>
|
|
19
24
|
|
|
20
25
|
{#if badgeStatus}
|
|
21
|
-
<div {...restProps} transition:transition={params as ParamsType} class={
|
|
26
|
+
<div {...restProps} transition:transition={params as ParamsType} class={base({ class: clsx((theme as BadgeTheme)?.base, className) })}>
|
|
22
27
|
{#if href}
|
|
23
|
-
<a {href} {target} class={
|
|
28
|
+
<a {href} {target} class={linkClass({ class: clsx((theme as BadgeTheme)?.linkClass, styling.linkClass) })}>
|
|
24
29
|
{@render children()}
|
|
25
30
|
</a>
|
|
26
31
|
{:else}
|
|
@@ -44,7 +49,7 @@
|
|
|
44
49
|
@component
|
|
45
50
|
[Go to docs](https://flowbite-svelte.com/)
|
|
46
51
|
## Type
|
|
47
|
-
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
52
|
+
[BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L204)
|
|
48
53
|
## Props
|
|
49
54
|
@prop children
|
|
50
55
|
@prop icon
|
|
@@ -53,6 +58,7 @@
|
|
|
53
58
|
@prop large = false
|
|
54
59
|
@prop dismissable = false
|
|
55
60
|
@prop class: className
|
|
61
|
+
@prop classes
|
|
56
62
|
@prop border
|
|
57
63
|
@prop href
|
|
58
64
|
@prop target
|
|
@@ -2,7 +2,7 @@ import { type BadgeProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BadgeProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L204)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -11,6 +11,7 @@ import { type BadgeProps } from "..";
|
|
|
11
11
|
* @prop large = false
|
|
12
12
|
* @prop dismissable = false
|
|
13
13
|
* @prop class: className
|
|
14
|
+
* @prop classes
|
|
14
15
|
* @prop border
|
|
15
16
|
* @prop href
|
|
16
17
|
* @prop target
|
package/dist/badge/theme.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { Classes } from "../theme/themeUtils";
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
1
3
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
type BadgeVariants = VariantProps<typeof badge>;
|
|
4
|
+
type BadgeVariants = VariantProps<typeof badge> & Classes<typeof badge>;
|
|
3
5
|
declare const badge: import("tailwind-variants").TVReturnType<{
|
|
4
6
|
color: {
|
|
5
7
|
primary: {
|
|
@@ -246,4 +248,4 @@ declare const badge: import("tailwind-variants").TVReturnType<{
|
|
|
246
248
|
}, undefined, unknown, unknown, undefined>>;
|
|
247
249
|
export { badge, type BadgeVariants };
|
|
248
250
|
export type BadgeSlots = keyof typeof badge.slots;
|
|
249
|
-
export type BadgeTheme = Partial<Record<BadgeSlots,
|
|
251
|
+
export type BadgeTheme = Partial<Record<BadgeSlots, ClassValue>>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { fade } from "svelte/transition";
|
|
3
3
|
import { banner, type BannerTheme } from ".";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { type ParamsType, type BannerProps, CloseButton } from "..";
|
|
6
|
+
import { getTheme, themeDeprecated } from "../theme/themeUtils";
|
|
6
7
|
|
|
7
|
-
let { children, header, open = $bindable(true), dismissable = true, color = "gray", type, class: className, innerClass, transition = fade, params, closeClass, ...restProps }: BannerProps = $props();
|
|
8
|
+
let { children, header, open = $bindable(true), dismissable = true, color = "gray", type, class: className, classes, innerClass, transition = fade, params, closeClass, ...restProps }: BannerProps = $props();
|
|
9
|
+
|
|
10
|
+
themeDeprecated("Banner", { innerClass, closeClass });
|
|
11
|
+
let styling = $derived(classes ?? { insideDiv: innerClass, dismissable: closeClass });
|
|
8
12
|
|
|
9
13
|
// Theme context
|
|
10
14
|
const theme = getTheme("banner");
|
|
@@ -13,15 +17,15 @@
|
|
|
13
17
|
</script>
|
|
14
18
|
|
|
15
19
|
{#if open}
|
|
16
|
-
<div tabindex="-1" class={
|
|
17
|
-
<div class={
|
|
20
|
+
<div tabindex="-1" class={base({ class: clsx((theme as BannerTheme)?.base, className) })} {...restProps} transition:transition={params as ParamsType}>
|
|
21
|
+
<div class={insideDiv({ class: clsx((theme as BannerTheme)?.insideDiv, styling.insideDiv) })}>
|
|
18
22
|
{@render children?.()}
|
|
19
23
|
</div>
|
|
20
24
|
|
|
21
25
|
{#if dismissable}
|
|
22
26
|
<div class="flex items-center justify-end">
|
|
23
27
|
<CloseButton
|
|
24
|
-
class={
|
|
28
|
+
class={dismissableClass({ class: clsx((theme as BannerTheme)?.dismissable, styling.dismissable) })}
|
|
25
29
|
{color}
|
|
26
30
|
ariaLabel="Remove banner"
|
|
27
31
|
onclick={() => {
|
|
@@ -37,7 +41,7 @@
|
|
|
37
41
|
@component
|
|
38
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
39
43
|
## Type
|
|
40
|
-
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L219)
|
|
41
45
|
## Props
|
|
42
46
|
@prop children
|
|
43
47
|
@prop header
|
|
@@ -46,6 +50,7 @@
|
|
|
46
50
|
@prop color = "gray"
|
|
47
51
|
@prop type
|
|
48
52
|
@prop class: className
|
|
53
|
+
@prop classes
|
|
49
54
|
@prop innerClass
|
|
50
55
|
@prop transition = fade
|
|
51
56
|
@prop params
|
|
@@ -2,7 +2,7 @@ import { type BannerProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BannerProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L219)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
@@ -11,6 +11,7 @@ import { type BannerProps } from "..";
|
|
|
11
11
|
* @prop color = "gray"
|
|
12
12
|
* @prop type
|
|
13
13
|
* @prop class: className
|
|
14
|
+
* @prop classes
|
|
14
15
|
* @prop innerClass
|
|
15
16
|
* @prop transition = fade
|
|
16
17
|
* @prop params
|
package/dist/banner/theme.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
|
|
2
|
+
import type { ClassValue } from "svelte/elements";
|
|
3
|
+
import type { Classes } from "../theme/themeUtils";
|
|
4
|
+
export type BannerVariants = VariantProps<typeof banner> & Classes<typeof banner>;
|
|
3
5
|
declare const banner: import("tailwind-variants").TVReturnType<{
|
|
4
6
|
type: {
|
|
5
7
|
top: {
|
|
@@ -228,4 +230,4 @@ declare const banner: import("tailwind-variants").TVReturnType<{
|
|
|
228
230
|
}, undefined, unknown, unknown, undefined>>;
|
|
229
231
|
export { banner };
|
|
230
232
|
export type BannerSlots = keyof typeof banner.slots;
|
|
231
|
-
export type BannerTheme = Partial<Record<BannerSlots,
|
|
233
|
+
export type BannerTheme = Partial<Record<BannerSlots, ClassValue>>;
|
|
@@ -2,34 +2,38 @@
|
|
|
2
2
|
import { setContext } from "svelte";
|
|
3
3
|
import { writable } from "svelte/store";
|
|
4
4
|
import { bottomNav } from ".";
|
|
5
|
+
import clsx from "clsx";
|
|
5
6
|
import { type BottomNavProps, type BottomNavContextType, cn, type BottomNavTheme } from "..";
|
|
6
|
-
import { getTheme } from "../theme/themeUtils";
|
|
7
|
+
import { getTheme, themeDeprecated } from "../theme/themeUtils";
|
|
7
8
|
|
|
8
|
-
let { children, header, position = "fixed", navType = "default", outerClass, innerClass, activeClass, activeUrl = "", ...restProps }: BottomNavProps = $props();
|
|
9
|
+
let { children, header, position = "fixed", navType = "default", class: className, classes, outerClass, innerClass, activeClass, activeUrl = "", ...restProps }: BottomNavProps = $props();
|
|
10
|
+
|
|
11
|
+
themeDeprecated("BottomNav", { innerClass, outerClass });
|
|
12
|
+
let styling = $derived(classes ?? { inner: innerClass });
|
|
9
13
|
|
|
10
14
|
// Theme context
|
|
11
15
|
const theme = getTheme("bottomNav");
|
|
12
16
|
|
|
13
17
|
const activeCls = cn("text-primary-700 dark:text-primary-700 hover:text-primary-900 dark:hover:text-primary-900", activeClass);
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
setContext("
|
|
17
|
-
setContext("navType", navType);
|
|
18
|
-
setContext<BottomNavContextType>("bottomNavType", { activeClass: activeCls });
|
|
19
|
+
let context: BottomNavContextType = $state({ activeClass: activeCls, activeUrl, navType });
|
|
20
|
+
setContext<BottomNavContextType>("bottomNavType", context);
|
|
19
21
|
|
|
20
|
-
const {
|
|
22
|
+
const { base, inner } = $derived(bottomNav({ position, navType }));
|
|
21
23
|
|
|
22
24
|
$effect(() => {
|
|
23
|
-
|
|
25
|
+
context.activeUrl = activeUrl;
|
|
26
|
+
context.navType = navType;
|
|
27
|
+
context.activeClass = activeCls;
|
|
24
28
|
});
|
|
25
29
|
</script>
|
|
26
30
|
|
|
27
|
-
<div {...restProps} class={
|
|
31
|
+
<div {...restProps} class={base({ class: clsx((theme as BottomNavTheme)?.base, className ?? outerClass) })}>
|
|
28
32
|
{#if header}
|
|
29
33
|
{@render header()}
|
|
30
34
|
{/if}
|
|
31
35
|
|
|
32
|
-
<div class={
|
|
36
|
+
<div class={inner({ class: clsx((theme as BottomNavTheme)?.inner, styling.inner) })}>
|
|
33
37
|
{@render children()}
|
|
34
38
|
</div>
|
|
35
39
|
</div>
|
|
@@ -38,12 +42,14 @@
|
|
|
38
42
|
@component
|
|
39
43
|
[Go to docs](https://flowbite-svelte.com/)
|
|
40
44
|
## Type
|
|
41
|
-
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
45
|
+
[BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L238)
|
|
42
46
|
## Props
|
|
43
47
|
@prop children
|
|
44
48
|
@prop header
|
|
45
49
|
@prop position = "fixed"
|
|
46
50
|
@prop navType = "default"
|
|
51
|
+
@prop class: className
|
|
52
|
+
@prop classes
|
|
47
53
|
@prop outerClass
|
|
48
54
|
@prop innerClass
|
|
49
55
|
@prop activeClass
|
|
@@ -2,12 +2,14 @@ import { type BottomNavProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L238)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop header
|
|
9
9
|
* @prop position = "fixed"
|
|
10
10
|
* @prop navType = "default"
|
|
11
|
+
* @prop class: className
|
|
12
|
+
* @prop classes
|
|
11
13
|
* @prop outerClass
|
|
12
14
|
* @prop innerClass
|
|
13
15
|
* @prop activeClass
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { bottomNavHeader } from ".";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type BottomNavHeaderProps, type BottomNavHeaderTheme } from "..";
|
|
5
|
+
import { getTheme, themeDeprecated } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
|
-
let { children, outerClass, innerClass, ...restProps }: BottomNavHeaderProps = $props();
|
|
7
|
+
let { children, class: className, classes, outerClass, innerClass, ...restProps }: BottomNavHeaderProps = $props();
|
|
8
|
+
|
|
9
|
+
themeDeprecated("BottomNavHeader", { innerClass, outerClass });
|
|
10
|
+
let styling = $derived(classes ?? { innerDiv: innerClass });
|
|
7
11
|
|
|
8
12
|
// Theme context
|
|
9
13
|
const theme = getTheme("bottomNavHeader");
|
|
10
14
|
|
|
11
|
-
const { innerDiv,
|
|
15
|
+
const { innerDiv, base } = $derived(bottomNavHeader());
|
|
12
16
|
</script>
|
|
13
17
|
|
|
14
|
-
<div {...restProps} class={
|
|
15
|
-
<div class={
|
|
18
|
+
<div {...restProps} class={base({ class: clsx((theme as BottomNavHeaderTheme)?.base, className ?? outerClass) })}>
|
|
19
|
+
<div class={innerDiv({ class: clsx((theme as BottomNavHeaderTheme)?.innerDiv, styling.innerDiv) })} role="group">
|
|
16
20
|
{@render children()}
|
|
17
21
|
</div>
|
|
18
22
|
</div>
|
|
@@ -21,9 +25,11 @@
|
|
|
21
25
|
@component
|
|
22
26
|
[Go to docs](https://flowbite-svelte.com/)
|
|
23
27
|
## Type
|
|
24
|
-
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
28
|
+
[BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L278)
|
|
25
29
|
## Props
|
|
26
30
|
@prop children
|
|
31
|
+
@prop class: className
|
|
32
|
+
@prop classes
|
|
27
33
|
@prop outerClass
|
|
28
34
|
@prop innerClass
|
|
29
35
|
@prop ...restProps
|
|
@@ -2,9 +2,11 @@ import { type BottomNavHeaderProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L278)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
|
+
* @prop class: className
|
|
9
|
+
* @prop classes
|
|
8
10
|
* @prop outerClass
|
|
9
11
|
* @prop innerClass
|
|
10
12
|
* @prop ...restProps
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { bottomNavHeaderItem } from ".";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { type BottomNavHeaderItemProps } from "..";
|
|
4
5
|
import { getTheme } from "../theme/themeUtils";
|
|
5
6
|
|
|
6
7
|
let { itemName, active, class: className, ...restProps }: BottomNavHeaderItemProps = $props();
|
|
@@ -8,10 +9,10 @@
|
|
|
8
9
|
// Theme context
|
|
9
10
|
const theme = getTheme("bottomNavHeaderItem");
|
|
10
11
|
|
|
11
|
-
let base = $derived(bottomNavHeaderItem({ active }));
|
|
12
|
+
let base = $derived(bottomNavHeaderItem({ active, class: clsx(theme, className) }));
|
|
12
13
|
</script>
|
|
13
14
|
|
|
14
|
-
<button {...restProps} class={
|
|
15
|
+
<button {...restProps} class={base}>
|
|
15
16
|
{itemName}
|
|
16
17
|
</button>
|
|
17
18
|
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
@component
|
|
20
21
|
[Go to docs](https://flowbite-svelte.com/)
|
|
21
22
|
## Type
|
|
22
|
-
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
23
|
+
[BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L284)
|
|
23
24
|
## Props
|
|
24
25
|
@prop itemName
|
|
25
26
|
@prop active
|
|
@@ -2,7 +2,7 @@ import { type BottomNavHeaderItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [BottomNavHeaderItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L284)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop itemName
|
|
8
8
|
* @prop active
|