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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { review as reviewVariants
|
|
3
|
+
import { review as reviewVariants } from ".";
|
|
4
4
|
import type { ReviewProps } from "../types";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
{#if review}
|
|
28
|
-
<article class={article({ class: clsx(
|
|
28
|
+
<article class={article({ class: clsx(theme?.article, styling.article) })}>
|
|
29
29
|
<div>
|
|
30
|
-
<div class={div({ class: clsx(
|
|
31
|
-
<img class={img({ class: clsx(
|
|
32
|
-
<div class={div2({ class: clsx(
|
|
30
|
+
<div class={div({ class: clsx(theme?.div, styling.div) })}>
|
|
31
|
+
<img class={img({ class: clsx(theme?.img, styling.img) })} src={review.imgSrc} alt={review.imgAlt} />
|
|
32
|
+
<div class={div2({ class: clsx(theme?.div2, styling.div2) })}>
|
|
33
33
|
<p>{review.name}</p>
|
|
34
34
|
{#if review.address}
|
|
35
35
|
{#if address}
|
|
36
|
-
<div class={div3({ class: clsx(
|
|
36
|
+
<div class={div3({ class: clsx(theme?.div3, styling.div3) })}>
|
|
37
37
|
{@render address()}
|
|
38
38
|
</div>
|
|
39
39
|
{/if}
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
{#if review.item1 || review.item2 || review.item3}
|
|
44
|
-
<ul class={ul({ class: clsx(
|
|
44
|
+
<ul class={ul({ class: clsx(theme?.ul, styling.ul) })}>
|
|
45
45
|
{#if review.item1}
|
|
46
|
-
<li class={li({ class: clsx(
|
|
46
|
+
<li class={li({ class: clsx(theme?.li, styling.li) })}>
|
|
47
47
|
{#if item1}
|
|
48
48
|
{@render item1()}
|
|
49
49
|
{/if}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
@component
|
|
95
95
|
[Go to docs](https://flowbite-svelte.com/)
|
|
96
96
|
## Type
|
|
97
|
-
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
97
|
+
[ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1295)
|
|
98
98
|
## Props
|
|
99
99
|
@prop children
|
|
100
100
|
@prop address
|
|
@@ -2,7 +2,7 @@ import type { ReviewProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ReviewProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1295)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop address
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import { scoreRating
|
|
2
|
+
import { scoreRating } from ".";
|
|
3
3
|
import type { ScoreRatingProps } from "../types";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
import { getTheme } from "../theme/themeUtils";
|
|
@@ -14,17 +14,17 @@
|
|
|
14
14
|
<div class="mb-5 flex items-center">
|
|
15
15
|
{#if headerLabel}
|
|
16
16
|
{#if headerLabel.desc1}
|
|
17
|
-
<p class={desc1({ class: clsx(
|
|
17
|
+
<p class={desc1({ class: clsx(theme?.desc1, classes?.desc1) })}>{headerLabel.desc1}</p>
|
|
18
18
|
{/if}
|
|
19
19
|
{#if headerLabel.desc2}
|
|
20
|
-
<p class={desc2({ class: clsx(
|
|
20
|
+
<p class={desc2({ class: clsx(theme?.desc2, classes?.desc2) })}>{headerLabel.desc2}</p>
|
|
21
21
|
{/if}
|
|
22
22
|
{#if headerLabel.desc3}
|
|
23
|
-
<span class={desc3span({ class: clsx(
|
|
24
|
-
<p class={desc3p({ class: clsx(
|
|
23
|
+
<span class={desc3span({ class: clsx(theme?.desc3span, classes?.desc3span) })}></span>
|
|
24
|
+
<p class={desc3p({ class: clsx(theme?.desc3p, classes?.desc3p) })}>{headerLabel.desc3}</p>
|
|
25
25
|
{/if}
|
|
26
26
|
{#if headerLabel.link}
|
|
27
|
-
<a href={headerLabel.link.url} class={link({ class: clsx(
|
|
27
|
+
<a href={headerLabel.link.url} class={link({ class: clsx(theme?.link, classes?.link) })}>{headerLabel.link.label}</a>
|
|
28
28
|
{/if}
|
|
29
29
|
{/if}
|
|
30
30
|
</div>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</dt>
|
|
39
39
|
<dd class="mb-3 flex items-center">
|
|
40
40
|
<div class="me-2 h-2.5 w-full rounded-sm bg-gray-200 dark:bg-gray-700">
|
|
41
|
-
<div class={bar({ class: clsx(
|
|
41
|
+
<div class={bar({ class: clsx(theme?.bar, classes?.bar) })} style="width: {rating * 10}%"></div>
|
|
42
42
|
</div>
|
|
43
43
|
<span class="text-sm font-medium text-gray-500 dark:text-gray-400">{rating}</span>
|
|
44
44
|
</dd>
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
</dt>
|
|
56
56
|
<dd class="mb-3 flex items-center">
|
|
57
57
|
<div class="me-2 h-2.5 w-full rounded-sm bg-gray-200 dark:bg-gray-700">
|
|
58
|
-
<div class={bar({ class: clsx(
|
|
58
|
+
<div class={bar({ class: clsx(theme?.bar, classes?.bar) })} style="width: {rating * 10}%"></div>
|
|
59
59
|
</div>
|
|
60
60
|
<span class="text-sm font-medium text-gray-500 dark:text-gray-400">{rating}</span>
|
|
61
61
|
</dd>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
@component
|
|
70
70
|
[Go to docs](https://flowbite-svelte.com/)
|
|
71
71
|
## Type
|
|
72
|
-
[ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
72
|
+
[ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
|
|
73
73
|
## Props
|
|
74
74
|
@prop ratings
|
|
75
75
|
@prop ratings2
|
|
@@ -2,7 +2,7 @@ import type { ScoreRatingProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [ScoreRatingProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1311)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop ratings
|
|
8
8
|
* @prop ratings2
|
package/dist/rating/Star.svelte
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
@component
|
|
36
36
|
[Go to docs](https://flowbite-svelte.com/)
|
|
37
37
|
## Type
|
|
38
|
-
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
38
|
+
[RatingIconProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1322)
|
|
39
39
|
## Props
|
|
40
40
|
@prop fillPercent = 100
|
|
41
41
|
@prop fillColor = "#F5CA14"
|
|
@@ -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 = "#F5CA14"
|
|
@@ -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 = "#00b500"
|
|
@@ -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 = "#00b500"
|
package/dist/rating/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export { default as ScoreRating } from "./ScoreRating.svelte";
|
|
|
7
7
|
export { default as Star } from "./Star.svelte";
|
|
8
8
|
export { default as Thumbup } from "./Thumbup.svelte";
|
|
9
9
|
export { default as CustomIcon } from "./CustomIcon.svelte";
|
|
10
|
-
export { advancedRating, rating, review, scoreRating
|
|
10
|
+
export { advancedRating, rating, review, scoreRating } from "./theme";
|
package/dist/rating/theme.d.ts
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
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 RatingVariants = VariantProps<typeof rating> & Classes<typeof rating>;
|
|
5
4
|
export type AdvancedRatingVariants = VariantProps<typeof advancedRating> & Classes<typeof advancedRating>;
|
|
6
5
|
export type ReviewVariants = VariantProps<typeof review> & Classes<typeof review>;
|
|
7
6
|
export type ScoreRatingVariants = VariantProps<typeof scoreRating> & Classes<typeof scoreRating>;
|
|
8
|
-
export type AdvancedRatingSlots = keyof typeof advancedRating.slots;
|
|
9
|
-
export type AdvancedRatingTheme = Partial<Record<AdvancedRatingSlots, ClassValue>>;
|
|
10
|
-
export type RatingSlots = keyof typeof rating.slots;
|
|
11
|
-
export type RatingTheme = Partial<Record<RatingSlots, ClassValue>>;
|
|
12
|
-
export type ReviewSlots = keyof typeof review.slots;
|
|
13
|
-
export type ReviewTheme = Partial<Record<ReviewSlots, ClassValue>>;
|
|
14
|
-
export type ScoreRatingSlots = keyof typeof scoreRating.slots;
|
|
15
|
-
export type ScoreRatingTheme = Partial<Record<ScoreRatingSlots, ClassValue>>;
|
|
16
7
|
export declare const advancedRating: import("tailwind-variants").TVReturnType<{
|
|
17
8
|
[key: string]: {
|
|
18
9
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
19
|
-
base?: import("tailwind-variants").ClassValue;
|
|
20
10
|
span?: import("tailwind-variants").ClassValue;
|
|
11
|
+
base?: import("tailwind-variants").ClassValue;
|
|
21
12
|
div2?: import("tailwind-variants").ClassValue;
|
|
22
13
|
div3?: import("tailwind-variants").ClassValue;
|
|
23
14
|
span2?: import("tailwind-variants").ClassValue;
|
|
@@ -26,8 +17,8 @@ export declare const advancedRating: import("tailwind-variants").TVReturnType<{
|
|
|
26
17
|
} | {
|
|
27
18
|
[x: string]: {
|
|
28
19
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
29
|
-
base?: import("tailwind-variants").ClassValue;
|
|
30
20
|
span?: import("tailwind-variants").ClassValue;
|
|
21
|
+
base?: import("tailwind-variants").ClassValue;
|
|
31
22
|
div2?: import("tailwind-variants").ClassValue;
|
|
32
23
|
div3?: import("tailwind-variants").ClassValue;
|
|
33
24
|
span2?: import("tailwind-variants").ClassValue;
|
|
@@ -42,8 +33,8 @@ export declare const advancedRating: import("tailwind-variants").TVReturnType<{
|
|
|
42
33
|
}, undefined, {
|
|
43
34
|
[key: string]: {
|
|
44
35
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
45
|
-
base?: import("tailwind-variants").ClassValue;
|
|
46
36
|
span?: import("tailwind-variants").ClassValue;
|
|
37
|
+
base?: import("tailwind-variants").ClassValue;
|
|
47
38
|
div2?: import("tailwind-variants").ClassValue;
|
|
48
39
|
div3?: import("tailwind-variants").ClassValue;
|
|
49
40
|
span2?: import("tailwind-variants").ClassValue;
|
|
@@ -96,9 +87,9 @@ export declare const rating: import("tailwind-variants").TVReturnType<{
|
|
|
96
87
|
export declare const review: import("tailwind-variants").TVReturnType<{
|
|
97
88
|
[key: string]: {
|
|
98
89
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
90
|
+
img?: import("tailwind-variants").ClassValue;
|
|
99
91
|
div?: import("tailwind-variants").ClassValue;
|
|
100
92
|
article?: import("tailwind-variants").ClassValue;
|
|
101
|
-
img?: import("tailwind-variants").ClassValue;
|
|
102
93
|
li?: import("tailwind-variants").ClassValue;
|
|
103
94
|
ul?: import("tailwind-variants").ClassValue;
|
|
104
95
|
div2?: import("tailwind-variants").ClassValue;
|
|
@@ -108,9 +99,9 @@ export declare const review: import("tailwind-variants").TVReturnType<{
|
|
|
108
99
|
} | {
|
|
109
100
|
[x: string]: {
|
|
110
101
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
102
|
+
img?: import("tailwind-variants").ClassValue;
|
|
111
103
|
div?: import("tailwind-variants").ClassValue;
|
|
112
104
|
article?: import("tailwind-variants").ClassValue;
|
|
113
|
-
img?: import("tailwind-variants").ClassValue;
|
|
114
105
|
li?: import("tailwind-variants").ClassValue;
|
|
115
106
|
ul?: import("tailwind-variants").ClassValue;
|
|
116
107
|
div2?: import("tailwind-variants").ClassValue;
|
|
@@ -128,9 +119,9 @@ export declare const review: import("tailwind-variants").TVReturnType<{
|
|
|
128
119
|
}, undefined, {
|
|
129
120
|
[key: string]: {
|
|
130
121
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
122
|
+
img?: import("tailwind-variants").ClassValue;
|
|
131
123
|
div?: import("tailwind-variants").ClassValue;
|
|
132
124
|
article?: import("tailwind-variants").ClassValue;
|
|
133
|
-
img?: import("tailwind-variants").ClassValue;
|
|
134
125
|
li?: import("tailwind-variants").ClassValue;
|
|
135
126
|
ul?: import("tailwind-variants").ClassValue;
|
|
136
127
|
div2?: import("tailwind-variants").ClassValue;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { fly } from "svelte/transition";
|
|
4
4
|
import { writable } from "svelte/store";
|
|
5
5
|
import { sineIn } from "svelte/easing";
|
|
6
|
-
import { sidebar
|
|
6
|
+
import { sidebar } from ".";
|
|
7
7
|
import { trapFocus, type SidebarProps, type SidebarCtxType } from "..";
|
|
8
8
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
9
9
|
import clsx from "clsx";
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
return closeSidebar;
|
|
49
49
|
},
|
|
50
50
|
get activeClass() {
|
|
51
|
-
return active({ class: clsx(
|
|
51
|
+
return active({ class: clsx(theme?.active, styling.active) });
|
|
52
52
|
},
|
|
53
53
|
get nonActiveClass() {
|
|
54
|
-
return nonactive({ class: clsx(
|
|
54
|
+
return nonactive({ class: clsx(theme?.nonactive, styling.nonactive) });
|
|
55
55
|
},
|
|
56
56
|
isSingle
|
|
57
57
|
};
|
|
@@ -72,24 +72,24 @@
|
|
|
72
72
|
{#if isOpen || isLargeScreen}
|
|
73
73
|
{#if isOpen && !alwaysOpen}
|
|
74
74
|
{#if backdrop && activateClickOutside}
|
|
75
|
-
<div role="presentation" class={backdropCls({ class: clsx(
|
|
75
|
+
<div role="presentation" class={backdropCls({ class: clsx(theme?.backdrop, styling.backdrop) })} onclick={closeSidebar}></div>
|
|
76
76
|
{:else if backdrop && !activateClickOutside}
|
|
77
|
-
<div role="presentation" class={backdropCls({ class: clsx(
|
|
77
|
+
<div role="presentation" class={backdropCls({ class: clsx(theme?.backdrop, styling.backdrop) })}></div>
|
|
78
78
|
{:else if !backdrop && activateClickOutside}
|
|
79
79
|
<div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full" onclick={closeSidebar}></div>
|
|
80
80
|
{:else if !backdrop && !activateClickOutside}
|
|
81
81
|
<div role="presentation" class="fixed start-0 top-0 z-50 h-full w-full"></div>
|
|
82
82
|
{/if}
|
|
83
83
|
{/if}
|
|
84
|
-
<aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={base({ class: clsx(
|
|
85
|
-
<div class={div({ class: clsx(
|
|
84
|
+
<aside use:trapFocus={!isLargeScreen && isOpen && !alwaysOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} transition:transition={!alwaysOpen ? transitionParams : undefined} {...restProps} class={base({ class: clsx(theme?.base, className) })} aria-label={ariaLabel}>
|
|
85
|
+
<div class={div({ class: clsx(theme?.base, styling.div) })}>
|
|
86
86
|
{@render children()}
|
|
87
87
|
</div>
|
|
88
88
|
</aside>
|
|
89
89
|
{/if}
|
|
90
90
|
{:else}
|
|
91
|
-
<aside use:trapFocus={isOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} {...restProps} class={base({ class: clsx(
|
|
92
|
-
<div class={div({ class: clsx(
|
|
91
|
+
<aside use:trapFocus={isOpen ? { onEscape: closeSidebar ? handleEscape : undefined } : null} {...restProps} class={base({ class: clsx(theme?.base, className) })} aria-label={ariaLabel}>
|
|
92
|
+
<div class={div({ class: clsx(theme?.base, styling.div) })}>
|
|
93
93
|
{@render children()}
|
|
94
94
|
</div>
|
|
95
95
|
</aside>
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
@component
|
|
100
100
|
[Go to docs](https://flowbite-svelte.com/)
|
|
101
101
|
## Type
|
|
102
|
-
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
102
|
+
[SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1345)
|
|
103
103
|
## Props
|
|
104
104
|
@prop children
|
|
105
105
|
@prop isOpen = false
|
|
@@ -2,7 +2,7 @@ import { type SidebarProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1345)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop isOpen = false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { sidebarBrand
|
|
3
|
+
import { sidebarBrand } from ".";
|
|
4
4
|
import type { SidebarBrandProps } from "../types";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
const { base, img, span } = $derived(sidebarBrand());
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
|
-
<a {...restProps} href={site?.href ? site.href : "/"} class={base({ class: clsx(
|
|
22
|
+
<a {...restProps} href={site?.href ? site.href : "/"} class={base({ class: clsx(theme?.base, className) })}>
|
|
23
23
|
{#if site}
|
|
24
|
-
<img src={site.img} class={img({ class: clsx(
|
|
25
|
-
<span class={span({ class: clsx(
|
|
24
|
+
<img src={site.img} class={img({ class: clsx(theme?.img, styling.img) })} alt={site.name} />
|
|
25
|
+
<span class={span({ class: clsx(theme?.span, styling.span) })}>{site.name}</span>
|
|
26
26
|
{:else if children}
|
|
27
27
|
{@render children()}
|
|
28
28
|
{/if}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
@component
|
|
33
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
34
34
|
## Type
|
|
35
|
-
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
35
|
+
[SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1381)
|
|
36
36
|
## Props
|
|
37
37
|
@prop children
|
|
38
38
|
@prop site
|
|
@@ -2,7 +2,7 @@ import type { SidebarBrandProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarBrandProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1381)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop site
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@component
|
|
23
23
|
[Go to docs](https://flowbite-svelte.com/)
|
|
24
24
|
## Type
|
|
25
|
-
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
25
|
+
[SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1364)
|
|
26
26
|
## Props
|
|
27
27
|
@prop breakpoint = "md"
|
|
28
28
|
@prop class: className
|
|
@@ -2,7 +2,7 @@ import type { SidebarButtonProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarButtonProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1364)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop breakpoint = "md"
|
|
8
8
|
* @prop class: className
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { sidebarCta
|
|
3
|
+
import { sidebarCta } from ".";
|
|
4
4
|
import type { SidebarCtaProps } from "../types";
|
|
5
5
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
6
6
|
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
const { base, div, span } = $derived(sidebarCta());
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
|
-
<div {...restProps} id="dropdown-cta" class={base({ class: clsx(
|
|
23
|
-
<div class={div({ class: clsx(
|
|
24
|
-
<span class={span({ class: clsx(
|
|
22
|
+
<div {...restProps} id="dropdown-cta" class={base({ class: clsx(theme?.base, className) })} role="alert">
|
|
23
|
+
<div class={div({ class: clsx(theme?.div, styling.div) })}>
|
|
24
|
+
<span class={span({ class: clsx(theme?.span, styling.span) })}>{label}</span>
|
|
25
25
|
{#if icon}
|
|
26
26
|
{@render icon()}
|
|
27
27
|
{/if}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
@component
|
|
34
34
|
[Go to docs](https://flowbite-svelte.com/)
|
|
35
35
|
## Type
|
|
36
|
-
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
36
|
+
[SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1368)
|
|
37
37
|
## Props
|
|
38
38
|
@prop children
|
|
39
39
|
@prop icon
|
|
@@ -2,7 +2,7 @@ import type { SidebarCtaProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarCtaProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1368)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop icon
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { writable, type Writable } from "svelte/store";
|
|
4
4
|
import { slide } from "svelte/transition";
|
|
5
5
|
import { uiHelpers } from "..";
|
|
6
|
-
import { sidebarDropdownWrapper
|
|
6
|
+
import { sidebarDropdownWrapper } from ".";
|
|
7
7
|
import type { SidebarDropdownWrapperProps, ParamsType } from "../types";
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { getTheme, warnThemeDeprecation } from "../theme/themeUtils";
|
|
@@ -61,30 +61,30 @@
|
|
|
61
61
|
}
|
|
62
62
|
</script>
|
|
63
63
|
|
|
64
|
-
<li class={base({ class: clsx(
|
|
65
|
-
<button {...restProps} onclick={handleDropdown} type="button" class={btn({ class: clsx(
|
|
64
|
+
<li class={base({ class: clsx(theme?.base, className) })}>
|
|
65
|
+
<button {...restProps} onclick={handleDropdown} type="button" class={btn({ class: clsx(theme?.btn, styling.btn) })} aria-controls="sidebar-dropdown">
|
|
66
66
|
{#if icon}
|
|
67
67
|
{@render icon()}
|
|
68
68
|
{/if}
|
|
69
|
-
<span class={span({ class: clsx(
|
|
69
|
+
<span class={span({ class: clsx(theme?.span, styling.span) })}>{label}</span>
|
|
70
70
|
{#if isOpen}
|
|
71
71
|
{#if arrowup}
|
|
72
72
|
{@render arrowup()}
|
|
73
73
|
{:else}
|
|
74
|
-
<svg class={svg({ class: clsx(
|
|
74
|
+
<svg class={svg({ class: clsx(theme?.svg, styling.svg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
75
75
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5 5 1 1 5" />
|
|
76
76
|
</svg>
|
|
77
77
|
{/if}
|
|
78
78
|
{:else if arrowdown}
|
|
79
79
|
{@render arrowdown()}
|
|
80
80
|
{:else}
|
|
81
|
-
<svg class={svg({ class: clsx(
|
|
81
|
+
<svg class={svg({ class: clsx(theme?.svg, styling.svg) })} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
82
82
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 4 4 4-4" />
|
|
83
83
|
</svg>
|
|
84
84
|
{/if}
|
|
85
85
|
</button>
|
|
86
86
|
{#if isOpen}
|
|
87
|
-
<ul class={ul({ class: clsx(
|
|
87
|
+
<ul class={ul({ class: clsx(theme?.ul, styling.ul) })} transition:transition={params as ParamsType}>
|
|
88
88
|
{@render children()}
|
|
89
89
|
</ul>
|
|
90
90
|
{/if}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
@component
|
|
95
95
|
[Go to docs](https://flowbite-svelte.com/)
|
|
96
96
|
## Type
|
|
97
|
-
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
97
|
+
[SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1387)
|
|
98
98
|
## Props
|
|
99
99
|
@prop children
|
|
100
100
|
@prop arrowup
|
|
@@ -2,7 +2,7 @@ import type { SidebarDropdownWrapperProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarDropdownWrapperProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1387)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop arrowup
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
@component
|
|
14
14
|
[Go to docs](https://flowbite-svelte.com/)
|
|
15
15
|
## Type
|
|
16
|
-
[SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
16
|
+
[SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1404)
|
|
17
17
|
## Props
|
|
18
18
|
@prop children
|
|
19
19
|
@prop class: className = "space-y-2"
|
|
@@ -2,7 +2,7 @@ import type { SidebarGroupProps } from "../types";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarGroupProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1404)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop children
|
|
8
8
|
* @prop class: className = "space-y-2"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
@component
|
|
40
40
|
[Go to docs](https://flowbite-svelte.com/)
|
|
41
41
|
## Type
|
|
42
|
-
[SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
42
|
+
[SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1410)
|
|
43
43
|
## Props
|
|
44
44
|
@prop icon
|
|
45
45
|
@prop subtext
|
|
@@ -2,7 +2,7 @@ import { type SidebarItemProps } from "..";
|
|
|
2
2
|
/**
|
|
3
3
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
4
4
|
* ## Type
|
|
5
|
-
* [SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#
|
|
5
|
+
* [SidebarItemProps](https://github.com/themesberg/flowbite-svelte/blob/main/src/lib/types.ts#L1410)
|
|
6
6
|
* ## Props
|
|
7
7
|
* @prop icon
|
|
8
8
|
* @prop subtext
|
package/dist/sidebar/index.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export { default as SidebarDropdownItem } from "./SidebarItem.svelte";
|
|
|
7
7
|
export { default as SidebarButton } from "./SidebarButton.svelte";
|
|
8
8
|
export { default as SidebarCta } from "./SidebarCta.svelte";
|
|
9
9
|
export { default as SidebarBrand } from "./SidebarBrand.svelte";
|
|
10
|
-
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarDropdownWrapper
|
|
10
|
+
export { sidebar, sidebarButton, sidebarCta, sidebarBrand, sidebarDropdownWrapper } from "./theme";
|