flowbite-svelte 1.10.20 → 1.10.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/AccordionItem.svelte +6 -6
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/theme.d.ts +0 -4
- package/dist/alert/index.d.ts +1 -1
- package/dist/alert/theme.d.ts +0 -2
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/theme.d.ts +0 -2
- package/dist/badge/Badge.svelte +3 -3
- package/dist/badge/index.d.ts +1 -1
- package/dist/badge/theme.d.ts +0 -3
- package/dist/banner/Banner.svelte +4 -4
- package/dist/banner/index.d.ts +1 -1
- package/dist/banner/theme.d.ts +0 -3
- package/dist/bottom-navigation/BottomNav.svelte +3 -3
- package/dist/bottom-navigation/BottomNavHeader.svelte +3 -3
- package/dist/bottom-navigation/BottomNavItem.svelte +3 -3
- package/dist/bottom-navigation/index.d.ts +1 -1
- package/dist/bottom-navigation/theme.d.ts +0 -9
- package/dist/breadcrumb/Breadcrumb.svelte +3 -3
- package/dist/breadcrumb/BreadcrumbItem.svelte +6 -6
- package/dist/breadcrumb/index.d.ts +1 -1
- package/dist/breadcrumb/theme.d.ts +0 -5
- package/dist/button-group/index.d.ts +1 -1
- package/dist/button-group/theme.d.ts +0 -2
- package/dist/buttons/Button.svelte +2 -2
- package/dist/buttons/GradientButton.svelte +4 -4
- package/dist/buttons/index.d.ts +1 -1
- package/dist/buttons/theme.d.ts +0 -5
- package/dist/card/Card.svelte +4 -4
- package/dist/card/index.d.ts +1 -1
- package/dist/card/theme.d.ts +0 -3
- package/dist/carousel/Carousel.svelte +3 -3
- package/dist/carousel/Carousel.svelte.d.ts +1 -0
- package/dist/carousel/CarouselIndicators.svelte +5 -5
- package/dist/carousel/CarouselIndicators.svelte.d.ts +1 -1
- package/dist/carousel/ControlButton.svelte +3 -3
- package/dist/carousel/ControlButton.svelte.d.ts +1 -1
- package/dist/carousel/Controls.svelte +2 -2
- package/dist/carousel/Controls.svelte.d.ts +1 -1
- package/dist/carousel/Slide.svelte +1 -1
- package/dist/carousel/Slide.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnail.svelte +1 -1
- package/dist/carousel/Thumbnail.svelte.d.ts +1 -1
- package/dist/carousel/Thumbnails.svelte +1 -1
- package/dist/carousel/Thumbnails.svelte.d.ts +1 -1
- package/dist/carousel/index.d.ts +1 -1
- package/dist/carousel/theme.d.ts +0 -9
- package/dist/clipboard/Clipboard.svelte +1 -1
- package/dist/clipboard/Clipboard.svelte.d.ts +1 -1
- package/dist/clipboard/index.d.ts +1 -1
- package/dist/clipboard/theme.d.ts +0 -2
- package/dist/darkmode/DarkMode.svelte +1 -1
- package/dist/darkmode/DarkMode.svelte.d.ts +1 -1
- package/dist/darkmode/index.d.ts +1 -1
- package/dist/darkmode/theme.d.ts +0 -2
- package/dist/datepicker/Datepicker.svelte +13 -13
- package/dist/datepicker/Datepicker.svelte.d.ts +1 -1
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/theme.d.ts +0 -3
- package/dist/device-mockups/Android.svelte +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 +4 -4
- package/dist/drawer/Drawer.svelte.d.ts +1 -1
- package/dist/drawer/Drawerhead.svelte +5 -5
- package/dist/drawer/Drawerhead.svelte.d.ts +1 -1
- package/dist/drawer/index.d.ts +1 -1
- package/dist/drawer/theme.d.ts +3 -8
- package/dist/dropdown/Dropdown.svelte +1 -1
- package/dist/dropdown/Dropdown.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownDivider.svelte +1 -1
- package/dist/dropdown/DropdownDivider.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownGroup.svelte +1 -1
- package/dist/dropdown/DropdownGroup.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownHeader.svelte +1 -1
- package/dist/dropdown/DropdownHeader.svelte.d.ts +1 -1
- package/dist/dropdown/DropdownItem.svelte +3 -3
- package/dist/dropdown/DropdownItem.svelte.d.ts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/theme.d.ts +0 -8
- package/dist/footer/Footer.svelte +1 -1
- package/dist/footer/Footer.svelte.d.ts +1 -1
- package/dist/footer/FooterBrand.svelte +5 -5
- package/dist/footer/FooterBrand.svelte.d.ts +1 -1
- package/dist/footer/FooterCopyright.svelte +5 -5
- package/dist/footer/FooterCopyright.svelte.d.ts +1 -1
- package/dist/footer/FooterIcon.svelte +1 -1
- package/dist/footer/FooterIcon.svelte.d.ts +1 -1
- package/dist/footer/FooterLink.svelte +4 -4
- package/dist/footer/FooterLink.svelte.d.ts +1 -1
- package/dist/footer/FooterLinkGroup.svelte +1 -1
- package/dist/footer/FooterLinkGroup.svelte.d.ts +1 -1
- package/dist/footer/index.d.ts +1 -1
- package/dist/footer/theme.d.ts +3 -13
- package/dist/forms/button-toggle/ButtonToggle.svelte +5 -5
- package/dist/forms/button-toggle/index.d.ts +1 -1
- package/dist/forms/button-toggle/theme.d.ts +0 -4
- package/dist/forms/checkbox/Checkbox.svelte +5 -5
- package/dist/forms/checkbox/CheckboxButton.svelte +3 -3
- package/dist/forms/checkbox/CheckboxButton.svelte.d.ts +1 -1
- package/dist/forms/checkbox/index.d.ts +1 -1
- package/dist/forms/checkbox/index.js +1 -1
- package/dist/forms/checkbox/theme.d.ts +1 -5
- package/dist/forms/checkbox/theme.js +1 -1
- package/dist/forms/dropzone/Dropzone.svelte +1 -1
- package/dist/forms/dropzone/Dropzone.svelte.d.ts +1 -1
- package/dist/forms/dropzone/index.d.ts +1 -1
- package/dist/forms/dropzone/theme.d.ts +0 -2
- package/dist/forms/fileupload/Fileupload.svelte +5 -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 +0 -3
- package/dist/forms/floating-label/FloatingLabelInput.svelte +7 -7
- package/dist/forms/floating-label/FloatingLabelInput.svelte.d.ts +1 -1
- package/dist/forms/floating-label/index.d.ts +1 -1
- package/dist/forms/floating-label/theme.d.ts +0 -3
- package/dist/forms/helper/Helper.svelte +1 -1
- package/dist/forms/helper/Helper.svelte.d.ts +1 -1
- package/dist/forms/helper/index.d.ts +1 -1
- package/dist/forms/helper/theme.d.ts +0 -2
- package/dist/forms/input-addon/InputAddon.svelte +2 -5
- package/dist/forms/input-addon/InputAddon.svelte.d.ts +1 -1
- package/dist/forms/input-field/Input.svelte +10 -10
- package/dist/forms/input-field/index.d.ts +1 -1
- package/dist/forms/input-field/theme.d.ts +0 -3
- package/dist/forms/label/Label.svelte +1 -1
- package/dist/forms/label/Label.svelte.d.ts +1 -1
- package/dist/forms/label/index.d.ts +1 -1
- package/dist/forms/label/theme.d.ts +0 -2
- package/dist/forms/phoneinput/PhoneInput.svelte +8 -8
- package/dist/forms/phoneinput/index.d.ts +1 -1
- package/dist/forms/phoneinput/index.js +1 -1
- package/dist/forms/phoneinput/theme.d.ts +3 -10
- package/dist/forms/phoneinput/theme.js +1 -1
- package/dist/forms/radio/Radio.svelte +3 -3
- package/dist/forms/radio/Radio.svelte.d.ts +10 -3
- package/dist/forms/radio/RadioButton.svelte +2 -2
- package/dist/forms/radio/RadioButton.svelte.d.ts +10 -3
- package/dist/forms/radio/index.d.ts +1 -1
- package/dist/forms/radio/index.js +1 -1
- package/dist/forms/radio/theme.d.ts +1 -5
- package/dist/forms/radio/theme.js +1 -1
- package/dist/forms/range/Range.svelte +1 -1
- package/dist/forms/range/Range.svelte.d.ts +1 -1
- package/dist/forms/range/theme.d.ts +0 -2
- package/dist/forms/search/Search.svelte +8 -8
- package/dist/forms/search/Search.svelte.d.ts +1 -1
- package/dist/forms/search/index.d.ts +1 -1
- package/dist/forms/search/theme.d.ts +0 -3
- package/dist/forms/select/MultiSelect.svelte +4 -4
- package/dist/forms/select/MultiSelect.svelte.d.ts +10 -3
- package/dist/forms/select/Select.svelte +4 -4
- package/dist/forms/select/Select.svelte.d.ts +10 -3
- package/dist/forms/select/index.d.ts +1 -1
- package/dist/forms/select/theme.d.ts +0 -5
- package/dist/forms/tags/Tags.svelte +6 -6
- package/dist/forms/tags/Tags.svelte.d.ts +1 -1
- package/dist/forms/tags/index.d.ts +1 -1
- package/dist/forms/tags/theme.d.ts +6 -9
- package/dist/forms/textarea/Textarea.svelte +10 -10
- package/dist/forms/textarea/Textarea.svelte.d.ts +1 -1
- package/dist/forms/textarea/index.d.ts +1 -1
- package/dist/forms/textarea/theme.d.ts +0 -3
- package/dist/forms/timepicker/Timepicker.svelte +38 -38
- package/dist/forms/timepicker/Timepicker.svelte.d.ts +1 -1
- package/dist/forms/timepicker/index.d.ts +1 -1
- package/dist/forms/timepicker/theme.d.ts +0 -3
- package/dist/forms/toggle/Toggle.svelte +5 -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 +0 -3
- package/dist/gallery/Gallery.svelte +4 -4
- package/dist/gallery/Gallery.svelte.d.ts +1 -1
- package/dist/gallery/index.d.ts +1 -1
- package/dist/gallery/theme.d.ts +0 -3
- package/dist/indicator/Indicator.svelte +1 -1
- package/dist/indicator/Indicator.svelte.d.ts +1 -1
- package/dist/indicator/index.d.ts +1 -1
- package/dist/indicator/theme.d.ts +0 -2
- package/dist/kbd/Kbd.svelte +1 -1
- package/dist/kbd/Kbd.svelte.d.ts +1 -1
- package/dist/kbd/index.d.ts +1 -1
- package/dist/kbd/theme.d.ts +0 -2
- package/dist/list-group/Listgroup.svelte +3 -3
- package/dist/list-group/Listgroup.svelte.d.ts +1 -1
- package/dist/list-group/ListgroupItem.svelte +2 -2
- package/dist/list-group/ListgroupItem.svelte.d.ts +1 -1
- package/dist/list-group/index.d.ts +1 -1
- package/dist/list-group/theme.d.ts +1 -4
- package/dist/mega-menu/MegaMenu.svelte +7 -7
- 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 +0 -3
- package/dist/modal/Modal.svelte +10 -9
- package/dist/modal/Modal.svelte.d.ts +2 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/theme.d.ts +24 -3
- package/dist/modal/theme.js +6 -0
- package/dist/navbar/Menu.svelte +2 -5
- package/dist/navbar/Menu.svelte.d.ts +1 -1
- package/dist/navbar/NavBrand.svelte +2 -2
- package/dist/navbar/NavBrand.svelte.d.ts +1 -1
- package/dist/navbar/NavContainer.svelte +2 -2
- package/dist/navbar/NavContainer.svelte.d.ts +1 -1
- package/dist/navbar/NavHamburger.svelte +5 -5
- package/dist/navbar/NavHamburger.svelte.d.ts +1 -1
- package/dist/navbar/NavLi.svelte +2 -2
- package/dist/navbar/NavLi.svelte.d.ts +1 -1
- package/dist/navbar/NavUl.svelte +7 -7
- package/dist/navbar/NavUl.svelte.d.ts +1 -1
- package/dist/navbar/Navbar.svelte +1 -1
- package/dist/navbar/Navbar.svelte.d.ts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/navbar/index.js +1 -1
- package/dist/navbar/theme.d.ts +0 -8
- package/dist/pagination/Pagination.svelte +1 -1
- package/dist/pagination/Pagination.svelte.d.ts +1 -1
- package/dist/pagination/PaginationButton.svelte +1 -1
- package/dist/pagination/PaginationButton.svelte.d.ts +1 -1
- package/dist/pagination/PaginationItem.svelte +2 -2
- package/dist/pagination/PaginationItem.svelte.d.ts +1 -1
- package/dist/pagination/PaginationNav.svelte +8 -8
- package/dist/pagination/PaginationNav.svelte.d.ts +1 -1
- package/dist/pagination/index.d.ts +1 -1
- package/dist/pagination/theme.d.ts +0 -6
- package/dist/popover/Popover.svelte +6 -6
- package/dist/popover/Popover.svelte.d.ts +1 -1
- package/dist/popover/index.d.ts +1 -1
- package/dist/popover/theme.d.ts +0 -3
- package/dist/progress/Progressbar.svelte +8 -8
- package/dist/progress/Progressbar.svelte.d.ts +1 -1
- package/dist/progress/Progressradial.svelte +9 -9
- package/dist/progress/Progressradial.svelte.d.ts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/theme.d.ts +0 -5
- package/dist/rating/AdvancedRating.svelte +7 -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 +4 -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 +9 -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/index.d.ts +1 -1
- package/dist/rating/theme.d.ts +6 -15
- package/dist/sidebar/Sidebar.svelte +10 -10
- package/dist/sidebar/Sidebar.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarBrand.svelte +5 -5
- package/dist/sidebar/SidebarBrand.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarButton.svelte +1 -1
- package/dist/sidebar/SidebarButton.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarCta.svelte +5 -5
- package/dist/sidebar/SidebarCta.svelte.d.ts +1 -1
- package/dist/sidebar/SidebarDropdownWrapper.svelte +8 -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 +1 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +1 -1
- package/dist/sidebar/index.d.ts +1 -1
- package/dist/sidebar/theme.d.ts +9 -19
- package/dist/skeleton/CardPlaceholder.svelte +13 -13
- package/dist/skeleton/CardPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ImagePlaceholder.svelte +13 -13
- package/dist/skeleton/ImagePlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/ListPlaceholder.svelte +8 -8
- package/dist/skeleton/ListPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/Skeleton.svelte +10 -10
- package/dist/skeleton/Skeleton.svelte.d.ts +1 -1
- package/dist/skeleton/TestimonialPlaceholder.svelte +9 -9
- package/dist/skeleton/TestimonialPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/TextPlaceholder.svelte +27 -27
- package/dist/skeleton/TextPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte +1 -1
- package/dist/skeleton/VideoPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/WidgetPlaceholder.svelte +3 -3
- package/dist/skeleton/WidgetPlaceholder.svelte.d.ts +1 -1
- package/dist/skeleton/index.d.ts +1 -1
- package/dist/skeleton/theme.d.ts +0 -16
- 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/index.d.ts +1 -1
- package/dist/speed-dial/theme.d.ts +0 -5
- package/dist/spinner/Spinner.svelte +1 -1
- package/dist/spinner/Spinner.svelte.d.ts +1 -1
- package/dist/spinner/index.d.ts +1 -1
- package/dist/spinner/theme.d.ts +0 -2
- package/dist/stepindicator/StepIndicator.svelte +1 -1
- package/dist/stepindicator/StepIndicator.svelte.d.ts +1 -1
- package/dist/stepper/BreadcrumbStepper.svelte +6 -6
- 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 +4 -5
- package/dist/stepper/ProgressStepper.svelte.d.ts +1 -1
- package/dist/stepper/Stepper.svelte +5 -5
- 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 +6 -6
- package/dist/stepper/VerticalStepper.svelte.d.ts +1 -1
- package/dist/stepper/index.d.ts +1 -1
- package/dist/stepper/theme.d.ts +0 -13
- package/dist/table/Table.svelte +4 -4
- package/dist/table/Table.svelte.d.ts +1 -1
- package/dist/table/TableBody.svelte +2 -5
- package/dist/table/TableBody.svelte.d.ts +1 -1
- package/dist/table/TableBodyCell.svelte +1 -1
- package/dist/table/TableBodyCell.svelte.d.ts +1 -1
- package/dist/table/TableBodyRow.svelte +1 -1
- package/dist/table/TableBodyRow.svelte.d.ts +1 -1
- package/dist/table/TableHead.svelte +1 -1
- package/dist/table/TableHead.svelte.d.ts +1 -1
- package/dist/table/TableHeadCell.svelte +1 -1
- package/dist/table/TableHeadCell.svelte.d.ts +1 -1
- package/dist/table/TableSearch.svelte +9 -9
- package/dist/table/TableSearch.svelte.d.ts +1 -1
- package/dist/table/index.d.ts +1 -1
- package/dist/table/theme.d.ts +0 -9
- package/dist/tabs/TabItem.svelte +5 -5
- package/dist/tabs/TabItem.svelte.d.ts +1 -1
- package/dist/tabs/Tabs.svelte +6 -6
- package/dist/tabs/Tabs.svelte.d.ts +2 -2
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/theme.d.ts +0 -5
- package/dist/theme/index.d.ts +7 -0
- package/dist/theme/index.js +1 -2
- package/dist/theme/themes.d.ts +70 -0
- package/dist/theme/themes.js +75 -0
- package/dist/timeline/Activity.svelte +1 -1
- package/dist/timeline/Activity.svelte.d.ts +1 -1
- package/dist/timeline/ActivityItem.svelte +11 -11
- package/dist/timeline/ActivityItem.svelte.d.ts +2 -2
- package/dist/timeline/Group.svelte +6 -6
- package/dist/timeline/Group.svelte.d.ts +2 -2
- package/dist/timeline/GroupItem.svelte +11 -11
- package/dist/timeline/GroupItem.svelte.d.ts +2 -2
- package/dist/timeline/Timeline.svelte +1 -1
- package/dist/timeline/Timeline.svelte.d.ts +1 -1
- package/dist/timeline/TimelineItem.svelte +9 -9
- package/dist/timeline/TimelineItem.svelte.d.ts +2 -2
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/theme.d.ts +9 -20
- package/dist/toast/Toast.svelte +6 -6
- package/dist/toast/Toast.svelte.d.ts +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/theme.d.ts +0 -3
- package/dist/toolbar/Toolbar.svelte +4 -4
- package/dist/toolbar/Toolbar.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarButton.svelte +1 -1
- package/dist/toolbar/ToolbarButton.svelte.d.ts +1 -1
- package/dist/toolbar/ToolbarGroup.svelte +1 -1
- package/dist/toolbar/ToolbarGroup.svelte.d.ts +1 -1
- package/dist/toolbar/index.d.ts +1 -1
- package/dist/toolbar/theme.d.ts +0 -5
- package/dist/tooltip/Tooltip.svelte +1 -1
- package/dist/tooltip/Tooltip.svelte.d.ts +1 -1
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tooltip/theme.d.ts +0 -3
- package/dist/types.d.ts +4 -5
- package/dist/typography/anchor/A.svelte +2 -2
- package/dist/typography/anchor/A.svelte.d.ts +1 -1
- package/dist/typography/anchor/index.d.ts +1 -1
- package/dist/typography/anchor/theme.d.ts +0 -2
- package/dist/typography/blockquote/Blockquote.svelte +1 -1
- package/dist/typography/blockquote/Blockquote.svelte.d.ts +1 -1
- package/dist/typography/blockquote/theme.d.ts +0 -2
- package/dist/typography/descriptionlist/DescriptionList.svelte +1 -1
- package/dist/typography/descriptionlist/DescriptionList.svelte.d.ts +1 -1
- package/dist/typography/descriptionlist/index.d.ts +1 -1
- package/dist/typography/descriptionlist/theme.d.ts +0 -2
- package/dist/typography/heading/Heading.svelte +1 -1
- package/dist/typography/heading/Heading.svelte.d.ts +1 -1
- package/dist/typography/heading/index.d.ts +1 -1
- package/dist/typography/heading/theme.d.ts +0 -2
- package/dist/typography/hr/Hr.svelte +6 -6
- package/dist/typography/hr/Hr.svelte.d.ts +1 -1
- package/dist/typography/hr/index.d.ts +1 -1
- package/dist/typography/hr/theme.d.ts +0 -3
- package/dist/typography/img/EnhancedImg.svelte +7 -7
- package/dist/typography/img/EnhancedImg.svelte.d.ts +1 -1
- package/dist/typography/img/Img.svelte +6 -6
- package/dist/typography/img/Img.svelte.d.ts +1 -1
- package/dist/typography/img/index.d.ts +1 -1
- package/dist/typography/img/theme.d.ts +0 -3
- package/dist/typography/layout/Layout.svelte +1 -1
- package/dist/typography/layout/Layout.svelte.d.ts +1 -1
- package/dist/typography/layout/index.d.ts +1 -1
- package/dist/typography/layout/theme.d.ts +0 -2
- package/dist/typography/list/Li.svelte +2 -5
- package/dist/typography/list/Li.svelte.d.ts +1 -1
- package/dist/typography/list/List.svelte +1 -1
- package/dist/typography/list/List.svelte.d.ts +1 -1
- package/dist/typography/list/index.d.ts +1 -1
- package/dist/typography/list/theme.d.ts +0 -2
- package/dist/typography/mark/Mark.svelte +1 -2
- package/dist/typography/mark/Mark.svelte.d.ts +1 -1
- package/dist/typography/mark/index.d.ts +1 -1
- package/dist/typography/mark/theme.d.ts +0 -2
- package/dist/typography/paragraph/P.svelte +2 -2
- package/dist/typography/paragraph/P.svelte.d.ts +1 -1
- package/dist/typography/paragraph/index.d.ts +1 -1
- package/dist/typography/paragraph/theme.d.ts +0 -2
- package/dist/typography/secondary/Secondary.svelte +1 -1
- package/dist/typography/secondary/Secondary.svelte.d.ts +1 -1
- package/dist/typography/secondary/index.d.ts +1 -1
- package/dist/typography/secondary/theme.d.ts +0 -2
- package/dist/typography/span/Span.svelte +1 -1
- package/dist/typography/span/Span.svelte.d.ts +1 -1
- package/dist/typography/span/index.d.ts +1 -1
- package/dist/typography/span/theme.d.ts +0 -2
- package/dist/utils/Arrow.svelte +1 -1
- package/dist/utils/Arrow.svelte.d.ts +1 -1
- package/dist/utils/Popper.svelte +1 -1
- package/dist/utils/Popper.svelte.d.ts +1 -1
- package/dist/video/Video.svelte +1 -1
- package/dist/video/Video.svelte.d.ts +1 -1
- package/package.json +10 -10
package/dist/navbar/NavUl.svelte
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { writable } from "svelte/store";
|
|
6
6
|
import { slide, fly, fade, scale } from "svelte/transition";
|
|
7
7
|
import clsx from "clsx";
|
|
8
|
-
import { navbarUl
|
|
8
|
+
import { navbarUl } from "./theme";
|
|
9
9
|
import type { NavbarState, NavUlProps } from "../types";
|
|
10
10
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
11
11
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
warnThemeDeprecation("NavUl", { ulClass, activeClass, nonActiveClass }, { ulClass: "ul", activeClass: "active", nonActiveClass: "nonActive" });
|
|
17
17
|
const styling = $derived(classes ?? { ul: ulClass, active: activeClass, nonActive: nonActiveClass });
|
|
18
18
|
|
|
19
|
-
const theme = getTheme("
|
|
19
|
+
const theme = getTheme("navbarUl");
|
|
20
20
|
|
|
21
21
|
// Default parameters for different transitions
|
|
22
22
|
const getDefaultParams = (transitionFn: any) => {
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
let { base, ul, active, nonActive } = $derived(navbarUl({ hidden }));
|
|
47
47
|
|
|
48
48
|
$effect(() => {
|
|
49
|
-
navState.activeClass = active({ class: clsx(
|
|
50
|
-
navState.nonActiveClass = nonActive({ class: clsx(
|
|
49
|
+
navState.activeClass = active({ class: clsx(theme?.active, styling.active) });
|
|
50
|
+
navState.nonActiveClass = nonActive({ class: clsx(theme?.nonActive, styling.nonActive) });
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
$effect(() => {
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
});
|
|
56
56
|
setContext("activeUrl", activeUrlStore);
|
|
57
57
|
|
|
58
|
-
let divCls: string = $derived(base({ class: clsx(
|
|
59
|
-
let ulCls: string = $derived(ul({ class: clsx(
|
|
58
|
+
let divCls: string = $derived(base({ class: clsx(theme?.base, clasName) }));
|
|
59
|
+
let ulCls: string = $derived(ul({ class: clsx(theme?.ul, styling.ul) }));
|
|
60
60
|
</script>
|
|
61
61
|
|
|
62
62
|
{#if !hidden}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
@component
|
|
78
78
|
[Go to docs](https://flowbite-svelte.com/)
|
|
79
79
|
## Type
|
|
80
|
-
[NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
80
|
+
[NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1108)
|
|
81
81
|
## Props
|
|
82
82
|
@prop children
|
|
83
83
|
@prop activeUrl
|
|
@@ -2,7 +2,7 @@ import type { NavUlProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [NavUlProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1108)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop activeUrl
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@component
|
|
46
46
|
[Go to docs](https://flowbite-svelte.com/)
|
|
47
47
|
## Type
|
|
48
|
-
[NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
48
|
+
[NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1089)
|
|
49
49
|
## Props
|
|
50
50
|
@prop children
|
|
51
51
|
@prop fluid
|
|
@@ -2,7 +2,7 @@ import type { NavbarProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [NavbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1089)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop fluid
|
package/dist/navbar/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export { default as NavLi } from "./NavLi.svelte";
|
|
|
4
4
|
export { default as NavUl } from "./NavUl.svelte";
|
|
5
5
|
export { default as NavHamburger } from "./NavHamburger.svelte";
|
|
6
6
|
export { default as NavContainer } from "./NavContainer.svelte";
|
|
7
|
-
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger,
|
|
7
|
+
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger, navbarContainer } from "./theme";
|
package/dist/navbar/index.js
CHANGED
|
@@ -4,4 +4,4 @@ export { default as NavLi } from "./NavLi.svelte";
|
|
|
4
4
|
export { default as NavUl } from "./NavUl.svelte";
|
|
5
5
|
export { default as NavHamburger } from "./NavHamburger.svelte";
|
|
6
6
|
export { default as NavContainer } from "./NavContainer.svelte";
|
|
7
|
-
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger } from "./theme";
|
|
7
|
+
export { navbar, navbarUl, navbarBrand, navbarLi, navbarHamburger, navbarContainer } from "./theme";
|
package/dist/navbar/theme.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type NavbarUlVariants = VariantProps<typeof navbarUl> & Classes<typeof navbarUl>;
|
|
5
4
|
export type NavbarHamburgerVariants = VariantProps<typeof navbarHamburger> & Classes<typeof navbarHamburger>;
|
|
6
|
-
export type NavbarTheme = ClassValue;
|
|
7
|
-
export type NavbarBrandTheme = ClassValue;
|
|
8
|
-
export type NavbarUlSlots = keyof typeof navbarUl.slots;
|
|
9
|
-
export type NavbarUlTheme = Partial<Record<NavbarUlSlots, ClassValue>>;
|
|
10
|
-
export type NavbarLiTheme = ClassValue;
|
|
11
|
-
export type NavbarHamburgerSlots = keyof typeof navbarHamburger.slots;
|
|
12
|
-
export type NavbarHamburgerTheme = Partial<Record<NavbarHamburgerSlots, ClassValue>>;
|
|
13
5
|
export declare const navbar: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "relative w-full px-2 py-2.5 sm:px-4", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "relative w-full px-2 py-2.5 sm:px-4", unknown, unknown, undefined>>;
|
|
14
6
|
export declare const navbarBrand: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "flex items-center", {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "flex items-center", unknown, unknown, undefined>>;
|
|
15
7
|
export declare const navbarContainer: import("tailwind-variants").TVReturnType<{
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
@component
|
|
55
55
|
[Go to docs](https://flowbite-svelte.com/)
|
|
56
56
|
## Type
|
|
57
|
-
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
57
|
+
[PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
|
|
58
58
|
## Props
|
|
59
59
|
@prop pages = []
|
|
60
60
|
@prop previous
|
|
@@ -2,7 +2,7 @@ import type { PaginationProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1188)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop pages = []
|
|
8
8
|
* @prop previous
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
@component
|
|
51
51
|
[Go to docs](https://flowbite-svelte.com/)
|
|
52
52
|
## Type
|
|
53
|
-
[PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
53
|
+
[PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1159)
|
|
54
54
|
## Props
|
|
55
55
|
@prop children
|
|
56
56
|
@prop size
|
|
@@ -2,7 +2,7 @@ import type { PaginationButtonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1159)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { paginationItem
|
|
3
|
+
import { paginationItem } from ".";
|
|
4
4
|
import type { PaginationItemProps } from "../types";
|
|
5
5
|
import { getContext } from "svelte";
|
|
6
6
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1184)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@prop size
|
|
@@ -2,7 +2,7 @@ import type { PaginationItemProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1184)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop size
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { setContext } from "svelte";
|
|
4
|
-
import { paginationNav
|
|
4
|
+
import { paginationNav } from "./theme";
|
|
5
5
|
import { type PaginationNavProps, PaginationButton } from "..";
|
|
6
6
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
7
7
|
|
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
|
|
63
63
|
<nav aria-label={ariaLabel} {...restProps}>
|
|
64
64
|
{#if layout === "table"}
|
|
65
|
-
<div class={tableDiv({ class: clsx(
|
|
66
|
-
Showing <span class={span({ class: clsx(
|
|
65
|
+
<div class={tableDiv({ class: clsx(theme?.tableDiv, styling.tableDiv) })}>
|
|
66
|
+
Showing <span class={span({ class: clsx(theme?.span, styling.span) })}>{currentPage}</span>
|
|
67
67
|
of
|
|
68
|
-
<span class={span({ class: clsx(
|
|
68
|
+
<span class={span({ class: clsx(theme?.span, styling.span) })}>{totalPages}</span>
|
|
69
69
|
Entries
|
|
70
70
|
</div>
|
|
71
71
|
{/if}
|
|
72
72
|
|
|
73
|
-
<ul class={base({ class: clsx(
|
|
73
|
+
<ul class={base({ class: clsx(theme?.base, className) })}>
|
|
74
74
|
<li {...restProps}>
|
|
75
|
-
<PaginationButton onclick={goToPreviousPage} disabled={currentPage === 1} class={prev({ class: clsx(
|
|
75
|
+
<PaginationButton onclick={goToPreviousPage} disabled={currentPage === 1} class={prev({ class: clsx(theme?.prev, styling.prev) })}>
|
|
76
76
|
{#if prevContent}
|
|
77
77
|
{@render prevContent()}
|
|
78
78
|
{:else}
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
{/each}
|
|
91
91
|
{/if}
|
|
92
92
|
<li {...restProps}>
|
|
93
|
-
<PaginationButton onclick={goToNextPage} disabled={currentPage === totalPages} class={next({ class: clsx(
|
|
93
|
+
<PaginationButton onclick={goToNextPage} disabled={currentPage === totalPages} class={next({ class: clsx(theme?.next, styling.next) })}>
|
|
94
94
|
{#if nextContent}
|
|
95
95
|
{@render nextContent()}
|
|
96
96
|
{:else}
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
@component
|
|
106
106
|
[Go to docs](https://flowbite-svelte.com/)
|
|
107
107
|
## Type
|
|
108
|
-
[PaginationNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
108
|
+
[PaginationNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1165)
|
|
109
109
|
## Props
|
|
110
110
|
@prop currentPage = 1
|
|
111
111
|
@prop totalPages = 1
|
|
@@ -2,7 +2,7 @@ import { type PaginationNavProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PaginationNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PaginationNavProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1165)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop currentPage = 1
|
|
8
8
|
* @prop totalPages = 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { paginationItem, pagination, paginationButton, paginationNav
|
|
1
|
+
export { paginationItem, pagination, paginationButton, paginationNav } from "./theme";
|
|
2
2
|
export { default as PaginationNav } from "./PaginationNav.svelte";
|
|
3
3
|
export { default as PaginationButton } from "./PaginationButton.svelte";
|
|
4
4
|
export { default as Pagination } from "./Pagination.svelte";
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type PaginationNavVariants = VariantProps<typeof paginationNav> & Classes<typeof paginationNav>;
|
|
5
4
|
export type PaginationVariants = VariantProps<typeof pagination>;
|
|
6
|
-
export type PaginationNavSlots = keyof typeof paginationNav.slots;
|
|
7
|
-
export type PaginationNavTheme = Partial<Record<PaginationNavSlots, ClassValue>>;
|
|
8
5
|
export type PaginationItemVariants = VariantProps<typeof paginationItem>;
|
|
9
|
-
export type PaginationButtonTheme = ClassValue;
|
|
10
|
-
export type PaginationItemTheme = ClassValue;
|
|
11
|
-
export type PaginationTheme = ClassValue;
|
|
12
6
|
export declare const paginationNav: import("tailwind-variants").TVReturnType<{
|
|
13
7
|
size: {
|
|
14
8
|
default: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import Popper from "../utils/Popper.svelte";
|
|
4
|
-
import { popover
|
|
4
|
+
import { popover } from "./theme";
|
|
5
5
|
import type { PopoverProps } from "../types";
|
|
6
6
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
7
7
|
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
let { base, title, h3, content } = $derived(popover({ color }));
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
|
-
<Popper {...restProps} bind:isOpen {placement} {trigger} {arrow} class={base({ class: clsx(
|
|
19
|
+
<Popper {...restProps} bind:isOpen {placement} {trigger} {arrow} class={base({ class: clsx(theme?.base, className) })}>
|
|
20
20
|
{#if typeof titleSlot === "string"}
|
|
21
|
-
<div class={title({ class: clsx(
|
|
22
|
-
<h3 class={h3({ class: clsx(
|
|
21
|
+
<div class={title({ class: clsx(theme?.title, classes?.title) })}>
|
|
22
|
+
<h3 class={h3({ class: clsx(theme?.h3, classes?.h3) })}>{titleSlot}</h3>
|
|
23
23
|
</div>
|
|
24
24
|
{:else if titleSlot}
|
|
25
25
|
{@render titleSlot()}
|
|
26
26
|
{/if}
|
|
27
|
-
<div class={content({ class: clsx(
|
|
27
|
+
<div class={content({ class: clsx(theme?.content, styling.content) })}>
|
|
28
28
|
{@render children()}
|
|
29
29
|
</div>
|
|
30
30
|
</Popper>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@component
|
|
34
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
35
|
## Type
|
|
36
|
-
[PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1198)
|
|
37
37
|
## Props
|
|
38
38
|
@prop title: titleSlot
|
|
39
39
|
@prop color = "default"
|
|
@@ -2,7 +2,7 @@ import type { PopoverProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [PopoverProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1198)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop title: titleSlot
|
|
8
8
|
* @prop color = "default"
|
package/dist/popover/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Popover } from "./Popover.svelte";
|
|
2
|
-
export { popover
|
|
2
|
+
export { popover } from "./theme";
|
package/dist/popover/theme.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type PopoverVariants = VariantProps<typeof popover> & Classes<typeof popover>;
|
|
5
|
-
export type PopoverSlots = keyof typeof popover.slots;
|
|
6
|
-
export type PopoverTheme = Partial<Record<PopoverSlots, ClassValue>>;
|
|
7
4
|
export declare const popover: import("tailwind-variants").TVReturnType<{
|
|
8
5
|
color: {
|
|
9
6
|
default: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { cubicOut } from "svelte/easing";
|
|
5
5
|
import { Tween } from "svelte/motion";
|
|
6
|
-
import { progressbar
|
|
6
|
+
import { progressbar } from ".";
|
|
7
7
|
import { getTheme } from "../theme/themeUtils";
|
|
8
8
|
|
|
9
9
|
let { progress = "45", precision = 0, tweenDuration = 400, animate = false, size = "h-2.5", labelInside = false, labelOutside = "", easing = cubicOut, color = "primary", class: className, classes, ...restProps }: ProgressbarProps = $props();
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
36
|
{#if labelOutside}
|
|
37
|
-
<div {...restProps} class={outside({ class: clsx(
|
|
38
|
-
<span class={span({ class: clsx(
|
|
39
|
-
<span class={progressCls({ class: clsx(
|
|
37
|
+
<div {...restProps} class={outside({ class: clsx(theme?.outside, classes?.outside) })}>
|
|
38
|
+
<span class={span({ class: clsx(theme?.span, classes?.span) })}>{labelOutside}</span>
|
|
39
|
+
<span class={progressCls({ class: clsx(theme?.progressCls, classes?.progressCls) })}>{progress}%</span>
|
|
40
40
|
</div>
|
|
41
41
|
{/if}
|
|
42
|
-
<div {...restProps} class={base({ class: clsx(size,
|
|
42
|
+
<div {...restProps} class={base({ class: clsx(size, theme?.base, className) })}>
|
|
43
43
|
{#if labelInside}
|
|
44
|
-
<div class={labelInsideCls({ class: clsx(size,
|
|
44
|
+
<div class={labelInsideCls({ class: clsx(size, theme?.label, classes?.label) })} style="width: {_progress.current}%">
|
|
45
45
|
{_progress.current.toFixed(precision)}%
|
|
46
46
|
</div>
|
|
47
47
|
{:else}
|
|
48
|
-
<div class={inside({ class: clsx(size,
|
|
48
|
+
<div class={inside({ class: clsx(size, theme?.inside, classes?.label) })} style="width: {_progress.current}%"></div>
|
|
49
49
|
{/if}
|
|
50
50
|
</div>
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
@component
|
|
54
54
|
[Go to docs](https://flowbite-svelte.com/)
|
|
55
55
|
## Type
|
|
56
|
-
[ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
56
|
+
[ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1208)
|
|
57
57
|
## Props
|
|
58
58
|
@prop progress = "45"
|
|
59
59
|
@prop precision = 0
|
|
@@ -2,7 +2,7 @@ import type { ProgressbarProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ProgressbarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1208)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop progress = "45"
|
|
8
8
|
* @prop precision = 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { progressradial
|
|
2
|
+
import { progressradial } from ".";
|
|
3
3
|
import type { ProgressradialProps } from "../types";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { cubicOut } from "svelte/easing";
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
|
|
39
39
|
<div class="flex flex-col items-center">
|
|
40
40
|
{#if labelOutside}
|
|
41
|
-
<div class={outside({ class: clsx(
|
|
42
|
-
<span class={span({ class: clsx(
|
|
43
|
-
<span class={progressCls({ class: clsx(
|
|
41
|
+
<div class={outside({ class: clsx(theme?.outside, classes?.outside) })}>
|
|
42
|
+
<span class={span({ class: clsx(theme?.span, classes?.span) })}>{labelOutside}</span>
|
|
43
|
+
<span class={progressCls({ class: clsx(theme?.progressCls, classes?.progressCls) })}>{formattedProgress}%</span>
|
|
44
44
|
</div>
|
|
45
45
|
{/if}
|
|
46
46
|
|
|
47
|
-
<div {...restProps} class={base({ class: clsx(size,
|
|
47
|
+
<div {...restProps} class={base({ class: clsx(size, theme?.base, className) })}>
|
|
48
48
|
<svg viewBox="0 0 100 100" class="h-full w-full" style="transform: rotate({rotationAngle}deg)">
|
|
49
49
|
<!-- Background circle -->
|
|
50
|
-
<circle cx="50" cy="50" r={radius} class={background({ class: clsx(
|
|
50
|
+
<circle cx="50" cy="50" r={radius} class={background({ class: clsx(theme?.background, classes?.background) })} fill="none" stroke-width={thickness} />
|
|
51
51
|
|
|
52
52
|
<!-- Foreground circle (progress indicator) -->
|
|
53
|
-
<circle cx="50" cy="50" r={radius} class={foreground({ class: clsx(
|
|
53
|
+
<circle cx="50" cy="50" r={radius} class={foreground({ class: clsx(theme?.foreground, classes?.foreground) })} fill="none" stroke-width={thickness} stroke-dasharray={circumference} stroke-dashoffset={strokeDashoffset} stroke-linecap="round" />
|
|
54
54
|
</svg>
|
|
55
55
|
|
|
56
56
|
{#if labelInside}
|
|
57
|
-
<div class={label({ class: clsx(
|
|
57
|
+
<div class={label({ class: clsx(theme?.label, classes?.label) })}>
|
|
58
58
|
{formattedProgress}%
|
|
59
59
|
</div>
|
|
60
60
|
{/if}
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
@component
|
|
66
66
|
[Go to docs](https://flowbite-svelte.com/)
|
|
67
67
|
## Type
|
|
68
|
-
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
68
|
+
[ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1219)
|
|
69
69
|
## Props
|
|
70
70
|
@prop progress = 45
|
|
71
71
|
@prop radius = 42
|
|
@@ -2,7 +2,7 @@ import type { ProgressradialProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ProgressradialProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1219)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop progress = 45
|
|
8
8
|
* @prop radius = 42
|
package/dist/progress/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Progressbar } from "./Progressbar.svelte";
|
|
2
2
|
export { default as Progressradial } from "./Progressradial.svelte";
|
|
3
|
-
export { progressbar,
|
|
3
|
+
export { progressbar, progressradial } from "./theme";
|
package/dist/progress/theme.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from "tailwind-variants";
|
|
2
|
-
import type { ClassValue } from "svelte/elements";
|
|
3
2
|
import type { Classes } from "../theme/themeUtils";
|
|
4
3
|
export type ProgressbarVariants = VariantProps<typeof progressbar> & Classes<typeof progressbar>;
|
|
5
4
|
export type ProgressradialVariants = VariantProps<typeof progressradial> & Classes<typeof progressradial>;
|
|
6
|
-
export type ProgressbarSlots = keyof typeof progressbar.slots;
|
|
7
|
-
export type ProgressbarTheme = Partial<Record<ProgressbarSlots, ClassValue>>;
|
|
8
|
-
export type ProgressradialSlots = keyof typeof progressradial.slots;
|
|
9
|
-
export type ProgressradialTheme = Partial<Record<ProgressradialSlots, ClassValue>>;
|
|
10
5
|
export declare const progressbar: import("tailwind-variants").TVReturnType<{
|
|
11
6
|
color: {
|
|
12
7
|
primary: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { advancedRating
|
|
3
|
+
import { advancedRating } from ".";
|
|
4
4
|
import type { AdvancedRatingProps } from "../types";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
{@render globalText()}
|
|
29
29
|
{/if}
|
|
30
30
|
{#each ratings as { label, rating }}
|
|
31
|
-
<div class={base({ class: clsx(
|
|
32
|
-
<span class={span({ class: clsx(
|
|
33
|
-
<div class={div2({ class: clsx(
|
|
34
|
-
<div class={div3({ class: clsx(
|
|
31
|
+
<div class={base({ class: clsx(theme?.base, className) })}>
|
|
32
|
+
<span class={span({ class: clsx(theme?.span, styling.span) })}>{label}</span>
|
|
33
|
+
<div class={div2({ class: clsx(theme?.div2, styling.div2) })}>
|
|
34
|
+
<div class={div3({ class: clsx(theme?.div3, styling.div3) })} style="width: {rating}%"></div>
|
|
35
35
|
</div>
|
|
36
|
-
<span class={span2({ class: clsx(
|
|
36
|
+
<span class={span2({ class: clsx(theme?.span2, styling.span2) })}>{rating}{unit}</span>
|
|
37
37
|
</div>
|
|
38
38
|
{/each}
|
|
39
39
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
@component
|
|
42
42
|
[Go to docs](https://flowbite-svelte.com/)
|
|
43
43
|
## Type
|
|
44
|
-
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
44
|
+
[AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1236)
|
|
45
45
|
## Props
|
|
46
46
|
@prop rating
|
|
47
47
|
@prop globalText
|
|
@@ -2,7 +2,7 @@ import type { AdvancedRatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [AdvancedRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1236)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop rating
|
|
8
8
|
* @prop globalText
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@component
|
|
30
30
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
31
|
## Type
|
|
32
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
32
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1322)
|
|
33
33
|
## Props
|
|
34
34
|
@prop fillPercent = 100
|
|
35
35
|
@prop fillColor = "#00ff00"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1322)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#00ff00"
|
package/dist/rating/Heart.svelte
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
@component
|
|
29
29
|
[Go to docs](https://flowbite-svelte.com/)
|
|
30
30
|
## Type
|
|
31
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
31
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1322)
|
|
32
32
|
## Props
|
|
33
33
|
@prop fillPercent = 100
|
|
34
34
|
@prop fillColor = "#ff0000"
|
|
@@ -2,7 +2,7 @@ import type { RatingIconProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1322)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop fillPercent = 100
|
|
8
8
|
* @prop fillColor = "#ff0000"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import Star from "./Star.svelte";
|
|
4
|
-
import { rating as ratingVariants
|
|
4
|
+
import { rating as ratingVariants } from ".";
|
|
5
5
|
import type { RatingProps } from "../types";
|
|
6
6
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
7
7
|
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
let grayStars: number = total - (fullStars + Math.ceil(rateDiffence));
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
|
-
<div {...restProps} class={base({ class: clsx(
|
|
23
|
+
<div {...restProps} class={base({ class: clsx(theme?.base, className) })}>
|
|
24
24
|
{#if count && children}
|
|
25
25
|
<Icon fillPercent={100} {size} iconIndex={0} groupId={ratingGroupId} />
|
|
26
|
-
<p class={p({ class: clsx(
|
|
26
|
+
<p class={p({ class: clsx(theme?.p, styling.p) })}>{rating}</p>
|
|
27
27
|
{@render children()}
|
|
28
28
|
{:else}
|
|
29
29
|
<!-- eslint-disable @typescript-eslint/no-unused-vars-->
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
@component
|
|
48
48
|
[Go to docs](https://flowbite-svelte.com/)
|
|
49
49
|
## Type
|
|
50
|
-
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
50
|
+
[RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1248)
|
|
51
51
|
## Props
|
|
52
52
|
@prop children
|
|
53
53
|
@prop text
|
|
@@ -2,7 +2,7 @@ import type { RatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1248)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop text
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
@component
|
|
64
64
|
[Go to docs](https://flowbite-svelte.com/)
|
|
65
65
|
## Type
|
|
66
|
-
[RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
66
|
+
[RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1259)
|
|
67
67
|
## Props
|
|
68
68
|
@prop children
|
|
69
69
|
@prop evaluation
|
|
@@ -2,7 +2,7 @@ import type { RatingCommentProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [RatingCommentProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1259)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop evaluation
|